Evidence map›Paper›PMID 42341359›Full record

ArticleComputer methods and programs in biomedicine2026

SPELL: A scalable NLP method using regular expressions and large language models for clinical information extraction.

Ricardo Kleinlein, David W Bates, Carolyn Guan, Kathryn J Gray, Vesela P Kovacheva

Abstract read
In one paragraph

Article in Computer methods and programs in biomedicine, 2026. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 2 papers.

0numbers the graph read from it
0cells of the map it votes in
2citing papers in PubMed
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

2 citing papers in PubMed.

  1. Article
  2. Article
4 · The record

Corrections and comments

5 · Who and what money

Authors and funding

5 authors.

Ricardo KleinleinDepartment of Anesthesiology, Perioperative and Pain Medicine, Brigham and Women's Hospital, Harvard Medical School, Boston, MA, USA.
David W BatesDivision of General Internal Medicine and Primary Care, Brigham and Women's Hospital, Boston, MA, USA; Department of Health Care Policy and Management, Harvard T. H. Chan School of Public Health, Boston, MA, USA.
Carolyn GuanDepartment of Anesthesiology, Perioperative and Pain Medicine, Brigham and Women's Hospital, Harvard Medical School, Boston, MA, USA.
Kathryn J GrayDepartment of Obstetrics and Gynecology, University of Washington, Seattle, WA, USA.
Vesela P KovachevaDepartment of Anesthesiology, Perioperative and Pain Medicine, Brigham and Women's Hospital, Harvard Medical School, Boston, MA, USA. Electronic address: vkovacheva@bwh.harvard.edu.

Funding

Ethical, multimodal AI tool for prediction of preeclampsia risk in early pregnancyOT2OD038029 · OD · BRIGHAM AND WOMEN'S HOSPITAL · PI Kathryn Johnson Gray, Vesela Kovacheva · 2025 to 2026
$2.2M
Precision medicine approaches to understand and prevent stillbirthR01HD117802 · NICHD · UNIVERSITY OF WASHINGTON · PI Kathryn Johnson Gray · 2025 to 2026
$1.3M
Personalized Postpartum Hemorrhage Prediction Using Machine Learning And Polygenic Risk ScoresK08HL161326 · NHLBI · BRIGHAM AND WOMEN'S HOSPITAL · PI Vesela Kovacheva · 2022 to 2026
$842k
Clinical and functional follow-up of maternal and fetal preeclampsia genetic risk lociR03HL162756 · NHLBI · UNIVERSITY OF WASHINGTON · PI GRAY, KATHRYN JOHNSON · 2022 to 2023
$168k
NHLBI NIH HHS K08 HL161326NHLBI NIH HHS R03 HL162756NICHD NIH HHS R01 HD117802NIH HHS OT2 OD038029
6 · The paper itself

Abstract

BACKGROUND AND

objectivesElectronic health records (EHRs) contain valuable information for research and decision-making, but much resides in unstructured notes that are challenging to analyze at scale. We developed SPELL (Snippet-Primed rEgex LLM Pipeline), a scalable natural language processing workflow that combines regular-expression-based snippet retrieval with locally hosted large language model (LLM) inference to extract structured variables from large collections of clinical narratives.

methodsSPELL uses task-specific regular expressions to retrieve short context windows ("snippets") from unstructured texts and applies task-prompted LLM inference on snippets rather than full documents. All processing occurs within institutional computing environments. Accuracy was evaluated on randomly sampled, clinician-annotated benchmark sets of 50 documents per obstetric task, with separate retrieval-recall audits of 20 regex-negative documents per task. We evaluated accuracy and efficiency across three obstetric information-extraction tasks: numerical value (blood loss volume), date (estimated due date), and diagnosis (hemolysis, elevated liver enzymes, and low platelets [HELLP] syndrome). We quantified computational scalability using elapsed time, out-of-memory events, energy consumed, and GPU telemetry, and audited retrieval recall using clinician-annotated regex-negative notes enriched with relevant structured metadata. Generalizability was assessed on the public MT Samples corpus (5013 notes across 40 specialties) for ventricular tachycardia detection.

resultsSPELL processed 31 million clinical notes spanning 1976-2024 from eight hospitals. Snippet-based inference reduced processing time by 71-87% versus full-document LLM inference and by >95% versus manual physician annotation. On the 50-document benchmark sets, snippet-based evaluation achieved 98% exact-match accuracy for blood-loss extraction, 92% exact-match accuracy for estimated-due-date extraction, and 94% accuracy with an F1-score of 0.97 for HELLP syndrome classification. As an exploratory external evaluation on MT Samples, ventricular tachycardia detection achieved 84% accuracy and an F1-score of 0.67.

conclusionsA hybrid regex-snippet-LLM pipeline can enable accurate and computationally efficient extraction from unstructured EHR narratives.

Indexed as

Electronic Health RecordsInformation Storage and RetrievalLarge Language ModelsNatural Language ProcessingData MiningHumansElectronic health recordsLarge language modelsNatural language processingPhenotypingRegular expressions

Identifiers

PMID42341359
PMCPMC13380079

What OpenQuestion holds

Textmetadata
LicenceTDM
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.