ClinStructor: AI-Powered Structuring of Unstructured Clinical Texts
Karthikeyan K, Raghuveer Thirukovalluru, David Carlson
TL;DR
ClinStructor addresses the challenge of unstructured clinical notes by introducing an LLM-driven pipeline that converts admission notes into structured 50-question, 50-answer features for ICU mortality prediction. It comprises three stages: feature identification via clustering of LLM-generated questions, feature extraction producing a fixed 50 QA representation, and LoRA-based fine-tuning of a predictor. Compared with direct fine-tuning on raw notes, ClinStructor achieves competitive AUC with a modest 2–3 percentage-point drop, while offering explicit, inspectable input features and improved cross-site generalizability. This work lays a foundation for interpretable, robust, and generalizable clinical ML systems, with practical implications for bias control and regulatory compliance.
Abstract
Clinical notes contain valuable, context-rich information, but their unstructured format introduces several challenges, including unintended biases (e.g., gender or racial bias), and poor generalization across clinical settings (e.g., models trained on one EHR system may perform poorly on another due to format differences) and poor interpretability. To address these issues, we present ClinStructor, a pipeline that leverages large language models (LLMs) to convert clinical free-text into structured, task-specific question-answer pairs prior to predictive modeling. Our method substantially enhances transparency and controllability and only leads to a modest reduction in predictive performance (a 2-3% drop in AUC), compared to direct fine-tuning, on the ICU mortality prediction task. ClinStructor lays a strong foundation for building reliable, interpretable, and generalizable machine learning models in clinical environments.
