Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

Transformer-based structuring of Italian electronic health records with application in cardiac settings

View ORCID ProfileSara Mazzucato, Andrea Bandini, Daniele Sartiano, Giuseppe Vergaro, Stefano Dalmiani, Michele Emdin, Silvestro Micera, Calogero Maria Oddo, Claudio Passino, Sara Moccia
doi: https://doi.org/10.64898/2026.01.22.26344603
Sara Mazzucato
1Biorobotics Institute, Department of Excellence in Robotics and AI, Scuola Superiore Sant’Anna, Pisa, Italy
2Erasmus Medical Center, Rotterdam, The Netherlands
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Sara Mazzucato
  • For correspondence: sara.mazzucato{at}santannapisa.it
Andrea Bandini
1Biorobotics Institute, Department of Excellence in Robotics and AI, Scuola Superiore Sant’Anna, Pisa, Italy
3Health Science Interdisciplinary Research Center, Scuola Superiore Sant’Anna, Pisa, Italy
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Daniele Sartiano
4Istituto di Informatica e Telematica, CNR - Consiglio Nazionale delle Ricerche, Pisa, Italy
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Giuseppe Vergaro
3Health Science Interdisciplinary Research Center, Scuola Superiore Sant’Anna, Pisa, Italy
5Fondazione Toscana Gabriele Monasterio, Pisa, Italy
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Stefano Dalmiani
5Fondazione Toscana Gabriele Monasterio, Pisa, Italy
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Michele Emdin
3Health Science Interdisciplinary Research Center, Scuola Superiore Sant’Anna, Pisa, Italy
5Fondazione Toscana Gabriele Monasterio, Pisa, Italy
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Silvestro Micera
1Biorobotics Institute, Department of Excellence in Robotics and AI, Scuola Superiore Sant’Anna, Pisa, Italy
3Health Science Interdisciplinary Research Center, Scuola Superiore Sant’Anna, Pisa, Italy
6Bertarelli Foundation Chair in Translational Neural Engineering, Center for Neuroprosthetics and Institute of Bioengineering, Ecole Polytechnique Fédérale de Lausanne, Lausanne, Switzerland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Calogero Maria Oddo
1Biorobotics Institute, Department of Excellence in Robotics and AI, Scuola Superiore Sant’Anna, Pisa, Italy
3Health Science Interdisciplinary Research Center, Scuola Superiore Sant’Anna, Pisa, Italy
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Claudio Passino
3Health Science Interdisciplinary Research Center, Scuola Superiore Sant’Anna, Pisa, Italy
5Fondazione Toscana Gabriele Monasterio, Pisa, Italy
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Sara Moccia
1Biorobotics Institute, Department of Excellence in Robotics and AI, Scuola Superiore Sant’Anna, Pisa, Italy
7Department of Innovative Technologies in Medicine and Dentistry, Università degli Studi “G. d’Annunzio”, Chieti, Italy
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

Abstract

Purpose Natural Language Processing (NLP) has the potential to extract structured clinical knowledge from unstructured Electronic Health Records (EHRs). However, the limited availability of annotated datasets for algorithm training restricts its application in clinical practice. This study investigates the use of transformer-based NLP models to structure Italian EHRs in cardiac settings, addressing this gap.

Methods We implemented and evaluated three named entity recognition algorithms: SpaCy, Flair, and Multiconer. The experiments utilized three datasets comprising 2235 anamneses from patients at the Fondazione Toscana Gabriele Monasterio, Italy.

Results The SpaCy model achieved the highest performance with an F1-score of 97% in identifying clinical features on explicitly mentioned entities (Presence/Absence classification). However, features are not always mentioned, as clinicians selectively document only clinically relevant information in real-world practice. External validation shows model generalizability: EVD-100 dataset (considering 12 features, 97.13% F1) and STEMI dataset (considering 3 shared features, 88.29% F1). These structured variables were subsequently used to train machine learning algorithms (Logistic Regression, XGBoost, CatBoost) for classifying amyloidosis in heart failure patients. The classifiers trained on SpaCy-structured data attained an average F1-score of 66.70%, closely matching the 66.99% F1-score from classifiers using clinician-annotated data.

Conclusion This study shows the feasibility of using NLP for structuring Italian EHRs in realistic clinical settings, highlighting its potential to enhance computer-assisted detection despite selective documentation patterns. The comparable performance across annotation methods suggests NLP’s capability to bridge the gap in dataset annotation, paving the way for its integration into clinical practice.

Competing Interest Statement

The authors have declared no competing interest.

Funding Statement

This study did not receive any funding

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The details of the IRB/oversight body that provided approval or exemption for the research described are given below:

Ethics Committee of Fondazione Toscana Gabriele Monasterio gave ethical approval for this work (Decree No. 3854, 02 December 2023).

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Footnotes

  • Contributing authors: andrea.bandini{at}santannapisa.it; daniele.sartiano{at}iit.cnr.it; giuseppe.vergara{at}santannapisa.it; dalmiani{at}ftgm.it; michele.emdin{at}santannapisa.it; silvestro.micera{at}santannapisa.it; calogero.oddo{at}santannapisa.it; claudio.passino{at}santannapisa.it; sara.moccia{at}unich.it

Data Availability

The data that support the findings of this study are not publicly available due to ethical and legal restrictions, but are available from the corresponding author upon reasonable request and with approval from the Ethics Committee.

Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-NC-ND 4.0 International license.
Back to top
PreviousNext
Posted January 23, 2026.
Download PDF
Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
Transformer-based structuring of Italian electronic health records with application in cardiac settings
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
Transformer-based structuring of Italian electronic health records with application in cardiac settings
Sara Mazzucato, Andrea Bandini, Daniele Sartiano, Giuseppe Vergaro, Stefano Dalmiani, Michele Emdin, Silvestro Micera, Calogero Maria Oddo, Claudio Passino, Sara Moccia
medRxiv 2026.01.22.26344603; doi: https://doi.org/10.64898/2026.01.22.26344603
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
Transformer-based structuring of Italian electronic health records with application in cardiac settings
Sara Mazzucato, Andrea Bandini, Daniele Sartiano, Giuseppe Vergaro, Stefano Dalmiani, Michele Emdin, Silvestro Micera, Calogero Maria Oddo, Claudio Passino, Sara Moccia
medRxiv 2026.01.22.26344603; doi: https://doi.org/10.64898/2026.01.22.26344603

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Health Informatics
Subject Areas
All Articles
  • Addiction Medicine (576)
  • Allergy and Immunology (867)
  • Anesthesia (306)
  • Cardiovascular Medicine (4480)
  • Dentistry and Oral Medicine (449)
  • Dermatology (385)
  • Emergency Medicine (614)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1528)
  • Epidemiology (15276)
  • Forensic Medicine (31)
  • Gastroenterology (1133)
  • Genetic and Genomic Medicine (6643)
  • Geriatric Medicine (671)
  • Health Economics (1006)
  • Health Informatics (4603)
  • Health Policy (1378)
  • Health Systems and Quality Improvement (1622)
  • Hematology (544)
  • HIV/AIDS (1275)
  • Infectious Diseases (except HIV/AIDS) (15960)
  • Intensive Care and Critical Care Medicine (1110)
  • Medical Education (626)
  • Medical Ethics (147)
  • Nephrology (674)
  • Neurology (6693)
  • Nursing (346)
  • Nutrition (1006)
  • Obstetrics and Gynecology (1152)
  • Occupational and Environmental Health (961)
  • Oncology (3369)
  • Ophthalmology (988)
  • Orthopedics (370)
  • Otolaryngology (421)
  • Pain Medicine (437)
  • Palliative Medicine (131)
  • Pathology (668)
  • Pediatrics (1703)
  • Pharmacology and Therapeutics (699)
  • Primary Care Research (717)
  • Psychiatry and Clinical Psychology (5494)
  • Public and Global Health (9284)
  • Radiology and Imaging (2223)
  • Rehabilitation Medicine and Physical Therapy (1375)
  • Respiratory Medicine (1201)
  • Rheumatology (598)
  • Sexual and Reproductive Health (720)
  • Sports Medicine (535)
  • Surgery (720)
  • Toxicology (100)
  • Transplantation (290)
  • Urology (266)