In electromyography, the doctor measures the electrical activity generated by the muscles and nerves. Changes in electrical activity could suggest a muscle disease.