Explainable Activity Recognition in Videos

Chiradeep Roy, Mahesh Shanbhag, Mahsan Nourani, Tahrima Rahman, Samia Kabir, Vibhav Gogate, Nicholas Ruozzi, Eric D. RaganIUI Workshops 2019

Abstract

This paper introduces a two-layer framework for video activity recognition that combines the high-performance pattern matching of deep learning with the transparency of probabilistic graphical models. By stacking "Dynamic Cutset Networks" on top of a Convolutional Neural Network (CNN), the system not only improves recognition accuracy but also provides human-understandable explanations for its decisions in real-time.

Introduction

While deep learning (DL) has revolutionized computer vision, it remains a "black box." In activity recognition—where a system identifies actions like "slicing an orange" in a video—a standard DL model cannot explain why it chose a specific label. This lack of transparency makes it difficult for users to trust the system, especially when it makes errors. Furthermore, standard DL models often struggle with temporal consistency; they might predict "slicing" in one frame and "washing" in the next, even if that sequence is physically impossible. The authors aim to bridge the gap between high-accuracy "black box" models and interpretable "white box" reasoning.

Methods: A Two-Layer Architecture

The authors propose a two-layer architecture that treats deep learning as a "noisy sensor" providing data to a higher-level reasoning layer.

The proposed two-layer framework consisting of a Video Classification Layer and an Explanation Layer.
  1. Video Classification Layer: A modified GoogleNet (Inception) architecture treats video frames as input and outputs a set of labels (action, object, location). These outputs are treated as uncertain or "noisy."
  2. Explanation Layer: The noisy outputs are fed into a Conditional Cutset Network (CCN). This is a tractable probabilistic graphical model that encodes prior knowledge about how activities relate to one another.
  3. Dynamic Modeling: To handle the flow of time, the authors developed Dynamic Cutset Networks. These use a 1-Markov assumption to ensure temporal persistence, recognizing that activities typically persist across multiple frames.
  4. Abductive Inference: Because cutset networks are mathematically "tractable," the system can perform complex calculations in linear time to find the most likely explanation for a query (e.g., "Did the person slice a carrot?").

Datasets and Evaluation

The system was evaluated using the TaCOS (Textually Annotated Cooking Scenes) dataset, part of the MPII Cooking 2 corpus. The dataset contains videos of various cooking tasks, with activities defined as (action, object, location) triples. The authors used 60,313 frames for training and 9,355 frames for testing across 17 videos.

Key Results

An ablation study compared the full system against a standalone CNN and a static version of the model. The Dynamic CCN outperformed the standalone GoogleNet across almost all metrics, improving the Jaccard Index from 0.8608 to 0.8628 and reducing Hamming Loss from 0.1392 to 0.1200 (where lower is better).

The system interface showing a video query, the predicted answer, and the generated explanations including detected component combinations and scores.

Beyond quantitative gains, the system successfully generated three types of explanations: video highlights of relevant segments, ranked activity triples, and lists of the most probable entities involved in an action. A preliminary study with seven participants suggested a strong positive correlation between the quality of the explanations provided and the users' trust in the system.

Conclusion and Future Work

This framework demonstrates that probabilistic layers can "fix" mistakes made by CNNs by applying prior knowledge (e.g., if the CNN predicts "slicing" but doesn't see a "knife," the reasoning layer can lower the probability of that incorrect label). Future work will focus on expanding the vocabulary beyond the cooking domain, supporting complex natural language queries, and modeling hierarchical "super-activities" like "making breakfast" that consist of multiple sub-activities.

Summary updated

BibTeX
@inproceedings{roy2019explainable,
  author = {Chiradeep Roy and Mahesh Shanbhag and Mahsan Nourani and Tahrima Rahman and Samia Kabir and Vibhav Gogate and Nicholas Ruozzi and Eric D. Ragan},
  title = {{Explainable Activity Recognition in Videos}},
  booktitle = {IUI Workshops},
  year = {2019},
}
Figure