Ethosight: A Reasoning-Guided Iterative Learning System for Nuanced Perception based on Joint-Embedding & Contextual Label Affinity

Hugo Latapie, Kristinn R. Thórisson, Shan Yu, Vahagn Petrosyan, Patrick Hammer, Pei Wang, Brandon Kynoch, Hanning Chen, Tangrui LiarXiv 2023

Abstract

Traditional computer vision models often necessitate extensive data acquisition, annotation, and validation. These models frequently struggle in real-world applications, resulting in high false positive and negative rates, and exhibit poor adaptability to new scenarios, often requiring costly retraining. To address these issues, we present Ethosight, a flexible and adaptable zero-shot video analytics system. Ethosight begins from a clean slate based on user-defined video analytics, specified through natural language or keywords, and leverages joint embedding models and reasoning mechanisms informed by ontologies such as WordNet and ConceptNet. Ethosight operates effectively on low-cost edge devices and supports enhanced runtime adaptation, thereby offering a new approach to continuous learning without catastrophic forgetting. We provide empirical validation of Ethosight's promising effectiveness across diverse and complex use cases, while highlighting areas for further improvement. A significant contribution of this work is the release of all source code and datasets to enable full reproducibility and to foster further innovation in both the research and commercial domains.

Introduction

Traditional computer vision (CV) models are notoriously "brittle," requiring massive amounts of annotated data and struggling to generalize to new environments. Furthermore, they often suffer from "catastrophic forgetting," where learning a new task causes the model to lose previous knowledge. Real-world safety and security scenarios require "nuanced perception"—the ability to understand subtle, context-dependent differences, such as distinguishing between a chef in a kitchen and a threat in a hallway. Ethosight addresses these challenges by allowing users to define events in plain English and using symbolic reasoning to refine detections in real-time.

System Architecture

Ethosight moves away from the traditional "train-on-everything" approach, utilizing a hybrid architecture that combines neural embeddings with symbolic logic.

The Ethosight system architecture, illustrating the flow from user input through the compile phase and iterative inference loop.

1. The Compile Phase

Users provide natural language descriptions or keywords (e.g., "intruder," "fire"). Ethosight performs Semantic Expansion using ontologies like WordNet and ConceptNet to find related concepts (e.g., "smoke" or "flame" for "fire"), improving detection robustness.

2. Joint-Embedding Backbone

The system utilizes ImageBind, a multi-modal model that maps images, text, audio, and thermal data into a shared mathematical space. This allows for direct comparison between video frames and text descriptions without event-specific training.

3. Localized Label Affinities

Rather than calculating a single score for an entire image, Ethosight partitions frames into grids. It calculates "affinity scores" for each cell, creating a heatmap that allows the system to focus on specific regions where an event is occurring.

4. Reasoning-Guided Inference

An optional reasoning layer (e.g., OpenNARS) iteratively refines detections. This symbolic knowledge is stored in graph form, allowing the system to learn and share knowledge across deployments without retraining the underlying neural network.

Experimental Evaluation

The system was evaluated using the UCF Crime Dataset and a new Nuanced Event Dataset containing 20 classes of complex interest, such as "child in danger" and "kitchen accidents."

Affinity scores for the top 5 specified labels across video frames, demonstrating the system's ability to track event probability over time.

Key Results

  • High Accuracy: On a 14-class classification test using the UCF Crime dataset, Ethosight achieved 92.81% accuracy and 100% recall. High recall is critical for safety applications where missing an event is more costly than a false alarm.
  • Superior Performance: In multiclass accuracy comparisons, Ethosight reached 45% accuracy, significantly outperforming traditional supervised models like C3D (23%) and TCNN (29%).
  • Semantic Boost: Semantic Label Expansion significantly improved the signal-to-noise ratio, making detections clearer compared to using raw keywords alone.

Conclusion and Future Work

Ethosight demonstrates that combining the "gut instinct" of neural embeddings with the logical reasoning of symbolic AI creates a more adaptable and nuanced perception system. By starting from a "clean slate" and utilizing zero-shot learning, Ethosight lowers the barrier to entry for sophisticated video analytics.

Future work will focus on integrating multi-object tracking, improving spatio-temporal focus, and enabling self-supervised behavior learning to identify significant patterns without user-defined keywords.

Summary updated

BibTeX
@misc{latapie2023ethosight,
  author = {Hugo Latapie and Kristinn R. Thórisson and Shan Yu and Vahagn Petrosyan and Patrick Hammer and Pei Wang and Brandon Kynoch and Hanning Chen and Tangrui Li},
  title = {{Ethosight: A Reasoning-Guided Iterative Learning System for Nuanced Perception based on Joint-Embedding \& Contextual Label Affinity}},
  year = {2023},
  eprint = {2307.10577},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.10577},
}
Figure