An electrophysiologist, or EP, is a doctor who specializes in abnormal heartbeats and the heart's electrical impulses by diagnosing the source of arrhythmias (irregular heartbeats) and suggesting appropriate treatment.