Skip to content

This repository contains my online payment fraud detection project using Python

Notifications You must be signed in to change notification settings

seuwenfei/Online-payment-fraud-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Online Payment Fraud Detection

Introduction

Online payment is the most popular transaction method in the world today. However, with an increase in online payments also comes a rise in payment fraud. The objective of this notebook is to train machine learning models for identifying fraudulent and non-fraudulent payments. The dataset is collected from Kaggle, which contains historical information about fraudulent transactions which can be used to detect fraud in online payments.

The dataset consists of 10 variables:

  • step: represents a unit of time where 1 step equals 1 hour
  • type: type of online transaction
  • amount: the amount of the transaction
  • nameOrig: customer starting the transaction
  • oldbalanceOrg: balance before the transaction
  • newbalanceOrig: balance after the transaction
  • nameDest: recipient of the transaction
  • oldbalanceDest: initial balance of recipient before the transaction
  • newbalanceDest: the new balance of recipient after the transaction
  • isFraud: fraud transaction

Python Libraries

pandas, numpy, seaborn, matplotlib, tabulate, sklearn

Random Forest and Naive Bayes were used to identify online payment fraud due to the large dataset.

image

Read the complete Online Payment Fraud Detection project here.

Conclusion

The best performing model is Random Forest for identifying fraudulent and non-fraudulent payments.

About

This repository contains my online payment fraud detection project using Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published