A-THENA: Early Intrusion Detection for IoT with Time-Aware Hybrid Encoding and Network-Specific Augmentation
About
The proliferation of Internet of Things (IoT) devices has significantly expanded attack surfaces, making IoT ecosystems particularly susceptible to sophisticated cyber threats. To address this challenge, this work introduces A-THENA, a lightweight early intrusion detection system (EIDS) that significantly extends preliminary findings on time-aware encodings. A-THENA employs an advanced Transformer-based architecture augmented with a generalized Time-Aware Hybrid Encoding (THE), integrating packet timestamps to effectively capture temporal dynamics essential for accurate and early threat detection. The proposed system further employs a Network-Specific Augmentation (NA) pipeline, which enhances model robustness and generalization. We evaluate A-THENA on three benchmark IoT intrusion detection datasets-CICIoT23-WEB, MQTT-IoT-IDS2020, and IoTID20-where it consistently achieves strong performance. Averaged across all three datasets, it improves accuracy by 6.88 percentage points over the best-performing traditional positional encoding, 3.69 points over the strongest feature-based model, 6.17 points over the leading time-aware alternatives, and 5.11 points over related models, while achieving near-zero false alarms and false negatives. To assess real-world feasibility, we deploy A-THENA on the Raspberry Pi Zero 2 W, demonstrating its ability to perform real-time intrusion detection with minimal latency and memory usage. These results establish A-THENA as an agile, practical, and highly effective solution for securing IoT networks.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Traffic Flow Classification | Network Traffic Flows n=30 (test) | Model Size (Disk)40 | 12 | |
| Intrusion Detection | CICIoT WEB 23 | Accuracy100 | 11 | |
| Intrusion Detection | MQTT-IoT-IDS 2020 | Accuracy (A)100 | 11 | |
| Intrusion Detection | IoTID20 | Accuracy A93.83 | 11 | |
| IoT Intrusion Detection | CICIoT23 WEB | Accuracy100 | 8 | |
| IoT Intrusion Detection | MQTT-IoT-IDS 2020 | Accuracy (A)100 | 8 | |
| IoT Intrusion Detection | IoTID20 | A Score93.83 | 8 | |
| Network Intrusion Detection | CICIoT23 WEB (5-fold cross-validation) | Validation Loss2.24 | 3 | |
| Network Intrusion Detection | MQTT-IoT-IDS 2020 (5-fold cross-validation) | Validation Loss1.03 | 3 | |
| Network Intrusion Detection | IoTID20 (5-fold cross-validation) | Validation Loss5.48 | 3 |