An electroencephalogram (EEG) is a test that detects electrical activity in your brain using small, flat metal discs (electrodes) attached to your scalp. As for the Electromyography (EMG), it is a diagnostic procedure to assess the health of muscles and the nerve cells that control them (motor neurons).