All projects
AI/MLSWEJan 2025 – May 2025

ML Intrusion Detection Evaluation

A scalable pipeline benchmarking RF, XGBoost, and TF-SVM models for network intrusion detection.

My contribution

Built the data preparation and model-comparison pipeline, using macro-F1 to evaluate performance across classes.

0.94
Macro-F1 (XGBoost)
Project evaluation on a balanced CIC-IDS2017 subset using stratified 10-fold cross-validation; not a production detection rate.
119k+
Network flows
Balanced evaluation subset of CIC-IDS2017.
80+
Features analyzed

Highlights

  • Engineered a scalable ML pipeline to benchmark Random Forest, XGBoost, and TensorFlow SVM models on the CIC-IDS2017 dataset (119,000+ balanced network flows).
  • Mitigated extreme class imbalance via strategic data capping and stratified 10-fold cross-validation for robust, realistic evaluation metrics.
  • Hit a 0.94 macro-average F1 with XGBoost by analyzing feature importance across 80+ dimensions to surface the protocol semantics that drive predictions.

Stack

PythonXGBoostscikit-learnTensorFlow

More case studies

Command Palette

Search for a command to run...