Leveraging pretrained language models for seizure frequency extraction from epilepsy evaluation reports
Seizure frequency is essential for evaluating epilepsy treatment, ensuring patient safety, and reducing risk for Sudden Unexpected Death in Epilepsy. As this information is often described in clinical narratives, this study presents an approach to extracting structured seizure frequency details from such unstructured text. We investigated two tasks: (1) extracting phrases describing seizure frequency, and (2) extracting seizure frequency attributes. For both tasks, we fine-tuned three BERT-based models (bert-large-cased, biobert-large-cased, and Bio_ClinicalBERT), as well as three generative large language models (GPT-4, GPT-3.5 Turbo, and Llama-2-70b-hf). The final structured output integrated the results from both tasks. GPT-4 attained the best performance across all tasks with precision, recall, and F1-score of 86.61%, 85.04%, and 85.79% respectively for frequency phrase extraction; 90.23%, 93.51%, and 91.84% for seizure frequency attribute extraction; and 86.64%, 85.06%, and 85.82% for the final structured output. These findings highlight the potential of fine-tuned generative models in extractive tasks from limited text strings.
Authors
- Licong Cui (ORCID: https://orcid.org/0000-0001-5549-8780)
- Shiqiang Tao (ORCID: https://orcid.org/0000-0003-1515-3184)
- Samden D. Lhatoo (ORCID: https://orcid.org/0000-0001-8626-1137)
- Rashmie Abeysinghe (ORCID: https://orcid.org/0000-0001-9297-9540)
- Guoqiang Zhang (ORCID: https://orcid.org/0000-0003-3781-6874)
Institutions
- The University of Texas Health Science Center at Houston (US)
Publication Details
- Journal
- npj Digital Medicine
- Published
- 2025-04-14
- DOI
- https://doi.org/10.1038/s41746-025-01592-4
- Citations
- 3
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 7.44
Funders
- National Institutes of Health
- National Institute of Neurological Disorders and Stroke