Anomaly detection explained

In data analysis, anomaly detection (also referred to as outlier detection and sometimes as novelty detection) is generally understood to be the identification of rare items, events or observations which deviate significantly from the majority of the data and do not conform to a well defined notion of normal behavior. Such examples may arouse suspicions of being generated by a different mechanism,[1] or appear inconsistent with the remainder of that set of data.[2]

Anomaly detection finds application in many domains including cybersecurity, medicine, machine vision, statistics, neuroscience, law enforcement and financial fraud to name only a few. Anomalies were initially searched for clear rejection or omission from the data to aid statistical analysis, for example to compute the mean or standard deviation. They were also removed to better predictions from models such as linear regression, and more recently their removal aids the performance of machine learning algorithms. However, in many applications anomalies themselves are of interest and are the observations most desirous in the entire data set, which need to be identified and separated from noise or irrelevant outliers.

Three broad categories of anomaly detection techniques exist. Supervised anomaly detection techniques require a data set that has been labeled as "normal" and "abnormal" and involves training a classifier. However, this approach is rarely used in anomaly detection due to the general unavailability of labelled data and the inherent unbalanced nature of the classes. Semi-supervised anomaly detection techniques assume that some portion of the data is labelled. This may be any combination of the normal or anomalous data, but more often than not, the techniques construct a model representing normal behavior from a given normal training data set, and then test the likelihood of a test instance to be generated by the model. Unsupervised anomaly detection techniques assume the data is unlabelled and are by far the most commonly used due to their wider and relevant application.

Definition

Many attempts have been made in the statistical and computer science communities to define an anomaly. The most prevalent ones include the following, and can be categorised into three groups: those that are ambiguous, those that are specific to a method with pre-defined thresholds usually chosen empirically, and those that are formally defined:

Ill defined

Specific

Definition of anomalies in high-dimensional context

In this big data era, the focus is increasingly on methodologies capable of handling the complexity and scale of data, going beyond traditional approaches to define and detect anomalies in a way that is both effective and efficient for today's data-driven decision-making processes.[3]

History

Intrusion detection

The concept of intrusion detection, a critical component of anomaly detection, has evolved significantly over time. Initially, it was a manual process where system administrators would monitor for unusual activities, such as a vacationing user's account being accessed or unexpected printer activity. This approach was not scalable and was soon superseded by the analysis of audit logs and system logs for signs of malicious behavior.[4]

By the late 1970s and early 1980s, the analysis of these logs was primarily used retrospectively to investigate incidents, as the volume of data made it impractical for real-time monitoring. The affordability of digital storage eventually led to audit logs being analyzed online, with specialized programs being developed to sift through the data. These programs, however, were typically run during off-peak hours due to their computational intensity.

The 1990s brought the advent of real-time intrusion detection systems capable of analyzing audit data as it was generated, allowing for immediate detection of and response to attacks. This marked a significant shift towards proactive intrusion detection.

As the field has continued to develop, the focus has shifted to creating solutions that can be efficiently implemented across large and complex network environments, adapting to the ever-growing variety of security threats and the dynamic nature of modern computing infrastructures.

Applications

Anomaly detection is applicable in a very large number and variety of domains, and is an important subarea of unsupervised machine learning. As such it has applications in cyber-security, intrusion detection, fraud detection, fault detection, system health monitoring, event detection in sensor networks, detecting ecosystem disturbances, defect detection in images using machine vision, medical diagnosis and law enforcement.[5]

Intrusion detection

Anomaly detection was proposed for intrusion detection systems (IDS) by Dorothy Denning in 1986.[6] Anomaly detection for IDS is normally accomplished with thresholds and statistics, but can also be done with soft computing, and inductive learning.[7] Types of features proposed by 1999 included profiles of users, workstations, networks, remote hosts, groups of users, and programs based on frequencies, means, variances, covariances, and standard deviations.[8] The counterpart of anomaly detection in intrusion detection is misuse detection.

Fintech fraud detection

Anomaly detection is vital in fintech for fraud prevention.[9] [10]

Preprocessing

Preprocessing data to remove anomalies can be an important step in data analysis, and is done for a number of reasons. Statistics such as the mean and standard deviation are more accurate after the removal of anomalies, and the visualisation of data can also be improved. In supervised learning, removing the anomalous data from the dataset often results in a statistically significant increase in accuracy.[11] [12]

Video surveillance

Anomaly detection has become increasingly vital in video surveillance to enhance security and safety.[13] [14] With the advent of deep learning technologies, methods using Convolutional Neural Networks (CNNs) and Simple Recurrent Units (SRUs) have shown significant promise in identifying unusual activities or behaviors in video data.[13] These models can process and analyze extensive video feeds in real-time, recognizing patterns that deviate from the norm, which may indicate potential security threats or safety violations.[13]

IT infrastructure

In IT infrastructure management, anomaly detection is crucial for ensuring the smooth operation and reliability of services.[15] Techniques like the IT Infrastructure Library (ITIL) and monitoring frameworks are employed to track and manage system performance and user experience. Detection anomalies can help identify and pre-empt potential performance degradations or system failures, thus maintaining productivity and business process effectiveness.

IoT systems

Anomaly detection is critical for the security and efficiency of Internet of Things (IoT) systems.[16] It helps in identifying system failures and security breaches in complex networks of IoT devices. The methods must manage real-time data, diverse device types, and scale effectively. Garbe et al.[17] have introduced a multi-stage anomaly detection framework that improves upon traditional methods by incorporating spatial clustering, density-based clustering, and locality-sensitive hashing. This tailored approach is designed to better handle the vast and varied nature of IoT data, thereby enhancing security and operational reliability in smart infrastructure and industrial IoT systems.

Petroleum industry

Anomaly detection is crucial in the petroleum industry for monitoring critical machinery.[18] Martí et al. used a novel segmentation algorithm to analyze sensor data for real-time anomaly detection. This approach helps promptly identify and address any irregularities in sensor readings, ensuring the reliability and safety of petroleum operations.

Oil and gas pipeline monitoring

In the oil and gas sector, anomaly detection is not just crucial for maintenance and safety, but also for environmental protection.[19] Aljameel et al. propose an advanced machine learning-based model for detecting minor leaks in oil and gas pipelines, a task traditional methods may miss.

Methods

Many anomaly detection techniques have been proposed in literature.[20] [21] The performance of methods usually depend on the data sets. For example, some may be suited to detecting local outliers, while others global, and methods have little systematic advantages over another when compared across many data sets.[22] [23] Almost all algorithms also require the setting of non-intuitive parameters critical for performance, and usually unknown before application. Some of the popular techniques are mentioned below and are broken down into categories:

Statistical

Parametric-based

Density

Neural networks

Cluster-based

Ensembles

Others

Anomaly detection in dynamic networks

Dynamic networks, such as those representing financial systems, social media interactions, and transportation infrastructure, are subject to constant change, making anomaly detection within them a complex task. Unlike static graphs, dynamic networks reflect evolving relationships and states, requiring adaptive techniques for anomaly detection.

Types of anomalies in dynamic networks

  1. Community anomalies
  2. Compression anomalies
  3. Decomposition anomalies
  4. Distance anomalies
  5. Probabilistic model anomalies

Explainable anomaly detection

Many of the methods discussed above only yield an anomaly score prediction, which often can be explained to users as the point being in a region of low data density (or relatively low density compared to the neighbor's densities). In explainable artificial intelligence, the users demand methods with higher explainability. Some methods allow for more detailed explanations:

Software

Datasets

See also

Notes and References

  1. Book: Hawkins, Douglas M. . Identification of Outliers . Springer . 1980 . 978-0-412-21900-9 . 6912274 .
  2. Book: Barnett . Vic . Lewis . Lewis . 1978 . Outliers in statistical data . Wiley . 978-0-471-99599-9 . 1150938591 .
  3. Thudumu . Srikanth . Branch . Philip . Jin . Jiong . Singh . Jugdutt (Jack) . 2020-07-02 . A comprehensive survey of anomaly detection techniques for high dimensional big data . Journal of Big Data . 7 . 1 . 42 . 10.1186/s40537-020-00320-x . 2196-1115 . free. 10536/DRO/DU:30158643 . free .
  4. Kemmerer . R.A. . Vigna . G. . April 2002 . Intrusion detection: a brief history and overview . Computer . 35 . 4 . supl27–supl30 . 10.1109/mc.2002.1012428 . 0018-9162.
  5. Book: Aggarwal, Charu . 2017 . Outlier Analysis . Springer Publishing Company, Incorporated . 978-3319475776.
  6. Denning . D. E. . Dorothy E. Denning. 10.1109/TSE.1987.232894 . An Intrusion-Detection Model . IEEE Transactions on Software Engineering. 2 . 222–232 . 1987 . https://web.archive.org/web/20150622044937/http://www.dtic.mil/dtic/tr/fulltext/u2/a484998.pdf. live. June 22, 2015. 10.1.1.102.5127 . SE-13. 10028835 .
  7. Book: Teng . H. S. . Chen . K. . Lu . S. C. . Proceedings. 1990 IEEE Computer Society Symposium on Research in Security and Privacy . Adaptive real-time anomaly detection using inductively generated sequential patterns . 10.1109/RISP.1990.63857 . 278–284. 1990 . 978-0-8186-2060-7 . 35632142 .
  8. Jones . Anita K. . Sielken . Robert S. . Computer System Intrusion Detection: A Survey . Computer Science Technical Report . 2000 . 1–25. }
  9. Stojanović . Branka . Božić . Josip . Hofer-Schmitz . Katharina . Nahrgang . Kai . Weber . Andreas . Badii . Atta . Sundaram . Maheshkumar . Jordan . Elliot . Runevic . Joel . January 2021 . Follow the Trail: Machine Learning for Fraud Detection in Fintech Applications . Sensors . en . 21 . 5 . 1594 . 10.3390/s21051594 . 33668773 . 7956727 . 2021Senso..21.1594S . 1424-8220 . free .
  10. Ahmed . Mohiuddin . Mahmood . Abdun Naser . Islam . Md. Rafiqul . February 2016 . A survey of anomaly detection techniques in financial domain . Future Generation Computer Systems . 55 . 278–288 . 10.1016/j.future.2015.01.001 . 204982937 . 0167-739X.
  11. 10.1109/TSMC.1976.4309523 . Ivan . Tomek. An Experiment with the Edited Nearest-Neighbor Rule . IEEE Transactions on Systems, Man, and Cybernetics. 6 . 6 . 448–452 . 1976 .
  12. Book: Smith . M. R. . Martinez . T. . 10.1109/IJCNN.2011.6033571 . Improving classification accuracy by identifying and removing instances that should be misclassified . The 2011 International Joint Conference on Neural Networks . 2690 . 2011 . 978-1-4244-9635-8 . http://axon.cs.byu.edu/papers/smith.ijcnn2011.pdf. 10.1.1.221.1371 . 5809822 .
  13. 2023-06-01 . Video anomaly detection system using deep convolutional and recurrent models . Results in Engineering . en-US . 18 . 101026 . 10.1016/j.rineng.2023.101026 . 2590-1230 . Qasim . Maryam . Verdu . Elena . 257728239 . free .
  14. Book: Zhang . Tan . Chowdhery . Aakanksha . Bahl . Paramvir (Victor) . Jamieson . Kyle . Banerjee . Suman . Proceedings of the 21st Annual International Conference on Mobile Computing and Networking . The Design and Implementation of a Wireless Video Surveillance System . 2015-09-07 . https://doi.org/10.1145/2789168.2790123 . MobiCom '15 . New York, NY, USA . Association for Computing Machinery . 426–438 . 10.1145/2789168.2790123 . 978-1-4503-3619-2. 12310150 .
  15. Anomaly Detection in Complex Real World Application Systems . 2023-11-08 . IEEE Transactions on Network and Service Management . 2018 . 10.1109/TNSM.2017.2771403 . 3883483 . en-US . Gow . Richard . Rabhi . Fethi A. . Venugopal . Srikumar . 15 . 83–96 . 1959.4/unsworks_73660 . free .
  16. Chatterjee . Ayan . Ahmed . Bestoun S. . August 2022 . IoT anomaly detection methods and applications: A survey . Internet of Things . 19 . 100568 . 10.1016/j.iot.2022.100568 . 250644468 . 2542-6605. free . 2207.09092 .
  17. Garg . Sahil . Kaur . Kuljeet . Batra . Shalini . Kaddoum . Georges . Kumar . Neeraj . Boukerche . Azzedine . 2020-03-01 . A multi-stage anomaly detection scheme for augmenting the security in IoT-enabled applications . Future Generation Computer Systems . 104 . 105–118 . 10.1016/j.future.2019.09.038 . 204077191 . 0167-739X.
  18. Martí . Luis . Sanchez-Pi . Nayat . Molina . José Manuel . Garcia . Ana Cristina Bicharra . February 2015 . Anomaly Detection Based on Sensor Data in Petroleum Industry Applications . Sensors . en . 15 . 2 . 2774–2797 . 10.3390/s150202774 . 25633599 . 4367333 . 2015Senso..15.2774M . 1424-8220 . free .
  19. Aljameel . Sumayh S. . Alomari . Dorieh M. . Alismail . Shatha . Khawaher . Fatimah . Alkhudhair . Aljawharah A. . Aljubran . Fatimah . Alzannan . Razan M. . August 2022 . An Anomaly Detection Model for Oil and Gas Pipelines Using Machine Learning . Computation . en . 10 . 8 . 138 . 10.3390/computation10080138 . 2079-3197 . free .
  20. Chandola. V.. Banerjee. A.. Kumar. V.. 207172599. 2009. Anomaly detection: A survey. ACM Computing Surveys. 41. 3. 1–58. 10.1145/1541880.1541882.
  21. Zimek. Arthur. Arthur Zimek. Filzmoser. Peter. There and back again: Outlier detection between statistical reasoning and data mining algorithms. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery. 8. 6. 2018. e1280. 1942-4787. 10.1002/widm.1280. 53305944. 2019-12-09. 2021-11-14. https://web.archive.org/web/20211114121638/https://findresearcher.sdu.dk:8443/ws/files/153197807/There_and_Back_Again.pdf. dead.
  22. Campos . Guilherme O. . Zimek . Arthur . Arthur Zimek . Sander . Jörg . Campello . Ricardo J. G. B. . Micenková . Barbora . Schubert . Erich . Assent . Ira . Houle . Michael E. . 2016 . On the evaluation of unsupervised outlier detection: measures, datasets, and an empirical study . Data Mining and Knowledge Discovery . 30 . 4 . 891 . 10.1007/s10618-015-0444-8 . 1384-5810 . 1952214.
  23. http://www.dbs.ifi.lmu.de/research/outlier-evaluation/ Anomaly detection benchmark data repository
  24. 10.1007/s007780050006. Distance-based outliers: Algorithms and applications. The VLDB Journal the International Journal on Very Large Data Bases. 8. 3–4. 237–253. 2000. Knorr . E. M. . Ng . R. T. . Tucakov . V. . 10.1.1.43.1842. 11707259.
  25. 10.1145/342009.335437. Efficient algorithms for mining outliers from large data sets. Proceedings of the 2000 ACM SIGMOD international conference on Management of data – SIGMOD '00. 427. 2000. Ramaswamy . S. . Rastogi . R. . Shim . K. . 1-58113-217-4.
  26. 10.1007/3-540-45681-3_2. Fast Outlier Detection in High Dimensional Spaces. Principles of Data Mining and Knowledge Discovery. 2431. 15. Lecture Notes in Computer Science. 2002. Angiulli . F. . Pizzuti . C. . 978-3-540-44037-6. free.
  27. 10.1145/335191.335388. LOF: Identifying Density-based Local Outliers. 2000. Breunig . M. M.. Kriegel . H.-P. . Hans-Peter Kriegel. Ng . R. T.. Sander . J.. Proceedings of the 2000 ACM SIGMOD International Conference on Management of Data. SIGMOD. 1-58113-217-4. 93–104.
  28. Book: Liu. Fei Tony. Ting. Kai Ming. Zhou. Zhi-Hua. 2008 Eighth IEEE International Conference on Data Mining . Isolation Forest . December 2008. en. 413–422. 10.1109/ICDM.2008.17. 9780769535029. 6505449.
  29. Liu. Fei Tony. Ting. Kai Ming. Zhou. Zhi-Hua. March 2012. Isolation-Based Anomaly Detection. ACM Transactions on Knowledge Discovery from Data . en. 6. 1. 1–39. 10.1145/2133360.2133363. 207193045.
  30. Schubert . E. . Zimek . A. . Arthur Zimek . Kriegel . H. -P. . 19036098 . Hans-Peter Kriegel. 10.1007/s10618-012-0300-z . Local outlier detection reconsidered: A generalized view on locality with applications to spatial, video, and network outlier detection . Data Mining and Knowledge Discovery . 28 . 190–237 . 2012 .
  31. 10.1007/978-3-642-01307-2_86. Outlier Detection in Axis-Parallel Subspaces of High Dimensional Data. Advances in Knowledge Discovery and Data Mining. 5476. 831. Lecture Notes in Computer Science. 2009. Kriegel . H. P. . Hans-Peter Kriegel. Kröger . P. . Schubert . E. . Zimek . A. . Arthur Zimek . 978-3-642-01306-5.
  32. 10.1109/ICDM.2012.21. Outlier Detection in Arbitrarily Oriented Subspaces. 2012 IEEE 12th International Conference on Data Mining. 379. 2012. Kriegel . H. P. . Hans-Peter Kriegel. Kroger . P. . Schubert . E. . Zimek . A. . Arthur Zimek . 978-1-4673-4649-8.
  33. Fanaee-T. H. . Gama . J.. Tensor-based anomaly detection: An interdisciplinary survey . 10.1016/j.knosys.2016.01.027 . Knowledge-Based Systems . 98 . 130–147. 2016. 16368060 .
  34. Zimek . A. . Arthur Zimek . Schubert . E.. Kriegel . H.-P. . Hans-Peter Kriegel. A survey on unsupervised outlier detection in high-dimensional numerical data . 10.1002/sam.11161 . Statistical Analysis and Data Mining . 5 . 5 . 363–387. 2012 . 6724536 .
  35. Schölkopf. B.. Bernhard Schölkopf. Platt. J. C.. Shawe-Taylor. J.. Smola. A. J.. Williamson. R. C.. 2001. Estimating the Support of a High-Dimensional Distribution. Neural Computation. 13. 7. 1443–71. 10.1.1.4.4106. 10.1162/089976601750264965. 11440593. 2110475.
  36. Book: 10.1007/3-540-46145-0_17 . Outlier Detection Using Replicator Neural Networks . Data Warehousing and Knowledge Discovery . 2454 . 170–180 . 2002 . Hawkins . Simon . He . Hongxing . Williams . Graham . Baxter . Rohan . 978-3-540-44123-6 . Lecture Notes in Computer Science . 10.1.1.12.3366 . 6436930 .
  37. An . J. . Cho . S. . Variational autoencoder based anomaly detection using reconstruction probability . Special Lecture on IE . 2 . 1 . 1–18 . 2015 . SNUDM-TR-2015-03 .
  38. Malhotra. Pankaj. Vig. Lovekesh. Shroff. Gautman. Agarwal. Puneet. Long Short Term Memory Networks for Anomaly Detection in Time Series. ESANN 2015: 23rd European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning . 22–24 April 2015 . 978-2-87587-015-5 . 89–94 .
  39. Hubert. Mia. Mia Hubert. Debruyne. Michiel. Rousseeuw. Peter J.. Peter J. Rousseeuw. 2018. Minimum covariance determinant and extensions. WIREs Computational Statistics. en. 10. 3. 10.1002/wics.1421. 67227041 . 1939-5108. free. 1709.07045.
  40. Hubert. Mia. Mia Hubert. Debruyne. Michiel. 2010. Minimum covariance determinant. WIREs Computational Statistics. en. 2. 1. 36–43. 10.1002/wics.61. 123086172 . 1939-0068.
  41. Alzubaidi . Laith . Zhang . Jinglan . Humaidi . Amjad J. . Al-Dujaili . Ayad . Duan . Ye . Al-Shamma . Omran . Santamaría . J. . Fadhel . Mohammed A. . Al-Amidie . Muthana . Farhan . Laith . 2021-03-31 . Review of deep learning: concepts, CNN architectures, challenges, applications, future directions . Journal of Big Data . 8 . 1 . 53 . 10.1186/s40537-021-00444-8 . 2196-1115 . 8010506 . 33816053 . free .
  42. Belay . Mohammed Ayalew . Blakseth . Sindre Stenen . Rasheed . Adil . Salvo Rossi . Pierluigi . January 2023 . Unsupervised Anomaly Detection for IoT-Based Multivariate Time Series: Existing Solutions, Performance Analysis and Future Directions . Sensors . en . 23 . 5 . 2844 . 10.3390/s23052844 . 36905048 . 10007300 . 2023Senso..23.2844B . 1424-8220 . free .
  43. 10.1016/S0167-8655(03)00003-5. Discovering cluster-based local outliers. Pattern Recognition Letters. 24. 9–10. 1641–1650. 2003. He . Z. . Xu . X. . Deng . S. . 2003PaReL..24.1641H. 10.1.1.20.4242.
  44. R. J. G. B. . Campello. D. . Moulavi. A. . Zimek . Arthur Zimek . J. . Sander. 2887636. Hierarchical Density Estimates for Data Clustering, Visualization, and Outlier Detection. ACM Transactions on Knowledge Discovery from Data. 10 . 1 . 5:1–51 . 2015 . 10.1145/2733381.
  45. Book: 10.1145/1081870.1081891. 2005. Lazarevic . A.. Kumar . V.. Proceedings of the eleventh ACM SIGKDD international conference on Knowledge discovery in data mining. Feature bagging for outlier detection. 157–166. 978-1-59593-135-1. 10.1.1.399.425. 2054204.
  46. 10.1007/978-3-642-12026-8_29. Mining Outliers with Ensemble of Heterogeneous Detectors on Random Subspaces. Database Systems for Advanced Applications. 5981. 368. Lecture Notes in Computer Science. 2010. Nguyen . H. V. . Ang . H. H. . Gopalkrishnan . V. . 978-3-642-12025-1.
  47. 10.1137/1.9781611972818.2. Interpreting and Unifying Outlier Scores. Proceedings of the 2011 SIAM International Conference on Data Mining. 13–24. 2011. Kriegel . H. P. . Hans-Peter Kriegel. Kröger . P. . Schubert . E. . Zimek . A. . Arthur Zimek . 978-0-89871-992-5. 10.1.1.232.2719.
  48. 10.1137/1.9781611972825.90. On Evaluation of Outlier Rankings and Outlier Scores. Proceedings of the 2012 SIAM International Conference on Data Mining. 1047–1058. 2012. Schubert . E. . Wojdanowski . R. . Zimek . A. . Arthur Zimek . Kriegel . H. P. . Hans-Peter Kriegel. 978-1-61197-232-0.
  49. 10.1145/2594473.2594476. Ensembles for unsupervised outlier detection. ACM SIGKDD Explorations Newsletter. 15. 11–22. 2014. Zimek . A. . Arthur Zimek . Campello . R. J. G. B. . Sander . J. R. . 8065347.
  50. 10.1145/2618243.2618257. Data perturbation for outlier detection ensembles. Proceedings of the 26th International Conference on Scientific and Statistical Database Management – SSDBM '14. 1. 2014. Zimek . A. . Arthur Zimek . Campello . R. J. G. B. . Sander . J. R. . 978-1-4503-2722-0.
  51. Zhao . Yue . Nasrullah . Zain . Li . Zheng . 2019 . Pyod: A python toolbox for scalable outlier detection . Journal of Machine Learning Research . 20 . 1901.01588 .
  52. Web site: FindAnomalies . Mathematica documentation.