Electromyography (EMG) is a diagnostic procedure used to assess the health of muscles and the nerve cells that control them (motor neurons). It involves recording the electrical activity produced by muscles in response to stimulation. In gynecology, EMG can be particularly useful for evaluating pelvic floor dysfunction and other related conditions.