Three key genes-BCAT2, CASP8, and EPHX2-were screened through machine learning algorithms, and the constructed T2DM diagnostic models all exhibited area under the curve (AUC) values greater than 0.7, indicating satisfactory discriminative performance. The gene discussed is EPHX2; the disease is type 2 diabetes mellitus.