Skip to content
BY-NC-ND 4.0 license Open Access Published by De Gruyter September 30, 2016

Efficient design of FIR filter based low-pass differentiators for biomedical signal processing

  • Michael Wulf EMAIL logo , Gerhard Staude , Andreas Knopp and Thomas Felderhoff

Abstract

This paper describes an alternative design of linear phase low-pass differentiators with a finite impulse response (type III FIR filter). To reduce the number of necessary filter coefficients, the differentiator’s transfer function is approximated by a Fourier series of a triangle function. Thereby the filter’s transition steepness towards the stopband is intentionally reduced. It can be shown that the proposed design of low-pass differentiators yields to similar results as other published design recommendations, while the filter order can be significantly reduced.

1 Introduction

When processing different types of biomedical signals one is often interested in extracting information about rapid transient characteristics in the signal like local extrema or inflection points. For example common methods for the determination of foot points in arterial pulse waves are based on calculating the first and second derivatives [1]. If the signal is disturbed by broadband noise or short time interferences classical numerical differentiators for calculating first or higher order derivatives are difficult to use because all differentiators have an inherent high-pass characteristic and amplify higher frequency components in the signal.The frequency response of an ideal n-th order continuous-time differentiator is given by

(1)HD,n(jω)=(jω)n.

As it can be seen in (1), an ideal first order differentiator has a pure imaginary transfer function with a linear slope. To compensate the high-pass characteristics, a low-pass filter can be used to suppress the amplification of high frequency disturbances in the signal. This combination yields to a low-pass differentiator. The frequency response of an ideal first order low-pass differentiator is given by (2), where Ωc denotes the cut-off frequency of the low-pass filter. Figure 1 illustrates the frequency responses of an ideal differentiator and an ideal low-pass differentiator.

Figure 1 Amplitude responses of an ideal differentiator and an ideal low-pass differentiator (both first order).
Figure 1

Amplitude responses of an ideal differentiator and an ideal low-pass differentiator (both first order).

(2)HLPD(jω)={jωif |ω|Ωc0otherwise

Under the constraints of linear and time-invariant system behavior, low-pass differentiators can be implemented either as a cascade of a low-pass filter and a differentiator [2], [3] or as a combination in one filter [4], [5]. The proposed design in this paper leads to a single linear phase FIR filter. Its characteristics are compared to the design of maximally flat low-pass differentiators by Selesnick [5].

2 Methods

To avoid filters with higher orders because of the sharp transition between pass- and stopband, the proposed design approximates the transfer function by a Fourier series expansion of a triangle function. Thereby the reduced transition steepness towards the stopband is chosen on purpose as a tradeoff for the smaller filter order required. Let T denote the sampling interval of a discrete-time system, the angular sampling frequency is given by

(3)Ω=2πT.

The ideal approximation of the proposed filter as a discrete-time system can be formulated piecewise as follows:

(4)HΔ(jω)={0Ω2<ω<2Ωcj(ω+2Ωc)2Ωcω<ΩcjωΩcω<Ωcj(ω2Ωc)Ωcω2Ωc02Ωc<ω<Ω2Ω-periodicotherwise

Figure 2 illustrates the ideal approximation of an Ω-periodic triangle function. Because of the periodicity in Ω, the triangle function defined in (4) can be approximated by a Fourier series with

(5)HΔ(jω)=HΔ(jω+jΩ)=n=hnejnωT.
Figure 2 Ideal approximation of an Ω-periodic triangle function as a transfer function of a discrete-time, first order low-pass differentiator.
Figure 2

Ideal approximation of an Ω-periodic triangle function as a transfer function of a discrete-time, first order low-pass differentiator.

The calculation of the Fourier coefficients hn is given by

(6)hn=1ΩΩ/2Ω/2HΔ(jω)ejnωTdω.

Inserting the piecewise definition from (4) into (6) yields to the final definition of the coefficients for the Fourier series as an approximation of the triangle function.

(7)hn={0if n=02πTn2sin(nΩcT)[1cos(nΩcT)]if n0

From (7) follows that the Fourier coefficients converge by 1/n2 to zero. Taking into account that the cut-off frequency Ωc must be in the range of 0<ΩcΩ/4, a factor γ can be defined.

(8)0<ΩcΩ4Ωc=γΩ4 with 0<γ1

Using γ in (7) and considering the definition of Ω from (3) yields to a definition of the Fourier coefficients, where the arguments of the trigonometric functions become independent of the sampling interval:

(9)hn={0if n=02πTn2sin(γnπ2)[1cos(γnπ2)]if n0

From (7) and (9) it can be seen that the coefficients have an odd symmetry (hn=hn). To realize a filter with an finite impulse response (FIR filter), the Fourier series has to be truncated after a finite number of elements. Considering the symmetry, the series can be truncated after 2L + 1 elements for LnL. This results in an approximation by

(10)H^Δ(jω)=n=LLhnejnωT.

Figure 3 illustrates the Fourier series based approximation of the triangle function from Figure 2 with γ=2/3 and 9 coefficients. Due to the truncation of the Fourier series expansion, ripples in the pass- and stopband of the proposed filter’s transfer function are present. The amplitude of these ripples decreases with increasing number of coefficients. To finish the filter design process the complex exponentials in (10) have to be substituted by z=ejωT. Furthermore, the resulting impulse response has to be shifted by L sampling intervals to realize a causal system. This leads to the z-transform of the system

(11)H~Δ(z)=n=0N=2Lh~nznwith z=ejωT.
Figure 3 Approximation of the triangle function from Figure 2 by a Fourier series with 9 coefficients.
Figure 3

Approximation of the triangle function from Figure 2 by a Fourier series with 9 coefficients.

The filter coefficients h~n can directly be computed via the Fourier coefficients by

h~n=hnL   with n=0..N and N=2L.

3 Results

The proposed design of triangle approximated low-pass differentiators (Δ-LPD) creates type III FIR filters (even filter order, odd symmetry). This implies that the frequency response has a bandpass characteristic with linear phase and a constant group delay of N/2 samples. Figure 4A shows the amplitude responses of six implementations of the proposed design with identical filter order (N=14) but varying cut-off frequencies. The truncation of the Fourier series yields to obvious ripples in the shape of the amplitude responses. These ripples lead to regions where the slope in the each filter’s passband is larger than one. Compared to the ideal differentiator this means an amplification of the corresponding frequency components. To avoid these amplifications, the coefficients have to be scaled to the maximum slope of the amplitude response as shown in Figure 4B.

Figure 4 (A) Amplitude responses of the proposed filter design (varying cut-off frequencies, identical filter order); (B) same amplitude responses scaled to the maximum slope in the passband.
Figure 4

(A) Amplitude responses of the proposed filter design (varying cut-off frequencies, identical filter order); (B) same amplitude responses scaled to the maximum slope in the passband.

Compared to the well published design of maximally-flat low-pass differentiators by Selesnick [5], the filter order can significantly be reduced even if a similar bandwidth of the filter has to be realized. Figure 5 illustrates a comparison between the proposed design and two implementations of Selesnick’s design. It can be seen that in this case the filter order can be reduced by approximately 36% while bandwidths and cut-off frequencies are similar.

Figure 5 Amplitude response of the proposed filter design compared to the maximally-flat design by Selesnick [5].
Figure 5

Amplitude response of the proposed filter design compared to the maximally-flat design by Selesnick [5].

To verify that the proposed design provides an efficient way to calculate the derivative of a signal, Figure 6 illustrates the exemplary usage for processing pulse pressure signals. Figure 6A shows a synthesized waveform of an arterial blood pressure signal. A single blood pressure wave is generated by superimposing three Gaussian functions as shown in (13). The parameters are obtained by minimizing the least squared errors to a real waveform from a clinical dataset of a healthy person (sampling frequency fs = 128 Hz). The single pressure wave is repeated several times while the transition between two adjacent waves is smoothed by a spline interpolation over six samples.

Figure 6 (A) Synthesized waveform of an arterial blood pressure signal; (B) exact mathematical derivative; (C) comparison between exact derivative (blue) and result of Δ-LPD (orange, N=14, γ=0.289$\gamma=0.289$); (D) comparison between exact derivative (blue) and result of Selesnick-LPD (green, N = 22, K = 21).
Figure 6

(A) Synthesized waveform of an arterial blood pressure signal; (B) exact mathematical derivative; (C) comparison between exact derivative (blue) and result of Δ-LPD (orange, N=14, γ=0.289); (D) comparison between exact derivative (blue) and result of Selesnick-LPD (green, N = 22, K = 21).

(12)x(t)=a0+m=13amebm(tcm)2
(13)dx(t)dt=x˙(t)=m=132ambm(tcm)ebm(tcm)2

The exact mathematical derivative of the signal is given by (14) and also shown in Figure 6B. Figure 6C illustrates a comparison between this derivative and the output of an implementation of the proposed filter design. The filter order was chosen to N = 14 and the cut-off frequency was Ωc=0.2894Ω. The results of filtering the same signal by an implementation of Selesnick’s design is illustrated in Figure 6D where the filter order was set to N = 22. The shapes of both filtering results are quite similar, as it can be seen by the zero crossings in Figure 6C and D. The sum of squared errors of the proposed design is about 7.1% larger than for the Selesnick design which can be attributed to the slightly smaller cut-off frequency and bandwidth as well as the greater attenuation of the Δ-LPD filter. As a consequence the deviation of the ideal differentiator’s amplitude response begins at smaller frequencies compared to Selesnick’s design. Furthermore the minor ripples in the passband lead to somewhat greater deviation in the waveform of the filter’s output.

The results of using the same two filters to detect extreme values and inflection points in noise disturbed signals are shown in Table 2. Almost all present extreme values in the signal are robustly found by both filters. The advantage of the proposed design is the reduction of falsely detected additional extreme and inflection points (~9.5% and 14.2% at 40 dB AWGN) compared to the Selesnick design (~13.5% and 18.4% at 40 dB AWGN) with increasing noise.

Table 1

Parameters for the synthesized blood pressure signal.

mam (mmHg)bm (s−2)cm (s)
076.25
133.64351.960.0851
221.0475.2050.1783
314.7858.5690.4196
Table 2

Detection of extreme values and inflection points in the synthesized waveform with different levels of additive noise (AWGN).

Characteristic40 dB AWGN60 dB AWGN80 dB AWGN
Δ-LPDSel.-LPDΔ-LPDSel.-LPDΔ-LPDSel.-LPD
Maxima
 Detection rate1.0001.0001.0001.0001.0001.000
 False detection rate0.0950.1350000
 Mean deviation [samples]–0.623–0.648–0.499–0.499–0.5–0.5
Minima
 Detection rate0.9990.9991111
 False detection rate0.0960.1360000
 Mean deviation [samples]–1.309–1.274–1.111–1.242–1–1
I.-points
 Detection rate0.8730.8870.9160.95111
 False detection rate0.1420.1840000
 Mean deviation [samples]0.2160.2040.1520.170.0030.041

4 Conclusion

The proposed design for low-pass differentiators shows similar performance as published designs but considerably reduces the number of filter coefficients. Because of the triangle approximation, the coefficients converge by 1/n2 to zero and additional windowing of the coefficients as known in standard FIR filter designs is not necessary. Analysis of synthesized waveforms indicates that the slightly greater deviation from the ideal differentiator in the passband has no considerable impact on the reliability and accuracy of detected events. The reduced filter order allows for a memory-efficient implementation with small filter delay which makes the method particularly attractive for real-time operations in mobile applications.

Author’s Statement

Research funding: The author state no funding involved. Conflict of interest: Authors state no conflict of interest. Informed consent: Informed consent has been obtained from all individuals included in this study. Ethical approval: The research related to human use complieds with all the relevant national regulations, institutional policies and in accordance was performed in accordance with the tenets of the Helsinki Declaration, and has been approved by the authors’ institutional review board or equivalent committee.

References

[1] Kazanavicius E, Gircys R, Vrubliauskas A. Mathematical methods for determining the foot point of the arterial pulse wave and evaluation of proposed methods. Inform Technol Cont. 2005;34:29–36.Search in Google Scholar

[2] Pan J, Tompkins WJ. A real-time QRS detection algorithm. IEEE Trans Biomed Eng. 1985;32:230–6.10.1109/TBME.1985.325532Search in Google Scholar PubMed

[3] Al-Alaoui MA. Linear phase low-pass IIR digital differentiators. IEEE Trans Signal Proc. 2007;55:697–706.10.1109/TSP.2006.885741Search in Google Scholar

[4] Kumar B, Dutta Roy SC. Design of digital differentiators for low frequencies. Proc IEEE. 1988;76:287–9.10.1109/5.4408Search in Google Scholar

[5] Selesnick IW. Maximally flat low-pass digital differentiators. IEEE Trans Circuits Syst II Analog Digit Signal Proc. 2002;49:219–23.10.1109/TCSII.2002.1013869Search in Google Scholar

Published Online: 2016-9-30
Published in Print: 2016-9-1

©2016 Michael Wulf et al., licensee De Gruyter.

This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License.

Downloaded on 1.10.2023 from https://www.degruyter.com/document/doi/10.1515/cdbme-2016-0048/html
Scroll to top button