In many biological and anatomical sequences the order of states is fixed. An embryo moves from one cell to two to four and never back. Skin layers in a confocal depth stack go surface, epidermis, junction, dermis, always in that order. When the order is fixed, a fully labeled sequence of $T$ frames is mostly redundant: once you know the few frames where the stage changes, you know every label. Current methods use this fact only at the end. They train a frame classifier on many fully annotated videos, then run a dynamic-programming decoder (an exact search for the best label sequence that never moves backward) to clean up its flickering output. We propose to use the same constraint earlier, during training, as a source of supervision. An unlabeled video, combined with the rule that stages only move forward and a rough prior on how long each stage lasts, pins its labels down to a small set of candidates. Training can then run on dozens of unlabeled sequences and only a few labeled ones.
The core claim is that monotone-constrained pseudo-labeling reduces how many labeled sequences a stage classifier needs, and that this benefit is largest in the regime of about 5 to 25 annotated sequences, where medical cohorts actually sit. The pseudo-labels come from the posterior over forward-only paths, re-estimated as the network improves, and not from the network's per-frame guesses. We also claim that when the unlabeled sequences come from a new clinic, the same procedure works as test-time adaptation to that clinic. If this holds, it changes how annotation budgets are spent: annotators would mark transition times in a few videos rather than label every frame of many.
Why the constraint carries information
With $K$ stages that each occur at least once in a $T$-frame sequence, a forward-only labeling is fixed by its $K-1$ transition frames. The number of admissible labelings is therefore
$$\binom{T-1}{K-1} \approx \frac{T^{K-1}}{(K-1)!} \quad \text{versus} \quad K^{T}$$
for unconstrained labelings. The comparison comes directly from choosing $K-1$ change points among $T-1$ gaps. For a 6-stage embryo video with a few hundred frames, the constraint shrinks the label space from roughly $T\log_2 K$ bits to roughly $(K-1)\log_2 T$ bits, about a sixty-fold reduction. A classifier that is right about the coarse shape of a trajectory therefore implies an almost correct frame labeling. This is why the forward-only posterior should be a far better pseudo-label than the per-frame argmax, especially early in training when the classifier is weak. Speech recognition exploits the same structure in forced alignment. The difference here is that the ordered state sequence is known in advance, but the state durations vary sharply across patients and clinics.
Relation to prior work
Three bodies of work motivate this proposal.
The first applies monotone decoding after training, on large cohorts. Ng et al. pair a late-fusion convolutional network with an Earth Mover's-distance dynamic-programming decoder on 1,309 human embryo videos and raise frame accuracy from 82% to 87.08%. Lau et al. add weakly supervised region selection and an LSTM before the same kind of decoder and reach 90.23% frame accuracy with a 4.370-frame transition error. Leahy et al. use such a decoder inside a multi-network pipeline. In all three, the backbone never sees the constraint during training, and all use hundreds to thousands of fully labeled videos.
The second line puts the constraint inside training, still with plentiful labels. Lukyanenko et al. train a two-stream network with a linear-chain conditional random field, a model that scores whole label sequences and sets backward transitions to $-\infty$. It outperforms an unconstrained LSTM on human embryos (66.3% vs 61.8% per-stage accuracy). Bozkurt et al. use recurrent attention to cut anatomically impossible skin-layer transitions nine-fold. Wu et al. add a dynamic-programming sequence loss for vertebra ordering. Our method reuses the forward-backward machinery these models imply. We apply it to unlabeled sequences, which none of them do.
The third line comes from small-sample learning and supplies the transductive idea: use the unlabeled test data itself, under a structural prior. Silva-Rodríguez et al. constrain few-shot segmentations to match organ-size proportions estimated from 1 to 10 support scans, gaining up to +0.9% Dice. Our stage-duration prior is the temporal analogue of their size prior. TPON refines class prototypes with confident unlabeled EEG segments but treats segments independently, with no sequence constraint.
Two papers constrain the design. Temporal Alignment Prediction deliberately gives up monotonicity to make few-shot alignment fast and differentiable. We take the opposite bet, because for cleavage or layering a backward step is impossible rather than noise. Jia et al. find that recombining signal components to create synthetic data breaks the temporal structure that sequence models rely on. This is a warning against augmentation-based substitutes for our approach. Traub & Stegmaier show that staging from only $N=4$ zebrafish embryos is possible, but they regress each time point independently. The closest existing bridge therefore lacks both the constraint and any use of unlabeled sequences.
Research Program
We would build a frame encoder (an ImageNet-initialized ResNet or a frozen general-purpose backbone with a small head) that outputs per-frame stage probabilities $p_\theta(s_t \mid x)$. Each unlabeled sequence $x$ gets a target distribution $q(s_{1:T}\mid x)$. This target is proportional to the product of the network's frame probabilities, a forward-only transition structure, and a stage-duration prior. The prior is a per-stage distribution over durations fitted to the few labeled sequences, which makes the model a hidden semi-Markov chain. The training objective is
$$\mathcal{L}(\theta) = \sum_{x\in\mathcal{D}_L}\sum_t \mathrm{CE}\big(y_t, p_\theta(s_t\mid x)\big) \;+\; \lambda \sum_{x\in\mathcal{D}_U}\sum_t \mathrm{KL}\big(q(s_t\mid x)\,\|\,p_\theta(s_t\mid x)\big).$$
Here $\mathcal{D}_L$ and $\mathcal{D}_U$ are the labeled and unlabeled sequences, $y_t$ is the annotated stage, $q(s_t\mid x)$ is the frame marginal of the forward-only posterior computed exactly by forward-backward, and $\lambda$ weights the unlabeled term. We alternate between recomputing $q$ with the current network and taking gradient steps, an expectation-maximization loop. The duration prior serves the role the size prior does in Silva-Rodríguez et al.: it stops the trivial solution in which an entire video collapses into one stage. The known starting stage fixes the other end of the path.
Two design questions need analysis rather than assumption. The first is how strong the duration prior should be. The physics-guided learning literature (Physics-guided deep learning for data scarcity) warns that an overweighted structural term pulls fits away from the data, so we sweep the prior's temperature. The second is how to handle sequences that break the assumed order, such as arrested or degenerating embryos. We add an absorbing "arrest" state and an optional end-of-sequence exit, and we report results on such sequences separately rather than filtering them out. A third variant tests transduction across sites: the unlabeled pool is the target clinic's own unannotated data.
Baselines
The naive reference point is a per-frame classifier trained on the labeled sequences only, with per-frame argmax prediction. This matches the single-frame ResNet50 of Ng et al., which reaches 82% frame accuracy on the full Cleveland cohort. It shows how badly flicker and backward steps grow when labels are scarce.
The strongest competitor is the same classifier followed by a monotone dynamic-programming decoder at test time, the Ng et al. / Lau et al. recipe. At full data it reports 87.08% frame accuracy with an 8.6-frame transition error (Ng et al.), and 90.23% with a 4.370-frame error when a region detector and LSTM are added (Lau et al.). It is the strongest because it already captures most of the constraint's value at inference. Our claim survives only if using the constraint during training adds something beyond that. No result was found on Lacuna for this recipe with reduced numbers of labeled videos, so we will produce those curves ourselves.
The third baseline is an end-to-end linear-chain conditional random field trained on labeled data only, following Lukyanenko et al.. On human embryos it reports 80.6% global and 66.3% per-stage accuracy at full data. It tests whether putting the constraint into the supervised loss is enough without unlabeled data.
The key ablation is ordinary self-training on the same labeled and unlabeled split, with pseudo-labels from confident per-frame argmax (in the spirit of TPON's confident-query refinement) followed by monotone decoding at test time. This isolates our main ingredient: whether the pseudo-labels come from the forward-only posterior. Further ablations remove the duration prior, and replace the hard forward-only transitions with learned unconstrained transitions.
All methods share the same backbone, input frames, labeled and unlabeled splits, number of training epochs, and a hyperparameter search of equal size on the same held-out labeled validation sequences. Beating the strongest baseline means one of two things: statistically reliable gains in transition-time error at labeled budgets of 5, 10, and 25 sequences, across at least five random draws of labeled videos; or matching its full-data accuracy with at most a quarter of the labeled sequences.
Why not just…?
Why not just train on the few labeled videos and apply the dynamic-programming decoder afterward? This is the real threat. Test-time decoding might repair a weak classifier well enough that constraint-aware training adds little. The counting argument suggests otherwise only when the classifier's errors are shaped like trajectories rather than scattered. With five labeled videos, a classifier may confuse visually similar stages such as three versus four cells in a consistent way that the decoder cannot fix. Label-budget curves settle this directly. If the gap vanishes by 10 labeled videos, we will narrow the claim to the extreme low-label and cross-site regimes and report it that way.
Why not just self-train with the network's own confident predictions? Per-frame confidence is poorly calibrated exactly where it matters, at transitions and for short-lived stages. Lukyanenko et al. report that unconstrained recurrent models skip rare short stages, and argmax pseudo-labels would reinforce that failure. The argmax-pseudo-label ablation measures how accurate the pseudo-labels on the unlabeled pool are under both schemes, which is the most direct test.
Why not just smooth the predictions or take a running maximum? A running maximum locks in any early false positive for the rest of the sequence. The global decoder already beats local fixes in Ng et al. and in the nine-fold reduction of impossible transitions reported by Bozkurt et al. We include moving-average and running-maximum post-processing only as cheap reference points.
Why not just use a large pretrained backbone with a linear probe? Better features and our objective are complementary, not rival, so we run every method on both a trained-from-scratch and a frozen pretrained backbone. The evidence that pretrained representations degrade across clinical sites (portable clinical representations) suggests the cross-clinic setting is where the unlabeled, constraint-driven term should matter most even with strong features.
Proposed Experiments
The primary benchmark is the Cleveland Clinic embryo cohort (1,309 videos, 6 stages, 0–70 hours). If it cannot be accessed, we use the NYU mouse embryo data from Lukyanenko et al.; access terms for both need confirming, since the file does not state them. We sample 5, 10, 25, 50, and 100 labeled videos, treat the remainder of the training pool as unlabeled, and evaluate on a fixed held-out set. Metrics are frame accuracy, per-stage accuracy (which is sensitive to short stages), mean absolute error of transition times in frames, and the rate of backward transitions in raw network output before any decoding. That last metric tells us whether the backbone itself has absorbed the order.
The second benchmark is the 504-stack skin-strata collection from five institutes (Bozkurt et al., 88.07% accuracy and a 5.76 μm junction-boundary error at full data). We run it leave-one-institute-out: the held-out institute's stacks form the unlabeled pool, and we measure boundary error in micrometers. This tests the transductive, cross-site version of the claim.
The decisive checks are three. First, the label-efficiency curve must show that monotone-posterior training outperforms supervised training plus decoding at small labeled budgets. Second, pseudo-label accuracy on the unlabeled pool must be clearly higher under the forward-only posterior than under argmax pseudo-labels at the start of training. Third, the gain must persist on sequences that include arrest, where a wrong order assumption would hurt. If the first check fails while the second passes, the lesson would be that the constraint's value is fully captured at inference. That is a useful negative result for how the field spends annotation effort.
References
- Predicting Embryo Morphokinetics in Videos with Late Fusion Nets & Dynamic Decoders
- Embryo Staging with Weakly-Supervised Region Selection and Dynamically-Decoded Predictions
- Automated Measurements of Key Morphological Features of Human Embryos for IVF
- Developmental Stage Classification of Embryos Using Two-Stream Neural Network with Linear-Chain Conditional Random Field
- Skin strata delineation in reflectance confocal microscopy images using recurrent convolutional networks with attention
- Multi-view Vertebra Localization and Identification from CT Images
- Towards Foundation Models and Few-Shot Parameter-Efficient Fine-Tuning for Volumetric Organ Segmentation
- Few-shot EEG sleep staging based on transductive prototype optimization network
- Temporal Alignment Prediction for Supervised Representation Learning and Few-Shot Sequence Classification
- Assessing the Potential of Data Augmentation in EEG Functional Connectivity for Early Detection of Alzheimer's Disease
- Towards Automatic Embryo Staging in 3D+t Microscopy Images Using Convolutional Neural Networks and PointNets
- Physics-guided deep learning for data scarcity
- Can we generate portable representations for clinical time series data using LLMs?