اكتشف كيف يحدد اكتشاف الحالات الشاذة في الذكاء الاصطناعي/تعلم الآلة الأنماط غير العادية في البيانات، مع تطبيقات في منع الاحتيال والرعاية الصحية والمزيد.
Anomaly detection is a critical technique in the fields of Artificial Intelligence (AI) and Machine Learning (ML) focused on identifying data points, events, or observations that deviate significantly from a dataset's normal behavior. Often referred to as outlier detection, this process assumes that the majority of data follows a specific pattern or distribution, and anything falling outside this established norm is considered an anomaly. These irregularities can indicate critical incidents, such as structural defects in manufacturing, errors in text data, or potential security breaches in network traffic. Advanced algorithms, including those used in Deep Learning (DL), are employed to automate the recognition of these rare events with high accuracy.
While both methodologies are fundamental to modern computer vision (CV), it is important to differentiate anomaly detection from standard object detection.
However, robust object detectors like the state-of-the-art Ultralytics YOLO26 can be effectively adapted for supervised anomaly detection. By treating known defects as distinct classes within the training data, engineers can train models to pinpoint specific types of irregularities.
The ability to automatically spot irregularities makes anomaly detection indispensable across various high-stakes industries where manual monitoring is impractical.
A practical approach to anomaly detection involves training a vision model to recognize specific defect classes. The latest models, such as YOLO26, are optimized for this task, offering superior speed and precision compared to previous iterations like YOLO11. The following example demonstrates how to load a pre-trained model and run inference to identify anomalies labeled as objects.
from ultralytics import YOLO
# Load a YOLO26 model trained to detect specific defects (e.g., 'crack', 'dent')
# YOLO26 provides native end-to-end support for faster inference
model = YOLO("yolo26n.pt")
# Perform inference on a product image
# The 'conf' threshold filters out low-confidence predictions (noise)
results = model.predict("path/to/product_image.jpg", conf=0.5)
# Visualize the identified defects
for result in results:
result.show() # Displays image with bounding boxes around anomalies
Developing effective anomaly detection systems requires a robust software ecosystem to handle data preprocessing and model lifecycle management.