Tianyu Liu , Tonghong Chong , Guangquan Xu , Xiao Wang , Peng Peng , JingLi Ma
{"title":"XGBoost-LR: A method for network traffic anomaly detection","authors":"Tianyu Liu , Tonghong Chong , Guangquan Xu , Xiao Wang , Peng Peng , JingLi Ma","doi":"10.1016/j.ijcce.2025.11.007","DOIUrl":null,"url":null,"abstract":"<div><div>With the rapid evolution of internet technology, individuals are facing increasingly severe network security challenges. Confronted with diverse and sophisticated network attacks, traditional methods for network attack detection often struggle to keep pace with these evolving threats, leading to problems such as low anomaly detection accuracy and high false alarm rates. After thoroughly reviewing domestic and international advances in network traffic anomaly detection, this paper introduces a machine learning-based approach, namely the extreme gradient boosting (XGBoost-LR) anomaly traffic detection method. Building on the XGBoost model, this method is designed to address the prevailing issue of low accuracy in current network traffic anomaly detection. Unlike conventional XGBoost+LR approaches that simply stack a single XGBoost model with LR, our method introduces three key innovations: (1) parallel training of multiple diversified XGBoost base classifiers on strategically partitioned data subsets to capture complementary feature representations; (2) a novel two-phase feature interaction mechanism, where base classifiers first learn high-level nonlinear patterns before LR performs fine-grained probabilistic calibration; and (3) dynamic sample re-weighting during ensemble to emphasize hard-to-detect attack categories. This architecture enables more comprehensive feature learning than single-model XGBoost+LR while maintaining computational efficiency. Through strategic dataset segmentation and sub-model parallelism, it effectively identifies malicious traffic, reducing training time and enhancing detection accuracy. Experimental results demonstrate that the proposed method successfully detects and recognizes network traffic anomalies. When compared with several conventional machine learning models using the F1 score, it achieves a modest but consistent improvement in anomaly traffic detection performance.</div></div>","PeriodicalId":100694,"journal":{"name":"International Journal of Cognitive Computing in Engineering","volume":"7 ","pages":"Pages 325-333"},"PeriodicalIF":0.0000,"publicationDate":"2026-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Cognitive Computing in Engineering","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2666307425000658","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/11/30 0:00:00","PubModel":"Epub","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
With the rapid evolution of internet technology, individuals are facing increasingly severe network security challenges. Confronted with diverse and sophisticated network attacks, traditional methods for network attack detection often struggle to keep pace with these evolving threats, leading to problems such as low anomaly detection accuracy and high false alarm rates. After thoroughly reviewing domestic and international advances in network traffic anomaly detection, this paper introduces a machine learning-based approach, namely the extreme gradient boosting (XGBoost-LR) anomaly traffic detection method. Building on the XGBoost model, this method is designed to address the prevailing issue of low accuracy in current network traffic anomaly detection. Unlike conventional XGBoost+LR approaches that simply stack a single XGBoost model with LR, our method introduces three key innovations: (1) parallel training of multiple diversified XGBoost base classifiers on strategically partitioned data subsets to capture complementary feature representations; (2) a novel two-phase feature interaction mechanism, where base classifiers first learn high-level nonlinear patterns before LR performs fine-grained probabilistic calibration; and (3) dynamic sample re-weighting during ensemble to emphasize hard-to-detect attack categories. This architecture enables more comprehensive feature learning than single-model XGBoost+LR while maintaining computational efficiency. Through strategic dataset segmentation and sub-model parallelism, it effectively identifies malicious traffic, reducing training time and enhancing detection accuracy. Experimental results demonstrate that the proposed method successfully detects and recognizes network traffic anomalies. When compared with several conventional machine learning models using the F1 score, it achieves a modest but consistent improvement in anomaly traffic detection performance.