🎉 This work has been accepted by npj Digital Medicine
PeriComp Performance
Figure: Performance comparison of fine-tuned models across different sizes
🩺 Model Overview
PeriComp is a collection of specialized LoRA (Low-Rank Adaptation) adaptors designed for perioperative complication detection from clinical narratives. These adaptors enhance smaller open-source language models to achieve expert-level performance in identifying and grading 22 distinct perioperative complications based on European Perioperative Clinical Outcome (EPCO) definitions.
🎯 Key Features
Expert-level Performance: Matches or exceeds human clinician accuracy
Multi-scale Detection: Simultaneous identification and severity grading (mild/moderate/severe)
Resource Efficient: Optimized for deployment on standard clinical infrastructure
Privacy Preserving: Fully deployable on-premises without data transmission
📊 Model Collection
This collection includes five optimized LoRA adaptors:
Model
Base Model
Parameters
F1 Score
Use Case
PeriComp-4B
Qwen3-4B
4B
0.55
Resource-constrained environments
PeriComp-8B
Qwen3-8B
8B
0.61
Balanced performance/efficiency
PeriComp-14B
Qwen3-14B
14B
0.65
High-performance deployment
PeriComp-32B
Qwen3-32B
32B
0.68
Maximum accuracy requirements
PeriComp-QwQ-32B
QwQ-32B
32B
0.70
Reasoning-enhanced performance
🔬 Research Background
Perioperative complications affect millions of patients globally, with traditional manual detection suffering from:
27% under-reporting rate in clinical registries
High variability in expert performance across institutions
Cognitive load limitations with complex documentation
Our research, published in npj Digital Medicine (DOI: 10.1038/s41746-025-02139-3), demonstrates that targeted task decomposition combined with LoRA fine-tuning enables smaller models to achieve expert-level diagnostic capabilities while maintaining practical deployability.
Strict Performance Evaluation
Figure: Strict performance evaluation requiring exact complication type and severity matching
🚀 Quick Start
Installation
pip install transformers peft torch
Basic Usage
python
1from transformers import AutoTokenizer, AutoModelForCausalLM
2from peft import PeftModel
34# Load base model and tokenizer5model_name ="Qwen/Qwen3-8B"6tokenizer = AutoTokenizer.from_pretrained(model_name)7base_model = AutoModelForCausalLM.from_pretrained(model_name)89# Load PeriComp adaptor10adaptor_name ="gscfwid/Qwen3-8B-PeriComp"11model = PeftModel.from_pretrained(base_model, adaptor_name)1213# Prepare clinical input14clinical_text ="""
15# Objective
16The objective is to identify postoperative complications from patient data in medical records, mimicking the diagnostic expertise of a senior surgeon.
1718# Diagnostic Criteria
19The diagnostic criteria for the 22 postoperative complications are as follows:
2021{the diagnostic criteria for the 22 postoperative complications}
2223# Guidelines of Output structure
2425The output format is specified as:
26{defined the output structure}
2728# Data of medical records
2930- {General Information (De-identified)}
31- {Postoperative Medical Record}
32- {Abnormal Test Results}
33- {Examination Results}
34"""3536# Prompt preparation format details can be found in the example files:37# - comprehensive_prompts.json for QwQ 32B adapter38# - targeted_prompts.json for Qwen 3 adapters39# Note: Models are trained on Chinese clinical texts; performance on other languages is not validated4041# Generate complication assessment42inputs = tokenizer(clinical_text, return_tensors="pt")43outputs = model.generate(**inputs, max_new_tokens=512)44result = tokenizer.decode(outputs[0], skip_special_tokens=True)
¹ Jammer, I. et al. Standards for definitions and use of outcome measures for clinical effectiveness research in perioperative medicine: European Perioperative Clinical Outcome (EPCO) definitions: a statement from the ESA-ESICM joint taskforce on perioperative outcome measures. Eur J Anaesthesiol 32, 88-105 (2015). DOI: 10.1097/EJA.0000000000000118
If you use PeriComp in your research, please cite:
bibtex
1@article{gao2025pericomp,
2 title={Enhancing Privacy-Preserving Deployable Large Language Models for Perioperative Complication Detection: A Targeted Strategy with LoRA Fine-tuning},
3 author={Gao, Shaowei and Zhao, Xu and Chen, Lihui and Yu, Junrong and Tian, Shuning and Zhou, Huaqiang and Chen, Jingru and Long, Sizhe and He, Qiulan and Feng, Xia},
4 journal={npj Digital Medicine},
5 year={2025},
6 doi={10.1038/s41746-025-02139-3},
7 url={https://doi.org/10.1038/s41746-025-02139-3}
8}