← Latest papers
⚡ electrical engineering

Design and Implementation of an Image-Based Autofocus Control System for Optical Microscopy

This paper presents the design and implementation of an image-based autofocus system for optical microscopy that integrates a stepper motor stage with a CCD camera, utilizing an interactive region-of-interest selection and a hill-climbing search strategy to identify the improved average gradient as the optimal focus evaluation function, thereby achieving high-precision, automated focusing with a 4-second cycle time and 1.25µm resolution.

Original authors: Wei Jiang, Hongyan Liu, Jinsheng Guo, Waseem ur Rahman

Published 2026-09-29
📖 4 min read☕ Coffee break read

Original authors: Wei Jiang, Hongyan Liu, Jinsheng Guo, Waseem ur Rahman

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of materials science and semiconductor manufacturing, seeing the smallest details is everything. Optical microscopes are the primary tools used to inspect silicon wafers, the thin slices of crystal that form the backbone of modern electronics. These machines magnify tiny structures, allowing engineers to verify that the microscopic circuits on a chip are perfect. However, a microscope is only as good as its focus. If the lens is even slightly out of alignment, the image blurs, details vanish, and critical defects go unnoticed. Traditionally, a human operator has had to manually turn a knob to find that perfect point of sharpness. This process is slow, relies heavily on the operator's tired eyes, and introduces human error. To solve this, researchers have spent years developing systems that can focus the lens automatically, using the image itself to tell the machine when it has found the clearest view.

A team of researchers at Hengxing University of Science and Technology has taken a significant step forward in this area by building and testing a new automatic focusing system designed specifically for inspecting silicon wafers. Their work centers on a simple but powerful idea: a sharp image contains more high-frequency detail and stronger edges than a blurry one. By measuring these visual characteristics, a computer can determine exactly how close the lens is to the perfect focal point. The team constructed a physical setup that combines a standard optical microscope with a computer-controlled motor and a digital camera. Instead of relying on external sensors like lasers or ultrasound, their system looks directly at the picture being taken, analyzes its sharpness, and moves the lens up or down until the image is as clear as possible.

The researchers tested four different mathematical methods to decide which one was best at judging image sharpness. They used a silicon wafer with distinct, parallel stripes on its surface as their test subject, a common material in the industry. The four methods they compared were variations of edge detection, which essentially count how much the brightness of the image changes from one pixel to the next. One method, the improved average gradient, calculated the average change in brightness across the entire image. Another, the Roberts operator, looked at diagonal changes. A third, the Sobel operator, weighed the changes more heavily toward the center of the image, and the fourth, the Laplacian operator, measured how quickly the changes themselves were changing. The team found that the improved average gradient method was the clear winner. It produced a smooth, reliable curve that rose steadily to a single peak when the image was in focus, making it easy for the computer to know exactly when to stop. In contrast, the Sobel operator struggled to detect the fine textures of the silicon wafer, resulting in a flat, unhelpful signal that made it difficult to find the best focus.

To make the system faster and more accurate, the researchers introduced a feature that lets a human operator select a specific rectangular area on the screen to focus on, rather than analyzing the entire image. This "region of interest" approach cuts down the amount of data the computer has to process and ignores the empty background that often confuses the system. Once the area is chosen, the computer uses a search strategy called hill-climbing. The system moves the lens one small step, takes a picture, and checks the sharpness. If the new picture is sharper, it keeps moving in that direction. If the picture gets blurrier, it knows it has passed the peak and reverses course to find the sharpest spot again. This method is efficient and avoids the need to test every single possible position.

The results of their experiments were precise and practical. The system achieved a minimum focusing accuracy of 1.25, which is the smallest movement the motor can make. This level of precision is sufficient for the demanding requirements of semiconductor manufacturing. Furthermore, the entire process of finding the perfect focus took only about four seconds, a speed that makes it viable for automated production lines where time is critical. The study also confirmed that the accuracy of the system is directly tied to the size of the steps the motor takes; smaller steps allowed for finer adjustments and a more accurate final position, though they required the system to take more pictures to find the peak. While the current system still requires a human to click and select the area of interest, the researchers demonstrated that their chosen method of judging sharpness is robust and fast. Their work provides a reliable blueprint for building automated inspection tools that can handle the delicate task of focusing on silicon wafers without human intervention, ensuring that the tiny circuits inside our devices are manufactured with the highest possible quality.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →