Skip to main content
AI analysis of a developing embryo from time-lapse microscopy
Medical
March 2025

By Itamar Tsayag · PreDev Consulting

AI-Powered Embryo Selection for IVF

Deep learning-based automated embryo assessment system integrating segmentation, classification, and temporal reasoning. Multi-modal framework combining U-Net, ResNet, Video Swin Transformers, and Siamese networks for comprehensive embryo evaluation from time-lapse microscopy.

Per-frame analysis
<1 s
Assessment window
60–128 h
Imaging platforms
Multi-device

Problem

Figure 1: Demo of the embryo-assessment pipeline analyzing time-lapse microscopy video.

In IVF, embryo selection is where clinical outcomes are won or lost—and it still runs on manual morphological assessment. Embryologists review static images or time-lapse videos to spot developmental milestones and grade quality, a process with well-documented inter-observer variability, a dependence on scarce expertise, and hard time constraints that make it impossible to thoroughly review days of development for every embryo.

Time-lapse incubators made the problem sharper, not easier. They capture continuous video from fertilization through blastocyst formation—thousands of frames per embryo—creating an opportunity for quantitative analysis that no human team can exhaust. Subtle morphokinetic patterns predictive of developmental potential and chromosomal abnormalities sit in that footage, beyond what manual review can reliably extract.

The client needed a production system, not a research prototype: one platform that localizes the embryo in every frame, filters unusable footage, detects developmental stages, grades morphology, reconstructs the morphokinetic timeline, and estimates clinical outcomes. It had to work across the multiple commercial time-lapse imaging platforms found in real clinics—each with different optics, spatial resolutions, and temporal sampling rates—handle the messy realities of embryo imaging like variable positioning, inconsistent illumination, and partial occlusion, and serve results through standardized APIs with inference fast enough to slot into daily lab workflow. Most prior automation efforts tackle isolated prediction tasks; this engagement demanded the full pipeline, from pixels to clinical report.

Approach

We built the system as a seven-stage pipeline of specialized models, each optimizable independently while feeding the next:

  • Segmentation — a U-Net with ResNet encoder localizes the embryo in each frame, producing masks and centroids that drive embryo-centered cropping downstream.
  • Validity filtering — frames are screened for focus quality, illumination, and artifacts, so bad footage never contaminates later predictions.
  • Blastocyst detection — a multi-task ResNet-50 classifier identifies frames where the embryo has reached blastocyst stage.
  • Morphological grading — ordinal regression heads score inner cell mass, trophectoderm, and expansion, encoding the natural ordering of grades instead of treating them as unrelated classes.
  • Temporal assessment — a Video Swin Transformer with 3D windowed attention (2×7×7 spatiotemporal windows, chosen for the best accuracy-compute trade-off) analyzes sampled video clips to predict developmental outcomes from kinetics no single frame can show, including dual Day-3 targets: likelihood of high-quality blastocyst formation and risk of poor-quality arrest.
  • Morphokinetic timeline — a hybrid Siamese-CNN architecture detects developmental events and assembles them into a timeline.
  • Outcome prediction — models integrate frames and features from earlier stages to estimate pregnancy and viability probabilities, including a two-stream architecture that processes frame pairs separated by a fixed interval to capture morphological dynamics, and tabular classifiers that combine morphokinetic timing features with segmentation statistics.
  • Because embryo videos contain thousands of frames—far beyond what dense sampling can afford—each temporal task gets its own sampling strategy, with non-linear schedules that sample early development densely and later stages sparsely, matching the biological weight of early cleavage timing.

    The most striking capability is non-invasive euploidy prediction: estimating chromosomal normality before genetic testing, from video alone plus routine clinical data. A two-stage ensemble combines Video Swin Transformer predictions on pre-biopsy video (60–128 hours post-insemination) with maternal age and Day-5 morphological scores through calibrated logistic regression. It does not replace preimplantation genetic testing—but it gives clinics a principled way to prioritize embryos when testing is cost-prohibitive.

    Deployed on model-serving infrastructure with hardware-accelerated inference, single-frame analysis runs with sub-second latency, and video sequences process through efficient batching.

    Results

    The system demonstrably:

  • Segments embryos: accurately even with poor contrast or adjacent debris, with centroid precision sufficient for reliable embryo-centered cropping across imaging conditions.
  • Detects blastocysts and grades morphology: with grading confusion concentrated between adjacent grades rather than distant ones—the ordinal structure of the labels is genuinely learned. Multi-task training outperformed independently trained single-task models, and the ordinal formulation beat standard multi-class classification on rank-sensitive metrics like weighted kappa.
  • Detects morphokinetic events: including cleavage divisions t2, t4, and t8, blastulation (tB), and compaction (tM), producing biologically ordered timelines.
  • Predicts developmental outcomes from temporal context: Video Swin models for Day-3 prediction outperformed single-frame baselines, and non-uniform sampling emphasizing early cleavage (20–72 hours post-insemination) beat uniform sampling—matching the biology of early developmental kinetics. For pregnancy prediction, aggregating multiple frames improved on single-frame analysis, confirming that temporal evolution carries signal beyond static appearance.
  • Estimates euploidy likelihood non-invasively: from pre-biopsy video plus clinical metadata—demonstrated prediction capability that supports embryo prioritization ahead of, not instead of, genetic testing.
  • Generalizes across imaging devices: , maintaining performance on footage from multiple commercial time-lapse platforms with different optics, resolutions, and sampling rates, with device-specific fine-tuning providing a practical onboarding path for new platforms.
  • Two honest boundaries define the system's role. Morphological grading performance remains below the inter-observer agreement levels of expert embryologists on reference datasets. And clinical outcome prediction, while significantly exceeding random baselines, does not reach thresholds sufficient for autonomous decision-making without clinician oversight—outcomes depend on maternal factors, endometrial receptivity, and transfer procedures the model never sees. The system is decision support that scales embryologist attention, not a replacement for it.

    What made this work

    Event detection built for biology, not just vision. Morphokinetic events are transitions, so we detect them as change: a Siamese network learns frame embeddings where distance tracks morphological difference, and the timeline algorithm computes distance signals between temporally adjacent frames, detects peaks with adaptive thresholds, maps classifier predictions to an initial event sequence (t2–t9, tB, tM), then refines timing with isotonic regression—enforcing the biological constraint that developmental events occur in order. Contrastive training also stretched limited labels, since pairwise comparisons exploit unlabeled frames. The result is a timeline that cannot report four cells before two.

    A modular pipeline that earns its complexity. Decomposing assessment into seven specialized stages means each component can be retrained, improved, or debugged independently without touching the rest—segmentation upgrades do not risk grading regressions, and new prediction heads bolt onto proven upstream stages. It also stretches expensive expert annotation: multi-task heads share backbone representations across correlated labels, so every embryologist-labeled frame trains several capabilities at once.

    Cross-device generalization as an architectural commitment. Rather than hoping augmentation would paper over hardware differences, the pipeline maintains per-device preprocessing branches: some platforms use centroid-based cropping with scale correction derived from known microns-per-pixel ratios, others use direct spatial resizing—normalizing what each optical system actually delivers before any model sees a pixel. Combined with mixed-platform training and device-specific fine-tuning, this made one system deployable across clinics instead of one model per incubator brand.

    Evaluation discipline that survives clinical scrutiny. Data splits were stratified at the patient level to prevent leakage, and temporal models were tested on embryos from dates chronologically after the training period—the honest simulation of deployment. That rigor is also why we can state the system's limits precisely: we know where it falls short of expert agreement because we measured it the hard way.

    • Medical AI
    • Deep Learning
    • Video Classification
    • PyTorch Lightning
    • Healthcare
    • Computer Vision
    • Time-Lapse Microscopy
    • Clinical Decision Support

    Facing a similar problem?

    Discuss your project