CIPHER is an intelligent fraud risk scoring and cybercrime analytics platform. It combines machine learning (XGBoost), geospatial indexing (Uber H3), and temporal risk modeling to detect fraudulent transactions and analyze ATM-level crime vulnerabilities.
- Machine Learning Fraud Engine: High-accuracy XGBoost risk scoring model trained on spatio-temporal and transactional features.
- Geospatial Intelligence: H3 hexagonal spatial indexing for crime density and ATM location risk analysis.
- Temporal Pattern Detection: Day/night, hourly, and rolling-window fraud rate tracking.
- Interactive Streamlit Dashboard: Full analytics dashboard to explore fraud predictions, ATM risk rankings, and geospatial heatmaps.
CIPHER/
├── data/ # Datasets, analysis outputs, and generated charts
│ ├── cipher_risk_scores.csv # Final risk score output dataset
│ ├── atm_risk_summary.csv # Aggregated ATM risk summary
│ ├── ml_dataset_v6.csv # Feature-engineered training dataset
│ └── *.png # Generated visualization plots
├── src/ # Source code and analysis pipelines
│ ├── dashboard.py # Streamlit interactive web dashboard
│ ├── generate_data.py # Synthetic crime and transaction generator
│ ├── feature_engineering.py # Spatial & temporal feature engineering
│ ├── train_model.py # Model training pipeline
│ ├── risk_scoring.py # Risk calculation & prediction pipeline
│ └── ... # Analysis, validation & evaluation scripts
├── fraud_model*.pkl # Serialized trained model artifacts
├── requirements.txt # Project Python dependencies
├── .gitignore # Git ignore file (excludes venv, caches)
└── README.md # Project documentation
Follow these steps to set up and run CIPHER on your machine:
- Python 3.9+ installed on your system.
- Git installed on your system.
git clone https://github.com/MeghKantariya/CIPHER.git
cd CIPHERWindows (PowerShell / Command Prompt):
python -m venv venv
.\venv\Scripts\activatemacOS / Linux:
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txtLaunch the interactive web dashboard:
streamlit run src/dashboard.pyAfter running this command, open your browser at http://localhost:8501.
If you wish to re-run data generation, feature engineering, or model training:
-
Generate Synthetic Data:
python src/generate_data.py
-
Feature Engineering:
python src/feature_engineering.py
-
Train Model:
python src/train_optimized_model.py
-
Calculate Risk Scores:
python src/risk_scoring.py
- Data Processing:
pandas,numpy - Machine Learning:
scikit-learn,xgboost,joblib - Geospatial:
h3 - Visualization:
matplotlib,plotly,streamlit - Data Generation:
faker