Code Monkey home page Code Monkey logo

daniel-andarge / aiml-financial-fraud-detection-model Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 7.88 MB

The Fraud Detection project aims to improve identification of fraudulent activities in e-commerce and banking by developing advanced machine learning models that analyze transaction data, employ feature engineering, and implement real-time monitoring for high accuracy fraud detection.

License: MIT License

Makefile 0.04% Jupyter Notebook 83.25% Python 0.65% HTML 16.06%
python ci-cd eda feature-engineering flask-api lime model-explainability numpy pandas scikit-learn shap sql

aiml-financial-fraud-detection-model's Introduction

Machine Learning-based Fraud Detection for E-commerce and Banking Transactions

The Fraud Detection project for E-commerce and Banking Transactions aims to significantly improve the identification of fraudulent activities within these sectors. It focuses on developing advanced machine learning models that analyze transaction data, employ sophisticated feature engineering techniques, and implement real-time monitoring systems to achieve high accuracy in fraud detection.

Table of Contents

  1. Exploratory Data Analysis (EDA)
  2. Model Building and Training
  3. Model Explainability Using SHAP
  4. Model Deployment and API Development
  5. Contributing
  6. License

1. Exploratory Data Analysis (EDA)

Univariate Analysis

featureEng

Bivariate Analysis

Feature Engineering

featureEng

2. Model Building and Training

After training and testing six models (three for each dataset), we selected the following models:

2.1 Fraud-IP Dataset - XGBoost Model

xgboost xgboost2

2.2 Credit Card Dataset - Logistic Regression with StandardScaler

lr1 lr2

3. Model Explainability Using SHAP

Summary Plot

summary plot

Force Plot

forceplot

4. Model Deployment and API Development

Running the Flask App

runflask

Testing the API

testflask

Building Docker Image

build

Running Docker Container

runflask

Testing the API from Postman

Generated 3 new instances and sent a request to the fraud detection model api.

postman

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

aiml-financial-fraud-detection-model's People

Contributors

daniel-andarge avatar

Stargazers

 avatar

Watchers

 avatar Paul J. avatar

Forkers

vonpaulustrusta

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.