The primary goal of this study is to look into the probable function of BDNF in diabetes-related cognitive impairment in both prediabetes and diabetes using mediator analysis. The gene discussed is BDNF; the disease is Cognitive impairment.