DynGraph2Seq: Dynamic-Graph-to-Sequence Interpretable Learning for Health Stage Prediction in Online Health Forums

Yuyang Gao, Lingfei Wu, Houman Homayoun, Liang Zhao

Abstract

Online health communities (OHCs) provide a wealth of behavioral data that can mirror a patient's clinical journey. However, mapping unstructured forum activity to structured health stages is a complex task. We introduce DynGraph2Seq, a deep learning architecture that treats user subforum transitions as a dynamic graph to predict chronological sequences of medical events. By employing Graph Convolutional Networks (GCNs) and Long Short-Term Memory (LSTM) units with a hierarchical attention mechanism, our model achieves state-of-the-art performance on real-world breast cancer data while offering interpretable insights into the factors driving its predictions.

Introduction

In online health communities like the Breast Cancer Community, patients often seek support and information through various subforums. While their activity—which subforums they visit and when—is a powerful indicator of their current health status, this data is often incomplete. Over 36% of active users do not share their official medical history, leaving a significant "data gap" for healthcare organizations aiming to provide timely support.

The technical challenge lies in the nature of the data. A user’s journey is not a simple linear list of posts; it is a dynamic network. A patient might move from "New Diagnosis" forums to "Chemotherapy" forums, then to "Radiation" or "Recovery." Capturing these transitions and how they evolve over time to predict a chronological sequence of medical stages is a complex graph-to-sequence problem that traditional models struggle to solve.

Methods: The DynGraph2Seq Architecture

The authors propose DynGraph2Seq, an end-to-end architecture consisting of two main components: a Dynamic Graph Encoder and a Sequence Decoder with Hierarchical Attention.

  1. Dynamic Graph Encoder:
  2. Spatial Learning: For every time window (e.g., one month), the model builds a "snapshot" graph of the user's activity. It uses Graph Convolutional Networks (GCNs) to learn embeddings for each subforum (node) based on its content and its connections to other subforums.
  3. Temporal Learning: These snapshots are fed into a Long Short-Term Memory (LSTM) network, which captures how the user's network of activity changes over months or years.
  4. Sequence Decoder with Hierarchical Attention: To make the model's predictions interpretable, a two-level attention mechanism was implemented. Node-to-Graph Attention identifies which specific subforums were most influential in a given month, while Graph-to-Sequence Attention identifies which specific months in the user's history were most important for predicting a particular health stage.
The DynGraph2Seq architecture featuring GCN-based spatial learning and LSTM-based temporal learning with hierarchical attention.

Experimental Setup

The model was evaluated using a real-world dataset from the Breast Cancer Community forum spanning eight years (2010–2017). Node features were constructed using the top 100 frequency keywords from forum content. The ground truth for health stages (e.g., Diagnosis (Dx), Chemotherapy, Surgery) was extracted from the voluntary "signatures" in user profiles. The dataset was split into 70% training, 10% validation, and 20% testing.

Key Results and Insights

DynGraph2Seq significantly outperformed standard baselines, including standard Neural Machine Translation (NMT) and static Graph2Seq models. The researchers found that treating the entire history as a static graph loses the vital "arrow of time," whereas the dynamic approach is essential for capturing disease progression.

Performance comparison of DynGraph2Seq against NMT and static Graph2Seq baselines across BLEU and ROUGE metrics.

As shown in the results, DynGraph2Seq achieved a ROUGE score of 80.8, a significant improvement over the 72.9 achieved by standard sequence models. On the BLEU-4 metric, DynGraph2Seq (22.5) outperformed both the best static Graph2Seq model (21.0) and the standard NMT model (20.1).

Beyond accuracy, the model provided high interpretability. Qualitative analysis of the attention weights showed that when the model predicted "Radiation," the weights were highest for the "Radiation Therapy" subforum, validating that the model learns clinically relevant patterns rather than noise.

Conclusion and Future Work

While DynGraph2Seq demonstrates strong performance, it faces challenges with data sparsity when users are inactive. Future work may involve more sophisticated Natural Language Processing (NLP) to capture the nuance and sentiment of posts. However, the framework remains a generic and powerful tool for predicting health stages in chronic disease management through the lens of dynamic user behavior.

Summary updated

BibTeX
@inproceedings{gao2019dyngraph,
  author = {Yuyang Gao and Lingfei Wu and Houman Homayoun and Liang Zhao},
  title = {{DynGraph2Seq: Dynamic-Graph-to-Sequence Interpretable Learning for Health Stage Prediction in Online Health Forums}},
  booktitle = {ICDM},
  year = {2019},
  url = {https://openreview.net/forum?id=JN3G90DxAve},
}
Figure