Multi-instance Dynamic Ordinal Random Fields for Weakly-Supervised Pain Intensity Estimation

Adria Ruiz, Ognjen Rudovic, Xavier Binefa, Maja PanticarXiv 2016

Estimating the intensity of a patient's pain is a critical task in clinical settings, but getting experts to annotate every single frame of a video is prohibitively expensive and time-consuming. This paper introduces a way to learn these fine-grained details using only "weak" labels—a single score for an entire video clip.

TL;DR

The authors propose MI-DORF (Multi-Instance Dynamic Ordinal Random Fields), a framework that learns to estimate frame-by-frame pain intensity using only video-level labels. By combining Multi-Instance Learning (MIL) with ordinal regression and temporal modeling, the model successfully "unravels" latent frame-level intensities that correlate strongly with expert annotations.

What Problem Does This Paper Address?

In many real-world scenarios, we have labels for a collection of data (a "bag") but not for the individual items inside it ("instances"). In medical video analysis, we might know the maximum pain a patient felt during a session (the bag label), but we don't have a label for every 1/30th of a second (the instance labels).

Current approaches usually fall short in two ways:

  1. Ignoring Order: They treat pain levels (e.g., 0 to 5) as independent categories, ignoring the fact that level 3 is "closer" to level 4 than it is to level 1.
  2. Ignoring Time: They treat video frames as a random pile of images rather than a sequence, losing the valuable context that pain intensity usually changes smoothly over time.

The authors tackle Multi-Instance Ordinal Regression (MIOR): learning from sequences where the bag label is defined as the maximum ordinal value of the instances within it.

Methods

The core of the paper is the MI-DORF model. It builds upon Hidden Conditional Ordinal Random Fields (HCORF) but adds a crucial twist to handle the weak supervision of MIL.

The Model Architecture

As shown in the graphical representation below, the model consists of three types of "potentials" (energy functions):

  • Node Potentials ($\Psi^N$): These measure how well a specific frame's features match a particular pain intensity level.
  • Edge Potentials ($\Psi^E$): these model the transitions between consecutive frames, enforcing temporal smoothness.
  • High-Order Cardinality Potential ($\Psi^M$): This is the "MIL engine." it enforces the rule that the maximum intensity across all frames must equal the video-level label.
Fig. 1. (a) Graphical representation of the proposed MI-DORF model. Node potentials Ψ N model the compatibility between a given observation xt and a latent ordinal value ht . Edge potentials Ψ E take into account the transition between consecutive latent ordinal states ht and ht+1. Finally, the high-order cardinality potential Ψ M models the MIOR assumption relating all the latent ordinal states ht with the bag-label y. (b) Equivalent model defined using the auxiliary variables ζt for each latent ordinal state. The use of these auxiliary variables and the redefinition of node and edge potentials allows us to perform efficient inference over the MI-DORF model (see Sec. 3.4).

The Inference Trick

High-order potentials (those involving many variables at once) are usually a computational nightmare. To keep the model efficient, the authors introduce auxiliary binary variables ($\zeta_t$). These variables act like a "switch" that tracks whether the target intensity has been reached yet in the sequence. This clever reformulation turns a complex, high-order problem into a simple linear chain, allowing the use of the standard, efficient forward-backward algorithm.

Datasets

The researchers evaluated MI-DORF on two fronts:

  1. Synthetic Data: Ten custom-generated datasets designed to test the model's ability to handle noisy observations and various temporal transition patterns.
  2. UNBC Shoulder-Pain Database: A real-world dataset containing videos of patients performing arm movements. While the model was trained only on video-level labels (0-5 scale), it was evaluated against expert-provided frame-level PSPI (Prkachin and Solomon Pain Intensity) scores.

Key Insights and Ideas

  • Ordinality is a Feature, Not a Bug: By using a cumulative distribution function (CDF) based likelihood for node potentials, the model explicitly respects the ranking of pain levels. This prevents the model from making "wild" guesses (e.g., confusing level 1 with level 5).
  • Dynamics as a Denoiser: In videos, individual frames can be blurry or ambiguous. The temporal edge potentials allow the model to use neighboring frames to "correct" these noisy observations, leading to smoother and more realistic intensity curves.
  • Weak Supervision Can Be Surprisingly Strong: The "Max" assumption (that the video label is the peak intensity) provides enough constraint to allow the model to discover the underlying structure of pain events without ever seeing a frame-level label during training.

Key Results

On the UNBC Database, MI-DORF significantly outperformed both static MIL methods and non-ordinal dynamic methods:

  • Frame-Level Accuracy: MI-DORF achieved an Intra-Class Correlation (ICC) of 0.40. For context, a state-of-the-art fully supervised model (which sees every frame label during training) achieves between 0.59 and 0.67. Achieving 0.40 with only one label per video is a major win for weakly-supervised learning.
  • Error Reduction: The Mean Average Error (MAE) at the frame level was just 0.19, compared to 0.76 for static MI-OR and 0.84 for standard Multi-Instance Regression.
  • Qualitative Success: Visualization showed that MI-DORF accurately localized pain "peaks" in the video timeline, whereas static methods produced jittery, less accurate predictions.

Limitations and Future Work

  • The "Max" Assumption: The model relies on the bag label being the maximum instance label. If a video label represents an average or a sum of pain, this model would need adjustment.
  • Complexity: While optimized, the state space is doubled by the auxiliary variables, leading to a complexity of $O(T \cdot (2L)^2)$. For tasks with a very high number of ordinal levels ($L$), this could become a bottleneck.
  • Future Directions: The authors suggest that this framework could be extended to other sequence-based tasks where labels are ordinal, such as gesture recognition or automated movie/video clip rating.

Summary updated

BibTeX
@misc{ruiz2016multi,
  author = {Adria Ruiz and Ognjen Rudovic and Xavier Binefa and Maja Pantic},
  title = {{Multi-instance Dynamic Ordinal Random Fields for Weakly-Supervised Pain Intensity Estimation}},
  year = {2016},
  eprint = {1609.01465},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.01465},
}
Figure