Cnn-transformer improves rare attack detection on imbalanced intrusion data
Systematically Optimized CNN-Transformer with Focal Loss for Imbalanced Intrusion Detection on NSL-KDD
Summary
Intrusion detection systems often struggle to spot rare types of attacks because the data is imbalanced, with very few examples of these attacks. The authors used a combination of convolutional neural networks and transformers, along with a special loss function called Focal Loss, to better learn from these rare attacks. They found that carefully tuning Focal Loss without oversampling techniques improved detection accuracy and balanced the results across all attack types. The study also used explanation tools to understand which features influenced their model's decisions and identified why some attack types remain challenging to detect precisely.
What this means in practice
- •For cybersecurity operations teams: Improve detection of rare network attacks in security monitoring using the optimized CNN-Transformer model with Focal Loss on classic benchmarks.
- •For machine learning engineers: Develop models for highly imbalanced classification tasks by applying tuned Focal Loss instead of oversampling to prevent precision loss.
Tested on one dataset.