EA attenuates cognitive impairment in stroke rats by regulating endogenous melatonin secretion through synthesizing the aralkylamine N-acetyltransferase gene in the pineal gland. This evidence concerns the gene AANAT and Stroke.