Fine-tuning LLMs to Extract Epilepsy Seizure Frequency Data from Health Records

We developed a new methodology of extracting the frequency of a patient's epilepsy seizures from unstructured, freetext outpatient clinic letters by: first, devising a singular unit of measurement for seizure frequency; and second, fine-tuning a generative Large Language Model (LLM) on our bespoke annotated dataset.We measured frequency by the number of seizures per month: one seizure or more requires an integer; and less than one a decimal.This approach enables us to track whether a patient's seizures are improving or not over time.We found fine-tuning improves the F1 score of our bestperforming LLM, Ministral-8B-Instruct-2410, by around three times compared to an untrained model.We also found Ministral demonstrated an impressive ability for mathematical reasoning.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.bionlp-1.5
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Fine-tuning LLMs to Extract Epilepsy Seizure Frequency Data from Health Records

James Teo, Mark P. Richardson, Joel S. Winston, Joe Davies et al.
Machine Learning in Healthcare
article

Fine-tuning LLMs to Extract Epilepsy Seizure Frequency Data from Health Records

James Teo, Mark P. Richardson, Joel S. Winston, Joe Davies, Shichao Fang, Ben Holgate
article en

Abstract

We developed a new methodology of extracting the frequency of a patient's epilepsy seizures from unstructured, freetext outpatient clinic letters by: first, devising a singular unit of measurement for seizure frequency; and second, fine-tuning a generative Large Language Model (LLM) on our bespoke annotated dataset.We measured frequency by the number of seizures per month: one seizure or more requires an integer; and less than one a decimal.This approach enables us to track whether a patient's seizures are improving or not over time.We found fine-tuning improves the F1 score of our bestperforming LLM, Ministral-8B-Instruct-2410, by around three times compared to an untrained model.We also found Ministral demonstrated an impressive ability for mathematical reasoning.

Angelini Pharma
Openalex Percentile: Top 90%
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.