Jove
Visualize
Contact Us
JoVE
x logofacebook logolinkedin logoyoutube logo
ABOUT JoVE
OverviewLeadershipBlogJoVE Help Center
AUTHORS
Publishing ProcessEditorial BoardScope & PoliciesPeer ReviewFAQSubmit
LIBRARIANS
TestimonialsSubscriptionsAccessResourcesLibrary Advisory BoardFAQ
RESEARCH
JoVE JournalMethods CollectionsJoVE Encyclopedia of ExperimentsArchive
EDUCATION
JoVE CoreJoVE BusinessJoVE Science EducationJoVE Lab ManualFaculty Resource CenterFaculty Site
Terms & Conditions of Use
Privacy Policy
Policies

Related Experiment Video

Updated: Jun 26, 2026

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
03:14

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness

Published on: December 6, 2024

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

Ricardo Kleinlein1, David W Bates2, Carolyn Guan1

  • 1Department of Anesthesiology, Perioperative and Pain Medicine, Brigham and Women's Hospital, Harvard Medical School, Boston, MA, USA.

Computer Methods and Programs in Biomedicine
|June 24, 2026
PubMed
Summary

Related Concept Videos

Extraction: Advanced Methods00:56

Extraction: Advanced Methods

Metal ions can be separated from one another by complexation with organic ligands–the chelating agent– to form uncharged chelates. Here, the chelating agent must contain hydrophobic groups and behave as a weak acid, losing a proton to bind with the metal. Since most organic ligands used in this process are insoluble or undergo oxidation in the aqueous phase, the chelating agent is initially added to the organic phase and extracted into the aqueous phase. The metal-ligand complex is formed in...

You might also read

Related Articles

Articles linked to this work by shared authors, journal, and citation graph.

Sort by
Same author

Assisted reproductive technology: what are the cardiovascular risks for women?

Expert review of cardiovascular therapy·2023
Same author

Quantitative Microstructural Analysis of Cellular and Tissue Remodeling in Human Glaucoma Optic Nerve Head.

Investigative ophthalmology & visual science·2022
Same author

Trends, Predictors, and Outcomes of Cardiovascular Complications Associated With Polycystic Ovary Syndrome During Delivery Hospitalizations: A National Inpatient Sample Analysis (2002-2019).

Journal of the American Heart Association·2022
Same author

Polycystic ovary syndrome: a "risk-enhancing" factor for cardiovascular disease.

Fertility and sterility·2022
Same author

Pharmacological characterisation of small molecule C5aR1 inhibitors in human cells reveals biased activities for signalling and function.

Biochemical pharmacology·2020
Same author

USP21 deubiquitinase promotes pancreas cancer cell stemness via Wnt pathway activation.

Genes & development·2019

SPELL, a novel NLP pipeline, efficiently extracts structured data from clinical notes using regex and LLMs. This method significantly speeds up data analysis compared to manual annotation and full-document processing.

Area of Science:

  • Natural Language Processing (NLP)
  • Machine Learning (ML)
  • Clinical Informatics

Background:

  • Electronic Health Records (EHRs) contain valuable unstructured clinical narratives.
  • Analyzing unstructured EHR data at scale is challenging for research and decision-making.
  • SPELL (Snippet-Primed rEgex LLM Pipeline) was developed to address this challenge.

Purpose of the Study:

  • To develop a scalable NLP workflow for extracting structured variables from large collections of clinical narratives.
  • To combine regular-expression-based snippet retrieval with locally hosted large language model (LLM) inference.
  • To enable accurate and computationally efficient extraction of information from unstructured EHR data.

Main Methods:

  • SPELL retrieves text snippets using task-specific regular expressions and applies LLM inference on these snippets.
Keywords:
Electronic health recordsLarge language modelsNatural language processingPhenotypingRegular expressions

Related Experiment Videos

Last Updated: Jun 26, 2026

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
03:14

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness

Published on: December 6, 2024

  • All processing is conducted within institutional computing environments.
  • Accuracy and efficiency were evaluated on obstetric tasks (blood loss, estimated due date, HELLP syndrome) and a generalizability task (ventricular tachycardia detection).
  • Main Results:

    • SPELL processed 31 million clinical notes, demonstrating scalability.
    • Snippet-based inference reduced processing time by 71-87% compared to full-document LLM inference.
    • High accuracy was achieved: 98% for blood loss, 92% for estimated due date, and 94% F1 for HELLP syndrome.

    Conclusions:

    • A hybrid regex-snippet-LLM pipeline enables accurate and computationally efficient extraction from unstructured EHR narratives.
    • SPELL offers a scalable solution for leveraging valuable information within clinical notes.
    • This approach enhances the utility of EHR data for research and clinical decision support.