Cognitive impairment, also called brain fog or cog-fog, can negatively affect a person's ability to multitask, pay attention, understand conversations, or recall memories. Although brain fog has been observed to affect more than half of people with MS, it can happen to anyone. It can be caused by a lack of sleep, high stress, and poor diet.