SparseFocus: Learning-based One-shot Autofocus for Microscopy with Sparse Content

Yongping Zhai, Xiaoxi Fu, Qiang Su, Jia Hu, Yake Zhang +6 more
2/10/2025
cs.CVq-bio.QM

No confident code implementation found for this paper.

Abstract

Autofocus is necessary for high-throughput and real-time scanning in microscopic imaging. Traditional methods rely on complex hardware or iterative hill-climbing algorithms. Recent learning-based approaches have demonstrated remarkable efficacy in a one-shot setting, avoiding hardware modifications or iterative mechanical lens adjustments. However, in this paper, we highlight a significant challenge that the richness of image content can significantly affect autofocus performance. When the image content is sparse, previous autofocus methods, whether traditional climbing-hill or learning-based, tend to fail. To tackle this, we propose a content-importance-based solution, named SparseFocus, featuring a novel two-stage pipeline. The first stage measures the importance of regions within the image, while the second stage calculates the defocus distance from selected important regions. To validate our approach and benefit the research community, we collect a large-scale dataset comprising millions of labelled defocused images, encompassing both dense, sparse and extremely sparse scenarios. Experimental results show that SparseFocus surpasses existing methods, effectively handling all levels of content sparsity. Moreover, we integrate SparseFocus into our Whole Slide Imaging (WSI) system that performs well in real-world applications. The code and dataset will be made available upon the publication of this paper.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhai2025sparsefocus,
  title  = {SparseFocus: Learning-based One-shot Autofocus for Microscopy with Sparse Content},
  author = {Yongping Zhai and Xiaoxi Fu and Qiang Su and Jia Hu and Yake Zhang and Yunfeng Zhou and Chaofan Zhang and Xiao Li and Wenxin Wang and Dongdong Wu and Shen Yan},
  year   = {2025},
  eprint = {2502.06452},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.06452v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.06452.svg)](https://codeofpaper.com/paper/2502.06452)

Discussion