How aliz-f/edge-web-attack-detection-federated works
This repository contains Flower-based federated intrusion-detection experiments using a compact 1D-CNN, organized around binary, six-class, and fifteen-class evaluation. The principal workflow partitions Edge-IIoTset data among clients, trains locally, shares model updates with a server for aggregation, and evaluates the resulting model; raw traffic remains local. Separate experiment variants investigate aggregation strategies and hyperparameter tuning, with plots and simulation configurations supporting result analysis. The runtime links below follow README statements and sampled client code; server wiring and several task implementations were not inspected.
Main entry points: client_app.py Flower clients · server_app.py Flower server · tune_fl_optuna.py Hyperparameter tuning · run_simulations.py Simulation scenarios
Components 14
Classification tasks
- Binary task
1d-cnn_model/2-class/simulations/1d-cnn/task.py - Six-class task
1d-cnn_model/6-class/strategy_tuning/1d-cnn - Fifteen-class task
1d-cnn_model/15-class/simulations/fedmedian/with_hyper_parameters_tuning/1d-cnn
Federated runtime
- Flower clients
1d-cnn_model/2-class/simulations/1d-cnn/client_app.py - Local 1D-CNN
1d-cnn_model/2-class/simulations/1d-cnn/client_app.py - Flower server
1d-cnn_model/2-class/simulations/1d-cnn/server_app.py - Aggregation strategy
1d-cnn_model/6-class/strategy_tuning/1d-cnn/utils/strategies.py
Tuning experiments
- Hyperparameter tuning
1d-cnn_model/15-class/hyper_parameters_tuning/tune_fl_optuna.py - Strategy tuning
1d-cnn_model/6-class/strategy_tuning/1d-cnn/utils/strategies.py - Simulation scenarios
1d-cnn_model/6-class/simulations/fedavg/with_hyper_parameters_tuning/run_simulations.py
Result analysis
- Federated results
1d-cnn_model/2-class/simulations/plot_federated_results.py - Tuning results
1d-cnn_model/15-class/hyper_parameters_tuning/plot_fl_optuna.py
Other components
- Experimenter
- Edge-IIoTset
Connections 13
- Experimenter → Binary task: selects task
README.md - Experimenter → Six-class task: selects task
README.md - Experimenter → Fifteen-class task: selects task
README.md - Edge-IIoTset → Flower clients: local partitions
README.md - Flower clients → Local 1D-CNN: trains locally
1d-cnn_model/2-class/simulations/1d-cnn/client_app.py - Flower clients → Flower server: sends updates
README.md - Flower server → Aggregation strategy: aggregates updates
README.md - Flower server → Flower clients: redistributes model
README.md - Experimenter → Hyperparameter tuning: tunes parameters
README.md - Experimenter → Strategy tuning: tunes strategy
README.md - Experimenter → Simulation scenarios: runs scenarios
README.md - Simulation scenarios → Federated results: supports analysis
- Hyperparameter tuning → Tuning results: analyzes trials