Deep Convolutional Neural Networks for Autofocus Control on a C. elegans Tracking System
Open Access
- 12 February 2026
- journal article
- research article
- Published by MDPI AG in Biosensors
- Vol. 16 (2) , 119
Abstract
Correct focal positioning is essential for microscopy imaging of live moving subjects such as Caenorhabditis elegans. However, many methods can be too slow to perform real-time control to keep the subject in focus. In this work, we propose a convolutional neural network-based method to perform one-shot prediction of the optimal focusing distance, without the need to scan iteratively the optical axis to find the optimal position. A new data augmentation technique is proposed, and its effectiveness is validated through statistical analysis. This technique is shown to improve results without the need for additional data collection. Several architectures are trained in z-stacks of images, using the proposed data augmentation technique, and compared on a validation set. Through this comparison, we find that the ConvNext V2, a novel architecture in this context, outperforms other models proposed in previous works. Furthermore, the impact of the Field of View used for the model’s prediction is studied, with the aim of further understanding the influence of spatial resolution and spatial compression on the performance of the model.Keywords
All Related Versions
Funding Information
- Comunitat Valenciana (INVEST/2023/541)
- EU-FEDER Comunitat Valenciana (IDIFEDER/2018/025)
This publication has 23 references indexed in Scilit:
- Evaluation metrics and statistical tests for machine learningScientific Reports, 2024
- Towards generalization for Caenorhabditis elegans detectionComputational and Structural Biotechnology Journal, 2023
- Automatic worm detection to solve overlapping problems using a convolutional neural networkScientific Reports, 2022
- Multiview motion tracking based on a cartesian robot to monitor Caenorhabditis elegans in standard Petri dishesScientific Reports, 2022
- Autofocus of whole slide imaging based on convolution and recurrent neural networksUltramicroscopy, 2021
- An automated platform to monitor long-term behavior and healthspan in Caenorhabditis elegans under precise environmental controlCommunications Biology, 2020
- Automatic focus and fusion image algorithm using nonlinear correlation: Image quality evaluationOptik, 2018
- Neural network control of focal position during time-lapse microscopy of cellsScientific Reports, 2018
- C. elegans maximum velocity correlates with healthspan and is maintained in worms with an insulin receptor mutationNature Communications, 2015
- Development and real-time implementation of a rule-based auto-focus algorithmReal-Time Imaging, 2003