The electrodes detect the heartbeat, usually the R--R interval, for a series of beats.
Statistical data, such as mean, median, and standard deviation, are computed and then used to forecast the onset of a cardiac event.