Electrophysiology or EP is a test performed to assess the activity in the heart such as abnormal heartbeats or arrhythmia. Catheters and wire electrodes are inserted through blood vessels in the heart to measure the electrical activity. These specialized studies of the heart help physicians determine whether you need a pacemaker, medicine, cardiac ablation or surgery.