An electromyogram (EMG) is a test that is used to record the electrical activity of muscles. When muscles are active, they produce an electrical current. This current is usually proportional to the level of the muscle activity.n electromyogram (EMG) is a test that is used to record the electrical activity of muscles. When muscles are active, they produce an electrical current. This current is usually proportional to the level of the muscle activity.