Overview
In the landscape of Chinese social media, users frequently employ "Writing Systems Changes" (WSCs)—the practice of interspersing Chinese characters with Latin letters, Pinyin, or emojis. While these switches serve various social and linguistic purposes, they present a significant challenge for traditional Natural Language Processing (NLP) tools. This research introduces a Hybrid Attention Network (HAN) designed to specifically model these linguistic shifts, capturing emotional nuances that standard models often overlook.
The Challenge of Writing Systems Change
On platforms like Weibo, WSCs are ubiquitous. Users might switch to English for brevity ("happy!"), use Pinyin acronyms to circumvent censorship (e.g., "zz" for zhi zhang), or use symbols to soften social interactions. From a computational perspective, these switches break the grammatical and syntactic structure of sentences. Most existing sentiment analysis tools treat these segments as noise or ignore them entirely, thereby losing critical emotional cues.
The authors' analysis reveals that WSCs are not merely random noise but are often the primary carriers of emotion. Interestingly, English emotion words account for only about a third of these changes; the majority fall into a broader category of symbols and emojis, suggesting that the act of switching systems is itself a stylistic choice linked to emotional expression.
Methodology: The Hybrid Attention Network
To address the dual nature of mixed-script texts, the proposed HAN architecture processes global context and local WSC features through parallel paths:
- Global Context (LSTM): The entire document is processed by a Long Short-Term Memory (LSTM) network to capture the sequential flow and overall coherence.
- Local WSC Features (CNN): Isolated WSC segments are fed into a Convolutional Neural Network (CNN). Because these segments often lack standard syntax and appear discontinuously, the CNN's ability to extract local patterns and keywords is superior to sequential modeling for these snippets.
- Hybrid Attention Layer: This layer integrates the two representations. It uses an attention mechanism to weigh the importance of specific words, projecting the major text representation into attention vectors while aggregating informative cues from the WSC context.
Experimental Results
The HAN model was evaluated on a Chinese microblog dataset of 8,728 instances, each containing at least one WSC. The model was tasked with classifying instances into five emotional categories: Happiness, Sadness, Anger, Fear, and Surprise.
The HAN outperformed several baselines, including standard Support Vector Machines (SVM), CNNs, LSTMs, and the previous state-of-the-art Bilingual Attention Network (BAN).
As shown in the results, the HAN achieved a weighted F1-score of 0.688, a notable improvement over the BAN (0.678) and standard LSTM (0.671). The model showed particularly strong performance in detecting "Happiness" and "Anger," both achieving an F1-score of 0.729. Ablation studies further confirmed that removing either the Chinese text or the WSC segments significantly degraded performance, proving that the interaction between the two systems is vital for accurate emotion analysis.
Conclusion and Future Work
The success of the Hybrid Attention Network highlights the importance of modeling non-standard linguistic features in social media analysis. By treating Writing Systems Changes as informative signals rather than noise, the model achieves superior accuracy in emotion detection. Future research directions include expanding the study to larger, more diverse datasets and exploring the use of WSCs in the context of censorship circumvention and its relationship to social frustration.
Summary updated