Calculation of Heartbeat Rate and SpO2 Parameters Using a Smartphone Camera: Analysis and Testing

Sensors (Basel). 2023 Jan 9;23(2):737. doi: 10.3390/s23020737.

Abstract

Mathematical and signal-processing methods were used to obtain reliable measurements of the heartbeat pulse rate and information on oxygen concentration in the blood using short video recordings of the index finger attached to a smartphone built-in camera. Various types of smartphones were used with different operating systems (e.g., iOS, Android) and capabilities. A range of processing algorithms were applied to the red-green-blue (RGB) component signals, including mean intensity calculation, moving average smoothing, and quadratic filtering based on the Savitzky-Golay filter. Two approaches-gradient and local maximum methods-were used to determine the pulse rate, which provided similar results. A fast Fourier transform was applied to the signal to correlate the signal's frequency components with the pulse rate. We resolved the signal into its DC and AC components to calculate the ratio-of-ratios of the AC and DC components of the red and green signals, a method which is often used to estimate the oxygen concentration in blood. A series of measurements were performed on healthy human subjects, producing reliable data that compared favorably to benchmark data obtained by commercial and medically approved oximeters. Furthermore, the effect of the video recording duration on the accuracy of the results was investigated.

Keywords: blood oxygen concentration; heartbeat rate; smartphone sensing.

MeSH terms

  • Heart Rate
  • Humans
  • Oximetry / methods
  • Oxygen
  • Signal Processing, Computer-Assisted*
  • Smartphone*

Substances

  • Oxygen