Research Article

A Benchmark of Unsupervised Anomaly Detectors for Credit Card Fraud under Two Training Protocols

Ruyu Guo*
The Chinese University of Hong Kong, Shenzhen

* Corresponding author: [email protected]

Abstract

Credit card fraud detection is a critical problem in financial security, yet real-world deployment scenarios often lack labeled fraud samples at initial stages, making unsupervised anomaly detection an appealing approach. However, the comparative performance of different unsupervised detectors under varying training data compositions—whether trained exclusively on normal transactions or on mixed data containing unlabeled frauds—remains insufficiently studied. This paper presents a head-to-head benchmark of five unsupervised anomaly detectors—Mahalanobis distance, Isolation Forest, Local Outlier Factor (LOF), One-Class SVM, and Elliptic Envelope—on the publicly available ULB Credit Card Fraud Detection dataset. Each detector is evaluated under two training protocols: novelty detection (trained solely on normal transactions) and outlier detection (trained on the full dataset containing both normal and fraudulent samples). Performance is measured using PR-AUC, Precision@k, and recall at low false positive rates. Results show that Mahalanobis distance and LOF achieve strong performance under the novelty detection protocol (PR-AUC > 0.73) but suffer catastrophic degradation when trained on mixed data, with PR-AUC dropping by 0.57 and 0.72 respectively. Isolation Forest gives solid and reliable results on both two tested protocols, and its PR-AUC score increases slightly from 0.3953 to 0.4432. After parameter adjustment (with parameters set as support_fraction=0.9, contamination=0.01), Elliptic Envelope gets moderate performance (PR-AUC≈0.37) and is almost insensible to protocol changes. The conclusions obtained in this part can provide actual instruction for choosing unsupervised detectors to be used in real fraud detection systems working under various conditions of label availability and data quality.

Keywords: unsupervised anomaly detection; credit card fraud detection; novelty detection; class imbalance; precision-recall AUC
Published: October 13, 2026
DOI: 10.54254/2753-8818/2026.PU37583
Volume: TNS Vol.196
pp. 9-20
Download PDF

References

  1. Hilal, W., Gadsden, S. A., & Yawney, J. (2022). Financial fraud: A review of anomaly detection techniques and recent advances.Expert Systems with Applications, 193, 116429.
  2. Chandola, V., Banerjee, A., & Kumar, V. (2009). Anomaly detection: A survey.ACM Computing Surveys, 41(3), 1-58.
  3. Fernández, A., García, S., Galar, M., Prati, R. C., Krawczyk, B., & Herrera, F. (2018).Learning from imbalanced data sets. Springer.
  4. Liu, F. T., Ting, K. M., & Zhou, Z.-H. (2012). Isolation-based anomaly detection.ACM Transactions on Knowledge Discovery from Data, 6(1), 1-39.
  5. Breunig, M. M., Kriegel, H.-P., Ng, R. T., & Sander, J. (2000). LOF: Identifying density-based local outliers.Proceedings of the 2000 ACM SIGMOD International Conference on Management of Data, 93-104.
  6. Dal Pozzolo, A., Boracchi, G., Caelen, O., Alippi, C., & Bontempi, G. (2018). Credit card fraud detection: A realistic modeling and a novel learning strategy.IEEE Transactions on Neural Networks and Learning Systems, 29(8), 3784–3797.
  7. Le Borgne, Y.-A., Siblini, W., Lebichot, B., & Bontempi, G. (2022).Reproducible machine learning for credit card fraud detection: Practical handbook. Université Libre de Bruxelles.
  8. Fontes, G., Matos, L. M., Matta, A., Pilastri, A., & Cortez, P. (2022). An empirical study on anomaly detection algorithms for extremely imbalanced datasets.Artificial Intelligence Applications and Innovations (AIAI 2022), IFIP Advances in Information and Communication Technology, vol. 646. Springer, 85–95.
  9. Saito, T., & Rehmsmeier, M. (2015). The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets.PLOS ONE, 10(3), e0118432.
  10. Alghushairy, O., Alsini, R., Soule, T., & Ma, X. (2021). A review of local outlier factor algorithms for outlier detection in big data streams.Big Data and Cognitive Computing, 5(1), 1.
  11. Samariya, D., & Thakkar, A. (2023). A comprehensive survey of anomaly detection algorithms.Annals of Data Science, 10(3), 829–850.
  12. Seliya, N., Abdollah Zadeh, A., & Khoshgoftaar, T. M. (2021). A literature review on one-class classification and its potential applications in big data.Journal of Big Data, 8(1), 122.
  13. Salehi, M., Mirzaei, H., Hendrycks, D., Li, Y., Rohban, M. H., & Sabokrou, M. (2022). A unified survey on anomaly, novelty, open-set, and out-of-distribution detection: Solutions and future challenges.Transactions on Machine Learning Research.