Deep Convolutional Neural Networks for Autofocus Control on a C. elegans Tracking System
Abstract
1. Introduction
2. Materials and Methods
2.1. Dataset
2.2. CNN Architectures
3. Results
3.1. Training Results
3.2. Cropped Stacks Data Augmentation
3.3. Field of View Effect
4. Discussion
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Di Rosa, G.; Brunetti, G.; Scuto, M.; Trovato Salinaro, A.; Calabrese, E.J.; Crea, R.; Schmitz-Linneweber, C.; Calabrese, V.; Saul, N. Healthspan Enhancement by Olive Polyphenols in C. elegans Wild Type and Parkinson’s Models. Int. J. Mol. Sci. 2020, 21, 3893. [Google Scholar] [CrossRef]
- Hahm, J.-H.; Kim, S.; DiLoreto, R.; Shi, C.; Lee, S.-J.V.; Murphy, C.T.; Nam, H.G. C. elegans maximum velocity correlates with healthspan and is maintained in worms with an insulin receptor mutation. Nat. Commun. 2015, 6, 8919. [Google Scholar] [CrossRef] [PubMed]
- García Garví, A.; Puchalt, J.C.; Layana Castro, P.E.; Navarro Moya, F.; Sánchez-Salmerón, A.-J. Towards Lifespan Automation for Caenorhabditis elegans Based on Deep Learning: Analysing Convolutional and Recurrent Neural Networks for Dead or Live Classification. Sensors 2021, 21, 4943. [Google Scholar] [CrossRef] [PubMed]
- Puchalt, J.C.; Layana Castro, P.E.; Sánchez-Salmerón, A.-J. Reducing Results Variance in Lifespan Machines: An Analysis of the Influence of Vibrotaxis on Wild-Type Caenorhabditis elegans for the Death Criterion. Sensors 2020, 20, 5981. [Google Scholar] [CrossRef] [PubMed]
- Puchalt, J.C.; Gonzalez-Rojo, J.F.; Gómez-Escribano, A.P.; Vázquez-Manrique, R.P.; Sánchez-Salmerón, A.-J. Multiview motion tracking based on a cartesian robot to monitor Caenorhabditis elegans in standard Petri dishes. Sci. Rep. 2022, 12, 1723. [Google Scholar] [CrossRef]
- Dong, S.; Liu, X.; Lin, Y.; Arai, T.; Kojima, M. Automated Tracking System for Time Lapse Observation of C. elegans. In 2018 IEEE International Conference on Mechatronics and Automation (ICMA), Changchun, China, 5–8 August 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 504–509. [Google Scholar] [CrossRef]
- Le, K.N.; Zhan, M.; Cho, Y.; Wan, J.; Patel, D.S.; Lu, H. An automated platform to monitor long-term behavior and healthspan in Caenorhabditis elegans under precise environmental control. Commun. Biol. 2020, 3, 297. [Google Scholar] [CrossRef]
- Kehtarnavaz, N.; Oh, H.-J. Development and real-time implementation of a rule-based auto-focus algorithm. Real-Time Imaging 2003, 9, 197–203. [Google Scholar] [CrossRef]
- He, J.; Zhou, R.; Hong, Z. Modified fast climbing search auto-focus algorithm with adaptive step size searching technique for digital camera. IEEE Trans. Consum. Electron. 2003, 49, 257–262. [Google Scholar] [CrossRef]
- Chen, C.-M.; Hong, C.-M.; Chuang, H.-C. Efficient auto-focus algorithm utilizing discrete difference equation prediction model for digital still cameras. IEEE Trans. Consum. Electron. 2006, 52, 1135–1143. [Google Scholar] [CrossRef]
- Xiang, Y.; He, Z.; Liu, Q.; Chen, J.; Liang, Y. Autofocus of whole slide imaging based on convolution and recurrent neural networks. Ultramicroscopy 2021, 220, 113146. [Google Scholar] [CrossRef]
- Pinkard, H.; Phillips, Z.; Babakhani, A.; Fletcher, D.A.; Waller, L. Deep learning for single-shot autofocus microscopy. Optica 2019, 6, 794. [Google Scholar] [CrossRef]
- Ho, C.-J.; Chan, C.-C.; Chen, H.H. AF-Net: A Convolutional Neural Network Approach to Phase Detection Autofocus. IEEE Trans. Image Process. 2020, 29, 6386–6395. [Google Scholar] [CrossRef]
- Wei, L.; Roberts, E. Neural network control of focal position during time-lapse microscopy of cells. Sci. Rep. 2018, 8, 7313. [Google Scholar] [CrossRef] [PubMed]
- Liao, J.; Chen, X.; Ding, G.; Dong, P.; Ye, H.; Wang, H.; Zhang, Y.; Yao, J. Deep learning-based single-shot autofocus method for digital microscopy. Biomed. Opt. Express 2021, 13, 314. [Google Scholar] [CrossRef] [PubMed]
- Jiang, S.; Liao, J.; Bian, Z.; Guo, K.; Zhang, Y.; Zheng, G. Transform- and multi-domain deep learning for single-frame rapid autofocusing in whole slide imaging. Biomed. Opt. Express 2018, 9, 1601. [Google Scholar] [CrossRef] [PubMed]
- Cabazos-Marín, A.R.; Álvarez-Borrego, J. Automatic focus and fusion image algorithm using nonlinear correlation: Image quality evaluation. Optik 2018, 164, 224–242. [Google Scholar] [CrossRef]
- Escobar-Benavides, S.; García-Garví, A.; Layana-Castro, P.E.; Sánchez-Salmerón, A.-J. Towards generalization for Caenorhabditis elegans detection. Comput. Struct. Biotechnol. J. 2023, 21, 4914–4922. [Google Scholar] [CrossRef]
- Bates, K.; Le, K.N.; Lu, H. Deep learning for robust and flexible tracking in behavioral studies for C. elegans. PLoS Comput. Biol. 2022, 18, e1009942. [Google Scholar] [CrossRef]
- Mori, S.; Tachibana, Y.; Suzuki, M.; Harada, Y. Automatic worm detection to solve overlapping problems using a convolutional neural network. Sci. Rep. 2022, 12, 8525. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. Available online: https://arxiv.org/abs/1512.03385 (accessed on 17 December 2024).
- Howard, A.; Sandler, M.; Chu, G.; Chen, L.-C.; Chen, B.; Tan, M.; Wang, W.; Zhu, Y.; Pang, R.; Vasudevan, V.; et al. Searching for MobileNetV3. Available online: https://arxiv.org/abs/1905.02244 (accessed on 17 December 2024).
- Woo, S.; Debnath, S.; Hu, R.; Chen, X.; Liu, Z.; Kweon, I.S.; Xie, S. ConvNeXt V2: Co-Designing and Scaling ConvNets with Masked Autoencoders. Available online: https://arxiv.org/abs/2301.00808 (accessed on 17 December 2024).
- Lee, L.-W.; Lee, C.-C.; Huang, C.-R.; Lo, S.J. The Nucleolus of Caenorhabditis elegans. J. Biomed. Biotechnol. 2012, 2012, 601274. [Google Scholar] [CrossRef]
- Rainio, O.; Teuho, J.; Klén, R. Evaluation metrics and statistical tests for machine learning. Sci. Rep. 2024, 14, 6086. [Google Scholar] [CrossRef]





| Train | Validation | |||
|---|---|---|---|---|
| Stacks | Images | Stacks | Images | |
| Complete Image Stacks | 68 | 27,646 | 6 | 1988 |
| Cropped Image Stacks | 244 | 98,038 | 18 | 6528 |
| Model | Params (M) | GPUtime (ms) | CPUtime (ms) | GFLOPs |
|---|---|---|---|---|
| ResNet18 | 11.31 | 1.92 | 55.80 | 46.59 |
| MobileNetV3 Small | 2.82 | 3.74 | 86.88 | 0.33 |
| MobileNetV3 Large | 5.77 | 4.40 | 215.67 | 1.21 |
| ConvNeXt V2 Pico | 8.68 | 3.27 | 164.43 | 6.65 |
| ConvNeXt V2 Tiny | 28.05 | 7.39 | 601.35 | 21.67 |
| Model | Validation MAEcomplete | Validation MAEcropped |
|---|---|---|
| ResNet18 | 72.531 | 74.297 |
| MobileNetV3 Small | 92.765 | 105.767 |
| MobileNetV3 Large | 98.247 | 110.742 |
| ConvNeXt V2 Pico | 50.478 | 49.681 |
| ConvNeXt V2 Tiny | 25.849 | 42.326 |
| Training Dataset | Val. MAEcomplete | Val. MAEcropped |
|---|---|---|
| Complete stacks | 40.595 | 100.252 |
| Complete & Cropped stacks | 25.849 | 42.326 |
| Cropping Dimension | MAE |
|---|---|
| pixels | 42.326 |
| pixels | 35.400 |
| pixels | 36.023 |
| pixels | 33.974 |
| Complete images | 25.849 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Escobar-Benavides, S.; Peñaranda-Jara, J.-J.; Puchalt, J.-C.; Sánchez-Salmerón, A.-J. Deep Convolutional Neural Networks for Autofocus Control on a C. elegans Tracking System. Biosensors 2026, 16, 119. https://doi.org/10.3390/bios16020119
Escobar-Benavides S, Peñaranda-Jara J-J, Puchalt J-C, Sánchez-Salmerón A-J. Deep Convolutional Neural Networks for Autofocus Control on a C. elegans Tracking System. Biosensors. 2026; 16(2):119. https://doi.org/10.3390/bios16020119
Chicago/Turabian StyleEscobar-Benavides, Santiago, Jose-Julio Peñaranda-Jara, Joan-Carles Puchalt, and Antonio-José Sánchez-Salmerón. 2026. "Deep Convolutional Neural Networks for Autofocus Control on a C. elegans Tracking System" Biosensors 16, no. 2: 119. https://doi.org/10.3390/bios16020119
APA StyleEscobar-Benavides, S., Peñaranda-Jara, J.-J., Puchalt, J.-C., & Sánchez-Salmerón, A.-J. (2026). Deep Convolutional Neural Networks for Autofocus Control on a C. elegans Tracking System. Biosensors, 16(2), 119. https://doi.org/10.3390/bios16020119

