Neutron Imaging Enhancement for Lithium Batteries Based on Swin-Transformer and Image Fusion

Hansheng Ding, Fanxu Meng, Tian ZhangarXiv 2026

Imagine you’re trying to inspect the internal organs of a patient, but your only tool is an X-ray machine that can only see bones. In the world of batteries, X-rays are great at seeing the heavy metal casings, but they are nearly blind to the "soft tissue"—the lithium ions that actually do the work.

To see lithium, researchers turn to neutron imaging. Neutrons pass through heavy metals easily but get bounced around by light elements like lithium. It’s the perfect tool, except for one catch: neutron sources are often weak, and the detectors are sensitive to stray radiation. The resulting images often look like a grainy, low-contrast broadcast from a 1950s television set, plagued by "white spots" where high-energy gamma rays have bombarded the sensor.

This paper introduces a sophisticated "digital restoration" pipeline that uses deep learning and clever image fusion to turn these snowy captures into high-fidelity maps of a battery’s inner life.

TL;DR

By combining a specialized "Swin-Transformer" neural network with a dual-branch image fusion technique, the authors have created a way to strip away intense noise and "white spot" artifacts from neutron images. This allows researchers to see the microscopic boundaries and lithium distribution inside batteries with unprecedented clarity, achieving a 33 dB signal-to-noise ratio.

What Problem Does This Paper Address?

The core challenge is degradation. Because neutron flux is limited, the images suffer from a cocktail of Gaussian and Poisson noise (think: random graininess). Worse, the imaging process creates "white spots"—bright, irregularly shaped pixels caused by stray gamma rays hitting the CCD detector.

Standard denoising often leads to "over-smoothing," where the very details you want to see—like micro-cracks in an electrode or the wetting interface of an electrolyte—get blurred into oblivion. If you try to sharpen these blurry images using traditional math, you just end up amplifying the leftover noise, creating "spikes" of artifacts that ruin the data.

Figure 1. Examples of mixed degradation and white spot noise in real neutron images.

Methods

The authors propose a three-stage cascaded framework:

  1. The Deep Denoising "Heavy Lifter": They start with an improved Swin-Transformer (specifically a U-Net style architecture called SUNet). They didn't just use it off the shelf; they added Multi-Dconv Head Transposed Attention (MDTA) to capture global relationships across the image and Global Response Normalization (GRN) to ensure the network learns a diverse set of features. This stage effectively "scrubs" the noise and white spots.
  2. The Dual-Branch Enhancement: To fight the blurriness caused by denoising, the image is split into two paths:
  3. Branch A (Edges): Uses guided filtering and a "gradient-adaptive mask" to selectively sharpen only the structural edges, ignoring flat areas where noise might hide.
  4. Branch B (Contrast): Uses CLAHE (Contrast Limited Adaptive Histogram Equalization) to pull detail out of the shadows and highlights.
  5. Spatial-Frequency Fusion: Finally, they stitch these two branches back together. They use a "Spatial Frequency" (SF) metric to look at local blocks of the image. If a block has lots of detail, it takes more from the "Edge" branch; if it's a smooth area, it leans on the "Contrast" branch.
The architecture of the improved Swin-Transformer restoration network.

Datasets

Since high-quality "clean" neutron images of batteries are rare, the authors built their own:

  • NRI (Neutron Radiography Imaging) Dataset: They took 40 high-resolution, low-noise real neutron images as "Ground Truth."
  • Synthetic Degradation: They developed a novel "reverse extraction" method to isolate real white spot noise from experimental data and then mathematically layered it onto their clean images, along with Gaussian and Poisson noise. This resulted in over 10,000 "degraded-clean" image pairs for training.

Key Insights and Ideas

  • Local vs. Global: Standard CNNs have a limited "receptive field"—they only see a few pixels at a time. By using a Transformer with MDTA, the model can understand the "global" context of the image, which is crucial for identifying and removing large, continuous white spot artifacts.
  • Smart Sharpening: You can't just sharpen a noisy image. The authors show that direct sharpening creates massive "spikes" in the gradient map. Their use of a Sigmoid-based adaptive mask ensures that the sharpening only happens where there is actual structure.
Figure 2. Comparison of gradient magnitude surfaces before and after direct sharpening of a neutron

Key Results

The proposed method was tested against industry standards like BM3D, DnCNN, and GANs.

  • Quantitative: It achieved a PSNR (Peak Signal-to-Noise Ratio) of 33.05 dB and an SSIM (Structural Similarity) of 0.9637, outperforming the next best deep learning model (DnCNN) by a significant margin.
  • Qualitative: Visually, the method avoids the "hallucinations" or artifacts often seen in GAN-based restoration. It preserves the sharp boundaries between electrodes and separators, which are critical for diagnosing battery health.

Limitations and Future Work

  • Computational Intensity: Transformers are notoriously "heavy" compared to simple filters. The paper doesn't deeply discuss the inference time, which could be a factor for real-time in-situ monitoring.
  • Generalization: While the synthetic noise model is high-fidelity, the network's performance depends on how well the training data matches the specific "flavor" of noise from a particular neutron source or detector.

Future work could involve optimizing the network for speed or adapting it to 3D neutron tomography, where the noise challenges are even more daunting.

Summary updated

Abstract

Neutron imaging is highly sensitive to light elements such as lithium and is therefore valuable for non-destructive testing (NDT) and analyzing internal structural evolution in lithium batteries. However, limited neutron-source flux and detector performance often result in images with mixed noise, low contrast, and blurred edges, hindering accurate assessment of battery internal states. To address these issues, this paper proposes a lithium-battery neutron image enhancement method combining an improved Swin-Transformer with spatial-domain image fusion. First, an improved Swin-Transformer incorporating Multi-Dconv Head Transposed Attention (MDTA) and Global Response Normalization (GRN) extracts and reconstructs image features to suppress high-density white spots and Gaussian-Poisson mixed noise. Second, guided filtering and a gradient-adaptive mask are used for selective edge enhancement, while Contrast Limited Adaptive Histogram Equalization (CLAHE) improves local contrast. Finally, a spatial-frequency (SF)-based local block-weighted fusion mechanism adaptively combines the edge-enhanced and contrast-equalized images to preserve microscopic details while suppressing noise. Experiments show that, compared with BM3D, DnCNN, and GAN, the proposed method achieves strong performance in full-reference and no-reference evaluations. Its best PSNR and SSIM reach 33.0517 dB and 0.9637, respectively, while the NR-IQA and Natural Image Quality Evaluator (NIQE) scores are as low as 0.1794 and 4.0974. The method reduces artifacts and over smoothing, improving the visual fidelity and structural identifiability of lithium-battery neutron images.
BibTeX
@misc{ding2026neutron,
  author = {Hansheng Ding and Fanxu Meng and Tian Zhang},
  title = {{Neutron Imaging Enhancement for Lithium Batteries Based on Swin-Transformer and Image Fusion}},
  year = {2026},
  eprint = {2611.29479},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29479},
}
Figure