Some of the neural benefits that are found with fasting also occur with vigorous exercise. The neurochemical changes are similar: Both stimulate the production of brain-derived neurotrophic growth factors (BDNFs). Fasting stimulates the production of ketones, an energy source for neurons. Fasting can increase the number of mitochondria in neurons, which helps them produce more energy.