Video2Action: Reducing Human Interactions in Action Annotation of App Tutorial Videos

Sidong Feng, Chunyang Chen, Zhenchang Xing

TL;DR

Video2Action is a lightweight, non-intrusive framework that automatically segments mobile app tutorial videos into distinct action scenes and predicts precise user interaction locations (like taps and scrolls). By leveraging purely image-based processing and deep learning, it eliminates the need for tedious manual frame-by-frame editing, helping video creators save up to 85% of their annotation time.

What Problem Does This Paper Address?

Mobile app tutorial videos are incredibly popular for learning new features, but they often suffer from accessibility issues. Actions happen too quickly, UI transitions can be subtle, and audio narrations are unhelpful for hearing-impaired or non-native speaking users. To fix this, content creators often manually add visual markers—like arrows, bounding boxes, or hand icons—to highlight where and when an action occurs.

Examples of action annotations in tutorial videos

However, creating these annotations manually is a grueling, frame-by-frame process. Existing automated solutions typically rely on software instrumentation (injecting tracking code into the app) or developer-mode touch indicators. These approaches are intrusive, break easily across OS updates, and are completely impractical for everyday video creators who only have access to the final screen recording. Video2Action addresses this gap by analyzing tutorials using only the raw video pixels.

Methods

The Video2Action framework operates in two main phases: Action Scene Generation and Action Location Prediction.

Figure 3: Overview of Video2Action to acquire actions from the video, consists of two main phases. Action Scene Generation phase takes a video as input and segments it into a scene transition graph with UI actions (e.g., Tap, Scroll, Backward). For each action, Action Location Prediction phase infers specific locations by adopting image-processing and deep-learning methods.

1. Action Scene Generation

Instead of treating the video as a continuous stream, the system cuts it into semantic "shots" based on human visual perception principles.

  • Shot Detection: It computes a perceptual similarity score between consecutive frames using the Structural Similarity Index (SSIM) on the luminance channel (Y-diff in YUV color space). Steady states indicate a fully rendered UI screen.
  • Scene Segmentation: The system classifies transitions into three primary actions based on distinct mathematical patterns in the similarity scores:
  • TAP: An instantaneous drop in similarity to a completely new UI.
  • SCROLL: A sharp drop followed by a gradual, continuous increase in similarity as the screen slides.
  • BACKWARD: A semantic return to a previous screen. To detect this, the system uses a Last-In, First-Out (LIFO) stack to identify palindromic UI sequences (e.g., Screen A $\rightarrow$ Screen B $\rightarrow$ Screen A).

2. Action Location Prediction

Once the scenes are segmented, the system infers the exact coordinates of the action. While scrolls are resolved using standard template matching, TAP actions require a deep learning approach due to the diversity of UI elements.

The authors developed a specialized network consisting of:

  • Visual Encoding: A ResNet-101 backbone pre-trained on ImageNet to extract visual features from the pre- and post-transition UI frames.
  • Region Proposal Network (RPN): Customized with anchor-box scales and aspect ratios optimized specifically for UI elements (like buttons, text fields, and icons) rather than natural objects.
  • Location Prediction Network: A fully connected network that combines the feature maps of both screens to output a confidence ranking of coordinates.
  • Post-Processing: A density-based clustering algorithm (DBSCAN) groups redundant, close-proximity coordinate predictions to deliver clean, distinct recommendations.

To train this model effectively without massive manual labeling, the authors introduced two UI-specific data augmentation techniques:

  • Element Exchange: Swapping visually similar elements within a perceptual group (like items in a list) to create synthetic UI variations.
  • Metamorphic Augmentation: Reversing known pairs of UI states (like play/pause or on/off switches) to teach the model bidirectional interaction logic.

Datasets

The authors utilized two primary data sources:

  1. YouTube Empirical Dataset: 500 randomly collected app tutorial videos used to analyze real-world creator habits and establish a baseline of 9,764 manually labeled actions.
  2. Rico Dataset: A massive, open-source mobile UI dataset containing 55k unique transition traces from 9.3k Android apps. The authors used 6k Rico videos to evaluate scene generation and split the remaining dataset by app package to train and test the tap location prediction model without data leakage.

Key Insights and Ideas

  • UI Videos $\neq$ Natural Videos: Standard video editing and shot-detection tools (like Adobe Premiere's Scene Edit Detection or PySceneDetect) perform poorly on app tutorials. They are tuned for gradual lighting changes and natural motion, whereas UI videos feature sharp, artificial, and instantaneous state changes.
  • Exploiting UI Semantics for Data Augmentation: Deep learning models typically struggle with pixel-level coordinate regression on unseen interfaces. By injecting "human design knowledge" into the training process—such as knowing that list elements can be swapped or that a toggle switch can be reversed—the model's top-1 prediction accuracy jumped significantly without requiring any extra real-world data collection.

Key Results

  • Scene Generation: Video2Action achieved an 81.67% Video F1-score and an 86.41% Levenshtein score, significantly outperforming state-of-the-art baselines like PySceneDetect (38.28% F1) and Adobe Premiere (41.02% F1).
  • Tap Location Prediction: The model achieved 50.14% Precision@1 and 81.89% Precision@5, outperforming specialized UI interaction models like ActionBert and Humanoid.
  • User Study: In a study with 12 professional video creators, using Video2Action's automated cues allowed participants to complete tutorial annotations 85% faster than annotating from scratch, while drastically reducing cognitive load.

Limitations and Future Work

While highly effective, Video2Action faces a few notable limitations:

  • Dynamic Content Interference: UIs containing continuous animations, auto-playing videos, or shifting advertisements can trick the shot detection algorithm into registering false transitions.
  • Limited Action Vocabulary: The framework currently only supports the most common actions (Tap, Scroll, Backward). It does not yet account for complex gestures like pinch-to-zoom, multi-finger swipes, or 3D/AR/VR interactions.

The authors plan to address these limitations in future iterations by incorporating temporal animation tracking between UI transitions and expanding support to multi-platform environments like iOS and desktop web applications.

Summary updated

BibTeX
@inproceedings{feng2023video,
  author = {Sidong Feng and Chunyang Chen and Zhenchang Xing},
  title = {{Video2Action: Reducing Human Interactions in Action Annotation of App Tutorial Videos}},
  booktitle = {UIST},
  year = {2023},
  doi = {10.1145/3586183.3606778},
}
Figure