Hybrid high-precision autofocus method based on deep learning and variable-step hill-climbing

In traditional autofocus algorithms, the determination of the optimal focus position relies on identifying the lens location that yields the maximum image sharpness. However, during the initial search stage, the difficulty in selecting an appropriate step size often causes the algorithm to be trapped in local optima, and under complex lighting and scene conditions, it further suffers from time-consuming iterative computations, leading to prolonged processing time. Meanwhile, current deep learning-based autofocus methods still face challenges in achieving high focusing accuracy. To address these challenges, we propose a hybrid high-precision autofocus algorithm that combines an improved deep learning network with a variable-step hill-climbing strategy. Specifically, the convolutional block attention module (CBAM) and efficient channel attention (ECA) mechanisms are integrated into ShuffleNetV2 to enhance multi-level feature extraction. The classification layer is replaced with a three-layer fully connected structure to directly regress the defocus distance. The predicted value is then used to guide the variable-step local search, thus achieving final accurate localization. Experimental results demonstrate that the proposed method reduces the average focusing error by 47% to 91% and decreases processing time by 63% to 88%. In addition, robustness is improved, with a 26% to 81% reduction in the standard deviation of the average focusing errors. Together, these improvements offer an efficient and reliable autofocus solution for complex imaging scenarios.

Authors

Publication Details

Journal
Applied Optics
Published
2025-12-22
DOI
https://doi.org/10.1364/ao.580508
Primary Topic
Image Processing Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hybrid high-precision autofocus method based on deep learning and variable-step hill-climbing

Haoming Xiang, Shuhao Yuan
Applied Optics
Image Processing Techniques and Applications
article

Hybrid high-precision autofocus method based on deep learning and variable-step hill-climbing

Haoming Xiang, Shuhao Yuan
article en

Abstract

In traditional autofocus algorithms, the determination of the optimal focus position relies on identifying the lens location that yields the maximum image sharpness. However, during the initial search stage, the difficulty in selecting an appropriate step size often causes the algorithm to be trapped in local optima, and under complex lighting and scene conditions, it further suffers from time-consuming iterative computations, leading to prolonged processing time. Meanwhile, current deep learning-based autofocus methods still face challenges in achieving high focusing accuracy. To address these challenges, we propose a hybrid high-precision autofocus algorithm that combines an improved deep learning network with a variable-step hill-climbing strategy. Specifically, the convolutional block attention module (CBAM) and efficient channel attention (ECA) mechanisms are integrated into ShuffleNetV2 to enhance multi-level feature extraction. The classification layer is replaced with a three-layer fully connected structure to directly regress the defocus distance. The predicted value is then used to guide the variable-step local search, thus achieving final accurate localization. Experimental results demonstrate that the proposed method reduces the average focusing error by 47% to 91% and decreases processing time by 63% to 88%. In addition, robustness is improved, with a 26% to 81% reduction in the standard deviation of the average focusing errors. Together, these improvements offer an efficient and reliable autofocus solution for complex imaging scenarios.

Applied OpticsVol. 65(3)
Openalex Percentile: Top 34%
Image Processing Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.