An Insight on Evaluation Metrics Under the Imbalanced Case of Anomaly Detection

· Source: stat.ML updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, extended

Summary

This work systematically analyzes four common anomaly detection evaluation metrics (AUROC, AUPR, F1-score, and MCC), studying their behavior across a wide range of class imbalance ratios. It introduces "metric landscapes," visualizations that relate metric values to True Positive Rate (TPR) and True Negative Rate (TNR), providing an intuitive view of metric preferences and stability. The analysis covers Time-Series Anomaly Detection (TSAD), One-Class Classification (OCC), and Image Anomaly Detection (IAD) using datasets like UCR anomaly archive, PSM, PUMP, SWaT, WaDi, CIFAR-10, MVTec AD, and ViSA. Key findings include AUROC and MCC remaining stable around 0.5 in random predictions, while AUPR and F1-score increase with positive sample proportion. The study offers practical guidance for interpreting and comparing anomaly detection results across datasets with different imbalance ratios.

Key takeaway

For Machine Learning Engineers evaluating anomaly detection models, recognize that standard metrics like AUROC, AUPR, F1-score, and MCC convey different meanings depending on the anomaly ratio. You should analyze metric landscapes to understand how these metrics emphasize True Positive Rate (TPR) and True Negative Rate (TNR) trade-offs under specific class imbalances. This ensures accurate interpretation and comparison of model performance across diverse datasets.

Key insights

Anomaly detection metric interpretation requires understanding their behavior across varying class imbalance ratios.

Principles

Method

The paper uses "metric landscapes," which map metric scores over the space of sensitivity (TPR) and specificity (TNR) operating points, to visualize metric preferences and stability under varying anomaly ratios.

In practice

Topics

Best for: Research Scientist, AI Engineer, Computer Vision Engineer, AI Scientist, Machine Learning Engineer, Data Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by stat.ML updates on arXiv.org.