If your healthcare provider thinks you may have encephalitis, brain imaging is usually the first test done. Brain imaging can show swelling in the brain or another cause of your symptoms, such as a tumor. Imaging tests may include a CT scan or MRI.