An Insight on Evaluation Metrics Under the Imbalanced Case of Anomaly Detection
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
- Metric values depend on prediction quality and class imbalance.
- AUROC and MCC exhibit greater stability across imbalance ratios.
- AUPR and F1-score strongly emphasize positive predictions.
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
- Visualize metric landscapes to understand TPR/TNR trade-offs.
- Select metrics based on anomaly ratio and class emphasis.
Topics
- Anomaly Detection
- Evaluation Metrics
- Class Imbalance
- Metric Landscapes
- AUROC
- Matthews Correlation Coefficient
Best for: Research Scientist, AI Engineer, Computer Vision Engineer, AI Scientist, Machine Learning Engineer, Data Scientist
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by stat.ML updates on arXiv.org.