Social media platforms like Twitter offer a vast, real-time stream of public health data. However, mining this data for medical insights is challenging due to the informal nature of the language and the rarity of specific medical events. At the Social Media Mining for Health (SMM4H) 2021 Shared Tasks, the CASIA_Unisound team developed a suite of transformer-based models to tackle these hurdles, achieving state-of-the-art results in breast cancer detection and competitive performance in adverse drug effect (ADE) mining.
The Challenges of Social Media Mining
Extracting structured medical data from tweets involves overcoming two primary obstacles:
- Colloquialism: Users rarely use formal medical terminology. Instead, they use slang, emojis, and idiosyncratic phrasing. For instance, a user might say a drug "gets rid of my appetite" rather than reporting "appetite lost."
- Class Imbalance: Medical reports are "needle-in-a-haystack" events. In a typical dataset, negative examples (non-reports) vastly outnumber positive ones, making it difficult for models to learn the characteristics of rare events.
Methodology: Robustness and Augmentation
The team utilized domain-specific pre-trained models, specifically BERTweet (pre-trained on 850 million tweets) and RoBERTa, as their architectural backbones. To address the inherent noise and imbalance of the data, they implemented several innovative training strategies:
Pseudo-Data Construction
To combat class imbalance in ADE detection (Task 1), the team generated "pseudo-ADE" tweets. By taking formal medical descriptions from the MedDRA database and injecting them into random tweet contexts, they created a more balanced training set that improved the model's ability to recognize rare symptoms.
Triplet Loss for Normalization
For mapping colloquial mentions to formal terms (Task 1c), the team used a "Recall + Rank" strategy. They employed triplet loss to ensure that the global representation of a tweet remained consistent when a colloquial term was replaced by its formal equivalent, while diverging significantly when replaced by an incorrect term.
Adversarial Training and Noise Injection
To prevent models from over-relying on specific keywords without considering context, the team used the Fast Gradient Method (FGM). This adversarial technique calculates small input perturbations that maximize loss, forcing the model to find more robust parameters. They also used random word replacement (noise injection) to ensure the model looked at the entire sentence structure.
Key Results and Insights
The CASIA_Unisound team's approach proved highly effective across multiple tasks:
- Breast Cancer Detection (Task 8): The team achieved the highest F1-score in the competition (0.8701). Their ablation studies confirmed that robust training (FGM and Noise Injection) was critical, improving the F1-score by nearly 2% over the baseline by helping the model distinguish between actual reports and hypothetical or dream-based mentions.
- ADE Mining (Task 1): The classification model achieved an F1 of 0.49, significantly outperforming the competition average of 0.44. The normalization system reached an F1 of 0.276, also well above the 0.22 average.
- Spanish ProfNER (Task 7b): An ensemble of 30 models achieved a competitive F1-score of 0.733 in identifying professions within Spanish COVID-19 tweets.
Conclusion
The success of the CASIA_Unisound team highlights the importance of domain-specific pre-training and robust data augmentation in social media mining. While their models showed high recall in entity extraction, future work will focus on improving precision and integrating structured medical knowledge graphs to further enhance semantic comprehension.
Summary updated