Abstract
As network traffic grows in volume and complexity, traditional signature-based detection systems struggle with efficiency and accuracy. This study proposes a hybrid detection model that integrates an improved K-means clustering algorithm with a multi-class Support Vector Machine (SVM). By utilizing stochastic gradient descent (SGD) to optimize initial clustering, the system effectively filters normal traffic before performing granular threat classification. Experimental results on the KDD 99 dataset demonstrate that the hybrid approach achieves a high detection rate of 87.1% and a low false alarm rate of 3.1%, significantly outperforming standalone clustering and SVM models.
Introduction
In the era of Big Data, network administrators face an explosion of traffic volume and variety. Traditional security measures, often reliant on static rules, are increasingly inadequate against sophisticated threats like Denial of Service (DoS), unauthorized probing, and privilege escalation. These systems frequently suffer from low detection efficiency and high false alarm rates. To address these challenges, researchers have developed a multi-stage pipeline designed to maintain high accuracy without being overwhelmed by massive volumes of normal traffic.
Methodology
The proposed system employs a "Filter-then-Classify" strategy to optimize processing speed and precision. The model consists of two primary stages:
- Improved K-means Clustering: Standard K-means is prone to suboptimal groupings based on initial starting points. This model incorporates stochastic gradient descent (SGD) to define a loss function and control convergence, making the algorithm more robust at distinguishing between normal and abnormal traffic at a high level.
- Multi-classification SVM: Data flagged as abnormal by the clustering stage is passed to a Support Vector Machine. The SVM performs multi-class classification, breaking down complex threats into dichotomy tasks to precisely categorize the specific type of attack.
Experimental Results
The hybrid model was evaluated using a 10% subset of the KDD 99 dataset, a standard benchmark in network intrusion detection. The dataset includes five main classes: Normal, DoS, Remote to Local (R2L), User to Root (U2R), and Probe attacks.
As shown in the performance comparison, the hybrid model outperformed standalone versions of the algorithms across all key metrics. It achieved a total detection rate of 87.1%, compared to 81.6% for a standard SVM and 76.4% for the improved K-means alone.
Crucially, the false alarm rate was reduced to 3.1%, a significant improvement over the 6.3%–7.6% range seen in individual models. While the system was highly effective at identifying Normal traffic (97.6%) and DoS attacks (94.5%), performance was lower for rarer categories like U2R (78.1%), likely due to the smaller number of training samples available for these specific threats.
Conclusion
The integration of unsupervised clustering as a pre-filter for supervised classification provides a robust framework for cybersecurity in big data environments. By addressing the fundamental weaknesses of K-means and leveraging the precision of SVMs, this hybrid approach offers a scalable solution for modern network threats. Future research will focus on improving detection for rare attack types and transitioning the model toward real-time, dynamic protection systems.
Summary updated