Search bioRxiv⌕ Search

Biology subjects

Premasinghe, J.

Publications and source records attributed to Premasinghe, J..

1 recordsLinked to original sources

A data engine for AI-assisted labeling of high-density sperm microscopy videos

Computer-aided semen analysis (CASA) systems are the standard tools for quantifying sperm motility, concentration, and morphology, but they rely on classical algorithms that struggle with overlapping cells, collisions, and the imaging artifacts that accumulate in long, high-density recordings. As a result, analyses are typically restricted to short videos of diluted samples. AI-based trackers could overcome these limitations, but they require large, accurately labeled training datasets, and manually labeling crowded sperm videos is prohibitively slow. Here we present a data engine for sperm tracking, where an AI model can be trained from low-density data to assist in labeling higher-density cases. We first obtain ground-truth trajectories from easy-to-label, low-density videos using a classical tracker (Trackpy) followed by human correction. From these trajectories, we generate synthetic videos that reproduce the motility characteristics of real sperm, and we further augment the real data by compositing existing videos together. This combined dataset trains an initial YOLO-based detector paired with ByteTrack, which then serves as an assistive labeler for the denser tier of videos. Through this process, we found the trained AI model was able to eliminate many of the crossovers that prevent effective labeling of sperm trajectories, with the crossover failure rate going from 44.8% down to 6.64% on medium density videos, and from 74.0% to 46.68% on high density videos. We release the videos, corrected trajectory datasets at each density, a purpose-built labeling tool, trained models with weights, and a software package for labeling, synthetic and augmented video generation, training, and evaluation. This framework provides a practical path toward AI-based semen analysis that remains reliable at high sperm densities and over long recordings.

bioinformatics↗