Our study constructed a risk prediction nomogram for DCM and MI based on the 4-DE-FRG (ACSL1, ALDH2, CYP27A1 and PPARA), showing good performance in external validation (AUC = 0.737). Here, CYP27A1 is linked to familial dilated cardiomyopathy.