How gurhoshiaa/hybrid_stacked_ids works
This is a reproducible CIC-IDS2017 intrusion-detection research project, not a serving application. Its principal workflow samples and preprocesses network-flow data, trains four base learners and a logistic-regression stack, then evaluates multiclass predictions. Separate research branches study unseen attacks, autoencoder loss and thresholds, component/PCA ablations, SHAP interpretation, and inference latency. The graph reflects the documented workflow and sampled source; unsampled analysis details are included only where the README identifies their purpose.
Main entry points: run_primary_pipeline.py Pipeline runner · results Results artifacts · 02_train_stack.py Stack training · 01_preprocess.py Preprocessing
Components 25
Primary pipeline
- Pipeline runner
src/run_primary_pipeline.py - Preprocessing
src/01_preprocess.py - Processed data
Detection models
- Stack training
src/02_train_stack.py - Base learners
src/02_train_stack.py - Benign autoencoder
src/02_train_stack.py - Stacking classifier
src/02_train_stack.py - Trained model artifacts
models
Evaluation and reporting
- AUC evaluation
src/03_evaluate_auc.py - Confusion analysis
src/04_normalized_confusion.py - ROC analysis
src/05_plot_roc_curves.py - Results artifacts
results - Result table export
src/15_export_result_tables.py
Research analyses
- SHAP interpretation
src/10_shap_analysis.py - Adaptive thresholds
src/11_adaptive_threshold_analysis.py - Autoencoder loss study
src/12_compare_ae_loss.py - Unseen attack rotations
src/13_unseen_split_rotation.py - Component ablation
src/14_component_ablation.py - PCA ablation
src/14_pca_ablation_analysis.py - Inference benchmarking
src/09_benchmark_latency.py - Experiment plots
src/06_plot_component_ablation.py - PCA plots
src/07_plot_pca_ablation.py - Latency plots
src/08_plot_latency.py
Other components
- Researcher
- CIC-IDS2017 CSVs
Connections 38
- Researcher → Pipeline runner: runs
README.md - Pipeline runner → Preprocessing: runs
src/run_primary_pipeline.py - Preprocessing → CIC-IDS2017 CSVs: loads
src/01_preprocess.py - Preprocessing → Processed data: saves
src/01_preprocess.py - Pipeline runner → Stack training: runs
src/run_primary_pipeline.py - Preprocessing → Stack training: provides data
README.md - Stack training → Base learners: trains
src/02_train_stack.py - Stack training → Benign autoencoder: trains
README.md - Stack training → Stacking classifier: trains
src/02_train_stack.py - Base learners → Stacking classifier: provides outputs
src/02_train_stack.py - Benign autoencoder → Stacking classifier: provides error
src/02_train_stack.py - Stack training → Trained model artifacts: saves
README.md - Pipeline runner → AUC evaluation: runs
src/run_primary_pipeline.py - Pipeline runner → Confusion analysis: runs
src/run_primary_pipeline.py - Pipeline runner → ROC analysis: runs
src/run_primary_pipeline.py - AUC evaluation → Trained model artifacts: loads
src/03_evaluate_auc.py - AUC evaluation → Results artifacts: exports metrics
README.md - Confusion analysis → Results artifacts: exports analysis
- ROC analysis → Results artifacts: exports curves
- Researcher → SHAP interpretation: runs
README.md - SHAP interpretation → Trained model artifacts: loads XGBoost
src/10_shap_analysis.py - Researcher → Adaptive thresholds: runs
README.md - Researcher → Autoencoder loss study: runs
README.md - Researcher → Unseen attack rotations: runs
README.md - Researcher → Component ablation: runs
README.md - Researcher → PCA ablation: runs
README.md - Researcher → Inference benchmarking: runs
README.md - Researcher → Experiment plots: runs
README.md - Researcher → PCA plots: runs
README.md - Researcher → Latency plots: runs
README.md - Researcher → Result table export: runs
README.md - Autoencoder loss study → Processed data: uses saved data
src/12_compare_ae_loss.py - Unseen attack rotations → CIC-IDS2017 CSVs: loads
src/13_unseen_split_rotation.py - Component ablation → Trained model artifacts: loads
src/14_component_ablation.py - Result table export → Results artifacts: exports tables
- Experiment plots → Results artifacts: writes plots
- PCA plots → Results artifacts: writes plots
- Latency plots → Results artifacts: writes plots