Glossary

Anomaly Detection

Discover how anomaly detection in AI/ML identifies unusual patterns in data, with applications in fraud prevention, healthcare, and more.

Train YOLO models simply
with Ultralytics HUB

Learn more

Anomaly detection is the process of identifying data points, events, or observations that deviate significantly from the expected or normal behavior within a dataset. Often referred to as outlier detection, it plays a crucial role in various domains by flagging unusual patterns that might indicate critical incidents such as errors, fraud, or system failures. In the context of Artificial Intelligence (AI) and Machine Learning (ML), anomaly detection systems are trained to learn the patterns of normal behavior and then identify deviations from these learned patterns. These systems are vital for ensuring safety, security, and operational efficiency across many industries.

How Anomaly Detection Works

Anomaly detection techniques analyze data to establish a baseline of normalcy. Anything falling outside this baseline is flagged as an anomaly. The methods used can range from simple statistical approaches, like identifying points far from the mean, to complex deep learning models capable of understanding intricate patterns in high-dimensional data. Key approaches include:

  • Supervised Learning: Requires a labeled dataset containing both normal and anomalous examples. While effective, obtaining labeled anomaly data can be challenging as anomalies are often rare and unexpected.
  • Semi-Supervised Learning: Trains on a dataset containing only normal data. The model learns the normal patterns, and any data point that doesn't conform is considered anomalous. This is useful when anomalies are diverse or poorly defined.
  • Unsupervised Learning: Does not require labeled data. It uses techniques like clustering (e.g., DBSCAN) or dimensionality reduction (e.g., PCA) to identify data points that are isolated or different from the majority. Autoencoders are also commonly used here.

Real-World Applications

Anomaly detection is critical across numerous fields:

Tools and Technologies

Developing anomaly detection systems often involves standard ML libraries and specialized platforms. Frameworks like PyTorch and TensorFlow provide fundamental tools for building custom models. For vision-based tasks, models like Ultralytics YOLO can be adapted. While pre-trained YOLO models excel at detecting common objects, they can be custom-trained on specific datasets to identify domain-specific anomalies, such as unique defects or unusual visual patterns not covered by datasets like COCO. Platforms like Ultralytics HUB offer integrated environments for cloud training, deploying (model deployment options), and managing such models efficiently using tools like the Ultralytics HUB SDK. Libraries like Scikit-learn also offer various algorithms for outlier and anomaly detection.

Anomaly detection is a vital capability in modern AI and ML, enabling proactive identification of critical issues and deviations across numerous industries. Explore more about related concepts in our Ultralytics Glossary.

Read all