APP下载

Calibrating the linearity between grayscale and element content for X-ray KES imaging of alloys

2022-02-23XiaoLuJuBiaoDengKeLiFuChengYuHaiPengZhangMingWeiXuGuoHaoDuHongLanXieBinLiTiQiaoXiao

Nuclear Science and Techniques 2022年1期

Xiao-Lu Ju • Biao Deng • Ke Li • Fu-Cheng Yu • Hai-Peng Zhang • Ming-Wei Xu • Guo-Hao Du • Hong-Lan Xie • Bin Li • Ti-Qiao Xiao

Abstract Doped elements in alloys significantly impact their performance.Conventional methods usually sputter the surface material of the sample,or their performance is limited to the surface of alloys owing to their poor penetration ability.The X-ray K-edge subtraction (KES)method exhibits great potential for the nondestructive in situ detection of element contents in alloys.However,the signal of doped elements usually deteriorates because of the strong absorption of the principal component and scattering of crystal grains.This in turn prevents the extensive application of X-ray KES imaging to alloys.In this study,methods were developed to calibrate the linearity between the grayscale of the KES image and element content.The methods were aimed at the sensitive analysis of elements in alloys.Furthermore,experiments with phantoms and alloys demonstrated that,after elaborate calibration,X-ray KES imaging is capable of nondestructive and sensitive analysis of doped elements in alloys.

Keywords X-ray KES imaging · Grayscale calibration ·Element analysis for alloy · Nondestructive imaging of elements

1 Introduction

The type,distribution,and content of elements in alloys significantly impact their performance,including heat resistance[1-3],machinability[3,4],strength[1,3-5],and plasticity [4,6].Conventional techniques based on mass spectrometry or spectroscopy have been developed to quantify the elements,including laser ablation inductively coupled plasma mass spectrometry [7-9],time-of-flight secondary ion mass spectrometry[10],nanoscale secondary ion mass spectrometry [11],laser-induced breakdown spectroscopy [12],and inductively coupled plasma atomic emission spectrometry[13].However,spectroscopic methods are destructive analysis methods that usually require sputtering of the surface material of the sample for composition analysis,and their repeatability cannot be assured.Alternatively,nondestructive methods,including scanning electron microscopy (SEM),transmission electron microscopy (TEM),and electron probe micro-analysis (EPMA),are used to determine the distribution of elements in alloys[5,14,15].Owing to their limited penetration ability,these methods are limited to the surface of alloys.Furthermore,X-ray spectroscopy methods,such as energy-dispersive X-ray fluorescence (EDXRF) and X-ray photoelectron spectroscopy(XPS),are also used to determine the elements in alloys[16,17].The sensitivity of the X-ray spectroscopic methods is relatively high.However,XPS is limited to the surface of the sample to detect the excited electrons.X-ray fluorescence (XRF) spectroscopy has been extensively employed to analyze element content and distribution[18,19].When combined with tomography,X-ray fluorescence tomography can image the three-dimensional distribution of elements in bulk samples [20-23].In X-ray fluorescence imaging,pencil-beam scanning is usually employed to realize spatial resolution,which results in timeconsuming data acquisition.Full-field X-ray fluorescence imaging was developed to obtain an element distribution image without beam scanning[24].Owing to the extremely low flux of X-ray fluorescence,a long exposure time is required to accumulate a sufficiently high signal-to-noise ratio.With the aim of quick and efficient imaging of element distribution in alloys,an imaging strategy,which shows a significant difference around the K-edge of X-ray absorption with respect to specific elements,is a good candidate.

X-ray K-edge subtraction (KES) imaging was proposed by Jacobson et al.[25].This imaging technique can be used to perform full field,in situ,and rapid imaging.The KES method was successfully used to observe copper ion adsorption in polymer particles [26].By illuminating the biomedical samples with two monochromatic beams at energies before and after the k-edge of the element of interest,the KES method can realize real-time full-field imaging [27,28].In principle,the grayscale of the KES image is proportional to the content of the element of interest,and it is commonly used to depict its spatial distribution.Bayat et al.used the gray value of KES imaging to observe the distribution of elements of interest and control the inhaled gas content in biological tissues via a ventilation device to realize quantitative functional lung imaging [29-31].Elleaume et al.measured the concentration of the contrast agent based on the grayscale of the KES image together with the theoretical attenuation coefficient of the element of interest in a biomedical phantom[32].Furthermore,when combined with tomography,the KES method was used for three-dimensional mapping of strontium in bone supplemented with theoretical analysis based on a priori information [33].To date,most applications of KES for element evaluation are for biomedical samples,but seldom for alloys.In alloys,the principal component of alloys in a bulk sample dominates the X-ray absorption during KES imaging.Furthermore,scattering due to crystal grains in alloys contributes significantly to the deterioration of the signals generated from the doped elements.Hence,the signal-to-noise ratio of KES images of specific elements is severely deteriorated,and it is difficult to directly evaluate the element content based on the image grayscale.A variety of factors affect the precision of quantitative analysis based on the grayscale of the KES image.Specifically,noises,including photon shot noise,detector noise,and scattering noise,can reduce the signal-to-noise ratio of the KES image and affect the linearity between the element content and grayscale.This is especially prevalent in cases with low element content and small differences in mass absorption around the k-edge of the element of interest.This effect is particularly significant for the applications of KES to alloys in which strong absorption usually leads to images with high degree of noise.Furthermore,subtraction between images acquired before and after K-edge introduces additional noise.Additionally,for the in situ imaging of raw samples,the random thickness of the sample can result in inaccurate quantification of element content.

In this study,a series of solutions were reported for the aforementioned problems involved in the application of KES imaging to alloys.Hence,the aim of the solutions is to eliminate the effect of factors that deteriorate the linearity between element content and grayscale.

2 Principle and methods

2.1 Grayscale of KES image

K-edge subtraction X-ray imaging(KES),also termed as energy subtraction technology,is based on the relationship between the incident beamI0(x,y)and transmitted beamI(x,y)[25]:

where the mass absorption coefficients of elements are denoted asμm1,μm2,···,μmn,penetration depth of X-rays across materials is denoted byt1,t2,···,tn,and density of elements is denoted byρ1,ρ2,···,ρn.Furthermore,(x,y)is the coordinate of the pixel of interest.As long as the projections are recorded linearly by an X-ray detector,the grayscaleG(x,y)of the images is proportional to the intensityI(x,y).As proposed by Lehmann et al.[34],the content of element in the sample,which is the product of density and depth,can be obtained by processing the two sets of images under energies that are slightly higher or lower than the K absorption edge of the element of interest:whereG(x,y)denotes the gray value captured by a chargecoupled device (CCD) after X-rays penetrate the sample.G0(x,y)denotes the gray value resulting from the X-ray beam without the sample.The mass absorption coefficient of the elements is denoted asμm.The subscripts ‘object’and ‘base’ indicate that the corresponding parameters are related to the element of interest or base,while(+)and(-)indicate the values for high-energy X-rays after the k-edge of the element of interest and low-energy X-rays before the k-edge of the element of interest,respectively.

According to Eq.(2),to obtain the specific distribution of the element of interest,a series of parameters such as mass absorption coefficient of all elements in the sample should be known at the two energies.However,for a specific sample,the types of elements and their proportions are difficult to measure,and the introduction of a theoretical mass absorption coefficient will increase the error during data processing.Therefore,a uniform background approximation was proposed [26] in which the absorption differences of elements of interest at two energies can be ignored.Accordingly,the specific distribution of the element of interest in the sample is as follows:

where Δμmdenotes the difference in the attenuation coefficient under two energies,and the numerator of Eq.(3)denotes the grayscale of the KES image after uniform background approximation.Although the absorption difference under high and low energies for the elements,with the exception of the element of interest,can be ignored under the uniform background approximation,an optimized energy range should be selected during the data acquisition of KES experiments to maintain the attenuation difference of the element of interest.This is not affected by the elements that are not of interest.According to Eq.(3),there is a linear relationship between the grayscale of the KES image after uniform background approximation and distribution of the element of interest in sampleDobject.

To evaluate the image quality during data processing,the contrast-to-noise ratio (CNR) is introduced [35],and it can be expressed as follows:

whereSobjdenotes the average of the grayscale of the attenuation coefficient of the object area,Sbgdenotes the average of the grayscale of the attenuation coefficient of the corresponding background area,σobj,σbgdenote the standard deviations of the values in the corresponding region.

2.2 Experimental setup

The experiments were conducted at BL13W1,the X-ray Imaging and Biomedical Applications Beamline at the Shanghai Synchrotron Radiation Facility.The experimental setup is illustrated in Fig.1.X-ray beam was emitted from a wiggler source and then monochromatized by double-crystal monochromator to modulate the photon energy required by KES method,and the energy of the output X-ray beam is in the range of 8-72 keV [36].The X-ray detector was a Hamamatsu Orca Flash 4.0 s CMOS camera with 2048×2048 pixels.When combined with the Hamamatsu AA40 optical transformation (1:1),the effective pixel size was 6.5 μm.The field of view for the detector system was 13.3 mm×13.3 mm,which implies that the KES method can evaluate the element distribution in a relatively large area of the alloy samples.The detector was placed 6.5 cm downstream of the sample,and the exposure time for each projection was 50 ms.

Fig.1 (Color online)Experimental setup for KES X-ray imaging. a Diagram of the experiment. b Picture of the experimental devices

Before the experiments,calibration of the element of interest with a standard sample is required.Figure 1b shows an image of the experimental devices,in which the green arrow denotes the propagation direction of X-rays,and the red dotted box in the picture denotes the location of the sample.In alloy materials,the doping of Cu and Ag is related to their structure,density,strength,and shape.In the experiments,copper(Cu)and silver(Ag)were selected for the investigation.The attenuation coefficient curves of the standard samples of Cu and Ag elements were experimentally measured by scanning the photon energy from 8.8 to 9.2 keV with a step of 10 eV for Cu and from 25.3 to 25.5 keV with a step of 10 eV for Ag.According to the attenuation coefficient curves we obtained,which are shown in ‘‘Supplementary Appendix A’’,the energies are selected for the subsequent experiments,i.e.,8.935 keV and 9.005 keV for the K-edge of Cu and 25.37 keV and 25.43 keV for the K-edge of Ag.

3 Linearity calibration

3.1 Different element content in one KES image

The absorption coefficient of elements to X-rays is not always continuous with the change in the X-ray energy.When the X-ray energy reaches the value at which the electrons at different energy levels in the inner layer of the atom of the substance are excited,the substance exhibits a strong absorption of X-rays at that energy.Absorption saltation is a well-known K-edge of the element.Theoretically,the magnitude of the saltation of the element is linearly related to the density of the element of interest,i.e.,the amount of the element of interest in the optical path directly affects the saltation degree of the attenuation coefficient of the sample when the photon energy is scanned across the K-edge.

Standard samples with known element contents were prepared to investigate their linearity with the grayscale of the KES image.During sample preparation,CuSO4solutions of different concentrations were injected into polyamides1010 sample tubes with inner and outer diameters of 0.5 mm and 1 mm,respectively.In the CuSO4solution model,Cu exists in the form of ions.Sample tubes filled with a solution of Cu elements were placed from left to right in the order of descending densities,which corresponded to 9 mg/ml,8 mg/ml,7 mg/ml,6 mg/ml,5 mg/ml,4 mg/ml,3 mg/ml,2 mg/ml,1 mg/ml,0.8 mg/ml,and 0 mg/ml.During image acquisition,the full phantom was accurately adjusted into the shadow of the incident X-ray beam to ensure identical exposure conditions for all samples with different element content.As mentioned above,energies of 8.935 keV and 9.005 keV were selected to record images before and after the K-edge of Cu.The KES image and related analysis are shown in Fig.2.Figure 2a shows the KES image of the Cu element content in the phantom.Specifically,background noise can be observed after K-edge subtraction,especially around samples with lower concentrations of Cu.Additionally,the shadow of the sample tubes remains in the subtracted image because of the slight movement of the X-ray beam during image acquisition.This results in additional noise for the quantitative analysis of element content.This implies that the linearity between grayscale and element content deteriorates with the existence of noise.In the case of alloys,there are always all types of crystals that exist inside the sample after various treatment procedures [37,38] and X-ray scattering of the randomly distributed crystals significantly contribute to a noisy background in the KES image.This implies that the elimination of the effect of noise is usually critical for the application of KES X-ray imaging to the analysis of element content in alloys.

Figure 2b shows the grayscale distribution directly obtained from the KES images of samples with different concentrations of Cu.A linear fitting of the distribution was performed,and the coefficient of determination(COD,also denoted asR2) was introduced to evaluate the linearity of the distribution.The linearity increases asR2is closer to 1.According to Fig.2b,it is clear that a positive correlation between the grayscale of the KES image and concentration of Cu can be observed,which shows the potential of KES imaging for the quantitative analysis of element contents with a large field of view when compared to conventional electron methods.Unfortunately,from the direct observation of Fig.2b,the variation in grayscale with element concentration evidently deviates from a linear distribution.The COD for the linear fitting is 0.979.This implies that an overall deviation of 2.1% occurs while the grayscale is employed to evaluate the element content.Hence,the accuracy of the KES method was limited to 2.1%.Evidently,this accuracy is not sufficiently high for the application of the KES method to the identification of element distribution,especially for the cases where the content of elements of interest in alloys is lower than 2.1%.

Fig.2 (Color online)Cu content in a KES image:a element distribution in the eleven sample tubes,b grayscale distribution after attenuation by samples with different concentrations of Cu element,and c calibrated grayscale according to contrast to noise ratio of the KES image

As analyzed above,noise is the main factor that affects the linearity between the grayscale and element content.By normalizing the pixel grayscale of the element of interest with respect to the noises of the adjacent background,the effect of noise on the linearity can be eliminated.Recently,CNR was introduced to calibrate the nonlinearity of the original grayscale of the KES image.As shown in Eq.(4),the signals were normalized with the standard deviation of the grayscale in the adjacent area.By substituting the original grayscale of the KES image with the corresponding CNR,a new image for the distribution of the element of interest is obtained as shown in Fig.2c.As shown in Fig.2c,the linearity of the distribution is improved by the CNR calibration.Linear fitting was also performed for further quantitative analyses.The COD for the CNR-calibrated grayscale was 0.995.This implies that the accuracy of the KES image for the evaluation of element content can be improved accordingly.It should be noted that the accuracy of the method does not indicate its resolution limit.Based on the experimental results,the sample with a concentration of 0.8 mg/ml can be resolved via KES imaging.Accordingly,the sensitivity of KES was 8×10-4in this experiment.Based on the results of the experiment,the dynamic range of the KES imaging method was 8×10-4to 9×10-3.Furthermore,these results can provide a reference for the evaluation of other elements in alloys,such as Sn,Ag,Mo,and Au.

3.2 Element content in different KES images

Based on the linearity in KES X-ray imaging,the gray value of the KES image of standard samples can be used as a benchmark to conduct quantitative analysis of the element of interest in real samples.However,before using this benchmark for real samples,the consistency of the linearity between the grayscale and element density should be verified in experiments of KES imaging for different samples.Furthermore,consistency is crucial for the application of this method to the testing of multiple samples.

For quantitative analysis,phantoms with standard samples were prepared to verify the effect of different experiments.To confirm the applicability of the method to other elements,another type of Ag was used in the experiments.Similarly,standard samples with different concentrations of AgNO3solution filled into polymethyl methacrylate sample tubes (inner/outer diameter of 2.0 mm/3.0 mm)were used.Three types of phantoms composed of four standard samples were designed for verification.The concentration of the standard samples was sequenced in an ascending order in the phantoms.However,the two standard samples in different phantoms were of the same concentration for the sake of comparison between different experiments.The results for the consistency evaluation of the different experiments are shown in Fig.3.As shown in Fig.3a,the KES images of the three phantoms are arranged in ascending order of Ag concentrations.From left to right,the correspondent concentrations of AgNO3were 0.4 mg/ml,0.6 mg/ml,0.8 mg/ml,and 1 mg/ml for phantom No.1;1 mg/ml,2 mg/ml,4 mg/ml,and 6 mg/ml for phantom No.2;6 mg/ml,8 mg/ml,10 mg/ml,and 0 mg/ml for phantom No.3.According to Fig.3a,the standard sample of water without Ag is not depicted in the KES image.This confirmed that the grayscale of the KES image solely contributes by the element of interest.The grayscale of the KES image decreased correspondingly with a lower concentration of Ag in the solution.Furthermore,the standard sample was revealed for the lowest concentration of 0.4 mg/ml AgNO3.This implied that the detection limit of KES imaging is less than 4×10-4for the element of interest of Ag.

Fig.3 (Color online) Consistency evaluation of different experiments.a KES images of Ag arranged in an ascending order of concentration for the three phantoms.b Original grayscale of KES images and its calibrated value corresponding to the location of standard samples with different concentrations of Ag.c Calibrated grayscale with respect to Ag element content with a linear fitting

An essential step for the KES image corresponds to the switch of energies before and after the K-edge of the element of interest.At the beamline of a synchrotron facility,a double-crystal monochromator is typically used to monochromatize and modulate the photon energy of X-rays.Given the hysteresis error of the monochromator and beam shift effect,it is difficult to precisely maintain the same X-ray beam for different experiments.The vertical profile of an X-ray beam from a synchrotron facility normally exhibits a Gaussian distribution.Usually,the output direction of the X-ray beam at the two energies of the K-edge deviates slightly from each other.The subtraction of the two images leads to a one-way tilting background in the resulting image.Consequently,the pointing error of the incident X-ray beam leads to an increase in the entire grayscale distribution of the KES image.The beam intensity fluctuation among the experiments can result in a deviation of zero position in different KES images.Before the effects of the beam tilting and zero position drift were calibrated,it was difficult to evaluate the element content based on the grayscale distribution of the KES images in multiple experiments.

Figure 3 b shows the grayscale distribution along the pixels in the KES images.The distribution of the original grayscale is shown by the blue line in Fig.3b.It is evident that the baseline of the profiles of the KES images is tilted from the horizon line,and the slope of the incline varies from different experiments.Furthermore,the grayscale for standard samples with the same concentration in different phantoms differs from each other,especially for samples with higher content of elements of interest.Ideally,the baseline of the grayscale profiles should be horizontal.First,the rotation transformation in the coordinate system was implemented for each profile according to its slope value.Then,the calibrated baselines were reset to the zero position.After these two calibration processes,the grayscale profiles of the three phantoms are shown by the red line in Fig.3b.As shown in Fig.3b,it is obvious that the grayscale for samples with the same concentration in different phantoms becomes equal to each other after calibration.Additionally,a linear correlation between the grayscale and element content was observed in each phantom.

For further quantitative analysis,the grayscale statistics of all samples in the three phantoms with respect to element content is conducted as shown in Fig.3c.Then,a linear fitting was implemented for this distribution,and a high fitting degree was realized with a COD value of 0.994.This implies that after calibration,the linearity between the grayscale and element content remained even though the KES image was considered in different experiments.Therefore,the element evaluation of multiple samples using the developed KES imaging method was feasible.Accordingly,the accuracy for the evaluation of the element content based on the grayscale of the KES image was 0.6%.Based on the standard samples used in the experiments,the content resolution of the method was 2×10-4with a lower limit of 4×10-4.The theoretical mass absorption coefficient of some typical elements around K-edge is shown in ‘Supplementary Appendix B’’and the values of the resolution and lower limit indicated that the linearity in the KES X-ray imaging method applies to a variety of doping elements in alloys.

3.3 Alloy sheet with uneven thickness

A strong absorption effect must be considered for alloy samples.Accordingly,the X-ray energy around the K-edge of the element of interest should be sufficiently high to ensure acceptable transmission.Element Ag was selected for the experiments.It is well known that in a typical leadfree solder of Sn-Ag-Cu alloys,the growth and distribution of Ag3Sn affects the mechanical properties of the alloy and fatigue life of the solder joint [1].Moreover,the Ag content affects the formation of Ag3Sn.Therefore,a quantitative evaluation of the element content and distribution of Ag in lead-free solder are important.Considering the effect of strong absorption,an alloy sheet was used in the experiments.During sample preparation,the lead-free solder of M705(HIROSAKI) model containing 3% silver was flattened to a sheet from a cylinder with a diameter of 0.3 mm.The detector used for the data acquisition was composed of 2048×2048 pixels CMOS detector from HAMAMATSU(model:ORCA-Flash 4.0 C11440),and an optical conversion system using an Optique Peter (model:MICRX016).The basic pixel size of this CMOS detector was 6.5 μm,which was 10 times the optical magnification,and the actual pixel size was 0.65 μm.This allows for evaluation with a higher spatial resolution of the element distribution in the alloys.

Figure 4 shows the results of KES imaging of Ag in the alloy sheet of lead-free solder,which is realized by subtracting the image acquired at 25.43 keV from that at 25.37 keV and after calibration (Fig.4a).The comparison before and after calibration is shown in the ‘‘Supplementary Appendix C’’.The surface plot of the grayscale of the image shown in Fig.4a is shown in Fig.4b.Based on the principle of the KES image,the grayscale value is proportional to the line integral of the linear coefficient for the element of interest.This implies that the integral path,e.g.,the thickness of the sample,affects the results of the line integral,and this effect should be eliminated before it is employed to evaluate the content of the element.Furthermore,to show the effect of sample thickness,the absorption image of lead-free solder at 25.43 keV,an energy point just above the K-edge of Ag,is provided in Fig.4c.It should be noted that the images were spliced from the results of two separate measurements.As shown in Fig.4a,c,the border between the two spliced images is difficult to determine.Additionally,image splicing does not lead to an abnormal distribution of grayscales as shown in Fig.4b,d.This implies that it is feasible to extend the field of view(FOV) by splicing images of multiple measurements.In this experiment,FOV for KES imaging is 1.33 mm×2.66 mm at a pixel size of 0.65 μm,which is a large FOV when compared to the electron-based in situ methods while maintaining high spatial resolution.The ability to analyze the sample in a large FOV is beneficial for the evaluation of the uniformity of element distribution in a large range of alloy sheets.

Fig.4 (Color online) KES imaging of lead-free solder. a KES image of element Ag in lead-free solder. b Surface plot of the grayscale of the image shown in a. c Absorption image of lead-free solder at 25.43 keV. d The corresponding grayscale of the image shown in c

Figure 4 b shows a surface plot of the grayscale in Fig.4a.Based on the linearity between the grayscale and element content in KES imaging,the results shown in Fig.4b denote the actual content distribution of Ag in the flattened lead-free solder.A sinusoidal distribution in the cross section of the alloy sheet can be observed.The element content obtained by KES imaging is the additive effect of the element concentration and sample thickness at the point of concern.Rosin is usually injected into the hollow cylinder of an alloy to aid soldering.During sample preparation,the rosin was squeezed to two sides,and the thickness of the alloy material was correspondingly reduced.Therefore,a sinusoidal distribution of Ag in Fig.4b was obtained.For a conventional lead-free solder,the doping concentration of Ag is completely even as a whole,and the distribution fluctuation is minute.This implies that thickness variation dominates the distribution of element content.This deduction is confirmed by the grayscale distribution of the absorption image collected at an X-ray energy of 25.43 keV,which is higher than the K-edge of Ag.As shown in Fig.4d,the grayscale distribution is similar to that shown in Fig.4b.When compared to Fig.4d,the distribution in Fig.4b shows higher degree of noise,especially at the locations with thicker alloy materials.This implies that noise is also a factor that affects the evaluation of element distribution in alloys.Before calibrating the effects of thickness and noise,it is difficult to quantitatively analyze the characteristics of the distribution of the elements of interest.

By normalizing Fig.4a with c,the effect of sample thickness can be eliminated,and the distribution characteristics of the element of interest are realized as shown in Fig.5.According to Fig.5a,b,the sinusoidal distribution dominated by the effect of the alloy thickness is removed.The content distribution of the element of interest normalized with thickness reveals the concentration fluctuation in the alloy sheet.This is pivotal for evaluating the quality of the alloy.The background of the image is quite noisy as per the direct observation in Fig.5a.This is also confirmed by Fig.5b,in which the signals representing the content of the element of interest are submerged in a noisy background.As demonstrated in Sect.3.1,CNR is introduced to reduce the effect of noise,and the results are shown in Fig.5c,d.As shown in Fig.5c,the noisy background is efficiently depressed.Figure 5d shows the surface plot of the concentration distribution of Ag in the leadfree solder alloy.Based on Fig.5d,the distribution of Ag content fluctuates above or below an average with a limited amplitude.This implies a fairly uniform distribution of Ag in the solder.Based on the noise-free distribution,the cluster phenomenon is explicitly revealed in the alloy sheet.As previously indicated,local agglomeration affects the fatigue life of the solder joint.

To quantitatively verify this effect,the average and standard deviation of the Ag concentration shown in Fig.5d are determined,and the value is 0.0428 ± 0.0011.This implied that the relative deviation of the concentration is 2.57%.Overall,the uniformity of the Ag distribution in the lead-free solder was fairly good.However,the local agglomeration of Ag in the solder was related to the mechanical properties of the alloy and fatigue life of the solder joint.Therefore,the local anomalous distribution of Ag was investigated in further detail.

Fig.5 (Color online) Distribution characteristics of element Ag in the alloy sheet with normalized sample thickness.a KES image with noises.b Surface plot of the concentration distribution of the element of interest in the sample shown in a.c CNR image with the effect of noises eliminated.d Surface plot of the concentration distribution of the element of interest in the sample shown in c

In engineering applications,the deviation of parameters by more than twice the standard deviation is usually considered abnormal.The abnormal agglomeration of Ag is shown in Fig.6a,which refers to regions of Ag agglomeration with a concentration deviation exceeding twice the standard deviation.According to Fig.6a,the distribution of the areas for the abnormal agglomeration of Ag is mainly localized in the central part of the lead-free solder.The maximum size of the agglomeration is approximately 33.5 μm.In the case of solders,agglomeration of the element of interest does not directly affect the solder joint because of the remelting process of the solder during welding.However,agglomeration with a unique size exhibits a high probability of contributing directly to its performance.In this sense,the critical value for a unique size is defined as two times larger than the average size corresponding to 6.22 μm,and the agglomeration is shown in Fig.6b.This is representative of a typical distribution of the abnormal agglomeration.Accordingly,the mass number of Ag agglomerations,with a concentration deviation exceeding twice the standard deviation and size exceeding twice the average size,is 78.Hence,this can potentially contribute to the fatigue life of solder joints.

Fig.6 Abnormal agglomeration of Ag in the alloy sheet. a Masses with concentration distribution higher than 2σ; b masses with size larger than twice of the average dimension along with concentration distribution exceeding 2σ

4 Conclusion

The doped elements in alloys significantly impact their performance,and conventional methods,including destructive methods,such as mass spectrometry,optical spectroscopy,and nondestructive methods of electronbased microscopy,have been extensively applied for element analysis in alloys.However,all the aforementioned methods usually require sputtering of the surface material of the sample for composition analysis or they are limited to the surface of alloys owing to their poor penetration ability.By exploiting the high penetration of X-rays,the X-ray K-edge subtraction method,which uses the grayscale of KES images to evaluate the content of the element of interest,exhibits high potential for nondestructive in situ detection of element content in alloys.However,factors,including X-ray scattering in alloys,weak signal of doped elements in a strong absorption background,and energy modulation of monochromatic X-ray beams,usually severely affect the linearity between grayscale and element content.Therefore,the application of the KES method for element analysis in alloys is limited.In this study,methods were developed to calibrate the linearity between the grayscale of the KES image and content of the element of interest for the aim of promoting the applications of KES imaging for element analysis in alloys.

X-ray scattering and weak signals of doped elements in a strong absorption background prevent KES imaging from sensitive detection of the doped elements in alloys.CNRbased analysis,as opposed to grayscale of KES images,was proposed to calibrate the effect of noise on the measurement efficiency.The experimental results of a phantom with element Cu demonstrated that after normalization of grayscale in the KES image with the adjacent noisy background,the value of CNR is linearly related to the content of the element of interest.This implies that an elaborate calibration of the noises can lead to the application of the CNR-based KES method for element analysis in alloys.Currently,KES imaging of element distribution is a relative measurement.Accordingly,the consistency in the measurements of multiple samples is critical for the application of KES imaging to element analysis in alloys.Targeted approaches have been developed to calibrate the discrepancies between different measurements.Three phantoms with a series of standard samples were specially designed,and the experimental results of the phantoms verified that the linear coefficient remained the same after elaborate calibrations.The experimental results indicated that the lower limit of KES imaging for the content evaluation of Ag is 4×10-4.Hence,the applicability of KES imaging for multiple measurements of element content in alloys is established.

An alloy sheet of lead-free solder with uneven thickness was used as the test sample for the KES imaging method.The splicing of two adjacent areas was conducted to validate the consistency in different measurements by extending the field of view of KES imaging for element distribution in alloys.The uneven thickness of the sample usually dominates the content of the element of interest,and it is difficult to reveal the abnormal distribution of the elements in alloys based on the primary grayscale of KES images.An absorption image collected at the upper energy of the K-edge was introduced to normalize the effect of thickness.The results demonstrated that a discrepancy in the distribution for the element of interest was revealed after an elaborate calibration.Furthermore,based on quantitative analysis,an anomalous distribution of the element of interest due to local agglomeration was located.Hence,based on the developed calibrating approaches,it can be concluded that X-ray KES imaging is capable of nondestructive and rapid screening of doped elements in alloys.

Supplementary InformationThe online version contains supplementary material available at https://doi.org/10.1007/s41365-022-00986-3.

AcknowledgementsThe authors are grateful to Ya-Nan Fu,Han Guo,Guan-Yun Peng,Fen Tao,Ling Zhang,and Hang Jiang for their assistance and fruitful discussions on experiments and data processing.Furthermore,the authors are grateful to Ling-Yu Feng,Hui Lu,and Peng-Yuan Qi for their guidance in sample preparation.

Authors’ contributionTi-Qiao Xiao conceived this research.Xiao-Lu Ju,Ti-Qiao Xiao,Biao Deng,Hong-Lan Xie contributed to the study design.Material preparation,data collection and analysis were performed by Xiao-Lu Ju,Biao Deng,Ke Li,Fu-Cheng Yu and Ti-Qiao Xiao.Xiao-Lu Ju and Ti-Qiao Xiao wrote the first draft of the manuscript.All authors read and approved the final manuscript.