Giter VIP home page Giter VIP logo

shikhararyan / online-payment-fraud-detection-model-eda-classification Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.37 MB

This project implements an online payment fraud detection system, combining exploratory data analysis (EDA) and classification using a decision tree classifier. The model achieves high accuracy in identifying fraudulent transactions, providing valuable insights for secure online transactions.

Jupyter Notebook 100.00%
correlation-analysis decision-tree-classifier exploratory-data-analysis fraud-detection online-payments prediction-model

online-payment-fraud-detection-model-eda-classification's Introduction

Online Payment Fraud Detection Model EDA + Classification

Overview

This project focuses on the development of a machine learning model for online payment fraud detection. It includes exploratory data analysis (EDA) and classification using decision tree classifier. The dataset used contains information about various transactions including transaction type, amount, old and new balances, and fraud labels.

Steps

1. Importing Libraries

  • Libraries such as pandas, numpy, plotly, sklearn, matplotlib, and seaborn are imported for data manipulation, visualization, and model training.

2. Loading the Dataset

  • The dataset containing transaction details is loaded.

3. Visualizing Missing Values

  • Heatmap visualization is used to identify missing values in the dataset.

4. Exploratory Data Analysis

  • Visualization of transaction type distribution.
  • Analysis of transaction types and their corresponding amounts.
  • Examination of fraudulent transactions distribution.
  • Distribution analysis of the 'step' column.
  • Joint plot visualization of 'step' and 'amount'.
  • Countplot of fraudulent transactions based on transaction type.

5. Correlation Analysis

  • Correlation between features and the 'isFraud' column is checked.

6. Transformation (Categorical to Numerical)

  • Categorical features are transformed into numerical values.
  • 'isFraud' column values are converted to 'No Fraud' and 'Fraud' labels.

7. Data Splitting

  • Data is split into training and testing sets.

8. Model Training

  • A decision tree classifier is trained using the training data.

9. Prediction

  • Predictions are made using the trained model for sample features.

Conclusion

The decision tree classifier achieves a high accuracy of 90+ % in detecting fraudulent transactions. The model shows promising results in identifying potential fraud in online payment transactions.

online-payment-fraud-detection-model-eda-classification's People

Contributors

shikhararyan avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.