Leveraging Medical Sentiment to Understand Patients Health on Social Media

Shweta Yadav, Joy Sain, Amit Sheth, Asif Ekbal, Sriparna Saha, Pushpak BhattacharyyaarXiv 2018

TL;DR

This paper introduces MS-CNN (Medical Sentiment Convolutional Neural Network), a hybrid deep learning architecture designed to classify fine-grained patient health status from unstructured social media posts. By combining automated CNN feature extraction with domain-specific medical sentiment features and a Support Vector Machine (SVM) classifier, the model accurately tracks whether a patient's condition is existing, deteriorating, or recovering, significantly outperforming standard NLP baselines.

What Problem Does This Paper Address?

Traditional sentiment analysis is built for the commercial web—think mapping product reviews or movie tweets to simple positive, negative, or neutral polarities. However, applying these standard tools to patient-generated text on medical forums fails completely. Why? Because nearly 95% of these posts inherently carry a negative sentiment.

To be useful for clinical decision support or prioritizing urgent patient posts, a sentiment analyzer must be far more granular. It needs to capture internal sentiment—the trajectory of a patient's own feelings, symptoms, and treatment outcomes. The challenge lies in distinguishing whether a condition simply exists, is actively worsening (deteriorating), or is improving (recovering), often from informal, messy social media text.

Methods

The authors propose a novel architecture called Medical Sentiment-CNN (MS-CNN) that merges data-driven deep learning with expert-crafted linguistic features.

Figure 1: Proposed MS-CNN architecture for predicting the m conditionmedical condition from the medical blog.

The pipeline consists of three main phases:

  1. CNN Feature Extraction: Standard word embeddings feed into a convolutional layer with multiple filter sizes to automatically capture semantic and contextual n-gram information. A max-pooling layer then extracts the most prominent features.
  2. Medical Sentiment Feature Layer: To capture domain-specific nuances that generic embeddings might miss, the authors introduce an augmentation layer with two custom features:
  3. Sentiment Word Feature (SWF): Uses SentiWordNet to calculate positive, negative, and objective scores while explicitly accounting for negations (e.g., shifting polarity for phrases like "I am not stable").
  4. Medical Sentiment Context Feature (MCF): Focuses on stative verbs common in medical text (e.g., feel, suffer, experience) and calculates sentiment densities within a local window around these anchor words.
  5. SVM Classification: Instead of using a standard softmax (Logistic Regression) layer at the output of the network, the authors employ a Support Vector Machine (SVM) with a non-linear Gaussian kernel. This design choice helps the model better handle non-linearly separable data and reduces the risk of overfitting.

Datasets

The model was evaluated on two distinct datasets:

  • Curated Medical Blog Dataset: A newly introduced benchmark consisting of 4,057 posts crawled from popular health forums (Patient.info and dailystrength.org). It covers four major health groups: depression, allergy, asthma, and anxiety. Expert annotators classified the posts into four categories: Recovered, Exist, Deteriorate, and Other.
  • CLEF eHealth 2014 (Task 2a): A well-known benchmark corpus containing clinical reports from Intensive Care Units (ICU) sampled from the MIMIC-II database. This dataset was used to test the model's ability to normalize attributes like 'Severity Class' and 'Course Class'.

Key Insights and Ideas

  • Trajectory Over Polarity: In specialized domains like healthcare, binary sentiment classification is a dead end. The real value lies in tracking the change in a patient's condition over time.
  • The Power of Hybrid Architectures: While pure deep learning models (like standard CNNs) are powerful, supplementing them with hand-crafted contextual features (like tracking stative verbs) provides a significant performance boost in highly specialized domains.
  • Rethinking the Output Layer: For complex, non-linearly separable text classification tasks, swapping out the ubiquitous softmax layer for a non-linear SVM classifier can yield noticeable accuracy gains.

Key Results

On the curated medical blog dataset, the proposed MS-CNN model achieved an F-Score of 0.8393, representing a 15.27% improvement over a Bag-of-Words+SVM baseline and a 4.17% improvement over a standard CNN using only word embeddings.

Performance comparison of MS-CNN against baseline models.

Ablation studies showed that the combination of multiple filter lengths (sizes 3, 4, and 5) paired with a 300-dimensional feature size yielded the optimal configuration for capturing context. Furthermore, when tested on the clean, structured text of the CLEF eHealth 2014 benchmark, MS-CNN achieved near-perfect accuracy (0.9832 for Severity and 0.9837 for Course Class), outperforming previous state-of-the-art systems.

Limitations and Future Work

Despite its success, the authors highlighted three primary sources of error that point to future research directions:

  1. Short Blog Texts (26% of errors): The model struggles with very brief posts (e.g., "Had bad pains since this morning..."). This is largely due to the zero-padding required during preprocessing, which dilutes the signal of short texts.
  2. Implicit Sentiments (61% of errors): Medical text often conveys severe distress implicitly through clinical concepts rather than explicit sentiment words (e.g., "Why does anxiety feel like you have to make yourself breathe..."). The model currently lacks the deep clinical reasoning required to infer sentiment from these implicit descriptions.
  3. Abbreviations and Typos (13% of errors): Informal forum language frequently includes misspellings ("xanac" for Xanax) or abbreviations ("Cit" for Citalopram, "CBT" for Cognitive Behavioral Therapy), which can break embedding lookups.

The authors plan to explore advanced deep learning techniques in future work specifically aimed at uncovering these implicit, context-dependent medical sentiments.

Summary updated

BibTeX
@misc{yadav2018leveraging,
  author = {Shweta Yadav and Joy Sain and Amit Sheth and Asif Ekbal and Sriparna Saha and Pushpak Bhattacharyya},
  title = {{Leveraging Medical Sentiment to Understand Patients Health on Social Media}},
  year = {2018},
  eprint = {1807.11172},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.11172},
}
Figure