logo

New methods to remove baseline drift in trapezoidal pulse shaping

NUCLEAR ELECTRONICS AND INSTRUMENTATION

New methods to remove baseline drift in trapezoidal pulse shaping

HONG Xu
MA Ying-Jie
ZHOU Jian-Bin
CHEN Tie-Guang
HU Yun-Chuan
WAN Xin-Feng
DU Xin
Nuclear Science and TechniquesVol.26, No.5Article number 050402Published in print 20 Oct 2015Available online 20 Oct 2015
49702

Trapezoidal pulse shaping algorithm is widely applied to improve signal-to-noise ratio (SNR), throughput and energy resolution with the properties of noise suppression, pile-up pulse separation and ballistic deficit correction. The algorithm can be acquired by z transform method which is easier for derivation. However, the baseline drift of trapezoidal pulse appears because the noise superimposes on the input signal. In this paper, two new methods based on convergence analysis and noise suppression are proposed to remove the baseline drift resulting from trapezoidal pulse shaping. Simulations and experimental tests are carried out to verify the methods. The results demonstrate that the proposed methods can remove baseline drift in trapezoidal pulse shaping.

Baseline drift removalTrapezoidal pulse shapingztransform method

I. INTRODUCTION

Digital pulse shaping algorithm is a main contents of digital spectrometer. They are injected to realize pulse shaping in field programmable gate array (FPGA). Trapezoidal pulse, with its rise time being equal to the fall time, provides a near optimum signal-to-noise ratio (SNR). The flat top of trapezoidal pulse can be flexibly set to adapt different measurement conditions. Therefore, trapezoidal pulse shaping algorithm is widely applied to improve SNR, throughout and energy resolution.

The theory of trapezoidal pulse shaping has been well developed and published. Radeka designed a trapezoidal filter based on a gated filter system, which achieved good resolution with large germanium detectors at high counting rates and higher energies [1]. Jordanov et al. developed the recursive algorithm of trapezoidal pulse shaping by using a convolution method [2, 3]. The algorithm based on convolution method made trapezoidal pulse shaping possible by digital means. Stein et al. used moving window deconvolution technique to realize trapezoidal and triangular shaping in digital signal processor (DSP) [4]. In addition, a real time digital pulse shaper, which was synthesized by a concave and a convex pulse shapes, was also implemented in programmable logic [5]. Also, z transform method was described to obtain the recursive algorithm of trapezoidal pulse shaping by Cosimo Imperiale [6]. Some simulations of the algorithm based on z transform method were discussed [7-10]. Recently, Trapezoidal shaper was employed in digital spectrometer for ballistic deficit correction, neutron-gamma discrimination and pile up correction [11, 12]. Furthermore, typical shapers, including triangular, trapezoidal and cusp-like ones, were generated in a new adaptive digital shaper which enabled automatic adjustment of coefficients for shaping an input signal [13]. However, when the input signal is associated with noise, the baseline drift of trapezoidal pulse appears. It is especially obvious in the process of consecutive pulses. In this paper, we propose two methods to remove the baseline drift. The feasibility and accuracy of the methods are verified by simulations and experiments. The results show that the methods can remove the baseline drift in trapezoidal pulse shaping.

II. TRAPEZOIDAL PULSE SHAPING

The trapezoidal pulse shaping algorithm was raised by z transform method [6]. As shown in Fig. 1, a trapezoidal pulse can be directly synthesized by Eq. (1):

Fig. 1.
Synthesis of trapezoidal pulse.
pic
vo=i=14vi(t), (1)

where, v1(t)=(Vmax/tatu(t), v2(t)=-v1(t-ta)u(t-ta), v3(t)=-v1(t-tb)u(t-tb), and v4(t)=v1(t-tc)u(t-tc); ta is the rise time of trapezoidal pulse, tb-ta is the duration of flat top, tc is the total width of pulse, and Vmax is the height.

Equation (1) can be described as Eq. (2) according to z transform

Vo(z)=Vmaxz(1znaznb+znc)na(1z1)2, (2)

where, na=ta/Ts, nb=tb/Ts, nc=tc/Ts, and Ts is the sampling time of ADC. The input signal is defined as

vi(t)=Aet/τu(t)t0, (3)

where A is the height and τ is the time constant. The function of the input signal in z transform notation is

Vi(z)=A11dz1, (4)

where d=eTs/τ. The transfer function of Fig. 1 can be represented as

H(z)=Vo(z)Vi(z)=(1dz1)(1zna)(1znb)z1na(1z1)2, (5)

then

Vo(z)(1z1)2=Vi(z)(1dz1)(1zna)(1znb)z1na. (6)

Applying inverse z transform, we have the time domain output of vo:

{vo[n]=2vo[n1]vo[n2]+{vi[n1]vi[nna1]vi[nnb1]+vi[nnc1]d[vi[n2]vi[nna2]vi[nnb2]+vi[nnc2]]}1navo[n]=vi[n]=0n0. (7)

The trapezoidal pulse shaping is implemented by Eq. (7). It is suitable for processing ideal input signal without noise. Generally, the input signal is superimposed by Gaussian white noise. An input signal with SNR=30 dB is simulated by Eq. (3) with A=2000 and τ=100. The result of trapezoidal pulse shaping with na=150, nb=300, nc=450, Ts=1 is shown in Fig. 2. The baseline drift of trapezoidal pulse appears when the input signal is associated with Gaussian white noise. The simulations results indicate that the lower SNR, the more serious baseline drift will be.

Fig. 2.
(Color online) Trapezoidal pulse shaping with baseline drift.
pic

III. SIMULATIONS AND EXPERIMENTAL TESTS

A. Convergence conditions

Figure 2 shows that the algorithm based on z transform method is not convergent. To remove the baseline drift, a new method based on convergence analysis is used. Letting y[n]=vo[n] and x[n]=vi[n], Eq. (7) can be written as

y[n]=2y[n1]y[n2]+X[n], (8)

where

X[n]=1na{x[n1]x[nna1]x[nnb1]+x[nnc1]d[x[n2]x[nna2]x[nnb2]+x[nnc2]]}.

The recursive equations of Eq. (8) are as follows:

y[n]y[n1]=y[n1]y[n2]+X[n]y[n1]y[n2]=y[n2]y[n3]+X[n1]y[n2]y[n3]=y[n3]y[n4]+X[n2]y[3]y[2]=y[2]y[1]+X[3]y[2]y[1]=y[1]y[0]+X[2].

An equation only about y[n], y[n-1], y[1], y[0] and X[n] is acquired by accumulating the equations above

y[n]y[n1]=y[1]y[0]+i=2nX[i].

The general formula of y[n] is

y[n]y[1]=(n1)(y[1]y[0])+X[2]+i=23X[i]++i=2n1X[i]+i=2nX[i]. (9)

Assuming that y[0]=y[1]=0, one can simplify Eq. (9) into Eq. (10):

y[n]=X[2]+i=23X[i]++i=2n1+i=2nX[i]. (10)

vi[n] is an equal ratio progression, with an equal ratio of q=e-1/τ. It can be proved that X[n] is also an equal ratio progression and the equal ratio is q. Equation (10) is expressed as

y[n]=X[2]+X[2](1q2)1q++X[2](1qn2)1q+X[2](1qn1)1q. (11)

Let y[n]=X[2]+Y, where

Y=C(1q2)++C(1qn2)+C(1qn1),

where C= X[2]/(1-q), and then

Y=C[n2q2(1qn2)/(1q)]. (12)

q<1 as τ > 1. So, y[n] can be convergent when Y=0. It can be seen from Eqs. (8) and (12) that Y can be set to 0 by setting x[1] to 0. Figure 3 illustrates the result of trapezoidal pulse shaping with vi[1]=0, with the same input signal as Fig. 2. Output 1 is used as a contrast. Output 2 is the trapezoidal pulse with the first input data being 0. Therefore, the new method can remove the baseline drift resulting from trapezoidal pulse shaping.

Fig. 3.
(Color online) Baseline drift removal based on the new method.
pic
B. Noise suppression

The baseline drift of trapezoidal pulse is caused by noise accumulation. Filtering the original signal before shaping is another way of removing the baseline drift. Digital S-K filter performs well in signal processing with amplitude filtering and frequency filtering factors [14]. The true height of filtered signal can be obtained by adjusting amplitude of the filtering factor properly. The algorithm of digital S-K filter is written as

{y[n]=(k(3a)+2k2)y[n1]k2y[n2]+ax[n]1+k(3a)+k2y[n]=x[n]=0n0, (13)

where x[n] is the discrete input signal, y[n] is the output signal, k is the frequency filtering factor and a is the amplitude filtering factor. The original signal in Fig. 2 is filtered by the digital S-K filter, and output of the filter is processed by calling Eq. (7) recursively. The baseline drift of trapezoidal pulse is removed with k=5, a=1.15, as shown in Fig. 4.

Fig. 4.
(Color online) Digital S-K filter in trapezoidal pulse shaping.
pic

Differential operation can also attenuate the noise. Equation (6) can be rewritten as

Vo(z)=Vi(z)(1dz1)(1zna)(1znb)z1na(1z1)2. (14)

Assuming V(z) = Vi(z)/(1-1/z)2, an improved recursive algorithm of trapezoidal pulse shaping is obtained:

{v[n]=2v[n1]v[n2]+vi[n]vo[n]=1na{v[n1]v[nna1]v[nnb1]+v[nnc1]d(v[n2]v[nna2]v[nnb2]+v[nnc2])}vo[n]=v[n]=0n0. (15)

Equation (15) is the improved recursive algorithm of trapezoidal pulse shaping without baseline drift [10]. Trapezoidal pulse can be implemented by calling Eq. (15). Figure 5 shows that the improved algorithm can remove the baseline drift in Fig. 2.

Fig. 5.
(Color online) Trapezoidal pulse shaping based on the improved recursive algorithm.
pic
C. Measured pulses shaping

In order to verify feasibility of the methods, pulses tests were carried out. The time constant of pulses is 3.2 μs, detected by silicon drift diode (SDD) detector and digitized by ADC at 20 MSPS, with Ts=50 ns and τ=3.2 μs according to Eq. (7). A trapezoidal pulse with ta=4 μs, tb=4 μs and tc=8 μs corresponding to na=80, nb=80 and nc=160 is implemented by Eqs. (7) and (15). The experimental tests of different methods are given in Fig. 6.

Fig. 6.
(Color online) Pulses shaping with (a) the first input data being 0, (b).digital S-K filter processing and (c) the improved recursive algorithm.
pic

The results indicate that both the new method and the improved recursive algorithm can remove the baseline drift in trapezoidal pulse shaping. For the purpose of signal filtering, digital S-K filter can also be used in trapezoidal pulse shaping to remove baseline drift. However, it is complex to realize digital S-K filter in FPGA. Besides, it is also difficult to select the values of k and a. Therefore, the new method and the improved recursive algorithm are recommended in practical applications. The correlation between the new method and the improved recursive algorithm is shown in Fig. 7. It indicates that the improved method is suitable for trapezoidal pulse shaping without baseline drift.

Fig. 7.
(Color online) Correlation between the new method and the improved recursive algorithm.
pic

IV. CONCLUSION

In this paper, the recursive algorithm of trapezoidal pulse shaping is derived by z transform method and the approaches to baseline drift removal are discussed. Setting the first input data to 0 and digital S-K filter are used to remove the baseline drift due to the accumulation of noise. The results of experimental tests demonstrate that the methods can remove the baseline drift existing in trapezoidal pulse shaping. A comparison between the new method and the improved recursive algorithm is also carried out. It shows that the new method has a good linear relationship with the improved recursive algorithm. The new method is recommended for real time trapezoidal pulse shaping.

References
[1] V Radeka.

Trapezoidal filtering of signals from large germanium detectors at high rates

. Nucl Instrum Methods, 1972, 99: 525-539. DOI: 10.1016/0029-554X(72)90666-0
Baidu ScholarGoogle Scholar
[2] V T Jordanov and G F Knoll.

Digital synthesis of pulse shapes in real time for high resolution radiation spectroscopy

. Nucl Instrum Meth A, 1994, 345: 337-345. DOI: 10.1016/0168-9002(94)91011-1
Baidu ScholarGoogle Scholar
[3] V T Jordanov, G F Knoll, A C Huber, et al.

Digital techniques for real-time pulse shaping in radiation measurements

. Nucl Instrum Meth A, 1994, 353: 261-264. DOI: 10.1016/0168-9002(94)91652-7
Baidu ScholarGoogle Scholar
[4] J Stein, F Scheuer, W Gast, et al.

X-ray detectors with digitized preamplifiers

. Nucl Instrum Meth B, 1996, 113: 141-145. DOI: 10.1016/0168-583X(95)01417-9
Baidu ScholarGoogle Scholar
[5] V T Jordanov.

Real time digital pulse shaper with variable weighting function

. Nucl Instrum Meth A, 2003, 505: 347-351. DOI: 10.1016/S0168-9002(03)01094-5
Baidu ScholarGoogle Scholar
[6] C Imperiale and A Imperiale.

On nuclear spectrometry pulse digital shaping and processing

. Measurement, 2001, 30: 49-73. DOI: 10.1016/S0263-2241(00)00057-9
Baidu ScholarGoogle Scholar
[7] W Y Xiao, Y X Wei and X Y Ai.

Trapezoidal shaping algorithm for digital multi-channel pulse height analysis

. J Tsinghua Univ (Science and Technology), 2005, 45: 810-812. (in Chinese) DOI: 10.3321/j.issn:1000-0054.2005.06.025
Baidu ScholarGoogle Scholar
[8] R Y Zhang.

On the study of digital nuclear spectrum system. Ph.D. Thesis

, Sichuan University, 2006. (in Chinese)
Baidu ScholarGoogle Scholar
[9] Q H Zhou, R Y Zhang and T H Li.

Matlab-based researching method of trapezoidal shaping filter

. J Sichuan Univ (Natural Science Edition), 2007, 44: 111-114. (in Chinese) DOI: 10.3969/j.issn.0490-6756.2007.01.024
Baidu ScholarGoogle Scholar
[10] L Chen.

Research on the nuclide identification algorithm and digital spectra acquisition system. Ph.D. Thesis

, Tsinghua University, 2009. (in Chinese)
Baidu ScholarGoogle Scholar
[11] W K Warburton, M Momayezi, B Hubbard-Nelson, et al.

Digital pulse processing: new possibilities in nuclear spectroscopy

. Appl Radiat Isotopes, 2000, 53: 913-920. DOI: 10.1016/S0969-8043(00)00247-5
Baidu ScholarGoogle Scholar
[12] V Esmaeili-sani, A Moussavi-zarandi, N Akbar-ashrafi, et al.

Neutron-gamma discrimination based on bipolar trapezoidal pulse shaping using FPGAs in NE213

. Nucl Instrum Meth A, 2012, 694: 113-118. DOI: 10.1016/j.nima.2012.08.025
Baidu ScholarGoogle Scholar
[13] A Regadio, S Sanchez-Prieto, M Prieto, et al.

Implementation of real-time adaptive digital shaping for nuclear spectroscopy

. Nucl Instrum Meth A, 2014, 735: 297-303. DOI: 10.1016/j.nima.2013.09.063
Baidu ScholarGoogle Scholar
[14] J B Zhou, W Zhou and X Hong.

Improvement of digital S-K filter and its application in signal processing

. Nucl Sci Tech, 2013, 24: 060401. DOI: 10.13538/j.1001-8042/nst.2013.06.020
Baidu ScholarGoogle Scholar