STAR-XPC: Set Transformer for Estimating X-ray Transmission in Polymer Composites
Organizations: Department of Computer Engineering, Bo˘gaziçi University, Bebek, 34342, Istanbul, Turkiye · Independent Researcher, Istanbul, Turkiye
Abstract
Evaluating the energy transmission ratio of an X-ray beam through a polymer composite is a challenging task in radiation shielding studies. The reference solution with Monte Carlo transport simulation is highly accurate but computationally expensive: each of our reference simulations is capped at photon histories and a 20,000 s (over 5 hours) time limit, while closed-form analytical methods fail to represent such complex scenarios. We present an artificial neural network model that maps the unordered multi-set of molecular constituents, their mass fractions, and four bulk physical descriptors directly to the transmission ratio in 1-3 milliseconds. The model is a Set Transformer, which makes it permutation invariant by construction and accepts mixtures of different sizes up to 11 constituents within a fixed-size padded set. Each constituent is embedded with a chemistry-pretrained transformer language model, ChemBERTa. In our proposed method, training data are produced by an automated PENELOPE/penEasy pipeline using the radiation source at 30, 80, 100, and 120 kV tube voltages over polyethylene-based shielding composite slabs of thicknesses spanning 0.15-2.5 mm. After preprocessing, the dataset contains simulated configurations on which a leakage-free, jointly stratified 10-fold cross-validation is performed, attaining mean squared error MSE = , normalized-MSE percentage NMSE% = 0.0294% 0.0147%, and . The corresponding per-sample percentage errors give an alpha-trimmed () absolute percentage error (APE) of 1.66% and a median APE of 1.15%. Our model's inference is several orders of magnitude faster than the underlying Monte Carlo simulation (sub-millisecond per query vs. several hours for the reference run) with effective accuracy in predicting .
Figures & tables
| Hyperparameter | Value |
|---|---|
| Hidden dimension | 256 |
| Attention heads | 32 |
| ISAB inducing points | 64 |
| PMA seed vectors | 8 |
| ISAB layers | 2 |
| Row-wise FF layers per block | 3 |
| Model | CV NMSE% | Held-out NMSE% | Ratio |
|---|---|---|---|
| Ridge (linear) | 3.25 | 7.89 | |
| Random Forest | 0.174 | 0.433 | |
| SVR (RBF) | 0.0312 | 0.0804 | |
| STAR-XPC | 0.0278 | 0.0496 |
| Tube voltage | MAE | NMSE% | (%) | ||
|---|---|---|---|---|---|
| 80 kV | 1367 | 0.00683 | 0.032 | 1.65 | 0.495 |
| 100 kV | 1318 | 0.00673 | 0.023 | 1.25 | 0.556 |
| 120 kV | 1311 | 0.00865 | 0.028 | 1.13 | 0.703 |
| Thickness bin (mm) | MAE | NMSE% | (%) | |
|---|---|---|---|---|
| 499 | 0.01031 | 0.0294 | 1.25 | |
| 454 | 0.00932 | 0.0440 | 1.58 | |
| 442 | 0.01005 | 0.0707 | 2.29 | |
| 546 | 0.01056 | 0.1196 | 3.32 |
| Thickness bin (mm) | MAE | NMSE% | (%) | |
|---|---|---|---|---|
| 558 | 0.00466 | 0.0057 | 0.51 | |
| 433 | 0.00454 | 0.0072 | 0.59 | |
| 631 | 0.00515 | 0.0201 | 0.92 | |
| 433 | 0.00495 | 0.0213 | 1.48 |
| Main Shielding Material | MAE | NMSE% | (%) | |
|---|---|---|---|---|
| BN | 371 | 0.0047 | 0.012 | 0.42 |
| B 4 C | 309 | 0.0046 | 0.009 | 0.47 |
| BaSO 4 | 525 | 0.0048 | 0.009 | 0.73 |
| Bi 2 O 3 | 599 | 0.0049 | 0.015 | 1.19 |
| WO 3 | 251 | 0.0052 | 0.017 | 1.23 |
| B | 248 | 0.0105 | 0.027 | 1.24 |
Neural Surrogate Modeling
Neural surrogate modeling uses learned models to approximate costly simulations, enabling faster prediction, design, control, and inference.
See all 410 papers