Fig. 8 shows the ECG signal used as reference input x2(n) and the H2(z) filter output signal y2(n) of the second stage of the cascade adaptive filter. In this case, the filter H2(z) adapts the amplitude and phase of the ECG to attenuate the ECG artifacts.