Explainability Boosted Anomaly Detection Framework for O-RAN based NextG Networks
Authors: Nurullah Aksu, Ali Fuat Sahin, Semiha Tedik Başaran
Organizations: Faculty of Electrical and Electronics Engineering, Istanbul Technical University, Istanbul, Turkiye · Communications and Signal Processing Research (HISAR) Lab, TUBITAK BILGEM, Kocaeli, Turkiye
The wireless networks have historically faced significant security vulnerabilities, necessitating advanced anomaly detection mechanisms, especially as networks evolve towards 6G and beyond. This study introduces an advanced anomaly detection framework that leverages explainable artificial intelligence to enhance the security of next-generation (NextG) cellular networks. By implementing and evaluating a variety of artificial intelligence models, the framework demonstrates high accuracy and efficient runtime performance in identifying malicious traffic within a realistic Open Radio Access Network (O-RAN) testbed. A key innovation of this work is the integration of post-hoc explainability methods to identify the most critical key performance metrics (KPMs), which enables a significant 80% reduction in dataset complexity without compromising detection accuracy. Additionally, explainability analyses identify several critical attack traffic characteristics, such as protocol type, bandwidth, interval, and duration, to prevent upcoming network attacks. The resulting framework effectively balances computational efficiency, accuracy, and explainability, underscoring its practical applicability for enhancing security in next-generation cellular networks.
Figures & tables
Fig. 1 : Attack detection scenario within an O-RAN network with legitimate and malicious UEs.
#
Metric Name
Description
Unit
Usage
1
★ DRB.PdcpSduVolumeDL
PDCP SDU volume in the downlink
kb
Monitors the downlink data transmitted at the PDCP layer.
2
★ DRB.PdcpSduVolumeUL
PDCP SDU volume in the uplink
kb
Monitors the uplink data transmitted at the PDCP layer.
3
★ DRB.RlcSduDelayDL
RLC SDU delay in the downlink
μ s
Measures latency at the RLC layer in the downlink.
4
★ DRB.UEThpDL
UE throughput in the downlink
kbps
Monitors the data rate in the downlink.
5
★ DRB.UEThpUL
UE throughput in the uplink
kbps
Monitors the data rate in the uplink.
6
DRB.UEBufferSizeUL
UE buffer size in the uplink
kb
Indicates the uplink buffer occupancy at the UE.
TABLE I : Metrics Description
Type
Protocol
BW (Mbps)
Duration (s)
Benign Traffic
Instant Messaging
80 / UDP
0.5–1.5
85–125
Remote Access
22 / TCP
1.5–2.5
85–125
Web Browsing
5222 / TCP
1.5–2.5
85–125
File Transfer
21 / TCP
2.5–3.5
85–125
Streaming
1935 / TCP
2.5–3.5
85–125
TABLE II : Descriptions of Traffic Patterns
Features
Method
Train Acc. (%)
Test Acc. (%)
Train Time (s)
Inf. Lat. ( μ s)
Precision
Recall
F1-Score
All Features
Decision Tree (DT)
97.04
96.25
0.1881
1.60
0.957
0.922
0.939
Random Forest (RF)
97.42
97.01
0.2132
24.70
0.973
0.930
0.951
K-Nearest Neighbor (KNN)
94.70
90.80
0.0027
17.70
0.861
0.842
0.852
Isolation Forest (IF)
80.95
—
0.2416
99.00
0.709
0.679
0.694
Long Short Term Memory (LSTM)
95.82
94.70
167.8298
25.60
0.924
0.895
0.909
Significant Features
Decision Tree (DT)
97.00
96.75
0.0484
0.91
0.973
0.922
0.947
TABLE III : Comparison of Selected Methods on All vs. Significant Features
Network intrusion detection identifies malicious or abnormal network activity to help protect computers, connected devices, and critical infrastructure.
Intrusion detection systems (IDSs) for 5G networks must handle complex, high-volume traffic. Although opaque "black-box" models can achieve high accuracy, their lack of transparency hinders trust and effective operational response. We propose ExAI5G, a framework that prioritizes interpretability by integrating a Transformer-based deep learning IDS with logic-based explainable AI (XAI) techniques. The framework uses Integrated Gradients to attribute feature importance and extracts a surrogate decision tree to derive logical rules. We introduce a novel evaluation methodology for LLM-generated explanations, using a powerful evaluator LLM to assess actionability and measuring their semantic similarity and faithfulness. On a 5G IoT intrusion dataset, our system achieves 99.9% accuracy and a 0.854 macro F1-score, demonstrating strong performance. More importantly, we extract 16 logical rules with 99.7% fidelity, making the model's reasoning transparent. The evaluation demonstrates that modern LLMs can generate explanations that are both faithful and actionable, indicating that it is possible to build a trustworthy and effective IDS without compromising performance for the sake of marginal gains from an opaque model.
Saeid Sheikhi, Panos Kostakos, Lauri Loven
Faculty of Information Technology and Electrical Engineering, University of Oulu, , Oulu, 90570, , Finland
The detection of previously unseen network attacks remains a major challenge for intrusion detection systems. Although supervised learning methods often perform well on known attack classes, they are limited when new attack types are not represented in the training data. Unsupervised methods are more suitable for detecting zero-day attacks, as they do not require labelled attack samples, but they often suffer from high false positive rates, which limits their real-world usefulness. This paper presents UNAD+, an enhanced framework for unknown network attack detection derived from the previously proposed Unknown Network Attack Detector (UNAD). UNAD+ combines a benign-only unsupervised ensemble with Weighted Majority Voting (WMV), a supervised refinement stage trained on pseudo-labelled detections, and a post hoc explainability layer that provides both local and global explanations. The framework was evaluated on the CICIDS2017 and NSL-KDD benchmark datasets. The results show that UNAD+ improves on the original UNAD framework, achieving F1-scores above 98% across the benchmark datasets while significantly reducing false positives and enhancing transparency and deployment suitability through integrated explainability.
Saif Alzubi, Frederic Stahl
Department of Computer Science, University of Exeter, Exeter, UK · German Research Center for Artificial Intelligence GmbH (DFKI), Marine Perception, Marie-Curie-Straße 1, 26129 Oldenburg, Germany
Reliable anomaly detection is a deployment bottleneck for 5G/Open RAN observability and emerging self-optimizing 6G systems, where hundreds of heterogeneous KPIs, severe class imbalance, and strict alert budgets make purely numerical scores brittle. We present KAC, a deployment-oriented KPI-aware multimodal anomaly-detection framework that uses KPI-level residual-text alignment to turn compact operator-style summaries into a learnable feedback signal over full-KPI temporal evidence. This gives the detector broad numerical coverage like modern time-series models, while retaining the sparse KPI-specific reasoning that makes operator feedback sustainable in a future operator-facing workflow. Across public telecom telemetry, enterprise-scale Open RAN observability data, and a Nokia benchmark built from real 5G RAN production packet traces with realism-hardened injected anomalies, KAC achieves strong threshold-based detection performance while remaining competitive on threshold-free ranking metrics. On TelecomTS, at a fixed 2.5 percent false-positive-rate operating point, KAC achieves the highest recall among the evaluated residual-based methods while maintaining comparable precision; across the evaluated benchmarks, it remains robust under substantial class imbalance. KAC is integrated in pre-production shadow mode with Nokia's GKE-based KPI construction pipeline, where it continuously scores telemetry windows alongside an internal packet-level anomaly detector for operational evaluation.
Chiman Salavati, Liang Wu, Kelly Wan +2
University of Connecticut, Storrs, Connecticut, USA · Nokia, Sunnyvale, California, USA