# Graph transformer with disease subgraph positional encoding for improved comorbidity prediction

**Authors:** Xihan Qin, Li Liao

PMC · DOI: 10.1002/qub2.70008 · Quantitative Biology · 2025-06-26

## TL;DR

This paper introduces a new graph-based method for predicting disease comorbidities using a transformer model with subgraph positional encoding, improving prediction accuracy significantly.

## Contribution

The novel subgraph positional encoding (SPE) enhances graph transformers for comorbidity prediction by integrating clustering and disease-specific information.

## Key findings

- TSPE outperforms state-of-the-art methods with up to 28.24% higher ROC AUC on clinical datasets.
- SPE is more effective than Laplacian positional encoding for capturing disease associations in graph transformers.
- The method shows potential for application in other complex graph-based tasks.

## Abstract

Comorbidity, the co‐occurrence of multiple medical conditions in a single patient, profoundly impacts disease management and outcomes. Understanding these complex interconnections is crucial, especially in contexts where comorbidities exacerbate outcomes. Leveraging insights from the human interactome and advancements in graph‐based methodologies, this study introduces transformer with subgraph positional encoding (TSPE) for disease comorbidity prediction. Inspired by biologically supervised embedding, TSPE employs transformer’s attention mechanisms and subgraph positional encoding (SPE) to capture interactions between nodes and disease associations. Our proposed SPE proves more effective than Laplacian positional encoding, as used in Dwivedi et al.’s graph transformer, underscoring the importance of integrating clustering and disease‐specific information for improved predictive accuracy. Evaluated on real clinical benchmark datasets (RR0 and RR1), TSPE demonstrates substantial performance enhancements over the state‐of‐the‐art method, achieving up to 28.24% higher ROC AUC (receiver operating characteristic–area under the curve) and 4.93% higher accuracy. This method shows promise for adaptation to other complex graph‐based tasks and applications. The source code is available at GitHub website (xihan‐qin/TSPE‐GraphTransformer).

## Full-text entities

- **Diseases:** Comorbidity (MESH:D004194)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12806012/full.md

## Figures

2 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12806012/full.md

## References

41 references — full list in the complete paper: https://tomesphere.com/paper/PMC12806012/full.md

---
Source: https://tomesphere.com/paper/PMC12806012