PPG Extraction And Heart Rate Calculation

1219 Words3 Pages

Chapter 2
PPG Extraction and Heart Rate Calculation
The block diagram of Camera-based PPG briefs the set-up of the system.

Hardware used
Camera:
Camera is the main focus of the project. AVT Stingray F-046B cameras are used with different filters. AVT Stingray F-046B is a progressive scan CCD, monochrome camera. It is an IEEE 1394b standard camera with 780x580 resolutions. The frame rate is up to 61 fps.
Optical monochrome filters:
Optical monochrome filters are used to filter out all the wavelengths except desired one. Since we are interested in Green, Red and Near Infrared wavelengths the following filters are used.
• Green (559 nm)
• Red (675 nm)
• Near Infrared (842nm)
NI DAQ:
National Instrumentation Data Acquisition system is used to drive Cameras. NI DAQ controls cameras via fire wire. And it mediates between the Software used in the computer to process the video and extract PPG and calculate heart rate.

Philips pulse oximetry
Philips pulse oximetry probe and device is used for a reference heart rate.

Software used
National Instruments LabVIEW is used for the purpose. LabVIEW stands for Laboratory Virtual Instrument Engineering Workbench. LabVIEW supports Data Acquisition, Instrument control, Signal processing etc. LabVIEW files are saved in .vi extension where vi stands for virtual instrument.

The Algorithm
For the moment, the PPG extraction and heart rate calculation is done using the pre-recorded videos. That is offline processing.
The pre-recorded video of the subject (measurement data) is saved NI - TDMS file format. TDMS - Technical Data Management Streaming is a file format from National Instruments to save well- documented measurement data. Data from TDMS are read frame by frame in Read Frame VI. The TDM...

... middle of paper ...

...ves error Median.vi
Input Output
X (array of data) Median error Step vii: calculate average AC value
Average AC value is calculated just by adding the median values of peak and valley median amplitudes.
Step viii: Calculate heart rate
Heart rate, the main focus of the work:
The time taken by the total number of PPG cycles (frequency) multiplied by 60;
The number of cycles = no. of peaks – 1;
Time = (location of last peak – location of the first peak) / frame rate;
So HR = total number of cycles / time * 60;

Step ix: Calculate mNP mNP = AC / DC *1000;
Step x: Display PPG, Heart rate and mNP
The process block or the Filter.vi outputs PPG signal, HR and mNP
Filter SubVI.vi
Input Output
Array in(signal)
Filter type
Sampling rate
High cut off frequency
Low cut off frequency
Order
Truncation length
Window size
Heart rate
Ac value
DC value mNP PPG

Open Document