Intrusion detection system based on machine learning using least square support vector machine

Abstract Security solutions in the cyber world are essential for enforcing protection against network vulnerabilities and data exploitation. Unauthorized access or attack can be avoided in critical systems using a comprehensive approach via an effective intrusion detection system (IDS). Traditional...

Full description

Saved in:
Bibliographic Details
Main Authors: Pratik Waghmode, Manideep Kanumuri, Hosam El-Ocla, Tanner Boyle
Format: Article
Language:English
Published: Nature Portfolio 2025-04-01
Series:Scientific Reports
Subjects:
Online Access:https://doi.org/10.1038/s41598-025-95621-7
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1849737412158160896
author Pratik Waghmode
Manideep Kanumuri
Hosam El-Ocla
Tanner Boyle
author_facet Pratik Waghmode
Manideep Kanumuri
Hosam El-Ocla
Tanner Boyle
author_sort Pratik Waghmode
collection DOAJ
description Abstract Security solutions in the cyber world are essential for enforcing protection against network vulnerabilities and data exploitation. Unauthorized access or attack can be avoided in critical systems using a comprehensive approach via an effective intrusion detection system (IDS). Traditional intrusion detection techniques are no longer accurate and effective enough to handle the demands of the big data age. Machine learning (ML) methods can be utilized for intrusion detection since the classifier’s performance has significantly increased over the past decade. A significant limitation of most ML-based IDSs is that they often generate alerts for false predictions. This is owing to misclassifications that tend to occur more frequently than actual threats. Despite their effectiveness, these conventional ML-based IDSs often face difficulties scaling to meet the demands of big data. The increasing volume and complexity of datasets pose various challenges, such as high dimensionality, multiple data sources, and the need for a dependable infrastructure. Consequently, the accuracy of an ML model likely declines when irrelevant features are included from a vast dataset. In this paper, the exhaustive feature selection algorithm is employed to assess every possible combination of features in a dataset to evaluate its performance. The selection is based on identifying the feature subset with the highest accuracy. Hence, an ML-based complete security solution is introduced for network intrusion detection using the supervised framework. This framework utilizes quantum-inspired least square support vector machine (LS-SVM) classifier. This algorithm is used to enhance the classification accuracy in terms of reducing false predictions while minimizing the training time. The hyperparameters of our model are tuned by utilizing those selected features to maximize the accuracy. The model developed is verified using three different datasets, which have been widely applied to intrusion detection. The model achieves high detection performance, with accuracy values of 99.3% for NSL-KDD, 99.5% for CIC-IDS-2017, and 93.3% for UNSW-NB15. Precision remains at 1.00 for CIC-IDS-2017 and UNSW-NB15, while recall reaches 1.00 for CIC-IDS-2017, 0.99 for NSL-KDD, and 0.98 for UNSW-NB15. F1-scores follow the same trend, reflecting the classifier’s robust prediction capabilities. In addition, our model demonstrates competitive testing time efficiency in 2.8 s for NSL-KDD, 1.0s for CIC-IDS-2017, and 2.8s for UNSW-NB15. Also, our model requires the minimum training time for all datasets compared to other models. These results highlight the LS-SVM-based model’s suitability for real-time intrusion detection applications.
format Article
id doaj-art-ede82c9267e249f88b51b1df65a79d35
institution DOAJ
issn 2045-2322
language English
publishDate 2025-04-01
publisher Nature Portfolio
record_format Article
series Scientific Reports
spelling doaj-art-ede82c9267e249f88b51b1df65a79d352025-08-20T03:06:54ZengNature PortfolioScientific Reports2045-23222025-04-0115112310.1038/s41598-025-95621-7Intrusion detection system based on machine learning using least square support vector machinePratik Waghmode0Manideep Kanumuri1Hosam El-Ocla2Tanner Boyle3Department of Computer Science, Lakehead UniversityDepartment of Computer Science, Lakehead UniversityDepartment of Computer Science, Lakehead UniversityDepartment of Computer Science, Lakehead UniversityAbstract Security solutions in the cyber world are essential for enforcing protection against network vulnerabilities and data exploitation. Unauthorized access or attack can be avoided in critical systems using a comprehensive approach via an effective intrusion detection system (IDS). Traditional intrusion detection techniques are no longer accurate and effective enough to handle the demands of the big data age. Machine learning (ML) methods can be utilized for intrusion detection since the classifier’s performance has significantly increased over the past decade. A significant limitation of most ML-based IDSs is that they often generate alerts for false predictions. This is owing to misclassifications that tend to occur more frequently than actual threats. Despite their effectiveness, these conventional ML-based IDSs often face difficulties scaling to meet the demands of big data. The increasing volume and complexity of datasets pose various challenges, such as high dimensionality, multiple data sources, and the need for a dependable infrastructure. Consequently, the accuracy of an ML model likely declines when irrelevant features are included from a vast dataset. In this paper, the exhaustive feature selection algorithm is employed to assess every possible combination of features in a dataset to evaluate its performance. The selection is based on identifying the feature subset with the highest accuracy. Hence, an ML-based complete security solution is introduced for network intrusion detection using the supervised framework. This framework utilizes quantum-inspired least square support vector machine (LS-SVM) classifier. This algorithm is used to enhance the classification accuracy in terms of reducing false predictions while minimizing the training time. The hyperparameters of our model are tuned by utilizing those selected features to maximize the accuracy. The model developed is verified using three different datasets, which have been widely applied to intrusion detection. The model achieves high detection performance, with accuracy values of 99.3% for NSL-KDD, 99.5% for CIC-IDS-2017, and 93.3% for UNSW-NB15. Precision remains at 1.00 for CIC-IDS-2017 and UNSW-NB15, while recall reaches 1.00 for CIC-IDS-2017, 0.99 for NSL-KDD, and 0.98 for UNSW-NB15. F1-scores follow the same trend, reflecting the classifier’s robust prediction capabilities. In addition, our model demonstrates competitive testing time efficiency in 2.8 s for NSL-KDD, 1.0s for CIC-IDS-2017, and 2.8s for UNSW-NB15. Also, our model requires the minimum training time for all datasets compared to other models. These results highlight the LS-SVM-based model’s suitability for real-time intrusion detection applications.https://doi.org/10.1038/s41598-025-95621-7Intrusion detection systemMachine learningDeep learningFeature selectionCyber securityExhaustive feature selection
spellingShingle Pratik Waghmode
Manideep Kanumuri
Hosam El-Ocla
Tanner Boyle
Intrusion detection system based on machine learning using least square support vector machine
Scientific Reports
Intrusion detection system
Machine learning
Deep learning
Feature selection
Cyber security
Exhaustive feature selection
title Intrusion detection system based on machine learning using least square support vector machine
title_full Intrusion detection system based on machine learning using least square support vector machine
title_fullStr Intrusion detection system based on machine learning using least square support vector machine
title_full_unstemmed Intrusion detection system based on machine learning using least square support vector machine
title_short Intrusion detection system based on machine learning using least square support vector machine
title_sort intrusion detection system based on machine learning using least square support vector machine
topic Intrusion detection system
Machine learning
Deep learning
Feature selection
Cyber security
Exhaustive feature selection
url https://doi.org/10.1038/s41598-025-95621-7
work_keys_str_mv AT pratikwaghmode intrusiondetectionsystembasedonmachinelearningusingleastsquaresupportvectormachine
AT manideepkanumuri intrusiondetectionsystembasedonmachinelearningusingleastsquaresupportvectormachine
AT hosamelocla intrusiondetectionsystembasedonmachinelearningusingleastsquaresupportvectormachine
AT tannerboyle intrusiondetectionsystembasedonmachinelearningusingleastsquaresupportvectormachine