Electromyography is the process of measuring the electrical activity of muscles when they are in use.