Abstract Background Masked uncontrolled hypertension (MUCH) is defined as normal office blood pressure (BP) but elevated out-of-office BP in patients on antihypertensive treatment. MUCH is associated with similar cardiovascular risk as sustained hypertension and is clinically challenging since this often remains undetected without out-of-office BP measurements. Purpose To study the prevalence of MUCH following an acute coronary syndrome and to utilise machine learning methods to develop prediction models for identifying MUCH. Methods Ambulatory 24-h BP measurement (ABPM) was performed in 100 patients attending the cardiology outpatient clinic at a Swedish university hospital following an acute coronary syndrome, as part of a study which screened for co-morbidities. From the SWEDEHEART registry, 106 variables during the hospital care period and subsequent follow-up visit (after 6-10 weeks) were pre-processed including filtering on 5 or more missing values and zero or near-zero variance. Variable importance for the prediction of MUCH (office BP < 140/90 mm Hg at ABPM start but mean 24-h BP ≥ 130/80 mm Hg) was assessed using the Boruta and least absolute shrinkage and selection operator (LASSO) machine learning algorithms. Subsequently, logistic regression, LASSO and random forest models using different variable subsets were evaluated by receiver operating characteristic area under the curve (AUC) in repeated cross-validation. Results Age was 62.0±8.4 years, 74% male, 54% had NSTEMI and 46% STEMI. The follow-up visit and ABPM were performed at median 7 and 11 weeks, respectively, after hospital discharge. Among 90 patients with complete data and ABPM recordings, 31 had mean 24-h BP above target levels, of which 18 were identified with MUCH. Patients with MUCH had lower eGFR (68±11 vs 76±12 ml/min/1.73m², P=0.009), and more often a history of hypertension (89 vs 53%, P=0.005) and diabetes mellitus (44 vs 11%, P=0.003). In total, 65 variables where eligible for machine learning after filtering. Boruta and LASSO identified pulse pressure at the follow-up visit, serum creatinine, diabetes mellitus and history of hypertension as important predictors. Random forest, logistic regression and LASSO showed mean AUC 0.826, 0.822, and 822, respectively, in cross validation using these predictors. Conclusions In this small trial, one in five had MUCH at follow-up after an acute coronary syndrome, which highlights the importance of out-of-office BP measurements. The easily accessible measures of pulse pressure at the follow-up visit, serum creatinine, diabetes mellitus and history of hypertension were identified as important predictors of MUCH. A simple prediction model may be used as a clinical decision support tool after appropriate external validation.