Electromyography (EMG) is a diagnostic procedure that assesses the health of muscles and the nerve cells that control them by measuring the electrical activity produced by skeletal muscles. It is commonly used to diagnose conditions affecting muscle tissue or nerves, such as muscular dystrophy, carpal tunnel syndrome, and amyotrophic lateral sclerosis (ALS).