PT - JOURNAL ARTICLE AU - Flores-Balado, Alvaro AU - Méndez, Carlos Castresana AU - González, Antonio Herrero AU - Gutierrez, Raúl Mesón AU - Arcos, Javier AU - Martín-Ríos, María Dolores AU - the Surgical Site Infection Surveillance Group TI - Design and Retrospective Cohort Validation of an Algorithm for Surgical Site Infection Surveillance after Hip Replacement Surgery Using Natural Language Processing and Extreme Gradient Boosting AID - 10.1101/2023.01.17.23284669 DP - 2023 Jan 01 TA - medRxiv PG - 2023.01.17.23284669 4099 - http://medrxiv.org/content/early/2023/01/18/2023.01.17.23284669.short 4100 - http://medrxiv.org/content/early/2023/01/18/2023.01.17.23284669.full AB - Background Surgical site infection (SSI) surveillance is a labor-intensive endeavor. We present the design and retrospective cohort validation of a multivariable algorithm to screen for SSI in patients undergoing hip replacement surgery, permitting real-time case detection, and reducing the number of clinical records to be reviewed manually.Methods We designed a multivariable algorithm using extreme gradient-boosting (XGBoost) to screen for SSI in patients undergoing hip replacement surgery. The development and validation cohort included all healthcare episodes dating from the initial hospital admission for surgery until 90 days after joint replacement (n=19661) between January 2014 and December 2021 from four hospitals in Madrid, Spain. A NLP pipeline was implemented to obtain text variables from free-text fields of the EHR. Clinical, prescription, microbiology, and laboratory variables were also collected. Episodes were split randomly into training (70%) and testing (30%) datasets. Hyperparameters were adjusted to penalize false negatives.Findings The presence of positive microbiological cultures, the text variable “infection”, and the prescription of clindamycin were strong markers of SSI. Statistical analysis of the final model indicated a high sensitivity (99·18%) and specificity (91·01%) with an F1-score of 0·32, AUC of 0·989 and accuracy of 91·27%. The model correctly classified 5129 episodes as negative for SSI, with only one case of SSI escaping detection (NPV 99·98%).Interpretation We conclude that the combination of NLP and extreme gradient boosting is a sensitive tool for SSI surveillance in hip replacement surgery, permitting real-time, semi-automatic surveillance. In practice, our results translate as an 88·95% reduction in the total volume of clinical records to be reviewed manually. To the best of our knowledge, this is the first time that an algorithm incorporating data from multiple sources using NLP and extreme gradient boosting has been developed for orthopedic SSI surveillance.Funding This study did not receive any funding.Competing Interest StatementThe authors have declared no competing interest.Funding StatementThis study did not receive any funding.Author DeclarationsI confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.YesThe details of the IRB/oversight body that provided approval or exemption for the research described are given below:The ethics committee of the Fundación Jiménez Díaz University Hospital gave ethical approval for this work.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.YesI 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).YesI have followed all appropriate research reporting guidelines and uploaded the relevant EQUATOR Network research reporting checklist(s) and other pertinent material as supplementary files, if applicable.YesAll data produced in the present study are available upon reasonable request to the authors.