A Two-Stage NLP Pipeline for Automated Surveillance of Surgical Site Infections
C Ghisolfi, C Barbati, L Viviani, F Pescol, L Prisciano, L Sacchi, L Gentile, R Bellazzi,
Key points
From the paper's conclusion- Key messages • NLP-based automation can support SSI surveillance, reducing the burden of manual record review. • A two-stage pipeline combining structured extraction and rule-based classification outperforms direct LLM-based classification for automated SSI case identification.
Abstract
Background SSIs are among the leading causes of post-operative complications, with significant impact on patient health, length of stay, and healthcare costs. Surveillance still relies on manual record review, a time-consuming and resource-intensive process. The PRESID-IA project aims to develop a predictive system to estimate individual SSI risk in the immediate post-operative period, enabling early intervention. Methods As supervised model training requires labelling of surgical cases according to infectious outcome, NLP techniques were applied to post-operative outpatient reports to automate this process. Several LLMs were tested using prompt engineering to extract SSI clinical criteria by the ECDC protocol for SSI surveillance and classify reports via rule-based logic applied to the extracted criteria. Preliminary results were validated by clinical specialists on 100 reports selected from 15,778 available records. Results Compared to a direct approach in which the model classifies the case from the report and criteria, the two-stage pipeline (precision=0.50, recall=0.71, F1=0.58) substantially outperformed direct classification (precision=0.07, recall=1.00, F1=0.13). Clinical validation revealed agreement between model outputs and specialist judgement. Analysis of discordance highlighted that manual review is subject to errors, underscoring the limitations of traditional surveillance. Conclusions The proposed approach demonstrates how LLM-based NLP pipelines can automate SSI surveillance, improving efficiency and transparency. Future work will focus on developing the predictive component to estimate individual SSI risk and support clinical decision-making. Key messages • NLP-based automation can support SSI surveillance, reducing the burden of manual record review. • A two-stage pipeline combining structured extraction and rule-based classification outperforms direct LLM-based classification for automated SSI case identification.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Validation of natural language processing for surgical complication surveillance: detecting 11 postoperative complications from electronic health records.BMJ connections surgery · 2026
- The Best of Both Worlds: How Combining a Large Language Model and a Rule-Based Algorithm Makes Catheter-Associated Urinary Tract Infection Surveillance More EfficientClinical Infectious Diseases · 2026
- Artificial intelligence for healthcare-associated infection surveillance and control: a scoping review of evidence and implementation readinessBMC Infectious Diseases · 2026
- Use of a large language model integrated within the electronic medical record for the evaluation of surgical site infections – Northern California, 2025Infection Control and Hospital Epidemiology · 2026
- Language model-assisted label refinement for accurate sepsis detection from electronic health recordsmedRxiv · 2026
- Explainable Machine Learning Predictive Models for Surgical Site Infections: Scoping Review.Journal of medical Internet research · 2026