Credit Card Fraudulent Transaction Detection and Prevention
Credit Card Fraudulent Transaction Detection and Prevention
https://doi.org/10.22214/ijraset.2023.50849
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
Abstract: In recent years, online payment methods have been used widely as an outcome of the rapid increase in non-cash and
digital electronic transactions. Credit cards represent one of the electronic payment methods. With the advancement of online
payments in various products and services, the likelihood of credit card fraud has risen compared to the decades-long history of
credit cards. The credit card frauds can be detected by evaluating the credit card purchasing patterns using the historical data in
order to detect the frauds. This data evaluation can help the banks or other organizations offering credit cards to minimize their
losses due to the credit card frauds. The historical data evaluation with the current purchasing patterns requires statistical
modeling, which can automatically evaluate the fraudulent patterns and alarm the banks about the transactions. This helps the
banks for early detection of the frauds, where they can easily eliminate the credit card frauds by declining the suspected
transactions. And also blockchain technology is applied to prevent the hacker to view customers details so that fraudsters can't
use stolen credit card information to open new accounts, obtain loans, and engage in other illegal activities.
Credit card fraud detection and prevention have become essential for banks and other financial institutions to safeguard their
customers' financial transactions. This paper presents an overview of credit card fraud detection and prevention techniques.
Keywords: Credit card, Digital electronic transaction, Fraud detection, Logistic regression algorithm and Fernet Algorithm(
Blockchain ).
I. INTRODUCTION
E-commerce has come a long way since its inception. It has become an essential means for most organizations, companies, and
government agencies to increase their productivity in global trade. One of the main reasons for the success of e-commerce is the
easy online credit card transaction. Whenever we talk about monetary transactions, we also have to take financial fraud into
consideration. Financial fraud is an intentional crime in which a fraudster benefits himself/herself by denying a right to a victim or
by obtaining financial gain. As credit card transactions are the most common method of payment in recent years, the fraud activities
have increased rapidly. There are 1.06 billion credit cards in use in America and 2.8 billion credit cards worldwide. A US citizen, on
average, has four active credit cards. In the European Union (EU), the number of cards carried per person ranges from 0.8 to 3.9.
The numbers have only grown since then from 2016 to now.There were 368.92 billion card transactions worldwide in 2018.
However, the average value per card payment is decreasing in most of the major economies, as a credit card is used more and more
as a preferred financial product compared to other means. The average value per card payment drop indicates that customers are
using a credit card more and more for daily use compared to one-off events like big purchases.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3255
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
A. Motivation
Credit card fraud is a significant problems that affect individuals, businesses and financial institutions. Fraudulent transaction can
result in stolen identities, lost revenue and damage reputations. And due to Digital India schema and covid-19 period the use of
online payment has been increased. So we tried to build the model that detect fraud in instant
B. Problem Statement
Credit cards are a crucial financial tool that give their owners the convenience of making purchases now and having the option to
pay the balance later. Owners of credit cards benefit from deferring payment for a predetermined period of time. Because of this,
credit cards are an obvious target for scammers. These scammers can withdraw a sizeable sum of money without the owner's
knowledge while making it appear as though the real cardholders made the withdrawal. Because they operate covertly and with
great care, that became easier for fraudsters to hack data and use customer card based on their detail to use for transaction.
C. Objectives
The primary objectives of credit card fraud detection and prevention using ML and blockchain are:
1) To minimize losses due to credit card fraud.
2) To improve the efficiency of fraud detection and prevention.
3) To provide a secure and reliable payment system for customers.
4) To enhance customer trust and confidence in financial institutions.
5) To comply with regulatory requirements and industry standards.
By achieving these objectives, financial institutions can ensure that credit card transactions are secure, efficient, and trustworthy,
providing peace of mind to customers and businesses alike.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3256
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
5) Zahra Kazemi et al. [13] proposes a method that plays a new role in this field and prevents fraud with different methods. It has b
een proven to be accurate in detecting fraudulent transactions and reducing the number of false alarms.However, it comes with di
stribution issues and negative price differentials
6) A. O. Adewumi and A.A. Akınyelu offers effective strategies to improve the detection of credit card fraud techniques. This resea
rch focuses specifically on results based on current machine learning in the field and the credit card fraud techniques presented in
this article. The survey shows the current situation in credit card verification. The scam machines now used by merchants and ba
nks are designed to verify transactions by analyzing design and operation.Here, the two main methods for dealing with fraud incl
ude: fraud prevention and fraud detection. The purpose of fraud prevention is to prevent fraud from occurring. The fraud detectio
n strategy identifies fraudulent transactions and then defines the authorization of transactions. Machine learning is the ability to r
un a computer standalone, that is, without following commands. They planned a credit card scam as a collection.This research pr
ocess revealed that different machine learning algorithms are used to solve credit card fraud. Researchers need an objective meas
urement system to control the distribution ofactivities with negative variable costs. Therefore, this approach can improve the perf
ormance of credit card tracking mechanisms.
B. Implementation
1) Import required libraries like pandas, numpy, sklearn, matplotlib, seaborn.
2) Use pandas to upload files.
3) Process data by removing missing values, duplicates, and outliers.
4) Custom selection using correlation analysis and significance analysis.
5) Distribute data for training and testing.
6) Use training methods to train logistic regression models.
7) Optimizing models without using techniques such as competition.
8) Evaluate the performance of the model using metrics such as accuracy, precision, recall, and F1 score.
9) Visualize the results using matplotlib and seaborn.
10) Use patterns to detect fraudulent transactions in real time.
11) Finally, we secured the customer database using the blockchain algorithm, which is the Fernet algorithm.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3257
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
Here we can observe from the histogram that Age group of 50-60 had commited more crime.
Here we can observe which gender types the credit card fraud has occurred more.
Here we can observe from the bar graph the category of merchant that uses credit card more.
C. Flowchart
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3258
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
D. Model Used
1) Detection Method
Machine Learning
2) Logistic Regression
Logistic regression is a statistical model that is commonly used in machine learning for classification problems. In the context of
credit card fraud detection, logistic regression can be used to classify credit card transactions as either fraudulent or legitimate based
on various features such as transaction amount, location, time of day, etc.
The logistic regression model works by fitting a logistic curve to the input data, which is a type of sigmoidal function that ranges
from 0 to 1. The logistic curve is used to model the probability of an event occurring, in this case, the probability that a credit card
transaction is fraudulent.
During training, the logistic regression model learns the optimal parameters that maximize the likelihood of the observed data given
the model. These parameters are then used to make predictions on new data by feeding the input features through the logistic curve
to obtain a predicted probability of fraud.
If the predicted probability of fraud is above a certain threshold, the transaction is classified as fraudulent, otherwise, it is classified
as legitimate. The threshold can be adjusted based on the specific requirements of the credit card company, such as the tradeoff
between false positives and false negatives.
Logistic regression is a popular choice for credit card fraud detection because it is a simple yet effective model that can provide
interpretable results. However, it may not perform well in more complex scenarios where the relationship between the input features
and the target variable is non-linear. In these cases, more advanced machine learning models such as neural networks may be used.
3) Prevention Method
Blockchain Technology
4) Fernet Algorithm
Fernet is a cryptographic library in Python that provides security. It is commonly used for encrypting and decrypting data. Fernet
uses symmetric encryption, which means that it uses the same key for both encryption and decryption. Without the key hacker can't
decrypt the sensitive data and the key only the authorized person only know. In the context of credit card fraud prevention, Fernet
can be used to encrypt sensitive data such as credit card numbers, addresses and names. This can help prevent data breaches and
protect customer information.
Overall, Fernet is a valuable tool for credit card fraud prevention as it provides a high level of security for sensitive data.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3259
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
V. CONCLUSION
As a result, the combination of machine learning (ML) and blockchain technology can be a powerful tool for detecting and preventi
ng credit card fraud. Machine learning algorithms can analyze large volumes of transaction data to identify fraudulent patterns and a
nomalies. Blockchain, on the other hand, offers a secure and tamperproof way to store and distribute this
information, making it harder for scammers to manipulate or change the information.Credit card companies can improve fraud and p
revention capabilities, potentially reduce financial losses, and improve customer service by using machine learning to identify poten
tial fraud and blockchain to protect sensitive data. However, it is important to remember that this transaction is not fraudulent and ad
ditionl security measures must be taken to ensure that the card withdrawal is fully protected.
REFERENCES
[1] Fraud Detection Using Machine Learning: https://aws.amazon.com/ru/solutions/fraud-detection-using-machine-learning/
[2] Credit Card Fraud Detection using Machine Learning Algorithms https://www.sciencedirect.com/science/article/pii/S187705092030065X
[3] ML | Credit Card Fraud Detection: https://www.geeksforgeeks.org/ml-credit-card-fraud-detection/
[4] Detecting Credit Card Fraud using Machine
Learning: https://www.researchgate.net/publication/357213297_Detecting_Credit_Card_Fraud_using_Machine_Learning
[5] Credit Card Fraud Detection: https://www.ijraset.com/research-paper/credit-card-fraud-detection
[6] Credit Card Fraud Detection using Deep Learning: https://ieeexplore.ieee.org/document/9033906
[7] Credit Card Fraud Prevention Using Blockchain: https://ieeexplore.ieee.org/document/9418192
[8] S.B.E. and Portia, A.A., Raj, "Analysis on credit card fraud detection methods, "International Conference on Computer, Communication and Electrical
Technology (ICCET): https://ieeexplore.ieee.org/document/5762457
[9] A New Method for Fraud Detection in Credit Cards Based on Transaction Dynamics in Subspaces: https://doi.org/10.1109/CSCI49370.2019.00137
[10] Using deep networks for fraud detection in the credit card transactions: https://doi.org/10.1109/KBEI.2017.8
[11] Dataset: https://www.kaggle.com/code/ambarishdeb/credit-card-fraud-prediction-eda-ml-evaluation
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3260