Su Rui, Gao Shangbing, Zhao Kefan, Zhang Junqiang
School of Computer and Software Engineering, Huaiyin Institute of Technology, Huai'an, Jiangsu, China.
Jiangsu Internet of Things Mobile Internet Technology Engineering Laboratory, Huai'an, Jiangsu, China.
Sci Rep. 2025 Apr 3;15(1):11488. doi: 10.1038/s41598-025-95492-y.
Text classification aims to establish text distinctions, which face difficulty in capturing global text semantics and local details. To address this issue, we propose an Adaptive Feature Interactive Enhancement Network (AFIENet). Specifically, AFIENet uses two branches to model the text globally and locally. The adaptive segmentation module in the local network can dynamically split the text and capture key phrases, while the global network grasps the overall central semantics. After obtaining the results from the two branches, an interaction gate is designed to evaluate the confidence of the global features and selectively fuse them with the local features effectively. Finally, the interactively enhanced features are re-input into the classifier to improve text classification performance. Experiment results show that our proposed method can effectively enhance the performance of backbone networks such as TextCNN, RNN, and Transformer with fewer parameters. AFIENet achieved an average accuracy of 3.82% and an F1-score of 3.88% improvement across the three datasets when using Transformer as the backbone network. The comparable results to MacBERT that obtained with static word vectors also reflect the applicability of the proposed method.
文本分类旨在建立文本区分,这在捕捉全局文本语义和局部细节方面面临困难。为了解决这个问题,我们提出了一种自适应特征交互增强网络(AFIENet)。具体而言,AFIENet使用两个分支对文本进行全局和局部建模。局部网络中的自适应分割模块可以动态分割文本并捕获关键短语,而全局网络则把握整体核心语义。在从两个分支获得结果后,设计一个交互门来评估全局特征的置信度,并有效地将它们与局部特征选择性地融合。最后,将交互增强的特征重新输入到分类器中以提高文本分类性能。实验结果表明,我们提出的方法可以用较少的参数有效地提高TextCNN、RNN和Transformer等骨干网络的性能。当使用Transformer作为骨干网络时,AFIENet在三个数据集上的平均准确率提高了3.82%,F1分数提高了3.88%。与使用静态词向量获得的MacBERT相当的结果也反映了所提出方法的适用性。