2026 Volume 35 Issue 5
Article Contents

Xin Yan, Jie Zhang, Kai He, Yiheng Liu, Yuetong Zhao, Gang Wang, Xinlong Chang, Youwei Zhang. Physics-informed neural network for material identification via distortion-robust polychromatic x-ray attenuation correction in photon-counting detectors[J]. Chinese Physics B, 2026, 35(5): 050702. doi: 10.1088/1674-1056/ae5a13
Citation: Xin Yan, Jie Zhang, Kai He, Yiheng Liu, Yuetong Zhao, Gang Wang, Xinlong Chang, Youwei Zhang. Physics-informed neural network for material identification via distortion-robust polychromatic x-ray attenuation correction in photon-counting detectors[J]. Chinese Physics B, 2026, 35(5): 050702. doi: 10.1088/1674-1056/ae5a13

Physics-informed neural network for material identification via distortion-robust polychromatic x-ray attenuation correction in photon-counting detectors

  • Received Date: 12/02/2026
    Accepted Date: 24/03/2026
    Available Online: 01/05/2026
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Figures(7)  /  Tables(2)

Article Metrics

Article views(269) PDF downloads(2) Cited by(0)

Access History

Physics-informed neural network for material identification via distortion-robust polychromatic x-ray attenuation correction in photon-counting detectors

Abstract: Spectral distortions in photon-counting detectors (PCDs) fundamentally limit the quantitative accuracy of material identification. While machine learning is used for compensation, current data-driven methods often lack physical constraints, limiting their interpretability and reliability across varying conditions. To address this issue, we propose a physics-informed neural network (PINN) framework that explicitly embeds the Beer–Lambert law into the learning architecture. By integrating an explicit differential layer to extract high-order curvature features from distorted spectra, the model enables direct inference of the effective atomic number and areal density. This approach effectively leverages the Z-dependent non-linear profile of the photoelectric effect, even when explicit absorption edges are outside the primary detection window. Simulation results establish a high-precision benchmark for Zeff estimation in the target low-Z range (613), with an RMSE of 0.2111. Experimental validation on a CdZnTe-PCD further demonstrates that this accuracy improvement is preserved under realistic pulse pile-up and noise conditions, achieving an RMSE of 0.2457 and an R2 of 0.9670. Compared with conventional physical correction methods (typically ±0.5 error margin), the proposed framework provides improved precision, with 92.86% of Zeff estimation errors falling within ±0.4, corresponding to an approximately 20% tighter error bound. These results confirm that the proposed framework effectively mitigates spectral distortion, providing a robust, calibration-free solution for precise material identification of low-Z materials in industrial non-destructive testing.

1.   Introduction
  • Since Roentgen’s seminal discovery in 1895, attenuation-based x-ray imaging has evolved into an indispensable tool for industrial non-destructive testing (NDT) and clinical diagnosis.[1–3] Based on the foundational dual-basis decomposition theory, modern imaging systems can quantitatively characterize material composition, a physical process detailed in classical radiological physics literature.[4,5] While conventional energy-integrating detectors (EIDs) are limited to intensity projections, photon-counting detectors (PCDs) represent a paradigm shift.[6] By resolving individual photon energies, PCDs theoretically enable high-contrast material identification and multi-energy decomposition.[7,8]

    PCDs represent a paradigm shift in x-ray imaging. By resolving the energy of individual photons and recording pixel-wise spectral information, PCDs enable the retrieval of material-specific linear attenuation coefficients, μ(E), from a single polychromatic exposure. This capability theoretically facilitates direct material fingerprinting and quantitative decomposition. The linear attenuation coefficient μ(E) is an intrinsic physical property of a material uniquely determined by the atomic number Z and electron density ρe. For x-rays of energy E and incident flux I0(E) propagating through a material of thickness t, the transmitted intensity is governed by the Beer–Lambert law[5]

    In practice, however, PCDs employing sensor materials like cadmium zinc telluride (CdZnTe) or silicon face significant challenges arising from the polychromatic nature of x-ray sources and complex detector response mechanisms, including pulse pile-up, fluorescence escape, charge sharing, and finite energy resolution.[9–15] Consequently, the measured projection spectrum deviates significantly from the true transmission spectrum.[16–18] The spectral distortion can be modeled via forward simulation, primarily accounting for: (1) the escape peak response, denoted as R1, arising from characteristic fluorescence escape following photoelectric interactions; and (2) the response matrix R2, characterizing spectral shifts toward lower energies due to charge sharing and peak broadening from finite energy resolution. Mathematically, the output spectrum results from a unidirectional transformation: the incident spectrum left-multiplied by the response matrix R1R2 (Fig. 1).

    To mitigate spectral distortions, early research primarily focused on hardware optimizations and analytical corrections.[19,20] For instance, Hu et al.[21] proposed an FPGA-based pulse pile-up rejection technique, while Kimoto et al.[22,23] reported recent advances in detector electronics. Algorithmically, Shikhaliev[24] utilized K-edge filtering to enhance material separation, and Kimoto et al.[25] developed a polychromatic attenuation correction method for effective atomic number estimation. However, these methods often require complex calibration or specific hardware configurations.[26,27] Recently, deep learning has shown great potential in solving inverse imaging problems.[28–30] Data-driven strategies, such as convolutional neural networks (CNNs), have been applied to material decomposition in both medical CT and industrial NDT.[31–33] Despite progress in analytical correction and data-driven methods, significant challenges remain in PCD-based material identification. DRM-based inversion is inherently ill-posed, and deconvolution often amplifies measurement noise, causing numerical instability in material-parameter estimation. In contrast, purely data-driven deep learning methods avoid explicit inversion but often lack physical constraints from x-ray attenuation laws, limiting interpretability and reducing generalization under varying spectral distortion conditions.

    To address these limitations, PINNs, originally introduced by Raissi et al.,[34] offer a new paradigm by embedding physical laws into the loss function. This approach has proven effective in various domains, from optical imaging[35] to electromagnetic optimization.[36] Recent studies in physics-guided inverse modeling have demonstrated the superiority of PINNs in solving complex inverse problems and governing partial differential equations.[37] To further enhance network convergence and training efficiency, advanced architectures incorporating adaptive sampling strategies have also been developed.[38] For example, Li et al.[39] successfully applied PINNs to low-temperature plasma parameter inversion, and Liu et al.[40] utilized them for nonlinear dynamics prediction. Moreover, Tian et al.[41] confirmed that incorporating prior physical information significantly improves model convergence and accuracy under small-sample conditions. However, to the best of our knowledge, there have been very limited reports on applying PINNs to material identification using PCDs, despite the strong need for physically constrained inversion under spectral distortion.

    In this work, inspired by physics-guided inverse reconstruction strategies,[42] we propose a PINN framework for distortion-robust material identification in PCDs by explicitly embedding the Beer–Lambert law into end-to-end learning. The proposed architecture integrates an explicit differential feature extraction module to capture spectral slope and curvature information, which is closely related to the energy-dependent nonlinear behavior of the photoelectric effect. Based on the physical distinction between spectral shape and amplitude, we further design a decoupled inference scheme in which high-order differential features are used to estimate the effective atomic number, while intensity features are used to estimate areal density. By combining physics-constrained optimization with interpretable feature streams, the proposed method improves inversion stability and robustness to spectral distortion without explicit DRM inversion or complex calibration. In simulations, the framework achieves an RMSE of 0.2111 for Zeff estimation in the target low-Z range 6–13, while experimental validation on a CdZnTe-PCD yields an RMSE of 0.2457 with R2 = 0.9670. Moreover, 92.86% of experimental samples exhibit absolute Zeff estimation errors within ±0.4, indicating a tighter error bound (approximately 20% smaller than the conventional ±0.5 range) under realistic pulse pile-up and noise conditions.

2.   Proposed physics-informed framework
  • Drawing upon the PINN architecture,[43,44] we propose a slope-sensitive PINN framework with multi-order differential feature fusion for distortion-robust material identification. The framework incorporates x-ray attenuation physics as embedded physical constraints and combines them with explicit feature engineering to achieve decoupled estimation of material parameters (Fig. 2). In PCD-based measurements, the observed spectra are jointly influenced by the polychromatic x-ray source and the detector response function, causing excessive smoothing of raw attenuation signals and obscuring local nonlinear spectral characteristics related to the effective atomic number. To address this issue, we introduce a noise-robust explicit gradient module at the feature extraction front end.

    By exploiting the high-pass filtering properties, the differential operator enhances Z-sensitive features latent within the spectral slope (1st order) and curvature (2nd order). This progression from 0th to 2nd order representations is physically consistent with high-order energy dependence of the photoelectric effect, thereby providing a more discriminative feature space for material identification. To improve robustness against photon statistical noise, the raw spectral vector is first processed by a learnable 1D smoothing convolution layer, which adaptively suppresses high-frequency noise while preserving the intrinsic spectral structure. The resulting features are then separated into three parallel streams: raw-intensity stream that preserves absolute attenuation amplitude (primarily related to areal density, ρt); first-order slope stream that captures energy-dependent attenuation trends; and second-order curvature stream that enhances spectral convexity associated with the Z-dependent nonlinear spectral behavior of the photoelectric effect. This design establishes the physical basis for subsequent decoupled inference of the effective atomic number and areal density. The present framework is mainly intended for low-Z materials in the range 6–20, whose attenuation spectra remain relatively smooth within 20 keV–80 keV.

    To avoid the lack of interpretability in traditional feature concatenation, we design an asymmetric decoupling architecture. Atomic number branch (Z-branch): aggregates slope (1st order) and curvature (2nd order) features. Physically, Z dominates the “shape” and “curvature” of the attenuation curve via the photoelectric cross-section’s energy dependence (σpe ∝ Z3/E3). Consequently, this branch specifically aggregates the first-order slope and second-order curvature features, leveraging their translation invariance to amplitude variations to achieve robust estimation of Z. Electron density branch (ρ-Branch): Focuses on raw intensity features. The electron density (ρe) physically manifests as a linear multiplier, directly determining the “amplitude” of the overall attenuation curve. Therefore, this branch prioritizes the raw intensity features. This strategy, predicated on the principle that spectral shape encodes Z while amplitude reflects ρ, effectively mitigates parameter coupling, thereby circumventing the ill-posed nature of the inverse problem.

    We construct a differentiable forward operator based on the NIST physical database. The network predictions, (Z^eff,ρ^e), are employed to reconstruct the theoretical attenuation spectrum, μ^(E), according to

    where Interp(⋅) denotes a bilinear interpolation function derived from the standard NIST cross-section database.

    The loss function consists of three components: physical consistency loss, defined as the mean squared error (MSE) between the reconstructed spectrum μ^(E) and the network input μ(E); monotonicity and smoothness regularization, implemented as a derivative constraint,

    which enforces the smooth and monotonic attenuation profiles characteristic of light materials within the studied energy range; and data fidelity term, which penalizes the discrepancy between the network outputs (Z^eff,ρ^e) and the corresponding ground-truth labels (Zeff,ρe).

    The proposed architecture comprises three sequential stages: data preprocessing and feature extraction, serial physics-based decoupling, and physics-constrained optimization. The network takes raw spectral data as input and first applies internal Z-score normalization using precomputed statistics to standardize the input distribution. A gradient-layer then performs finite difference calculations across energy points to extract gradient features. These features are processed by the Shape-CNN, which consists of three stacked slope-sensitive-blocks. Each block applies 1D convolutions with progressively expanding receptive fields to capture attenuation trends, followed by a MaxPool1d (2) layer to halve the sequence length. The output features are flattened and input into the Z_head (MLP) to predict the normalized effective atomic number.

    To decouple the material parameters, a serial connection strategy is adopted. First, the predicted normalized Z is denormalized and passed to a differentiable physical operator (compute_mu) to calculate the theoretical unit-density attenuation coefficient. Second, the raw input spectrum is element-wise divided by this theoretical coefficient. This operation isolates the density-dependent amplitude by canceling out Z-related spectral shape components. Finally, the isolated amplitude is input into the rho_mlp to regress the normalized areal density. The network is optimized using a composite loss function that balances data fidelity with physical consistency. It comprises two terms: (1) data loss (loss_data), defined as the MSE between the predicted normalized parameters and their corresponding ground-truth labels; and (2) physical consistency loss (loss_pde), defined as the MSE between the measured raw spectrum and the spectrum reconstructed via the Beer–Lambert law. To ensure training stability, a step-wise curriculum learning strategy is applied: the weight of the physical loss is initialized to 0 during the warm-up period (e.g., 500 epochs) to prioritize data fitting, and is subsequently increased to a fixed constant (e.g., 0.2) to enforce physical constraints.

3.   Results and discussion
  • We employed a dual-validation strategy comprising numerical simulations and physical experiments. Simulations probed the theoretical limits across a broad range of atomic numbers, while experiments validated robustness in real-world environments.

  • To construct a training dataset covering diverse spectral distortion characteristics, we performed forward physical simulations based on the NIST XCOM database and the Beer–Lambert law. The simulation encompasses a broad range of atomic numbers from carbon (Z = 6) to calcium (Z = 20), representing materials relevant to applications such as carbon-fiber composites and biological tissues. Using a Monte Carlo sampling strategy, we generated 490 theoretical samples with distinct combinations of effective atomic number (Zeff) and mass thickness (ρt). Of these, 80% were allocated for network training and the remaining 20% for validation in the simulation experiments. Specifically, Zeff was uniformly sampled within 6–20, while ρt was randomly sampled within 1–20 g/cm2. To generate the corresponding network inputs, detector-response-induced spectral distortions were superimposed on the ideal attenuation spectra, including charge sharing, pulse pile-up, and Poisson noise.

    The primary objective of the simulation validation phase is to assess the theoretical inversion capability of the PINN framework across a broad range of atomic numbers (Z ∈ [6,20]). Since the simulated dataset preserves the nonlinear discontinuities inherent in the idealized physical model, this validation also provides a rigorous assessment of the network architecture’s ability to enforce the embedded physical constraints.

    Simulations evaluated the inversion capability across the range of Z ∈ [6,20]. Overall, the model exhibits a high degree of consistency within this interval, with the predicted points tightly converging along the y = x diagonal. These results demonstrate that the proposed method is well-suited for effective atomic number inversion within this specific range. However, an examination of the error distribution reveals that as the atomic number increases beyond 13, discrepancies between the predicted and ground truth values become apparent, with the RMSE rising to 0.6729. This phenomenon is a direct consequence of the intrinsic physics of x-ray attenuation. Within the 20 keV–80 keV energy range, the photoelectric effect cross-section (σpe∝ Z3/E3) escalates rapidly as the atomic number Z increases. Consequently, higher-Z materials exhibit significantly steeper gradients and more pronounced non-linear curvature in their attenuation spectra. While the smoothness regularization term in the PINN framework effectively suppresses statistical noise, it may inadvertently dampen these intensified local non-linearities, leading to the observed underestimation of the attenuation amplitude.

    To further examine the noise sensitivity of differential features such as the first-order slope and second-order curvature, especially under low-count or high-attenuation conditions where Poisson fluctuations become more pronounced, additional simulations were performed at different Poisson noise levels.

    As the Poisson noise level increases from 1% to 20%, the Zeff prediction error increases progressively. The model remains accurate and stable within the 1%–10% noise range. However, the error becomes noticeably larger at 15% noise, and significant outliers appear at 20% noise (RMSE = 1.0347, R2 = 0.7381), indicating that the slope- and curvature-based Zeff branch becomes unstable under high-noise conditions.

4.   Physical experiments
  • The experimental validation was conducted on an x-ray imaging platform equipped with a CdZnTe photon-counting detector. The x-ray source was operated at a tube voltage of 80 kV and a tube current of 0.3 mA, and spectral data were acquired across an energy range of 20 keV–80 keV (Fig. 6(a)). The experimental samples consisted of a continuously tunable PMMA/aluminum (PMMA/Al) mixture space and a separate set of independent pure materials (Fig. 6(b)). The conventional PMMA/Al combinations were used to construct the primary dataset, with the theoretical Zeff for each mixture calculated via a weighted procedure based on standard NIST cross-sections. This dataset was partitioned into 80% for training and 20% for validation. By varying the thicknesses of the two slabs, phantom samples with different equivalent Zeff and ρt were synthesized. An orthogonal grid of PMMA/Al combinations was constructed, in which the thicknesses of both PMMA and Al were varied over multiple levels from 3.7 mm to 40.7 mm.

    To verify model generalization and prevent overfitting to the PMMA/Al training manifold, out-of-distribution physical samples were introduced during the testing phase. These independent targets included pure compounds (PTFE and standard PMMA) and single-element materials (carbon, Z = 6; Al, Z = 13). The measured samples exhibited an effective atomic number range of 6–13, which matches the physical characteristics of carbon-fiber composites, biological soft tissues, and common security-screening materials.

    Before feature extraction, the raw measurements were preprocessed through repeated sampling, multi-pixel averaging, and denoising filters. These steps are necessary to suppress inherent Poisson noise and prevent its amplification by the differential layers. Figure 7 presents the quantitative results for Zeff identification, offering a direct comparison between the experimental performance and the ideal simulation benchmark.

    As illustrated in Fig. 7(a), despite the inevitable presence of pulse pile-up effects and electronic noise in the hardware, the experimental predictions (red triangles) exhibit exceptional linearity, tightly converging along the ideal y = x diagonal. Quantitative analysis yields a coefficient of determination (R2) of 0.9670, which is comparable to the theoretical simulation benchmark of 0.9891. The RMSE for the experimental data is 0.2457. This high degree of consistency with the simulation result (RMSE = 0.2111) provides compelling evidence that the PINN framework effectively mitigates spectral distortions, successfully transferring theoretical high-precision performance to practical application scenarios.

    Further analysis of the error distribution, shown in Figs. 7(b) and 7(c), underscores the reliability of the model. Although the experimental error distribution is slightly broader than that of the simulation, it displays no significant systematic bias. Notably, approximately 92.86% of the experimental samples exhibit an absolute estimation error within the safety bound of ±0.4 (indicated by dashed lines in Fig. 7(b)). This result confirms that the method maintains high confidence in distinguishing materials with adjacent atomic numbers within the range of Z ∈ [6,13], thereby fully satisfying the precision requirements for industrial non-destructive testing.

    In addition, comparison with the graded simulation results at different Poisson noise levels shows that the experimental performance (RMSE = 0.2457, R2 = 0.9670) is close to that obtained under the 5%–10% Poisson noise condition. This suggests that, after repeated sampling, multi-pixel averaging, and denoising preprocessing, the measured data of the current experimental system have not yet reached the noise level at which the model becomes clearly unstable.

  • The RMSE and the R2 were adopted as the primary evaluation metrics. Table 1 summarizes the quantitative performance of the PINN framework across both simulation and experimental datasets.

    Contrary to the divergence often seen in pure data-driven methods, our framework maintains high consistency between theoretical simulations and physical experiments. The simulation results established a theoretical high-precision benchmark (RMSE = 0.2111) within the atomic number range of 6–13. The experimental validation yielded a slightly higher RMSE of 0.2457. This marginal increment is physically consistent and anticipated, attributed to real-world hardware factors absent in the ideal simulation, such as electronic noise, dark current, and residual scattering effects. However, the fact that the experimental performance closely trails the ideal simulation benchmark (R2: 0.9670 vs. 0.9891) demonstrates the regularization efficacy of the embedded physical constraints.

    To rigorously validate the performance superiority of the proposed framework, we benchmarked our results against the conventional physical correction methods and the standard data-driven learning approaches. Conventional methods typically achieve an atomic number estimation accuracy of approximately ±0.5.[25] As shown in Fig. 7(b), 92.86% of the test samples in the proposed method exhibit absolute estimation errors within ±0.4, indicating a tighter error bound (by approximately 20%) under realistic experimental conditions. Standard data-driven approaches (e.g., A-table or Gaussian regression), while avoiding complex physical modeling, struggle to statistically decouple the non-linear relationship between Z and ρ due to the lack of rigid physical constraints. Experiments indicate that the proposed PINN method achieves higher prediction accuracy.

    The PINN framework achieves both high consistency and high precision primarily due to the explicit gradient layer, which performs physically meaningful feature enhancement and decoupling. By explicitly extracting differential spectral features, this module improves the network’s sensitivity to material-dependent spectral morphology while preserving robustness under spectral distortion. The underlying physical mechanism is discussed below.

    Dominance of photoelectric interaction and first-order decoupling. The noise robustness is directly rooted in its response to the physics of the photoelectric effect. The core advantage of photon-counting detection lies in extracting energy information. Within the experimental energy range (20 keV–80 keV), x-ray attenuation is dominated by the photoelectric effect, the cross-section of which follows an approximate power law σpe∝Z3/E3. The proposed first-order slope stream (∂μ/∂E) mathematically extracts the local rate of spectral change, effectively isolating the “shape” features governed strictly by Z. This transformation separates the spectral morphology dominated by the photoelectric effect from the global amplitude fluctuations caused by electron density (ρe), endowing the network with translation invariance to object thickness and enabling robust Zeff estimation.

    Second-order curvature features and high-Z sensitivity. To further enhance material discrimination, especially for relatively high-Z materials, the 2nd-order curvature stream (∂2μ/∂2E) serves as a morphological feature detector. It enhances the sensitivity to the spectral convexity and non-linear transitions that define material fingerprints in the absence of K-edge signals within the measured window. As discussed by Hayashi et al.,[8]K-shell absorption edges provide element-specific signatures; however, the identification capability of the present framework does not rely solely on discrete K-edge discontinuities. Instead, it is primarily derived from high-order spectral curvature features induced by the photoelectric effect. In this sense, the second-order derivative acts analogously to a discrete Laplacian operator, enhancing sensitivity to local spectral curvature and nonlinear transitions.

    While the curvature branch improves sensitivity to the Z-dependent nonlinear attenuation profile and enhances material separability by amplifying spectral convexity, the increased error in the high-Z region should not be attributed to the smoothness term alone. As the atomic number increases, the local spectral nonlinearity becomes stronger, and the extraction of curvature features places higher demands on the stability of finite-difference estimation. The present differential-feature extraction and smoothness prior were mainly developed for the relatively smooth attenuation spectra of low-Z materials, and their suitability may decrease as sharper local spectral features emerge. In addition, a more fundamental limitation comes from photon starvation: for the higher-Z materials within the 6–20 range, the stronger attenuation of low-energy photons reduces the effective transmitted counts and the amount of usable discriminative information, thereby increasing the instability of derivative-based features. The degradation observed in the high-Z region is therefore more reasonably understood as the combined effect of reduced suitability of the smooth differential prior and information loss caused by photon starvation.

    At the same time, we also note an increased estimation error near the lower boundary (Z = 6). Rather than a simple dataset boundary effect or model overfitting, this is driven by fundamental x-ray physics. For ultra-low-Z elements like carbon in the 20 keV–80 keV range, attenuation is dominated by Compton scattering instead of the photoelectric effect. Since the Compton cross-section is weakly dependent on photon energy, the resulting attenuation spectra are remarkably flat. This physical reality inherently diminishes the slope and curvature features required by the network for accurate Z discrimination.

5.   Conclusion
  • This study proposes a PINN framework to address spectral distortion in PCDs. By embedding an explicit differential layer within a physics-guided decoupled architecture, the method effectively overcomes the ill-posedness of traditional matrix inversion. Experimental validation on a CdZnTe-PCD demonstrated exceptional robustness, achieving an RMSE of 0.2457 (R2 = 0.9670), which closely aligns with the theoretical simulation benchmark (RMSE = 0.2111). This performance enhancement is attributed to the network extracting high-order spectral curvature features induced by the photoelectric effect. Future work will address the limitation of time-consuming full-spectrum scanning by exploring discrete multi-energy bin strategies. Leveraging the established physics-constrained model, we aim to optimize the selection of energy bins most sensitive to high-order spectral curvature, thereby facilitating real-time industrial applications.

Figure (7)  Table (2) Reference (44)

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return