@Article{info:doi/10.2196/66366, author="Kwun, Ju-Seung and Ahn, Houng-Beom and Kang, Si-Hyuck and Yoo, Sooyoung and Kim, Seok and Song, Wongeun and Hyun, Junho and Oh, Ji Seon and Baek, Gakyoung and Suh, Jung-Won", title="Developing a Machine Learning Model for Predicting 30-Day Major Adverse Cardiac and Cerebrovascular Events in Patients Undergoing Noncardiac Surgery: Retrospective Study", journal="J Med Internet Res", year="2025", month="Apr", day="9", volume="27", pages="e66366", keywords="perioperative risk evaluation; noncardiac surgery; prediction models; machine learning; common data model; ML; predictive modeling; cerebrovascular; electronic health records; EHR; clinical practice; risk; noncardiac surgeries; perioperative", abstract="Background: Considering that most patients with low or no significant risk factors can safely undergo noncardiac surgery without additional cardiac evaluation, and given the excessive evaluations often performed in patients undergoing intermediate or higher risk noncardiac surgeries, practical preoperative risk assessment tools are essential to reduce unnecessary delays for urgent outpatient services and manage medical costs more efficiently. Objective: This study aimed to use the Observational Medical Outcomes Partnership Common Data Model to develop a predictive model by applying machine learning algorithms that can effectively predict major adverse cardiac and cerebrovascular events (MACCE) in patients undergoing noncardiac surgery. Methods: This retrospective observational network study collected data by converting electronic health records into a standardized Observational Medical Outcomes Partnership Common Data Model format. The study was conducted in 2 tertiary hospitals. Data included demographic information, diagnoses, laboratory results, medications, surgical types, and clinical outcomes. A total of 46,225 patients were recruited from Seoul National University Bundang Hospital and 396,424 from Asan Medical Center. We selected patients aged 65 years and older undergoing noncardiac surgeries, excluding cardiac or emergency surgeries, and those with less than 30 days of observation. Using these observational health care data, we developed machine learning--based prediction models using the observational health data sciences and informatics open-source patient-level prediction package in R (version 4.1.0; R Foundation for Statistical Computing). A total of 5 machine learning algorithms, including random forest, were developed and validated internally and externally, with performance assessed through the area under the receiver operating characteristic curve (AUROC), the area under the precision-recall curve, and calibration plots. Results: All machine learning prediction models surpassed the Revised Cardiac Risk Index in MACCE prediction performance (AUROC=0.704). Random forest showed the best results, achieving AUROC values of 0.897 (95{\%} CI 0.883-0.911) internally and 0.817 (95{\%} CI 0.815-0.819) externally, with an area under the precision-recall curve of 0.095. Among 46,225 patients of the Seoul National University Bundang Hospital, MACCE occurred in 4.9{\%} (2256/46,225), including myocardial infarction (907/46,225, 2{\%}) and stroke (799/46,225, 1.7{\%}), while in-hospital mortality was 0.9{\%} (419/46,225). For Asan Medical Center, 6.3{\%} (24,861/396,424) of patients experienced MACCE, with 1.5{\%} (6017/396,424) stroke and 3{\%} (11,875/396,424) in-hospital mortality. Furthermore, the significance of predictors linked to previous diagnoses and laboratory measurements underscored their critical role in effectively predicting perioperative risk. Conclusions: Our prediction models outperformed the widely used Revised Cardiac Risk Index in predicting MACCE within 30 days after noncardiac surgery, demonstrating superior calibration and generalizability across institutions. Its use can optimize preoperative evaluations, minimize unnecessary testing, and streamline perioperative care, significantly improving patient outcomes and resource use. We anticipate that applying this model to actual electronic health records will benefit clinical practice. ", issn="1438-8871", doi="10.2196/66366", url="https://www.jmir.org/2025/1/e66366", url="https://doi.org/10.2196/66366" }