In this analysis, six feature genes - MSANTD1, RASL10A, SOX4, YTHDF3, ZNF497, and ZNF771 emerged as potential biomarkers for T2DM, identified through three machine learning algorithms: LASSO logistic regression, SVM-RFE, and RF algorithms. Here, ZNF771 is linked to type 2 diabetes mellitus.