The electrocardiogram, or ECG, is a test that records the electrical activity of the heart over time using skin electrodes. An ECG provides a non-invasive method for diagnosing cardiac diseases and abnormalities. Some key events in the history of electrocardiography include Alexander Muirhead obtaining the first record of a patient's heartbeat in 1872. In 1887, Augustus Waller published the first human electrocardiogram. Willem Einthoven introduced the term 'electrocardiogram' in 1893 and distinguished the five deflections labeled P, Q, R, S and T waves in 1895. Einthoven published the first electrocardiogram recorded on a string galvanometer in 1902