Denetimli Makine Öğrenmesi Yöntemleri ile Kredi Kartı Sahteciliğini Tahmin Etme: Karşılaştırmalı Analiz
Güner Altan, Metin Recep ZaferGünümüzde teknolojinin gelişmesiyle birlikte kişi ve kurumların dijital platform aracılığıyla harcama kanal yelpazesi genişlemiştir. Bununla birlikte ödeme yöntemleri dijital çağ ile birlikte kolaylaşmıştır. İnternet aracılığıyla dünyanın bir ucundan yapılan bir harcama saniyeler içinde gerçekleşmektedir. Dijitalleşmenin bu kadar hızlı ve global olması, birçok avantajı barındırırken yapılan harcamaların güvenliğini tespit etmek bir o kadar zor olabilmektedir. Bu bağlamda; bankalar şüphesiz, müşteri ile satıcı arasında güvenli bir alışverişe aracılık eden en önemli kurum haline gelmiştir. Kredi kartı harcamalarının bu denli yoğun olduğu dönemde bankaların söz konusu işlemlerin dolandırıcılık olup olmadığını tespit etmesi hem bankaların karlılığını hem de itibarlarını korumaları açısından çözüme kavuşturulması gereken bir problem olarak görülmektedir. Dinamik bir yapıya sahip olan kredi kartı harcamalarının banka müşterisine ait gerçek bir harcama olduğunu tespit etmek ciddi bir efor gerektirmektedir. Bu bağlamda çalışmanın amacı, denetimli makine öğrenmesi yöntemiyle gerçek ve güncel verilerden yola çıkarak az sayıda öz nitelik ile bir model önerisi sunmaktır. Bu bağlamda bankaların kredi kartı sahteciliği tespitindeki operasyon ve maliyet yükünün hafifletilmesi hedeflenmektedir. Bu kapsamda çalışmamızda kamu sermayeli bir bankaya ait 2023 yılı ocak ayı kredi kartı işlemleri baz alınmıştır. Veri seti 13050 gözlem sayısından oluşmaktadır. Model kurulmasında Python programlama dili kullanılmış olup denetimli makine öğrenmesi tekniklerinden Rassal Orman, Lojistik Regresyon, K-En Yakın Komşu, Karar Ağaçları, Gradyan Güçlendirme gibi sınıflandırmada ayırt etme gücü yüksek olan algoritmalar tercih edilmiştir. Algoritmaların kredi kartı sahtecilik işlemini tahmin etme doğruluk skorları ise Lojistik Regresyon % 92.5, Karar Ağaçları %93.1, K- En Yakın Komşu %86.4, Rassal Orman %91.8, Gradyan Güçlendirme %86. 9 olup bunun yanı sıra kesinlik, duyarlılık, F1 skoru ve ROC-AUC gibi performans metrikleri de incelenmiştir. Çalışmada performanslarından dolayı beş algoritmada önerilmektedir.
Predicting Credit Card Fraud using Supervised Machine Learning Methods: Comparative Analysis
Güner Altan, Metin Recep ZaferCurrently, with the progress of technology, people’s and institutions’ range of expenditure channels via digital platforms has expanded. In addition, payment methods have become easier with the digital age. An expenditure, made from even a distant corner of the World, takes place instantaneously through the Internet. Although the rapid and global nature of digitisation contains many advantages, ensuring transaction security can be challenging. In this context, banks have undoubtedly become the most crucial institutions that mediate safe transactions between customers and sellers. In an era where credit card transactions are so prevalent, it is seen as a problem that needs to be solved by banks to determine whether these transactions involve fraud or not, both for their profitability and reputation. It takes a serious effort to determine that credit card expenditures, characterised by dynamic nature, are real expenses of the customer. Therefore, the aim of this study is to propose a model based on supervised machine learning with using real and current data with a few key features. The objective is to reduce banks’ operational burden and cost when identifying credit card fraud. In this context, the credit card transactions of a state-owned bank in January 2023 were considered, using a dataset comprising 13,050 observations. Python programming language is used for model building, and classification algorithms with high discriminatory power, such as Random Forest, Logistic Regression, K-Nearest Neighbours, Decision Trees, and Gradient Boosting, are preferred, which are machine learning techniques. The accuracy scores of the algorithms used in the model setup were determined as follows: Logistic Regression, 92.5%; Decision Tree, 93.1%; K-Nearest Neighbour 86.4%; Random Forest 91.8% and Gradient Boosting 86.9% and performance metrics, such as precision, recall, F1 score, and ROC-AUC, were also examined. Based on their performances, five algorithms were recommended for this study.
With the progress of digitalisation, customer behaviours in the financial sector are also undergoing transformations. The simplest example of this is the evolution of consumption habits. With the expansion of digital network platforms, consumption has become easier, faster, and more reliable. Undoubtedly, credit card expenditures take precedence over these outlays. In a period characterised by such an elevated intensity of credit card expenditures, the importance of secure shopping has significantly increased for both the customer and the banks. In this context, while banks broaden credit card spending networks, they are simultaneously trying to maintain safety infrastructure. With the progress of online money transactions, banks have abandoned traditional methods and have initiated the use of advanced artificial intelligence-based methodologies to detect fraudulent transactions in credit card expenditures.
In the introductory section of the study, while determining its outlines, it has been noted that credit card expenditures have increased significantly with the globalisation. In parallel with this trend, it has been mentioned that banks may experience challenges because they rely on conventional methods for fraud detection in credit card transactions.
In the second part of this study, a literature review is conducted, and machine learning is briefly mentioned, as well as studies on detecting credit card fraud. In this context, it has been observed that machine learning methods are generally used to detect credit card fraud, and domestic studies are found to be relatively fewer than international studies.
The third and final part of the study covers the practical application phase. This section provides information about the model’s data and preparation. In this study, artificial intelligence-based machine learning methods were used with the aim of shedding light on banks’ ability to detect credit card fraud. Real data from January 2023 is used to create the model, with an observation count of 13050. The dataset was obtained from a public capital bank and has not been shared because it contains customer information for security reasons. The dependent variable of the model consists of two categories: fraud and non-fraud. Independent variables are not detailed. However, other studies have observed that independent variables are not shared. Unlike previous studies, a model proposal is prepared using some features.
During model setup, algorithms with high prediction performance for classification problems are preferred. In this context, Logistic Regression, Decision Tree, K-Nearest Neighbour, Random Forest and Gradient Boosting algorithms have been used. The accuracy scores of the algorithms used in the model setup have been determined as, Logistic Regression 92.5%, Decision Tree 93.1%, K-Nearest Neighbour 86.4%, Random Forest 91.8%, and gradient boosting 86.9%. A detailed analysis of the models was shared comparatively, and unlike previous studies, both ROC-AUC curves and confusion matrices of the models were individually shared in the test performance metrics. In addition, the precision and F1 score metrics of the models are also presented.
Looking at the test results of the models, it is determined that they have high performance in predicting credit card fraud. In this context, the study has demonstrated the successful construction of prediction models using supervised machine learning techniques. Five algorithms were offered as alternatives to the study. As a limitation of this study, the dataset was not publicly available. In addition, the "transaction time" information from the dataset was excluded due to the risk of anomalies. In this context, by adding this information, which was excluded from the dataset for other studies, a new model proposal can be made.