A hybrid machine learning framework for detecting LDoS attacks using hyperparameter optimization and principal component analysis
Heyshanthini Pandiyakumari S1 and Suganya R2
Associate Professor, New Horizon College of Engineering,Bangalore, Kadubeesanahalli, Bengaluru, Karnataka 560103,India2
Corresponding Author : Heyshanthini Pandiyakumari S
Recieved : 16-December-2024; Revised : 26-August-2025; Accepted : 27-August-2025
Abstract
In today’s digitized world, people increasingly rely on intelligent machines to perform everyday tasks. The rapid surge in smart devices has led to a corresponding rise in security vulnerabilities. Among these, the low-rate denial of service (LDoS) attack stands out as particularly dangerous due to its stealthy and variable nature, posing significant challenges for existing intrusion detection systems (IDS). A hybrid approach was proposed to investigate LDoS attack characteristics by combining hyperparameter optimization (HPO) with principal component analysis (PCA). To address the issue of dataset imbalance, the synthetic minority over-sampling technique (SMOTE) is employed. PCA is utilized for dimensionality reduction, with the primary hyperparameter to optimize being n_components, which is fine-tuned using HPO. The study uses the CIC-IDS-2017 and CSE-CIC-IDS2018 datasets to emphasize the importance of dimensionality reduction in improving detection performance. The proposed hybrid method, termed HPO-SMOTE-PCA, is applied to analyze LDoS traffic and extract relevant features. A notable trade-off between the true positive rate (TPR) and accuracy has been observed in prior studies; this research aims to enhance both metrics using the proposed approach. Various machine learning classifiers were trained on the selected features, including logistic regression (LR), support vector machine (SVM), decision tree (DT), random forest (RF), K-nearest neighbors (KNN), kernel SVM, Gradient Boosting, extreme gradient boosting (XGBoost), and naive Bayes (NB). Among them, RF and KNN achieved outstanding results, with KNN attaining a 99.9% detection rate for positive anomalies. PCA, when configured with the optimal number of components, delivered strong results in terms of both mean reconstruction error (MRE) and explained variance ratio (EVR). Overall, KNN emerged as the top-performing classifier across all key metrics, including accuracy, TPR, MRE, and EVR.
Keywords
Low-rate denial of service (LDoS), Intrusion detection system (IDS), Principal component analysis (PCA), Hyperparameter optimization (HPO), Synthetic minority over-sampling technique (SMOTE), Machine learning classifiers.
Cite this article
S HP, R S. A hybrid machine learning framework for detecting LDoS attacks using hyperparameter optimization and principal component analysis. International Journal of Advanced Technology and Engineering Exploration. 2025;12(129):1326-1346. DOI : 10.19101/IJATEE.2024.111102213
