High-resolution X-ray spectroscopy has a wide range of scientific and industrial applications, especially for nondestructive material analysis.1 In the field of energy-dispersive detection of X-rays, excellent energy resolution and high count rate capability are achieved by silicon drift detectors.2-4 When X-rays are absorbed in the active detector volume, free charge carriers are generated. By integration of released charge from the detector using an application-specific integrated circuit (ASIC), step-like voltage signals are generated.5 The magnitude of a voltage step is proportional to the energy of the corresponding X-ray photon. For state-of-the-art signal processing, the output voltage signals of silicon drift detectors are converted into digital values by an analog-to-digital converter (ADC), and pulse height analysis is done in a digital signal processing unit like a field programmable gate array (FPGA).6 Statistical disturbances and in particular electronic noise superimpose the desired X-ray signals. Since the disturbances lead to inaccuracies in the signal height determination, energy resolution worsens and the quality of the material analysis suffers.6, 7 In order to reduce the influence of noise, digital filters are applied during signal processing. Beside the optimization of the signal-to-noise ratio, the filters need to fulfill several requirements regarding their time-domain transfer function. Indispensable properties of the filter are a flat-top in the signal response in order to avoid ballistic deficits, finite filter duration to minimize pile-up effects, and zero area to guarantee in-dependency of the baseline from direct current (DC) voltage.7 The most common type of filter is the trapezoid filter which provides good reduction of white noise, fulfills the requirements, and can be implemented very efficiently in digital electronics.6 However, the trapezoid filter provides nonoptimal noise reduction in certain cases, like, for example, in the presence of flicker noise and cannot take into account unknown experimental disturbances, like, for example, pickup noise caused by electromagnetic interference.8 In this work, a method for the calculation of alternative filters providing optimum signal-to-noise ratio will be demonstrated, targeting the improvement of the energy resolution achieved by silicon drift detector system.
2 DPLMS METHOD FOR OPTIMUM FILTER CALCULATIONFilters achieving maximum signal-to-noise ratio for signals superimposed by stochastic noise can be described and calculated using matched filter theory.9 In some applications, including high-resolution X-ray spectroscopy, however, the filters furthermore have to fulfill certain constraints regarding their transfer function since signal processing is done in time domain. Besides the optimization of the signal-to-noise ratio demands on the filters, for example, might be the finite duration of the step response, the presence of a flat-top in the filter output, and specific values of the filter area. Common methods for designing optimal filter under constrains in the transfer function are, for example, the Wiener method, the discrete-time Fourier transform (DFT) method, the least mean square (LMS) method, and the digital penalized least mean square (DPLMS) method.10 In this work, the DPLMS method, which has been introduced in,11 is chosen. This method takes into account the real noise in the system directly from time-domain signal data. There is no need for transformation into frequency domain, modeling of noise sources and deconvolution calculations. Influences from the preamplifier, the analog front-end, the ADC quantization noise, and also unknown sources of disturbances are taken into account while calculating the filter with best possible signal-to-noise ratio. Also, DPLMS offers the possibility to weight constraints regarding the transfer function in order to guarantee their fulfillment up to the needed precision without further nonessential degradation of the noise reduction. In the following, the basic principle of the method will be recapitulated before adaptations will be presented in section 3.
2.1 Filter descriptionFor digital signal processing in high-resolution X-ray spectroscopy, a common type of filter is finite impulse response (FIR) filter.6 This type of filter is inherently stable, and the finite duration of their pulse response leads to a well-defined length of the filter output for the step-like signals of semiconductor X-ray detectors. During application, often a trade-off between noise reduction and dead-time due to pile-up effects has to be found. For an FIR filter, the length of the step response can easily be adjusted by the number of filter taps. The filter taps are weighted with coefficients that define the transfer function.12 The task while designing optimum filters, therefore, is finding the coefficients that lead to minimum noise in the filter output while fulfilling requirements in the transfer function.
In order to describe the FIR filter, a vectorDPLMS as presented in the original source is adapted to the application and the setup of this work. Theory of the method and exemplary results using HPGe detectors were shown in Reference 11. In this work, a state-of-the-art silicon drift detector with an ASIC charge amplifier is used. Compared to silicon drift detectors with JFET-based readout, PIN diode photodetectors or Si(Li) detectors, silicon drift detectors with ASICs offer a fast-readout and superior noise characteristics.5 This provides the possibility of using short digital filters to improve signal throughput at high count rates. In the setup, used signals from the detector are digitalized DC-coupled in a high performance 16-bit ADC. For signal processing, an FPGA with low-power consumption and small form factor is used in order to be applicable for battery-powered, mobile setups like, for example, hand-held X-ray fluorescence analyzers. The outsourcing of the filter synthesis from the signal processing unit, therefore, is preferred.
3.1 Punctual time constraints for filter step response In this work, punctual time constraints are used to achieve a flat-top in the filter output in order to avoid a ballistic deficit.7 DPLMS method applies punctual time constraints to the filter output for a reference signal (section 2.3). Therefore, filter coefficients are found that lead to a flat-top in the filter output of the reference signal. However, this does not guarantee a proper flat-top for every single signal trace in cases where the signal shapes differs. For silicon drift detectors, signal rise-times vary due to the different drift times of electrons in the semiconductor material. X-ray absorptions near the anode lead to short drift times and fast signals, while X-ray absorptions near the edges lead to long drift times and slow signals.14, 15 For small detectors (e.g., 20 mm2 active area) with a fast-readout ASIC signal rise-times typically vary between 20 ns and 80 ns and for large detectors (e.g., 80 mm2 active area) signal rise-time are typically in the range between 20 ns and 250 ns. The obtained reference signal has a signal rise-time corresponding to the average signal rise-time of the detector. Therefore, it is not suitable to apply time constraints for a flat-top to the reference signal like it is done in DPLMS. For X-ray signals that are faster than the average signal, a flat-top in the filter output is not guaranteed by the method. These fast X-ray signals might suffer from ballistic deficits causing an error in pulse height analysis. The method, therefore, is modified by a new way of applying the punctual time constraints for the flat-top. Punctual time constraints are applied to the ideal step response of the filter. An ideal step of the length T, which is equal to the length of the signal traces, is defined:Since the optimization in this work is done off-line on a computer (section 3.2), filter calculation does not need to be done in real time. Furthermore, higher computing power and optimization toolboxes are accessible in order to minimize the cost function. Therefore, more advanced optimization algorithms without limitations due to the computing power of the signal processing unit might be employed. The present optimization problem is nonlinear and is done using an unconstrained method due to the implementation of constraints in DPLMS. Possible algorithms, for example, might be gradient-based, with or without step-size control, or not-gradient-based, deterministic or stochastic. The optimization algorithm can be chosen in order to achieve proper convergence for the given problem.
4 PROCEDURE OF OPTIMUM FILTER CALCULATIONIn this section, the practical calculation of optimum filters with several lengths for a given X-ray spectroscopy setup containing a silicon drift detector will be described. As the original source of DPLMS focuses on the mathematical description of the filter optimization, in the following practical steps are described in more detail. Major steps in order to calculate optimum filters are the acquisition of signal data using a suitable setup and the choice of a suited optimization algorithm. Furthermore, since DPLMS offers nonperfect constraint fulfillment, proper fulfillment limits will be derived and corresponding weighting factor identified.
4.1 Acquisition of signal dataIn order to carry out the calculation of optimum filters, first signal data are acquired. Figure 1 shows schematically the signal chain of the used X-ray spectroscopy setup. The setup consists of a commercially available VIAMP system from KETEK, which contains a silicon drift detector with 20 mm2 active area and a “CUBE” ASIC as a charge amplifier.16 The silicon drift detector is operated at a chip temperature of 238 K using the thermoelectric cooler of the detector module. The preamplifier provides a ramped reset-type signal with a gain of 5 mV/keV on the output. This signal is fed into a circuit board for signal processing containing an analog front-end, an ADC, and an FPGA. On the analog front-end, a 15 MHz Bessel-type low-pass filter is applied to the signal as antialiasing filter. Although it has rather poor attenuation in the stop band, the advantage of the Bessel filter is the smooth transient response due to a linear phase.17 This ensures minimal distortion and overshoot for the step-like X-ray signals. In order to digitize the filtered detector signal, a 16-bit pipeline-type ADC with 80 MHz sampling rate is used.18 For signal processing, a Xilinx Artix-7 FPGA is employed.19 Advantages of an FPGA over other digital computing devices are the parallel processing and calculation at a fast rate, cost efficiency, and real-time capacity.20
Signal chain of the X-ray spectroscopy setup
The detector is irradiated with a 55Fe source, and ADC signal data is acquired using the FPGA. A photo of the experimental setup is shown in Figure 2. Signal traces with a length of 32,768 ADC-taps are transferred with full 16-bit precision to the computer. On the computer X-ray, signals with a length of 800 ADC-taps are extracted, signal position is centered to ADC-tap 400, and step heights are normalized to one. X-ray signals containing resets or multiple pulses are rejected. Overall 20,514 valid X-ray, signal traces are extracted in this way and an average signal is calculated (Figure 3). The signal has the typical step-like shape and a signal 10/90-rise-time of approximate six ADC-taps or 75 ns. In the following, this average signal is used as reference signal for filter optimization.
Calculation of optimum filters is done using Python 3.6.21 From the SciPy toolbox, the package “Optimization and Root Finding” is deployed for the minimization of the cost function.22 This package provides functions for minimizing objective functions with various solvers for nonlinear problems and provides control over convergence criteria and optimization results. Best convergence was found experimentally to be achieved when using the quasi-Newton method of Broyden, Fletcher, Goldfarb, and Shanno (“BFGS-algorithm”).23 The BFGS method is a gradient-based algorithm using first derivatives only. Like all gradient-based algorithms, it finds local minima next to a starting value. In order to verify that the algorithm has found the global minimum of the cost function, every optimization is done repeatedly with different, randomly chosen starting values. For every filter coefficient, a random number between one and minus one is chosen using the Numpy package “random.”24 The optimization results for multiple different starting values are checked for equality within numerical precision.
4.3 Limits of constraint fulfillmentThe DPLMS methods offer the possibility to adjust the strength of constraints by the choice of weighting factors. A higher weighting factor for a constraint improves the precision of its fulfillment but might worsen the noise reduction of the filter. Therefore, limits for the desired precision of fulfillment have to be settled. In the following, a method for the derivation of precision limits for the desired constraints based on estimations of the influence for nonperfect constraint fulfillment will be presented.
4.3.1 Deviation of area constraint First, the influence of a nonzero area filter on the X-ray energy spectrum will be considered. A constant c at the input of an FIR filter will generate a filter output value ofAs result of sections 4.3.1 and 4.3.2, the desired constraints are a filter area less than 1.3 ⋅ 10−5 and a fluctuation of the filter top less than 7.6 ⋅ 10−4. The duration of the filter top should be at least one tap longer than the rise-time of the slowest X-ray signal since X-rays signals are asynchronous to the ADC clock. Since slowest X-ray signals found in the ADC traces have a signal rise-time of 180 ns the flat-top length is set to 16 ADC-taps. Therefore, K = 16 punctual constraints with the target values C1 = 1, C2 = 1, … C16 = 1 are introduced into the cost function. The punctual constraints are applied to the ideal step response of the filter. The weighting factors αk and β relative to the noise term in the cost function have to be chosen in order to fulfill the constraints with desired precision. Proper choices of the weighting factors were found by iteratively increasing the weighting factors until desired constraint fulfillment, as derived in sections 4.3.1 and 4.3.2, was achieved. Table 1 shows the determined values for the weighting factors. Higher weighting factors are needed for short filters due to the poorer noise reduction and the resulting higher variance in the filter output.
TABLE 1. Weighting factors for proper constraint fulfillment Filter length αk ∀ k β 300 ns 0.087 34 400 ns 0.055 27 600 ns 0.032 15 800 ns 0.023 12 1,000 ns 0.018 9 5 RESULTS AND DISCUSSIONFilters with the lengths of 24 Taps (300 ns), 32 Taps (400 ns), 48 Taps (600 ns), 64 Taps (800 ns), and 80 Taps (1,000 ns) are calculated using the presented method. These filter lengths typically are applied in applications using high X-ray rates aiming for a high signal throughput in order to minimize data acquisition time. Results for optimization of the 600 ns filter will be shown and discussed in the following subsection. Experimental test is carried out for all filters and compared to trapezoid filters of the same length since trapezoid filters are known for excellent noise reduction at short filter lengths.8
5.1 Coefficients of 600 ns filterAs an example, the filter with a length of 600 ns is presented in detail here. Figure 4 shows the 48 filter coefficients in comparison with the coefficients of the trapezoid filter. For the trapezoid filter, the first 16 coefficients are 1/16 = 0.0625, the coefficients 16–31 are zero, and the coefficients 32–47 are −1/16 = − 0.0625. The filter found by the optimization has higher weighting factors on the edges of the filter and the gap. In between, the filter coefficients show a smooth course. The optimum filter output for the reference input signal is shown in Figure 5. It shows a steeper rise at the start of the signal due to the higher weighting factor near the edges. The overall filter output length is equal due to the same amount of filter taps. While the coefficients of the trapezoid filter between 16 and 31 are exactly zero, the coefficients of the optimum filter are finite. This causes a fluctuation of the maximum value in the filter step response. This is shown in Figure 6 for the 600 ns filter. The fluctuation found on the top of the filter step response is 7.5 ⋅ 10−4 and thus smaller than the allowed fluctuation of 7.6 ⋅ 10−4. The filter area is 1.2 ⋅ 10−6 and therefore below the allowed maximum of 1.3 ⋅ 10−6. The filter fulfills all constraints with desired precision.
Comments (0)