Abstract
Recent intrusion detection studies have achieved high accuracy using deep learning and transformer-based models; however, many approaches suffer from high computational cost, limited energy efficiency, and poor detection of rare attack classes in imbalanced network traffic. To address these challenges, this study proposes a Transformer-Augmented Spiking Neural Network (TASNN) that integrates attention-driven contextual modeling with energy-efficient spiking computation for intrusion detection systems (IDS). The framework incorporates Protocol-Aware Adaptive Normalization (PAAN) and Pseudo-Flow Reconstruction (PFR) to improve robustness to heterogeneous traffic patterns. An adaptive spike encoding strategy, including Multi-Scale Adaptive Spike Encoding (MASE) and Eventified Delta Coding (EDC), converts tabular features into sparse spiking representations. In addition, a Cross-Modal Gating (XMG) mechanism dynamically regulates spiking activity, while Spike-Aware Information Fusion (SAIF) supports stable and interpretable feature selection. Experimental evaluation on benchmark datasets demonstrates that TASNN achieves improved classification performance and reduced computational overhead compared to existing methods, highlighting its suitability for energy-constrained and edge-based intrusion detection scenarios.
Data availability
The datasets used and/or analyzed during the current study available from the corresponding author on reasonable request.
References
Fenjan, A. et al. Adaptive intrusion detection system using deep learning for network security. In Proceedings of the Cognitive Models and Artificial Intelligence Conference. 279–284 (2024).
Turukmane, A. V. & Devendiran, R. M-MultiSVM: An efficient feature selection assisted network intrusion detection system using machine learning. Computers Secur. 137, 103587 (2024).
Kukartsev, V., Kravtsov, K., Stefanenko, O., Podanyov, N. & Bezvorotnykh, A. Using machine learning techniques to simulate network intrusion detection. In 2024 International Conference on Intelligent Systems for Cybersecurity (ISCS). 1–4. (IEEE, 2024).
Mynuddin, M. et al. Automatic network intrusion detection system using machine learning and deep learning. In 2024 IEEE International Conference on Artificial Intelligence and Mechatronics Systems (AIMS). 1–9 (IEEE, 2024).
Umar, M. A., Chen, Z., Shuaib, K. & Liu, Y. Effects of feature selection and normalization on network intrusion detection. Data Sci. Manage. 8 (1), 23–39 (2025).
Maddu, M. & Rao, Y. N. Network intrusion detection and mitigation in SDN using deep learning models. Int. J. Inf. Secur. 23 (2), 849–862 (2024).
Umair, M. B. et al. A network intrusion detection system using hybrid multilayer deep learning model. Big Data. 12 (5), 367–376 (2024).
Srinivasan, V., Raj, V. H., Thirumalraj, A. & Nagarathinam, K. Original research article detection of data imbalance in MANET network based on ADSY-AEAMBi-LSTM with DBO feature selection. J. Auton. Intell. 7 (4), 1094 (2024).
Elsayed, S., Mohamed, K. & Madkour, M. A. A comparative study of using deep learning algorithms in network intrusion detection. IEEE Access. 12, 58851–58870 (2024).
Walling, S. & Lodh, S. An extensive review of machine learning and deep learning techniques on network intrusion detection for IoT. Trans. Emerg. Telecommun. Technol., 36(2), e70064 (2025).
Wang, X. et al. Advanced network intrusion detection with tabtransformer. J. Theory Pract. Eng. Sci. 4 (03), 191–198 (2024).
Devendiran, R. & Turukmane, A. V. Dugat-LSTM: Deep learning based network intrusion detection system using chaotic optimization strategy. Expert Syst. Appl. 245, 123027 (2024).
Xi, C., Wang, H. & Wang, X. A novel multi-scale network intrusion detection model with transformer. Sci. Rep. 14, 23239. https://doi.org/10.1038/s41598-024-74214-w (2024).
Alharthi, A., Alaryani, M. & Kaddoura, S. A comparative study of machine learning and deep learning models in binary and multiclass classification for intrusion detection systems. Array 100406 (2025).
Diana, L., Dini, P. & Paolini, D. Overview on intrusion detection systems for computers networking security. Computers 14 (3), 87 (2025).
Ali, M. L., Thakur, K., Schmeelk, S., Debello, J. & Dragos, D. Deep learning vs. machine learning for intrusion detection in computer networks: A comparative study. Appl. Sci. 15(4), 1903 (2025).
Ahmed, U. et al. Signature-based intrusion detection using machine learning and deep learning approaches empowered with fuzzy clustering. Sci. Rep. 15 (1), 1726 (2025).
Dash, N. et al. An optimized LSTM-based deep learning model for anomaly network intrusion detection. Sci. Rep. 15 (1), 1554 (2025).
Hui, B. & Chiew, K. L. An improved network intrusion detection method based on cnn-lstm-sa. J. Adv. Res. Appl. Sci. Eng. Technol. 44 (1), 225–238 (2025).
Cai, S. et al. DDP-DAR: Network intrusion detection based on denoising diffusion probabilistic model and dual-attention residual network. Neural Netw. 184, 107064 (2025).
Tahir, M., Abdullah, A., Udzir, N. I. & Kasmiran, K. A. A novel approach for handling missing data to enhance network intrusion detection system. Cyber Secur. Appl. 3, 100063 (2025).
Manivannan, R. & Senthilkumar, S. Intrusion detection system for network security using novel adaptive recurrent neural network-based fox optimizer concept. Int. J. Comput. Intell. Syst. 18 (1), 37 (2025).
Deng, P. & Huang, Y. Edge-featured multi-hop attention graph neural network for intrusion detection system. Computers Secur. 148, 104132 (2025).
Kharoubi, K., Cherbal, S., Mechta, D. & Gawanmeh, A. Network intrusion detection system using convolutional neural networks: Nids-dl-cnn for Iot security. Cluster Comput. 28 (4), 219 (2025).
Ahmed, M. A. O., Abdelsatar, Y., Alotaibi, R. & Reyad, O. Enhancing internet of things security using performance gradient boosting for network intrusion detection systems. Alexandria Eng. J. 116, 472–482 (2025).
Thaljaoui, A. Intelligent network intrusion detection system using optimized deep CNN-LSTM with UNSW-NB15. Int. J. Inform. Technol. 1–17 (2025).
Wang, Z. et al. An efficient intrusion detection model based on convolutional spiking neural network. Sci. Rep. 14, 7054. https://doi.org/10.1038/s41598-024-57691-x (2024).
Kamal, H. & Mashaly, M. Advanced hybrid transformer-CNN deep learning model for effective intrusion detection systems with class imbalance mitigation using resampling techniques. Future Internet. 16, 481. https://doi.org/10.3390/fi16120481 (2024).
Funding
Open access funding provided by Manipal Academy of Higher Education, Manipal
Author information
Authors and Affiliations
Contributions
Ganesh Karthik M : Conceptualization, Methodology, ValidationVijay Keerthika: Software, ImplementationSrihari Varma Mantena: Conceptualization, Investigation, Writing - review & editingSiri D: Writing original draft, Validation.Lakshmi Prasanna Yeluri: Writing original draftKranthi Kumar Lella: Software, ImplementationRama Ganesh B: Writing - review & editing.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Karthik, M.G., Keerthika, V., Mantena, S.V. et al. Energy-efficient intrusion detection with a protocol-aware transformer–spiking hybrid model. Sci Rep (2026). https://doi.org/10.1038/s41598-026-37367-4
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-37367-4