Stress echocardiography (SE) is based on regional wall motion abnormalities and coronary flow velocity reserve (CFVR). Their independent prognostic capabilities could be better studied with a machine learning (ML) approach. The study aims to assess the SE outcome data by conducting an analysis with an ML approach. We included 6881 prospectively recruited and retrospectively analyzed patients with suspected (n = 4279) or known (n = 2602) coronary artery disease submitted to clinically driven dipyridamole SE. The outcome measure was all-cause death. A random forest survival model was implemented to model the survival function according to the patient’s characteristics; 1002 patients recruited by a single, independent center formed the external validation cohort. During a median follow-up of 3.4 years (IQR 1.6–7.5), 814 (12%) patients died. The mortality risk was higher for patients aged >60 years, with a resting ejection fraction < 60%, resting WMSI, positive stress-rest WMSI scores, and CFVR < 3.The C-index performance was 0.79 in the internal and 0.81 in the external validation data set. Survival functions for individual patients were easily obtained with an open access web app. An ML approach can be fruitfully applied to outcome data obtained with SE. Survival showed a constantly increasing relationship with a CFVR < 3.0 and stress-rest wall motion score index > Since processing is largely automated, this approach can be easily scaled to larger and more comprehensive data sets to further refine stratification, guide therapy and be ultimately adopted as an open-source online decision tool.