Spatial redundancy transformer for self-supervised fluorescence image denoising

Xinyang Li, Xiaowan Hu, Xingye Chen, Jiaqi Fan, Zhifeng Zhao, Jiamin Wu, Haoqian Wang, Qionghai Dai

Abstract

Fluorescence microscopy is a cornerstone of biological research, yet it is often limited by photon shot noise, phototoxicity, and photobleaching. While deep learning has shown promise in denoising, existing methods typically require clean ground-truth data or rely on temporal redundancy, which fails in slow-scan or high-motion scenarios. We present SRDTrans, a self-supervised framework that utilizes spatial redundancy and a lightweight spatiotemporal transformer. By sampling independent pixels within a single frame and leveraging the long-range dependency capabilities of transformers, SRDTrans effectively removes noise while preserving high-frequency biological details. Our results demonstrate significant improvements in signal-to-noise ratio (SNR) and localization precision across diverse imaging modalities, including calcium imaging and single-molecule localization microscopy (SMLM).

Introduction

Live-cell imaging requires a delicate balance between signal quality and sample viability. High laser power improves the signal-to-noise ratio (SNR) but induces phototoxicity and photobleaching. Consequently, most biological imaging is performed in photon-limited regimes, resulting in noisy data. Traditional denoising methods often struggle with the non-stationary nature of biological signals. Deep learning approaches, particularly self-supervised ones like DeepCAD, have mitigated the need for ground-truth data by exploiting temporal redundancy. However, these methods are ineffective when temporal correlation is low, such as in low-frequency volumetric scanning or during rapid sample movement. Furthermore, standard convolutional neural networks (CNNs) exhibit a "spectral bias," tending to over-smooth high-frequency details in favor of low-frequency patterns.

Methods

SRDTrans addresses these limitations through two primary technical innovations: Spatial Redundancy Sampling and a Spatiotemporal Transformer architecture.

Spatial Redundancy Sampling

Unlike temporal-based methods, SRDTrans exploits the spatial correlation inherent in biological structures. The framework uses orthogonal masks to partition a single noisy frame into an input substack and two target substacks. This process ensures that the noise, which is independent between pixels, is decoupled from the underlying signal, which is spatially correlated. This allows the network to learn to reconstruct the signal of a pixel based on its neighbors without ever seeing a "clean" version of that pixel.

Overview of the SRDTrans framework, including spatial redundancy sampling and the learning pipeline.

Lightweight Spatiotemporal Transformer

To overcome the spectral bias of CNNs, SRDTrans employs a transformer-based architecture. Transformers use self-attention mechanisms to capture long-range dependencies across both spatial and temporal dimensions. The authors developed a lightweight Spatiotemporal Transformer Block (STB) that avoids spatial downsampling, thereby preserving fine structural details. This architecture allows the model to integrate information across the entire field of view and through time, providing superior denoising performance compared to local-receptive-field CNNs.

Detailed architecture of the Spatiotemporal Transformer Block (STB) used in SRDTrans.

Results

The performance of SRDTrans was evaluated on both simulated and experimental datasets, including calcium imaging and SMLM.

Superior Detail Preservation

A key advantage of SRDTrans is its ability to recover high-frequency information that CNN-based methods often blur. In comparative tests, SRDTrans consistently outperformed SRDCNN (a CNN-based version of the same spatial redundancy framework), particularly in preserving the sharp edges of dendritic fibers and individual fluorescent molecules. Quantitative analysis showed that SRDTrans improved the Jaccard index in SMLM by approximately 6-fold and reduced localization error by 3.4-fold compared to raw data.

Calcium Imaging and SNR

For calcium imaging, the method achieved an average SNR improvement of 22 ± 2.47 dB. Notably, in volumetric imaging at low frame rates (0.3 Hz), SRDTrans successfully recovered neuronal firing events (calcium transients) that were completely buried in noise in the raw data. This capability is critical for studying large-scale neuronal populations where high-speed scanning is technically challenging.

Discussion

SRDTrans represents a significant advancement in self-supervised denoising for fluorescence microscopy. By shifting the focus from temporal to spatial redundancy, it enables high-quality imaging in regimes previously inaccessible to self-supervised deep learning. The use of a lightweight transformer architecture effectively mitigates spectral bias, ensuring that biological discoveries are not obscured by over-smoothing. While the method relies on the assumption of spatial redundancy (requiring sampling near the Nyquist limit), its robustness across various modalities makes it a versatile tool for the bioimaging community.

Summary updated

BibTeX
@article{li2023spatial,
  author = {Xinyang Li and Xiaowan Hu and Xingye Chen and Jiaqi Fan and Zhifeng Zhao and Jiamin Wu and Haoqian Wang and Qionghai Dai},
  title = {{Spatial redundancy transformer for self-supervised fluorescence image denoising}},
  journal = {Nat. Comput. Sci.},
  year = {2023},
  doi = {10.1038/s43588-023-00568-2},
}
Figure