Learning Disentangled Representations of Video with Missing Data

Armand Comas1, Chi Zhang2, Zlatan Feric2, Octavia Camps1, Rose Yu2,3
1College of Electrical and Computer Engineering, Northeastern University 2Khoury College of Computer Sciences, Northeastern University 3Computer Science & Engineering, University of California San Diego
NeurIPS 2020

TL;DR: DIVE decomposes multi-object videos into per-object appearance, pose, and binary missingness latent variables, imputing missing frames in latent space to reconstruct corrupted inputs and forecast future video.

Overall architecture of DIVE: input video frames y^{1:K} pass through Pose & Missingness and Appearance encoders to infer z_m^{1:K}, z_p^{1:K}, and z_a^{1:K}, followed by two decoders for reconstruction y^{1:K} and prediction x^{K+1:T}.
Figure 1: Overall architecture of DIVE. Given an input video sequence y1:K with missing data, DIVE infers the missingness (red, zm1:K), pose (green, zp1:K), and appearance (blue, za1:K) latent variables for each object. Two separate decoders reconstruct the observed frames y1:K and predict future sequences xK+1:T within a variational autoencoder framework.

Abstract

Missing data poses significant challenges while learning representations of video sequences. We present Disentangled Imputed Video autoEncoder (DIVE), a deep generative model that imputes and predicts future video frames in the presence of missing data. Specifically, DIVE introduces a missingness latent variable, disentangles the hidden video representations into static and dynamic appearance, pose, and missingness factors for each object. DIVE imputes each object’s trajectory where the data is missing. On a moving MNIST dataset with various missing scenarios, DIVE outperforms the state of the art baselines by a substantial margin. We also present comparisons on a real-world MOTSChallenge pedestrian dataset, which demonstrates the practical value of our method in a more realistic setting. Our code and data can be found at https://github.com/Rose-STL-Lab/DIVE.

Motivation: Object Permanence in Video

Learning structured representations from raw video is fundamental to spatiotemporal reasoning and forecasting. Yet real-world video sequences frequently suffer from missing data: objects become partially occluded at frame boundaries, temporarily disappear out of view before reappearing, or vanish while changing their shape, scale, or brightness. Even a five-month-old infant understands object permanence—that an unseen object continues to exist and move along a coherent trajectory.

Existing disentangled video prediction models lack this capability when objects go missing:

  • DDPAE decomposes scenes into objects with fixed appearance and time-varying pose, assuming complete, uncorrupted video sequences with static object content.
  • SQAIR introduces an explicit object-presence variable, but lacks a mechanism to recall an object after prolonged full occlusion—causing it to lose track of the object and re-identify it as a brand-new entity upon reappearance.
  • DRNET factorizes frames into content and pose via adversarial scene discrimination, which degrades sharply when early input frames contain missing or occluded objects.

Disentangled Imputed Video autoEncoder (DIVE) addresses these limitations by explicitly inferring object-level missingness, imputing missing trajectories directly in the hidden state space, and modeling both static and dynamic object appearances.

Method

Disentangled object representations. Given an observed video sequence with missing data (y1, …, yK) where each frame yt ∈ ℝd, DIVE assumes up to N objects per scene and jointly reconstructs the input sequence y1:K and predicts T − K + 1 future frames xK+1:T. For each object i at frame t, its latent representation zit factorizes into three semantic variables:

zit = [zi,at, zi,pt, zi,mt],   zi,at ∈ ℝh,   zi,pt ∈ ℝ3,   zi,mt ∈ ℤ

where zi,at is the object appearance vector, zi,pt encodes object pose (x, y coordinates and scale), and zi,mt ∈ {0, 1} is the binary missingness indicator (zi,mt = 1 when object i is occluded or missing).

Latent-space imputation model. A bidirectional LSTM propagates per-object input encodings hi,yt = fenc(hi,yt−1, hi,yt+1, [yt, hi−1,yt]) over time. When an object is missing, hi,yt is unreliable; DIVE therefore predicts an autoregressive imputed state ĥi,yt = FC(hi,pt−1) from the previous pose LSTM state and updates the latent input uit via a Bernoulli mixture:

uit = { ĥi,yt,   zi,mt = 1 γ hi,yt + (1 − γ) ĥi,yt,   zi,mt = 0 ,   γ ∼ Bernoulli(p),   ĥi,yt = FC(hi,pt−1)

Mixing observed and imputed states during training (p = 0.25) mitigates covariate shift and forces self-supervised trajectory imputation; at test time p = 0 uses ĥi,yt whenever zi,mt = 1. The pose hidden state advances via hi,pt = LSTM(hi,pt−1, uit).

Inference of missingness, pose, and dynamic appearance.

  • Missingness inference: Binary missingness is sampled via a Heaviside step function zi,mt = H(x), x ∼ 𝒩(μm, σm2) with [μm, σm2] = FC(hi,yt).
  • Pose inference: Spatiotemporal dynamics follow a variational state-space transition zi,pt = ftran(zi,pt−1, βit) with stochastic transition noise βit ∼ 𝒩(μp, σp2) parameterized by hi,pt.
  • Static & dynamic appearance: Using an inverse spatial transformer 𝒯−1(yt; zi,pt) to rectify each object crop, DIVE decomposes appearance into a static component ai,s = FC(hi,aK) capturing persistent object identity and a dynamic residual state ai,dt+1 = ai,dt + δi,dt capturing shape or brightness variations over time:
q(zi,a | y1:K) = T∏t=1 𝒩(μa, σa2),   [μa, σa2] = FC([ai,s, γ ai,dt]),   γ ∼ Bernoulli(p)
Graphical representation of DIVE showing inference of binary missingness z_{i,m}^t, missing data imputation via h_hat_{i,y}^t and u_i^t, state-space pose inference z_{i,p}^t, and dynamic appearance inference combining static a_{i,s} and dynamic a_{i,d}^t.
Figure 2: Graphical representation of DIVE. From top to bottom: inference of the missingness variable zi,mt from bidirectional input encodings hi,yt, the autoregressive missing data imputation model updating hi,pt through uit, state-space inference of the pose vectors zi,pt, and appearance variable zi,at using static (ai,s) and dynamic (ai,dt) appearance inference.

Object-Wise Generative Model & ELBO

For each object i, a deconvolutional decoder fdec(zi,at) synthesizes the canonical object appearance, and a spatial transformer 𝒯(·; zi,pt) scales and places it into the scene. During input reconstruction, each object is masked by (1 − zi,mt), whereas future predictions assume complete frames:

p(yit | zi,at) = 𝒯(fdec(zi,at); zi,pt) ∘ (1 − zi,mt),   p(xit | zi,at) = 𝒯(fdec(zi,at); zi,pt)

Each generated frame sums the decoded contributions across all N objects, and DIVE is trained end-to-end by maximizing the Evidence Lower Bound (ELBO) over both the corrupted input reconstruction y1:K and complete future prediction xK+1:T:

log pθ(y1:K, xK+1:T) ≥ 𝔼q[log pθ(y1:K | z1:N1:K) − KL(qφ(z1:N1:K) ‖ p(z1:N1:K))] + 𝔼q[log pθ(xK+1:T | z1:NK+1:T) − KL(qφ(z1:NK+1:T) ‖ p(z1:NK+1:T))]

Moving MNIST Experiments

DIVE is evaluated on predicting 10 future frames from 10 input frames against three state-of-the-art disentangled video prediction baselines: DRNET, SQAIR, and DDPAE. On Moving MNIST (two 28 × 28 digits moving in 64 × 64 frames, tested on 1,024 fixed sequences), three missing-data scenarios are studied:

  • Scenario 1 (Partial Occlusion): The upper 32 rows of the 64 × 64 frame are occluded, simulating boundary occlusion.
  • Scenario 2 (Out of Scene): Each object is completely removed from the frame for two consecutive input steps t0 and t0 + 1 (t0 ∈ [3, 9]).
  • Scenario 3 (Missing with Varying Appearance): Each digit undergoes progressive elastic deformation (α decreasing linearly from 100 to 0 across the sequence, σ = 4) while each object is completely removed for one time step.
Qualitative results on Moving MNIST Scenario 1 (Partial Occlusion) comparing DRNET, SQAIR, DDPAE, and DIVE, along with DIVE decomposed objects 1 and 2 and predicted missingness labels.
Figure 3: Scenario 1 — Partial occlusion qualitative results. Top to bottom: ground truth, DRNET, SQAIR, DDPAE, DIVE, decomposed obj 1 and obj 2, and DIVE's predicted missingness labels. Even when digits are hidden in the upper half of the frame, DIVE decomposes both objects sharply, predicts their occlusion intervals, and accurately forecasts their future trajectories.
Qualitative results on Moving MNIST Scenario 2 (Out of Scene for two time steps) comparing DRNET, SQAIR, DDPAE, and DIVE.
Figure 4: Scenario 2 — Out of scene for two consecutive time steps. DRNET and SQAIR lose track of future poses, while DDPAE confuses object identities and produces blurry digits. DIVE predicts the exact two-step missingness intervals (black blocks in bottom row) and hallucinates the unseen object poses in latent space to produce sharp reconstructions and predictions.
Qualitative results on Moving MNIST Scenario 3 (Complete Missing with Varying Appearance) showing two elastically morphing digits with a complete missing input frame.
Figure 5: Scenario 3 — Complete missing with varying appearance. A challenging case where two distinct digits (“2” and “6”) elastically morph into “6” while an entire input frame is dropped. DIVE tracks both identity and continuous shape deformation across the missing frame.
Model BCE ↓ MSE ↓ PSNR ↑ SSIM ↑ NELBO ↓
RecPred RecPred RecPred RecPred
Scenario 1: Partial Occlusion
DRNET482.07852.5972.2196.367.996.890.760.72/
SQAIR178.71967.2021.8484.7313.199.960.900.73-0.16
DDPAE182.66417.0039.0967.4117.5615.490.770.72-0.09
DIVE119.25459.1019.7364.4920.6415.850.900.78-0.18
Scenario 2: Out of Scene
DRNET392.331402.4590.64187.729.599.880.800.67/
SQAIR468.22927.0973.13137.0410.338.210.840.69-0.17
DDPAE266.03409.2658.3789.5718.6416.940.870.77-0.17
DIVE165.42321.2927.0364.1722.1518.560.930.83-0.21
Scenario 3: Missing with Varying Appearance
DRNET421.721304.5390.46176.289.917.330.750.70/
SQAIR560.511518.6174.30163.2510.807.640.830.62-0.16
DDPAE322.23403.4863.6382.7118.2917.220.810.78-0.18
DIVE272.74374.5942.8174.8720.0817.610.870.78-0.19
Table 1: Quantitative comparison across all three Moving MNIST missing-data scenarios for input reconstruction (Rec) and future prediction (Pred) on visible pixels. DIVE substantially outperforms baselines across nearly every metric and scenario.

Real-World Pedestrian Experiments (MOTSChallenge)

To evaluate DIVE beyond synthetic digits, experiments are conducted on the real-world Multi-Object Tracking and Segmentation (MOTSChallenge) pedestrian dataset. Ground-truth pedestrian silhouettes are extracted into 20-frame sequences at 256 × 256 resolution with up to N = 3 unique pedestrians, augmented with simulated constant camera motion and a 1-frame complete camera occlusion (4,416 training sequences and 675 test sequences from distinct scenes).

Walking pedestrians naturally combine partial occlusions (Scenario 1) with continuously varying appearance (Scenario 3) as limbs articulate and pedestrians overlap. Because DDPAE assumes fixed object appearance and lacks missingness modeling, its reconstructions and forecasts blur out. DIVE isolates up to three individual pedestrians, detects the occluded frame, and preserves sharp silhouettes throughout prediction, reducing MSE by over 41% and BCE by over 45%.

Model BCE ↓ MSE ↓ PSNR ↑ SSIM ↑ NELBO ↓
DDPAE2495.08560.3722.220.90-0.24
DIVE1355.89328.9624.820.96-0.26
Table 2: Quantitative comparison on the MOTSChallenge pedestrian dataset between the strongest baseline (DDPAE) and DIVE.
Qualitative results on MOTSChallenge pedestrians showing DDPAE vs DIVE, decomposed objects 1, 2, and 3, and predicted missingness labels.
Figure 6: MOTSChallenge pedestrian qualitative results. DIVE accurately identifies the complete camera occlusion step (black bar in labels), decomposes the three pedestrians into separate latent slots, and tracks their articulating silhouettes across reconstruction and future prediction.

Ablation Studies & Failure Analysis

Effect of Dynamic Appearance & Missingness Modeling

Dynamic vs. static appearance (Appendix C.1): On Moving MNIST Scenario 3, comparing DIVE with dynamic appearance (p = 1 at test time) against a static-only variant (p = 0) and DDPAE across 200–600 training epochs confirms that dynamic appearance modeling substantially lowers reconstruction BCE and MSE on elastically deformed digits, while both DIVE variants outperform DDPAE by a wide margin in both reconstruction and prediction.

Explicit missingness & imputation (Appendix C.2): Removing the binary missingness variable and latent imputation from the exact same DIVE architecture on Scenario 2 degrades every metric across both reconstruction and prediction, confirming that explicit missingness reasoning improves scene dynamics learning. Replacing the hard Heaviside step function with a soft Sigmoid label zi,mt ∈ (0, 1) yields no statistically significant difference.

Ablation study curves comparing DIVE Dynamic Content, DIVE Static Content, and DDPAE across 200 to 600 epochs on Moving MNIST Scenario 3 for BCE per frame and MSE per frame.
Figure 7: Ablation study on static vs. dynamic appearance modeling for Moving MNIST Scenario 3 (BCE per frame left, MSE per frame right across epochs 200–600), alongside DDPAE trained for 600 epochs.
Mov. MNIST Scenario 2
Model (trained 300 epochs)
BCE ↓ MSE ↓ PSNR ↑ SSIM ↑
RecPred RecPred RecPred RecPred
DIVE w/o missingness236.35356.8249.0776.5219.4017.660.860.82
DIVE w missingness165.42321.2927.0364.1722.1518.560.930.83
Table 3: Ablation of the missingness latent variable and latent imputation on Moving MNIST Scenario 2 after 300 training epochs.

Qualitative Success & Failure Modes (Appendix E)

Additional qualitative examples across all four benchmarks illustrate both the strengths and boundary conditions of DIVE's causal imputation:

  • Unseen vs. heavily corrupted objects (Figure 8): In Scenario 1, if a digit remains completely hidden throughout all 10 input frames and only emerges during future ground-truth frames, causal imputation cannot hallucinate its unseen identity. Conversely, when a digit is heavily corrupted or missing across five input frames, DIVE smoothly imputes and recovers it.
  • Persistent overlap vs. intermittent separation (Figure 9): In Scenario 2, if two digits overlap in every single input frame, DIVE treats them as a single entangled object; whenever there is at least one separable frame, DIVE cleanly disentangles both digits despite frequent overlap.
  • Appearance ambiguity during occlusion (Figure 10): In Scenario 3, when two elastically deformed digits (“8” and “0”) morph into nearly identical shapes right before an occlusion, slot identity can swap after the missing frame.
  • Low-displacement pedestrian splitting (Figure 11): On MOTSChallenge, pedestrians with very small frame-to-frame displacement can occasionally split across redundant object slots, whereas overlapping walking pedestrians with distinct motion are cleanly separated.
Appendix Scenario 1 examples: failure case when digit 7 never appears in input, and success case recovering heavily corrupted digit 5.
Figure 8 (Appendix Fig. 8): Additional Scenario 1 (Partial Occlusion) examples. (a) Failure case when digit “7” never appears in the 10 input frames. (b) Success case recovering digit “5” despite heavy corruption and 5 missing input frames.
Appendix Scenario 2 examples: failure case with two digits overlapping in all input frames, and success case with two digits overlapping frequently.
Figure 9 (Appendix Fig. 9): Additional Scenario 2 (Out of Scene) examples. (a) Failure case when two digits overlap in all input frames. (b) Success case disentangling two digits that overlap frequently across the sequence.
Appendix Scenario 3 examples: failure case misrecognizing morphed digits 8 and 0 after occlusion, and success case on similar digits 9 and 8.
Figure 10 (Appendix Fig. 10): Additional Scenario 3 (Varying Appearance) examples. (a) Failure case where elastically deformed digits “8” and “0” switch slots after occlusion. (b) Success case disentangling two similar digits under elastic deformation.
Appendix MOTS examples: failure case with a split low-displacement pedestrian, and success case separating overlapping pedestrians.
Figure 11 (Appendix Fig. 11): Additional MOTSChallenge pedestrian examples. (a) Failure case with a split low-displacement pedestrian. (b) Success case separating overlapping pedestrians across occlusion.

BibTeX

@inproceedings{comas2020learning,
  title     = {Learning Disentangled Representations of Video with Missing Data},
  author    = {Comas, Armand and Zhang, Chi and Feric, Zlatan and Camps, Octavia and Yu, Rose},
  booktitle = {Advances in Neural Information Processing Systems},
  volume    = {33},
  pages     = {10189--10200},
  year      = {2020},
  url       = {https://arxiv.org/abs/2006.13391}
}