Comparative Analysis of Transformer and LSTM Architectures for Cybersecurity Threat Detection Using Machine Learning
EAI Endorsed Transactions on AI and Robotics · 2025-09-22 · 4
DOI: 10.4108/airo.9759 ↗At a glance
Journal article in EAI Endorsed Transactions on AI and Robotics, published online on 2025-09-22. Written by Jobanpreet Kaur and 8 co-authors. Cited 12 times so far (Crossref). The full text is freely available (open access, CC BY-NC-SA 4.0).
Abstract (original language)
The growing prevalence of advanced persistent threats (APTs), zero-day exploits, and the rapid proliferation of IoT devices have exposed limitations in traditional cybersecurity approaches. In response, this study presents a comparative analysis of deep learning models—specifically Long Short-Term Memory (LSTM) and Transformer-based architectures—for cybersecurity threat classification from textual data. Leveraging a standardized dataset and consistent preprocessing pipeline, both models are evaluated across key performance metrics, including accuracy, precision, recall, and F1-score. The results demonstrate that Transformer models significantly outperform LSTM-based approaches, exhibiting superior capacity to capture long-range dependencies, handle complex threat narratives, and generalize to previously unseen data. These findings offer valuable insights into the practical application of modern deep learning techniques in cybersecurity and provide a foundation for designing more robust and adaptive threat detection systems.
Cite
APA
Kaur, J., Prabha, M., Samiun, M., Hasan, S. N., Hasan, R., Esa, H., Bhuiyan, M. F. H., Rob, M. A., & Shahi, D. (2025). Comparative Analysis of Transformer and LSTM Architectures for Cybersecurity Threat Detection Using Machine Learning. EAI Endorsed Transactions on AI and Robotics, 4. https://doi.org/10.4108/airo.9759
Vancouver
Kaur J, Prabha M, Samiun M, Hasan SN, Hasan R, Esa H, et al. Comparative Analysis of Transformer and LSTM Architectures for Cybersecurity Threat Detection Using Machine Learning. EAI Endorsed Transactions on AI and Robotics. 2025;4. doi:10.4108/airo.9759
BibTeX
@article{Kaur2025,
author = {Kaur, Jobanpreet and Prabha, Mani and Samiun, Md and Hasan, Syed Nazmul and Hasan, Rakibul and Esa, Hammed and Bhuiyan, Md Fakhrul Hasan and Rob, Md Abdur and Shahi, Durga},
title = {Comparative Analysis of Transformer and LSTM Architectures for Cybersecurity Threat Detection Using Machine Learning},
journal = {EAI Endorsed Transactions on AI and Robotics},
year = {2025},
volume = {4},
doi = {10.4108/airo.9759}
}
EUVIMED