Automated phenotyping of ophthalmologic diseases from routine medical records using small language models and the human phenotype ontology (HPO)
Binh Duong Thai, Sebastian Arens, Thomas Reinhard, Daniel Böhringer
University of Freiburg · University Medical Center Freiburg
Key points
From the paper's conclusion- We developed a locally operated AI pipeline combining text segmentation and negation detection based on a small language model (PHI-4) with a dense retrieval approach using an augmented multilingual HPO catalog.
Abstract
Automated phenotyping in ophthalmology requires accurate standardization of clinical terms to facilitate interoperability and research. This study evaluates the suitability of the human phenotype ontology (HPO) for automated extraction of ophthalmic phenotypes from narrative documentation. We developed a locally operated AI pipeline combining text segmentation and negation detection based on a small language model (PHI-4) with a dense retrieval approach using an augmented multilingual HPO catalog. Synonyms were incorporated into the HPO during training on anonymized consecutive physician letters. To validate the pipeline, 175 anterior segment and fundus descriptions from randomly picked medical records were manually annotated with HPO terms as ground truth. Overall, 342 HPO terms were identified manually (on average 2.53 terms per document), with 341 retrieved by the pipeline (on average 2.52 terms per document). Performance metrics showed a median Jaccard similarity of 0.67, precision of 0.83, recall of 0.82, and F1 score of 0.80. These results demonstrate that our AI pipeline effectively extracts standardized HPO terms from free-text ophthalmic findings. Integration of this pipeline into clinical information systems may enhance data interoperability and reduce manual coding workload in ophthalmology practices in the future.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- An artificial intelligence framework for end-to-end rare disease phenotyping from clinical notes using large language modelsnpj Digital Medicine · 2026
- OphthoACR (Ophthalmology Automated Chart Review): An AI-Powered Tool for Complete Automation of Ophthalmology Chart Reviews and Cohort Data AnalysisTranslational Vision Science & Technology · 2025
- A decade of artificial intelligence research in ophthalmology: Global trends and transferable insights for medical AI.PLOS digital health · 2026
- Extraction of Glaucoma Diagnosis, Type, and Severity from Clinical Notes using Secure Cloud-based Large Language ModelsmedRxiv · 2026
- Large language models for ophthalmic examination understanding: from information extraction to clinical decision support.Frontiers in medicine · 2026
- Beyond Billing Codes: An Agentic Large Language Model Pipeline for Extracting Glaucoma Procedural Data from Free-Text Clinical Notes.medRxiv : the preprint server for health sciences · 2026