[Paper Review] Application of Clinical Concept Embeddings for Heart Failure Prediction in UK EHR data
This study applies GloVe-based clinical concept embeddings to UK Electronic Health Records (EHR) to predict heart failure risk, demonstrating that low-dimensional representations of diagnoses and procedures improve predictive performance over one-hot encoding. The approach achieves an AUROC of 0.6965 using combined primary and secondary diagnoses and procedures, showing marginal gains and robustness across heterogeneous data sources.
Electronic health records (EHR) are increasingly being used for constructing disease risk prediction models. Feature engineering in EHR data however is challenging due to their highly dimensional and heterogeneous nature. Low-dimensional representations of EHR data can potentially mitigate these challenges. In this paper, we use global vectors (GloVe) to learn word embeddings for diagnoses and procedures recorded using 13 million ontology terms across 2.7 million hospitalisations in national UK EHR. We demonstrate the utility of these embeddings by evaluating their performance in identifying patients which are at higher risk of being hospitalised for congestive heart failure. Our findings indicate that embeddings can enable the creation of robust EHR-derived disease risk prediction models and address some the limitations associated with manual clinical feature engineering.
Motivation & Objective
- To develop and evaluate low-dimensional clinical concept embeddings from UK EHR data for heart failure risk prediction.
- To assess whether embeddings reduce reliance on manual feature engineering in highly dimensional and heterogeneous EHR data.
- To compare predictive performance of embeddings against traditional one-hot encoding in a large, multi-provider UK EHR dataset.
- To investigate the impact of different clinical data components (e.g. primary vs. secondary diagnoses, procedures) on model performance.
Proposed method
- Trained GloVe word embeddings on 13 million ontology terms from 2.7 million hospitalizations in UK Biobank EHR data.
- Constructed four distinct corpora: primary diagnoses (PRIMDX), primary diagnoses + procedures (PRIMDX-PROC), primary + secondary diagnoses (PRIMDX-SECDX), and all three combined (PRIMDX-SECDX-PROC).
- Transformed individual patient records into dense vector representations using averaged embeddings of all clinical concepts in their EHR.
- Trained a linear SVM classifier on patient-level embeddings using 5-fold cross-validation, with hyperparameters tuned via grid search.
- Evaluated models using AUROC and weighted F1 score on a held-out test set, with performance assessed across varying vector sizes and context window sizes.
- Used t-SNE to visualize semantic relationships between clinical concepts in the learned embedding space.
Experimental results
Research questions
- RQ1Can GloVe-based clinical concept embeddings effectively represent heterogeneous EHR data for heart failure risk prediction in a UK population?
- RQ2How does the predictive performance of embedding-based models compare to traditional one-hot encoded models in UK EHR data?
- RQ3Which combination of clinical data (e.g. primary vs. secondary diagnoses, procedures) yields the highest predictive performance?
- RQ4Does the use of embeddings improve model robustness across diverse, multi-provider EHR sources compared to single-source studies?
Key findings
- The best-performing model using clinical concept embeddings achieved an AUROC of 0.6965 and F1 score of 0.7500 when combining primary and secondary diagnoses with procedures.
- Embeddings marginally outperformed one-hot encoding, with the PRIMDX-SECDX-PROC model showing the highest AUROC (0.6965) and F1 (0.7500).
- Models trained on PRIMDX-SECDX-PROC consistently outperformed those on PRIMDX alone, despite PRIMDX showing slightly better performance in the best individual configuration.
- The embedding space captured meaningful semantic relationships, with I50 (Heart Failure) showing close proximity to biologically related terms like I25 (Chronic Ischaemic Heart Disease) and I21 (Acute Myocardial Infarction).
- Smaller vector sizes (50D) and larger context windows (10–20) yielded optimal results for less comprehensive corpora, while larger vectors (250D) and smaller windows (5) worked best for the full corpus.
- Performance was broadly comparable to prior US-based studies using similar methods, suggesting embeddings are robust across different healthcare systems and data sources.
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.