BDNF and Headache: By increasing the pain threshold and improving cortical inhibitory function, exercise contributes to a reduction in the frequency and intensity of headache episodes, as it regulates brain-derived neurotrophic factor (BDNF).