Credit Card Fraud Detection Using Random Forest Algo
Credit Card Fraud Detection Using Random Forest Algo
Random Forest is also called as Random Decision Forest which is used for
Classification, Regression and other tasks that are performed by constructing
multiple decision trees.
This Random Forest Algorithm (RFA) is based on supervised learning and the
major advantage of this algorithm is that it can be used for both Classification
and Regression.
Random Forest Algorithm gives you better accuracy when compared with all
other existing systems and this is most commonly used algorithm.
The use of Random forest algorithm in credit card fraud detection can give
you accuracy of about 90 to 95%.
RFA IMPLEMENTATION IN CREDIT CARD FRAUD DETECTION
In credit card fraud detection the Random Forest Algorithm gives better accuracy in
results.
First all the dataset will be collected and analyzed. During analysis process all the
duplicate values and also the null values will be removed from the dataset.
Now the dataset will be preprocessed based on the amount and transaction time
for finding the accuracy of the resultant dataset.
After the pre processing of dataset into amount and transaction time now the dataset
will be divided into two categories. The dataset is classified in two categories as trained
data and test dataset.
Here for dataset classification we use a software called ‘Scikit-learn’.
After the pre processing of the dataset now we apply the Random Forest
Algorithm. By applying Random Forest Algorithm the pre processed dataset will be
analyzed again and then a confusion matrix will be obtained.
In confusion matrix the dataset will be partitioned into four blocks as True
Positive(TP), True Negative(TN), False Positive(FP) and False Negative(FN).
Now the dataset will be partitioned continuously until all the data is validated.
Now all these partitioned data will be evaluated and finally it will be represented
as separate graphs.
These separate graphs will give only less accuracy about the resultant dataset.