MedSlice: Fine-Tuned Large Language Models for Secure Clinical Note Sectioning

Joshua Davis, Thomas Sounack, Kate Sciacca, Jessie M Brain, Brigitte N Durieux +2 more
1/23/2025
cs.CLcs.AIcs.IR

No official code found. Best implementation: lindvalllab/MedSlice (3 stars, GPL-3.0, last commit 2025-01-28).

Abstract

Extracting sections from clinical notes is crucial for downstream analysis but is challenging due to variability in formatting and labor-intensive nature of manual sectioning. While proprietary large language models (LLMs) have shown promise, privacy concerns limit their accessibility. This study develops a pipeline for automated note sectioning using open-source LLMs, focusing on three sections: History of Present Illness, Interval History, and Assessment and Plan. We fine-tuned three open-source LLMs to extract sections using a curated dataset of 487 progress notes, comparing results relative to proprietary models (GPT-4o, GPT-4o mini). Internal and external validity were assessed via precision, recall and F1 score. Fine-tuned Llama 3.1 8B outperformed GPT-4o (F1=0.92). On the external validity test set, performance remained high (F1= 0.85). Fine-tuned open-source LLMs can surpass proprietary models in clinical note sectioning, offering advantages in cost, performance, and accessibility.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

A sectioning tool for clinical notes using fine-tuned LLMs

32PythonDec 16, 20241 years agoGPL-3.0
clinical-nlpllmnlp

Similar Papers

Cite this paper

@article{davis2025medslice,
  title  = {MedSlice: Fine-Tuned Large Language Models for Secure Clinical Note Sectioning},
  author = {Joshua Davis and Thomas Sounack and Kate Sciacca and Jessie M Brain and Brigitte N Durieux and Nicole D Agaronnik and Charlotta Lindvall},
  year   = {2025},
  eprint = {2501.14105},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.14105v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.14105.svg)](https://codeofpaper.com/paper/2501.14105)

Discussion