A number of medical conditions have confusion or “brain fog” as a symptom or side effect, including migraines. Acute confusional migraines, known as ACMs, are still in the early stage of medical research, and only a small number of cases can be found for study purposes. These typically affect children and teenagers, but you don’t have to have an actual ACM to experience confusion.