---
title: 'RegDeepLab: Dual-Task IVF Embryo Grading'
url: https://www.emergentmind.com/topics/regdeeplab
type: topic
---

# RegDeepLab: Dual-Task IVF Embryo Grading

RegDeepLab is a dual-branch multi-task learning framework for interpretable embryo fragmentation grading in in vitro fertilization (IVF) decision support. It addresses limitations of prior fully automated regression and segmentation methods by integrating state-of-the-art semantic segmentation (DeepLabV3+) and a multi-scale regression head into a unified architecture that preserves both clinical explainability and quantitative grading precision. Its novel two-stage decoupled training regimen resolves the gradient conflict and negative transfer frequently encountered in multi-task settings, achieving state-of-the-art segmentation accuracy (Dice=0.729) while providing low mean absolute error (MAE=0.046) in grading [2511.18454].

## 1. Network Architecture

RegDeepLab is implemented atop a modified ResNet-50 backbone utilizing dilated convolutions to yield an output stride of 16. The shared feature extractor outputs are processed by two task-specific heads:

- **Segmentation Branch:** Leverages DeepLabV3+ with attention gating mechanisms. Distinctive feature maps are utilized:
  - $F_4 \in \mathbb{R}^{2048 \times H/16 \times W/16}$ represents the deepest features, processed by Atrous Spatial Pyramid Pooling (ASPP) for multi-scale context.
  - $F_1 \in \mathbb{R}^{256 \times H/4 \times W/4}$ supplies low-level boundaries after an attention gate suppresses cytoplasmic noise.
  - The decoded feature map is upsampled and concatenated with a global regression vector ($V_{reg}$) broadcast spatially (a process termed “Feature Injection”). This produces a fused feature of 2304 channels, which is passed through a final $3 \times 3$ convolution and a sigmoid to yield the mask $M \in [0,1]^{H \times W}$.

- **Regression Branch:** Concatenates intermediate features ($F_3 \in \mathbb{R}^{1024 \times H/16 \times W/16}$ and $F_4$), followed by global average pooling and a multi-layer perceptron (MLP) to predict the continuous fragmentation ratio $\hat{y} \in [0,1]$. The extracted latent vector prior to the output MLP ($V_{reg}$) is used for Feature Injection into the segmentation decoder.

The overall feature flow is defined as:
\[
\begin{aligned}
V_{reg} &= \mathrm{MLP}(\mathrm{GAP}([F_3; F_4])) \\
F_{decoded} &= \mathrm{Upsample}(\mathrm{ASPP}(F_4)) \oplus \mathrm{AttnGate}(F_1; F_{ASPP}) \\
F_{fused} &= \mathrm{Concat}(F_{decoded}, \mathrm{Broadcast}(V_{reg})) \\
M &= \mathrm{Sigmoid}(\mathrm{Conv}_{3 \times 3}(F_{fused}))
\end{aligned}
\]

## 2. Two-Stage Decoupled Training Paradigm

Standard multi-task learning in this domain is impaired by "Gradient Conflict" (where segmentation seeks high-frequency boundary detail and regression optimizes toward low-frequency holistic abstraction) and "Negative Transfer" in the backbone. RegDeepLab mitigates these issues by a temporally separated two-stage procedure:

- **Stage 1: Visual Expert Pre-training**
  - The backbone and segmentation head are optimized jointly using segmentation and area consistency loss ($L_{seg} + L_{cons}$), with the regression head disabled ($\beta=0$).
  - This produces segmentation at the state-of-the-art level (Dice=0.729), ensuring precise pixel-level mask quality.

- **Stage 2: Regression-Guided Finetuning**
  - The trained backbone is frozen; only the regression head and the last segmentation convolutional layer (after Feature Injection) are updated.
  - The objective combines precise regression loss with range constraints and (optionally) consistency ($L_{reg}$, $L_{cons}$). Disabling regression-backbone gradients maintains segmentation integrity.
  - This results in robust grading (MAE=0.049) while not sacrificing segmentation quality (Dice=0.729) [2511.18454].

## 3. Loss Functions

The composite multi-task loss is formalized:
\[
L_{total} = \alpha L_{seg} + \beta L_{reg} + \gamma L_{cons}
\]

- **Segmentation Loss $L_{seg}$** combines pixel-wise binary cross-entropy, Dice coefficient, and Focal loss, weighted for class imbalance:
  \[
  L_{seg} = \lambda_{BCE} L_{BCE} + \lambda_{Dice} L_{Dice} + \lambda_{Focal} L_{Focal}
  \]
  Where, for $N$ pixels, $y_i \in \{0,1\}$ (ground truth), $p_i$ (prediction):
  - $L_{BCE} = -\frac{1}{N} \sum_{i} [y_i \log p_i + (1 - y_i) \log (1 - p_i)]$
  - $L_{Dice} = 1 - \frac{2 \sum_{i} p_i y_i + \epsilon}{\sum_{i} p_i + \sum_{i} y_i + \epsilon}$
  - $L_{Focal} = -\frac{1}{N} \sum_{i} \alpha (1-p_i)^{\gamma} y_i \log p_i + p_i^{\gamma} (1-y_i) \log (1-p_i)$

- **Regression Loss $L_{reg}$** is the sum of a precise regression loss and a range-based loss for weakly labeled grade-only data:
  \[
  L_{reg} = L_{precise} + L_{range}
  \]
  - $L_{precise} = |\hat{y} - y|$
  - $L_{range}(\hat{y}, [a, b]) = \max(0, a-\hat{y}) + \max(0, \hat{y}-b)$

- **Consistency Loss $L_{cons}$** enforces agreement between the predicted mask area and the target ratio:
  \[
  L_{cons} = |A(M) - y|, \quad A(M) = \frac{1}{N}\sum_i M_i
  \]

## 4. Empirical Performance and Ablation

The dataset consists of 318 fully-annotated (pixel+grade) and 1549 grading-only images. Performance is measured by Dice coefficient for segmentation and MAE for grading. The results, as presented in [2511.18454], are:

| Experiment                          | Dice   | MAE   |
|--------------------------------------|--------|-------|
| Stage 1 only ($L_{seg} + L_{cons}$)  | 0.729  | —     |
| Pure regression single-task          | —      | 0.051 |
| End-to-end MTL w/ Feature Injection  | 0.716  | 0.046 |
| End-to-end MTL w/o Injection         | 0.678  | 0.053 |
| Two-Stage Decoupled (frozen backbone)| 0.729  | 0.049 |

Ablation studies indicate that "Feature Injection" substantially improves joint performance by enabling mutual information transfer. Removal degrades Dice from 0.716 to 0.678 and increases MAE from 0.046 to 0.053, demonstrating that naive loss summation is insufficient to resolve gradient conflict. End-to-end MTL provides minimal grading error (MAE=0.046) but at the cost of segmentation boundary fidelity, while the decoupled strategy retains segmentation peak (Dice=0.729) at a minor cost in MAE (0.049). The adoption of Range Loss for semi-supervised inclusion of weakly labeled data further improves MAE by approximately 0.002–0.003.

## 5. Clinical Interpretability and Deployment

RegDeepLab yields dual outputs for each embryo image: a pixel-level fragmentation mask and a continuous fragmentation ratio. The segmentation mask supports visual verification by embryologists, confirming that the model focuses on cytoplasmic fragments rather than artifactual noise. This offers an interpretable bridge between automated grading and clinical practice.

Deployment leverages a dual-module system:
- **Module A (Visual Assistant):** Uses the Stage 1 model to maximize mask fidelity for expert review (Dice=0.729).
- **Module B (Automated Quantification):** Employs the full MTL model for lowest error in fragmentation grading (MAE=0.046).

This configuration reduces inter-observer variability, expedites embryo selection, and retains clinical explainability by providing both visual and quantitative outputs.

## 6. Limitations and Prospective Directions

The RegDeepLab framework currently operates on static single time-point cleavage-stage embryo images. Future extensions to time-lapse or multi-modal data may capture dynamic fragmentation phenomena and further augment predictive reliability. This suggests the approach may generalize to broader imaging-based clinical grading tasks requiring interpretable multi-task learning solutions [2511.18454].

Source: https://www.emergentmind.com/topics/regdeeplab