AI Video Object Tracking with Keyframe Mask Reset

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

AI-based object detection in video can result in jerky or shaky tracking due to abrupt changes in mask location from frame-to-frame, particularly when using promptable image segmentation models for object tracking.

Innovation Solution

Employ a combination of two AI-assisted object detection algorithms: a promptable image segmentation model for initial object detection and a diffusion-based generative model for tracking, with intermittent application of the segmentation model at keyframes to maintain accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If a promptable image segmentation model is used for object detection in video, then object detection accuracy is improved, but tracking smoothness deteriorates due to abrupt mask location changes between frames

Engineering Contradiction:
Improveobject detection accuracyVSAvoidtracking smoothness
Core Design Contradiction:
Measurement precisionVSStability of the object's composition

Solution Approach 1:

The patent segments the video processing into two distinct parts: (1) a promptable image segmentation model applied at keyframes to achieve accurate object detection and mask generation, and (2) a diffusion-based generative model applied between keyframes to maintain tracking smoothness. This segmentation allows each model to operate in its optimal context without compromising the other objective.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements periodic re-application of the promptable image segmentation model at keyframes interspersed throughout the video sequence. Between these periodic keyframe processing events, the diffusion-based model continuously tracks the object. This periodic intervention resets the ground truth at keyframes while maintaining smooth tracking in between, resolving the contradiction between detection accuracy and tracking smoothness.

Inventive Principle:
Principle #19Periodic action

2Measurement precision

If the promptable image segmentation model is applied to every frame, then detection accuracy is maintained, but computational efficiency deteriorates

Engineering Contradiction:
Improvedetection accuracyVSAvoidcomputational efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

Instead of applying the computationally intensive promptable image segmentation model to every frame (excessive action), the patent applies it partially only at keyframes. The diffusion-based generative model handles the intermediate frames, providing sufficient tracking capability without the full computational cost of repeated segmentation. This partial application maintains detection accuracy at critical points while improving overall computational efficiency.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent employs periodic application of the segmentation model at keyframes rather than continuous application to every frame. This periodic strategy maintains detection accuracy at regular intervals while significantly reducing the total computational burden, as the diffusion-based model handles the less computationally intensive tracking between keyframes.

Inventive Principle:
Principle #19Periodic action

3Stability of the object's composition

If tracking is performed using only the diffusion-based generative model, then tracking smoothness is improved, but detection accuracy deteriorates due to error accumulation

Engineering Contradiction:
Improvetracking smoothnessVSAvoiddetection accuracy
Core Design Contradiction:
Stability of the object's compositionVSMeasurement precision

Solution Approach 1:

The patent applies the promptable image segmentation model in advance at keyframes to establish accurate ground truth mask locations before the diffusion-based model begins tracking. This preliminary action provides a fresh, accurate starting point for each tracking segment, preventing error accumulation that would occur if the diffusion model operated independently across the entire video sequence.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements a feedback mechanism where the segmentation model's output at keyframes serves as ground truth that corrects and resets the tracking state. This feedback prevents the diffusion-based model from drifting or accumulating errors over time, maintaining detection accuracy while preserving the smooth tracking capability of the diffusion model between keyframes.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS12567169B2Artificial intelligence smoothed object detection and tracking in video
Publication Date: 2026.03.03 SHOPIFY INC
  • US12567169B2 patent drawing
  • US12567169B2 patent drawing
  • US12567169B2 patent drawing

AI summary

Methods and systems for object detection and tracking in video that use at least two different AI-assisted object detection algorithms. A first AI-assisted object detection algorithm selected to be used to detect an object in a video frame and determine a mask defining location of the object on the basis that the video frame is a keyframe. A second AI-assisted object detection algorithm may be used to track location of the mask in temporally subsequent frames until the next keyframe is detected.