Network intrusion detection based on improved KNN algorithm

In recent years, network attacks have occurred frequently, and Trojan horses, worms, and ransomware have emerged endlessly on the Internet. This poses a serious threat to cyber security and even national security. Therefore, a new three-branch decision soft increment K-nearest neighbor algorithm is proposed, representing the class cluster as an interval set. The interval set's upper, boundary, and lower bound correspond to the positive, boundary, and negative domains generated by the three-branch decision. An initial K-nearest neighbor algorithm based on representative points is proposed. The new datasets are pre-clustered in the same way to eliminate the influence of data processing order on the final clustering results. The results showed that the improved K-nearest algorithm could accurately classify Normal, Dos, and Probing, and the classification accuracy was above 85%. The accuracy of U2R was lower, with an average of 57.32%. The proposed method had the highest classification accuracy on the dataset, and the detection rate of all types of attacks reached more than 98%. This proposal is of great significance for the protection of network security.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-08-14
DOI
https://doi.org/10.1038/s41598-025-14199-2
Citations
1
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
1.49
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Network intrusion detection based on improved KNN algorithm

Jie Gao, Han Bao
1 citations
Scientific Reports
Network Security and Intrusion Detection
1.49
article

Network intrusion detection based on improved KNN algorithm

Jie Gao, Han Bao
article en
1 citations

Abstract

In recent years, network attacks have occurred frequently, and Trojan horses, worms, and ransomware have emerged endlessly on the Internet. This poses a serious threat to cyber security and even national security. Therefore, a new three-branch decision soft increment K-nearest neighbor algorithm is proposed, representing the class cluster as an interval set. The interval set's upper, boundary, and lower bound correspond to the positive, boundary, and negative domains generated by the three-branch decision. An initial K-nearest neighbor algorithm based on representative points is proposed. The new datasets are pre-clustered in the same way to eliminate the influence of data processing order on the final clustering results. The results showed that the improved K-nearest algorithm could accurately classify Normal, Dos, and Probing, and the classification accuracy was above 85%. The accuracy of U2R was lower, with an average of 57.32%. The proposed method had the highest classification accuracy on the dataset, and the detection rate of all types of attacks reached more than 98%. This proposal is of great significance for the protection of network security.

Scientific ReportsVol. 15(1)
Jiangsu Vocational Institute of Commerce (CN)
Openalex Percentile: Top 14%
Network Security and Intrusion Detection
1.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.