Overworking, lack of sleep, stress, and spending too much time on the computer can all contribute to feeling mentally overwhelmed. Brain fog is thought to be produced by excessive levels of inflammation and hormonal changes that control somebody's mood, energy, and attention at the cellular level.