A doctor may use a magnetoencephalogram, or MEG. The purpose of this test is similar to an EEG, except that it measures magnetic signals in the brain instead of electrical signals. Because of this difference, it does not require electrodes and can detect signals from deeper areas of your brain than the EEG can.