How sai-srushee-34/cybercrimecaseclassifier works
This is an end-to-end cybercrime complaint classification project: complaints are curated and partitioned, text is vectorized and classified, and a Flask demo returns a category with confidence and feature explanations. Training compares three model families; evaluation covers both held-out and external data. The graph preserves the documented analysis and reporting stages. Some links rely on README workflow descriptions because their implementation excerpts were not shown; dataset and model artifacts are represented by their existing directories.
Main entry points: app.py Flask inference API · evaluate_model.py Test and external evaluation · processed Curated complaints · train_models.py Model training and comparison
Components 16
Data preparation
- Raw complaints
data/raw - Curation and redaction
src/curate_dataset.py - Curated complaints
data/processed - Exploratory analysis
src/eda_analysis.py - Leakage-safe splits
src/split_dataset.py - Train, validation, test
data/processed
Modeling
- Text normalization and TF-IDF
src/text_pipeline.py - Model training and comparison
src/train_models.py - Selected model pipeline
models
Evaluation
- Test and external evaluation
src/evaluate_model.py - External benchmark
data/final - Metrics and prediction reports
reports
Live classification
- Complaint input and results UI
templates/index.html - Flask inference API
app.py
Other components
- Complaint submitter
- Web user
Connections 17
- Raw complaints → Curation and redaction: curates
README.md - Curation and redaction → Curated complaints: writes
README.md - Curated complaints → Exploratory analysis: analyzes
src/eda_analysis.py - Curated complaints → Leakage-safe splits: partitions
src/split_dataset.py - Leakage-safe splits → Train, validation, test: writes
src/split_dataset.py - Train, validation, test → Model training and comparison: trains on
src/train_models.py - Model training and comparison → Text normalization and TF-IDF: uses
src/train_models.py - Model training and comparison → Selected model pipeline: exports
README.md - Selected model pipeline → Test and external evaluation: evaluated by
src/evaluate_model.py - External benchmark → Test and external evaluation: benchmarks
src/evaluate_model.py - Train, validation, test → Test and external evaluation: tests on
src/evaluate_model.py - Test and external evaluation → Metrics and prediction reports: generates
src/evaluate_model.py - Web user → Complaint input and results UI: enters complaint
README.md - Complaint input and results UI → Flask inference API: posts text
README.md - Flask inference API → Selected model pipeline: loads model
app.py - Flask inference API → Text normalization and TF-IDF: infers with
app.py - Flask inference API → Complaint input and results UI: returns results
README.md