# Nonlinear Correction Methods of Temperature-Caused Peak Shift for a NaI(Tl) Gamma-Ray Spectrometer

Authors: Jinfei Wu; Juan Zhai; Wanchang Lai; Hongjian Lin; Chenhao Zeng; Runqiu Gu; Shaoqin Li; Yunrui Jiang; Jie Shi; Bo Zhang
Journal: Journal of Spectroscopy
 (2023)

---

## Abstract

NaI(Tl) detectors are frequently operated under unstable temperature conditions when used in an open environment. Temperature changes would result in a peak shift and spectral distortion during measurement. Two easy-to-implement methodologies are proposed to stabilize the measured spectrum without the necessity of adjusting the gain, which are a correction algorithm for temperature-caused peak-shift based on multiple characteristic peak area weighting factors and an interpolation correction algorithm based on multicharacteristic peak sequence. Both of them can be used when the relative channel displacement of characteristic peaks in the spectrum due to temperature changes is not constant. Experimental data obtained under controlled temperature conditions in the laboratory were adopted to correct a spectrum, with joint consideration of some known characteristic peaks, such as40K, U (214Bi), or Th (208Tl) peaks. Through constructing a reversible temperature coefficient matrix, one can easily obtain the coefficients of the n-th polynomial describing the influence of temperature on peak position, which presents their nonlinear mathematical relationship. Then, corrections of these two effects can also be easily calculated. Comparing the experimental results, peak positions before and after correction, it is proved that the interpolation correction algorithm based on multicharacteristic peak sequence has better correction accuracy, but the temperature-caused peak shift correction algorithm based on the multicharacteristic peak area weighting factor has a shorter calibration time.


---

## Body

## 1. Introduction

NaI(Tl) scintillation detectors are still widely used in many applications nowadays [1–3]. In most applications, they are used in a laboratory or in an open environment for short-time measurements, where temperature changes are pretty inappreciable [4]. However, when used in an open outdoor environment for a long time, detectors are likely to encounter a wide range of temperature variations [4, 5]. In this case, their performance will be obviously affected either by the temperature effect on the detector crystal itself or the electronic components [6, 7]. Temperature changes may ultimately cause gain instabilities and probably lead to a peak shift and then spectral distortion [8]. There are many reasons for spectrum peak shifts, such as the temperature effect of the photomultiplier tube [4, 7, 9, 10] and the crystal’s light output [11–13], the decay time constant of the scintillator [7, 11, 14], and the temperature characteristics of other associated electronic components [8]. It is difficult to distinguish the primary cause for spectrum peak shift only from the simple temperature effects between crystals and electronics.There are already several kinds of available spectrum stabilization methods in the literature [4]. The first category is to stabilize the spectrum by adjusting the gain; Shepard et al. achieved it by applying an electronic reference pulse to generate a known equivalent energy in the spectrum with an easily recognized peak position [15]. Pausch et al. attached an external radioactive source to the detector [5, 15], utilized some radioactive isotopes from the natural background, and analyzed the temperature dependence of a light pulse’s decay time using LEDs as reference light sources [5, 16]. Casanovas et al. used some radioactive isotopes from an inner contaminant [4]. Zeng et al. presented a frequency spectrum analysis method for the natural gamma-ray background spectrum by calculating the overall spectral drift of the natural gamma-ray spectrum [17].The previously described methods are all based on an automatic gain adjusting system, which is not suitable for systems only including analogue gain control. The second category is to stabilize the spectrum without adjusting the gain. Csurgai et al. elaborated on a simple method for energy recalibration of scintillation detectors at different temperatures [18], which can be used in software processing. Bu et al. adopted some simple offline methods to correct the drift of a gamma spectrum [19]. Casanovas et al. proposed some software algorithms [4] to correct spectrum drift by adopting experimental data obtained under controlled temperatures in the laboratory, such as using one known peak (K peak for the NaI(Tl) detector) in the spectrum or using an external source. Under normal circumstances, the spectrum is usually corrected in the channel domain. Wang et al. presented a correction method for gamma spectra based on the system transformation theory of random signals. Using this method, the theoretical deposition energy spectrum (i.e., the corrected spectrum) can be derived from the corresponding measured spectrum without any mathematical approximation [20]. Mitra et al. proposed another method based on the assumption that the spectrum obtained at measurement temperature represents the same statistical distribution as that at reference temperature but with different energy scales [21]. Rezaei Moghaddam et al. suggested a “waiting time” before long-time measurements to avoid the channel shifting effects, which finally improved the detector’s resolution [22].All of these software algorithms are based on the assumption that the relative channel displacement due to temperature changes is approximately the same for all characteristic peaks. In this study, we describe two easy-to-implement methodologies to correct the peak shift of the spectrum without continuously adjusting the gain.


## 2. Nonlinear Correction Methods of Temperature-Caused Peak Shift

In the past, for most of the correction methods, it has been assumed that the drift direction of each peak and the relative channel displacement due to temperature changes are approximately the same. But the actual situation may be different. When this assumption is not true, those previously studied methods will meet challenges. Channel shifts caused by temperature changes may invalidate the energy calibration and lead to the wrong identification of radionuclides.


### 2.1. Model Establishment of Temperature and Peak Position

It is assumed here that for a fixed bias and gain, the channel shift of peak position only depends on the temperature.For the detector, at the constant reference temperatureT0 (e.g., T0 = 25°C), the peak position Pj is also constant. Setting the sampling time and then getting the background counts at different preset temperatures Tj, j∈1,m, in the approximate temperature range of 0°C to 50°C, we need to find the peak positions Pj, j∈1,m, of the spectrum after deducting the background at the corresponding temperature Tj,. The relationship between temperature Tj, and peak position Pj can be expressed by binomial expansion as in equation (1).(1)Pj=fTj=a0+a1Tj+a2Tj2+…+anTjn=∑i=0naiTji.In equation (1), j=1,2,…,m, and α0,α1, ……αn are coefficients of the temperature and peak position’s nth polynomial. Equation (2) is the matrix representation of equation (1).(2)Pj=1TjTj2⋯⋯Tjna0a1a2⋮an.After the experiments are carried out at different temperatures fromT1 to Tm, equation (2) can be extended to equation (3) by using nth order polynomial fitting.(3)P1P2⋮Pm=1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯Tmna0a1a2⋮an,(4)T=1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯Tmn.The mathematical relationship between temperature and peak position may be nonlinear. After obtaining the experimental data of temperature and peak position, the correction coefficients ofnth order polynomial can be quickly obtained by matrix operations. It is necessary to ensure that the constructed temperature coefficient matrix T, which is shown in equation (4), is a square matrix. Therefore, when the n value of the nth order polynomial is chosen to be m − 1, the temperature matrix T becomes an m-order square matrix. When the temperature coefficient matrix T is a reversible nonsingular matrix, the correction coefficients α0, α1, …, αn of the nth order polynomial, shown in vector A, are determined by the following equation (5).(5)A=a0a1a2⋮an=1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯Tmn−1P1P2⋮Pm.When the temperature coefficient matrixT is an irreversible singular matrix, its Moore–Penrose generalized inverse matrix T−1, which is shown in equations (6) and (7), can be used instead. M is just an intermediate process matrix.(6)M=1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯TmnT1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯Tmn−1,(7)T−1=M×1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯TmnT.The unified expression of the correction coefficients vectorA of the nth order polynomial is described by equation (8).(8)A=T−1P1P2⋮Pm.


### 2.2. Calculation Method of Temperature-Caused Peak-Drift Correction Amount∆P

SupposePs is a peak position at the standard temperature Ts, and Pj is a peak position at temperature Tj. Then, the peak position Pj at temperature Tj needs to be corrected to a new peak position Pj^ at standard temperature Ts. Equation (9) can be easily deduced from equation (1) replacing Tj by Ts in it.(9)Ps=fTs=a0+a1Ts+a2Ts2+…+anTsn=∑i=0naiTsi.So, the temperature-caused peak-shift correction amount∆P from Tj to Ts can be calculated by using equation (1) minus equation (9), which is listed in equation (10) and in matrix form in equation (11):(10)∆P=Pj−Ps=∑i=0naiTji−Tsi,(11)∆P=0Tj−TsTj2−Ts2⋯Tjn−Tsna0a1a2⋮an.Therefore, the temperature-caused peak shift can be corrected by applying equation (12), in which Pj is the peak position before correction and Pj^ is the peak position after correction.(12)Pj^=Pj−∆P=Pj−0Tj−TsTj2−Ts2⋯Tjn−Tsna0a1a2⋮an.


### 2.3. Temperature-Caused Peak-Shift Correction Algorithm Based on the Multicharacteristic Peak Area Weighting Factor

According to the correction algorithm described in chapters 2.1 and 2.2, one appointed characteristic peak can be precisely adjusted to the desired characteristic peak position at a specified temperature. In some cases, the relative channel displacement caused by temperature changes is not the same for every characteristic peak. When the temperature-caused peak-shift correction amount is calculated by using a single characteristic peak, such as the K peak of40K, a 1.46 MeV gamma-ray, the K peak will be corrected perfectly. But it cannot guarantee that other characteristic peaks such as U peak (214Bi, 1.76 MeV gamma-ray) or Th peak (208Tl, 2.62 MeV gamma-ray) can be synchronously corrected to the corresponding appointed peak position. That means when various radionuclides, such as K, U, and Th elements, and their contents in a mineral sample need to be determined, using a single characteristic peak (e.g., K peak) for correction will sacrifice the correction effect of other characteristic peaks (e.g., Th or U peak), thus finally affecting the measurement accuracy. Therefore, the correction algorithm based on the construction of the reversible temperature coefficient matrix in chapters 2.1 and 2.2 needs to be improved, and then, temperature-caused peak-shift correction algorithm based on a multicharacteristic peak area weighting factor is proposed.According to the correction algorithm mentioned previously, the reversible temperature coefficient matrix is constructed, and correction coefficients of the temperature of K peak, U peak, and Th peak position models are calculated, respectively. Then, correction amounts∆PK, ∆PU, and ∆PTh are obtained, respectively. The total correction amount ∆Ptotal of temperature-caused peak-shift correction algorithm based on the multicharacteristic peak area weighting factor can be described by equations (13)–(16).(13)∆Ptotal=sK∆PK+sU∆PU+sTh∆PTh,(14)sK=AKAK+AU+ATh,(15)sU=AUAK+AU+ATh,(16)sTh=AThAK+AU+ATh.In equation (13), sK, sU, and sTh are characteristic peak area weighting factors, and the sum of the three is equal to 1. AK, AU, and ATh are the peak areas of K, U, and Th peaks at standard temperature. The method chosen to solve the area of each characteristic peak should be the same one. This method also allows two characteristic peaks to be selected for correction. At this time, only two corresponding characteristic peaks related parameters are retained in the calculation equation (13). When there is only one characteristic peak chosen for correction, temperature-caused peak-shift correction algorithm based on the multicharacteristic peak area weighting factor just simplifies the method described in chapters 2.1 and 2.2. When ∆Pk = ∆PU = ∆PTh, equation (13) can be transformed to equations (17)–(19).(17)∆Ptotal=sK∆PK+sU∆PK+sTh∆PK=sK+sU+sTh×∆PK=∆PK,(18)∆Ptotal=sK∆PU+sU∆PU+sTh∆PU=sK+sU+sTh×∆PU=∆PU,(19)∆Ptotal=sK∆PTh+sU∆PTh+sTh∆PTh=sK+sU+sTh×∆PTh=∆PThFrom equations (17)–(19), the total correction amount is equal to the correction amount of every single characteristic peak, shown in equation (20).(20)∆Ptotal=∆Pk=∆PU=∆PTh.When the K peak positionPk corresponding to any temperature Tk is corrected to the K peak position Pk^ corresponding to the standard temperature Ts, the total correction amount ∆Ptotal, which can be positive or negative, needs to be subtracted, as shown in equation (21). The similar correction formulas for characteristic peaks of U and Th are shown in equations (22) and (23).(21)PjK^=PjK−∆Ptotal,(22)PjU^=PjU−∆Ptotal,(23)PjTh^=PjTh−∆Ptotal.


### 2.4. Interpolation Correction Algorithm Based on Multicharacteristic Peak Sequence

Applying an interpolation correction algorithm, the correction amount∆Pi corresponding to a single characteristic peak correction (∆Pi can be ∆PK, ∆PU, and ∆PTh) needs to be calculated first, which has been described in Chapter 2.2. Secondly, at least two characteristic peaks need to be chosen. Using the first chosen characteristic peak to finish the first correction step is to apply the correction amount ∆Pi. Then, an interpolation offset ∆PInsert, which can be obtained from equation (24), is used in the second correction step between the first and second appointed characteristic peaks.(24)∆PInsert=∆Pi−∆Pj.In equation (24), the correction amount ∆Pj is used in the second correction step with another chosen characteristic peak. If there are other characteristic peaks existing between the first and second chosen ones in this method, the area calculation accuracy of these characteristic peaks, which are not chosen as corrected characteristic peaks, may be affected to some degree. Therefore, it is better that no other characteristic peaks exist between the first and the second chosen characteristic peaks for correction. The amount ∆PInsert can be positive or negative. When the offset is positive, it means to insert ∆PInsert channels between the two appointed characteristic peaks. Conversely, when the offset is negative, it means to delete ∆PInsert channels between the two appointed characteristic peaks.In order to reduce the potential adverse effects on peak area calculations, the interpolation interval selected between the two characteristic peak positions cannot overlap with the calculation interval of characteristic peak areas. The count value of each channel inserted is set to be a constant or follow another specified algorithm. In this way, nonimportant peak information is deleted, and important characteristic peak information is retained, which can ensure the accuracy of subsequent quantitative analysis.


## 2.1. Model Establishment of Temperature and Peak Position

It is assumed here that for a fixed bias and gain, the channel shift of peak position only depends on the temperature.For the detector, at the constant reference temperatureT0 (e.g., T0 = 25°C), the peak position Pj is also constant. Setting the sampling time and then getting the background counts at different preset temperatures Tj, j∈1,m, in the approximate temperature range of 0°C to 50°C, we need to find the peak positions Pj, j∈1,m, of the spectrum after deducting the background at the corresponding temperature Tj,. The relationship between temperature Tj, and peak position Pj can be expressed by binomial expansion as in equation (1).(1)Pj=fTj=a0+a1Tj+a2Tj2+…+anTjn=∑i=0naiTji.In equation (1), j=1,2,…,m, and α0,α1, ……αn are coefficients of the temperature and peak position’s nth polynomial. Equation (2) is the matrix representation of equation (1).(2)Pj=1TjTj2⋯⋯Tjna0a1a2⋮an.After the experiments are carried out at different temperatures fromT1 to Tm, equation (2) can be extended to equation (3) by using nth order polynomial fitting.(3)P1P2⋮Pm=1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯Tmna0a1a2⋮an,(4)T=1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯Tmn.The mathematical relationship between temperature and peak position may be nonlinear. After obtaining the experimental data of temperature and peak position, the correction coefficients ofnth order polynomial can be quickly obtained by matrix operations. It is necessary to ensure that the constructed temperature coefficient matrix T, which is shown in equation (4), is a square matrix. Therefore, when the n value of the nth order polynomial is chosen to be m − 1, the temperature matrix T becomes an m-order square matrix. When the temperature coefficient matrix T is a reversible nonsingular matrix, the correction coefficients α0, α1, …, αn of the nth order polynomial, shown in vector A, are determined by the following equation (5).(5)A=a0a1a2⋮an=1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯Tmn−1P1P2⋮Pm.When the temperature coefficient matrixT is an irreversible singular matrix, its Moore–Penrose generalized inverse matrix T−1, which is shown in equations (6) and (7), can be used instead. M is just an intermediate process matrix.(6)M=1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯TmnT1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯Tmn−1,(7)T−1=M×1T1T121T2T22⋯⋯T1nT2n⋮⋮⋮⋱⋮1TmTm2⋯TmnT.The unified expression of the correction coefficients vectorA of the nth order polynomial is described by equation (8).(8)A=T−1P1P2⋮Pm.


## 2.2. Calculation Method of Temperature-Caused Peak-Drift Correction Amount∆P

SupposePs is a peak position at the standard temperature Ts, and Pj is a peak position at temperature Tj. Then, the peak position Pj at temperature Tj needs to be corrected to a new peak position Pj^ at standard temperature Ts. Equation (9) can be easily deduced from equation (1) replacing Tj by Ts in it.(9)Ps=fTs=a0+a1Ts+a2Ts2+…+anTsn=∑i=0naiTsi.So, the temperature-caused peak-shift correction amount∆P from Tj to Ts can be calculated by using equation (1) minus equation (9), which is listed in equation (10) and in matrix form in equation (11):(10)∆P=Pj−Ps=∑i=0naiTji−Tsi,(11)∆P=0Tj−TsTj2−Ts2⋯Tjn−Tsna0a1a2⋮an.Therefore, the temperature-caused peak shift can be corrected by applying equation (12), in which Pj is the peak position before correction and Pj^ is the peak position after correction.(12)Pj^=Pj−∆P=Pj−0Tj−TsTj2−Ts2⋯Tjn−Tsna0a1a2⋮an.


## 2.3. Temperature-Caused Peak-Shift Correction Algorithm Based on the Multicharacteristic Peak Area Weighting Factor

According to the correction algorithm described in chapters 2.1 and 2.2, one appointed characteristic peak can be precisely adjusted to the desired characteristic peak position at a specified temperature. In some cases, the relative channel displacement caused by temperature changes is not the same for every characteristic peak. When the temperature-caused peak-shift correction amount is calculated by using a single characteristic peak, such as the K peak of40K, a 1.46 MeV gamma-ray, the K peak will be corrected perfectly. But it cannot guarantee that other characteristic peaks such as U peak (214Bi, 1.76 MeV gamma-ray) or Th peak (208Tl, 2.62 MeV gamma-ray) can be synchronously corrected to the corresponding appointed peak position. That means when various radionuclides, such as K, U, and Th elements, and their contents in a mineral sample need to be determined, using a single characteristic peak (e.g., K peak) for correction will sacrifice the correction effect of other characteristic peaks (e.g., Th or U peak), thus finally affecting the measurement accuracy. Therefore, the correction algorithm based on the construction of the reversible temperature coefficient matrix in chapters 2.1 and 2.2 needs to be improved, and then, temperature-caused peak-shift correction algorithm based on a multicharacteristic peak area weighting factor is proposed.According to the correction algorithm mentioned previously, the reversible temperature coefficient matrix is constructed, and correction coefficients of the temperature of K peak, U peak, and Th peak position models are calculated, respectively. Then, correction amounts∆PK, ∆PU, and ∆PTh are obtained, respectively. The total correction amount ∆Ptotal of temperature-caused peak-shift correction algorithm based on the multicharacteristic peak area weighting factor can be described by equations (13)–(16).(13)∆Ptotal=sK∆PK+sU∆PU+sTh∆PTh,(14)sK=AKAK+AU+ATh,(15)sU=AUAK+AU+ATh,(16)sTh=AThAK+AU+ATh.In equation (13), sK, sU, and sTh are characteristic peak area weighting factors, and the sum of the three is equal to 1. AK, AU, and ATh are the peak areas of K, U, and Th peaks at standard temperature. The method chosen to solve the area of each characteristic peak should be the same one. This method also allows two characteristic peaks to be selected for correction. At this time, only two corresponding characteristic peaks related parameters are retained in the calculation equation (13). When there is only one characteristic peak chosen for correction, temperature-caused peak-shift correction algorithm based on the multicharacteristic peak area weighting factor just simplifies the method described in chapters 2.1 and 2.2. When ∆Pk = ∆PU = ∆PTh, equation (13) can be transformed to equations (17)–(19).(17)∆Ptotal=sK∆PK+sU∆PK+sTh∆PK=sK+sU+sTh×∆PK=∆PK,(18)∆Ptotal=sK∆PU+sU∆PU+sTh∆PU=sK+sU+sTh×∆PU=∆PU,(19)∆Ptotal=sK∆PTh+sU∆PTh+sTh∆PTh=sK+sU+sTh×∆PTh=∆PThFrom equations (17)–(19), the total correction amount is equal to the correction amount of every single characteristic peak, shown in equation (20).(20)∆Ptotal=∆Pk=∆PU=∆PTh.When the K peak positionPk corresponding to any temperature Tk is corrected to the K peak position Pk^ corresponding to the standard temperature Ts, the total correction amount ∆Ptotal, which can be positive or negative, needs to be subtracted, as shown in equation (21). The similar correction formulas for characteristic peaks of U and Th are shown in equations (22) and (23).(21)PjK^=PjK−∆Ptotal,(22)PjU^=PjU−∆Ptotal,(23)PjTh^=PjTh−∆Ptotal.


## 2.4. Interpolation Correction Algorithm Based on Multicharacteristic Peak Sequence

Applying an interpolation correction algorithm, the correction amount∆Pi corresponding to a single characteristic peak correction (∆Pi can be ∆PK, ∆PU, and ∆PTh) needs to be calculated first, which has been described in Chapter 2.2. Secondly, at least two characteristic peaks need to be chosen. Using the first chosen characteristic peak to finish the first correction step is to apply the correction amount ∆Pi. Then, an interpolation offset ∆PInsert, which can be obtained from equation (24), is used in the second correction step between the first and second appointed characteristic peaks.(24)∆PInsert=∆Pi−∆Pj.In equation (24), the correction amount ∆Pj is used in the second correction step with another chosen characteristic peak. If there are other characteristic peaks existing between the first and second chosen ones in this method, the area calculation accuracy of these characteristic peaks, which are not chosen as corrected characteristic peaks, may be affected to some degree. Therefore, it is better that no other characteristic peaks exist between the first and the second chosen characteristic peaks for correction. The amount ∆PInsert can be positive or negative. When the offset is positive, it means to insert ∆PInsert channels between the two appointed characteristic peaks. Conversely, when the offset is negative, it means to delete ∆PInsert channels between the two appointed characteristic peaks.In order to reduce the potential adverse effects on peak area calculations, the interpolation interval selected between the two characteristic peak positions cannot overlap with the calculation interval of characteristic peak areas. The count value of each channel inserted is set to be a constant or follow another specified algorithm. In this way, nonimportant peak information is deleted, and important characteristic peak information is retained, which can ensure the accuracy of subsequent quantitative analysis.


## 3. Experiment and Discussion

In the process of natural gamma-ray measurement, the radioactive series are usually considered to be balanced. Therefore, the activity (or content) of the parents (K, U, or Th) or other offspring can be calculated by measuring the activity (content) of any of the offspring. In this section, the 1.46 MeV gamma-ray of40K, the 1.76 MeV gamma-ray of 214Bi, and the 2.62 MeV gamma-ray of 208Tl are chosen to represent the typical K peak, U peak, and Th peak.


### 3.1. Experimental Setup

In this experiment, the two detectors used are both Φ3’ × 3’ NaI(Tl) scintillation detectors with137Cs (0.662 MeV) gamma-ray. The IED-3000B digital gamma spectrometers with a full width at half maximum (FWHM) of 8.1% (@661 keV, Cs-137) are made in China and are identified as IED_309 and IED_310, respectively. The range of spectra is from 30 keV to 3000 keV. To validate these methods, two sets of 8 spectra for each detector are collected in the approximate temperature range of 0°C to 42°C, which is the manufacturer’s recommended operating range. A refrigerator and an oven are used to control the temperature changes, and all of the temperatures were measured by using a Pt100 temperature probe with an AA tolerance level, which is about ±0.1°C, and temperature values are eventually kept as integers. The experimental data are obtained using a radioactive ore sample as the source. Each spectrum is collected after thermal stability has been achieved (at least 1 h of constant temperature).It is known that temperature changes can affect the detector’s performance either in the crystal itself or the electronics, which finally can lead to instabilities and result in a peak shift and spectral distortion during measurement. In this study, it is assumed that the peak position drift is only related to temperature. For each detector, two sets of spectra are collected at 8 different temperatures; the first set of spectra is collected using an ore sample of known composition, and the second set measures the background. After obtaining all the gamma spectra of these two detectors, the shift of K and Th peak positions with temperature are analyzed.


### 3.2. Nonlinear Relationship of Temperature and Characteristic Peak Position

After performing peak searching (e.g., K peak and Th peak) using the same method in the spectra obtained by detector IED_310, it is obvious that the relationship between temperature and corresponding characteristic peak position is nonlinear. Peak positions of K and Th characteristic peaks at different temperatures for IED_310 are recorded in Table1. Compared with the peak position under standard temperature, K peak and Th peak positions have obviously drifted, which are shown in Figure 1(a). The two curves of the K and Th peak positions at different temperatures are nonlinear.Table 1
Peak position at different temperatures (IED_310).
NamesEnergies (MeV)Peak position at different temperatures (channels)0°C6°C12°C17°C26°C31°C36°C42°CK (40K)1.46361348341355376375437472U (214Bi)1.76431416406421440438496532Th (208Tl)2.62632613605618622613670698Figure 1
(a) Peak position in the channel as a function of temperature for the NaI(Tl) detector before correction (IED_310). (b) Relative deviation of uncorrected peak positions compared to their reference peak positions at the standard temperature.
(a)(b)Relative deviations (RD%=Pj−Ps/Ps×100) of the uncorrected peak positions of K or Th characteristic peak positions at other temperatures compared to their reference peak positions at the standard temperature are shown in Figure 1(b).


### 3.3. Validation of Temperature-Caused Peak-Shift Correction Algorithm by Using a Single Characteristic Peak

In order to better display and compare the peak positions before and after correction, only counts of some continuous channels (from channel 300 to channel 700, covering three characteristic peaks of interest) are selected for display at different temperatures in Figures2–5.Figure 2
(a) Uncorrected spectrum of an ore sample measured by NaI(Tl) detector at 26°C (IED_310). (b) The raw measured spectra as a function of temperature for the NaI(Tl) detector IED_310 (from channel 300 to channel 700).
(a)(b)Figure 3
(a) The raw measured spectra are corrected using the correction amount∆PK obtained from the K peak (IED_310). (b) The raw measured spectra are corrected using the correction amount ∆PTh obtained from the Th peak (IED_310).
(a)(b)Figure 4
(a) The raw measured spectra are corrected using temperature-caused peak-shift correction algorithm based on the multicharacteristic peak area weighting factor (IED_310). (b) The raw measured spectra are corrected using an interpolation correction algorithm based on multicharacteristic peak sequence (IED_310).
(a)(b)Figure 5
(a) The raw measured spectra as a function of temperature for the NaI(Tl) detector (IED_309). (b) The raw measured spectra are corrected using an interpolation correction algorithm based on multicharacteristic peak sequence (IED_309).
(a)(b)During the experiment, 26°C is preset as the standard temperature. Compared with the corresponding characteristic peak positions of K and Th under the standard temperature, the characteristic peak positions of K and Th peaks at other temperatures have been dramatically shifted.According to the general fitting rule, after 8 spectra for each detector have been collected in the approximate temperature range of 0°C to 42°C, the 7th degree polynomial is selected to model the nonlinear relationship of temperature and peak position, and then 8th order temperature coefficient square matrix is constructed, which can achieve the best single peak position correction effect. Two correction amounts∆PK and ∆PTh are calculated, which are shown in Table 2. Then, equations (11) and (12) are used to correct the characteristic peak position to the one under standard temperature.Table 2
Correction amount of peak-shift correction algorithm at different temperatures (IED_310).
Correction amount (channels)Temperature (°C)06121726313642∆PK−15−28−35−210−16196∆PTh10−9−17−40−94876∆PTotal−10−24−31−180−35992∆PInsert−2519−18−17081320Figure2(a) shows the uncorrected spectrum of an ore sample measured by the NaI(Tl) detector at 26°C (IED_310). Figure 2(b) shows the raw measured spectra as a function of temperature for the NaI(Tl) detector IED_310 (from channel 300 to channel 700). In Figures 2–5, mixed peaks are composed of various energies of uranium series and thorium series, with energies between 2.0–2.3 MeV. Figure 3(a) shows the measured spectra (IED_310) are corrected using the correction amount ∆PK obtained from the K peak. Under the circumstances, the corrected K peak fits well, but the corrected Th peak may not meet the requirements. Figure 3(b) shows the measured spectra (IED_310) are corrected using the correction amount ∆PTh obtained from the Th peak. In this case, the corrected Th peak fits well, but the corrected K peak may not meet the requirements. In Figures 2–5, the horizontal axis represents the channel number, the vertical axis means the temperature at acquisition, and the colour scale indicates the counting rate, which is red for higher values and blue for lower ones. The red, green, and blue lines on the waterfall plots (bottom) indicate which spectra (top) are represented by way of example. Figure 3 proves that the method based on the assumption that the relative channel displacement due to temperature changes is approximately the same for all channels cannot obtain a satisfied correction effect.


### 3.4. Validation of the Temperature-Caused Peak-Shift Correction Algorithm Based on the Multicharacteristic Peak Area Weighting Factor

K and Th characteristic peaks are chosen to correct the temperature drift. The correction amount∆Ptotal shown in Table 1 is calculated by using the transformation of equations (13)–(16), which takes no account of the U element. Then, we use equations (21) and (23) to correct the characteristic peak position under nonstandard temperature to the one under standard temperature.Figure4(a) shows that when adopting temperature-caused peak-shift correction algorithm based on the multicharacteristic peak area weighting factor, the peak positions of the K peak and Th peak have been improved to some extent, especially for the K peak. That is, because the single peak area of the K characteristic peak is larger, and the counting rate is higher. When calculating the total correction amount ∆Ptotal, the area weighting factor of the K characteristic peak is larger than that of the Th characteristic peak.


### 3.5. Validation of the Interpolation Correction Algorithm Based on Multicharacteristic Peak Sequence

K and Th characteristic peaks are selected for correction; the correction amount∆PK and ∆PTh is calculated first by the method described in chapters 2.1 and 2.2. The ∆PK is adopted to finish the first correction step, and then the correction amount ∆PInsert is obtained from equation (25), which is the interpolation amount between the K and Th characteristic peaks. This interpolation amount can be piecewise linear or constant.(25)∆PInsert=∆PK−∆PTh.When∆PInsert is positive, it first finds the midpoint position between K and Th characteristic peaks, inserts ∆PInsert/2 channels before the midpoint, and inserts the other ∆PInsert/2−1 channels after it. The count value of each channel inserted is equal to the count value at the midpoint channel. When ∆PInsert is negative, we need to find the midpoint position between K and Th characteristic peaks, delete ∆PInsert/2 channels before the midpoint, and delete the other ∆PInsert/2−1 channels after it. In general, inserting or deleting channels means that signal quantification must then be based on peak height fitting rather than peak integration. In order to improve the peak integration accuracy, the interpolation position should avoid the peak area calculation intervals of characteristic peak areas used for correction.This method is verified by two detectors with a satisfactory correction effect. For the spectra of IED_310,∆PK, ∆PTh, and ∆PInsert are calculated respectively, which are shown in Table 1. Also, the corrected spectra are shown in Figure 4(b).For the spectra of IED_309,∆PK,∆PTh, and ∆PInsert are shown in Table 3, and the raw measured spectra and the corrected spectra are shown in Figure 5. If U peaks need to be corrected together with the K and Th peaks, the calculated correction amount such as ∆PU, as its interpolation amount will be needed for the next correction step.Table 3
Correction amount of the interpolation correction algorithm based on multicharacteristic peak sequence at different temperatures (IED_309).
Correction amount (channels)Temperature (°C)39142126333741∆PK29145−10094688∆PTh532410−190−192158∆PInsert−24−10−590282530


## 3.1. Experimental Setup

In this experiment, the two detectors used are both Φ3’ × 3’ NaI(Tl) scintillation detectors with137Cs (0.662 MeV) gamma-ray. The IED-3000B digital gamma spectrometers with a full width at half maximum (FWHM) of 8.1% (@661 keV, Cs-137) are made in China and are identified as IED_309 and IED_310, respectively. The range of spectra is from 30 keV to 3000 keV. To validate these methods, two sets of 8 spectra for each detector are collected in the approximate temperature range of 0°C to 42°C, which is the manufacturer’s recommended operating range. A refrigerator and an oven are used to control the temperature changes, and all of the temperatures were measured by using a Pt100 temperature probe with an AA tolerance level, which is about ±0.1°C, and temperature values are eventually kept as integers. The experimental data are obtained using a radioactive ore sample as the source. Each spectrum is collected after thermal stability has been achieved (at least 1 h of constant temperature).It is known that temperature changes can affect the detector’s performance either in the crystal itself or the electronics, which finally can lead to instabilities and result in a peak shift and spectral distortion during measurement. In this study, it is assumed that the peak position drift is only related to temperature. For each detector, two sets of spectra are collected at 8 different temperatures; the first set of spectra is collected using an ore sample of known composition, and the second set measures the background. After obtaining all the gamma spectra of these two detectors, the shift of K and Th peak positions with temperature are analyzed.


## 3.2. Nonlinear Relationship of Temperature and Characteristic Peak Position

After performing peak searching (e.g., K peak and Th peak) using the same method in the spectra obtained by detector IED_310, it is obvious that the relationship between temperature and corresponding characteristic peak position is nonlinear. Peak positions of K and Th characteristic peaks at different temperatures for IED_310 are recorded in Table1. Compared with the peak position under standard temperature, K peak and Th peak positions have obviously drifted, which are shown in Figure 1(a). The two curves of the K and Th peak positions at different temperatures are nonlinear.Table 1
Peak position at different temperatures (IED_310).
NamesEnergies (MeV)Peak position at different temperatures (channels)0°C6°C12°C17°C26°C31°C36°C42°CK (40K)1.46361348341355376375437472U (214Bi)1.76431416406421440438496532Th (208Tl)2.62632613605618622613670698Figure 1
(a) Peak position in the channel as a function of temperature for the NaI(Tl) detector before correction (IED_310). (b) Relative deviation of uncorrected peak positions compared to their reference peak positions at the standard temperature.
(a)(b)Relative deviations (RD%=Pj−Ps/Ps×100) of the uncorrected peak positions of K or Th characteristic peak positions at other temperatures compared to their reference peak positions at the standard temperature are shown in Figure 1(b).


## 3.3. Validation of Temperature-Caused Peak-Shift Correction Algorithm by Using a Single Characteristic Peak

In order to better display and compare the peak positions before and after correction, only counts of some continuous channels (from channel 300 to channel 700, covering three characteristic peaks of interest) are selected for display at different temperatures in Figures2–5.Figure 2
(a) Uncorrected spectrum of an ore sample measured by NaI(Tl) detector at 26°C (IED_310). (b) The raw measured spectra as a function of temperature for the NaI(Tl) detector IED_310 (from channel 300 to channel 700).
(a)(b)Figure 3
(a) The raw measured spectra are corrected using the correction amount∆PK obtained from the K peak (IED_310). (b) The raw measured spectra are corrected using the correction amount ∆PTh obtained from the Th peak (IED_310).
(a)(b)Figure 4
(a) The raw measured spectra are corrected using temperature-caused peak-shift correction algorithm based on the multicharacteristic peak area weighting factor (IED_310). (b) The raw measured spectra are corrected using an interpolation correction algorithm based on multicharacteristic peak sequence (IED_310).
(a)(b)Figure 5
(a) The raw measured spectra as a function of temperature for the NaI(Tl) detector (IED_309). (b) The raw measured spectra are corrected using an interpolation correction algorithm based on multicharacteristic peak sequence (IED_309).
(a)(b)During the experiment, 26°C is preset as the standard temperature. Compared with the corresponding characteristic peak positions of K and Th under the standard temperature, the characteristic peak positions of K and Th peaks at other temperatures have been dramatically shifted.According to the general fitting rule, after 8 spectra for each detector have been collected in the approximate temperature range of 0°C to 42°C, the 7th degree polynomial is selected to model the nonlinear relationship of temperature and peak position, and then 8th order temperature coefficient square matrix is constructed, which can achieve the best single peak position correction effect. Two correction amounts∆PK and ∆PTh are calculated, which are shown in Table 2. Then, equations (11) and (12) are used to correct the characteristic peak position to the one under standard temperature.Table 2
Correction amount of peak-shift correction algorithm at different temperatures (IED_310).
Correction amount (channels)Temperature (°C)06121726313642∆PK−15−28−35−210−16196∆PTh10−9−17−40−94876∆PTotal−10−24−31−180−35992∆PInsert−2519−18−17081320Figure2(a) shows the uncorrected spectrum of an ore sample measured by the NaI(Tl) detector at 26°C (IED_310). Figure 2(b) shows the raw measured spectra as a function of temperature for the NaI(Tl) detector IED_310 (from channel 300 to channel 700). In Figures 2–5, mixed peaks are composed of various energies of uranium series and thorium series, with energies between 2.0–2.3 MeV. Figure 3(a) shows the measured spectra (IED_310) are corrected using the correction amount ∆PK obtained from the K peak. Under the circumstances, the corrected K peak fits well, but the corrected Th peak may not meet the requirements. Figure 3(b) shows the measured spectra (IED_310) are corrected using the correction amount ∆PTh obtained from the Th peak. In this case, the corrected Th peak fits well, but the corrected K peak may not meet the requirements. In Figures 2–5, the horizontal axis represents the channel number, the vertical axis means the temperature at acquisition, and the colour scale indicates the counting rate, which is red for higher values and blue for lower ones. The red, green, and blue lines on the waterfall plots (bottom) indicate which spectra (top) are represented by way of example. Figure 3 proves that the method based on the assumption that the relative channel displacement due to temperature changes is approximately the same for all channels cannot obtain a satisfied correction effect.


## 3.4. Validation of the Temperature-Caused Peak-Shift Correction Algorithm Based on the Multicharacteristic Peak Area Weighting Factor

K and Th characteristic peaks are chosen to correct the temperature drift. The correction amount∆Ptotal shown in Table 1 is calculated by using the transformation of equations (13)–(16), which takes no account of the U element. Then, we use equations (21) and (23) to correct the characteristic peak position under nonstandard temperature to the one under standard temperature.Figure4(a) shows that when adopting temperature-caused peak-shift correction algorithm based on the multicharacteristic peak area weighting factor, the peak positions of the K peak and Th peak have been improved to some extent, especially for the K peak. That is, because the single peak area of the K characteristic peak is larger, and the counting rate is higher. When calculating the total correction amount ∆Ptotal, the area weighting factor of the K characteristic peak is larger than that of the Th characteristic peak.


## 3.5. Validation of the Interpolation Correction Algorithm Based on Multicharacteristic Peak Sequence

K and Th characteristic peaks are selected for correction; the correction amount∆PK and ∆PTh is calculated first by the method described in chapters 2.1 and 2.2. The ∆PK is adopted to finish the first correction step, and then the correction amount ∆PInsert is obtained from equation (25), which is the interpolation amount between the K and Th characteristic peaks. This interpolation amount can be piecewise linear or constant.(25)∆PInsert=∆PK−∆PTh.When∆PInsert is positive, it first finds the midpoint position between K and Th characteristic peaks, inserts ∆PInsert/2 channels before the midpoint, and inserts the other ∆PInsert/2−1 channels after it. The count value of each channel inserted is equal to the count value at the midpoint channel. When ∆PInsert is negative, we need to find the midpoint position between K and Th characteristic peaks, delete ∆PInsert/2 channels before the midpoint, and delete the other ∆PInsert/2−1 channels after it. In general, inserting or deleting channels means that signal quantification must then be based on peak height fitting rather than peak integration. In order to improve the peak integration accuracy, the interpolation position should avoid the peak area calculation intervals of characteristic peak areas used for correction.This method is verified by two detectors with a satisfactory correction effect. For the spectra of IED_310,∆PK, ∆PTh, and ∆PInsert are calculated respectively, which are shown in Table 1. Also, the corrected spectra are shown in Figure 4(b).For the spectra of IED_309,∆PK,∆PTh, and ∆PInsert are shown in Table 3, and the raw measured spectra and the corrected spectra are shown in Figure 5. If U peaks need to be corrected together with the K and Th peaks, the calculated correction amount such as ∆PU, as its interpolation amount will be needed for the next correction step.Table 3
Correction amount of the interpolation correction algorithm based on multicharacteristic peak sequence at different temperatures (IED_309).
Correction amount (channels)Temperature (°C)39142126333741∆PK29145−10094688∆PTh532410−190−192158∆PInsert−24−10−590282530


## 4. Conclusions

In this study, several methods are presented to correct the peak shift without requiring gain adjustment, which are helpful to stabilize the gamma-ray spectrum obtained under unstable temperature conditions. When used in an open environment, all of these methods are applied by software after spectrum acquisition instead of adjusting the gain during the measurements. It is acceptable for detectors that relative deviation (RD%) is less than 3% in absolute value in the temperature range of 5°C and 50°C, or a smaller relative deviation (RD%) is below 2% in absolute value in the normal operating range of 0°C to 40°C. When the relative channel displacement due to temperature changes is not the same for all channels in the spectrum, the average relative deviation (RD%) of K and Th peak position’s channel has been still up to 3.20% after peak position correction if standard peak correction methods based on fitting a single characteristic peak for reference and a polynomial for the nonlinear shift of peak position with temperature is used.The first method uses multiple characteristic peaks for temperature-caused peak-shift correction by calculating the total correction amount∆Ptotal based on multicharacteristic peak area weighting factor, so in the calculation process of correction amount; priority is given to the characteristic peaks with larger peak area and higher count rate. In multiple characteristic peaks selection, the peaks with similar peak areas and count rates are advised to be selected, which will help to improve the comprehensive correction effect. Using a total correction amount ∆Ptotal to correct the whole spectrum at one time cannot ensure that each characteristic peak can be corrected perfectly. However, a comprehensive multipeak correction effect can be obtained by using it without multiple correction iterations. Furthermore, its average relative deviation (RD%) of the corrected peak position in the channel can bee decreased to 1.93% after correction.The second method uses an interpolation correction algorithm based on multicharacteristic peak sequence to correct the spectrum. First, a selected characteristic peak is used to finish the first correction step. Then, it calculates the interpolation amount∆PInsert and finds the interpolation position. In order to improve measurement accuracy, the interpolation position should avoid the peak area calculation intervals of characteristic peaks areas used for correction. In this paper, the midpoint position between two characteristic peak is chosen as the interpolation position. Through multiple iterative interpolation correction, its average relative deviation (RD%) has been dramatically decreased, which falls within the range of 0∼0.21% after peak position correction, and the absolute deviation is less than 1 channel.



---

*Source: 1590667-2023-02-13.xml*