Cerebral edema is defined as swelling of the brain or swelling that occurs in part or all of the brain as a result of excessive fluid buildup in tissue. Brain swelling can occur due to a brain injury, infection, or inflammatory illness. Many factors can induce brain swelling, including head trauma, stroke, cancer, and other illnesses. Cerebral edema can induce increased intracranial pressure.