Abstract
The high dimensionality of traffic, severe class imbalance, hyperparameter sensitivity, and lack of model interpretability pose challenges to reliable multiclass anomaly detection in Fifth-Generation (5G) core networks. The study presents an optimization-guided and explainable machine-learning framework, Grey Wolf Hyperparameter-Optimized LightGBM Network (GHO-Net), incorporating traffic-flow preprocessing, six domain-derived features, Mutual Information (MI) feature selection, training-only Random Oversampling (ROS), Grey Wolf Optimization (GWO), Light Gradient Boosting Machine (LightGBM) classification, and SHapley Additive exPlanations (SHAP) feature attribution. A total of 1,212,532 traffic records were distributed among nine classes in the cleaned 5G Network Intrusion Detection Dataset (5G-NIDD). MI selected 35 of 53 candidate predictors based on the validation weighted F1-score, and GWO optimized seven LightGBM hyperparameters. GHO-Net achieved 98.1885% accuracy, 98.2100% weighted precision, 98.1885% recall, 98.1887% weighted F1-score, and 99.6784% specificity on an independent test partition. It also obtained ROC-AUC of 0.998 and PR-AUC of 0.985. Pairwise comparisons showed that GHO-Net achieved higher accuracy on hard labels, while Decision Tree, Random Forest, and baseline LightGBM recorded slightly higher accuracy. Baseline LightGBM has the highest ROC-AUC and PR-AUC, whereas GHO-Net has the lowest log loss. The measured inference latency was 0.176860 ms per flow in the offline CPU benchmark. Due to this latency, which is higher than that of the baseline classifiers, and testing in live deployment, it cannot be considered suitable for real-time use in 5G core monitoring.

This publication has 24 references indexed in Scilit: