Back to search

Universidade de Coimbro

SLMS PARA EXTRAÇÃO DE DADOS CLÍNICOS ESTRUTURADOS EM AVC ISQUÉMICO: UM PIPELINE MODULAR EM EXECUÇÃO LOCAL

Abstract

dc:description.abstract

Ischemic stroke is a leading cause of mortality and permanent disability, requiring urgent clinical response where time is a critical factor. Monitoring temporal metrics such as door-to-needle time and collecting structured clinical variables are essential for assessing quality of care, but currently rely on time-consuming manual processes subject to variability.This dissertation investigates the technical feasibility of Small Language Models (SLMs) executed locally to automatically extract structured clinical information from unstructured Portuguese medical notes. The proposed approach is a multi-agent pipeline composed of four specialized agents timestamp extraction, deterministic temporal metric calculation, clinical scale extraction, and categoricalvariable extraction with prompts developed iteratively for Portuguese clinical text, implemented in a Docker environment with Ollama ensuring entirely local execution and compliance.The experimental evaluation compared 17 open-source SLMs across three experimental dimensions: model size (Experiment 1), model family and training recipe (Experiment 2), and quantization level (Experiment 3). Evaluation was conducted on 150 synthetic ischemic stroke clinical cases covering eight clinically distinct episode types, with ground truth derived programmatically and validated by aclinical specialist.Results show that high extraction accuracy is achievable with locally executed SLMs. Qwen2.5-7B achieves the best performance (F1 = 0.934), with accuracy scaling consistently with model size within the Qwen2.5 family up to 7B parameters. DeepSeek-R1 distilled models are unsuitable for structured extraction, systematically producing free-text outputs that violate the required JSON schema. Quan-tization to 8-bit is generally safe, with near-zero accuracy loss for Qwen2.5-7B (∆F1 < 0.001) and moderate degradation for Llama-3.1-8B (∆F1 = −0.030).These results demonstrate that SLMs in the 7 to 9B range offer a viable configuration for hospital deployment, balancing extraction accuracy with computational requirements compatible with standard clinical hardware.

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Castelo, Beatriz Maria Filipe Vasconcelos
Advisors dc:contributor.advisor
  • Pais, Adelino Cristóvão
  • Furtado, Pedro Nuno San-Bento

Subjects

dc:subject × 9

Rights

dc:rights
Statement dc:rights
  • openAccess
Language dc:language.iso
por

Identifiers

dc:identifier.*
Dc Identifier Tid
204413591

Chain of custody

source
Harvested from
Universidade de Coimbro
Base URL
estudogeral.sib.uc.pt/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Castelo, Beatriz Maria Filipe Vasconcelos. SLMS PARA EXTRAÇÃO DE DADOS CLÍNICOS ESTRUTURADOS EM AVC ISQUÉMICO: UM PIPELINE MODULAR EM EXECUÇÃO LOCAL. 2026. https://hdl.handle.net/10316/124673