DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Application of Machine Learning Methods To Search for Rail Defects (Part 2)
  • Solid Testing Strategies for Salesforce Releases
  • Interrupt Testing: Bulletproof Your App for the Real World
  • Apex Testing: Tips for Writing Robust Salesforce Test Methods

Trending

  • Implementing API Design First in .NET for Efficient Development, Testing, and CI/CD
  • AI Speaks for the World... But Whose Humanity Does It Learn From?
  • Orchestrating Microservices with Dapr: A Unified Approach
  • Enhancing Business Decision-Making Through Advanced Data Visualization Techniques
  1. DZone
  2. Data Engineering
  3. Data
  4. Anomaly Detection : A Survey

Anomaly Detection : A Survey

By 
Madhuka  Udantha user avatar
Madhuka Udantha
·
Jun. 16, 14 · Interview
Likes (0)
Comment
Save
Tweet
Share
12.2K Views

Join the DZone community and get the full member experience.

Join For Free

this post is summary of the “anomaly detection : a survey”. anomaly detection refers to the problem of finding patterns in data that do not conform to expected behavior. these non-conforming patterns are often referred to as anomalies, outliers, discordant observations, exceptions, aberrations, surprises, peculiarities or contaminants in different application domains.


anomalies are patterns in data that do not conform to a well defined notion of normal behavior.

  • interesting to analyze
  • unwanted noise in the data also can be found in there.
  • novelty detection which aims at detecting previously unobserved (emergent, novel) patterns in the data

challenges for anomaly detection

  • drawing the boundary between normal and anomalous behavior
  • availability of labeled data
  • noisy data


type of anomaly

anomalies can be classified into following three categories

  1. point anomalies - an individual data instance can be considered as anomalous with respect to the rest of data
  2. contextual anomalies - a data instance is anomalous in a specific context (but not otherwise), then it is termed as a contextual anomaly (also referred as conditional anomaly). each data instance is defined using following two sets of attributes
    • contextual attributes. the contextual attributes are used to determine the context (or neighborhood) for that instance
      eg:
      in time- series data, time is a contextual attribute which determines the position of an instance on the entire sequence
    • behavioral attributes. the behavioral attributes define the non-contextual characteristics of an instance
      eg:
      in a spatial data set describing the average rainfall of the entire world, the amount of rainfall at any location is a behavioral attribute
      • to explain this we will look into "exchange rate history for converting united states dollar (usd) to sri lankan rupee (lkr)"[1]

image

contextual anomaly t2 in a exchange rate time series. note that the exchange rate at time t1 is same as that at time t2 but occurs in a different context and hence is not considered as an anomaly

3.  collective anomalies - a collection of related data instances is anomalous with respect to the entire data set

data labels

the labels associated with a data instance denote if that instance is normal or anomalous. depending labels availability, anomaly detection techniques can be operated in one of the following three modes

  1. supervised anomaly detection - techniques trained in supervised mode assume the availability of a training data set which has labeled instances for normal as well as anomaly class
  2. semi-supervised anomaly detection - techniques that operate in a semi-supervised mode, assume that the training data has labeled instances for only the normal class. since they do not require labels for the anomaly class
  3. unsupervised anomaly detection - techniques that operate in unsupervised mode do not require training data, and thus are most widely applicable. the techniques  implicit assume that normal instances are far more frequent than anomalies in the test data. if this assumption is not true then such techniques suffer from high false alarm rate

output of anomaly detection

anomaly detection have two types of output techniques

  1. scores. scoring techniques assign an anomaly score to each instance in the test data depending on the degree to which that instance is considered an anomaly
  2. labels. techniques in this category assign a label (normal or anomalous) to each test instance

applications of anomaly detection

intrusion detection

intrusion detection refers to detection of malicious activity. the key challenge for anomaly detection in this domain is the huge volume of data. thus, semi-supervised and unsupervised anomaly detection techniques are preferred in this domain.denning[3] classifies intrusion detection systems into host based and net-
work based intrusion detection systems.

  • host based intrusion detection systems  - this deals with operating system call traces
  • network intrusion detection systems - these systems deal with detecting intrusions in network data. the intrusions typically occur as anomalous patterns (point anomalies) though certain techniques model[4] the data in a sequential fashion and detect anomalous subsequences (collective anomalies). a challenge faced by anomaly detection techniques in this domain is that the nature of anomalies keeps changing over time as the intruders adapt their network attacks to evade the existing intrusion detection solutions.

fraud detection

fraud detection refers to detection of criminal activities occurring in commercial organizations such as banks, credit card companies, insurance agencies, cell phone companies, stock market, etc. the organizations are interested in immediate detection of such frauds to prevent economic losses. detection techniques used for credit card fraud and network intrusion detection as below.

  • statistical profiling using histograms
  • parametric statisti- cal modeling
  • non-parametric sta- tistical modeling bayesian networks
  • neural networks
  • support vector ma- chines
  • rule-based
  • clustering based
  • nearest neighbor based
  • spectral
  • information theoretic

here are some domain in fraud detections

  • credit card fraud detection
  • mobile phone fraud detection
  • insurance claim fraud detection
  • insider trading detection

medical and public health anomaly detection

anomaly detection in the medical and public health domains typically work with pa- tient records. the data can have anomalies due to several reasons such as abnormal patient condition or instrumentation errors or recording errors. thus the anomaly detection is a very critical problem in this domain and requires high degree of accuracy.

industrial damage detection
such damages need to be detected early to prevent further escalation and losses.
fault detection in mechanical units
structural defect detection

image processing
anomaly detection techniques dealing with images are either interested in any changes in an image over time (motion detection) or in regions which appear ab- normal on the static image. this domain includes satellite imagery.

anomaly detection in text data
anomaly detection techniques in this domain primarily detect novel topics or events or news stories in a collection of documents or news articles. the anomalies are caused due to a new interesting event or an anomalous topic.

sensor networks
since the sensor data collected from various wireless sensors has several unique characteristics.

references

[1] http://themoneyconverter.com/usd/lkr.aspx

[2] varun chandola, arindam banerjee, and vipin kumar. 2009. anomaly detection: a survey. acm comput. surv. 41, 3, article 15 (july 2009), 58 pages. doi=10.1145/1541880.1541882 http://doi.acm.org/10.1145/1541880.1541882

[3] denning, d. e. 1987. an intrusion detection model. ieee transactions of software engineer-ing 13, 2, 222–232.

[4]gwadera, r., atallah, m. j., and szpankowski, w. 2004. detection of significant sets of episodes in event sequences. in proceedings of the fourth ieee international conference on data mining. ieee computer society, washington, dc, usa, 3–10.

Anomaly detection Test data operating system Data set

Published at DZone with permission of Madhuka Udantha, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Application of Machine Learning Methods To Search for Rail Defects (Part 2)
  • Solid Testing Strategies for Salesforce Releases
  • Interrupt Testing: Bulletproof Your App for the Real World
  • Apex Testing: Tips for Writing Robust Salesforce Test Methods

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!