A Comparative Study of Distance Metrics in Machine Learning for Credit Card Fraud Detection

Authors

  • Vaishnav Menon Department of Data Sciences and Analytics, Ramaiah University of Applied Sciences, Bengaluru, 560054, Karnataka, India.
  • R Jai Akash Department of Data Sciences and Analytics, Ramaiah University of Applied Sciences, Bengaluru, 560054, Karnataka, India.
  • Niveditta Batra Department of CSE-IT, Jaypee Institute of Information Technology, Noida, 201304, Uttar Pradesh, India.

Keywords:

Fraud detection, unsupervised learning, k-means clustering, distance metrics, class imbalance

Abstract

Background: Credit card fraud detection is a critical problem due to the increasing volume of online transactions and the high costs associated with fraudulent activities. Previous studies in this field have investigated various machine-learning techniques to identify fraudulent transactions, with notable progress made through supervised learning methods. However, these models often face challenges due to the significant class imbalance in fraud detection datasets, where instances of fraud are much less frequent than legitimate transactions.

Purpose: As a result, there is growing interest in unsupervised techniques, such as clustering algorithms, which do not depend on labeled data and may offer improved generalization to new and unseen fraud patterns. These unsupervised approaches can autonomously identify anomalies by grouping transactions based on shared characteristics, making them a valuable alternative for detecting evolving fraudulent activities.

Methods: This work explores different distance metrics in clustering algorithms such as K-Means to identify fraudulent activity in a credit card dataset. The substantial class imbalance is highlighted by the European credit card transactions dataset, which consists of only 0.17\% of fraudulent transactions. The research utilizes multiple sampling techniques to address class imbalance.

Results: The study found that the Euclidean distance metric produced the best results out of all potential techniques when applied to the K-Means algorithm. It emphasizes how crucial it is to deal with class disparities and use unsupervised methods for fraud detection in practical settings.

Conclusions: In future research, there is scope for improvements in fraud detection systems, particularly in terms of finding enhanced algorithms and expanding data availability.

References

Rajeshwari, U., and B. Sathish Babu. "Real-time credit card fraud detection using streaming analytics." In 2016 2nd International Conference on Applied and Theoretical Computing and Communication Technology (iCATccT), pp. 439-444. IEEE, 2016.

Dataset: Andrea, “Credit Card fraud detection - Anonymized credit card transactions labeled as fraudulent or genuine” - Kaggle(2018)

Pranckevičius, Tomas, and Virginijus Marcinkevičius. "Comparison of naive bayes, random forest, decision tree, support vector machines, and logistic regression classifiers for text reviews classification." Baltic Journal of Modern Computing 5, no. 2 (2017): 221.

Sahin, Yusuf, Serol Bulkan, and Ekrem Duman. "A cost-sensitive decision tree approach for fraud detection." Expert Systems with Applications 40, no. 15 (2013): 5916-5923.

Awoyemi, John O., Adebayo O. Adetunmbi, and Samuel A. Oluwadare. "Credit card fraud detection using machine learning techniques: A comparative analysis." In 2017 international conference on computing networking and informatics (ICCNI), pp. 1-9. IEEE, 2017.

Lakshmi, S. V. S. S., and Selvani Deepthi Kavilla. "Machine learning for credit card fraud detection system." International Journal of Applied Engineering Research 13, no. 24 (2018): 16819-16824.

Downloads

Published

2025-03-21

Issue

Section

Articles

How to Cite

A Comparative Study of Distance Metrics in Machine Learning for Credit Card Fraud Detection. (2025). Graduate Journal of Interdisciplinary Research, Reports and Reviews, 2(03), 180-194. https://jpr.vyomhansjournals.com/index.php/gjir/article/view/32

Similar Articles

1-10 of 13

You may also start an advanced similarity search for this article.