How to extract wandering baseline

6 views (last 30 days)
Nicole
Nicole on 25 Jul 2022
Answered: Star Strider on 25 Jul 2022
Hello! I have a PPG signal and I am looking to highlight/extract the baseline wander to examine. If anyone has any suggestions or guidance as to how to go about that, it would be greatly appreciated!

Answers (1)

Star Strider
Star Strider on 25 Jul 2022
There are several options, however the one I usually use is first to calculate the Fourier transform of the signal using the fft function (to get an idea of the spectral content of the signal) and then using either the bandpass or highpass functions (depending on whether there is high-frequency noise to be rejected) to design the filter and do the actual filtering. Use 'ImpulseResponse','iir' for best results with those functions.
Another option is the detrend function. This may be preferable if the baseline drift is easy to model with a polynomial function. If this does not provide the desired result, then first use the islocalmin function to detect the minima of the signal, and then detrend the result of that operation (indexing into the signal using the logical vector resulting from the islocalmin call).
.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!