Explainable Artificial Intelligence for Seizure Frequency Extraction from Unstructured Clinical Notes
Seizure frequency is often embedded in unstructured clinical notes, limiting efficient extraction for epilepsy research and care. We developed a locally deployed, prompt-engineered ensemble of Qwen3:30B, DeepSeek-R1:32B, and GPT-OSS:20B to classify seizure frequency. Each model also returned its own supporting sentences and rationale. The workflow applied sequential seizure freedom and numeric extraction prompts, standardized monthly frequencies, and combined model outputs by majority vote with a predefined fallback. Of 1000 annotated notes from one institution, 200 were used for prompt development, and 800 were held out; 95 ambiguous notes were excluded, leaving 705 for evaluation across eight classes. The ensemble achieved 88.2% categorical accuracy and a macro F1 score of 0.90, compared with 85.2% accuracy and 0.87 macro F1 for the strongest individual model. The workflow combines local processing with outputs that support source-based review, without supervised fine-tuning. Explanation faithfulness and clinical benefit were not evaluated. External and prospective validation is needed before clinical deployment.
Authors
- Vandana Venkatesh
- Zulfi Haneef (ORCID: https://orcid.org/0000-0002-0720-1417)
- Samer G. Salman (ORCID: https://orcid.org/0009-0007-9897-4071)
- Jerlin Joseph
- Adithya Nair
Institutions
- Michael E. DeBakey VA Medical Center (US)
- Baylor College of Medicine (US)
- Baylor School (US)
Publication Details
- Journal
- Algorithms
- Published
- 2026-11-30
- DOI
- https://doi.org/10.3390/a19121056
- Primary Topic
- Machine Learning in Healthcare
- Type
- article
- Field-Weighted Citation Impact
- 0.00