Varuni Sarwal, Nadav Rakocz, Georgina Dominique, Jeffrey N Chiang, A Lenore Ackerman
{"title":"利用电子健康记录数据预测尿脓毒症的机器学习。","authors":"Varuni Sarwal, Nadav Rakocz, Georgina Dominique, Jeffrey N Chiang, A Lenore Ackerman","doi":"10.1371/journal.pdig.0000896","DOIUrl":null,"url":null,"abstract":"<p><p>Urosepsis, a medical condition resulting from the progression of urinary tract infection (UTI), is a leading cause of death in the US. Urosepsis occurs due to complicated UTI and constitutes ~25% of sepsis cases. Early prediction of urosepsis is critical in providing personalized care, reducing diagnostic uncertainty, lowering mortality rates. While machine learning (ML) techniques have the potential to aid healthcare professionals in identifying risk factors and recommending treatment options, no study has been developed to predict the development of urosepsis in patients with a suspected UTI in outpatient settings. We develop and evaluate ML models in predicting hospital admission and urosepsis diagnosis for patients with an outpatient UTI encounter, leveraging de-identified electronic health records sourced from UCLA. Inclusion criteria included a positive diagnosis of urinary tract infection indicated by ICD-10 code N30/N93.0 and positive bacteria result via urinalysis in an ambulatory setting. W extracted demographic information, urinalysis findings, and antibiotics prescribed for each instance of UTI. Reencounters we defined as encounters within seven days of the initial UTI. Reencounters were considered urosepsis-related if matching positive blood and urine cultures were found with a sepsis ICD-10 code of A41/R78/R65. ML models were trained and evaluated on two tasks: prediction of a reencounter leading to hospitalization, prediction of Urosepsis. Model performances were stratified by ethnicities. Random forest models achieved significant improvement over baseline performance (APR = 0.004), with APR = 0.15 for reencounters and 0.31 for urosepsis prediction. While these APR values reflect the challenge of predicting rare events (0.4% prevalence), they represent meaningful predictive power for clinical risk stratification. We computed Shapley values to interpret model predictions and found patient age, sex, and urinary WBC-count were the top three predictive features. Our study has the potential to assist clinicians in the identification of high-risk patients, informed decisions about antibiotic prescription and improving patient care.</p>","PeriodicalId":74465,"journal":{"name":"PLOS digital health","volume":"4 7","pages":"e0000896"},"PeriodicalIF":7.7000,"publicationDate":"2025-07-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12225808/pdf/","citationCount":"0","resultStr":"{\"title\":\"Machine learning for the prediction of urosepsis using electronic health record data.\",\"authors\":\"Varuni Sarwal, Nadav Rakocz, Georgina Dominique, Jeffrey N Chiang, A Lenore Ackerman\",\"doi\":\"10.1371/journal.pdig.0000896\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><p>Urosepsis, a medical condition resulting from the progression of urinary tract infection (UTI), is a leading cause of death in the US. Urosepsis occurs due to complicated UTI and constitutes ~25% of sepsis cases. Early prediction of urosepsis is critical in providing personalized care, reducing diagnostic uncertainty, lowering mortality rates. While machine learning (ML) techniques have the potential to aid healthcare professionals in identifying risk factors and recommending treatment options, no study has been developed to predict the development of urosepsis in patients with a suspected UTI in outpatient settings. We develop and evaluate ML models in predicting hospital admission and urosepsis diagnosis for patients with an outpatient UTI encounter, leveraging de-identified electronic health records sourced from UCLA. Inclusion criteria included a positive diagnosis of urinary tract infection indicated by ICD-10 code N30/N93.0 and positive bacteria result via urinalysis in an ambulatory setting. W extracted demographic information, urinalysis findings, and antibiotics prescribed for each instance of UTI. Reencounters we defined as encounters within seven days of the initial UTI. Reencounters were considered urosepsis-related if matching positive blood and urine cultures were found with a sepsis ICD-10 code of A41/R78/R65. ML models were trained and evaluated on two tasks: prediction of a reencounter leading to hospitalization, prediction of Urosepsis. Model performances were stratified by ethnicities. Random forest models achieved significant improvement over baseline performance (APR = 0.004), with APR = 0.15 for reencounters and 0.31 for urosepsis prediction. While these APR values reflect the challenge of predicting rare events (0.4% prevalence), they represent meaningful predictive power for clinical risk stratification. We computed Shapley values to interpret model predictions and found patient age, sex, and urinary WBC-count were the top three predictive features. Our study has the potential to assist clinicians in the identification of high-risk patients, informed decisions about antibiotic prescription and improving patient care.</p>\",\"PeriodicalId\":74465,\"journal\":{\"name\":\"PLOS digital health\",\"volume\":\"4 7\",\"pages\":\"e0000896\"},\"PeriodicalIF\":7.7000,\"publicationDate\":\"2025-07-03\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12225808/pdf/\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"PLOS digital health\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1371/journal.pdig.0000896\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"2025/7/1 0:00:00\",\"PubModel\":\"eCollection\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"PLOS digital health","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1371/journal.pdig.0000896","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/7/1 0:00:00","PubModel":"eCollection","JCR":"","JCRName":"","Score":null,"Total":0}
Machine learning for the prediction of urosepsis using electronic health record data.
Urosepsis, a medical condition resulting from the progression of urinary tract infection (UTI), is a leading cause of death in the US. Urosepsis occurs due to complicated UTI and constitutes ~25% of sepsis cases. Early prediction of urosepsis is critical in providing personalized care, reducing diagnostic uncertainty, lowering mortality rates. While machine learning (ML) techniques have the potential to aid healthcare professionals in identifying risk factors and recommending treatment options, no study has been developed to predict the development of urosepsis in patients with a suspected UTI in outpatient settings. We develop and evaluate ML models in predicting hospital admission and urosepsis diagnosis for patients with an outpatient UTI encounter, leveraging de-identified electronic health records sourced from UCLA. Inclusion criteria included a positive diagnosis of urinary tract infection indicated by ICD-10 code N30/N93.0 and positive bacteria result via urinalysis in an ambulatory setting. W extracted demographic information, urinalysis findings, and antibiotics prescribed for each instance of UTI. Reencounters we defined as encounters within seven days of the initial UTI. Reencounters were considered urosepsis-related if matching positive blood and urine cultures were found with a sepsis ICD-10 code of A41/R78/R65. ML models were trained and evaluated on two tasks: prediction of a reencounter leading to hospitalization, prediction of Urosepsis. Model performances were stratified by ethnicities. Random forest models achieved significant improvement over baseline performance (APR = 0.004), with APR = 0.15 for reencounters and 0.31 for urosepsis prediction. While these APR values reflect the challenge of predicting rare events (0.4% prevalence), they represent meaningful predictive power for clinical risk stratification. We computed Shapley values to interpret model predictions and found patient age, sex, and urinary WBC-count were the top three predictive features. Our study has the potential to assist clinicians in the identification of high-risk patients, informed decisions about antibiotic prescription and improving patient care.