Abstract
Credit Card Fraud Detection is an open-source AI & Machine Learning project. Credit Card Fraud Detection App built with Streamlit, FastAPI and Docker. Credit card fraud is an inclusive term for fraud committed using a payment card, such as a credit card or debit card. The purpose may be to obtain goods or services or to make payment to another account, which is controlled by a criminal. It is built using Jupyter Notebook, Docker, FastAPI, Streamlit, Machine Learning. The complete source code is publicly available on GitHub under the MIT License, making it a useful reference for students building an AI & Machine Learning mini project or final-year project.
1. Introduction
Credit card fraud is an inclusive term for fraud committed using a payment card, such as a credit card or debit card. The purpose may be to obtain goods or services or to make payment to another account, which is controlled by a criminal.
An end-to-end Machine Learning Project carried out by Group 3 Zummit Africa AI/ML Team to detect fraudulent credit card transactions. Built with FastAPI, Streamlit and Docker.
The machine learning model used for this web application was deployed as an API using the FastAPI framework and then accessed through a frontend interface with Streamlit.
2. Objective
Credit Card Fraud Detection App built with Streamlit, FastAPI and Docker.
This project demonstrates how Jupyter Notebook, Docker, FastAPI can be applied to a real-world AI & Machine Learning problem.
4. Technology Stack
5. System Requirements
General requirements for this technology stack — check the README for exact versions.
- Python 3.8 or later with Jupyter Notebook / JupyterLab (or Google Colab)
- pip for dependencies
- Git (to clone the repository)
6. Installation & Setup
git clone https://github.com/Nneji123/Credit-Card-Fraud-Detection.git
cd Credit-Card-Fraud-Detection- Clone the repository to your Google Colab Instance.
- Install the requirements by running the following codes:
- Change the working directory:
- Install Ngrok to your Google Colab Instance:
- Copy the contents of the app.py file to an empty cell and then run the cell.
- Instantiate ColabCode and run the FastAPI app by running the following code in a new cell:
- Copy the contents of "streamlit_app.py" to an empty cell and at the top of cell write the following code and run the cell.
- Install the requirements by running the following codes in different cells:
!git clone https://github.com/Nneji123/Credit-Card-Fraud-Detection.git%%writefile requirements.txt
colabcode
fastapi
uvicorn
pyngrok!pip install -r requirements.txt!cd /content/Credit-Card-Fraud-DetectionFull setup instructions are in the project README.
7. Future Enhancements
Suggested extensions you can add to make this your own project.
- Deploy the model as a web app with Streamlit, Flask or FastAPI
- Compare against an additional model and report the metric difference
- Add explainability (SHAP / Grad-CAM)
8. Viva / Review Questions
Common questions examiners ask for projects in this domain.
- What dataset does the project use and how was it pre-processed?
- Which algorithm / model architecture is used and why was it chosen over alternatives?
- How are training and testing data split, and how is overfitting avoided?
- Which evaluation metrics (accuracy, precision, recall, F1) are reported and what do they mean here?
- How would you deploy this model for real users?
9. Source Code & License
This project is developed by Nneji123 and published on GitHub under the MIT License. Please follow the license terms and credit the original author when you use or modify this code.
Want to build this as your internship project?
Work on an AI & Machine Learning project like this with mentor guidance, weekly reviews and an internship certificate from Training Trains, Erode — online or offline.
Apply for AI & Machine Learning Internship