With the exponential rise in cyber threats, anomaly‐based network intrusion detection systems (NIDSs) have become critical for maintaining robust cybersecurity. This article proposes an optimized long short‐term memory (LSTM) deep learning (DL) model specifically designed to detect anomalies in network traffic. By leveraging temporal dependencies and sequential patterns, the model improves the detection of complex and evolving intrusion behaviors. To further enhance performance, the framework incorporates synthetic minority oversampling technique (SMOTE) and feature selection to address class imbalance and reduce dimensionality. Evaluation using the CICIDS2017 benchmark dataset demonstrates that the proposed model outperforms traditional machine learning (ML) algorithms in terms of accuracy, precision, recall, and F1‐score. The findings highlight the potential of advanced LSTM architectures in significantly enhancing the effectiveness of intelligent IDSs.
Samia Dardouri (Thu,) studied this question.