Skip to content
MeghKantariyaPublic

About

Cybercrime Intelligence & Fraud Risk Engine

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🛡️ CIPHER: Cybercrime Intelligence & Fraud Risk Engine

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.


🌟 Features

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

📁 Project Structure

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

🚀 Getting Started (How to Run on Another PC)

Follow these steps to set up and run CIPHER on your machine:

1. Prerequisites

  • Python 3.9+ installed on your system.
  • Git installed on your system.

2. Clone the Repository

git clone https://github.com/MeghKantariya/CIPHER.git
cd CIPHER

3. Set Up a Virtual Environment

Windows (PowerShell / Command Prompt):

python -m venv venv
.\venv\Scripts\activate

macOS / Linux:

python3 -m venv venv
source venv/bin/activate

4. Install Dependencies

pip install -r requirements.txt

5. Run the CIPHER Dashboard

Launch the interactive web dashboard:

streamlit run src/dashboard.py

After running this command, open your browser at http://localhost:8501.


⚙️ Running ML & Analysis Pipelines

If you wish to re-run data generation, feature engineering, or model training:

  1. Generate Synthetic Data:

    python src/generate_data.py
  2. Feature Engineering:

    python src/feature_engineering.py
  3. Train Model:

    python src/train_optimized_model.py
  4. Calculate Risk Scores:

    python src/risk_scoring.py

📦 Dependencies

  • Data Processing: pandas, numpy
  • Machine Learning: scikit-learn, xgboost, joblib
  • Geospatial: h3
  • Visualization: matplotlib, plotly, streamlit
  • Data Generation: faker

About

Cybercrime Intelligence & Fraud Risk Engine

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages