How msy2k4/gnn-iot-intrusion-benchmark works
This repository is a reproducible benchmark for edge-level, multiclass IoT intrusion classification. Users build or supply a dataset graph, run dataset-specific notebooks to train GNN architectures under imbalance strategies and evaluate across seeds, then analyze the resulting metrics. The README documents the experiment and analysis workflow; sampled graph-builder code confirms graph preparation and serialized outputs. Notebook internals were not sampled, so their detailed control flow is represented only at the documented subsystem level.
Main entry points: BoT-IoT BoT-IoT runs · ToN-IoT ToN-IoT runs · build_bot_iot_graph.py BoT graph builder · build_ton_iot_graph.py ToN graph builder
Components 18
Graph preparation
- BoT graph builder
graph-builders/build_bot_iot_graph.py - ToN graph builder
graph-builders/build_ton_iot_graph.py - BoT graph artifact
- ToN graph artifact
GNN experiments
- BoT-IoT runs
BoT-IoT - ToN-IoT runs
ToN-IoT - GNN architectures
BoT-IoT - Training strategies
BoT-IoT - BoT run results
results/bot-iot - ToN run results
results/ton-iot
Results analysis
- BoT results analysis
results/bot-iot/analyze_results.py - ToN results analysis
results/ton-iot/analyze_results.py - Analysis tables
Design ablations
- Ablation runs
ablation - Ablation results
results/ablation
Other components
- Benchmark user
- BoT-IoT flows
- ToN-IoT flows
Connections 24
- Benchmark user → BoT graph builder: builds graph
README.md - Benchmark user → ToN graph builder: builds graph
README.md - BoT-IoT flows → BoT graph builder: provides flows
graph-builders/build_bot_iot_graph.py - ToN-IoT flows → ToN graph builder: provides flows
graph-builders/build_ton_iot_graph.py - BoT graph builder → BoT graph artifact: saves graph
graph-builders/build_bot_iot_graph.py - ToN graph builder → ToN graph artifact: saves graph
graph-builders/build_ton_iot_graph.py - Benchmark user → BoT-IoT runs: runs notebooks
README.md - Benchmark user → ToN-IoT runs: runs notebooks
README.md - BoT-IoT runs → BoT graph artifact: loads graph
README.md - ToN-IoT runs → ToN graph artifact: loads graph
README.md - BoT-IoT runs → GNN architectures: evaluates
README.md - ToN-IoT runs → GNN architectures: evaluates
README.md - BoT-IoT runs → Training strategies: trains with
README.md - ToN-IoT runs → Training strategies: trains with
README.md - BoT-IoT runs → BoT run results: writes metrics
README.md - ToN-IoT runs → ToN run results: writes metrics
README.md - Benchmark user → Ablation runs: runs ablations
README.md - Ablation runs → Ablation results: writes metrics
README.md - Benchmark user → BoT results analysis: analyzes results
README.md - Benchmark user → ToN results analysis: analyzes results
README.md - BoT run results → BoT results analysis: provides JSON
results/bot-iot/analyze_results.py - ToN run results → ToN results analysis: provides JSON
results/ton-iot/analyze_results.py - BoT results analysis → Analysis tables: writes tables
results/bot-iot/analyze_results.py - ToN results analysis → Analysis tables: writes tables
results/ton-iot/analyze_results.py