SwinTCS: A Swin Transformer Approach to Compressive Sensing with Non-Local Denoising

Xiuying Li, Haoze Li, Hongwei Liao, Zhufeng Suo, Xuesong Chen, Jiameng HanJ. Imaging 2025 · DOI

TL;DR

This paper introduces SwinTCS, a novel deep learning framework for compressive sensing (CS) image reconstruction that leverages the power of Swin Transformers for global feature extraction and CNNs for local details. By incorporating a non-local means denoising module, SwinTCS achieves state-of-the-art performance, significantly improving reconstruction quality and robustness, especially under high compression and noisy conditions.

What Problem Does This Paper Address?

The Internet of Things (IoT) generates vast amounts of data, particularly visual information, posing significant challenges for storage, processing, and transmission. Traditional imaging methods, like those based on the Nyquist-Shannon theorem, require high sampling rates that are often impractical for resource-constrained IoT devices. Compressive Sensing (CS) offers a promising solution by enabling signal acquisition and dimensionality reduction simultaneously, but traditional CS reconstruction methods often suffer from boundary artifacts and limited robustness to noise. While deep learning has advanced CS reconstruction, existing methods struggle to effectively model both global contextual information and fine-grained local details, especially in high-compression scenarios.

Methods

SwinTCS is a dual-path deep learning framework designed for efficient and high-quality CS image reconstruction.

  • Swin Transformer Backbone: The core of the framework utilizes the Swin Transformer, known for its efficient shifted window attention mechanism. This allows it to capture long-range dependencies and global contextual information effectively while maintaining computational efficiency, a crucial aspect for practical deployment.
  • CNN Branch: Complementing the Swin Transformer, a Convolutional Neural Network (CNN) branch is employed to extract fine-grained local image details. This dual-branch approach ensures that both global context and local features are captured.
  • Non-Local Means Denoising (NLM) Module: To enhance robustness against noise and improve reconstruction quality, a Non-Local Means Denoising module is integrated. This module leverages global feature similarity to suppress noise and refine feature maps, leading to more natural-looking reconstructions.
  • Attention Fusion Module: An attention fusion mechanism is used to effectively integrate the features from the Swin Transformer and CNN branches, further enhancing the coherence and interaction between global and local information.
  • Learnable Sampling Module: The framework also incorporates a data-driven, trainable sensing matrix, which is jointly optimized with the reconstruction module to improve overall performance.

Datasets

  • Training: BSD500 dataset (400 images) was used for training.
  • Validation: Set11 dataset was used for validation.
  • Testing: Four commonly used benchmark datasets were used for evaluation: Set5, Set14, BSDS100, and Urban100.

Key Insights and Ideas

  • Synergy of Global and Local: The paper highlights the critical importance of combining global contextual modeling (via Swin Transformer) with fine-grained local feature extraction (via CNN) for superior CS reconstruction.
  • NLM for Robustness: The integration of Non-Local Means Denoising proves to be a highly effective strategy for improving reconstruction quality, particularly in the presence of noise and at higher compression rates. It acts as a crucial smoothing component.
  • Swin Transformer's Efficiency: The Swin Transformer's shifted window mechanism offers a significant advantage in balancing performance and computational cost, making it well-suited for CS tasks compared to traditional global self-attention Transformers.
  • Artifact Reduction: The proposed architecture, particularly with the NLM module, demonstrates a strong ability to mitigate blocky artifacts, a common issue in CS reconstruction.

Key Results

  • State-of-the-Art Performance: SwinTCS consistently outperforms existing state-of-the-art methods (including GBsR, ReconNet, CSNet, CSformer, ISTA-Net, AMP-Net, TransCS, and OCTUF) across various datasets and sampling rates, as evidenced by higher PSNR and SSIM values.
  • High Compression Performance: The model shows significant advantages at high compression rates, outperforming other Transformer-based models.
  • Noise Robustness: SwinTCS demonstrates good noise robustness, achieving high reconstruction quality even with added Gaussian noise, though it is still affected by increasing noise levels.
  • Competitive Complexity: SwinTCS achieves lower GFLOPs and fewer parameters compared to some Transformer-based models like TransCS and OCTUF, indicating a favorable trade-off between performance and complexity.

Limitations and Future Work

  • Limitations:
    • While SwinTCS outperforms other models, it is still affected by Gaussian noise, indicating that further improvements in noise suppression might be beneficial.
  • Practical deployment in real IoT environments faces challenges like limited memory, hardware constraints, and high sensor noise.
  • Processing visual data raises privacy concerns, and ethical issues related to misuse need attention.
  • Future Work:
    • Optimize the shift strategy and network depth for complex visual scenes.
  • Dynamically adjust learning rates and optimization strategies for better convergence.
  • Further accelerate the model for low-latency IoT applications on edge devices.
  • Investigate privacy-preserving mechanisms like encryption or federated learning.
  • Develop ethical guidelines for responsible deployment and evaluate the social impact.

Summary updated

BibTeX
@article{li2025swintcs,
  author = {Xiuying Li and Haoze Li and Hongwei Liao and Zhufeng Suo and Xuesong Chen and Jiameng Han},
  title = {{SwinTCS: A Swin Transformer Approach to Compressive Sensing with Non-Local Denoising}},
  journal = {J. Imaging},
  year = {2025},
  doi = {10.3390/jimaging11050139},
}
Figure