Code Monkey home page Code Monkey logo

online-payment-fraud-detection's Introduction

Online-Payment-Fraud-Detection

Online payment fraud detection is a logistic regression based prediction model that predicts whether the given transaction is fraud or not with an accuracy of 91.0%. Dataset for this project is taken form kaggle and can also be downloaded with the help of the given link/api call. Link: https://www.kaggle.com/datasets/rupakroy/online-payments-fraud-detection-dataset Dataset API Call: kaggle datasets download -d rupakroy/online-payments-fraud-detection-dataset

Prediction model was created using a sequence of methodologies which are:

1.Data wrangling: Data cleaning was not required for the dataset as it already had the data encoded in the proper format.

2.Data preprocessing: Conversion of categorical variables to discrete numbers for the prediction algorithm. Information about the transaction ID details was retained by setting it as the index.

3.Exploratory data analysis: Usage of libraries such as Matplotlib and Seaborn to check relation between feature values. Feature selection by feature and correlation analysis. Dropping features with very low correlation to improve the running time of the algorithm and reducing hidden parameters.

4.Prediction model: A major issue of class imbalance is handled by SMOTE(Synthetic Minority Oversampling Technique) to create equal classes for each of the target values. Logistic regression is chosen as the running algorithm due to its simplicity and high accuracy on the data.

5.Model tuning: Hyperparameter tuning on a logistic regression model to predict the final values. 3-fold cross validation test and classification reports were used to check model suitability.

An overall accuracy metric of 91.0% is achieved for the prediction model.

online-payment-fraud-detection's People

Contributors

akankshaajoshi 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.