Background: Cardiovascular disease remains the leading cause of death worldwide. Existing risk scores often focus on primary cardiovascular event prediction among mostly North American and European populations with predictors derived from baseline before and up to index events. Methods: We aim to build machine learning algorithms to model recurrent cardiovascular events among Asian post-MI patients via a retrospective observational cohort study. The study uses multicentre, real-world electronic health records from the Singapore Cardiovascular Longitudinal Outcomes Database (SingCLOUD), integrating nationwide clinical, administrative, laboratory, procedural and medication data from five public hospitals and 18 public outpatient clinics. Data from 4,575 patients admitted between 2011 and 2014 with MI as a primary diagnosis were included in the analysis. Their major adverse cardiovascular events (MACE) risk was modelled using a static approach with baseline and index event information and a dynamic approach which incorporates additional post-discharge data including medication adherence. Results: The static model achieved an area under the receiver operator curve (AUROC) of 0.77 (95% CI [0.72–0.82]) when predicting 1-year MACE risk and 0.80 (95% CI [0.76–0.85]) predicting 2-year MACE risk on a hold-out dataset (n=515); the dynamic model achieved a mean AUROC of 0.75 (95% CI [0.72–0.78]) in estimating 1-year MACE risk from 3, 6, 9 and 12 months post-index. Conclusion: We developed a focused risk model for an Asian population, incorporating post-MI time-variable information via the causal approach. The causal framework enables differentiation of immediate risk components from long-term disease progression, including disease management. The model outperforms existing benchmark risk scores and can be applied to simulate personalised disease trajectory and to inform treatment options.