The electrocardiograph (ECG) is an instrument that records surface potentials associated with the electrical activity…