[Paper Review] Rare Disease Detection by Sequence Modeling with Generative Adversarial Networks
This paper proposes a semi-supervised generative adversarial network (GAN) combined with long short-term memory (LSTM) networks to detect exocrine pancreatic insufficiency (EPI) from longitudinal medical claims. By leveraging unlabeled patient sequences and generating synthetic positive samples, the model achieves a 0.56 PR-AUC, outperforming baseline models in precision and recall on a dataset of 1.8 million patients with 29,149 EPI cases.
Rare diseases affecting 350 million individuals are commonly associated with delay in diagnosis or misdiagnosis. To improve those patients' outcome, rare disease detection is an important task for identifying patients with rare conditions based on longitudinal medical claims. In this paper, we present a deep learning method for detecting patients with exocrine pancreatic insufficiency (EPI) (a rare disease). The contribution includes 1) a large longitudinal study using 7 years medical claims from 1.8 million patients including 29,149 EPI patients, 2) a new deep learning model using generative adversarial networks (GANs) to boost rare disease class, and also leveraging recurrent neural networks to model patient sequence data, 3) an accurate prediction with 0.56 PR-AUC which outperformed benchmark models in terms of precision and recall.
Motivation & Objective
- To address the challenge of rare disease detection in healthcare due to extreme class imbalance and limited labeled data.
- To develop a deep learning model that effectively leverages longitudinal medical claims for early detection of exocrine pancreatic insufficiency (EPI).
- To improve model performance by utilizing unlabeled patient sequences through semi-supervised learning with GANs.
- To eliminate the need for manual feature engineering by directly modeling raw medical code sequences using RNNs.
- To validate the model's generalizability and interpretability through medical code embedding visualization and benchmark comparisons.
Proposed method
- Patient medical histories are represented as sequences of medical codes (diagnoses, prescriptions, procedures), which are embedded into dense 300-dimensional vectors using a skip-gram model with negative sampling.
- A long short-term memory (LSTM) network encodes the sequence of embedded codes into a fixed-length patient representation vector.
- A generative adversarial network (GAN) is trained in a semi-supervised setting, where the discriminator classifies real positive, real negative, and generated samples, improving generalization on rare classes.
- The generator produces synthetic patient sequences to augment the limited number of real EPI cases, enhancing model robustness and reducing data imbalance.
- The framework uses a hybrid loss function that combines adversarial loss and supervised cross-entropy loss to stabilize training and improve performance.
- The final model is evaluated using precision-recall AUC (PR-AUC), with hyperparameters tuned via validation on a held-out subset of the data.
Experimental results
Research questions
- RQ1Can a GAN-based semi-supervised learning framework effectively improve rare disease detection when labeled data is extremely limited?
- RQ2Does combining LSTM-based sequence modeling with adversarial training lead to better performance than standard deep learning models on longitudinal EHR data?
- RQ3To what extent can medical code embeddings capture clinically meaningful semantic relationships, as evidenced by clustering patterns?
- RQ4Can the proposed method achieve higher precision and recall than traditional models like logistic regression, random forest, and XGBoost on rare disease detection?
- RQ5How does the inclusion of unlabeled data via GANs impact model generalization and performance in an imbalanced setting?
Key findings
- The proposed SSL GAN model achieved a PR-AUC of 0.56, representing a 6% relative improvement over the best baseline model (DNN with 0.52 PR-AUC).
- The model outperformed logistic regression, random forest, XGBoost, and the standalone DNN discriminator in both precision and recall, demonstrating superior performance on imbalanced data.
- t-SNE visualization of learned medical code embeddings revealed meaningful clustering: diagnosis and prescription codes for respiratory and mental disorders formed distinct, semantically coherent groups.
- The use of unlabeled data in the GAN framework significantly contributed to performance gains, as evidenced by the improvement over the DNN baseline.
- The framework successfully reduced the need for manual feature engineering by directly modeling raw medical code sequences through end-to-end learning.
- The model demonstrated strong generalization potential, as the architecture can be readily adapted to detect other rare diseases with minimal modification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.