Generalizability Assessment of Learning‐Based Intrusion Detection Systems for <scp>IoT</scp> Security: Perspectives of Data Diversity

ABSTRACT Machine learning (ML) and deep learning (DL) models have become vital tools in Intrusion Detection Systems (IDS), yet their effectiveness depends heavily on the quality and distribution of training data. This study investigates the impact of dataset size and dataset balance on the performance of ML and DL models using the CIC‐IDS 2017 dataset. Five subsets (20%, 40%, 60%, 80%, and 100% of the dataset) were created to assess learning models across varying dataset sizes. Four models, including Random Forest (RF), Artificial Neural Network, Convolutional Neural Network (CNN), and CNN+Long‐Term Short Memory (CNN+LSTM), were trained and evaluated on these subsets, focusing on precision, recall, and F1‐score. To test model generalizability, a synthetic dataset of 20 million over‐sampled samples was generated using Synthetic Minority Oversampling Technique, followed by manual under‐sampling to create a balanced dataset of 1.5 million samples with approximately 100 000 samples per attack class. Upon generalizability assessment of already trained models on the synthetically generated datasets, CNN+LSTM consistently outperformed other models in generalizability but utilized more time for training and testing in each case. The RF showed the weakest generalizability performances but was the fastest in both training and testing scenarios. Moreover, to evaluate the importance of the dataset in general and the balanced dataset in particular, we have also considered the NSL‐KDD dataset and evaluated all four learning models for multiple classifications and binary classification. Our results highlight the importance of the dataset, balanced dataset, and structure of learning models.

Authors

Institutions

Publication Details

Journal
Security and Privacy
Published
2025-03-01
DOI
https://doi.org/10.1002/spy2.70014
Citations
3
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
4.46
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Generalizability Assessment of Learning‐Based Intrusion Detection Systems for IoT Security: Perspectives of Data Diversity

Yashwant Singh, Narinder Verma, Zakir Ahmad Sheikh, Abdulatif Alabdulatif et al.
3 citations
Security and Privacy
Network Security and Intrusion Detection
4.46
article

Generalizability Assessment of Learning‐Based Intrusion Detection Systems for IoT Security: Perspectives of Data Diversity

Yashwant Singh, Narinder Verma, Zakir Ahmad Sheikh, Abdulatif Alabdulatif, Sudeep Tanwar
article en
3 citations

Abstract

ABSTRACT Machine learning (ML) and deep learning (DL) models have become vital tools in Intrusion Detection Systems (IDS), yet their effectiveness depends heavily on the quality and distribution of training data. This study investigates the impact of dataset size and dataset balance on the performance of ML and DL models using the CIC‐IDS 2017 dataset. Five subsets (20%, 40%, 60%, 80%, and 100% of the dataset) were created to assess learning models across varying dataset sizes. Four models, including Random Forest (RF), Artificial Neural Network, Convolutional Neural Network (CNN), and CNN+Long‐Term Short Memory (CNN+LSTM), were trained and evaluated on these subsets, focusing on precision, recall, and F1‐score. To test model generalizability, a synthetic dataset of 20 million over‐sampled samples was generated using Synthetic Minority Oversampling Technique, followed by manual under‐sampling to create a balanced dataset of 1.5 million samples with approximately 100 000 samples per attack class. Upon generalizability assessment of already trained models on the synthetically generated datasets, CNN+LSTM consistently outperformed other models in generalizability but utilized more time for training and testing in each case. The RF showed the weakest generalizability performances but was the fastest in both training and testing scenarios. Moreover, to evaluate the importance of the dataset in general and the balanced dataset in particular, we have also considered the NSL‐KDD dataset and evaluated all four learning models for multiple classifications and binary classification. Our results highlight the importance of the dataset, balanced dataset, and structure of learning models.

Security and PrivacyVol. 8(2)
Qassim University (SA), Nirma University (IN), Central University of Jammu (IN)
Openalex Percentile: Top 6%
Network Security and Intrusion Detection
4.46
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.