Giter Club home page Giter Club logo

alekla0126 / card_fraud_detection Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 170.27 MB

Credit Fraud Detection for the course project for the master's degree in Software and Systems Engineering.

Home Page: https://alekla0126.github.io/Card_Fraud_Detection/

License: MIT License

Jupyter Notebook 97.69% Shell 0.48% Python 1.31% HTML 0.20% CSS 0.19% Dockerfile 0.05% Dart 0.01% Java 0.04% Objective-C 0.04%
coursework credit-card-fraud-detection creditcard-fraud financial-fraud fraud-detection lstm-neural-networks paper

card_fraud_detection's Introduction

Card Fraud Detection

Welcome to the Credit Card Fraud Detection System! This is a project aimed at detecting and preventing fraudulent transactions in financial institutions. The system uses statistical and machine learning techniques to analyze credit card transactions and identify potential fraudulent activities. It also incorporates a URL feature to improve its ability to detect new and emerging forms of fraud, such as phishing and phone fraud. The system is designed using the Domain-Driven Design (DDD) principles and has four main layers: Presentation, Application, Domain, and Infrastructure. The system aims to adhere in the future to banking security standards such as ISO 27001 and the Payment Card Industry Data Security Standard (PCI DSS) to ensure the security and privacy of user data. The system is scalable, maintainable, and deployable on cloud platforms such as Google Cloud.

Requirements

Requirements

Installation

  1. Clone the repository: git clone https://github.com/Alekla0126/Card-Fraud-Detection
  2. Install the required packages: pip install -r requirements.txt
  3. Run the application:
  • $ cd /cfd
  • $ python app.py

Local usage

  1. Open a web browser and go to http://localhost:5000/.
  2. Enter a URL or a credit card number and click the "Detect" button.
  3. Wait for the prediction result to appear on the screen.

Dataset

The system does not store any user data or credit card information. For this project, synthetic data was generated using the Sparkov Data Generation tool developed by B. Harris [1]. The tool helps generate artificial data that resembles real data without containing any real user information or credit card details. Additionally, a publicly available dataset of phishing URLs from Kaggle, developed by A. Mahmoud [2], was used to train the prediction model.

The database schema includes JSON for temporary storage during runtime but does not persistently store any user information, credit card information, or the generated synthetic data. It primarily consists of a predicted results table with fields for storing the URL, prediction result, and timestamp. This table serves the purpose of capturing the results of the prediction model for analysis and monitoring.

References:

[1] Harris, B. "Sparkov Data Generation." GitHub, 03-May-2023. [Online]. Available: https://github.com/namebrandon/Sparkov_Data_Generation.

[2] Mahmoud, A. "Phishing URL Detection." Kaggle, 03-May-2023. [Online]. Available: https://www.kaggle.com/code/ahmedxmahmoud/phishing-url-detection/input.

DDD

DDD

App deployment

WebApp ConsoleLogs PostManRequests

To do

  • Deploy
  • Test with synthetic data.
  • Get real data.
  • Train and test with real data.
  • Add a captcha.

License

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

card_fraud_detection's People

Contributors

alekla0126 avatar bozzhik avatar

Stargazers

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