From manual counting to YOLO: Using computer vision to automate large-scale fecundity assays in C. elegans

This article has 0 evaluations Published on
Read the full article Related papers
This article on Sciety

Abstract

Fecundity measurements play a crucial role in life history research, providing insights into reproductive fitness, population dynamics, and environmental responses. In the model nematode Caenorhabditis elegans, fecundity assays are widely used to study development, aging, and genetic or environmental influences on reproduction. C. elegans hermaphrodites have large numbers of offspring (>100), so manual counting of viable offspring is time-consuming and susceptible to human error. Automated counting methods have the potential to enhance throughput, accuracy, and precision in data collection.

We applied computer vision to 9,972 images of broods from individual C. elegans hermaphrodites from several strains under multiple treatments to capture variation in fecundity. We trained models using YOLO versions v8 to v11 (large and extra-large variants) to detect and count viable offspring, then compared the model results to estimates from manual counting.

The best model was trained by YOLO v11-L. After fine-tuning, this model correctly detected 92% of all offspring visible in the images (recall) and was correct about 94.6% of the offspring it marked (precision). Manual counts differed from verified ground-truth counts by an average of 2.65 offspring per image, compared to 0.95 for the trained computer vision model. In addition, we detected significant effects of counter identity, experimental block, and their interaction on manual counts. Computer vision counts were not affected by these biases and outperformed manual counting in both speed and consistency.

We demonstrate that computer vision can be a powerful tool for fecundity assays in C. elegans and provide a pipeline for applying this approach to new image sets. More broadly, applying computer vision to digital collections can advance ecological and evolutionary research by accelerating the study of fitness and life history.

Related articles

Related articles are currently not available for this article.