NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Leveraging LLMs for Predicting Unknown Diagnoses from Clinical Notes using Majority Voting (Preprint)

Dina Albassam, Adam Cross, C. Zhai2025

Abstract

<sec> <title>BACKGROUND</title> Electronic Health Records (EHRs), including datasets like MIMIC-IV, often lack explicit links between medications and diagnoses, complicating clinical decision-making and research efforts. Even when such links are present, diagnosis lists can be incomplete or inaccurate, particularly during early patient visits when diagnostic uncertainty is high. Discharged summaries, documented at the end of patient care, may offer more detailed explanations of patient visits, potentially aiding in inferring the most likely accurate diagnoses for prescribed medications, especially if we can exploit Large Language Models (LLMs). LLMs have shown promise in processing unstructured medical text, but systematic evaluations are necessary to determine their effectiveness in extracting meaningful medication-diagnosis relationships. </sec> <sec> <title>OBJECTIVE</title> This study explores the use of LLMs to predict implicitly mentioned diagnoses from clinical notes and link them to corresponding medications. We evaluate their effectiveness and investigate strategies to improve prediction performance. Specifically, we examine two research questions: (1) Does majority voting across diverse LLM configurations enhance diagnostic prediction accuracy compared to the best single-model configuration? (2) How sensitive is the diagnostic prediction accuracy of majority voting to the LLM's hyperparameters, including temperature, top-p, and clinical note summary length? </sec> <sec> <title>METHODS</title> A new dataset of 240 expert-annotated medication-diagnosis pairs from 20 MIMIC-IV clinical notes was created to evaluate predictive accuracy, as no such dataset previously existed. We hypothesized that combining deterministic, balanced, and exploratory configurations could enhance prediction performance. Key hyperparameters—temperature, top-p, and summary length—were systematically varied. Two levels of summarization, short and long, were tested to assess context length impact. Using GPT-3.5 Turbo, 18 configurations were generated, and random subsets of five were selected, resulting in 8,568 test cases. Majority voting was applied to select the most frequent diagnosis. Performance was evaluated using accuracy scores, comparing majority voting with the best single-model configuration and analyzing hyperparameters contributing to the highest accuracy. </sec> <sec> <title>RESULTS</title> The majority voting achieved 75% accuracy, outperforming the best single configuration (66%). No single parameter setting consistently excelled; instead, combining diverse configurations aligned with deterministic, balanced, and exploratory strategies yielded better performance. Shorter summaries (2000 tokens) generally improved accuracy. Longer summaries (4000 tokens) were effective only with deterministic settings. </sec> <sec> <title>CONCLUSIONS</title> Majority voting across LLM configurations enhances diagnostic prediction accuracy in EHRs, demonstrating the potential of ensemble methods for improving medication-diagnosis associations. By leveraging diverse configurations, this approach mitigates model biases and improves robustness in predictive analytics. Future work should explore scalability with larger datasets, additional LLM architectures, and broader clinical applications to refine its effectiveness in real-world settings. </sec>
BibTeX
@misc{albassam2025leveraging,
  author = {Dina Albassam and Adam Cross and C. Zhai},
  title = {{Leveraging LLMs for Predicting Unknown Diagnoses from Clinical Notes using Majority Voting (Preprint)}},
  year = {2025},
  doi = {10.2196/preprints.75979},
}
Figure