Next Article in Journal
A Novel Fluorescent Probe for the Determination of Aluminum Ions in Aqueous Samples
Previous Article in Journal
Robotic Welding Technologies for Intersecting and Irregular Pipes and Pipe Joints Toward Automated Production Line Integration: A Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Enhanced Chinese Text Classification Through Feature Confusion and Hierarchical Perception

1
School of Information Science and Technology, Xizang University, Lhasa 850000, China
2
School of Mechanical and Electrical Engineering, Liuzhou Polytechnic University, Liuzhou 545006, China
3
National Key Laboratory of Tibetan Language Intelligence, Lhasa 850000, China
4
Collaborative Innovation Center for Informatization by MOE and Xizang Autonomous Regin, Lhasa 850000, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2026, 16(6), 2973; https://doi.org/10.3390/app16062973
Submission received: 2 March 2026 / Revised: 16 March 2026 / Accepted: 17 March 2026 / Published: 19 March 2026
(This article belongs to the Special Issue Natural Language Processing: Modeling, Optimization and Application)

Abstract

Conventional text classification models experience inadequate contextual information extraction, restricted classification Accuracy, and significant text information loss. This article presents an improved Chinese text classification model that incorporates feature obfuscation and hierarchical perception. A text sequence channel is established, employing the RoFormer model to increase the positional attributes of word embeddings. Subsequently, multi-scale window convolutions acquire multidimensional feature information within the sequence. An enhanced confusion technique ultimately improves the model’s resilience to interference and finalizes feature confusion fusion. Evaluation on the Waimai, ChnSentiCorp, and COLD datasets indicates that this model attains enhanced accuracy and F1 scores relative to previous benchmark models, confirming its efficacy and relevance.

1. Introduction

Text classification is a core task in natural language processing, aiming to assign documents to predefined categories based on their content. Due to the diversity of text structures and the complexity of content, traditional machine learning methods can no longer meet classification demands. In contrast, deep learning methods can automatically derive higher-level and more abstract semantic representations through multi-layered semantic operations. Their strong generalization capabilities enable broader applications across domains such as spam detection [1], sentiment analysis [2], public opinion analysis [3], topic classification [4], and news categorization [5].
With the advancement of neural networks, text classification has achieved new breakthroughs. Most classification models based on the CNN architecture [6] train their models to learn local information within windows. They then extract features by sliding these local windows to perform category classification. However, CNN models also reveal certain limitations, as they neglect the dependency between local features. Therefore, this paper proposes a fusion model that integrates hierarchical perception and feature mixing (TCTM) from this perspective. The research content is as follows:
(1)
The pre-trained RoFormer model is employed to perform word embedding on text data, representing textual information as a dense matrix in a low-dimensional space to extract high-level semantic features.
(2)
An optimized multi-scale convolutional neural network is utilized to enhance the relational representation of character information, thereby obtaining richer global contextual features.
(3)
The captured global contextual features are combined with the initial RoFormer sentence features through an optimized blending method for text classification.

2. Related Work

Text classification, as one of the core tasks in natural language processing, aims to automatically assign textual documents to predefined categories. Its research paradigm has undergone a significant evolution from traditional machine learning to deep learning alongside advancements in artificial intelligence technology, achieving breakthrough leaps in model capabilities and feature representation.
The primary methods for extracting textual features through machine learning include k-nearest neighbors, support vector machines, and random forests. Jones et al. [7] utilized the term frequency–inverse document frequency (TF-IDF) index to vectorize textual data, subsequently combining logistic regression and support vector machines for modeling. Ruan et al. [8] proposed an approach to enhance the Naive Bayes classifier by refining the distance correlation coefficient. Unlike traditional statistical measures based on the cumulative distribution function of random vectors, this method evaluates joint random vector correlation by describing the distance between the product of joint feature functions and marginal feature functions. Hindi et al. [9] proposed a novel approach based on the Inverse Specified Class Distance Metric (ISCDM) and Value Distance Metric by refining the KNN model, making it more suitable for documents represented as vectors via word frequency. Recent studies have found that Extreme Gradient Boosting [10] and Light Gradient Boosting Machine [11] demonstrate outstanding performance. However, the overall classification effectiveness of machine learning remains relatively low. This is because traditional machine learning relies on shallow feature extraction, neglecting the relationships between words and between sentences. It lacks sufficient understanding of the underlying semantics, structure, sequence, and context of text, resulting in poor handling and generalization capabilities for high-dimensional data and limited representational power of the models.
Compared to traditional machine learning, deep learning can utilize its own network architecture to learn and extract data features. Examples include convolutional neural networks, recurrent neural networks [12], and pre-trained models.
CNNs were initially proposed for image classification due to their ability to extract image features through convolutional filters. CNNs perform multi-kernel convolutional operations across multiple sequence blocks. Consequently, neural networks have found applications in numerous NLP problems. Building upon CNN architecture, Kim proposed TextCNN, an unbiased model of convolutional neural networks. It can better identify distinguishing phrases in max-pooling layers through a single convolutional layer and learn hyperparameters beyond word vectors by keeping word vectors static. Building upon this, Alexis et al. [13] investigated issues with deep networks in text classification tasks and proposed the character-level deep convolutional neural network VDCNN; Johnson et al. [14] introduced a model for text classification tasks based on two-view semi-supervised learning. Building upon this, Johnson et al. [15] introduced Deep Pyramid Convolutional Neural Networks for Text Categorization, enhancing computational accuracy by increasing network depth. DPCNN features a simpler architecture than Residual Networks [16]. Furthermore, researchers adopted graph neural network optimization. Kipf et al. [17] proposed the Graph Convolutional Network model based on graph convolutional neural networks. Subsequent researchers studied and developed variants of the GCN model, particularly for text classification tasks, introducing models such as TextGCN [18], D-GCN [19], and GCNI [20].
Recurrent neural networks are commonly used to capture the evolutionary direction of sequences through recursive computations. Within deep learning, gated recurrent units and long short-term memory models are particularly prevalent. To overcome issues such as gradient explosion or vanishing in RNNs, Koutnik et al. [21] proposed the Clock Work RNN (CW-RNN), which employs a clock frequency to optimize RNN performance. Building upon unidirectional RNNs, Schuster et al. [22] introduced bidirectional recurrent neural networks. This model captures information from both past and future directions, enhancing accuracy in text classification tasks. Wang et al. [23] introduced a capsule-structured RNN model that demonstrated strong performance in sentiment classification tasks. Building upon this, Zhou [24] noted that BiLSTM fails to accurately measure the importance of each word. Consequently, they combined BiLSTM with an attention mechanism for text classification tasks, extracting contextual semantic information from both preceding and subsequent perspectives.
In 2019, Devlin et al. [25] introduced the BERT model. By jointly adjusting the context across all layers to pre-train deep bidirectional representations, it efficiently learned global semantics and achieved state-of-the-art performance across multiple NLP evaluation tasks, thereby ushering in the era of pre-trained models for NLP. Subsequent research focused on optimizing BERT. Building upon it, ROBERTa [26] introduced improvements through dynamic masking, generating masking patterns sequentially and feeding them into the model. ALBERT [27] reduced BERT’s parameters by shortening token lengths and sharing parameters across all encoders, enabling cross-layer parameter sharing. Dai et al. [28] trained three Chinese BERT models using standard character-level masking, whole-word masking, and a combination of both. Dict-BERT [29] enhanced language model pre-training by leveraging definitions of rare words from dictionaries.

3. Methods

The overall structure of the model is primarily constructed based on two branches. The first branch consists of an embedding layer and raw sentence vectors, primarily performing comprehensive semantic feature extraction from sentences. The second branch comprises an embedding layer and a multi-layer, multi-scale CNN, performing global contextual feature extraction. The overall architecture is shown in Figure 1.

3.1. Word Embedding Layer

RoFormer [30] is an enhanced Transformer model featuring rotational position embeddings. Specifically, Rotary Position Embedding (RoPE) encodes absolute positions using rotation matrices while explicitly incorporating relative position dependencies into the self-attention formulation. The core idea is to encode relative positions by multiplying context embeddings using rotation matrices based on absolute positions. It can be proven that the inner product of context embeddings depends solely on relative positions.
RoPE was designed to address the limitation in Transformers whereby positional encoding cannot represent relative relationships. By embedding positional information into the query and key vectors and implementing it as a rotation matrix, the attention scores are directly dependent on the relative positions between tokens. This allows the attention mechanism to naturally capture distances between tokens, thereby enhancing generalization capabilities for long sequences. The core idea is to construct a rotation matrix, enabling relative position encoding on top of existing absolute position encoding, as detailed in Equation (1).
f q , m , f k , n = g q , k , m n
Suppose there exists a function g such that the dot product of vectors generated by absolute position information q and k contains the relative position mn between them. The specific operation is computed using rotation matrices, as shown in Equation (2).
f q , m = cos m θ sin m θ sin m θ cos m θ q 0 q 1
Since matrix multiplication represents a spatial transformation mapping one matrix to another, and the aforementioned matrices perform rotation operations on q, the corresponding k undergoes identical rotational operations. Subsequently, relative position information is expressed through matrix multiplication, as detailed in Equation (3).
g = f ( q , m ) T f ( k , n ) = ( q 0     q 1 ) cos ( ( m n ) θ ) sin ( ( m n ) θ ) sin ( ( m n ) θ ) cos ( ( m n ) θ ) k 1 k 2
By multiplying matrices, the attention calculation automatically incorporates the relative positional relationship between m and n, enabling a comprehensive integration of word semantics and positional information. This approach captures more word features, thereby better addressing the issue of polysemy.

3.2. Multi-Scale Convolutional Layer

The character feature H outputs from RoFormer are fed into CNN networks of varying scales. This study employs convolutions using convolutional kernels of sizes 1 × 1024, 3 × 1024, and 5 × 1024 to capture global contextual information at different scales, as shown in Figure 2.
The specific implementation formulas are as shown in Equations (4)–(6).
y i = f ( W r H i ; i + r 1 + b ) , r = 1 , 3 , 5
Y r = y 1 r y 2 r y L r + 1 r
Y = [ Y 1 1 Y 1 3 Y 1 5 ]
In the above equation, yi represents the information extracted by the i-th convolution kernel of size r, f denotes the Tanh activation function, Wr indicates the weight matrix corresponding to kernel r, Hi:i+r−1 denotes the feature values within the window from i to i + r − 1, and b is the bias parameter. Y r represents the feature information obtained using the r-sized convolution kernel, while Y denotes the global information obtained by concatenating the results from different scales along the first dimension.
The next step employs max pooling operations and fully connected layers to prevent overfitting while extracting the final deep textual features as shown in Equations (7) and (8).
V 3 r = max ( Y 1 , Y 2 , Y 3 , , Y s e q )
V e m d e d d i n g = f ( W V 3 r + b )
In Formula (7), max pooling is applied to the second dimension of vector Y to obtain the most prominent features extracted by each convolution kernel. A fully connected layer is then used to align the output dimension with the embedding layer dimension.

3.3. Feature Fusion Layer

Sentence vector outputs represent the entire sentence text to a certain extent, enabling fairer integration of character information within sentences. However, they lack contextual interaction. To address this, this study combines sentence vector outputs with convolutional outputs, thereby highlighting key word features and enhancing text classification bias. The specific formulas are as shown in Equations (9)–(11).
F = C L S o u t Y e m d e d d i n g
O u t = C o n c a t [ F ; ( 1 ) F · P ]
P i , j = 1 , if   j = σ ( i ) 0 , otherwise
Formula (9) represents the bitwise multiplication of the sentence vector output CLS and the convolutional output Y , which better preserves detailed information and enhances the model’s nonlinear modeling capability. In Formula (10), denotes the confusion coefficient following a Beta distribution, and P represents a matrix. In Formula (11), P { 0,1 } N × N is a randomly generated permutation matrix serving function. σ is a random index shuffling function. This formula is used to implement random sample generation within batches. By applying sample mixing output [31], the model gains enhanced robustness and resistance to interference. The random shuffling and confusion processes are shown in detail in Figure 3, below.
Figure 3 illustrates the detailed workflow of the random shuffling and confusion mechanism, which consists of three key steps:
(1)
Random Shuffling: Based on the fused features F generated by Equation (9), we first extract the corresponding sample indices. The torch.randperm function is then employed to randomly permute these indices, yielding the shuffled feature representation F’ (as depicted in the top-right corner of Figure 3).
(2)
Adaptive Confusion: A mixing coefficient ∂, sampled from a Beta distribution, is introduced to perform linear interpolation. Specifically, the original fused features F are weighted by ∂, while the shuffled features F’ are weighted by the complementary coefficient (1 − ∂). These weighted components are then summed to achieve adaptive feature confusion.
(3)
Feature Concatenation: The resulting confused feature vectors are concatenated to construct the final enhanced representation, preparing the input for the subsequent fully connected layers for classification.

3.4. Loss Function

Label smoothing [32] is an optimization technique employed in deep learning tasks. In recent years, label smoothing has proven effective for deep learning applications. By reducing the predicted probability of the target class while increasing the predicted probabilities of other classes, it enhances the model’s tolerance to errors and effectively suppresses overfitting. Simultaneously, label smoothing increases inter-class distances while reducing intra-class distances in classification tasks. This makes the clusters of different categories more compact, thereby improving model generalization.
The specific implementation involves converting hard labels into soft labels with uniformly distributed categories, as shown in Equations (12) and (13).
y ^ i = y hot ( 1 α ) α K
y ^ i = 1 α i = target α / K i target
In the above equation, K represents the total number of categories, and the smoothing coefficient denotes the probability reduction value for the predicted label, set to 0.1 in this paper. Equation (13) is a simplified form of Equation (12). Finally, the soft labels are substituted for the original yi and applied to the cross-entropy loss function to optimize the model parameters, as shown in Equation (14).
CELoss ( y , p ) = i = 1 K y i log p i

4. Experiments

4.1. Dataset Selection and Characteristics

The datasets used in this experiment are Waimai_10k, ChnSentiCorp, and COLD. The specific experimental data are shown in Table 1.
Waimai_10k: Extracted from Meituan Takeout reviews, comprising 9589 training examples, 1199 validation examples, and 1199 test examples, totaling 11,987 reviews across two categories: 4000 positive reviews and 7987 negative reviews. The average sentence length is 24.92 characters, as shown in Figure 4.
ChnSentiCorp: An online hotel review dataset comprising 9600 training examples, 1200 validation examples, and 1200 test examples, totaling 12,000 reviews. It features two categories: 6000 positive and 6000 negative reviews. The average sentence length is 103 characters, as shown in Figure 5.
COLD: A Chinese offensive language evaluation dataset covering topics such as race, gender, and region. The dataset contains 37,480 statements across two categories: 18,041 offensive language statements and 19,439 safe language statements. The average sentence length is 47.77 characters, as shown in Figure 6.

4.2. Evaluation Metrics

The experiment employs Accuracy, Precision, Recall, and F1-measure as evaluation metrics. Accuracy represents the proportion of correct samples in the predicted sample set relative to the total sample population. Precision measures the proportion of samples where both the predicted and actual results are positive, out of all samples predicted as positive. Recall measures the proportion of samples where both the predicted and actual results are positive, out of all samples that are actually positive. The F1-measure represents the weighted average of Recall and Accuracy, as shown in Equations (15)–(18).
A c c u r a r y = T P + T N T P + T N + F P + F N
P r e c i s i o n = T P T P + F P
R e c a l l = T P T P + F N
F 1 = p r e c i s i o n × r e c a l l × 2 p r e c i s i o n + r e c a l l
Among these, TP, TN, FP, and FN represent different classification outcomes, with specific classifications detailed in Table 2.

4.3. Experimental Environment and Preprocessing

Table 3 shows the experimental environment of this study. All experiments were implemented using Python 3.8 (Python Software Foundation, Wilmington, DE, USA) and PyTorch 1.10.0 (Meta Platforms Inc., Menlo Park, CA, USA) on Ubuntu 20.04 (Canonical Ltd., London, UK), with an NVIDIA GeForce RTX 3090 GPU (NVIDIA Corporation, Santa Clara, CA, USA).
The hyperparameter configuration of the proposed model is detailed in Table 4. Specifically, the dropout rate is set to 0.3, and the GELU activation function is employed to accelerate model convergence. The optimization objective utilizes label-smoothed cross-entropy loss, with a fixed batch size of 16. Given variations in dataset sizes, the number of training epochs was adjusted accordingly. Furthermore, the eval_step parameter was configured to control the frequency of performance evaluation (i.e., the interval of steps between assessments). Detailed specifications are presented in Table 4.
We employed the RoFormer-Large configuration for our experiments. The specific architectural hyperparameters were set as follows: 24 hidden layers (num_hidden_layers), a hidden size of 1024 (hidden_size), 16 attention heads (num_attention_heads), and the GELU activation function (hidden_act).
During the data preprocessing phase, the raw datasets are stored in a text + ‘\t’ + label format, where the text content and the class label are separated by a tab character. Subsequently, an adaptive truncation strategy is applied based on a predefined maximum sequence length (max_len). Specifically, the algorithm first checks whether the text length is less than or equal to max_len−2. If this condition is met, the original text is preserved in its entirety. Conversely, if the text exceeds this limit, it is truncated to exactly max_len−2 characters. Rationale: The subtraction of 2 is intentional to reserve space for the special [CLS] and [SEP] tokens required by pre-trained models. This ensures that the final input sequence strictly adheres to the model’s length constraints while enabling proper semantic interpretation.

4.4. Comparative Model

TextCNN: The Text Convolutional Neural Network is a convolutional neural network architecture specifically designed for processing text data.
FastText [33]: This model is an efficient text classification and representation library and framework developed by Facebook’s AI Research team.
DPCNN: The Deep Pyramid Convolutional Neural Network is a convolutional neural network architecture specifically designed for text classification tasks.
BERT: This model is a powerful pre-trained language representation model proposed by Google researchers in 2018. It significantly advanced the field by achieving state-of-the-art results across various natural language processing tasks.
BERT-CNN-LSTM [34]: This model utilizes BERT as the word embedding model. First, TextCNN extracts semantic features from the text, and then LSTM extracts feature information from the TextCNN output.
BERT-BiLSTM-ATT [35]: This model also employs BERT as the word embedding model. BiLSTM extracts semantic features from the text, and an attention mechanism is used to weight these features.
BERT-CBLBGA [36]: This model utilizes BERT as the word embedding model, employing TextCNN, BiLSTM, and BiGRU to extract global and local semantic features from text, and combines these through self-attention for feature fusion.
ALBERT: This is a variant of the BERT model designed to reduce model size and computational requirements while maintaining performance. This model was proposed by Google Research in 2019.
RoBERTa: This is a variant of the BERT (Bidirectional Encoder Representations from Transformers) model proposed by Facebook AI researchers in 2019. By addressing specific limitations and applying additional training techniques, RoBERTa aims to enhance BERT’s performance.
Ernie [37]: This is a language representation model developed by Baidu Research. It significantly improves language understanding capabilities by integrating external knowledge resources such as knowledge graphs or structured databases.
XLNet [38]: This is a state-of-the-art language representation model proposed by Google researchers in 2019. Based on the Transformer architecture, it introduces several innovative concepts to overcome limitations of previous models.
MacBert [39]: This model effectively bridges the gap between pre-training and fine-tuning phases by adopting a similar word tokenization mechanism, significantly improving performance on downstream tasks.
AlDCBAT [40]: This proposes a dual-channel hybrid framework integrating ALBERT, CNN, and BiGRU. Designed specifically for Tibetan sentiment analysis, the model mitigates semantic information loss and demonstrates improved classification accuracy compared to single-channel baselines.
OSLCFit [41]: This proposes a cohesive feature extraction architecture that organically integrates CNN and Bi-LSTM networks. By employing a unified optimizer and fine-tuning embeddings on review data, the model effectively tailors representations for sentiment polarity classification.
KSCB [42]: This model establishes an end-to-end framework integrating K-means++-SMOTE with CNN-Bi-LSTM. By restructuring corpora based on imbalance ratios, the model achieves adaptive data distribution optimization, demonstrating superior robustness compared to standard deep learning baselines.
CG-BERT [43]: This model integrates graph convolutions with BERT to model aspect-context dependencies, significantly enhancing aspect-level sentiment classification performance in low-resource scenarios.
MF-SDAM [44]: This model fuses syntactic dependency, BERT, TextCNN, and Att-BiLSTM via multi-feature fusion to enhance sentiment classification accuracy and robustness.

4.5. Results and Analysis

4.5.1. Comparison with Other Models

The results of the model comparison experiment are shown in Table 5.
The results of Table 5 have the following indications:
(1)
Across three datasets, the Acc score improvement over traditional deep learning models ranged from 9.02% to 11.94%, 5.56% to 7.98%, and 1.57% to 3.94%. Similarly, the F1 score improvements were 9.04–13.16%, 5.88–8.01%, and 2.65–6.08%.
(2)
Across the three datasets, compared to pre-trained models, the Accuracy improvement ranged from 1.19% to 6.84%, 0.51% to 2.57%, and 2.52% to 4.1%. Similarly, the F1 score improvement ranged from 1.16% to 6.82%, 0.27% to 2.27%, and 3.73% to 4.68%. Compared to traditional deep learning models, pre-trained models can learn deeper semantic meanings. However, the proposed model further improves performance over pre-trained models, indicating that our approach uncovers local fine-grained features overlooked by pre-trained models, thereby enhancing the model’s resolution when processing complex texts.
(3)
On the Waimai_10k dataset, compared to the AlDCBAT model, Accuracy and F1 scores improved by 2.43% and 4.02%, respectively; compared to the OSLCFit model, Accuracy and F1 scores improved by 2.49% and 0.91%, respectively. The results demonstrate that our method achieves further performance improvements compared to the AlDCBAT and OSLCFit models, which also employ convolutional networks. This is attributed to the high divergence and colloquial, informal expressions characteristic of the Waimai_10k dataset. Our proposed approach utilizes multi-scale convolutions to capture local keywords and long-range semantic dependencies. Through a multi-granularity feature fusion mechanism, it significantly enhances the feature fitting capability for non-standardized text compared to conventional convolutional networks.
(4)
On the Waimai_10k dataset, compared to the KSCB model, the Accuracy and F1 scores improved by 1.88% and 1.97%, respectively. Results indicate that while KSCB effectively adjusts data distribution by generating synthetic corpora, this sample-generation strategy may introduce latent semantic noise into the feature space. In contrast, the proposed method achieves synergistic collaboration among its modules, comprehensively analyzing text semantics across multiple receptive fields and granularities. Concurrently, its deeply integrated feature confusion mechanism effectively suppresses overfitting risks caused by noisy data, balancing multidimensional feature extraction with model robustness.
(5)
On the ChnSentiCorp dataset, our method achieves an Accuracy of 95.94% and an F1 score of 95.91%, surpassing MF-SDAM, which records 95% for both metrics. This demonstrates that integrating RoFormer-based positional enhancement with multi-scale convolution more effectively captures long-range dependencies and local semantic nuances in Chinese text. In the short-text, high-noise scenario of Waimai_10k, our approach attains 91.5% accuracy and 91.48% F1, significantly outperforming CG-BERT, which yields an F1 score of 78.34%, and slightly exceeding MF-SDAM. Notably, the substantial improvement in F1 score underscores the efficacy of our feature confusion mechanism in suppressing noise interference and sharpening decision boundaries, thereby confirming the model’s enhanced robustness and generalization capability, particularly under class imbalance conditions.

4.5.2. Ablation Experiment

  • Overall Analysis
To better explore the effective structure of the model, ablation experiments were conducted on three datasets. The model is introduced as follows:
Base: Uses only the RoFormer pre-trained model.
Hierarchy-aware: Incorporates multi-scale convolutional modules.
Feature fusion: Utilizes feature fusion modules.
Specific experimental results are shown in Table 6, Table 7 and Table 8.
The results in Table 6, Table 7 and Table 8 are analyzed as follows:
(1)
To validate the role of the hierarchical perception module in extracting local semantic features, a multi-scale convolution module was introduced based on the Base model. Experimental results show that after adding this module, the model outperformed the baseline model across all three datasets. Specifically, on the ChnSentiCorp dataset, Acc improved from 94.93% to 95.16%; on the COLD dataset, it increased from 80.95% to 81.49%; and on the Waimai_10k dataset, it rose from 90.83% to 90.91%. This significant improvement demonstrates that the multi-scale convolutional network effectively captures local phrase features, complementing the global features of the pre-trained model.
(2)
Having validated the Hierarchy-Aware Module, we further investigated the necessity of the Feature Fusion Module. By integrating BERT sentence vectors with the outputs of multi-scale convolutions, model performance was further enhanced. Experimental data show that compared to models using only hierarchical perception, introducing feature fusion increased ChnSentiCorp Accuracy by 0.31%, COLD by 0.39%, and Waimai_10k by 0.42%. This proves that simple feature concatenation is insufficient to fully utilize information, while explicit feature fusion mechanisms can more effectively integrate global and local information to improve classification accuracy.
(3)
To determine the optimal feature interaction method, experiments compared “additive” and “multiplicative” fusion strategies. While the additive strategy performed well on some metrics, the multiplicative strategy demonstrated greater potential for deep interactions among high-dimensional features. Specifically, on the ChnSentiCorp dataset, the “multiplication, no confusion” strategy achieved an Accuracy of 95.86%, significantly outperforming the “addition, no confusion” strategy’s Accuracy of 95.47%. This suggests that the multiplication operation may function similarly to gating or attention mechanisms within the feature space, suppressing noise while amplifying key feature representations. This provides a superior feature foundation for subsequent confusion mechanisms.
(4)
Finally, experiments validate the ultimate contribution of the proposed obfuscation mechanism to the model. Comparing the “multiplication, no obfuscation” approach with the final model (ours—multiplication, obfuscation), it can be seen that incorporating the obfuscation mechanism achieves optimal performance across all datasets. For the more complex COLD and Waimai_10k datasets, in particular, the Accuracy improved to 82.13% and 91.50%, respectively, with significant gains in F1 scores. This confirms that the confusion mechanism, as an effective regularization approach, successfully prevents model overfitting on training data while substantially enhancing generalization capability and robustness across diverse domain data.
2.
Category Accuracy Analysis
The aforementioned ablation experiments have demonstrated the effectiveness of the proposed module. To more precisely investigate the improvement of the proposed model on classification results, category accuracy validation was conducted on three datasets. The specific results are shown in Table 9, Table 10 and Table 11.
Table 9, Table 10 and Table 11 present the following analysis results:
(1)
After introducing the hierarchical perception module on top of the Base model, the model’s ability to capture fine-grained semantics is significantly enhanced, with particularly noticeable improvements in Recall. Experimental data reveals that the pure Transformer architecture exhibits omissions when processing certain specific categories. Taking the Waimai_10k dataset as an example, the Base model achieves only 78.50% Recall for positive categories. However, after incorporating the hierarchical perception module, this metric rapidly jumps to 85.50%, representing a 7-percentage-point increase. This demonstrates that the multi-scale convolutional network effectively extracts key local phrase features, compensating for the pre-trained model’s shortcomings in local semantic perception and substantially reducing sample omissions.
(2)
When validating the feature fusion module, experiments compared “additive” and “multiplicative” strategies (both under no confusion settings). Data indicates that the multiplicative strategy promotes deeper interactions between features. On the ChnSentiCorp dataset, comparing the “additive, no confusion” model with the “multiplicative, no confusion” model, the latter achieved higher F1 scores across both categories: F1 for the Negative category increased from 95.67% to 96.04%, and F1 for the positive category rose from 95.26% to 95.67%. This suggests that the multiplication operation may function similarly to attention gating, enhancing core semantic features while suppressing noise, thereby achieving a better balance between Precision and Recall.
(3)
After determining “multiplication” as the optimal fusion method, introducing a random index shuffling mechanism (our model) further enhances the model’s robustness in complex contexts. This is particularly evident in the more challenging COLD dataset. Compared to “Multiplication without Scrambling” and “Our,” the F1 score for the Safe category increased from 83.89% to 84.22%, while the F1 score for the Offensive category rose from 79.17% to 79.41%. The confusion mechanism effectively regularizes the model by increasing training sample diversity, enabling stronger generalization capabilities when encountering semantically ambiguous or borderline samples.
(4)
Overall, the Base model often exhibited an imbalance between Precision and Recall metrics, whereas our model achieved high performance across multiple metrics through modular integration. For instance, in the positive category of ChnSentiCorp, the Base model exhibits relatively low Recall (92.48%), whereas our model maintains high Precision (96.43%) while significantly boosting Recall to 95.20%, ultimately achieving an optimal F1 score of 95.81%. In the Negative category of Waimai_10k, our model achieves an impressive 96.00% Recall and 93.77% F1 score. This confirms that the proposed architecture effectively optimizes prediction distributions for specific categories, demonstrating significant advantages in fine-grained classification tasks.

4.5.3. Parameter Sensitivity Experiment

  • Multi-scale parameters
To determine the optimal hyperparameter settings for the multi-scale convolutional module and investigate the contribution of local semantic features at different granularities to classification performance, we compared various combinations of convolutional kernel sizes. The kernel size dictates the receptive field range for extracting local context. While keeping other parameters constant, we tested multiple combinations. The experimental results are shown in Figure 7, Figure 8 and Figure 9.
Results in Figure 7, Figure 8 and Figure 9 indicate the following:
(1)
For the Acc metric, the ChnSentiCorp dataset achieved optimal performance of 96.10% when the convolution kernel value was (1, 3), with the lowest performance of 95.86% at value 1. In the COLD dataset, performance peaked at 82.26% with kernel values (1, 3) and dropped to 81.70% at value 1. In the Waimai_10k dataset, performance reached its best at 91.50% with kernel values (1, 3, 5) and 1, while the lowest performance was 91.41% at values (1, 3).
(2)
In the Waimai_10k dataset, multi-scale processing did not yield significant improvements. This is because food delivery reviews are typically very short, with most core semantics often contained within just 1–2 characters or words. Consequently, a single scale is sufficient to capture the vast majority of critical sentiment features.
(3)
On the semantically ambiguous COLD and ChnSentiCorp datasets, models using Kernel = 1 alone performed poorly. Introducing the dual-scale structure (1, 3) rapidly enhanced the model’s understanding of phrase-level semantics, improving performance by 0.56% and 0.24%, respectively. This demonstrates that convolutional kernels of different scales form effective complementarity in the feature space, jointly constructing a more comprehensive semantic view.
2.
Confusing Parameters
To further evaluate the robustness of the proposed model and investigate the impact of data augmentation intensity on model performance within the confusion mechanism, we conducted experiments on hyperparameters. Their values determine the mixed proportion distribution when generating virtual samples. Different values were set across three scenarios, with the results shown in Figure 10, Figure 11 and Figure 12.
The results from Figure 10, Figure 11 and Figure 12 indicate the following:
(1)
In the ChnSentiCorp dataset, performance peaked at 96.25% when the threshold was set to 0.3 and reached its lowest point at 95.55% when set to 0.5. Overall, the average Accuracy and F1 scores reached 95.98% and 95.97%, respectively, outperforming all comparison models in the experiment. Additionally, the range of variation for both Accuracy and F1 metrics was 0.70%, indicating low fluctuation.
(2)
In the COLD dataset, performance peaked at 82.71% with a value of 0.6 and reached its lowest point at 82.13% with a value of 0.9. Overall, the average Accuracy and F1 scores both reached 82.36%, outperforming the comparison models in the experiment. Additionally, the range of variation for both Accuracy and F1 scores was low at 0.58% and 0.61%, respectively.
(3)
In the Waimai_10k dataset, performance peaked at 91.66% with a value of 0.1 and reached its lowest point at 90.75% with a value of 0.6. Overall, the average Accuracy and F1 scores both reached 91.06%, outperforming the comparison models in the experiment. Additionally, the range of Accuracy results was 0.91%, indicating a low fluctuation range.
(4)
The differing extremes across these three datasets stem from distinct semantic space distributions: The ChnSentiCorp dataset primarily consists of reviews from domains like hotels and books. Texts are typically of moderate length with relatively standardized syntax, clear sentiment word distribution, and minimal noise, allowing smaller parameter values to serve as regularization. The COLD dataset contains aggressive social media discourse, often featuring ambiguous semantics, irony, slang, or non-standard expressions. Parameter fine-tuning has limited impact here, demonstrating high robustness. The Waimai_10k dataset is characterized by extremely short texts with sparse semantic features, making it highly sensitive to parameter values.
In summary, through fine-grained parameter optimization, the proposed model fully leverages the advantages of feature masking and multi-scale convolutional networks to maximize classification accuracy, validating the method’s effectiveness and superiority. Concurrently, it is evident that the sparser the text’s features, the more sensitive the model becomes to parameters, necessitating smaller values; conversely, for more complex semantic contexts and richer features, larger parameter values should be explored.

4.5.4. Efficiency and Performance Trade-Off Analysis

To comprehensively evaluate the practical viability of our proposed method, we conducted a rigorous comparative analysis against the RoFormer-large baseline across three datasets. The evaluation encompasses five key metrics: Accuracy, F1-score, Training Time, Inference Time, and Model Size. The detailed results are presented in Table 12.
The proposed method achieves substantial improvements in classification performance compared to the baseline model, with an average gain of 0.95% in Accuracy and 1.52% in F1-score across all datasets. Furthermore, regarding efficiency, although training time increases by approximately 10%, inference latency remains negligible with an increase of less than 1.5%, and the model size grows only marginally by 16 MB. This demonstrates that our architectural enhancements deliver significant performance gains while introducing minimal computational overhead.

5. Conclusions and Future Work

To address the challenges of insufficient information extraction and suboptimal utilization of semantic features in text classification, we propose a feature-blending and hierarchical-aware classification approach. This model leverages RoFormer for character-level modeling to generate comprehensive word vector representations and incorporates a Multi-Scale Convolutional Network to capture both local and high-order features in depth. By employing our proposed feature-blending strategy, the model effectively enhances text representation learning and robustness against interference.
Extensive experiments on three benchmark datasets further validate the superiority of our method. Specifically, the model achieved Accuracy scores of 95.94% on ChnSentiCorp, 82.13% on COLD, and 91.50% on Waimai_10k. These results significantly outperform existing baselines, establishing a new benchmark for relevant research.
Future work will explore integrating knowledge graphs and multimodal methodologies to incorporate richer foundational data, thereby further improving classification efficacy and generalization capabilities across multi-domain texts.

Author Contributions

Conceptualization, D.H. and N.Q.; methodology, D.H.; software, N.Q. and N.T.; validation, D.H. and N.Q.; formal analysis, N.Q. and N.T.; investigation, D.H. and N.Q.; resources, N.Q. and N.T.; data curation, D.H.; writing—original draft preparation, D.H. and N.Q.; writing—review and editing, D.H. and N.Q.; visualization, D.H.; supervision, N.Q. and N.T.; project administration, N.Q. and N.T.; funding acquisition, N.Q. and N.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Key Project of the Tibet Autonomous Region Natural Science Foundation (grant number XZ202401ZR0040) and the Science and Technology Plan Project of Xizang Autonomous Region (grant number XZ202501ZY0101).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

This manuscript utilizes publicly available datasets, which can be accessed at the following links: Waimai dataset (https://huggingface.co/datasets/XiangPan/waimai_10k/viewer/default/train?p=1&row=105) (accessed on 8 November 2025), ChnSentiCorp dataset (https://github.com/duanruixue/chnsenticorp) (accessed on 11 November 2025), and COLD dataset (https://github.com/thu-coai/COLDataset) (accessed on 10 November 2025).

Acknowledgments

We gratefully acknowledge the support of the School of Information Science and Technology, Xizang University, the State Key Laboratory of Tibetan Intelligent Information Processing, and the Collaborative Innovation Center for Tibet Informatization Co-constructed by the Province and Ministry. We also thank the School of Mechanical and Electrical Engineering, Liuzhou Vocational University of Technology.

Conflicts of Interest

All authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as potential conflicts of interest.

References

  1. Zavrak, S.; Yilmaz, S. Email spam detection using hierarchical attention hybrid deep learning method. Expert Syst. Appl. 2023, 233, 120977. [Google Scholar] [CrossRef]
  2. Zhao, Q.; Niu, J.; Liu, X. ALS-MRS: Incorporating aspect-level sentiment for abstractive multi-review summarization. Knowl.-Based Syst. 2022, 258, 109942. [Google Scholar] [CrossRef]
  3. Zhou, Z.; Zhou, X.; Qian, L. Online public opinion analysis on infrastructure megaprojects: Toward an analytical framework. J. Manag. Eng. 2021, 37, 04020105. [Google Scholar] [CrossRef]
  4. Zeng, J.; Zhang, D.; Li, Z.; Li, X. Semi-supervised training of transformer and causal dilated convolution network with applications to speech topic classification. Appl. Sci. 2021, 11, 5712. [Google Scholar] [CrossRef]
  5. Anki, P.; Bustamam, A.; Buyung, R.A. Comparative analysis of performance between multimodal implementation of chatbot based on news classification data using categories. Electronics 2021, 10, 2696. [Google Scholar] [CrossRef]
  6. Kim, Y. Convolutional neural networks for sentence classification. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar, 25–29 October 2014; Available online: https://aclanthology.org/D14-1181/ (accessed on 4 February 2026).
  7. Sparck Jones, K. A statistical interpretation of term specificity and its application in retrieval. J. Doc. 1972, 28, 11–21. [Google Scholar] [CrossRef]
  8. Ruan, S.; Chen, B.; Song, K.; Li, H. Weighted naïve Bayes text classification algorithm based on improved distance correlation coefficient. Neural Comput. Appl. 2022, 34, 2729–2738. [Google Scholar] [CrossRef]
  9. El Hindi, K.; Abu Shawar, B.; Aljulaidan, R.; Alsalamn, H. Improved Distance Functions for Instance-Based Text Classification. Comput. Intell. Neurosci. 2020, 2020, 4717984. [Google Scholar] [CrossRef] [PubMed]
  10. Chen, T.; Guestrin, C. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar] [CrossRef]
  11. Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q.; Liu, T. LightGBM: A highly efficient gradient boosting decision tree. In Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; pp. 3149–3157. Available online: https://dl.acm.org/doi/10.5555/3294996.3295074 (accessed on 4 February 2026).
  12. Mienye, I.D.; Swart, T.G.; Obaido, G. Recurrent neural networks: A comprehensive review of architectures, variants, and applications. Information 2024, 15, 517. [Google Scholar] [CrossRef]
  13. Conneau, A.; Schwenk, H.; Barrault, L.; Lecun, Y. Very deep convolutional networks for text classification. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics, Valencia, Spain, 3–7 April 2017; Volume 1. Available online: https://aclanthology.org/E17-1104/ (accessed on 7 February 2026).
  14. Johnson, R.; Zhang, T. Semi-supervised convolutional neural networks for text categorization via region embedding. Adv. Neural Inf. Process. Syst. 2015, 28, 919–927. [Google Scholar] [PubMed]
  15. Johnson, R.; Zhang, T. Deep pyramid convolutional neural networks for text categorization. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, Vancouver, BC, Canada, 30 July–4 August 2017; Volume 1, pp. 562–570. [Google Scholar] [CrossRef]
  16. He, K.; Zhang, X.; Ren, S.; Sun, J. Identity mappings in deep residual networks. In Proceedings of the European Conference on Computer Vision, Amsterdam, The Netherlands, 11–14 October 2016; Springer International Publishing: Cham, Switzerland, 2016; pp. 630–645. [Google Scholar] [CrossRef]
  17. Jiang, B.; Zhang, Z.; Lin, D.; Tang, J.; Luo, B. Semi-supervised learning with graph learning-convolutional networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 16–20 June 2019. [Google Scholar] [CrossRef]
  18. Yao, L.; Mao, C.; Luo, Y. Graph convolutional networks for text classification. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 7370–7377. [Google Scholar] [CrossRef]
  19. Chen, G.; Tian, Y.; Song, Y. Joint aspect extraction and sentiment analysis with directional graph convolutional networks. In Proceedings of the 28th International Conference on Computational Linguistics, Virtual, 8–13 December 2020; pp. 272–279. [Google Scholar] [CrossRef]
  20. Chen, M.; Wei, Z.; Huang, Z.; Ding, B.; Li, Y. Simple and deep graph convolutional networks. In Proceedings of the International Conference on Machine Learning. PMLR, Virtual, 13–18 July 2020; pp. 1725–1735. Available online: https://dl.acm.org/doi/abs/10.5555/3524938.3525099 (accessed on 10 February 2026).
  21. Koutnik, J.; Greff, K.; Gomez, F.; Schmidhuber, J. A clockwork rnn. In Proceedings of the International Conference on Machine Learning. PMLR, Beijing, China, 21–26 June 2014; pp. 1863–1871. Available online: https://proceedings.mlr.press/v32/koutnik14.html (accessed on 10 February 2026).
  22. Schuster, M.; Paliwal, K.K. Bidirectional recurrent neural networks. IEEE Trans. Signal Process. 1997, 45, 2673–2681. [Google Scholar] [CrossRef]
  23. Wang, Y.; Sun, A.; Han, J.; Liu, Y.; Zhu, X. Sentiment analysis by capsules. In Proceedings of the 2018 World Wide Web Conference, Lyon, France, 23–27 April 2018; pp. 1165–1174. [Google Scholar] [CrossRef]
  24. Zhou, P.; Shi, W.; Tian, J.; Qi, Z.; Li, B.; Hao, H.; Xu, B. Attention-based bidirectional long short-term memory networks for relation classification. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, Berlin, Germany, 7–12 August 2016; Volume 2, pp. 207–212. [Google Scholar] [CrossRef]
  25. Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Minneapolis, MN, USA, 2–7 June 2019; Volume 1, pp. 4171–4186. [Google Scholar] [CrossRef]
  26. Guo, Z.; Zhu, L.; Han, L. Research on short text classification based on roberta-textrcnn. In Proceedings of the 2021 International Conference on Computer Information Science and Artificial Intelligence (CISAI), Virtual, 17–19 September 2021; IEEE: Piscataway, NJ, USA, 2021. [Google Scholar] [CrossRef]
  27. Runmei, Z.; Lulu, L.; Lei, Y.; Jingjing, L.; Weiyi, X.; Weiwei, C.; Zhong, C. Chinese named entity recognition method combining ALBERT and a local adversarial training and adding attention mechanism. Int. J. Semant. Web Inf. Syst. 2022, 18, 1–20. [Google Scholar] [CrossRef]
  28. Dai, Y.; Li, L.; Zhou, C.; Feng, Z.; Zhao, E.; Qiu, X.; Li, P.; Tang, D. “Is whole word masking always better for Chinese BERT?”: Probing on Chinese grammatical error correction. In Findings of the Association for Computational Linguistics: ACL 2022; ACL Press: Stroudsburg, PA, USA, 2022. [Google Scholar] [CrossRef]
  29. Yu, W.; Zhu, C.; Fang, Y.; Yu, D.; Wang, S.; Xu, Y.; Zeng, M.; Jiang, M. Dict-bert: Enhancing language model pre-training with dictionary. In Findings of the Association for Computational Linguistics: ACL 2022; ACL Press: Stroudsburg, PA, USA, 2022. [Google Scholar] [CrossRef]
  30. Su, J.; Ahmed, M.; Lu, Y.; Pan, S.; Bo, W.; Liu, Y. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing 2024, 568, 127063. [Google Scholar] [CrossRef]
  31. Liang, D.; Yang, F.; Zhang, T.; Yang, P. Understanding mixup training methods. IEEE Access 2018, 6, 58774–58783. [Google Scholar] [CrossRef]
  32. Müller, R.; Kornblith, S.; Hinton, G.E. When does label smoothing help? In Proceedings of the 33rd International Conference on Neural Information Processing Systems, Vancouver, BC, Canada, 8–14 December 2019; Volume 32. Available online: https://dl.acm.org/doi/10.5555/3454287.3454709 (accessed on 11 February 2026).
  33. Joulin, A.; Grave, E.; Bojanowski, P.; Mikolov, T. Bag of tricks for efficient text classification. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics, Valencia, Spain, 3–7 April 2017; Volume 2. Available online: https://aclanthology.org/E17-2068/ (accessed on 11 February 2026).
  34. Ankita; Rani, S.; Bashir, A.K.; Alhudhaif, A.; Koundal, D.; Gunduz, E.S. An efficient CNN-LSTM model for sentiment detection in #BlackLivesMatter. Expert Syst. Appl. 2022, 193, 116256. [Google Scholar] [CrossRef]
  35. Zhang, Y.; Wang, J.; Zhang, X. YNU-HPCC at semeval-2018 task 1:BiLSTM with attention based sentiment analysis for affect in tweets. In Proceedings of the 12th International Workshop on Semantic Evaluation, Valencia, Spain, 3–7 April 2017; ACL Press: Stroudsburg, PA, USA, 2018; pp. 273–278. [Google Scholar] [CrossRef]
  36. Jia, K.; Meng, F.; Liang, J.; Gong, P. Text sentiment analysis based on BERT-CBLBGA. Comput. Electr. Eng. 2023, 112, 109019. [Google Scholar] [CrossRef]
  37. Zhang, Z.; Han, X.; Liu, Z.; Jiang, X.; Sun, M.; Liu, Q. ERNIE: Enhanced language representation with informative entities. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, 28 July–2 August 2019. [Google Scholar] [CrossRef]
  38. Yang, Z.; Dai, Z.; Yang, Y.; Carbonell, J.; Salakhutdinov, R.; Le, Q.V. Xlnet: Generalized autoregressive pretraining for language understanding. In Proceedings of the 33rd Annual Conference on Neural Information Processing Systems, Vancouver, BC, Canada, 8–14 December 2019; Volume 32. [Google Scholar] [CrossRef]
  39. Cui, Y.; Che, W.; Liu, T.; Qin, B.; Wang, S.; Hu, G. Revisiting pre-trained models for Chinese natural language processing. In Findings of the Association for Computational Linguistics: EMNLP 2020; ACL Press: Stroudsburg, PA, USA, 2020. [Google Scholar] [CrossRef]
  40. Zhu, Y.; Luosai, B.; Zhou, L.; Qun, N.; Nyima, T. Research on sentiment analysis of tibetan short text based on dual-channel hybrid neural network. In Proceedings of the 2023 IEEE 4th International Conference on Pattern Recognition and Machine Learning (PRML), Urumqi, China, 4–6 August 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 377–384. [Google Scholar] [CrossRef]
  41. Kiran, R.; Kumar, P.; Bhasker, B. OSLCFit (organic simultaneous LSTM and CNN Fit): A novel deep learning based solution for sentiment polarity classification of reviews. Expert Syst. Appl. 2020, 157, 113488. [Google Scholar] [CrossRef]
  42. Jiang, W.; Zhou, K.; Xiong, C.; Du, G.; Ou, C.; Zhang, J. KSCB: A novel unsupervised method for text sentiment analysis. Appl. Intell. 2023, 53, 301–311. [Google Scholar] [CrossRef]
  43. Cao, F.; Huang, X. Performance analysis of aspect-level sentiment classification task based on different deep learning models. PeerJ Comput. Sci. 2023, 9, e1578. [Google Scholar] [CrossRef] [PubMed]
  44. Xia, J.; Yu, Z.; Deng, Q. Multi-feature multiple fusion sentiment classification model based on syntactic dependency and attention mechanism. Appl. Res. Comput. 2024, 41, 3295–3302. [Google Scholar] [CrossRef]
Figure 1. Structural diagram of the network model.
Figure 1. Structural diagram of the network model.
Applsci 16 02973 g001
Figure 2. Multi-scale convolutional architecture.
Figure 2. Multi-scale convolutional architecture.
Applsci 16 02973 g002
Figure 3. Illustration of the random shuffling and confusion mechanism.
Figure 3. Illustration of the random shuffling and confusion mechanism.
Applsci 16 02973 g003
Figure 4. Class count statistics across Waimai_10k dataset splits.
Figure 4. Class count statistics across Waimai_10k dataset splits.
Applsci 16 02973 g004
Figure 5. Class count statistics across ChnSentiCorp dataset splits.
Figure 5. Class count statistics across ChnSentiCorp dataset splits.
Applsci 16 02973 g005
Figure 6. Class count statistics across COLD dataset splits.
Figure 6. Class count statistics across COLD dataset splits.
Applsci 16 02973 g006
Figure 7. Impact of multi-scale kernel configurations on performance for the ChnSentiCorp dataset.
Figure 7. Impact of multi-scale kernel configurations on performance for the ChnSentiCorp dataset.
Applsci 16 02973 g007
Figure 8. Impact of multi-scale kernel configurations on performance for the COLD dataset.
Figure 8. Impact of multi-scale kernel configurations on performance for the COLD dataset.
Applsci 16 02973 g008
Figure 9. Impact of multi-scale kernel configurations on performance for the Waimai_10k dataset.
Figure 9. Impact of multi-scale kernel configurations on performance for the Waimai_10k dataset.
Applsci 16 02973 g009
Figure 10. Impact of confusion parameter ∂ (0.1–0.9) for ChnSentiCorp.
Figure 10. Impact of confusion parameter ∂ (0.1–0.9) for ChnSentiCorp.
Applsci 16 02973 g010
Figure 11. Impact of confusion parameter ∂ (0.1–0.9) for COLD.
Figure 11. Impact of confusion parameter ∂ (0.1–0.9) for COLD.
Applsci 16 02973 g011
Figure 12. Impact of confusion parameter ∂ (0.1–0.9) for Waimai_10k.
Figure 12. Impact of confusion parameter ∂ (0.1–0.9) for Waimai_10k.
Applsci 16 02973 g012
Table 1. Dataset.
Table 1. Dataset.
DatasetTrainValTestDomain
Waimai_10k958911991199Food Delivery Reviews
ChnSentiCorp960012001200Hotel Reviews
COLD25,72664315323Offensive Language Detection
Table 2. Confusion matrix.
Table 2. Confusion matrix.
Sample True ClassModel Prediction Category
TrueFalse
TrueTPFN
FalseFPTN
Table 3. Experimental environment.
Table 3. Experimental environment.
Environment ComponentConfiguration
Operating SystemUbuntu20.04
CPUIntel Xeon Platinum 8358P
GPURTX 3090
RAM90 GB
Programming LanguagePython 3.8
FrameworkPyTorch 1.10.0
Table 4. Parameter settings.
Table 4. Parameter settings.
ParameterWaimai_10kChnSentiCorpCOLD
Batch size161616
max_len256256256
lr2 × 10−52 × 10−52 × 10−5
Word vector dimension102410241024
eval_step500500500
OptimizerAdamWAdamWAdamW
Epoch773
Convolution kernel size1, 3, 51, 3, 51, 3, 5
0.90.90.9
out_channels256256256
Dropout0.30.30.3
Table 5. Model comparison results.
Table 5. Model comparison results.
ModelChnSentiCorpCOLDWaimai_10k
Acc (%)F1 (%)Acc (%)F1 (%)Acc (%)F1 (%)
TextCNN84.0084.0074.1574.0987.5685.40
FastText86.9286.9074.9675.2189.9388.83
DPCNN84.7582.7576.5776.2288.9387.64
BERT-CNN-LSTM----89.6588.35
BERT92.3092.2981.2381.3988.9887.75
BERT-BiLSTM-ATT----89.2387.71
Albert-base89.1089.0979.5680.1287.4086.80
Albert-large91.4791.5280.2479.83--
RoBerta92.6492.6481.6281.83--
MacBERT92.4592.4581.3681.29--
ERNIE93.5893.5881.2981.46--
Xlnet94.7594.7581.5781.7691.4290.50
AlDCBAT----89.0787.46
OSLCFit----89.0190.57
KSCB----89.6289.51
CG-BERT----89.0178.34
MF-SDAM95.0095.00--91.4990.36
Our95.9495.9182.1382.1091.5091.48
Note: Bold values indicate the best performance compared to the baseline models.
Table 6. Model ChnSentiCorp ablation experiment.
Table 6. Model ChnSentiCorp ablation experiment.
ModelChnSentiCorp
Acc (%)F1 (%)
Base94.9394.92
Base + Hierarchy-aware95.1695.15
Base + Hierarchy-aware + Feature fusion
(Addition, no confusion)
95.4795.47
Base + Hierarchy-aware + Feature fusion
(Addition, confusion)
95.8695.86
Base + Hierarchy-aware + Feature fusion
(Multiplication, no confusion)
95.8695.86
Base + Hierarchy-aware + Feature fusion
(Multiplication, confusion—our model)
95.9495.91
Note: Bold values indicate the best performance compared to the baseline models.
Table 7. Model COLD ablation experiment.
Table 7. Model COLD ablation experiment.
ModelCOLD
Acc (%)F1 (%)
Base80.9580.77
Base + Hierarchy-aware81.4981.27
Base + Hierarchy-aware + Feature fusion
(Addition, no confusion)
81.8881.64
Base + Hierarchy-aware + Feature fusion
(Addition, confusion)
81.7981.48
Base + Hierarchy-aware + Feature fusion
(Multiplication, no confusion)
81.8381.53
Base + Hierarchy-aware + Feature fusion
(Multiplication, confusion—our model)
82.1382.10
Note: Bold values indicate the best performance compared to the baseline models.
Table 8. Model Waimai_10k ablation experiment.
Table 8. Model Waimai_10k ablation experiment.
ModelWaimai_10k
Acc (%)F1 (%)
Base90.8389.23
Base + Hierarchy-aware90.9189.73
Base + Hierarchy-aware + Feature fusion
(Addition, no confusion)
91.3390.05
Base + Hierarchy-aware + Feature fusion
(Addition, confusion)
90.9189.54
Base + Hierarchy-aware + Feature fusion
(Multiplication, no confusion)
91.0889.85
Base + Hierarchy-aware + Feature fusion
(Multiplication, confusion—our model)
91.5091.48
Note: Bold values indicate the best performance compared to the baseline models.
Table 9. Model ChnSentiCorp category metric.
Table 9. Model ChnSentiCorp category metric.
ModelChnSentiCorp
NegativePositive
P (%)R (%)F1 (%)P (%)R (%)F1 (%)
Base93.1597.2695.1696.9792.4894.67
Base + Hierarchy-aware93.4497.4195.3897.1592.8094.92
Base + Hierarchy-aware + Feature fusion
(Addition, no confusion)
93.9897.4195.6797.1793.4495.26
Base + Hierarchy-aware + Feature fusion
(Addition, confusion)
95.7696.2095.9895.9895.5295.74
Base + Hierarchy-aware + Feature fusion
(Multiplication, no confusion)
94.2897.8796.0497.6693.7695.67
Base + Hierarchy-aware + Feature fusion
(Multiplication, confusion—our model)
95.4996.6596.0796.4395.2095.81
Note: Bold values indicate the best performance compared to the baseline models.
Table 10. Model COLD category metric.
Table 10. Model COLD category metric.
ModelCOLD
SafeOffensive
P (%)R (%)F1 (%)P (%)R (%)F1 (%)
Base92.1174.8782.6070.1790.2278.94
Base + Hierarchy-aware91.4876.4983.3171.2989.1379.22
Base + Hierarchy-aware + Feature fusion
(Addition, no confusion)
91.3377.3683.7771.9888.7979.51
Base + Hierarchy-aware + Feature fusion
(Addition, confusion)
90.1678.4283.8872.5286.9479.08
Base + Hierarchy-aware + Feature fusion
(Multiplication, no confusion)
90.3478.2983.8972.4787.2379.17
Base + Hierarchy-aware + Feature fusion
(Multiplication, confusion—our model)
90.2878.9184.2273.0087.0479.41
Note: Bold values indicate the best performance compared to the baseline models.
Table 11. Model Waimai_10k category metric.
Table 11. Model Waimai_10k category metric.
ModelWaimai_10k
NegativePositive
P (%)R (%)F1 (%)P (%)R (%)F1 (%)
Base90.0297.0093.3892.8978.5085.09
Base + Hierarchy-aware92.8193.6293.2187.0285.5086.25
Base + Hierarchy-aware + Feature fusion
(Addition, no confusion)
91.9295.3793.6190.0083.2586.49
Base + Hierarchy-aware + Feature fusion
(Addition, confusion)
91.3795.3793.3389.8682.0085.75
Base + Hierarchy-aware + Feature fusion
(Multiplication, no confusion)
92.4194.3793.3888.2584.5086.33
Base + Hierarchy-aware + Feature fusion
(Multiplication, confusion—our model)
91.6496.0093.7791.1682.5086.61
Note: Bold values indicate the best performance compared to the baseline models.
Table 12. Comprehensive comparison of performance and efficiency.
Table 12. Comprehensive comparison of performance and efficiency.
DatasetsAcc (%)F1 (%)Training Time (s)Inference Time (s)Model Size (MB)
BaselineOurBaselineOurBaselineOurBaselineOurBaselineOur
ChnSentiCorp94.9395.94
(+1.01%)
94.9295.91
(+0.99%)
1820.12030.3
(+210.2 s)
10.2610.40
(+0.14 s)
11981214
(+16 M)
COLD80.9582.13
(+1.18%)
80.7782.10
(+1.33%)
1445.961559.71
(+113.75 s)
23.9724.04
(+0.07 s)
11981214
(+16 M)
Waimai_10k90.8391.5
(+0.67%)
89.2391.48
(+2.25%)
820.46916.75
(+96.29 s)
4.644.68
(+0.04 s)
11981214
(+16 M)
Note: Bold values indicate the best performance compared to the baseline models.
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.

Share and Cite

MDPI and ACS Style

He, D.; Qun, N.; Tashi, N. Research on Enhanced Chinese Text Classification Through Feature Confusion and Hierarchical Perception. Appl. Sci. 2026, 16, 2973. https://doi.org/10.3390/app16062973

AMA Style

He D, Qun N, Tashi N. Research on Enhanced Chinese Text Classification Through Feature Confusion and Hierarchical Perception. Applied Sciences. 2026; 16(6):2973. https://doi.org/10.3390/app16062973

Chicago/Turabian Style

He, Dongkang, Nuo Qun, and Nyima Tashi. 2026. "Research on Enhanced Chinese Text Classification Through Feature Confusion and Hierarchical Perception" Applied Sciences 16, no. 6: 2973. https://doi.org/10.3390/app16062973

APA Style

He, D., Qun, N., & Tashi, N. (2026). Research on Enhanced Chinese Text Classification Through Feature Confusion and Hierarchical Perception. Applied Sciences, 16(6), 2973. https://doi.org/10.3390/app16062973

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop