Caique Lima M.Eng.

How to obtain pulse rate from photoplethysmographic (PPG) signal?

Have you ever wondered how your smartwatch measures your pulse rate? With some basic knowledge of electronics and physiology we can understand how this is done.

In this post, we will learn how to get heart rate (HR) using photoplethysmographic (PPG) signal. Additional information on how PPG signals work can be found in my other post Pulse oximeters: wizardry or science?

There are different ways to get pulse rate. We can use derivatives or the Fourier transform of a PPG signal to estimate how many times the heart beats per minute. Herein, I will describe two methods for this: HR PPG differentials and HR spectral analysis.


HR PPG differentials method

In this method, our knowledge of Calculus can be applied, especially the use of derivatives. We will use the absolute derivative of PPG signal to identify pulse peaks and estimate HR, it determines the number of times the heart beats. These peaks are generated in the systolic phase and the interval at which they occur determines the duration of a cardiac cycle. In the figure below, it is possible to observe that the x-markers in the absolute derivative of the PPG signal determine the beginning of the cardiac cycle.

The number of pulse peaks that occur in a 60-second period determines the HR in bpm. In the example illustrated above, the HR can be obtained as follows:

where Tpi is the time at which the pulse peak occur of the i-th sample and n is the number of pulse peaks counted in a given window. In this example, HR measurements were estimated in a 6-second window, i.e., at each 6-second section a new measurement was computed from the samples corresponding to that section.


HR spectral analysis method

We can easily obtain the HR using the Fourier transform. For this, we calculate the DFT of the PPG signal as shown in the figure below. Normally, the spectrum of the PPG signal shows a high-amplitude peak located at the cardiac frequency. The x-marker on the graph is used to obtain cardiac frequency and then HR.