A combination of the patient's medical history, physical examination, and diagnostic procedures, such as imaging examinations (MRI, CT scan), electroencephalogram (EEG), electromyography (EMG), or lumbar puncture (spinal tap), are used to identify neurological illnesses.