Comparative Evaluation of Ensemble Machine Learning Models for Predicting Antimicrobial Resistance from Electronic Health Records | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Comparative Evaluation of Ensemble Machine Learning Models for Predicting Antimicrobial Resistance from Electronic Health Records Zohoor Almalki, Amjad Althagafi, Sarah Al-Shareef This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-7829893/v1 This work is licensed under a CC BY 4.0 License Status: Under Review Version 1 posted 19 You are reading this latest preprint version Abstract Antimicrobial resistance (AMR), the ability of microbes to survive exposure to drugs intended to eliminate them, is a critical global health concern exacerbated by the overuse and misuse of antibiotics. In this study, we leverage machine learning techniques to predict AMR and evaluate the performance of several advanced supervised algorithms. Using the Antibiotic Resistance Microbiology Dataset (ARMD), a detailed electronic health record (EHR) dataset containing rich clinical, demographic, microbiological, and treatment data from Stanford Healthcare [ 1 , 2 ]. Our approach involves robust data preprocessing to predict the likelihood that a patient’s bacterial iso- late responds to a specific antibiotic as either resistant or susceptible, based on clinical characteristics, microbiological findings, treatment history, and demographic information. We compare the perfor- mance of state-of-the-art machine learning models, including XGBoost, LightGBM, Random Forest, and HistGradientBoostingClassifier, in building reliable predictive models of antibiotic susceptibility. By benchmarking these models on a large real-world dataset, this research identifies effective pre- dictive strategies that can support antimicrobial stewardship, enhance clinical decision-making, and contribute to addressing the growing challenge of AMR. antimicrobial resistance electronic health records machine learning gradient boosting random forest clinical decision support Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Under Review Version 1 posted Editorial decision: Revision requested 25 Feb, 2026 Reviews received at journal 24 Feb, 2026 Reviewers agreed at journal 24 Feb, 2026 Reviews received at journal 24 Feb, 2026 Reviewers agreed at journal 24 Feb, 2026 Reviewers agreed at journal 15 Feb, 2026 Reviews received at journal 28 Dec, 2025 Reviewers agreed at journal 18 Dec, 2025 Reviews received at journal 18 Dec, 2025 Reviewers agreed at journal 18 Dec, 2025 Reviews received at journal 21 Nov, 2025 Reviewers agreed at journal 18 Nov, 2025 Reviewers agreed at journal 18 Nov, 2025 Reviewers agreed at journal 18 Nov, 2025 Reviewers invited by journal 18 Nov, 2025 Editor invited by journal 11 Nov, 2025 Editor assigned by journal 06 Nov, 2025 Submission checks completed at journal 29 Oct, 2025 First submitted to journal 29 Oct, 2025 You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-7829893","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":548863854,"identity":"eab95149-e109-4781-95f1-89d4f65182cc","order_by":0,"name":"Zohoor Almalki","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA+ElEQVRIiWNgGAWjYFCCA4kPPhjY8NgfbwBzGRsI6mA88NhwRkWaDMOZA8RqYT74TJjnzGEbhhsJRGqRbzucxjizjZmHceYbw9s8DDayGw6wP/yAT4vBmWNpDz62sfEwS+cYW/MwpBlvOMBjLIFXi8SZdMOZbTw8bNI5ZtI8DIcTgVoY8GqRn//+mzRvmwQPj+QZkJb/QC3sj3/g9cyBA2nSPGcMeCQkeEBaDgC1MJjhd9iBA8nAQE7gMeBJK7acY5BsPPMwj5kFXoc1gKPyv70B++GNN95U2Mn2HW9/fAOvw5CBBIMBkGQmWj1YyygYBaNgFIwCLAAAEP5Nav2NpBwAAAAASUVORK5CYII=","orcid":"","institution":"Umm Al-Qura University","correspondingAuthor":true,"prefix":"","firstName":"Zohoor","middleName":"","lastName":"Almalki","suffix":""},{"id":548863856,"identity":"f3ef0c2b-93af-4e1c-a278-b551b1c49dac","order_by":1,"name":"Amjad Althagafi","email":"","orcid":"","institution":"Umm Al-Qura University","correspondingAuthor":false,"prefix":"","firstName":"Amjad","middleName":"","lastName":"Althagafi","suffix":""},{"id":548863857,"identity":"86ecbe4e-0d40-4bca-a252-6eb618cd517a","order_by":2,"name":"Sarah Al-Shareef","email":"","orcid":"","institution":"Umm Al-Qura University","correspondingAuthor":false,"prefix":"","firstName":"Sarah","middleName":"","lastName":"Al-Shareef","suffix":""}],"badges":[],"createdAt":"2025-10-10 19:53:19","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-7829893/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-7829893/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":96863443,"identity":"d5f47f1c-bf9a-4e23-a3b2-75c180314f60","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"docx","order_by":0,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":616406,"visible":true,"origin":"","legend":"","description":"","filename":"PredictingAMRUsingMLonEHR.docx","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/4f3e01f994f4baebc942b12b.docx"},{"id":96918708,"identity":"16f30635-6d55-42cf-a5df-20891803e5d0","added_by":"auto","created_at":"2025-11-27 14:12:23","extension":"png","order_by":1,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":124681,"visible":true,"origin":"","legend":"","description":"","filename":"ARMD.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/3709bb0a9a5009a53e7ae3cd.png"},{"id":96863437,"identity":"85425651-6063-43ae-9019-12f04342bbf8","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"png","order_by":2,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":220201,"visible":true,"origin":"","legend":"","description":"","filename":"ARMDHM.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/c8c229f45fb4171324973934.png"},{"id":96863436,"identity":"df9210d3-d592-4041-84bf-41f403a2561d","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"png","order_by":3,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":59660,"visible":true,"origin":"","legend":"","description":"","filename":"AgeGenderDis.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/3a606b0af533e15c28974104.png"},{"id":96863438,"identity":"772d1893-2cb0-4714-a93d-a6ec0517aeba","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"png","order_by":4,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":74429,"visible":true,"origin":"","legend":"","description":"","filename":"Comorbidity.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/727ee75044be89789be8e649.png"},{"id":96919615,"identity":"2cd90bfa-cee8-4810-a3f9-8d584a011462","added_by":"auto","created_at":"2025-11-27 14:14:13","extension":"png","order_by":5,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":192577,"visible":true,"origin":"","legend":"","description":"","filename":"SHAP.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/2955877f0c1f721681b0780d.png"},{"id":96919589,"identity":"470b267a-03fd-4bbd-9c65-3842363e4c21","added_by":"auto","created_at":"2025-11-27 14:14:11","extension":"png","order_by":6,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":46676,"visible":true,"origin":"","legend":"","description":"","filename":"TargetdistributionAftermergeing.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/61ff0c42daf27d1af934c999.png"},{"id":96919040,"identity":"83c06e61-a872-468d-b9ec-72607937721e","added_by":"auto","created_at":"2025-11-27 14:13:03","extension":"json","order_by":7,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":5297,"visible":true,"origin":"","legend":"","description":"","filename":"fd88a27012f64a68afbc3e1a571a26c8.json","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/231ddf3664cca970dd892a48.json"},{"id":96918442,"identity":"ab9a8994-7fe5-4e9b-9ddd-42c0e9d05b7a","added_by":"auto","created_at":"2025-11-27 14:11:57","extension":"xml","order_by":8,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":76603,"visible":true,"origin":"","legend":"","description":"","filename":"fd88a27012f64a68afbc3e1a571a26c81enriched.xml","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/ed7155b5b710b4b061a972c4.xml"},{"id":96920335,"identity":"98e3bdae-f58f-45f9-8075-87b072a2b7e9","added_by":"auto","created_at":"2025-11-27 14:15:04","extension":"png","order_by":9,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":124681,"visible":true,"origin":"","legend":"","description":"","filename":"ARMD.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/313f91a202afe7310ab88152.png"},{"id":96863450,"identity":"d31afe78-f9ee-408f-a30f-b4f59cd06d0b","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"png","order_by":10,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":220201,"visible":true,"origin":"","legend":"","description":"","filename":"ARMDHM.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/c776b7e97e5c5704f681db39.png"},{"id":96918996,"identity":"8670b3c9-bf4f-4c73-95d3-d178bd108385","added_by":"auto","created_at":"2025-11-27 14:12:58","extension":"png","order_by":11,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":59660,"visible":true,"origin":"","legend":"","description":"","filename":"AgeGenderDis.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/287afa73f5f279855659a6f3.png"},{"id":96919715,"identity":"7c9097dd-3a2b-4e3b-aba8-7e2cef08983b","added_by":"auto","created_at":"2025-11-27 14:14:21","extension":"png","order_by":12,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":74429,"visible":true,"origin":"","legend":"","description":"","filename":"Comorbidity.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/f7694f012c3b8da4daaf72fd.png"},{"id":96920347,"identity":"a502d3e6-e5b4-4523-a082-09c7c1fec152","added_by":"auto","created_at":"2025-11-27 14:15:05","extension":"png","order_by":13,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":192577,"visible":true,"origin":"","legend":"","description":"","filename":"SHAP.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/4cb1458a09ded2e4c8a8e88c.png"},{"id":96863444,"identity":"a3f0fa6f-e90f-458b-98c8-64d84084b6d1","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"png","order_by":14,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":46676,"visible":true,"origin":"","legend":"","description":"","filename":"TargetdistributionAftermergeing.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/87159aa4f62dab98862cdd6d.png"},{"id":96920081,"identity":"51dd753f-6df1-4c02-80ab-3e70cd30e19a","added_by":"auto","created_at":"2025-11-27 14:14:46","extension":"eps","order_by":15,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":389,"visible":true,"origin":"","legend":"","description":"","filename":"drawingimage1.eps","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/9ade95b4e6d6dc09f484a559.eps"},{"id":96863440,"identity":"f89e22d6-81c6-4985-bdb4-3c0b4b2f6744","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"eps","order_by":16,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":389,"visible":true,"origin":"","legend":"","description":"","filename":"drawingimage2.eps","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/2f01465f27b19a1a824eddeb.eps"},{"id":96919177,"identity":"40563a89-ae58-450f-a578-9286584f835b","added_by":"auto","created_at":"2025-11-27 14:13:17","extension":"eps","order_by":17,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":389,"visible":true,"origin":"","legend":"","description":"","filename":"drawingimage2.eps","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/9e7daec85198cfe2e2bdd999.eps"},{"id":96863447,"identity":"f66cf04f-6772-4b4d-85b5-951a4958fdda","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"jpeg","order_by":22,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":65497,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage1.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/cce024417fa41daa2b6e19cd.jpeg"},{"id":96863451,"identity":"1c0ad246-5d3f-404b-9faf-9adac2964149","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"jpeg","order_by":23,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":129182,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage10.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/cf3e61f57c0e480e8630404a.jpeg"},{"id":96920091,"identity":"b365937c-9841-4b75-b016-9a065420baae","added_by":"auto","created_at":"2025-11-27 14:14:46","extension":"jpeg","order_by":24,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1074,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage11.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/18771e82ac018c2293848ee3.jpeg"},{"id":96863453,"identity":"6222481a-7f44-4815-929f-b23e54868e34","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"jpeg","order_by":25,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":102550,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage12.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/dabca30493a8f2c3ee82dfb9.jpeg"},{"id":96918451,"identity":"8a33eee9-8ac8-4756-ab91-2806782c6739","added_by":"auto","created_at":"2025-11-27 14:11:57","extension":"jpeg","order_by":26,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":84449,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage2.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/8c9938c5a00d47a9777c0416.jpeg"},{"id":96919152,"identity":"aae371c9-1d58-400c-adb9-603d9e4367d7","added_by":"auto","created_at":"2025-11-27 14:13:15","extension":"jpeg","order_by":27,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":551882,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage3.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/e201949bc375dfd0dfd4b7fa.jpeg"},{"id":96920051,"identity":"5c0792d3-92f8-4f9b-bf61-82cfed67ed83","added_by":"auto","created_at":"2025-11-27 14:14:43","extension":"jpeg","order_by":28,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":540769,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage4.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/17b8a313ec8d6491f2a98dbb.jpeg"},{"id":96863469,"identity":"d5da6fbd-8965-41ce-ad8b-fa9399da0c01","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"jpeg","order_by":29,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":109563,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage5.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/06d407fe56979f4567c479ea.jpeg"},{"id":96920043,"identity":"cc2e2f6f-ee06-4258-af55-b0e4e27dae00","added_by":"auto","created_at":"2025-11-27 14:14:43","extension":"jpeg","order_by":30,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":331974,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage6.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/bf492a3c550fc52fda890a2e.jpeg"},{"id":96920299,"identity":"3b0278fb-2447-4d71-bcb7-228a70fa0771","added_by":"auto","created_at":"2025-11-27 14:15:02","extension":"jpeg","order_by":31,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":368655,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage7.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/2ad5d7c006864eff79b6bc1b.jpeg"},{"id":96863465,"identity":"0478ac1c-8ed5-4bd3-b69a-b1a1cc3bfd5c","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"jpeg","order_by":32,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":249213,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage8.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/28ca892dc7382528701f0e5d.jpeg"},{"id":96863462,"identity":"acf4ffc6-1e35-4ca9-be54-36c2ca1ec8d4","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"jpeg","order_by":33,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1074,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage11.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/27b5a18ca000e8d6bb0f05bf.jpeg"},{"id":96919541,"identity":"54883a10-3548-427a-8ad7-7ede742bda06","added_by":"auto","created_at":"2025-11-27 14:14:04","extension":"png","order_by":34,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":29163,"visible":true,"origin":"","legend":"","description":"","filename":"OnlineARMD.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/b84d90a3d94974fc6bf25d7a.png"},{"id":96863460,"identity":"8672fb3e-9cd0-4a63-8f7e-18356dbd2491","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"png","order_by":35,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":58157,"visible":true,"origin":"","legend":"","description":"","filename":"OnlineARMDHM.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/4c0cc27ebd99aae6f6efbb17.png"},{"id":96918638,"identity":"32013ed7-96a2-4c6d-b674-d0b4dfab1eae","added_by":"auto","created_at":"2025-11-27 14:12:14","extension":"png","order_by":36,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":23703,"visible":true,"origin":"","legend":"","description":"","filename":"OnlineAgeGenderDis.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/06170f4e6ad21b20cfd824c1.png"},{"id":96863479,"identity":"82806d06-68e8-420b-97cf-d3831f752891","added_by":"auto","created_at":"2025-11-27 00:02:30","extension":"png","order_by":37,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":21231,"visible":true,"origin":"","legend":"","description":"","filename":"OnlineComorbidity.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/ab6ddf4661f80053403295f0.png"},{"id":96863472,"identity":"677b275a-d946-4697-bc71-dc8283e6cadd","added_by":"auto","created_at":"2025-11-27 00:02:30","extension":"png","order_by":38,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":38102,"visible":true,"origin":"","legend":"","description":"","filename":"OnlineSHAP.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/8f74fbc0ec20b87c45c68e51.png"},{"id":96863477,"identity":"3eafb812-bb17-4de8-ad01-8ab2f326b3c9","added_by":"auto","created_at":"2025-11-27 00:02:30","extension":"png","order_by":39,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":14526,"visible":true,"origin":"","legend":"","description":"","filename":"OnlineTargetdistributionAftermergeing.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/9c62e239818c32f12e22d14c.png"},{"id":96863464,"identity":"cb474f21-f962-432d-a147-8703b3f6e375","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"png","order_by":40,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":15195,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/cd7e82145c5caaeabfbc564f.png"},{"id":96863463,"identity":"f1edd2f3-517b-4e52-a48d-72e3fb71b25d","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"png","order_by":41,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":26468,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage10.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/4a55122fea1a115fbcd26de8.png"},{"id":96863466,"identity":"f99fad2b-546b-4584-bb53-052f585d1e75","added_by":"auto","created_at":"2025-11-27 00:02:29","extension":"png","order_by":42,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":935,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage11.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/af8651beea92b9bd76128d7d.png"},{"id":96863475,"identity":"eb1540f7-9021-4619-b82c-1e7affc6cf3a","added_by":"auto","created_at":"2025-11-27 00:02:30","extension":"png","order_by":43,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":36768,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage12.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/d8f466e19b0a34c49b3944bc.png"},{"id":97135473,"identity":"be076420-aaf2-4d23-873d-81d4eac4b2d0","added_by":"auto","created_at":"2025-12-01 09:48:46","extension":"png","order_by":44,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":14304,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/2db3303c35ae35b82b5bc7ab.png"},{"id":96863474,"identity":"18e73427-a937-4a6b-aacf-1fcb861464b6","added_by":"auto","created_at":"2025-11-27 00:02:30","extension":"png","order_by":45,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":102894,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/90369bbcd9a25033de61268d.png"},{"id":96918714,"identity":"233c3e17-086b-4a64-8b11-3935e5fe52cd","added_by":"auto","created_at":"2025-11-27 14:12:23","extension":"png","order_by":46,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":98749,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/6516287272ee4f6d15b13b6e.png"},{"id":96920023,"identity":"d9fcf0f3-70d3-4fa1-8a79-8a64dafa1898","added_by":"auto","created_at":"2025-11-27 14:14:42","extension":"png","order_by":47,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":12806,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage5.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/e7834fb5a5f24aa762a9393d.png"},{"id":96863482,"identity":"4d946f58-bb43-4979-94c5-5892b1eb0509","added_by":"auto","created_at":"2025-11-27 00:02:30","extension":"png","order_by":48,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":43380,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/0052f5c8184b9bbad3783ded.png"},{"id":96919368,"identity":"6072c2ec-845b-4391-987e-ddc71566ed2c","added_by":"auto","created_at":"2025-11-27 14:13:45","extension":"png","order_by":49,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":86339,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage7.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/eb411a71cdb0e9d10630361d.png"},{"id":96918738,"identity":"ecb873cd-2e0d-4bb1-9905-d33434df33a0","added_by":"auto","created_at":"2025-11-27 14:12:30","extension":"png","order_by":50,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":44982,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage8.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/94e824b0b5986a7a54f44bba.png"},{"id":96863470,"identity":"bda2bff3-7a87-41ab-9d62-985190203680","added_by":"auto","created_at":"2025-11-27 00:02:30","extension":"png","order_by":51,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":935,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage11.png","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/4f770aeb9375a9bade73d91a.png"},{"id":96863484,"identity":"4b7819da-9dc0-4af7-91cb-dbc741591942","added_by":"auto","created_at":"2025-11-27 00:02:30","extension":"xml","order_by":52,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":74917,"visible":true,"origin":"","legend":"","description":"","filename":"fd88a27012f64a68afbc3e1a571a26c81structuring.xml","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/5baebbe2d932d172a40b2bee.xml"},{"id":96863485,"identity":"555527f1-0b5f-4771-9c55-dfb92d565f85","added_by":"auto","created_at":"2025-11-27 00:02:30","extension":"html","order_by":53,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":87833,"visible":true,"origin":"","legend":"","description":"","filename":"earlyproof.html","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1/5bc52d7c1157175245525806.html"},{"id":97144051,"identity":"55f6fdd6-733b-4e34-af23-68e89dd57c0f","added_by":"auto","created_at":"2025-12-01 10:11:00","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":760505,"visible":true,"origin":"","legend":"","description":"","filename":"PredictingAMRUsingMLonEHR.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7829893/v1_covered_8c43d221-e955-43b9-96a3-706180e69a9c.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"Comparative Evaluation of Ensemble Machine Learning Models for Predicting Antimicrobial Resistance from Electronic Health Records","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"highlight":"","institution":"","isAcceptedByJournal":true,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"discover-artificial-intelligence","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"diai","sideBox":"Learn more about [Discover Artificial Intelligence](https://www.springer.com/44163)","snPcode":"","submissionUrl":"","title":"Discover Artificial Intelligence","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"stoa","reportingPortfolio":"Discover Series","inReviewEnabled":true,"inReviewRevisionsEnabled":true},"keywords":"antimicrobial resistance, electronic health records, machine learning, gradient boosting, random forest, clinical decision support","lastPublishedDoi":"10.21203/rs.3.rs-7829893/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-7829893/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eAntimicrobial resistance (AMR), the ability of microbes to survive exposure to drugs intended to eliminate them, is a critical global health concern exacerbated by the overuse and misuse of antibiotics. In this study, we leverage machine learning techniques to predict AMR and evaluate the performance of several advanced supervised algorithms. Using the Antibiotic Resistance Microbiology Dataset (ARMD), a detailed electronic health record (EHR) dataset containing rich clinical, demographic, microbiological, and treatment data from Stanford Healthcare [\u003cspan citationid=\"CR1\" class=\"CitationRef\"\u003e1\u003c/span\u003e, \u003cspan citationid=\"CR2\" class=\"CitationRef\"\u003e2\u003c/span\u003e].\u003c/p\u003e\u003cp\u003eOur approach involves robust data preprocessing to predict the likelihood that a patient\u0026rsquo;s bacterial iso- late responds to a specific antibiotic as either resistant or susceptible, based on clinical characteristics, microbiological findings, treatment history, and demographic information. We compare the perfor- mance of state-of-the-art machine learning models, including XGBoost, LightGBM, Random Forest, and HistGradientBoostingClassifier, in building reliable predictive models of antibiotic susceptibility. By benchmarking these models on a large real-world dataset, this research identifies effective pre- dictive strategies that can support antimicrobial stewardship, enhance clinical decision-making, and contribute to addressing the growing challenge of AMR.\u003c/p\u003e","manuscriptTitle":"Comparative Evaluation of Ensemble Machine Learning Models for Predicting Antimicrobial Resistance from Electronic Health Records","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-11-27 00:02:24","doi":"10.21203/rs.3.rs-7829893/v1","editorialEvents":[{"type":"communityComments","content":0},{"type":"decision","content":"Revision requested","date":"2026-02-25T14:10:38+00:00","index":"","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2026-02-24T21:03:46+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"196521746913405259155102473292679568722","date":"2026-02-24T21:00:58+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2026-02-24T20:59:42+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"31890059486559775423071610806140600948","date":"2026-02-24T20:57:27+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"207610210626466496465209260022139608258","date":"2026-02-15T11:35:01+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2025-12-28T22:21:06+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"156131090172701135390620088314950213541","date":"2025-12-18T07:56:51+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2025-12-18T07:25:30+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"326672911011435852623865039822240030511","date":"2025-12-18T07:00:27+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2025-11-21T17:02:26+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"187012452516270635488463585591548560662","date":"2025-11-18T13:25:06+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"214322480731808466200863581554288796957","date":"2025-11-18T11:08:12+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"287329554405080194152456095738615141108","date":"2025-11-18T10:33:11+00:00","index":"hide","fulltext":""},{"type":"reviewersInvited","content":"","date":"2025-11-18T10:18:58+00:00","index":"","fulltext":""},{"type":"editorInvited","content":"","date":"2025-11-11T17:30:28+00:00","index":"","fulltext":""},{"type":"editorAssigned","content":"","date":"2025-11-06T12:43:13+00:00","index":"","fulltext":""},{"type":"checksComplete","content":"","date":"2025-10-29T16:41:20+00:00","index":"","fulltext":""},{"type":"submitted","content":"Discover Artificial Intelligence","date":"2025-10-29T16:37:50+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"discover-artificial-intelligence","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"diai","sideBox":"Learn more about [Discover Artificial Intelligence](https://www.springer.com/44163)","snPcode":"","submissionUrl":"","title":"Discover Artificial Intelligence","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"stoa","reportingPortfolio":"Discover Series","inReviewEnabled":true,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"e21ca38c-f924-438a-b16e-3029e47ea1f5","owner":[],"postedDate":"November 27th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"under-review","subjectAreas":[],"tags":[],"updatedAt":"2026-05-07T05:55:01+00:00","versionOfRecord":[],"versionCreatedAt":"2025-11-27 00:02:24","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-7829893","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-7829893","identity":"rs-7829893","version":["v1"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.