End-to-End Fine-Grained Action Segmentation and Recognition Using Conditional Random Field Models and Discriminative Sparse Coding

Effrosyni Mavroudi, Divya Bhaskara, Shahin Sefati, Haider Ali, René Vidal

Abstract

Fine-grained action segmentation and recognition is an important yet challenging task. Given a long, untrimmed sequence of kinematic data, the task is to classify the action at each time frame and segment the time series into the correct sequence of actions. In this paper, we propose a novel framework that combines a temporal Conditional Random Field (CRF) model with a powerful frame-level representation based on discriminative sparse coding. We introduce an end-to-end algorithm for jointly learning the weights of the CRF model, which include action classification and action transition costs, as well as an overcomplete dictionary of mid-level action primitives. This results in a CRF model that is driven by sparse coding features obtained using a discriminative dictionary that is shared among different actions and adapted to the task of structured output learning. We evaluate our method on three surgical tasks using kinematic data from the JIGSAWS dataset, as well as on a food preparation task using accelerometer data from the 50 Salads dataset. Our results show that the proposed method performs on par or better than state-of-the-art methods.

Introduction

Recognizing fine-grained actions in continuous data streams—such as distinguishing between "cracking an egg" and "stirring milk" during a cooking sequence—presents two primary challenges. First, raw kinematic or sensor data is often noisy and lacks the discriminative power to separate similar gestures. Second, actions follow a specific temporal "grammar" (e.g., cracking an egg precedes frying it), requiring models that can capture both high-quality frame-level features and complex temporal structures.

Existing methods often rely on unsupervised dictionaries for sparse coding, where the data representation is not optimized for the final classification task. This paper addresses these issues by proposing a framework that jointly learns a task-specific dictionary and a temporal model.

Methodology

The proposed framework integrates three main components into a single end-to-end trainable pipeline:

  1. Discriminative Sparse Coding: Each frame is represented as a combination of "atoms" from an overcomplete dictionary. Unlike traditional methods, this dictionary is learned jointly with the classifier to maximize discriminative power.
  2. Local Temporal Pooling: Sparse codes are average-pooled over a short window to incorporate local context, helping the model understand transitions.
  3. Temporal CRF: The pooled features drive a Conditional Random Field (CRF) that models both unary potentials (action labels) and pairwise potentials (transition costs). The authors utilize both Linear Chain and Skip-Chain CRFs to capture long-range dependencies.
The proposed end-to-end architecture combining sparse coding, temporal pooling, and a CRF model.

The entire system is trained using a max-margin approach and Stochastic Gradient Descent (SGD), ensuring that the dictionary atoms are optimized specifically to facilitate the CRF's segmentation task.

Experimental Evaluation

The model was evaluated on two datasets: the JIGSAWS dataset, containing kinematic data from a da Vinci surgical robot, and the 50 Salads dataset, which uses accelerometer data from kitchen tools.

Key Results

The method achieved performance comparable to or exceeding deep learning baselines like LSTMs and Temporal Convolutional Networks (TCNs). On the JIGSAWS "Suturing" task (Leave-One-Subject-Out setup), the model reached 86.21% accuracy. For the 50 Salads "mid" granularity task, it achieved 56.72% accuracy, significantly outperforming raw feature baselines.

Qualitative results for the Suturing task under LOSO and LOUO cross-validation setups, comparing ground truth (GT) with model predictions.

Ablation studies highlighted that the transition from raw features to sparse features provided the most significant performance boost (e.g., an ~9% jump on 50 Salads). While joint learning provided additional gains, the authors noted that the impact was somewhat moderated by the temporal pooling step, which provides context but can also "blur" fine-grained details.

Conclusion

This work demonstrates that task-driven, discriminative sparse coding combined with temporal CRF models provides a robust framework for fine-grained action recognition. By learning the data representation and the temporal grammar simultaneously, the model effectively handles the noise and complexity of kinematic and sensor-based time series. Future research will explore integrating deep convolutional features into this structured learning framework to further enhance performance on video-based tasks.

Summary updated

BibTeX
@inproceedings{mavroudi2018end,
  author = {Effrosyni Mavroudi and Divya Bhaskara and Shahin Sefati and Haider Ali and René Vidal},
  title = {{End-to-End Fine-Grained Action Segmentation and Recognition Using Conditional Random Field Models and Discriminative Sparse Coding}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2018},
  url = {https://openreview.net/forum?id=LD22d6lSpf0},
}
Figure