In metal 3D printing by laser powder bed fusion, a laser melts powder one track at a time while a high-speed thermal sensor records the process. A "digital twin" here is a running software model of the part that should state where internal pores are forming, layer by layer, while the print is still underway. Current systems do this poorly. ThermoPore pairs 159,000 thermal frames, captured at 6–7 kHz, with micro-CT (X-ray tomography) ground truth at 3.63 µm per voxel. Its best spatial model still predicts pores only on a coarse 16×16 grid and reaches a mean intersection-over-union (IoU) of 0.32. Two separate deficits sit behind that number. First, the network compresses the data and never routes fine spatial information back to its output. Second, nothing ties each thermal frame to the exact place on the part where the laser was when the frame was taken.
The claim of this note is that, in an in-situ twin, these two deficits are one problem. The sensor stream and the laser-position stream run on separate clocks. A timing offset of Δt between them misplaces every feature by v·Δt, where v is the scan speed, so synchronization error becomes spatial blur. We propose a detail-preserving encoder-decoder whose skip connections are warped into part coordinates using the machine's own laser-position telemetry. The model jointly estimates the clock offset between the two streams and reports localization quality as an explicit function of timing error. That turns a network-quality measure of twin synchronization into a measure of geometric fidelity.
Core Claim and What Is New
Skip connections are paths that carry early, high-resolution feature maps directly to the decoder, around the compressed middle of the network. They are the standard way to keep thin structures from being smoothed away (Preserving Spatial Detail in Encoder Decoder Networks; Root Gap Correction with a Deep Inpainting Model). They assume that a pixel in the input corresponds to the same pixel in the output. Novel View Synthesis via Depth-guided Skip Connections showed that this assumption breaks when the camera moves. Its fix is to warp encoder features with a predicted depth map and a known rigid pose. That fix improves SSIM on ShapeNet Chairs from 0.8851 to 0.9256 and preserves thin chair legs.
Our setting differs in three ways that matter. The warp does not need to be predicted, because the printer already logs, or commands, where the laser is. The input is a continuous stream with thousands of frames per layer, not a single image. And the dominant source of warp error is clock misalignment rather than geometry. We therefore use the depth-guided warping idea, but the warp comes from synchronization telemetry. On the twin side, ODTE: A Metric for Digital Twin Entanglement scores physical–virtual synchronization as timeliness × reliability × availability. It shows the score collapses under 50 ms of jitter or 10% packet loss, but it treats the payload as opaque. We ask what that degradation does to the geometry the twin recovers. To our knowledge, no paper in this area connects timing quality to spatial resolution, and none places a toolpath-driven warp inside skip connections for in-situ monitoring.
Research Program
The model processes one layer at a time. A lightweight per-frame encoder turns each thermal frame into multi-scale features. Each frame carries a timestamp $t_k$. We read the laser position $p(t_k + \delta)$ from the scan log, or reconstruct it from the commanded toolpath, where $\delta$ is a learned clock offset shared across a build. Features at every encoder scale are then splatted into a layer-wide "canvas" in part coordinates using bilinear weights. This canvas is the twin's spatial state. A U-Net decoder reads the canvases through skip connections at matching scales and predicts a pore-probability map. The map has a resolution chosen up to the limit the CT supervision supports. Because the splat is differentiable in $\delta$, the offset is trained together with the network. At test time it is re-estimated per build by maximizing agreement between predicted thermal-anomaly tracks and the scan tracks. This is the same role the Extended Kalman Filter plays for hidden process states in Digital Twin of Aerosol Jet Printing, here applied to a timing state.
The analysis rests on a kinematic prediction:
$$e_{\text{reg}} \approx v\,|\Delta t|,$$
where $e_{\text{reg}}$ is the misregistration distance on the part, $v$ the scan speed, and $\Delta t$ the residual clock error. The form follows directly from constant-speed motion along a track. It implies that localization IoU at grid cell size $c$ should degrade sharply once $v|\Delta t|$ approaches $c$. Finer grids should therefore demand proportionally tighter synchronization. We will measure this curve rather than assume it. The result would give twin designers a direct conversion from a timing budget to the smallest resolvable defect.
We should be clear about the time constraint. Layer-wise updates in this process run on a per-layer schedule, not ODTE's sub-50 ms control loop. The target is to finish inference before the next layer is spread, and we will report wall-clock time per layer.
One dependency must be checked first. The file does not say whether the ThermoPore pyrometer is coaxial with the laser, which would require warping, or a fixed off-axis view of the bed. If the view is fixed, the spatial warp reduces to a static mapping. The timing question remains, because timing then decides which frames get assigned to which scan track and region. In that case the contribution narrows to the offset estimation and the timing-to-resolution analysis.
Baselines
The do-nothing reference predicts the training-set mean pore density everywhere. We will report it alongside ThermoPore's own models. Those models are the 3D CNN for per-layer pore counts, at R² = 0.57 on the hatch-spacing subset, and the ViViT with a dense head on a 16×16 grid, at mean IoU = 0.32 on the hatch-spacing subset (ThermoPore). Beating the published ViViT means exceeding 0.32 IoU at 16×16 on the same split. We will re-run it ourselves under our data loader, so that any gap is not an artifact of preprocessing.
The strongest competitor is a classical pipeline. It assigns each thermal sample to its logged scan position and rasterizes the samples into a per-layer image of peak temperature, cooling rate, and dwell time. It then trains a standard U-Net with identity skip connections on those images. This baseline uses the same telemetry as our method but does registration once, at the input, with a fixed offset. A variant estimates the offset by cross-correlating thermal intensity with the scan schedule. All neural models get the same training split, the same CT-derived labels at each grid resolution, matched parameter counts within 10%, and the same hyperparameter search budget.
Two ablations isolate the key ingredients. The first removes the warp: frames are stacked in sensor coordinates with ordinary identity skips. The second keeps the warp but freezes δ at zero. We beat the strongest baseline only if we exceed it at grid resolutions finer than 16×16, or keep IoU markedly flatter as injected timing error grows. Matching it on clean data would not count as a win.
Why not just…?
Why not just rasterize the thermal data into part coordinates and run a plain U-Net? This is the real threat. With accurate timestamps it may match our method, since the information content is the same. The case for feature-level warping is that splatting learned multi-scale features keeps more than a few hand-picked thermal statistics per pixel. The case for the learned offset is that a fixed input-level registration cannot recover from timing error. The jitter-injection experiment settles both points. If the rasterized U-Net with cross-correlation offset estimation stays within noise of our method across all injected offsets and resolutions, we will report that the contribution is the timing-to-resolution analysis and the registration step, not the architecture.
Why not just use a bigger ViViT with a finer output grid? ThermoPore's ViViT compresses video into tokens before projecting to the grid. SEIS shows that deep layers without bypass paths progressively lose spatial equivariance, the property that features shift when the input shifts. In a ResNet-18, equivariance falls from roughly 0.9 to low values with depth. Without skip connections, a finer head has nothing high-resolution to read. We will include a 64×64 ViViT head at matched compute to check this directly.
Why not just fix the clocks in hardware? Where hardware triggering exists, residual timing error shrinks and our offset estimation matters less. The other parts of the proposal still apply: the warp, and the measured link between timing and resolution, which tells engineers how tight triggering must be for a given defect size. ODTE's testbed shows that networked twins see jitter in the tens of milliseconds outside the lowest network layers. The robustness question therefore holds for any twin whose sensor and controller are not on a shared trigger.
Proposed Experiments
The primary benchmark is the ThermoPore LPBF dataset, with both the hatch-spacing and laser-velocity subsets. CT pore maps are downsampled to 16×16, 32×32, 64×64, and 128×128 grids. Metrics are mean IoU per grid, pore-count R², and detection recall binned by pore diameter. ThermoPore reports that small pores lack thermal signatures, so recall by size shows where any gain comes from.
The decisive experiment replays the data with injected timing perturbations, in the spirit of ODTE's Chaos Mesh disturbances. Constant offsets, jitter up to 50 ms, and 10% frame drops are applied to the alignment between the thermal and position streams. We plot IoU against $v|\Delta t|/c$ for every method. The prediction is that all methods without offset estimation collapse near a ratio of one. Our method should hold its clean accuracy until residual offset error, after re-estimation, reaches that point. If the curves do not line up on this normalized axis, the kinematic account is wrong and the twin's resolution limit lies elsewhere. That would itself be useful to know.
A small synthetic control isolates the mechanism. It renders moving heat sources over procedurally placed voids with exact timestamps, and checks the scaling against known ground truth. Robustness to timing error is the decisive check of the proposal. Gains on clean data alone would not establish that the warp is necessary.
References
- ThermoPore: Predicting Part Porosity Based on Thermal Images Using Deep Learning
- Root Gap Correction with a Deep Inpainting Model
- Novel View Synthesis via Depth-guided Skip Connections
- ODTE: A Metric for Digital Twin Entanglement
- Digital Twin of Aerosol Jet Printing
- SEIS: Subspace-based Equivariance and Invariance Scores for Neural Representations