Coder Social home page Coder Social logo

limkhashing / credit-card-fraud-detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 3.0 21.41 MB

:credit_card: Explore Decision Tree, Naive Bayesian and Classification using Frequent Patterns in detecting credit card fraudulent transactions

License: Apache License 2.0

Java 1.11% Jupyter Notebook 98.35% Python 0.24% R 0.29%
data-science machine-learning decision-tree naive-bayes-classifier cba frequent-pattern-mining

credit-card-fraud-detection's Introduction

Research in Machine Learning algorithms in Credit Card Fraud Detection

FYP

This is a research project collaborated with Cardzone Sdn Bhd, which aims to investigate Data Mining and Machine Learning techniques and identifies potential solutions in detecting fraudulent transactions

Outcomes

As a result of the literature study and discussion, Naïve Bayesian, Decision Tree, Frequent Pattern-growth (FP-growth) and Classification using Frequent Patterns have been selected as Data Mining and Machine Learning algorithms for fraud detection.

The justification for selected algorithm also take into the account of the requirements by the company, such as:

  • Decision Tree -- Able to provide fraud rules, which can be embedded into the rule engine
  • Naïve Bayesian -- Able to provide probability, such as how probable is the transaction is a fraud
  • FP-growth -- To mine frequent patterns out from the fraud dataset.
  • Classification using Frequent Patterns -- From all of the fraud and non-fraud frequent patterns, generate Association Rules, which then use it as a rule classifier model to classify fraudulent transaction.

⚠️ Due to the Privacy and Confidentiality of customers data, the original dataset that primarily used for train and test Machine Learning models will not be share out.

Outlines

  • Java -- Contains training and testing for all of the algorithms mentioned. Deployment of models also in this directory
  • Python -- Contains Exploratory Data Analysis and Visualization for both benchmark and original dataset. A preprocessing script also available for the original dataset
  • R -- Contains training and testing for all of the algorithms mentioned. R code is the primary code base for this research project

Dataset used

  • creditcard.csv -- Taken from Kaggle as a benchmark dataset
  • cz_authtxn.csv -- Original dataset that gotten from Cardzone Sdn Bhd
  • preprocessed_dataset.csv -- Preprocessed dataset from the original dataset

Built With

Sample Machine Learning model test performance

Sample Machine Learning model test performance

Inspect test set with truth value and predicted value

Inspect test set

Deployment

IBM Watson was chosen as it allows building custom Machine Learning models from scratch and also provide APIs for calling the model to make on-demand online predictions. Once the model deployed as PMML on IBM watson, it will return a JSON result states its probability fraud value

Live Online Prediction

Live Online Prediction

Authors

credit-card-fraud-detection's People

Contributors

dependabot[bot] avatar limkhashing avatar

Stargazers

 avatar

Watchers

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