# π‘οΈ FraudGuard Africa
**Real-time Mobile Money Fraud Detection System**
FraudGuard Africa is an end-to-end machine learning system designed to detect fraudulent mobile money transactions in real-time. The project focuses on the African fintech ecosystem and is built to be practical, explainable, and production-ready.
## π Live Demo
Try the live application here:
**FraudGuard Africa Live Demo**
---
## π Project Overview
Mobile money fraud is a growing problem across Africa. This project uses machine learning to detect suspicious transactions with high accuracy while keeping false positives under control.
**Key Features:**
- Real-time fraud prediction
- Feature engineering tailored for mobile money transactions
- FastAPI backend for production use
- Modern Streamlit dashboard for easy testing
- Trained on the PaySim mobile money dataset
---
## π οΈ Tech Stack
- **Language:** Python
- **Machine Learning:** XGBoost
- **Backend:** FastAPI
- **Frontend:** Streamlit
- **Data Processing:** Pandas, NumPy, Scikit-learn
- **Model Persistence:** Joblib
---
## π Project Structure
```bash
fraudguard-africa/
β
βββ data/ # Dataset
βββ models/ # Trained model files
βββ notebooks/ # Exploration & training notebooks
βββ src/
β βββ main.py # FastAPI application
β βββ dashboard.py # Streamlit dashboard
βββ logs/ # Prediction logs
βββ requirements.txt
βββ README.md
```
## How to Run the Project
### Dataset
The dataset is not included in this repository because of its size.
Download the PaySim dataset from Kaggle:
kaggle.com
Place the CSV file inside the `data/` folder.
1. Clone the repository
```bash
git clone
github.com
cd fraudguard-africa
```
2. Create virtual environment
```bash
python -m venv venv
venv\Scripts\ac β¦