This model is a fine-tuned version of
Bio_ClinicalBERT designed for the surveillance of
Surgical Site Infections (SSI) in postoperative clinical notes. It is specifically tailored to
UK NHS terminology, covering specialties such as Orthopaedics, General Surgery (GI), and Obstetrics (C-sections).
This model is intended for use in clinical natural language processing (NLP) pipelines to automatically flag postoperative notes that indicate a potential Surgical Site Infection. It classifies notes into:
It is particularly effective for notes containing UK-specific medical abbreviations and terminology (e.g., "Lap. Chole.", "THR", "Co-amoxiclav", "SHO review").
Users should validate the model on their own local clinical data before deploying it for active surveillance. It is recommended to use this model as a "first pass" filter to prioritize cases for manual review by Infection Prevention and Control (IPC) teams.
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4model_name = "Ch3DS/clinicalSSIBERT"
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoModelForSequenceClassification.from_pretrained(model_name)
7
8text = "Day 5 post THR. Wound red and oozing pus. Patient pyrexial. Plan: Start Flucloxacillin."
9inputs = tokenizer(text, return_tensors="pt")
10
11with torch.no_grad():
12 logits = model(**inputs).logits
13 predicted_class_id = logits.argmax().item()
14
15labels = ["Routine", "Infection"]
16print(f"Prediction: {labels[predicted_class_id]}")
The model was evaluated on a held-out test set of 100,000 synthetic records.