# Deep Convolutional Neural Networks for Autofocus Control on a C. elegans Tracking System

**Authors:** Santiago Escobar-Benavides, Jose-Julio Peñaranda-Jara, Joan-Carles Puchalt, Antonio-José Sánchez-Salmerón

PMC · DOI: 10.3390/bios16020119 · Biosensors · 2026-02-12

## TL;DR

This paper introduces a fast autofocus method using deep learning to keep C. elegans in focus during live imaging.

## Contribution

A novel data augmentation technique and the use of ConvNext V2 for real-time autofocus prediction in microscopy.

## Key findings

- ConvNext V2 outperforms previous models in predicting optimal focus distances.
- The proposed data augmentation improves model performance without extra data collection.
- Field of View impacts model performance through spatial resolution and compression.

## 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.

## Linked entities

- **Species:** Caenorhabditis elegans (taxon 6239)

## Full-text entities

- **Diseases:** injury to (MESH:D014947), neurodegenerative diseases (MESH:D019636)
- **Chemicals:** ConvNext (-)
- **Species:** Caenorhabditis elegans (species) [taxon 6239], Escherichia coli (E. coli, species) [taxon 562], C. elegans [taxon 328850], Homo sapiens (human, species) [taxon 9606]
- **Cell lines:** OP50 — Homo sapiens (Human), q11.2) BCR-ABL1, Cancer cell line (CVCL_DG77)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12938743/full.md

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12938743/full.md

## References

25 references — full list in the complete paper: https://tomesphere.com/paper/PMC12938743/full.md

---
Source: https://tomesphere.com/paper/PMC12938743