Credit Card Fraud Detection Using Machine Learning
Credit Card Fraud Detection Using Machine Learning
ISSN No:-2456-2165
Abstract: It is difficult for credit card firms to detect Fraud detection is a procedure that identifies and stops
malicious activities like fraudulent transactions which scammers from making money in dubious ways. It is a
cause its users to make payments from their accounts collection of actions performed to expose and thwart
without their knowledge for the items that they did not fraudsters' attempts to gain money or property fraudulently.
purchase leading them to financial loss. As the world is The building of a model that will produce the best outcomes
moving towards digitalization the use of digital money in detecting and avoiding the incidence of fraudulent
has also increased which has also led to a rise in fraud transactions is referred to as detecting credit card theft with
associated with them parallelly. There are several machine learning.
methods applied to stop fraudulent activities but
fraudsters keep on trying to find new ways and methods The work of detecting fraud is quite challenging; there
and always come up with unique ideas to break the are many characteristics that must be chosen and
security mechanism to commit fraudulent transactions categorized, and the categorization of these parameters
making billions of losses to banks and credit card users determines the effectiveness of any detection system.
globally. Therefore, there is a great demand for a Furthermore, the current models can only determine the
technique for detecting credit card made fraudulent possibility of a transaction being fraudulent based on the
transaction that not only prevents it but also accurately analysis of user behaviours and activities. They attempt to
and efficiently anticipates before it happens. This paper identify patterns in the way users spend their money and
uses and explains various techniques for detecting credit evaluate if a transaction is legitimate or not.
card fraud, conducts a thorough analysis of both the
existing models and the proposed model, and then Credit card fraud happens usually when there are:
conducts a comparison of these techniques based on
achieved accuracy, false alarm rate, and detection rate. 1. Clone Transactions: - As the name suggests it refers to
a duplication of a transaction. It is an easy way to copy
Keywords:- Random Forest, Logistic Regression, Decision all the information from any existing transaction and are
Tree, SVM (Support Vector Mechanism), False Alarm Rate frequently a well-liked technique for doing transactions
(FAR), Decision Rate. that resemble the real thing.
2. Account Theft: - It often occurs when a person's private
I. INTRODUCTION information, such as login credentials, the answer to a
secret question, their birthdate, or any other information
As the world is moving towards digitalization, the use that is confidential, is taken by the culprit, who can then
of digital money, and Internet Banking has become very use it to carry out money transactions.
common, any individual who is eligible can easily get a 3. False Application Fraud: - As discussed above, account
credit card issued from their bank to make any kind of theft is generally coupled with application fraud. It
online transactions, a credit card is a very thin plastic card signifies a fake account that is often referred to as one
that includes unique credit card number, cardholder’s name, that has been applied for using another individual's name
signature, CVC code and validity information of the card, and identity.
these information is required to make any online transaction, 4. Credit Card Skimming (electronic or manual): -
however with increase of credit card users, the credit card Skimming a credit card refers to producing an
fraudulent activities has also increased parallelly. Today, unauthorized copy of a credit card using a skimmer, a
banks, retail readers, ATMs, and online Internet banking device that reads and copies information from the
systems all read information from credit cards. Its security original card. Using skimmers, fraudsters may copy or
relies on both the plastic card's physical security and the duplicate card numbers and other account information,
confidentiality of the credit card number, which is of the preserve it, and then sell it to other criminals. Both
utmost significance. Credit card fraud essentially refers to manually and electronically are capable of being used.
any activity carried out with the intention of deceiving the 5. Account Takeover: - It is one of the most commonly
card's owner as well as the bank which issued it in order to and widely used fraud technique, here fraudsters send
gain personal information for other fraud activities. To deceptive calls and emails to cardholders, the messages
prevent such transaction, we need a powerful detection they send feels genuine as if they were sent by the bank
system that combat such activities in their initial stages or any other official body, such messages are used to get
before they become successful. and stealing a person's credentials, bank account
numbers, and other confidential data, CVC code or
The dataset is obtained from Kaggle. After this we our dataset for different models including SVM, Logistic
further analyse the dataset and perform the relevant pre- Regression, Decision Trees and Random Forest. Then we
processing to make the dataset appropriate for our machine also obtain the confusion matrix after applying all the
learning models and removed the unwanted feature time models. At last, we analyse and compare the accuracies of
from our dataset. After cleaning of dataset, we split our all these models.
dataset into testing and training data. We then test and train
Fig 2 Relation between Features and Importance using Random Forest Model.
As discussed above after obtaining the confusion matrix, we perform the comparison between model accuracies, the below
figure fig 5 shows the training and testing scores for the different methods that we have implemented in our model.