CLIN-LLM: A safety-constrained hybrid framework for clinical diagnosis and treatment generation.
Md Mehedi Hasan, Md Abir Hossain, Farman Hossain Sayem, Bikash Kumar Paul, Ziaur Rahman, Mohammad Shorif Uddin, Rafid Mostafiz
Department of Computer Science and Engineering, Global Institute of Information Technology, Tangail, Bangladesh. · Department of Information and Communication Technology, Mawlana Bhashani Science and Technology University, Tangail, Bangladesh.
Key points
From the paper's conclusion- We propose CLIN-LLM, a safety-constrained hybrid pipeline that integrates multimodal patient encoding, uncertainty-calibrated disease classification, and retrieval-augmented treatment generation.
Abstract
Accurate symptom-to-disease classification and clinically-grounded treatment recommendations remain challenging, particularly in heterogeneous patient settings with high diagnostic risk. Existing large language model (LLM)-based systems often lack medical grounding and fail to quantify uncertainty, resulting in unsafe outputs. We propose CLIN-LLM, a safety-constrained hybrid pipeline that integrates multimodal patient encoding, uncertainty-calibrated disease classification, and retrieval-augmented treatment generation. Our framework fine-tunes BioBERT on 1,200 clinical cases from the Symptom2Disease dataset and incorporates Focal Loss with Monte Carlo Dropout to generate confidence-aware predictions from free-text symptoms and structured vital signs. Low-certainty cases (18%) are automatically flagged for expert review, ensuring human oversight. For treatment generation, CLIN-LLM employs Biomedical Sentence-BERT to retrieve top-k relevant dialogues from the 260,000-sample MedDialog corpus. The retrieved evidence and patient context are fed into a fine-tuned FLAN-T5 model for personalized treatment generation, followed by post-processing with RxNorm for antibiotic stewardship and drug-drug interaction (DDI) screening. CLIN-LLM achieves 98% accuracy and F1 score, outperforming ClinicalBERT by 7.1% (p < 0.001), with 78% top-5 retrieval precision and a clinician-rated validity of 4.2/5. Reduces unsafe antibiotic suggestions by 67% compared to GPT-5. These results demonstrate CLIN-LLM's robustness, interpretability, and clinical safety alignment. The proposed system provides a deployable, human-in-the-loop decision support framework for resource-limited healthcare environments.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A novel evaluation benchmark for medical LLMs illuminating safety and effectiveness in clinical domainsnpj Digital Medicine · 2025
- Uncertainty-aware large language models for explainable disease diagnosisnpj Digital Medicine · 2025
- Medical Fine-Tuning Reshapes, Not Reduces, Patient-Facing AI Risk: A Rubric-Based, LLM-Judge Evaluation FrameworkarXiv · 2026
- Neurosymbolic Alignment for Physiologically-Safe Clinical Language ModelsarXiv · 2026
- Large language models management of complex medication regimens: a case-based evaluationFrontiers in Pharmacology · 2025
- Transforming large language models into medical specialists via knowledge injection.Cell reports. Medicine · 2026