fraud detection challenge for STEG (Tunisian Company of Electricity and Gas) focused on identifying fraudulent meter manipulation through billing history data
# Customer Frauds Detection ๐โก
This project addresses a fraud detection challenge for STEG (Tunisian Company of Electricity and Gas), focusing on identifying fraudulent meter manipulation through billing history data.
## ๐ Table of Contents
- Introduction
- Dataset
- Installation
- Usage
- Streamlit App
- API Usage
- Model Training
- API Documentation
- Methodology
- Results
- Challenges & Trade-offs
- Future Work
- Contributing
- License
## ๐ Introduction
The goal of this project is to develop a machine learning model that can accurately detect fraudulent activities in electricity and gas consumption. By analyzing historical billing data, the model aims to help STEG reduce losses due to fraud.
## ๐พ Dataset
The dataset consists of historical billing data, including features such as client ID, invoice date, consumption levels, and counter types. The target variable indicates whether a client is fraudulent or not.
## ๐ ๏ธ Installation
To run this project, you need to have Python installed along with the required libraries. You can install the dependencies using the following command:
```bash
pip install -r requirements.txt
```
## ๐ Usage
### ๐ซ Streamlit App
We've developed an interactive Streamlit application that provides a user-friendly interface for fraud detection:
1. Start the Streamlit app:
```bash
streamlit run 1_Welcome.py
```
2. Login credentials:
- Username: admin
- Password: Admin01
The app includes several features:
#### ๐ Welcome Page
A welcoming interface introducing the fraud detection system.
#### ๐ Data Explorer
Explore and analyze the dataset with interactive visualizations.
#### ๐ฎ Prediction Interface
Easy-to-use form for making fraud predictions:
- Input transaction details
- Choose between models
- Get instant predictions
Detailed prediction results with confidence scores.
#### โณ History Tracking
Track and analyze prediction history:
- View all past predictions
- Analyze trends
- Export results
### ๐ API Usage
1. โฆ