How ctrlseun/flysec works
FLYSEC is an experimental research pipeline for testing connectome-based network anomaly detection, not a deployed service. Its central workflow prepares UNSW-NB15 flows, temporally stimulates a simulated FlyBrain connectome, extracts neural-activity features, and evaluates anomaly classifiers. The repository also contains earlier encoding/readout prototypes, feature and threshold analyses, and a conventional Random Forest comparison. The source excerpts show individual script behavior, but not all artifact handoffs; those links are marked unverified where appropriate.
Main entry points: flybrain_experiment4.py Temporal evaluation · flybrain_experiment.py Initial experiment · flybrain_experiment2.py Population encoding · flybrain_encoder.py Basic encoder
Components 16
Encoding Experiments
- Initial experiment
src/flybrain_experiment.py - Population encoding
src/flybrain_experiment2.py - Basic encoder
src/flybrain_encoder.py - Activity readout
src/flybrain_readout.py - Temporal encoder
src/flybrain_temporal_encoder.py - Temporal evaluation
src/flybrain_experiment4.py
Classification
- Logistic readout
src/flybrain_experiment4_classifier.py - Temporal classifier
src/flybrain_temporal_classifier.py - Conventional baseline
src/baseline.py - Final comparison
src/flybrain_experiment8_final.py
Analysis
- Threshold evaluation
src/flybrain_experiment5_threshold.py - Feature analysis
src/flybrain_experiment6_analysis.py - Feature selection
src/flybrain_experiment7_selection.py
Other components
- Researcher
- UNSW-NB15 flows
- FlyBrain simulator
Connections 21
- Researcher → Temporal evaluation: runs evaluation
- UNSW-NB15 flows → Temporal evaluation: provides flows
src/flybrain_experiment4.py - Temporal evaluation → FlyBrain simulator: stimulates and steps
src/flybrain_experiment4.py - Temporal evaluation → Logistic readout: writes features
- Logistic readout → Threshold evaluation: supplies scores
- Temporal evaluation → Feature analysis: supplies features
src/flybrain_experiment6_analysis.py - Temporal evaluation → Feature selection: supplies features
- Temporal evaluation → Final comparison: supplies features
- UNSW-NB15 flows → Initial experiment: provides flows
src/flybrain_experiment.py - Initial experiment → FlyBrain simulator: stimulates and steps
src/flybrain_experiment.py - UNSW-NB15 flows → Population encoding: provides flows
src/flybrain_experiment2.py - Population encoding → FlyBrain simulator: stimulates and steps
src/flybrain_experiment2.py - UNSW-NB15 flows → Basic encoder: provides flows
src/flybrain_encoder.py - Basic encoder → FlyBrain simulator: stimulates and steps
src/flybrain_encoder.py - UNSW-NB15 flows → Activity readout: provides flows
src/flybrain_readout.py - Activity readout → FlyBrain simulator: stimulates and steps
src/flybrain_readout.py - UNSW-NB15 flows → Temporal encoder: provides flows
src/flybrain_temporal_encoder.py - Temporal encoder → FlyBrain simulator: stimulates and steps
src/flybrain_temporal_encoder.py - Researcher → Conventional baseline: runs comparison
- Researcher → Temporal classifier: runs classifier
- Researcher → Final comparison: runs comparison