We identified 12 differentially expressed m6A genes (WTAP, ZC3H13, RBM15B, YTHDC1, YTHDF1, YTHDF3, HNRNPC, FMR1, LRPPRC, IGFBP1, ELAVL1, and FTO) between MI patients and healthy controls and used them to establish a disease diagnosis model of MI using the random forest method, and we validated the feasibility of this model. Here, WTAP is linked to myocardial infarction.