[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-118759-en":3,"doc-seo-118759-105":30,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},118759,687197100911,"Himbo","https://ap-avatar.wpscdn.com/avatar/a000239b6f1da00475?x-image-process=image/resize,m_fixed,w_180,h_180&k=1785132997149421697",8,"Research & Report","Differentiating Viral and Bacterial Infections - A Machine Learning Model Based on Routine Blood Test Values","Antibiotic resistance makes accurate differentiation between bacterial and viral infections essential for appropriate antibiotic use. This study develops a “Virus vs. Bacteria” machine learning model using 16 routine blood test results plus C-reactive protein, biological sex, and age. Using 44,120 cases from a single medical center, the model achieves 82.2% accuracy, a 0.129 Brier score, and an ROC AUC of 0.91. Performance exceeds traditional CRP decision rules, especially within the CRP range 10–40 mg/L where CRP alone is less informative. The approach supports improved clinical decision-making via multi-parameter biomarker tools.","Differentiating Viral and Bacterial Infections: A Machine Learning Model Based on Routine Blood Test Values  \nGregor Gunčar,1,3\\# Matjaž Kukar,1,2\\# Tim Smole1, Sašo Moškon,1 Tomaž Vovko,4 Simon Podnar,5 Peter Černelč,1 Miran Brvar,6 Mateja Notar,1 Manca Köster1, Marjeta Tušek Jelenc1, Marko Notar*1  \n1Smart Blood Analytics Swiss SA, CH-8008 Zürich, Switzerland  \n2 Faculty of Computer and Information Science, University of Ljubljana, Slovenia 3 Faculty of Chemistry and Chemical Technology, University of Ljubljana, Slovenia 4 Department of Infectious Diseases, University Medical Centre Ljubljana, Slovenia 5 Division of Neurology, University Medical Centre Ljubljana, Slovenia  \n6Centre for Clinical Toxicology and Pharmacology, University Medical Centre Ljubljana, Slovenia  \n\\#Joint first authors contributed equally.  \n*Correspondence: Marko Notar, [marko@sba-swiss.com](marko@sba-swiss.com)  \nAbstract  \nThe growing threat of antibiotic resistance necessitates accurate differentiation between bacterial and viral infections for proper antibiotic administration. In this study, a Virus vs. Bacteria machine learning model was developed to discern between these infection types using 16 routine blood test results, Creactive protein levels, biological sex, and age. With a dataset of 44,120 cases from a single medical center, the Virus vs. Bacteria model demonstrated remarkable accuracy of 82.2%, a Brier score of 0. 129, and an area under the ROC curve of 0 .91, surpassing the performance of traditional CRP decision rule models. The model demonstrates substantially improved accuracy within the CRP range of 10-40 mg/L, an interval in which CRP alone offers limited diagnostic value for distinguishing between bacterial and viral infections. These findings underscore the importance of considering multiple blood parameters for diagnostic decision-making and suggest that the Virus vs. Bacteria model could contribute to the creation of innovative diagnostic tools. Such tools would harness machine learning and relevant biomarkers to support enhanced clinical decision-making in managing infections.  \nIntroduction  \nThe rise of antibiotic resistance poses a major threat to global public health, as it undermines the efficacy of life-saving antibiotics and increases the risk of complications and mortality associated with common infections (WHO, 2015) . A key driver of antibiotic resistance is the inappropriate use of antibiotics, particularly in situations where they are not clinically indicated, such as viral infections (Ventola, 2015) . Accurate and timely differentiation between bacterial and viral infections is essential to ensuring appropriate antibiotic prescribing practices and mitigating the spread of antibiotic resistance (Laxminarayan et al., 2013) .  \nHealthcare providers commonly employ blood tests to obtain insights into a patient's health status. Complete blood count (CBC) and C-reactive protein (CRP) are among the most frequently measured blood test parameters in clinical practice, as they can provide valuable information about a patient's immune response and inflammation levels. The most commonly studied biomarkers for distinguishing between bacterial and viral infections include C-reactive protein (CRP), procalcitonin (PCT), and various cytokines (Chan et al., 2002; Hoeboer et al., 2015; van Houten et al., 2017) . Among these, PCT has shown the most promise due to its higher specificity and sensitivity in differentiating both bacterial infections from viral infections and bacterial infections from other noninfective causes of systemic inflammation (Simon et al., 2004) . PCT levels tend to be markedly elevated in bacterial infections, whereas they remain low in viral infections, providing a useful clinical tool to guide antibiotic therapy (Schuetz et al., 2017) . CRP, an acute-phase protein produced by the liver in response to inflammation, infection, or tissue injury (Pepys & Hirschfield, 2003), has also been widely used as a diagnos","cbCaipd58jRdmfXt","https://ap.wps.com/l/cbCaipd58jRdmfXt","pdf",2491645,1,31,"English","en",105,"# Introduction\n## Antibiotic resistance and the need for accurate diagnosis\n## Common blood biomarkers: CBC, CRP, PCT and cytokines\n## Limitations of existing biomarkers and decision cutoffs\n## Role of machine learning in diagnostic medicine\n# Virus vs. Bacteria machine learning model\n## Input variables and dataset overview\n## Performance metrics and comparison to CRP rules","[{\"question\":\"Why is differentiating viral and bacterial infections important in clinical practice?\",\"answer\":\"Accurate differentiation enables appropriate antibiotic prescribing and helps limit the spread and impact of antibiotic resistance.\"},{\"question\":\"What inputs does the Virus vs. Bacteria machine learning model use?\",\"answer\":\"The model uses 16 routine blood test results, C-reactive protein levels, biological sex, and age.\"},{\"question\":\"How does the model perform compared with traditional CRP decision rule models?\",\"answer\":\"It reaches 82.2% accuracy with ROC AUC of 0.91 and improves outcomes over CRP-only rule approaches, particularly in the CRP range 10–40 mg/L.\"}]","Differentiating Viral and Bacterial Infections - A Machine Learning Model Based on Routine Blood Test Values | PDF",1785720085,78,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":28},"differentiating-viral-and-bacterial-infections-a-machine-learning-model-based-on-routine-blood-test-values","",{"@graph":36,"@context":85},[37,54,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/differentiating-viral-and-bacterial-infections-a-machine-learning-model-based-on-routine-blood-test-values/118759/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":62,"encodingFormat":61,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-03",true,{"@type":65,"interactionType":66,"userInteractionCount":4},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"Why is differentiating viral and bacterial infections important in clinical practice?","Question",{"text":75,"@type":76},"Accurate differentiation enables appropriate antibiotic prescribing and helps limit the spread and impact of antibiotic resistance.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"What inputs does the Virus vs. Bacteria machine learning model use?",{"text":80,"@type":76},"The model uses 16 routine blood test results, C-reactive protein levels, biological sex, and age.",{"name":82,"@type":73,"acceptedAnswer":83},"How does the model perform compared with traditional CRP decision rule models?",{"text":84,"@type":76},"It reaches 82.2% accuracy with ROC AUC of 0.91 and improves outcomes over CRP-only rule approaches, particularly in the CRP range 10–40 mg/L.","https://schema.org",{"og:url":52,"og:type":87,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":89,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,128,131,135],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":46,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":46,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":46,"category_name":137,"show_sort_weight":106,"slug":138},19,"General","general"]