An Electrocardiogram (ECG) is a way of recording the electrical activity of the heart. Numerous electrodes are attached around the body that can sense the tiny electrical changes as the body stimulates the heart to beat. These can then be used to help diagnose many cardiac problems.