Introduction
High count rates commonly occur in radiation detectors, particularly in nuclear spectroscopy and nuclear reaction studies [1-3]. In these scenarios, the pile-up effect becomes a significant concern that undermines counting efficiency, as instruments may fail to accurately register each individual event when signals overlap [4]. Pile-up signals blur the distinctions between the energy levels of individual radiation events, hindering precise energy determination and distorting energy spectra [5, 6]. Furthermore, in neutron/gamma discrimination at high count rates, the pile-up effect complicates the accurate differentiation between neutron and gamma signals [7, 8]. This interference distorts the pulse shape, potentially leading to data misinterpretation and reduced detection performance [9]. Hence, addressing the pile-up effect is essential for improving the reliability and effectiveness of neutron/gamma discrimination techniques in high-count-rate conditions.
Scintillation detectors incorporating nuclei such as 6Li, 10B, and 157Gd provide effective thermal neutron detection [10]; examples include Cs2LiYCl6:Ce (CLYC) and Cs2LiLaBr6:Ce (CLLB) [11-14]. Moreover, NaI scintillators co-doped with 6Li (NaIL) offer excellent neutron/gamma discrimination due to the distinct pulse shapes produced by the high-energy reaction of 6Li with thermal neutrons, thereby enhancing the detection and differentiation of gamma signals [15, 16]. Various pulse-shape discrimination (PSD) methods have been proposed for these scintillator detectors, including the charge comparison method [12] and the zero-crossing method [17].
Machine-learning techniques are increasingly employed for pulse-shape discrimination [18]. For example, Convolutional Neural Network (CNN) models trained on simulated and experimental data have demonstrated effective discrimination of pile-up neutron/gamma signals [12, 19]. Liu et al. introduced a pulse-coupled neural network that achieved a 26.49% improvement in the Figure of Merit (FoM) compared with traditional charge comparison methods [20]. Although research [21] has explored the use of neural networks for neutron/gamma discrimination and online data processing, obtaining sufficient labeled data for effective training remains a challenge. Developing an accurate machine-learning model for neutron/gamma discrimination requires a substantial reference dataset encompassing both neutron and gamma events [22]. Furthermore, neutron sources also emit gamma rays, complicating the separation of the two radiation types. Extracting datasets from mixed radiation fields and accurately labeling the signals are laborious tasks. Additionally, changes in measurement conditions, such as differences in detectors, radiation sources, or distances, may necessitate the reacquisition of reference datasets for model retraining. Labeled datasets often include misclassified samples due to overlapping gamma and neutron arrival time distributions and the presence of natural background radiation [23].
Machine learning techniques can identify patterns in large datasets that capture subtle differences between neutron and gamma signals, whereas Digital Signal Processing (DSP) can further enhance these differences by transforming the signals without requiring extensive model training [24]. Rather than simply rejecting pile-up signals and tolerating losses, DSP techniques analyze the complete information contained in overlapping pulses, thereby retrieving signal amplitudes and identifying signal types [25, 26].
Although a Fast Fourier Transform (FFT) can yield more distinctive signal features [14, 27], its inherent latency hampers real-time discrimination under high flux. Similarly, while the Wavelet Transform (WT) has been employed to extract signal features [28, 29], selecting the optimal wavelet basis typically requires an iterative testing process. Optimization techniques such as the Antilion algorithm and particle swarm optimization have also been applied to resolve second-order pile-up issues at high counting rates [30, 31]; these methods achieve high amplitude-recovery accuracy but require long processing times.
Pulse shaping, on the other hand, enhances the distinct temporal features of neutron and gamma signals. Any pulse shape can be approximated using methods such as the z-transform derivation [20] or the unfolding synthesis technique [32, 33], both of which are computationally efficient and suitable for real-time implementation on FPGAs. Moreover, pulse-shaping methods not only facilitate waveform discrimination but also improve the signal-to-noise ratio and energy resolution in spectroscopy [34, 35]. Although slow shapers yield high energy resolution in spectral analysis, they perform less effectively than fast shapers at high count rates. For example, Nakhostin reduced the probability of pulse pile-up by shortening the pulse width [36], and Wen et al. demonstrated that a neutron/gamma signal maintained a distinct zero-crossing time when processed through a fast triangular shaper [17]. Additionally, a combination of a trapezoidal shaper and a sawtooth shaper has been used to achieve PSD while compensating for the ballistic deficit [37]. The cusp-like shape, which exhibits a narrower width than the triangular shape for identical rise and fall times, facilitates pile-up rejection [2]. However, unipolar shaping can lead to baseline shift [20]; in principle, these shifts can be mitigated by employing bipolar pulse shapes. Indeed, the bipolar trapezoidal and bipolar cusp-like shapers presented in [38, 39] demonstrated that bipolar pulse shaping can achieve baseline restoration at high count rates. Despite the widespread use of pulse-shaping techniques in online nuclear instrumentation measurements, challenges remain in achieving effective neutron-gamma discrimination at elevated count rates while preserving accurate amplitude recovery.
The aim of this study is to propose a bipolar cusp-like pulse-shaping algorithm designed to correct pile-up signals under high radiation flux. Based on the unfolding synthesis technique, the algorithm exploits a distinctive narrow pulse width to facilitate the reconstruction of piled-up signals originating from NaIL scintillators. A notable advantage of the proposed algorithm is its suitability for real-time implementation on FPGA platforms. In addition, multi-objective optimization is employed to minimize manual parameter tuning by determining the optimal decay time constants. Testing in a mixed radiation field generated by a 241Am-Be neutron source confirmed the algorithm’s capability for pile-up correction and energy spectrum recovery.
Method
Bipolar cusp-like pulse shaping algorithm
The interaction between the scintillator material and incident particles results in the emission of light, which is subsequently collected by a Photomultiplier Tube (PMT) to produce an electrical signal. This signal is generally characterized by a bi-exponential model. Following digitization by a high-speed ADC with sampling period ΔT, the bi-exponential model in the discrete-time domain can be expressed as_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M001.png)
The unfolding synthesis technique enables the construction of virtually any pulse shape, either exactly or as a close approximation [32]. It finds applications in linear signal processing systems, whether they are time-invariant or time-varying. The bipolar cusp-like pulse-shaping algorithm consists of two main components: an unfolding system and a synthesis system.
The purpose of the unfolding system is to deconvolute the nuclear signal into unit impulses. The unfolding equation for a single-exponential signal is provided in [32]. In the discrete-time domain, a single-exponential signal is defined as_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M002.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M003.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M004.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M005.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M006.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M007.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M008.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M009.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-F001.jpg)
The function of the synthesis system is to reconstruct the unit impulse into a target pulse shape through addition, multiplication, and accumulation. This reconstruction requires determining the target pulse shape, followed by differentiating it to obtain a linear combination of weighted and shifted unit impulses. Based on this linear combination, the synthesis equations for the target pulse shape are derived through accumulation. A bipolar cusp-like shape was selected for this study because of its narrow width, which is well suited for high count-rate measurements, and its bipolar nature, which helps prevent baseline drift. The target bipolar cusp-like signal can be expressed as_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M010.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M011.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M012.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M013.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M014.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M015.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M016.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M017.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M018.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M019.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-F002.jpg)
Xilinx System Generator (XSG) is a powerful tool for developing digital signal processing (DSP) systems using Xilinx FPGAs. It is an essential component of the Xilinx design suite and offers a high-level graphical environment for algorithm development and hardware implementation. The block diagram of the bipolar cusp-like shaping algorithm, defined by Eqs. 9, 16, 17, 18, and 19, is illustrated in Fig. 1. The proposed algorithm comprises only a few adders and multipliers, rendering its structure simple and conducive to real-time FPGA implementation. The output bit-width limits (labeled in Fig. 1) for each block indicate that the algorithm operates in fixed-point arithmetic. Consequently, each time the signal passes through a block, quantization noise is introduced due to rounding. Under high count-rate conditions, L was fixed at five in this study, resulting in a short rising and falling edge, as shown in Fig. 2f. For different types of signals from various detectors, only a1 and a2 need to be adjusted.
Setting A1 and A2 to 1000, ΔT/τ2 to 1/10, and ΔT/τ2 to 1/6 in Eq. 2 artificially produces a double exponential signal as:_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M020.png)
Particle classification criteria and amplitude recovery
The neutron signal is narrower than the gamma signal in the output of the NaIL detector used in this study. Figure 3a illustrates the neutron and gamma signals with distinct pulse widths, along with artificially constructed pile-up events formed by combining these two signals. In these experiments, one signal was delayed by eight clock cycles and added to the other to create a pile-up event. Because neutron and gamma signals have different decay time constants, a pulse-shaping algorithm optimized for one decay constant produces distinct shaping results for each signal type.
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-F003.jpg)
The blue curve in Fig. 3c shows the shaping result of the red curve in Fig. 3a when processed using the pulse shaping algorithm for gamma (PSAG). PSAG is designed to match the decay time constants of the gamma signal, rendering the gamma signal closer to a bipolar cusp-like shape after shaping. However, the neutron signal, which decays faster than the gamma signal, does not conform to PSAG’s parameters and exhibits an overshoot when returning to the baseline. In n+γ or n+n pile-up cases, the later pulse is superimposed on this overshoot, leading to inaccurate amplitude recovery.
Conversely, the green curve in Fig. 3d displays the shaping result of the red curve in Fig. 3a when processed with the pulse shaping algorithm for neutron (PSAN). Unlike PSAG, PSAN shapes the neutron signal into a bipolar cusp-like form; however, when PSAN is applied to the gamma signal, the slower decay prevents it from returning to the baseline within five clock cycles. In γ+n and γ+γ pile-up events, the amplitude of the latter signal is lower than its true value because the previous gamma signal does not return to the baseline quickly. Thus, PSAG produces an overshoot for neutron signals while PSAN yields a slow decay for gamma signals. Both overshoot and slow decay distort the preceding pulse, preventing the subsequent pulse’s amplitude from recovering to its original value.
Nevertheless, the γ+n event shown in Fig. 3c and the n+γ event in Fig. 3d exhibit satisfactory amplitude recovery. In Eq. 21, the variable ε quantifies the amplitude recovery of the pile-up signal, with smaller values indicating better recovery. The amplitude of the preceding signal is typically unaffected (_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M021.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M022.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M023.png)
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M024.png)
In summary, although both PSAG and PSAN can discriminate between the two signals, accurate amplitude recovery requires dual-channel shaping utilizing both PSAG and PSAN. Thanks to the FPGA’s parallel-processing capability, dual-channel shaping does not introduce delays. Figure 3b shows the signal processing flow on the FPGA, where the 12-bit signal from the ADC is processed in parallel through PSAG and PSAN to produce two 16-bit outputs. The number of pile-up events in the signals processed by PSAG and PSAN is minimal, primarily due to the reduction in signal widths. A feature extraction module simultaneously extracts signal characteristics (signal type, peaks, and troughs) from the outputs of the PSAN and PSAG algorithms, while a pile-up detection module identifies pile-up events by calculating the interval between the current and previous signal peaks.
First, both algorithms produce a classification result for the same signal using λstandard determined from the PSD plots; the discrimination result is considered valid only if both algorithms yield the same classification outcome. Following classification, the valid amplitude output is selected. In Figs. 3c and d, the valid amplitude output is marked with a triangle symbol. For isolated signals (where the current signal peak is more than 50 sampling points away from the previous peak), the gamma signal amplitude from PSAG is valid, while the neutron signal amplitude from PSAN is valid. When the current signal peak is less than 50 sampling points away from the previous peak and the preceding signal is a neutron signal, the current amplitude from PSAN is considered valid. Conversely, if the previous signal is a gamma signal, the current amplitude from PSAG is taken as valid. Therefore, γ+n and γ+γ outputs from PSAG are valid, and n+γ and n+n outputs from PSAN are valid.
For the same neutron signal, PSAG yields an amplitude of 1095 while PSAN produces an amplitude of 1403, indicating that PSAN has a higher output amplitude. This selection approach enhances the overall neutron signal amplitudes, thereby mitigating misclassification between neutron and gamma signals in the low-energy region. In addition, due to the generally higher amplitudes of the PSAN outputs, the valid neutron amplitude from PSAG is multiplied by a gain factor of 1.282 for the neutron response spectrum, and the valid gamma amplitude from PSAN is multiplied by a gain factor of 0.865 for the gamma spectrum.
However, the dual-channel shaping algorithm fails to respond adequately to multiple consecutive short-interval pulses. In the γ+n+γ+n event shown in Fig. 3c, the first two pulses exhibit amplitude recovery similar to that observed in the n+γ event, but the two subsequent pulses cannot be accurately recovered due to the overshoot produced by the neutron signal. In this scenario, the algorithm erroneously considered the amplitude of the last neutron signal (1138) as valid, although it should have been 1095. Similarly, in the n+γ+n+γ event shown in Fig. 3d, because the preceding signal to the last gamma signal is a neutron signal, the last gamma signal amplitude of 917 is taken as valid, although the expected value is 904. Thus, even though dual-channel shaping rectifies the inaccurate amplitude recovery associated with two pile-up signals, the failure of the pulse to rapidly return to baseline in these events leads to poor amplitude recovery for any subsequent signals.
Multi-objective optimization for parameter determination
As with other pulse-shaping algorithms, the decay time constants are the key parameters for this algorithm. Typically, a preliminary fitting process based on an analytical exponential model is conducted on a computer to obtain these parameters. However, discrepancies between the actual nuclear signal and the ideal bi-exponential model often render complete fitting impossible. Consequently, the fitting process and subsequent algorithm tests are frequently performed by trial and error, and the decay time constants derived from such fitting may not yield smooth pulse shaping (as illustrated in Fig. 2), thereby necessitating manual adjustments to achieve optimal discrimination.
To circumvent the need for manual adjustments, Gaussian mixture models and deep-learning transformer models have been employed to identify pulse shape parameters [41, 42]. In this study, multi-objective optimization was employed to determine the optimal decay time constants, ensuring both effective neutron/γ discrimination (quantified by σ) and accurate amplitude recovery (quantified by ε).
The multi-objective optimization of the proposed algorithm was performed using the MATLAB function gamultiobj from the Global Optimization Toolbox. This function generates a set of optimal solutions along the Pareto front in the space of decision variables and employs a controlled elitist genetic algorithm—a variant of the Non-dominated Sorting Genetic Algorithm II (NSGA-II) [43]. In genetic algorithms, the controlled elitist approach is notable for its emphasis on preserving population diversity, even at the expense of selecting individuals with lower fitness. This strategy is pivotal for steering convergence toward an optimal Pareto front, where the solutions balance the conflicting objectives (σ and ε). Maintaining diversity within the population plays a crucial role as the algorithm unfolds.
Two key mechanisms, namely ParetoFraction and DistanceMeasureFcn, are instrumental in controlling elitism. ParetoFraction regulates the number of individuals designated as elite members on the Pareto front, ensuring a balanced representation of optimal solutions. Meanwhile, the DistanceMeasureFcn actively promotes diversity along the Pareto front by favoring individuals that are spatially separated, thereby mitigating the risk of premature convergence toward suboptimal solutions.
A key stopping criterion for the algorithm is the spread assessment—a metric that monitors the extent of movement along the Pareto front. If the spread diminishes to a predefined threshold, indicative of stagnation or limited exploration of the solution space, the algorithm terminates. This approach not only safeguards against premature convergence but also encourages a thorough exploration of the solution landscape, ultimately fostering the discovery of robust and diverse Pareto-optimal solutions. After performing multi-objective optimization based on the amplitude recovery and discrimination performance for the four pile-up events (γ+γ, γ+n, n+γ, n+n), the optimal decay time constants were selected from the Pareto front.
Experimental setup
Data acquisition and algorithm tests were performed using a 30 mCi 241Am-Be neutron source. Varying the concentration of 6Li yielded distinct characteristics in the neutron and gamma signals. For instance, NaI:Tl detectors containing 1% 6Li can convert a conventional NaI:Tl detector into a neutron/gamma spectroscopic dual-mode detector without compromising neutron detection efficiency [44]. To achieve a higher count rate, a Φ50.8 mm × 50.8 mm 6Li-enriched (95%) NaI:Tl scintillator with 1% 6Li doping was placed adjacent to the source outlet. As shown in Fig. 4, the detector was placed inside a polyethylene enclosure, and a lead layer was wrapped around it to reduce excessive gamma radiation. A preliminary check of the detector’s response to gamma rays was performed using a 137Cs gamma source, which yielded an energy resolution of 7.01% for the 662 keV full-energy peak.
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-F004.jpg)
A preamplifier was integrated into the PMT immediately behind the NaIL scintillator. The PMT CR105 was purchased from Beijing Hamamatsu Photon Techniques Inc. The electrical signals generated by the PMT were amplified directly without passing through transmission cables, thereby reducing noise interference. Subsequently, a discriminator was devised to process the nuclear signals produced by the preamplifier. This discriminator primarily comprises an A/D converter (AD9236), a Xilinx Artix 7 series FPGA (XC7A200TFBG484-2), a USB communication circuit, and power supply circuits. The input signal from the preamplifier underwent direct digitization using the AD9236, which employs a multistage differential pipelined architecture to provide 12-bit resolution at speeds of up to 80 Msps. Choosing a digitizer with an appropriate sampling rate involves a trade-off between performance and economy; research [45] has shown that a FoM better than 2.0 can be achieved at a 125 MHz sampling rate above 300 keV. In this study, the ADC sampling rate was 50 MHz, which minimizes hardware requirements. In addition, an internal reference voltage of 1 V was used, exhibiting a voltage error of 0.42% at 20 °C. To mitigate the impact of temperature drift, the adoption of an additional external reference is recommended. The digitized signal was conveyed in parallel to the FPGA in complementary format. Real-time digital signal processing and spectrum formation were achieved using a single FPGA. The recorded energy spectra were stored in the BRAM on the FPGA, and the spectrum data were periodically transmitted to a host computer via a USB interface. Meanwhile, the entire discriminator was powered by a 5 V supply provided through the USB interface.
The research workflow comprised three main phases. Initially, multiple neutron and gamma signals were extracted from the discriminator and processed using MATLAB Simulink. Pile-up events (γ+γ, γ+n, n+γ, and n+n) with varying amplitudes were manually constructed to validate the pulse-shaping algorithm for neutron/γ discrimination and amplitude recovery. Subsequently, a multi-objective optimization based on these pile-up signals was conducted using the gamultiobj function in MATLAB. Finally, the optimal time constants were programmed onto the FPGA. During a one-minute measurement period, the pile-up signals were reconstructed and discriminated in real time, after which the recovery of the spectra was analyzed.
Results and discussion
Validation of the pulse shaping algorithm
Pile-up events occur occasionally during nuclear radiation detection. At low count rates, these events are rare and may be regarded as part of statistical fluctuations. However, at high count rates, high-frequency pile-up events become significant and cannot be ignored. The closer the two pulse signals are spaced, the greater the impact; for example, the amplitude of the second pulse in a pile-up event may be falsely identified as being higher. Moreover, when two overlapping signals are extremely close, pile-up correction becomes even more challenging.
Figures 5a–c depict neutron and gamma signals with different amplitudes, along with artificially constructed pile-up events generated by adding one signal to another with a delay of eight clocks (160 ns). Such pile-up events severely distort the pulse waveform, causing two overlapping pulses to appear as a single pulse. The second pulse, which overlaps with the first, is erroneously detected by the peak detection algorithm with an exaggerated amplitude. Consequently, the standard peak detection algorithm not only detects the pile-up event as a pulse but also incorrectly extracts it with a large amplitude.
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-F005.jpg)
Figures 5d–f and Figs. 5d–g show the bipolar cusp-like shaping results using PSAG (blue curve) and PSAN (green curve), respectively. The thick red line highlights the successfully separated pile-up signals, indicating that signals with different amplitudes can be restored to their original shapes without compromising particle discrimination and amplitude recovery. Accurate amplitude recovery is possible only if the first-shaped signal in a pile-up event quickly returns to the baseline. Regardless of the signal amplitude, the shaped neutron signals consistently exhibit a significant trough amplitude. The separated signals maintain the same characteristics as the individually shaped signals, making particle discrimination more reliable than amplitude recovery. PSAG and PSAN each utilize their own criteria for classifying neutron and gamma signals due to the differences in their shaping results. Figures 5d and g show that PSAG has a greater advantage in distinguishing the two types. In particular, the large trough in the neutron signal produced by PSAG yields a peak-to-valley ratio of 1094/1933 in Fig. 5d, which is smaller than that in Fig. 5g (1402/1686).
Figure 5d–i shows that the amplitudes of the shaped pileup signals exhibit slight deviations compared to those of the individually shaped signals. In the case of n+ pile-up events shown in Fig. 5i, for instance, the amplitude of the gamma signal (901) is reduced by 3 channels compared to its amplitude in isolation (904), resulting in a three-channel shift in the spectrum. The primary cause of these deviations is fixedpoint arithmetic errors. As illustrated in Fig. 1, each operator in the algorithm produces a maximum of 16 fractional bits, while the final output is a 16-bit integer; fractional bits are dropped to produce integer channels. In addition, the use of a bi-exponential model for algorithm derivation introduces discrepancies, as the actual nuclear signal does not perfectly adhere to this model. Even after adjusting the decay time constant parameters, the shaped signal fluctuates around the baseline, so that the subsequent signal in a pile-up event is superimposed on this fluctuation rather than on a flat baseline. These slight deviations are considered tolerable and can be treated as statistical fluctuations in the energy spectrum measurements when accurate neutron counting is ensured.
Multi-objective optimization of the decay time constants
Before implementing the pulse-shaping algorithm on the FPGA, the decay time constant parameters were obtained using MATLAB. Two decay time constants, ranging from 0 to 400 ns, were used as decision variables. The multi-objective optimization results for PSAG, using these two decay time constants, are shown in Fig. 6. As Fig. 5 suggests, optimization for PSAG primarily considers the γ+n and γ+γ pile-up cases. The discrimination ability σ, calculated using Eq. 24, is directly proportional to τ1 and τ2 within a certain range (Fig. 6a). In particular, σ approaches 0.3 as τ1 increases to 240 ns and τ2 to 120 ns. Although a larger σ generally indicates better discrimination, excessively large decay time constants may distort the bipolar cusp-like target shape and hinder amplitude recovery.
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-F006.jpg)
Figure 6b and c illustrate the second signal’s amplitude recovery ability in γ+n and γ+γ pile-up cases. A smaller λ value indicates better amplitude recovery, and only specific combinations of τ1 and τ2 yield λ values close to zero. In these cases, τ1 and τ2 best fit the bi-exponential model of the gamma signal, likely resulting in the target bipolar cusp-like shapes seen in Figs. 5d–f. Moreover, amplitude recovery primarily depends on τ2, which characterizes the fast component of the signal. τ2 must be approximately 100 ns to ensure good amplitude recovery (small λ) while maintaining a sufficiently high σ (above 0.2). By considering λ1 and λ2 as optimization objectives, decay time constants that best fit the bi-exponential model of the gamma signal can be identified, giving amplitude recovery a greater weight than discrimination ability.
Figure 6d presents the Pareto front obtained with a population size of 500 using MATLAB’s gamultiobj function, which finds the optimal decay time constants with high precision within the range of 0 to 400 ns. Although the Pareto frontier provides a series of optimal high-precision solutions, the hardware implementation of the pulse-shaping algorithm runs in fixed-point arithmetic. Therefore, arbitrarily choosing one of these high-precision solutions does not affect the final shaping results because of the rounding that occurs after each operation (as shown in Fig. 1).
Spectra restoration
During the high-count-rate online experiment, pile-up events involving multiple pulses were specifically extracted using an Integrated Logic Analyzer (ILA), as shown in Fig. 7. The NaIL detector in this study produced output signals with widths ranging from 200 to 500 ns. Neutron signals typically have widths of less than 300 ns, while gamma signals are usually wider (exceeding 300 ns). Given the higher prevalence of gamma signals, pile-up events are more likely to consist primarily of gamma pulses. The real-time shaping results observed on the FPGA were consistent with those in Fig. 5; both algorithms effectively shortened the pulse width and separated the accumulated signals. After pulse shaping, as shown in Figs. 7b and c, a signal with a notably smaller peak-to-valley ratio was observed and classified as a neutron signal by the algorithm.
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-F007.jpg)
The online implementation of the algorithm exhibits the same inaccuracies in magnitude recovery as seen in Fig. 5, leading to slight deviations in channel addresses. These inaccuracies result from several factors: (1) the shaping algorithm is an approximation derived from a bi-exponential signal; (2) the FPGA implementation relies on fixed-point computation, reducing accuracy; and (3) the input signal contains noise and other non-deterministic elements.
In our previous study, the NaIL detector was positioned outside a boron-containing polyethylene shield with a 6-mm-thick lead layer, resulting in a lower count rate. At low count rates, the Figs. standard energy spectrum of the NaIL detector response to an 241Am-Be source (shown by the green lines in Fig. 8c) was not processed by the filter-shaping algorithm and was affected by only a small number of pile-up events, resulting in three distinct peaks that served as a benchmark for energy spectrum restoration.
_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-F008.jpg)
As shown in Fig. 4, in the present study the NaIL detector was positioned inside a boron-containing polyethylene shield in close proximity to the source, leading to a high count rate and a substantial number of low-energy gamma rays from 241Am. In practice, this abundance of low-energy gamma rays causes baseline fluctuations. Although a lead shield was wrapped around the NaIL scintillator to block gamma rays (as shown in Fig. 4), low-amplitude gamma signals were still observed (see Fig. 7), causing baseline instability.
The purple line in Fig. 8c shows the distorted energy spectrum at a high count rate. Owing to extensive pile-up events, the spectral peaks become less pronounced and the counts shift toward the high-energy region. Although the total counts in the two spectra of Fig. 8c are similar, the number of false counts increases significantly in the energy region above 5000 keV. Because low-energy gamma counts are very high and neutrons are nearly absent in the low-energy region, an energy threshold of 244 keV was set so that signals below this threshold were excluded.
Figures 8a and b illustrate the PSD performance of PSAG and PSAN, respectively. The Figure of Merit (FoM), first introduced by Winyard et al. [46], is given by:_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M025.png)
Figures 8a and b show that while both PSAG and PSAN yield similar distributions, the neutron and gamma peaks are more widely separated in the PSD plot obtained by PSAG, indicating superior PSD capability. As previously mentioned, the pulse shaped by PSAG has a greater peak-to-valley ratio, resulting in a higher FoM. After determining λstandard from the PSD plots, signal types can be classified based on λstandard to obtain the separated energy spectra shown in Fig. 8d. For example, PSAG output signals with λ less than 0.492 (represented as 0x07DF on the FPGA) are classified as neutron signals.
It is noteworthy that Fig. 8b shows more total counts than Fig. 8a, even though both PSAG and PSAN process the same input signals in parallel. This is because the same channel-address threshold was imposed in the hardware, and PSAN tends to increase the overall amplitude of the signals, resulting in more signals exceeding the threshold. However, due to the presence of a coincidence system, excess counts from PSAN were not included in the final energy spectrum.
As shown in Fig. 8d, the coincidence system combining PSAG and PSAN is capable of restoring the normal neutron and gamma energy spectra from the pile-up-affected spectrum shown in Fig. 8c. However, the restored spectra in Fig. 8d exhibit noticeable noise and lack smoothness, resulting in fluctuations and irregularities in the spectral peaks. This noise may stem from statistical fluctuations in detection, electronic noise in the measurement system, or inaccuracies introduced by the FPGA implementation of the shaping algorithm.
Despite these inaccuracies, the application of the shaping algorithm resulted in more pronounced spectral peaks. The 241Am-Be source used in this study primarily emitted a large number of low-energy gamma rays. Although this alone did not cause severe distortion at a count rate of 10 kcps, a noticeable number of pile-up events still occurred in the low-energy region. Consequently, the spectral peaks in the low-energy region (as seen in Fig. 8c) are not distinct when no filtering is applied, but become more pronounced after applying the proposed narrow shaping algorithm, demonstrating the algorithm’s capability to improve the signal-to-noise ratio.
The highest-energy gamma-ray peak corresponds to the full-energy peak at 4438 keV from the de-excitation of 12*C produced in the reaction α(9Be, n)12*C [47]. Adjacent to this full-energy peak, a single escape peak occurs at 3927 keV and a double escape peak at 3416 keV. In addition, hydrogen nuclei in the polyethylene shield captured thermal neutrons, producing gamma rays at 2230 keV. In the low-energy region, 214Pb and its beta-decay product 214Bi emit gamma rays at 351 keV and 609 keV, respectively, and a 511 keV peak due to positron annihilation is also observed. These low-energy peaks become visible after pulse shaping.
In a NaIL scintillator, neutrons are indirectly detected through their reaction with 6Li [44]:_2026_03/1001-8042-2026-03-43/alternativeImage/1001-8042-2026-03-43-M026.png)
Conclusion
A bipolar pulse-shaping algorithm was introduced to address pile-up events involving different particle types. At count rates of approximately 60000 cps for signals above 244 keV, this algorithm was successfully implemented on an FPGA in real time, achieving reliable particle discrimination and amplitude recovery for pile-up events. This method does not rely on large datasets and only requires the extraction of the decay time constants for individual neutron and gamma signals—a process that can be accomplished through multi-objective optimization using MATLAB. By adjusting only a few parameters, the IP core of this algorithm can be easily deployed on other FPGA-based instruments. However, to guarantee accurate amplitude recovery in pile-up events, two parallel shaping algorithms are required, which increases the complexity of logic control. Future research on innovative pulse shapes may help simplify the algorithmic structure. In addition, due to the high neutron response energy at the output of the NaIL detector, neither the PSD plots nor the acquired spectra contain counts at energies below 244 keV. Further spectroscopic analysis is required to compare the performance of this method with that of other scintillators.
X-ray spectra correction based on deep learning CNN-LSTM model
. Measurement 199,Implementation of a cusp-like for real-time digital pulse shaper in nuclear spectrometry
. Nucl. Sci. Tech. 28, 103 (2017). https://doi.org/10.1007/s41365-017-0248-1Development of a high-speed digital pulse signal acquisition and processing system based on MTCA for liquid scintillator neutron detector on EAST
. Nucl. Sci. Tech. 34, 10 (2023). https://doi.org/10.1007/s41365-023-01318-9Counting-loss correction method based on dual-exponential impulse shaping
. J. Synchrotron Radiat. 27, 1609-1613 (2020) https://doi.org/10.1107/S1600577520010954Forward modeling of pile-up events in liquid scintillator detectors for neutron emission spectroscopy
. Rev. Sci. Instrum. 92,Sum peak probability estimation in radiation measurement
. Measurement 174,The neutron-gamma pulse shape discrimination method for neutron flux detection in the ITER
. Plasma Sci. Technol. 15, 5 (2013). https://doi.org/10.1088/1009-0630/15/5/04A spectrometer with baseline correction and fast pulse pile-up rejection for prompt gamma neutron activation analysis technology
. Rev. Sci. Instrum. 89,Pulse pile-up identification and reconstruction for liquid scintillator based neutron detectors
. Nucl. Instrum. Methods Phys. Res. A 897, 59-65 (2018). https://doi.org/10.1016/j.nima.2018.03.078Achieving efficient neutron and gamma discrimination in a highly stable 6Li-loaded Cs3Cu2I5 perovskite scintillator
. J. Phys. Chem. Lett. 13, 9066-9071 (2022). https://doi.org/10.1021/acs.jpclett.2c02643Pulse shape discrimination with selected elpasolite crystals
. IEEE Trans. Nucl. Sci. 59, 5 (2012). https://doi.org/10.1109/TNS.2012.2188646Pulse characteristics of CLYC and piled-up neutron-gamma discrimination using a convolutional neural network
. Nucl. Instrum. Methods Phys. Res. A 17,Performance of real-time neutron/gamma discrimination methods
. Nucl. Sci. Tech. 34, 8 (2023). https://doi.org/10.1007/s41365-022-01160-5Gamma/neutron classification with SiPM CLYC detectors using frequency-domain analysis for embedded real-time applications
. Nucl. Eng. Technol. 56, 745-752 (2024). https://doi.org/10.1016/j.net.2023.11.013A compact dual gamma neutron detector based on NaI(Tl+Li) scintillator readout with SiPM
. Crystals 12, 8 (2022). https://doi.org/10.3390/cryst12081077Assessment of a NaIL detector performance for radiation monitoring applications
. Eur. Phys. J. Spec. Top. 232, 1477-1486 (2023). https://doi.org/10.1140/epjs/s11734-023-00896-4Pulse shape discrimination of Cs2LiYCl6:Ce3+ detectors at high count rate based on triangular and trapezoidal filters
. Nucl. Instrum. Methods Phys. Res. A 866, 129-133 (2017). https://doi.org/10.1016/j.nima.2017.06.007Artificial neural network algorithms for pulse shape discrimination and recovery of piled-up pulses in organic scintillators
. Ann. Nucl. Energy. 120, 410-421 (2018). https://doi.org/10.1016/j.anucene.2018.05.054Piled-up neutron-gamma discrimination system for CLLB using convolutional neural network
. J. Instrum. 17,Discrimination of neutrons and gamma rays in plastic scintillator based on pulse-coupled neural network
. Nucl. Sci. Tech. 32, 82 (2021). https://doi.org/10.1007/s41365-021-00915-wArtificial neural networks for neutron/γ discrimination in the neutron detectors of NEDA
. Nucl. Instrum. Methods Phys. Res. A 986,Technique for the measurement of intrinsic pulse-shape discrimination for organic scintillators using tagged neutrons
. Nucl. Instrum. Methods Phys. Res. A 1039,Labeling strategy to improve neutron/gamma discrimination with organic scintillator
. Nucl. Eng. Technol. 55, 4057-4065 (2023). https://doi.org/10.1016/j.net.2023.07.024Quick algorithms for real-time discrimination of neutrons and gamma ray
. J. Radioanal. Nucl. Chem. 303, 583-599 (2015). https://doi.org/10.1007/s10967-014-3406-5Trapezoidal pulse shaping for pile-up pulse identification in X-ray spectrometry
. Chinese Phys. C 39, 6 (2015). https://doi.org/10.1088/1674-1137/39/6/068201Optimization of pulse shape discrimination based on frequency domain for SiPM-based NaIL scintillator detector
. J. Inst. 19, 3 (2024). https://doi.org/10.1088/1748-0221/19/03/P03014Neutron-gamma discrimination based on support vector machine combined to nonnegative matrix factorization and continuous wavelet transform
. Measurement 149,Neutron-gamma discrimination method based on blind source separation and machine learning
. Nucl. Sci. Tech. 32, 18 (2021). https://doi.org/10.1007/s41365-021-00850-wPulse pile-up correction by particle swarm optimization with double-layer parameter identification model in X-ray spectroscopy
. J. Sign. Process. Syst. 94, 377-386 (2022). https://doi.org/10.1007/s11265-021-01698-4Advanced algorithms for retrieving pileup peaks of digital alpha spectroscopy using antlions and particle swarm optimizations
. Nucl. Sci. Tech. 31, 37 (2020). https://doi.org/10.1007/s41365-020-0745-5Unfolding-synthesis technique for digital pulse processing, part 1: Unfolding
. Nucl. Instrum. Methods Phys. Res. A 805, 63-71 (2016). https://doi.org/10.1016/j.nima.2015.07.040Unfolding-synthesis technique for digital pulse processing, Part 2: Synthesis
. Nucl. Instrum. Methods Phys. Res. A 1004,A pulse-shape discrimination method for improving Gamma-ray spectrometry based on a new digital shaping filter
. Radiat. Phys. Chem. 145, 193-201 (2018). https://doi.org/10.1016/j.radphyschem.2017.10.023Heterogeneous quasi-continuous spiking cortical model for pulse shape discrimination
. Electronics 12, 2234 (2023). https://doi.org/10.3390/electronics12102234A technique for the reduction of pulse pile-up effect in pulse-shape discrimination of organic scintillation detectors
. Nucl. Eng. Technol. 52, 360-365 (2020). https://doi.org/10.1016/j.net.2019.07.035Pile-up real time pulse-shape discrimination based on ballistic deficit measurement and digital time-invariant pulse shaping
. in IEEE Nuclear Science Symposium and Medical Imaging Conference Proceedings (NSS/MIC), 1-5 (2018). https://doi.org/10.1109/NSSMIC.2018.8824502Neutron-gamma discrimination based on bipolar trapezoidal pulse shaping using FPGAs in NE213
. Nucl. Instrum. Methods Phys. Res. A 694,Baseline restoration and pile-up correction based on bipolar cusp-like shaping for high-resolution radiation spectroscopy
. J. Korean Phys. Soc. 68, 8 (2016). https://doi.org/10.3938/jkps.68.960Pulse-shaping method for real-time neutron/gamma discrimination at low sampling rates
. Nucl. Sci. Tech. 34, 165 (2023). https://doi.org/10.1007/s41365-023-01306-zTrapezoidal pile-up nuclear pulse parameter identification method based on deep learning transformer model
. Appl. Radiat. Isot. 190,Self-adaptive pulse shape identification by using Gaussian mixture model
. Radiat. Meas. 172,Li co-doped NaI:Tl (NaIL) – A large volume neutron-gamma scintillator with exceptional pulse shape discrimination
. IEEE Trans. Nucl. Sci. 64, 8 (2017). https://doi.org/10.1109/TNS.2017.2721398Study of sampling rate influence on neutron-gamma discrimination with stilbene coupled to a silicon photomultiplier
. Appl. Radiat. Isot. 128, 120-124 (2017). https://doi.org/10.1016/j.apradiso.2017.06.036Pulse shape discrimination in inorganic and organic scintillators
. I. Nucl. Instrum. Methods 95, 141-153 (1971) https://doi.org/10.1016/0029-554X(71)90054-1The use of neutron intensity calibrated 9Be(α, n) sources as 4438 keV gamma-ray references standards
. Nucl. Instrum. Methods Phys. Res. A 281, 103-116 (1989) https://doi.org/10.1016/0168-9002(89)91221-7Particle discrimination and fast neutron response for a NaIL:Tl and a NaI:Tl scintillator detector
. Nucl. Instrum. Methods Phys. Res. A 978,The authors declare that they have no competing interests.

