[Paper Review] Lightweight CNN-BiLSTM based Intrusion Detection Systems for Resource-Constrained IoT Devices
This paper proposes a lightweight CNN-BiLSTM hybrid model for intrusion detection on resource-constrained IoT devices, using a compact CNN for feature extraction and bidirectional LSTM for temporal pattern analysis, achieving 97.28% accuracy in binary classification and 96.91% in multiclassification on the UNSW-NB15 dataset while maintaining low inference complexity suitable for edge deployment.
Intrusion Detection Systems (IDSs) have played a significant role in detecting and preventing cyber-attacks within traditional computing systems. It is not surprising that the same technology is being applied to secure Internet of Things (IoT) networks from cyber threats. The limited computational resources available on IoT devices make it challenging to deploy conventional computing-based IDSs. The IDSs designed for IoT environments must also demonstrate high classification performance, utilize low-complexity models, and be of a small size. Despite significant progress in IoT-based intrusion detection, developing models that both achieve high classification performance and maintain reduced complexity remains challenging. In this study, we propose a hybrid CNN architecture composed of a lightweight CNN and bidirectional LSTM (BiLSTM) to enhance the performance of IDS on the UNSW-NB15 dataset. The proposed model is specifically designed to run onboard resource-constrained IoT devices and meet their computation capability requirements. Despite the complexity of designing a model that fits the requirements of IoT devices and achieves higher accuracy, our proposed model outperforms the existing research efforts in the literature by achieving an accuracy of 97.28\% for binary classification and 96.91\% for multiclassification.
Motivation & Objective
- To address the challenge of deploying high-accuracy intrusion detection systems (IDS) on resource-constrained IoT devices with limited computational power and memory.
- To design a lightweight deep learning architecture that combines the feature extraction strength of CNNs with the sequential modeling capability of BiLSTMs for network traffic analysis.
- To improve classification performance on imbalanced datasets by implementing a weighted loss function tailored to attack class frequencies in the UNSW-NB15 dataset.
- To ensure model efficiency by minimizing parameters and inference time, enabling real-time deployment on edge IoT devices.
- To outperform existing traditional ML and deep learning models in accuracy while maintaining low computational overhead for IoT-specific environments.
Proposed method
- A customized lightweight CNN architecture with fewer layers and parameters is designed to efficiently extract spatial features from network traffic data.
- The extracted features are fed into a bidirectional LSTM (BiLSTM) layer to model temporal dependencies and improve classification of normal and malicious traffic.
- A weighted loss function is applied during multiclassification to address class imbalance, assigning higher importance to underrepresented attack types such as 'Analysis', 'Shellcode', and 'Worms'.
- Hyperparameter tuning is performed using adjusted learning rates, batch sizes, and epoch counts to optimize performance on the UNSW-NB15 dataset.
- The model is trained offline and deployed on IoT devices, where inference time is minimized to ensure real-time detection capability.
- Evaluation is conducted using standard metrics including accuracy, precision, recall, F1-score, and training/prediction time on the UNSW-NB15 dataset.

Experimental results
Research questions
- RQ1Can a hybrid CNN-BiLSTM architecture be optimized to achieve high intrusion detection accuracy while remaining lightweight enough for deployment on resource-constrained IoT devices?
- RQ2How does the integration of a weighted loss function improve the detection performance of minority attack classes in the UNSW-NB15 dataset?
- RQ3What is the trade-off between model accuracy and inference efficiency when deploying a deep learning-based IDS on edge IoT hardware?
- RQ4How does the proposed lightweight CNN-BiLSTM model compare in performance to traditional machine learning models and other deep learning architectures on the UNSW-NB15 benchmark?
- RQ5To what extent does the model’s performance degrade when moving from binary to multiclass classification, and can this be mitigated through architectural and training optimizations?
Key findings
- The proposed CNN-BiLSTM model achieves 97.28% accuracy in binary classification on the UNSW-NB15 dataset, outperforming existing approaches in the literature for this dataset.
- In multiclassification, the model attains 96.91% accuracy, with precision, recall, and F1-score of 97.54%, 97.13%, and 97.33% respectively, demonstrating strong generalization across 10 attack classes.
- The model successfully detects 9 out of 9 'Worm' attacks and 75 out of 76 'Shellcode' attacks, indicating effective handling of minority classes due to the weighted loss function.
- Despite a longer training time of 1220.20 seconds due to increased hyperparameter tuning, the inference time is only 3.20 seconds, making it suitable for real-time deployment on edge devices.
- The confusion matrix shows high diagonal density, especially for the 'Normal' class, confirming strong overall classification performance and model reliability.
- The model outperforms traditional machine learning models such as Logistic Regression, KNN, Decision Trees, GBC, and MLP in all key metrics on the multiclassification task.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.