Skip to Content
Applied SciencesApplied Sciences
  • Article
  • Open Access

30 January 2026

21 Pages

A Multi-Branch CNN–Transformer Feature-Enhanced Method for 5G Network Fault Classification

,
and
School of Electronic Engineering, Beijing University of Posts and Telecommunications, Beijing 100876, China
*
Author to whom correspondence should be addressed.

Abstract

The deployment of 5G (Fifth-Generation) networks in industrial Internet of Things (IoT), intelligent transportation, and emergency communications introduces heterogeneous and dynamic network states, leading to frequent and diverse faults. Traditional fault detection methods typically emphasize either local temporal anomalies or global distributional characteristics, but rarely achieve an effective balance between the two. In this paper, we propose a parallel multi-branch convolutional neural network (CNN)–Transformer framework (MBCT) to improve fault diagnosis accuracy in 5G networks. Specifically, MBCT takes time-series network key performance indicator (KPI) data as input for training and performs feature extraction through three parallel branches: a CNN branch for local patterns and short-term fluctuations, a Transformer encoder branch for cross-layer and long-term dependencies, and a statistical branch for global features describing quality-of-experience (QoE) metrics. A gating mechanism and feature-weighted fusion are applied outside the branches to adjust inter-branch weights and intra-branch feature sensitivity. The fused representation is then nonlinearly mapped and fed into a classifier to generate the fault category. This paper evaluates the performance of the proposed model on both the publicly available TelecomTS multi-modal 5G network observability dataset and a self-collected SDR5GFD dataset based on software-defined radio (SDR). Experimental results demonstrate that the proposed model achieves superior performance in fault classification, achieving 87.7% accuracy on the TelecomTS dataset and 86.3% on the SDR5GFD dataset, outperforming the baseline models CNN, Transformer, and Random Forest. Moreover, the model contains approximately 0.57M parameters and requires about 0.3 MFLOPs per sample for inference, making it suitable for large-scale online fault diagnosis.

1. Introduction

Uses of 5G (Fifth-Generation) networks are being deployed in industrial Internet, intelligent transportation, and emergency communications. In these private networks, different business scenarios introduce various technologies, such as virtualization, cloud-based operations, and network slicing [1]. These technologies improve resource management but make networks more complex, which increases the difficulty of fault troubleshooting [2,3]. For example, wireless interference will reduce the throughput of air-interface links and cause latency fluctuations. Problems in virtualized network elements, such as misconfigurations or software upgrade failures, will trigger service interruptions [4]. Investigating these network faults requires data from multiple time periods and geographic locations, making fault location very difficult [5].
Figure 1 presents a general architecture for 5G network fault diagnosis. The Radio Access Network (RAN) and the Core Network (CN) send the Key Performance Indicators (KPIs) and alarm data to the Operation, Administration, and Maintenance (OAM) system. Once these data are merged, the merged information is sent to the external fault diagnosis module. The module analyzes the information and reports the findings in a management dashboard. The analysis in this study is the design of the fault diagnosis procedure.
Figure 1. General 5G network fault diagnosis architecture.
Conventional network fault-diagnosis techniques rely primarily on threshold testing and experience [6]. These techniques typically assess network connectivity and node functionality using predefined thresholds, triggering an alert immediately upon any anomaly [7]. Such techniques are not accurate for fault diagnosis in 5G network settings and require longer troubleshooting times [8]. In other applications, e.g., remote surgery and 5G-Railways network, low fault detection performance will have severe effects. Therefore, it is essential to develop 5G-specific fault diagnosis techniques.
A number of studies have incorporated convolutional neural networks (CNNs) in fault detection [9]. The model employs convolutional layers to capture local patterns and to recognize anomalies in intricate networks. Nonetheless, CNNs cannot identify global patterns due to the locality of convolutional layers [10]. Long Short-Term Memory (LSTM) [11] has been implemented to overcome this limitation for time-series tasks, as it can model long-range dependencies [12]. To leverage the complementary strengths of CNNs and LSTMs, scholars have proposed hybrid designs. Energy forecasting and machinery monitoring are some of the areas where the hybrid architecture has been successful [13]. But in an experiment on 5G network throughput, many time-series techniques were compared, including CNN, LSTM, and a hybrid CNN-LSTM network. According to the findings, the sequential CNN-LSTM outperforms the CNN alone; however, it still fails to capture complex temporal relations across multiple KPIs [14].
Over the past few years, the development of large language models has been particularly elevated, which is mostly owed to Transformer-based architectures. The main part of the model is a multi-head self-attention component that captures complex dependencies [15,16]. This characteristic aligns well with the requirements of fault detection. Transformer-based architectures have already been proposed by several researchers in this area. To illustrate, some researchers have implemented a Time Series Transformer (TST) in fault-diagnosis experiments on rotating machines. In these studies, the model processes raw 77 vibration signals and achieves high classification accuracy [17]. However, in network fault detection, local features often contain important information about abrupt faults. Transformer models generally need larger datasets to learn such local features [18]. To solve this problem, some researchers have proposed hybrid architectures that combine convolutional neural networks with Transformer modules for fault diagnosis. For example, a study has proposed a WCFormer model that combines convolution-based feature extraction with self-attention mechanisms. In the experiment, the model was applied to bearing fault diagnosis and achieved robust classification performance [19].
Sequential CNN–Transformer architectures also have potential limitations. Some studies have investigated parallel and sequential CNN–Transformer or CNN-ViT architectures. They found that parallel designs can better preserve heterogeneous feature representations [20,21]. This conclusion provides important insight for the model proposed in this study.
In this paper, we propose a parallel CNN–Transformer framework (MBCT) to improve fault diagnosis accuracy in 5G networks. The framework consists of three parallel branches. The first branch employs a CNN to extract local patterns and short-term fluctuations from physical-layer wireless link data [22]. The second branch uses a Transformer to capture cross-layer and long-term dependencies from transmission and scheduling data [15]. The third branch calculates global statistical features, such as mean and kurtosis, to describe quality-of-experience (QoE) metrics. The branch weights are adaptively adjusted via a gating mechanism. The branch outputs are weighted and fused in a feature fusion layer. During backpropagation, attention gradients help adjust the importance of features within each branch. The fused features are then passed through a non-linear transformation and fed into a classifier to produce fault categories. This paper makes the following contributions:
  • We propose a multi-branch CNN–Transformer method that improves feature extraction for 5G network data. The method distributes feature extraction tasks across multiple parallel branches, each designed for different characteristics of 5G fault data.
  • We propose a feature fusion mechanism that incorporates the semantic meaning of 5G KPI data, enabling dynamic adjustment of parallel model weights and adaptive tuning of feature sensitivity within each branch.
  • We apply Integrated Gradients [23] to assess the relevance of network fault data to the model’s decisions, enhancing the interpretability of faults.
We trained and evaluated the model on two datasets: the multi-modal 5G network observability dataset (TelecomTS) [24] and a self-built 5G network fault dataset built with software-defined radio (SDR5GFD). Experimental results demonstrate that the proposed model achieves superior performance in fault classification, achieving 87.7% accuracy on the TelecomTS dataset and 86.3% on the SDR5GFD dataset, outperforming the baseline models CNN, Transformer, and Random Forest. In addition, we discussed our work in relation to the TelecomTS study [24], showing that the proposed model can serve as an upstream module for root cause analysis. The rest of the paper is organized as follows: Section 2 reviews the theoretical background, including an introduction to network faults and their characteristic data, as well as an overview of deep learning models. Section 3 details the methodology developed in this study, including the overall model design and the submodules. Section 4 discusses the results obtained through the proposed methodology. Section 5 concludes the paper.

3. Methodology

This section presents the MBCT framework for 5G network fault classification. The framework improves performance through three parallel branches: a CNN branch for learning wireless link features, a Transformer branch for modeling transmission and scheduling features, and a statistical branch for processing QoE features. The gating module adaptively adjusts the branch weights based on the physical meanings and cross-layer characteristics of 5G KPIs. The outputs from the three branches are weighted and fused in a feature fusion layer, which also adjusts the feature importance within each branch through an attention-weighted mechanism. The fused features are then passed through a non-linear transformation and fed into a classifier to produce fault categories. The overall architecture is illustrated in Figure 2. Subsequent sections elaborate on the modules of the proposed framework.
Figure 2. Overall architecture of the system.

3.1. CNN Branch

The branch aims to identify local temporal patterns in KPI time series that capture short-term changes in wireless link properties. The branch is composed of two layers of 1D convolutional layers. The first layer has a kernel size of 3 and 16 kernels. It can capture rapid variation over very short time intervals, such as small changes in downlink signals or bursts in uplink scheduling. The second layer has a kernel size of 5 and 32 kernels. It incorporates local trends over a slightly extended period of time. The input sequence at this branch is x ∈ R T × C ; T and C refer to the sequence size and channel of features, respectively. Each convolutional layer calculates a feature map as follows:
y t , f = σ ∑ i = 0 k − 1 ∑ c = 1 C W i , c , f · x t + i , c + b f
where k denotes the kernel size, W i , c , f denotes the convolutional filter weights, and b f denotes the bias term. The nonlinear activation function is given by σ ( ⋅ ) , implemented as ReLU. By stacking two layers, the branch progressively learns hierarchical local temporal features.
The features are pooled over time after the convolution operation through global average pooling:
z c = 1 T ∑ t = 1 T y t , f
The outcome is that the local temporal features are summarized by a fixed-length vector z c ∈ R F .

3.2. Transformer Branch

The Transformer branch captures long-range dependencies in transmission and scheduling KPIs. This branch uses a two-layer Transformer architecture with two self-attention heads to capture the complexity of relationships within the input time series.

3.2.1. Position Encoding

The input sequence is x ∈ R T × C ; T and C are the length of sequences and number of channels of features, respectively. In order to enhance the sensitivity of the model to sequence order in 5G fault data, we add a learnable positional embedding to model temporal dependencies:
x ~ t = x t   + p t
Learnable positional embeddings are trained by backpropagation, as opposed to sinusoidal encodings. This enables the model to capture the non-uniform time distributions in 5G fault data and more accurately model long-term dynamics when the delay between fault onset and recovery is significant.

3.2.2. Transformer Encoder

This model uses a Transformer encoder, with each layer comprising multi-head self-attention, a feedforward network (FFN), residual connections, and LayerNorm. It is possible to determine the number of layers as required, based on the sequence length and complexity of cross-window dependencies. At present, this two-layer structure is sufficient for fault classification tasks in 5G networks, where data volumes reach millions.
Self-attention first maps the input into query, key, and value matrices, and then computes their similarity to quantify the interactions between time steps:
A t t e n t i o n Q , K , V = s o f t m a x Q K T d k V
where d k denotes the key vector dimension, and softmax converts similarity scores into attention weights. The attention mechanism is performed by performing two parallel heads:
MultiHead Q , K , V = Concat head 1 , head 2 W O
After the self-attention layer, the model enhances its ability to map complex patterns through the feedforward network:
F F N ( x ′ ) = σ ( x ′ W 1 + b 1 ) W 2 + b 2
where W 1 , W 2 , b 1 , and b 2 are optimized parameters, and σ ( ⋅ ) refers to ReLU.
Residual connections are added to both the self-attention and FFN sublayers, followed by LayerNorm:
x ′ = L a y e r N o r m ( M u l t i H e a d ( Q , K , V ) + x ~ )
x o u t = L a y e r N o r m ( F F N ( x ′ ) + x ′ )

3.2.3. Global Average Pooling

The output encodes temporal dependencies across all time steps. We apply a global average pooling operation to aggregate it into z t .
z t = 1 T ∑ t = 1 T x o u t , t , f  
where x o u t , t , f denotes the value of channel f at time step t ; T is the sequence length; z t ∈ R F is the global representation where F is the feature dimension.

3.3. Statistical Feature Branch

The statistical feature branch computes distribution-based descriptors from the input KPI time series to capture global statistical characteristics. It helps extract QoE information, thereby supporting fault diagnosis. For instance, in a 5G-R scenario, a train moving at high speed frequently switches between base stations. This leads to periodic QoE fluctuations for the UE. At this time, a significant increase in the skewness of the downlink block error rate (DL_BLER) is typically observed. Similarly, when the train passes through a hotspot area, large-scale data uploads or downloads may occur, which lead to a sharp increase in the standard deviation of Transmission Bytes.
Specifically, for a time series input x ∈ R T × C , we compute one descriptor per channel for each of the five statistical measures (mean, standard deviation, extrema, skewness, kurtosis [35]), and concatenate the resulting 5 vectors into z s ∈ R 5 C . This vector supplements statistical information that deep learning models do not typically focus on. Subsequent ablation studies further confirm the necessity of this branch.

3.4. Gating Module

The gating module is employed to tune the weights of the three branches. The module improves feature fusion efficiency by integrating the physical significance of 5G KPIs with dynamic coefficients. The weight calculation formula is outlined as follows:
G b r a n c h = σ ( W ⋅ ∑ i = 1 n x i − μ i σ i + λ ⋅ ∑ j = 1 m x j − μ j σ j + b )
where G b r a n c h is the gating output of each branch, which decides its impact on feature fusion. x i is the key feature set of the branch, which is first normalized using z-score to make sure all features are at the same scale. Each normalized feature is then weighted by matrix W and summed. x j is the remaining feature set with a smaller contribution, also normalized using z-score. b is the bias, and σ ( · ) is the sigmoid. λ is the adjustment coefficient, which is dynamically updated based on the feedback of the branch loss. This update gives the coefficient the benefit of automatically setting the weights of other features. The following is the update process:
λ n e w = λ o l d × ( 1 + α ⋅ L o s s i )
where L o s s i is the MSE of the i branch, and α is a scaling factor controlling the step size.
The choice and distribution of key features in the gating design of the three branches were determined by their physical importance. For the CNN branch, we chose RSRP and MCS as the key features, which indicate the quality of the wireless channel. For the Transformer branch, we chose UL/DL BLER and throughput, as they are directly linked to the stability and efficiency of data transmission. For the statistical branch, end-to-end latency and internal network node latency have been selected as the primary evaluation properties because they are directly relevant to QoE performance [30,31,32].
In feature extraction, the branches must cooperate so that no single branch dominates the model’s decisions. Hence, a limit was set on the maximum weight of any branch so that it does not exceed half the total weight. This design allows the gating module to adjust branch weights within a controlled range.

3.5. Feature Fusion

3.5.1. Feature Attention Weighting

For feature fusion, the outputs of the three branches are passed through separate MLPs to generate individual attention weights A .
A = S i g m o i d ( M L P ( z ) ) ∈ [ 0 , 1 ] d i m ( z )
where d i m ( z ) represents the feature dimension, and M L P ( z ) is the Multi-Layer Perceptron applied to z . Once the attention weights are computed, the weighting for each feature dimension is determined. The weighted output z ′ is calculated as
z ′ = z ⊙ A
In this case, ⊙ is used to indicate the element-wise multiplication where z is the input feature. This dynamically based weighting process emphasizes significant features and damps unnecessary information.

3.5.2. Branch Weighted Fusion

The feature-level attention weighting is then followed by calculations of the weights G c , G t , and G s of all the branches through a gating module. The weighted final feature z ¯ is computed by multiplying every weighted feature vector z ′ by its weight G :
z ¯ = z ′ · G

3.6. Fully Connected Layer

This module is aimed at improving the model’s ability to represent. In this module, we design two fully connected layers, each using nonlinear transformations as follows:
h 1 = σ W 1 z ¯ + b 1
h 2 = σ W 2 h 1 + b 2
where W i and b i denote the weight and bias of the i dense layer; σ ( ⋅ ) denotes the ReLU activation. The output of the second dense layer h 2 , denoted as z f u s e d , is fed into the softmax classifier.

3.7. Softmax Layer

The Softmax function [36] is used to obtain the probabilities of the fault classes. This function applies an exponential to each element of z f u s e d and calculates normalized values. Formally, given z f u s e d ∈ R n c l a s s e s , the Softmax output y ^ i is
y ^ i = e x p z f u s e d , i ∑ j = 1 n c l a s s e s e x p z f u s e d , j ,   i = 1 , … , n c l a s s e s
where y ^ i denotes the predicted probability of the i fault class. The predicted class corresponds to the index of the largest element in y ^ .
ĉ = argmax i = 1 , … , n classes y ^ i
This Softmax layer converts the fused feature representation into interpretable probabilities, enabling multi-class classification of 5G network faults.

4. Results and Discussion

This chapter conducts experiments to evaluate the proposed method. Section 4.1 introduces the datasets used. Section 4.2 describes the evaluation metrics for model performance and feature contributions. Section 4.3 provides a summary of the experimental parameter settings. Section 4.4 presents the convergence behavior and final classification results. Section 4.5 presents the model’s classwise performance. Section 4.6 presents comparison experiments with common classification models. Section 4.7 presents ablation studies, including branch ablation, gating module ablation, feature fusion module ablation, internal ablation of the statistical branch, and comparison with a serial CNN–Transformer design. Section 4.8 evaluates the contributions of individual input features through the Integrated Gradients method.

4.1. Dataset Composition

The datasets used in this study include the multi-modal 5G network observability dataset released by Yale University (TelecomTS) [24] and a self-constructed 5G network fault dataset collected using a software-defined radio (SDR) platform (SDR5GFD). These two datasets together constitute the data used for the experiments presented in this paper.

4.1.1. Multi-Modal 5G Network Observability Dataset (TelecomTS)

The publicly available TelecomTS dataset, released by Yale University in 2025, contains multi-modal measurements from operational 5G networks. The dataset categorizes samples into normal and anomalous classes. Within the normal class, data are further divided into mobile and fixed user equipment, and each of these is additionally partitioned by geographical regions and network load conditions. Within the anomalous class, samples are classified as jammer or synthetic, with each category further subdivided by multiple regions. Furthermore, for all data, a finer-grained classification is provided by service type: File, Twitch, and YouTube. Overall, the dataset can be partitioned into 33 distinct network data categories. Table 2 summarizes the features of the dataset.
Table 2. Summary of Dataset.

4.1.2. Self-Constructed 5G Network Fault Dataset Using SDR (SDR5GFD)

This dataset was developed by us using the SDR hardware platform USRP B210. It was generated on a private 5G network built with the srsRAN and Open5GS platforms, providing wireless access for commercial 5G smartphones. Controlled fault injection was performed on the network: at the base station, the baseband processing layer was manipulated to produce faults including multipath effects, carrier frequency offset, weak base station coverage, and Gaussian noise interference. Anomalies were also introduced in the core network and databases to simulate business-level faults of network elements. Data collected from mobile devices under these conditions in the live service scenario resulted in a dataset comprising 7 distinct network data categories. We computed the autocorrelation function (ACF) of key feature sequences from our dataset and the SUTD 5G real network fault dataset [37], and quantified their differences using the mean squared error (MSE) of the main lag terms. The results show that the ACF MSE is below 0.11 (corresponding to an average deviation of about 0.33), indicating that the SDR dataset is highly reliable. Table 2 summarizes the features of the dataset.

4.1.3. Dataset Overview

In this study, TelecomTS uses 17 of the 20 features. The remaining 3 features (UL_Protocol, DL_Protocol, and timestamp) are excluded due to low discriminative value or high missing rates. Timestamp only indicates acquisition order; thus, it does not contribute to fault discrimination and would only increase model dimensionality. UL_Protocol and DL_Protocol are binary (TCP/UDP) with missing rates of 34.1% and 37.5%, respectively, and are therefore not suitable for the classification task. SDR5GFD is specifically designed for fault analysis, and its features carry rich diagnostic information. Therefore, all 21 features are retained in this study.

4.1.4. Dataset Preparation

Data from TelecomTS and SDR5GFD were first temporally aligned. The KPI sampling interval was 1 s. The data were divided into training (80%), validation (10%), and test (10%) sets. To preserve fault information as much as possible, we applied necessary preprocessing. All features were standardized using z-score normalization. For abnormal spikes in fault data, no outlier removal or clipping was performed because the original values still contain fault-related information. Missing values caused by network faults, such as disconnections, were marked as NaN to avoid introducing additional bias. The datasets were concatenated along the temporal dimension and segmented using a sliding window of length 8. This length balances local feature extraction and cross-window dependency learning. Window length 4 provides insufficient fault information, while length 16 contains excessive normal data, resulting in degraded performance. Therefore, a window length of 8 was chosen as it yields the best accuracy and F1-score. The sliding step was set to 1 (overlap of 7/8) to avoid truncating key fault segments and to increase the number of training samples.

4.2. Evaluation Metrics

4.2.1. Training Performance Metrics

To assess the model’s performance in multi-class classification, this study evaluates it using A c c u r a c y , P r e c i s i o n , R e c a l l , F 1 w e i g h t e d and training l o s s [38,39]. A c c u r a c y is the ratio of correctly classified samples to the total number of samples:
A c c u r a c y = Σ i = 1 C T P i N
For each class i , the metrics are computed as
P r e c i s i o n i = T P i T P i + F P i
R e c a l l i = T P i T P i + F N i
In these formulas, T P i counts correctly identified samples of class i , F P i counts n o n - i samples predicted as i , F N i counts i samples predicted as n o n - i .
For each class, the F 1 - s c o r e is obtained as
F 1 i = 2 ⋅ P r e c i s i o n i · R e c a l l i P r e c i s i o n i + R e c a l l i
F 1 w e i g h t e d denotes the weighted F 1 score across classes:
F 1 w e i g h t e d = ∑ i = 1 C N i N · F 1 i
where C is the number of classes, N i is the sample count of class i , and N is the total sample count.
Furthermore, weighted cross-entropy is adopted to quantify prediction error, with class-specific weights compensating for imbalance. For a batch of B samples, the l o s s is computed as
L = − 1 B ∑ i = 1 B ∑ c = 1 C w c y i , c log y ^ i , c
where y i , c denotes the one-hot label for sample i ; y ^ i , c is the Softmax output probability for class c ; and w c is the weight for class c , computed inversely to its sample count to address class imbalance.

4.2.2. Feature Contribution Metrics

To quantify input-feature contributions, this study adopts the Integrated Gradients (IG) method [23]. For the i feature in the input x , the IG method computes its contribution score by integrating gradients:
I G i x = x i − x i ′ × ∫ α = 0 1 ∂ F x ′ + α x − x ′ ∂ x i d α
In this equation, x ′ is the baseline input, α is the scaling factor, and F represents the classifier. The global contribution of feature i is obtained by averaging the absolute I G values over all samples in the test set:
Global   Feature   Contribution i = 1 N ∑ j = 1 N I G i x j

4.3. Experimental Parameter

The training settings and model hyperparameters shared by the main model and all ablation studies are listed in Table 3.
Table 3. Experimental Parameter.

4.4. Convergence Performance

The training parameters are summarized in Table 3. The model was trained on the fault datasets (see Section 4.1) for fault-type classification, and the results were averaged over multiple independent runs. Figure 3 shows the convergence curves for both datasets.
Figure 3. Learning curves: (a) loss curve for TelecomTS; (b) accuracy curve for TelecomTS; (c) loss curve for SDR5GFD; (d) accuracy curve for SDR5GFD.
From Figure 3a,c, the model demonstrates stable convergence on both datasets. The loss curve drops rapidly in the first few epochs. By the 10th epoch, accuracy is 0.899 on TelecomTS and 0.870 on SDR5GFD. After that, the loss decreases by less than 0.01 per epoch. In addition, the gap between Figure 3b,d shows a slight training–validation discrepancy, which may be due to random noise. To improve generalization, we applied dropout across multiple modules (Table 3) and injected Gaussian noise with σ   =   0.01 into the input. With these strategies, the accuracy gap dropped from 0.06 to 0.03. The model has about 0.57 M parameters and requires roughly 0.3 MFLOPs per sample for inference, making it suitable for large-scale online fault inference. All results are reported as mean values over multiple independent runs, and the 95% confidence intervals are within ±0.005. Table 4 shows the final fault classification performance:
Table 4. Fault classification performance.
The results demonstrate the model’s generalization capability on network data, with fault classification accuracy exceeding 0.86 on both datasets.

4.5. Classwise Performance

We use radar charts to visualize the final classification outputs from TelecomTS and SDR5GFD to further examine the model’s fault-detection performance across various fault types. To make this presentation clearer, the results for the same type of fault across different regions of the TelecomTS are weighted averages. As shown in Figure 4a–c, the model achieves similar classification performance across file, video, and live service scenarios, with a trend of file > video > live. This is expected: the higher the service real-time requirements, the larger the bit-error fluctuations, and the more unstable the network data. In addition, TelecomTS is inherently imbalanced, with fault samples accounting for only about 13.5%. Such an imbalance is common in network fault studies and may lead to better performance for the normal class. To mitigate this, we used stratified sampling by fault category. Although imbalance persists, the model’s fault classification shows no significant bias; mobile device is slightly higher, while normal, signal interference (jammer), and synthetic faults (synthetic) remain balanced. The results in Figure 4d for SDR5GFD further support this observation: since it is constructed via fault injection with a balanced class distribution, the model achieves more consistent performance across all fault categories. Specifically, the model performs better on several channel quality degradation faults, indicating that the CNN branch effectively captures local features. The classification performance for UPF switching anomalies and authentication errors is slightly lower because both faults cause service interruption and reconnection, leading to long periods of zero values in related KPIs (e.g., throughput and resource allocation), which makes their feature distributions highly similar. Overall, Accuracy is about 0.015 higher than Weighted F1 on both datasets. This difference is consistent with the class imbalance in fault samples and is therefore considered to be within a reasonable range in this study.
Figure 4. Classification performance comparison on TelecomTS and SDR5GFD: TelecomTS covers file, video, and live services, each with five scenarios: normal mobile, congested stationary, non-congested stationary, signal jamming, and synthetic fault injection. Subplots (a–c) correspond to these services, respectively, while subplot (d) shows the results on SDR5GFD. SDR5GFD contains seven scenarios: normal, weak coverage, Gaussian noise, multipath effect, carrier frequency offset, UPF switching anomaly, and authentication error. Strong lines mean weighted F1-score, and the thin ones are accuracy.

4.6. Comparative Study

To evaluate our model’s performance, we compared it with three common fault classification methods: CNN, Transformer, and Random Forest. All models use the same data preprocessing pipeline described in Section 4.1.4. The CNN and Transformer baselines share the same branch designs and hyperparameters as our model (see Table 3). Specifically, the window size is 8, the batch size is 128, the training epochs are 20, the optimizer is Adam, and the initial learning rate is 1 × 10−4. The CNN structure consists of two 1D convolutional layers: the first with 16 filters and a kernel size of 3, and the second with 32 filters and a kernel size of 5. The Transformer model consists of two encoder layers with 2 attention heads, a key dimension of 16, a hidden layer size of 128, and an FFN dimension of 512. Dropout rates are set to 0.2 for both CNN and Transformer. Gaussian noise with σ = 0.01 is added to the input. Random Forest is implemented using scikit-learn, and its input is the flattened windowed raw feature vector. The model parameters are tuned via grid search with 5-fold cross-validation, and the settings for the Random Forest model are as follows: 250 trees, a maximum depth of 20, a minimum of 5 samples for node splitting, 3 samples per leaf, square root-based feature selection, and bootstrap sampling enabled. All models are trained and evaluated separately on both datasets, with 95% confidence intervals within ±0.007. Table 5 presents the comparison results.
Table 5. Performance comparison of baseline models and the proposed method.
Table 5 shows that the proposed multi-branch model exhibits improvements compared to the CNN and Transformer baselines. This indicates that the parallel CNN and Transformer branches can complement each other in extracting local and global features, thereby improving fault recognition. The Random Forest method performs worse mainly because it cannot capture temporal dependencies well. Flattening the windowed raw features also weakens the time-series structure. Therefore, for complex time-series 5G network data, deep learning models are a better solution.
Previous work by Yale University evaluated various models on the TelecomTS for a root-cause analysis task, assessing their ability to identify the underlying causes of anomalies in 5G network observability data [24]. Table 4 of that study reports the accuracy of different approaches, including large language models, reasoning models, foundation models, and time-series models. Among these, Toto achieved the highest accuracy of 0.848. Root-cause analysis and fault classification are closely related tasks. Root-cause analysis often relies on accurate fault classification to identify the specific causes of anomalies. Fault classification, in turn, provides the necessary input for the subsequent root-cause identification. While the tasks have different objectives, they both depend on similar time-series data and benefit from advanced deep learning models. Therefore, the performance of root-cause analysis models offers an indirect perspective on evaluating fault classification models. In this context, we discuss root-cause analysis alongside our fault classification task. In our experiments, the multi-branch model achieved an accuracy of 0.877 on the TelecomTS, surpassing the root-cause analysis accuracy of 0.848 reported by Yale University. This highlights that our model can effectively classify faults and serve as a reliable input for root-cause analysis.

4.7. Ablation Study

In the ablation studies, we used the full model as the baseline to assess the rationale of the model design. We trained the model on the fault dataset for a classification task and designed several comparative experiments to analyze the contribution of each module (dataset described in Section 4.1; training settings in Table 3). Specifically, we evaluated the full model and conducted several ablation settings. These included removing each of the three feature extraction branches; removing both the feature fusion and gating modules, where branch outputs were simply concatenated; removing the gating module alone; retaining only the mean and standard deviation in the statistical branch; and testing a serial CNN–Transformer model, in which the CNN output is fed into the Transformer. Since the serial CNN–Transformer does not employ a parallel multi-branch architecture, the gating module was not applied. The results in Table 6 are reported as the mean values over five independent training runs. The 95% confidence interval for all ablation experiments is ±0.008.
Table 6. Ablation study results for fault classification.
The full model achieves the best performance amongst all others. This finding is in line with expectations. The differences in performance between the pruned and original results indicate that the model primarily learns features across the CNN and Transformer branches. This means it is important to capture local features and global dependence during the network fault detection exercises. The outcomes of the gating module ablation demonstrate a relatively small but significant enhancement of performance metrics, which implies that the weight allocation mechanism is efficient. The results of the feature fusion and gating module ablation indicate that removing both modules simultaneously results in a significant drop in this model’s performance. This indicates that the feature-level and branch-level weighting mechanisms designed in this study are reasonably applied to the parallel architecture. The statistical branch ablation results show that although the statistical branch contributes to performance improvement, its role is primarily supportive. Even when only the mean and standard deviation are kept, the model still performs reasonably well, indicating that the QoE-related information is helpful but not the dominant factor. Finally, the serial CNN–Transformer model performs worse than even the standalone CNN, implying that simply stacking the two models does not make full use of their strengths in network fault data. This suggests that the model should be designed according to the specific characteristics of the application, rather than simply combining different models.

4.8. Feature Analysis

To evaluate the contribution of input features, we applied the IG method [23] for a global feature attribution analysis on TelecomTS (For dataset details, see Section 4.1). Figure 5 presents the final normalized results as a bar chart.
Figure 5. Global Feature Contribution based on the IG method. Bars indicate normalized feature contributions, and the top boxes denote 95% confidence intervals across test samples.
Figure 5 shows that the downlink BLER contributes significantly more than other features. This feature is closely related to transmission and scheduling and is mainly extracted by the Transformer branch. This result can be explained by the dataset distribution: both normal and fault samples are categorized by service type (file, video, and online services; see Section 4.5), and these services predominantly involve download traffic. Therefore, the downlink BLER is more informative for differentiating samples. In contrast, wireless link features (MCS, RSRP, SNR) contribute less than transmission and scheduling features (BLER, PRB allocation, buffer allocation). This is mainly because signal jamming fault samples account for less than 10% of the dataset after sampling. Most samples still reflect normal service types and congestion conditions. Consequently, transmission and scheduling features have a higher overall contribution than wireless link features. This conclusion is consistent with the previous ablation study, which found that the Transformer branch provides the largest improvement in overall performance. In addition, the “Jamming” feature in this dataset is binary (0 or 1), providing limited information and therefore the smallest contribution.

5. Conclusions

In this paper, we propose a parallel multi-branch convolutional neural network (CNN)–Transformer framework (MBCT) to improve fault diagnosis accuracy in 5G networks. The novelty of MBCT lies in its use of parallel feature-processing branches within a deep learning model to distribute data-learning tasks. A gating mechanism adjusts the weights of each branch, and an attention-weighted fusion mechanism further captures the relative importance of features within each branch. For the 5G network fault classification experiments, the model achieved 87.7% accuracy on the TelecomTS dataset and 86.3% on the SDR5GFD dataset. The proposed model was compared with three common fault detection models: CNN, Transformer, and random forest, and showed better performance across both datasets. The results of the ablation study indicate that the CNN and Transformer branches play a dominant role in performance improvement, while the statistical feature branch provides complementary information. The ablation study also validates the proposed feature fusion mechanism and dynamic weighting design in the multi-branch model. Moreover, the comparison with a serial CNN–Transformer model confirms the advantage of the proposed parallel branch design. In addition, the model performs explainability analysis from multiple perspectives, including class-wise performance and Integrated Gradients. These results indicate that the model effectively captures the relationship between 5G KPIs and faults and accurately reflects the dataset’s true distribution. The model comprises approximately 0.57 M parameters and requires around 0.3 MFLOPs per sample for inference, indicating its potential suitability for large-scale online fault diagnosis. Future work will focus on incorporating more general feature-extraction modules and validating the method across a broader range of 5G datasets, particularly those from different operators, to further improve cross-scenario generalization.

Author Contributions

Conceptualization, J.C.; methodology, J.C.; validation, Y.M., J.C. and Y.C.; formal analysis, J.C.; investigation, J.C.; resources, J.C. and Y.C.; data curation, J.C.; writing—original draft preparation, J.C.; writing—review and editing, Y.M.; supervision, Y.M.; project administration, Y.M.; funding acquisition, Y.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article.

Acknowledgments

During the preparation of this work, the authors used ChatGPT (GPT-5 Mini, OpenAI, January 2026 version) in order to translate text into English. After using this tool, the authors reviewed and edited the content as needed and took full responsibility for the content of the publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
5GFifth Generation
5G-R5G for Railways
IoTInternet of Things
QoEQuality of Experience
OAMOperation, Administration and Maintenance
RANRadio Access Network
TNTransport Network
CNCore Network
KPIKey Performance Indicator
NFNetwork Function
AMFAccess and Mobility Function
SMFSession Management Function
UPFUser Plane Function
PCFPolicy Control Function
AUSFAuthentication Server Function
PHYPhysical Layer
MACMedia Access Control
BERBit Error Rate
SNRSignal-to-Noise Ratio
RSRPReference Signal Received Power
ACFAutocorrelation Function
MSEMean Squared Error
CNNConvolutional Neural Network
LSTMLong Short-Term Memory
TSTTime Series Transformer
ViTVision Transformer
SDRSoftware Defined Radio
UEUser Equipment
IGIntegrated Gradients
USRPUniversal Software Radio Peripheral
ReLURectified Linear Unit
TPTrue Positive
FPFalse Positive
FNFalse Negative
F1F1 Score
DLDownlink
ULUplink
BLERBlock Error Rate
MCSModulation and Coding Scheme
PRBPhysical Resource Block
TXTransmit
RXReceive

References

  1. Zhao, L.; He, C.; Zhu, X. A fault diagnosis method for 5G cellular networks based on knowledge and data fusion. Sensors 2024, 24, 401. [Google Scholar] [CrossRef] [Scilit]
  2. Zhu, T.; Narusue, Y.; Morikawa, H. Fault diagnosis using hybrid transfer learning for vnf-based 5G core networks. In Proceedings of the 2024 IEEE Conference on Network Function Virtualization and Software Defined Networks (NFV-SDN), Natal, Brazil, 5–7 November 2024; pp. 1–4. [Google Scholar]
  3. Qi, X.; Zhang, H.; Li, J.; Shan, M. Fault detection based on dynamic time warpping in NFV networks. J. Nanjing Univ. (Nat. Sci.) 2023, 59, 343–350. [Google Scholar]
  4. Khan, S.; Khan, S.; Ali, Y.; Khalid, M.; Ullah, Z.; Mumtaz, S. Highly accurate and reliable wireless network slicing in 5th generation networks: A hybrid deep learning approach. J. Netw. Syst. Manag. 2022, 30, 29. [Google Scholar] [CrossRef] [Scilit]
  5. Dangi, R.; Jadhav, A.; Choudhary, G.; Dragoni, N.; Mishra, M.K.; Lalwani, P. Ml-based 5G network slicing security: A comprehensive survey. Future Internet 2022, 14, 116. [Google Scholar] [CrossRef] [Scilit]
  6. Fadlullah, Z.M.; Tang, F.; Mao, B.; Kato, N.; Akashi, O.; Inoue, T.; Mizutani, K. State-of-the-art deep learning: Evolving machine intelligence toward tomorrow’s intelligent network traffic control systems. IEEE Commun. Surv. Tutor. 2017, 19, 2432–2455. [Google Scholar] [CrossRef] [Scilit]
  7. Nouioua, M.; Fournier-Viger, P.; He, G.; Nouioua, F.; Min, Z. A survey of machine learning for network fault management. In Machine Learning and Data Mining for Emerging Trend in Cyber Dynamics: Theories and Applications; Springer: Berlin/Heidelberg, Germany, 2021; pp. 1–27. [Google Scholar]
  8. Velasco, L.; Rafique, D. Fault management based on machine learning. In Proceedings of the 2019 Optical Fiber Communications Conference and Exhibition (OFC), San Diego, CA, USA, 3–7 March 2019; pp. 1–3. [Google Scholar]
  9. Munir, M.; Siddiqui, S.A.; Dengel, A.; Ahmed, S. DeepAnT: A deep learning approach for unsupervised anomaly detection in time series. IEEE Access 2018, 7, 1991–2005. [Google Scholar] [CrossRef] [Scilit]
  10. Zhang, C.; Song, D.; Chen, Y.; Feng, X.; Lumezanu, C.; Cheng, W.; Ni, J.; Zong, B.; Chen, H.; Chawla, N.V. A deep neural network for unsupervised anomaly detection and diagnosis in multivariate time series data. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; pp. 1409–1416. [Google Scholar]
  11. Zhao, Y.; Zhang, X.; Shang, Z.; Cao, Z. DA-LSTM-VAE: Dual-stage attention-based LSTM-VAE for KPI anomaly detection. Entropy 2022, 24, 1613. [Google Scholar] [CrossRef] [Scilit]
  12. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit]
  13. Teleron, J.I.; Teleron, S. Electrical energy demand forecasting using time series in lstm and cnn-lstm models in deep learning applications. J. Inf. Syst. Eng. 2025, 34, 45–56. [Google Scholar]
  14. Dutta, Y.; Chatterjee, S.; Chakraborty, S.; Palit, B. Benchmarking Federated Learning for Throughput Prediction in 5G Live Streaming Applications. arXiv 2025, arXiv:2508.08479. [Google Scholar] [CrossRef] [Scilit]
  15. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998–6008. [Google Scholar]
  16. Su, L.; Zuo, X.; Li, R.; Wang, X.; Zhao, H.; Huang, B. A systematic review for transformer-based long-term series forecasting. Artif. Intell. Rev. 2025, 58, 80. [Google Scholar] [CrossRef] [Scilit]
  17. Ko, D.; Han, J. A rollout heuristic algorithm for order sequencing in robotic compact storage and retrieval systems. Expert Syst. Appl. 2022, 203, 117396. [Google Scholar] [CrossRef] [Scilit]
  18. Ke, Y.; Liang, Y.; Shi, Z.; Song, Z.; Yang, C. Curse of attention: A kernel-based perspective for why transformers fail to generalize on time series forecasting and beyond. arXiv 2024, arXiv:2412.06061. [Google Scholar] [CrossRef] [Scilit]
  19. Cao, X.; Gao, Z.; Lu, H.; Tang, J.; Yao, Y.; Liu, L. WCFormer: A wavelet-enhanced CNN-transformer hybrid network for bearing fault diagnosis using multi-sensor signal fusion. J. Comput. Des. Eng. 2025, 12, 82–100. [Google Scholar] [CrossRef] [Scilit]
  20. Malau, B.M.; Olusanya, M.O. Comparative Evaluation of Parallel and Sequential Hybrid CNN–ViT Models for Wrist X-Ray Anomaly Detection. Appl. Sci. 2025, 15, 11865. [Google Scholar] [CrossRef] [Scilit]
  21. Chen, Q.; Zhang, F.; Wang, Y.; Yu, Q.; Lang, G.; Zeng, L. Bearing fault diagnosis based on efficient cross space multiscale CNN transformer parallelism. Sci. Rep. 2025, 15, 12344. [Google Scholar] [CrossRef] [Scilit]
  22. Prasetya, W.A.; Putra, U.A.B.; Hakkun, E.; Utomo, P.; Andika, D.F.; Hernandez, L. Time-series analysis with smoothed convolutional neural network. J. Big Data 2022, 9, 44. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Sundararajan, M.; Taly, A.; Yan, Q. Axiomatic attribution for deep networks. In Proceedings of the International Conference on Machine Learning, Sydney, Australia, 6–11 August 2017; pp. 3319–3328. [Google Scholar]
  24. Feng, A.; Varvarigos, A.; Panitsas, I.; Fernandez, D.; Wei, J.; Guo, Y.; Chen, J.; Maatouk, A.; Tassiulas, L.; Ying, R. TelecomTS: A Multi-Modal Observability Dataset for Time Series and Language Analysis. arXiv 2025, arXiv:2510.06063. [Google Scholar]
  25. Ordonez-Lucena, J.; Ameigeiras, P.; Lopez, D.; Ramos-Munoz, J.J.; Lorca, J.; Folgueira, J. Network slicing for 5G with SDN/NFV: Concepts, architectures, and challenges. IEEE Commun. Mag. 2017, 55, 80–87. [Google Scholar] [CrossRef] [Scilit]
  26. Subedi, P.; Alsadoon, A.; Prasad, P.; Rehman, S.; Giweli, N.; Imran, M.; Arif, S. Network slicing: A next generation 5G perspective. EURASIP J. Wirel. Commun. Netw. 2021, 2021, 102. [Google Scholar] [CrossRef] [Scilit]
  27. Wernet, L.; Siegmund, F.; Kundel, R.; Meuser, T.; Steinmetz, R. Fault-tolerance in future ran: Enabling redundancy for efficient recovery of ran network functions. In Proceedings of the 2023 IEEE Conference on Network Function Virtualization and Software Defined Networks (NFV-SDN), Dresden, Germany, 7–9 November 2023; pp. 105–110. [Google Scholar]
  28. Tarrías, A.; Fortes, S.; Barco, R. Failure management in 5G RAN: Challenges and open research lines. IEEE Netw. 2023, 37, 215–222. [Google Scholar] [CrossRef] [Scilit]
  29. Campo-Muñoz, W.-Y.; Amaya-Suárez, J.-A.; Caviedes-Valencia, J.-C. Performance analysis of access and mobility management function on a 5G core based on CPU usage predictions. Rev. Fac. Ing. 2024, 33, e18057. [Google Scholar] [CrossRef] [Scilit]
  30. Azkaei, B.; Joshi, K.C.; Exarchakos, G. Machine Learning-Driven Anomaly Detection for 5G O-RAN Performance Metrics. In Proceedings of the IEEE INFOCOM 2025-IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), London, UK, 19 May 2025; pp. 1–6. [Google Scholar]
  31. Jia, H.; Wang, M.; Li, B.; Liu, Y.; Guo, J.; Zhang, P. 5GC2ache: Improving 5G UPF Performance via Cache Optimization. arXiv 2024, arXiv:2404.13991. [Google Scholar]
  32. Isaac, J.H.; Saradagam, H.; Pardhasaradhi, N. 5G Core Fault Detection and Root Cause Analysis using Machine Learning and Generative AI. arXiv 2025, arXiv:2508.09152. [Google Scholar]
  33. Barakabitze, A.A.; Ahmad, A.; Mijumbi, R.; Hines, A. 5G network slicing using SDN and NFV: A survey of taxonomy, architectures and future challenges. Comput. Netw. 2020, 167, 106984. [Google Scholar] [CrossRef] [Scilit]
  34. Liu, H.; Wang, H. Real-time anomaly detection of network traffic based on CNN. Symmetry 2023, 15, 1205. [Google Scholar] [CrossRef] [Scilit]
  35. Lei, Y.; Wu, Z. Time series classification based on statistical features. EURASIP J. Wirel. Commun. Netw. 2020, 2020, 46. [Google Scholar] [CrossRef] [Scilit]
  36. Goodfellow, I.; Bengio, Y.; Courville, A. Deep Learning; MIT Press: Cambridge, MA, USA, 2016. [Google Scholar]
  37. FCCLab. SUTD 5G Dataset (Singapore University of Technology and Design). Available online: https://github.com/FCCLab/sutd_5g_dataset_2023 (accessed on 15 September 2025).
  38. Sokolova, M.; Lapalme, G. A systematic analysis of performance measures for classification tasks. Inf. Process. Manag. 2009, 45, 427–437. [Google Scholar] [CrossRef] [Scilit]
  39. Manning, C.D. Introduction to Information Retrieval; Syngress Publishing: Rockland, MA, USA, 2008. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.