The random forest (RF) model was applied to the screening, and seven m6A regulators (HNRNPC, WATP, RBM15, YTHDC1, YTHDC2, CBLL1, and RBMX) were selected as the candidate genes for predicting the risk of epilepsy. Here, HNRNPC is linked to epilepsy.