The six key DIRGs (PTGER2, LGR6, IL17B, IL13RA1, CCL4, and ADM) were identified by the intersection of the minimal root mean square error (RMSE) of four machine learning algorithms, which were screened out to establish the nomogram model to predict the incidence of MI by using the rms package. The gene discussed is ADM; the disease is myocardial infarction.