Yolo 深圳
深セン
今すぐ参加
用語集

異常検知

AI/MLにおける異常検知が、データ内の異常なパターンをどのように識別するかを解説します。不正防止、ヘルスケアなどの応用例をご紹介します。

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.

異常検知 vs. 物体検出

While both methodologies are fundamental to modern computer vision (CV), it is important to differentiate anomaly detection from standard object detection.

  • Object Detection is typically a closed-set problem where the model identifies and localizes specific, known classes (e.g., "car," "person," "traffic light") using bounding boxes. The system is trained on labeled examples of exactly what it needs to find.
  • Anomaly Detection is often treated as an open-set problem. The system learns a representation of "normalcy" and flags unknown deviations. For instance, a visual inspection system might be trained on thousands of images of perfect products. It must then identify any scratch, dent, or discoloration as an anomaly, even if it has never encountered that specific defect type before.

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.

  • 製造業におけるAI: 自動光学検査(AOI)システムは生産ラインを監視し、構造上の欠陥をリアルタイムで特定します。 予知保全を導入することで、 工場は機械のdetect 振動や熱シグナルをdetect 、高額なダウンタイムを防止できます。
  • Medical Image Analysis: In healthcare, algorithms analyze MRI or CT scans to highlight potential pathologies. Detecting tumors or fractures that deviate from healthy tissue patterns assists radiologists in making faster diagnoses, a key component of AI in Healthcare.
  • Financial Fraud Detection: Banks utilize statistical anomaly detection to monitor transaction streams. If a user's spending behavior suddenly shifts—such as a large purchase in a foreign country—the system flags the transaction as a potential security breach, as described in financial fraud detection methodologies.
  • Network Intrusion Detection: Cybersecurity tools monitor network traffic for spikes or unusual packet signatures. By establishing a baseline of normal traffic, systems can identify cyberattacks or data exfiltration attempts early.

Implementing Defect Detection with YOLO26

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.

  • Deep Learning Frameworks: Libraries like PyTorch and TensorFlow provide the computational backend for training complex neural networks used in vision-based detection.
  • Data Preparation: Tools for data cleaning are essential to remove outliers from the initial training set so the model learns a clean baseline of "normal."
  • Statistical Libraries: For non-visual data, the Scikit-learn library offers standard algorithms like Isolation Forest and One-Class Support Vector Machine (SVM).
  • Integrated Workflows: The Ultralytics Platform streamlines the lifecycle of these models, offering tools for annotating datasets, cloud-based training, and deploying efficient models like YOLO26 to edge devices for real-time inference.

Ultralytics コミュニティに参加する

AIの未来を共に切り開きましょう。グローバルなイノベーターと繋がり、協力し、成長を。

今すぐ参加