Cognitive impairment is anotable complication of type 2 diabetes (T2DM), accompanied by reduced brain-derived neurotrophic factor (BDNF) in the brain and blood. Anti-diabetic drugs reduce hyperglycemia, yet their effect on cognitive improvement is unknown. We aimed to investigate the effect of anti-diabetic drugs regulating BDNF in T2DM through computational and case-control study design. We obtained T2DMproteins viatext-mining to construct a T2DMprotein network. From the T2DMnetwork, the metformin and glimepiride interactomes and their crucial shortest-path-stimulating BDNF were identified. Using qRTPCR, the genes encoding the shortest-path proteins were assessed in four groups (untreated-T2DM, metformin-treated, glimepiride-treated, and healthy controls). Finally, ELISA was used to assess serum BDNF levels to validate drug efficacy. As a result of this investigation, aT2DMnetwork was constructed with 3683 text-mined proteins. Then, the T2DMnetwork was explored to generate a metformin and glimepiride interactome that establishes the critical shortest-path for BDNF stimulation. Metformin stimulates BDNF via APP binding to the PRKAB1 receptor. Whereas, glimepiride increases BDNF by binding to KCNJ11 via AP2M1 and ESR1 proteins. Both drug shortest-path encoding genes differed significantly between the groups. Unlike metformin, BDNF gene and protein expression rise significantly with glimepiride. Overall, glimepiride can effectively increase BDNF, which could benefit T2DM patients with cognitive deterioration.