Tossing and interpolation are common strategies for removing artifacts in a signal. During tossing data is discontinued so this might not be expected in many medical seniors such as in ours for HRV feature analysis.
In that case, interpolation could be a better choice.
However, it is also challenging to interpolate IBI signal because changes in IBI occurs so frequently in a small range.
So we need to be careful whether any part of signal that does not have artifact is changed during interpolation which might affect the HRV feature analysis.
The proposed algorithm here is performed mainly in two
stages: first it detects artifacts from the signal and then interpolates the data points with artifacts.