Class based classification for network intrusion detection
Shaoyuan Weng, Xin Gu, Shaleeza Sohail, Fariza Sabrina
Institute of Software · NSW Department of Education
Key points
From the paper's conclusion- These results demonstrated that our class-based technique is effective for multi-attack prediction.
Abstract
Accurate prediction of intrusion attacks is crucial in the era of Internet of Things to detect and respond promptly to suspicious activities to minimise the damage caused by those attacks. The instances of attacks are always much less than normal traffic and machine learning models are used to detect those comparatively smaller attack classes. For machine learning models the imbalance of classes in the training data results in better accuracy of prediction for majority classes and much less accurate detection of minority classes. In this paper, we propose a class-based classification framework to address the imbalance problem in different categories for network intrusion detection. In the first layer, we train a model for the multi-attack detection and find the class with the best accuracy. Next, the samples labelled as this class are removed while the rest of the data are used to train the model in the next layer. Similar to the previous layer, we train this model for the multi-attack detection and find the class with the best accuracy. This process is repeated until there are only three classes left for training. This model only focuses on the class that has the best performance in each layer. In the prediction phase, we apply the exact matching strategy layer by layer. Once the class is matched, we return the label as the final result; otherwise go to the next layer until a label is matched. The experimental results show that our proposed class-based strategy can improve the performance of the prediction models used. Among all the results, our class-based CatBoost has the best performance in terms of precision, recall, and F1-score where its accuracy is 0.76, the macro average of [precision, recall, F1-score] is [0.75, 0.71, 0.72], and the weighted average of [precision, recall, F1-score] is [0.75, 0.76, 0.75]. These results demonstrated that our class-based technique is effective for multi-attack prediction.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A unified CNN-residual deep learning framework for network intrusion detection using an imbalanced datasetFrontiers in Big Data · 2026
- Comparative Analysis of Machine Learning Classifiers for Lightweight IoT Intrusion Detection Using Feature ReductionarXiv · 2026
- Autoencoder Versus CNN-1D for Network Traffic Intrusion Detection: A Reproducible Comparative Evaluation with Per-Class Analysis on CSE-CIC-IDS2018Journal of Cybersecurity and Privacy · 2026
- Transformer Tokenization Strategies for Network Intrusion Detection: Addressing Class Imbalance Through Architecture OptimizationComputers · 2026
- Fuzzy-clustering-based multi-scale intrusion detection for the industrial internet of things.PloS one · 2026
- A Stability-Aware Adaptive Deep Learning Framework for Robust Intrusion Detection in Network SecurityIranian Journal of Science and Technology Transactions of Electrical Engineering · 2026