A Unified Framework for Microscopy Defocus Deblur with Multi-Pyramid Transformer and Contrastive Learning

Yuelin Zhang, Pengyu Zheng, Wanquan Yan, Chengyu Fang, Shing Shin ChengOpenReview 2024

Introduction

Defocus blur represents a significant obstacle in microscopy, impacting both diagnostic accuracy in pathology and precision in surgical interventions. Unlike natural images, microscopy images exhibit unique characteristics—specifically, a requirement for longer-range spatial dependencies and a chronic shortage of high-quality, paired training data. To address these challenges, this research introduces a unified framework combining a Multi-Pyramid Transformer (MPT) and Extended Frequency Contrastive Regularization (EFCR).

Addressing the "Attention Gap"

A core finding of this work is that microscopy images require a significantly wider receptive field than natural images. The authors quantified this using the normalized average attention distance, revealing that deblurring microscopy features depends on information spread across larger spatial areas. Standard transformers, which often rely on local windows, struggle to capture these long-range interactions effectively.

The Multi-Pyramid Transformer (MPT)

The MPT architecture addresses the attention span issue through an explicit pyramid structure integrated at each network stage.

  • Cross-Scale Window Attention (CSWA): This mechanism allows the model to perform attention between a local window in the original resolution and a corresponding downscaled version. This effectively expands the receptive field without the quadratic computational cost usually associated with global attention, allowing the model to capture the long-range interactions necessary for microscopy.
  • Intra-Scale Channel Attention (ISCA): This component captures global context by modeling dependencies across feature channels.
  • Feature-Enhancing Feed-Forward Network (FEFN): By employing an asymmetric activation mechanism, the FEFN uses channel-wise information to guide and refine spatial features.

Overcoming Data Deficiency with EFCR

Obtaining ground-truth sharp images in live clinical settings is often impossible. The Extended Frequency Contrastive Regularization (EFCR) solves this by shifting the learning focus to the frequency domain.

  • Wavelet-Based Contrastive Learning: Using Haar wavelet transforms, the framework isolates high-frequency bands where blur artifacts are most prominent. The model is trained to minimize the distance between its output and the sharp ground truth in this frequency space, while maximizing the distance from the blurry input.
  • Cross-Domain Knowledge Transfer: EFCR enables the model to learn from external, labeled natural-scene datasets. This "knowledge" is then transferred to unlabeled microscopy data, allowing the framework to generalize to real-world samples where no ground truth exists.

Experimental Results and Impact

The framework was evaluated on diverse datasets, including cell microscopy (BBBC006, 3DHistech) and a newly introduced surgical dataset, CataBlur, which contains 1,208 real-world images from cataract surgeries.

Performance and Efficiency

The MPT+EFCR framework consistently outperformed state-of-the-art models like Restormer and GRL. Notably, on the BBBC006 dataset, the MPT achieved superior Peak Signal-to-Noise Ratio (PSNR) while requiring 46% fewer FLOPs and 24% fewer parameters than Restormer, demonstrating high efficiency.

Downstream Task Validation

The benefits of deblurring extend beyond visual quality. In practical applications:

  • Cell Detection: The framework improved Average Precision (AP) by nearly 20% compared to raw blurry images.
  • Surgical Segmentation: Deblurring significantly enhanced the accuracy of semantic segmentation in complex surgical scenes.
  • Zero-Shot Generalization: The model successfully restored fine details in the unlabeled CataBlur dataset, proving the effectiveness of the frequency-based knowledge transfer.

Conclusion

By explicitly modeling long-range spatial interactions and leveraging frequency-domain signals, the MPT-EFCR framework provides a robust solution for microscopy deblurring. Its ability to maintain high performance with reduced computational overhead makes it a promising candidate for real-time integration into clinical workflows and automated pathology systems. Future research will explore scaling the knowledge transfer with larger datasets and optimizing the architecture for live surgical "heads-up" displays.

Summary updated

BibTeX
@misc{zhang2024unified,
  author = {Yuelin Zhang and Pengyu Zheng and Wanquan Yan and Chengyu Fang and Shing Shin Cheng},
  title = {{A Unified Framework for Microscopy Defocus Deblur with Multi-Pyramid Transformer and Contrastive Learning}},
  year = {2024},
  eprint = {2403.02611},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.02611},
  howpublished = {OpenReview},
}
Figure