To explore the mechanisms by which lactate and semaglutide alleviate diabetes-induced cognitive impairment, this study treated HT22 cells under high-glucose (HG) conditions with the AMPK inhibitor Compound C and the PKA inhibitor H89. This evidence concerns the gene PRKAA1 and diabetes mellitus.