Background: Cardiogenic shock (CS) is a life-threatening complication of ST-elevation myocardial infarction (STEMI) and remains the leading cause of in-hospital mortality, with rates ranging from 5 to 10% despite advances in reperfusion strategies. Early identification and timely intervention are critical for improving outcomes. This study investigates the utility of machine learning (ML) models for predicting the risk of CS during the early phases of care-prehospital, emergency department (ED), and cardiology-on-call-with a focus on accurate triage and prioritization for urgent angiography. Results: In the prehospital phase, the Extra Trees classifier demonstrated the highest overall performance. It achieved an accuracy (ACC) of 0.9062, precision of 0.9078, recall of 0.9062, F1-score of 0.9061, and Matthews correlation coefficient (MCC) of 0.8140, indicating both high predictive power and strong generalization. In the ED phase, the support vector machine model outperformed others with an ACC of 78.12%. During the cardiology-on-call phase, Random Forest showed the best performance with an ACC of 81.25% and consistent values across other metrics. Quadratic discriminant analysis showed consistent and generalizable performance across all early care stages. Key predictive features included the Killip class, ECG rhythm, creatinine, potassium, and markers of renal dysfunction-parameters readily available in routine emergency settings. The greatest clinical utility was observed in prehospital and ED phases, where ML models could support the early identification of critically ill patients and could prioritize coronary catheterization, especially important for centers with limited capacity for angiography. Conclusions: Machine learning-based predictive models offer a valuable tool for early risk stratification in STEMI patients at risk for cardiogenic shock. These findings support the implementation of ML-driven tools in early STEMI care pathways, potentially improving survival through faster and more accurate decision-making, especially in time-sensitive clinical environments.
Keywords: STEMI; angiography prioritization; cardiogenic shock; early triage; machine learning; predictive models.