Skip to main content

ADET: anomaly detection in time series with linear time


Time series data is ubiquitous in financial, biomedical, and other areas. Anomaly detection in time series has been widely researched in these areas. However, most existing algorithms suffer from “curse of dimension” and may lose some information in the process of feature extraction. In this paper, we propose two new data structures named interval table (ITable) and extend interval table (EITable) for time series representation to capture more original information. We also proposed ADET: a novel Anomaly Detection algorithm based on EITable, which only needs linear time to detect meaningful anomalies. Extensive experiments on eleven data sets of UCR Repository, MIT-BIH datasets, and the BIDMC database show that ADET has overall good performance in terms of AUC-ROC and outperforms other algorithms in time complexity.

This is a preview of subscription content, access via your institution.

Fig. 1
Fig. 2
Fig. 3
Fig. 4


  1. 1.

    Ahmed M, Mahmood A, Rafiqul IM (2016) A survey of anomaly detection techniques in financial domain. Future Gener Comput Syst 55:278–288.

    Article  Google Scholar 

  2. 2.

    Atkinson PM, Jeganathan C, Dash J, Atzberger C (2012) Inter-comparison of four models for smoothing satellite sensor time-series data to estimate vegetation phenology. Remote Sens Environ 123:400–417.

    Article  Google Scholar 

  3. 3.

    Baim DS, Colucci WS, Monrad ES, Smith HS, Wright RF, Lanoue AS, Gauthier DF, Ransil BJ, Grossman W, Braunwald E (1986) Survival of patients with severe congestive heart failure treated with oral milrinone. J Am Coll Cardiol 7(3):661–670.

    Article  Google Scholar 

  4. 4.

    Basu S, Meckesheimer M (2007) Automatic outlier detection for time series: an application to sensor data. Knowl Inf Syst 11:137–154.

    Article  Google Scholar 

  5. 5.

    Breunig MM, Kriegel HP, Ng RT, Sander J (2000) LOF: identifying density-based local outliers. SIGMOD Rec 29(2):93–104.

    Article  Google Scholar 

  6. 6.

    Chakraborti A, Patriarca M, Santhanam MS (2007) Financial time-series analysis: a brief overview. In: Chatterjee A, Chakrabarti BK (eds) Econophysics of markets and business networks. New economic windows. Springer, Milano.

    Chapter  Google Scholar 

  7. 7.

    Chauhan S, Vig L (2015) Anomaly detection in ECG time signals via deep long short-term memory networks. In: 2015 IEEE International Conference on Data Science and Advanced Analytics (DSAA). pp 1–7.

  8. 8.

    Chen Y, Keogh E, Hu B, Begum N, Bagnall A, Mueen A, Batista G (2015) The UCR time series classification archive. Retrieved on 24 Sep 2019

  9. 9.

    Chen J, Sathe S, Aggarwa C, Turaga D (2017) Outlier detection with autoencoder ensembles. In: Proceedings of the 2017 SIAM international conference on data mining, Society for Industrial and Applied Mathematics, pp 90–98

  10. 10.

    Chen RQ, Shi GH, Zhao WL, Liang CH (2019) Sequential VAE-LSTM for anomaly detection on time series. arXiv preprint arXiv:1910.03818

  11. 11.

    Esra G, Eksi Z, Murat Ç (2012) WebECG: a novel ECG simulator based on matlab web figure. Adv Eng Softw 45(1):167–174.

    Article  Google Scholar 

  12. 12.

    Goldberger AL, Amaral LAN, Glass L, Hausdorff JM, Ivanov PC, Mark RG, Mietus JE, Moody GB, Peng C, Stanley HE (2000) Physiobank, physiotoolkit, and physionet components of a new research resource for complex physiologic signals. Circulation 101(23):215–220

    Article  Google Scholar 

  13. 13.

    Guo C, Li H, Pan D (2010) An improved piecewise aggregate approximation based on statistical features for time series mining. In: KSEM 2010: knowledge science, engineering and management, pp 234–244.

  14. 14.

    Haemwaan S, Ratanamahatana CA (2015) Robust and accurate anomaly detection in ECG artifacts using time series motif discovery. Comput Math Methods Med 2015:1–20.

    MathSciNet  Article  Google Scholar 

  15. 15.

    Kampouraki A, Manis G, Nikou C (2009) Heartbeat time series classification with support vector machines. IEEE Trans Inf Technol Biomed 13(4):512–518.

    Article  Google Scholar 

  16. 16.

    Keogh E, Kasetty S (2002) On the need for time series data mining benchmarks: a survey and empirical demonstration. In: Proceedings of the 8th ACM SIGKDD international conference on knowledge discovery and data mining, July 23–26, 2002, Edmonton, Alberta, Canada, pp 102–111

  17. 17.

    Keogh E, Chakrabarti K, Pazzani M, Mehrotra S (2001) Locally adaptive dimensionality reduction for indexing large time series databases. Int Conf Manag Data 30(2):151–162.

    Article  MATH  Google Scholar 

  18. 18.

    Koski A, Juhola M, Meriste M (1995) Syntactic recognition of ECG signals by attributed finite automata. Pattern Recogn 28(12):1927–1940.

    Article  Google Scholar 

  19. 19.

    Latecki LJ, Lazarevic A, Pokrajac D (2007) Outlier detection with kernel density functions. In: Proceedings of the international conference on machine learning and data mining in pattern recognition, pp 61–75

  20. 20.

    Li G, Bräysy O, Jiang L, Wu Z, Wang Y (2013) Finding time series discord based on bit representation clustering. Knowl Based Syst 54(4):243–254.

    Article  Google Scholar 

  21. 21.

    Li D, Chen D, Shi L, Jin B, Goh J, Ng S (2019) MAD-GAN: multivariate anomaly detection for time series data with generative adversarial networks. In: Artificial neural networks and machine learning – ICANN 2019: text and time series, pp 703–716.

  22. 22.

    Lin J, Keogh EJ, Lonardi S, Chiu BY (2003) A symbolic representation of time series, with implications for streaming algorithms, pp 2–11.

  23. 23.

    Liu FT, Ting KM, Zhou ZH (2008) Isolation forest. In 2008 Eighth IEEE international conference on data mining, IEEE, pp 413–422

  24. 24.

    Lkhagva B, Suzuki Y, Kawagoe K (2006) New time series data representation ESAX for financial applications. p 115.

  25. 25.

    Malhotra P, Vig L, Shroff G, Agarwal P (2015) Long short term memory networks for anomaly detection in time series. In: European symposium on artificial neural networks, vol 89. Presses universitaires de Louvain, pp 89–94

  26. 26.

    Moody GB, Mark RG (2001) The impact of the MIT-BIH arrhythmia database. IEEE Eng Med Biol Mag 20(3):45–50.

    Article  Google Scholar 

  27. 27.

    Moonesignhe HDK, Pang-ning T (2006) Outlier detection using random walks. In: 2006 18th IEEE international conference on tools with artificial intelligence (ICTAI'06), pp 532–539.

  28. 28.

    Ocak H (2009) Automatic detection of epileptic seizures in EEG using discrete wavelet transform and approximate entropy. Expert Syst Appl 36(2):2027–2036.

    Article  Google Scholar 

  29. 29.

    Ratanamahatana CA, Lin J, Gunopulos D, Keogh E, Vlachos M, Das G (2010) Mining time series data. In: Maimon O, Rokach L (eds) Data mining and knowledge discovery handbook. Springer, Berlin, pp 1049–1077.

    Chapter  Google Scholar 

  30. 30.

    Ren H, Liu M, Li Z, Pedrycz W (2017) A piecewise aggregate pattern representation approach for anomaly detection in time series. Knowl Based Syst 135:29–39.

    Article  Google Scholar 

  31. 31.

    Ren H, Liu M, Liao X, Liang L, Ye Z, Li Z (2018) Anomaly detection in time series based on interval sets. IEEJ Trans Electr Electron Eng 13(5):757–762.

    Article  Google Scholar 

  32. 32.

    Schlegl T, Seebock P, Waldstein SM, Schmidterfurth U, Langs G (2017) Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. Int Conf Inf Process.

    Article  Google Scholar 

  33. 33.

    Sun Y, Li J, Liu J, Sun B, Chow CWK (2014) An improvement of symbolic aggregate approximation distance measure for time series. Neurocomputing 138:189–198.

    Article  Google Scholar 

  34. 34.

    Tang B, He H (2017) A local density-based approach for outlier detection. Neurocomputing 241:171–180

    Article  Google Scholar 

  35. 35.

    Tran KP, Du Nguyen H, Thomassey S (2019) Anomaly detection using long short term memory networks and its applications in supply chain management. IFAC Pap OnLine 52(13):2408–2412

    Article  Google Scholar 

  36. 36.

    Virani N, Jha DK, Ray A, Phoha S (2019) Sequential hypothesis tests for streaming data via symbolic time-series analysis. Eng Appl Artif Intell 81:234–246.

    Article  Google Scholar 

  37. 37.

    Xuan PT, Anh DT (2018) An efficient hash-based method for time series motif discovery. Multidiscipl Trends Artif Intell.

    Article  Google Scholar 

  38. 38.

    Yahyaoui H, Aldaihani R (2019) A novel trend based SAX reduction technique for time series. Expert Syst Appl 130:113–123.

    Article  Google Scholar 

  39. 39.

    Zenati H, Romain M, Foo C, Lecouat B, Chandrasekhar V (2018) Adversarially learned anomaly detection. Int Conf Data Min.

    Article  Google Scholar 

  40. 40.

    Zong B, Song Q, Min MR, Cheng W, Lumezanu C, Cho D, Chen H (2018) Deep autoencoding gaussian mixture model for unsupervised anomaly detection. In: International conference on learning representations

Download references


This study was supported by the Shenzhen Research Council (Grant No. GJHZ20180928155209705).

Author information



Corresponding author

Correspondence to Chuanyi Liu.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Electronic supplementary material

Below is the link to the electronic supplementary material.

Supplementary file1 (RAR 285 kb)

Supplementary file2 (RAR 49 kb)

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Zhang, C., Zuo, W., Yin, A. et al. ADET: anomaly detection in time series with linear time. Int. J. Mach. Learn. & Cyber. 12, 271–280 (2021).

Download citation


  • Time series
  • Anomaly detection
  • Interval table
  • Extend interval table
  • Linear time