In this study, we aimed to analyze whether the genetic variants in the ATM, SLC22A1, SLC47A1, and SLC2A2 genes influenced the glycemic response to metformin in a cohort of patients with T2DM in Russia and, furthermore, to reveal the integrated contribution of the genetic factors and phenotypic features to therapeutic response, using the machine learning approach. Here, ATM is linked to type 2 diabetes mellitus.