# Heterogeneous graph transformer and diffusion model for disease diagnosis

**Authors:** Xiaodong Zhu, Dan Yang, Yang Liu

PMC · DOI: 10.1038/s41598-025-32220-6 · Scientific Reports · 2025-12-17

## TL;DR

This paper introduces a new model for disease diagnosis using medical data, which improves accuracy by capturing complex relationships and reducing noise.

## Contribution

The novel framework TD4DD combines a heterogeneous graph transformer with a diffusion module to better capture semantic dependencies and reduce noise in medical data.

## Key findings

- TD4DD outperforms existing methods on MIMIC-III and MIMIC-IV datasets in terms of Micro-F1 and Macro-F1 scores.
- The model's diffusion module effectively reduces noise and enhances node representations for disease classification.

## Abstract

With the continuous development of Electronic Health Record (EHRs), medical heterogeneous data have become increasingly abundant, containing diverse types of entities and complex semantic relationships that provide essential support for disease diagnosis. However, conventional heterogeneous graph neural networks struggle to distinguish semantic differences among multi-type nodes and k-hop neighbors, often leading to semantic confusion and vulnerability to noise, which limits their classification performance and generalization capability. To tackle these challenges, we present a novel framework named Heterogeneous Graph Transformer and Diffusion mechanism for Disease Diagnosis (TD4DD), which captures multi-scale semantic dependencies across k-hop neighborhoods, while the diffusion module performs latent-space denoising to alleviate noise interference. Specifically, a k-hop hierarchical Transformer is introduced to capture multi-scale dependencies across different hop layers, enabling the differentiation of fine-grained semantic variations among neighbors at various distances. Additionally, a diffusion module is designed to handle noise in the data by performing denoising in the latent space through auxiliary subgraphs constructed using different meta-paths, thereby generating more discriminative node representations. Finally, the model fuses structural information with denoised embeddings to accomplish disease classification. Experiments conducted on two real-world clinical datasets, MIMIC-III(7,000 patients, 5 disease categories) and MIMIC-IV(8,331 patients, 6 disease categories), demonstrate that TD4DD consistently outperforms existing baseline methods in terms of both Micro-F1 and Macro-F1 scores, showing strong generalization ability. On MIMIC-III, TD4DD achieves a Micro-F1 of 88.29 and a Macro-F1 of 86.11, while on MIMIC-IV, it reaches 83.60 and 83.94, respectively. Furthermore, ablation studies and t-SNE visualizations further validate the effectiveness of each module and the distinguishing capability of the learned embeddings.

## Full-text entities

- **Diseases:** Respiratory Failure (MESH:D012131), Pneumonia (MESH:D011014), Coronary Disease (MESH:D003327), Diabetes (MESH:D003920), Heart Failure (MESH:D006333), MIMIC-IV (MESH:D006011), Disseminated Infections (MESH:D000072742), Gastritis (MESH:D005756), Coronary (MESH:D003323), Septicemia (MESH:D018805), MIMIC-III (MESH:C537189), Hypertension (MESH:D006973), Myocardial Infarction (MESH:D009203)
- **Chemicals:** HAN (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]
- **Cell lines:** MIMIC — Spodoptera frugiperda (Fall armyworm), Spontaneously immortalized cell line (CVCL_Z366)

## Full text

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

## Figures

4 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12820308/full.md

## References

14 references — full list in the complete paper: https://tomesphere.com/paper/PMC12820308/full.md

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