How sthasis100/iiot-ids works
IIoT Cyber Shield is a machine-learning intrusion-detection system for IIoT traffic. Its main workflow loads and combines attack/benign CSVs, preprocesses and splits the data, trains and evaluates four detection models, then supports prediction and dashboard reporting. The graph preserves the documented dashboard analysis capabilities. Some dashboard and prediction wiring is documented in the README but not fully visible in the sampled source; those limits are reflected in the evidence citations.
Main entry points: dashboard_app.py Streamlit dashboard · train_model.py Model training · main.py Pipeline orchestration · preprocessing.py Feature preprocessing
Components 20
Detection workflow
- Pipeline orchestration
main.py - Dataset loading
src/data_loader.py - Feature preprocessing
src/preprocessing.py
Modeling and inference
- Model training
src/train_model.py - Random Forest
src/train_model.py - Deep neural net
src/train_model.py - 1-D CNN
src/train_model.py - LSTM autoencoder
src/train_model.py - Saved models and pipeline
models - Evaluation metrics
models/test_evaluation.json - Batch and live prediction
src/predict.py
Dashboard and analysis
- Streamlit dashboard
dashboard/dashboard_app.py - Live detection and alerts
dashboard/dashboard_app.py - Model metrics and curves
dashboard/dashboard_app.py - Traffic and feature analysis
dashboard/dashboard_app.py - Anomaly analysis
dashboard/dashboard_app.py - Performance and model drift
dashboard/dashboard_app.py - Dataset and model registry
dashboard/dashboard_app.py
Other components
- Operator
- IIoT CSVs
Connections 25
- Operator → Pipeline orchestration: runs pipeline
README.md - IIoT CSVs → Dataset loading: provides traffic
README.md - Pipeline orchestration → Dataset loading: loads data
main.py - Dataset loading → Feature preprocessing: returns dataset
README.md - Pipeline orchestration → Feature preprocessing: preprocesses data
main.py - Pipeline orchestration → Model training: starts training
main.py - Feature preprocessing → Model training: supplies splits
README.md - Model training → Random Forest: trains
src/train_model.py - Model training → Deep neural net: trains
src/train_model.py - Model training → 1-D CNN: trains
src/train_model.py - Model training → LSTM autoencoder: trains
src/train_model.py - Model training → Saved models and pipeline: saves models
src/train_model.py - Feature preprocessing → Saved models and pipeline: saves pipeline
README.md - Model training → Evaluation metrics: writes metrics
README.md - Operator → Batch and live prediction: requests predictions
src/predict.py - Batch and live prediction → Saved models and pipeline: loads model and pipeline
src/predict.py - Batch and live prediction → Streamlit dashboard: provides inference
README.md - Operator → Streamlit dashboard: opens dashboard
README.md - Streamlit dashboard → Live detection and alerts: renders
README.md - Streamlit dashboard → Model metrics and curves: renders
README.md - Streamlit dashboard → Traffic and feature analysis: renders
README.md - Streamlit dashboard → Anomaly analysis: renders
README.md - Streamlit dashboard → Performance and model drift: renders
README.md - Streamlit dashboard → Dataset and model registry: renders
README.md - Evaluation metrics → Streamlit dashboard: informs reports
README.md