Sharingan: Extract User Action Sequence from Desktop Recordings

Yanting Chen, Yi Ren, Xiaoting Qin, Jue Zhang, Kehong Yuan, Lu Han, Qingwei Lin, Dongmei Zhang, Saravan Rajmohan, Qi ZhangarXiv 2024 · DOI

Abstract

Desktop recordings represent a rich source of data for Robotic Process Automation (RPA), software tutorials, and user behavior analysis. However, extracting structured, executable action sequences from raw video remains a significant challenge due to the subtle and high-frequency nature of UI changes. We present Sharingan, a framework developed by researchers at Tsinghua University and Microsoft that utilizes Vision-Language Models (VLMs) to automate this extraction process. Our evaluation of two distinct methodologies—a Direct Frame-Based approach and a Differential Frame-Based approach—reveals a "simplicity paradox": feeding raw frames directly into a VLM consistently outperforms more complex pipelines that explicitly highlight UI changes.

Introduction

While computer vision has made strides in recognizing physical human actions, the digital realm poses unique difficulties. Desktop interfaces involve minute interactions, such as cursor state changes, button hovers, and pixel-level scroll bar movements. Traditional computer vision often fails to capture the semantic intent behind these changes. Sharingan aims to bridge this gap by determining the optimal VLM-based architecture for converting screen pixels into structured action logs.

Methodology: Direct vs. Differential Approaches

The researchers proposed and compared two primary VLM-based methodologies within the Sharingan framework:

  1. Direct Frame-Based Approach (DF): This end-to-end method feeds sampled video frames directly into the VLM. To handle model token limits (e.g., GPT-4o's 10-image limit), a sliding window with overlapping frames is employed. The process involves three key modules: an Action Proposer to suggest sequences, an Action Corrector to refine logic and remove redundancies, and an Action Merger to consolidate the timeline.
  2. Differential Frame-Based Approach (DiffF): This approach attempts to assist the VLM by using traditional CV techniques (Gaussian blurs and L2 norm differences) to localize changed regions. These "diffs" are described textually before a final reasoning step generates the action sequence.
Comparison of the Direct Frame-Based (DF) and Differential Frame-Based (DiffF) architectures.

Experimental Setup

To evaluate these approaches, two new benchmarks were introduced:

  • ACTONE: A controlled dataset of 40 videos focusing on fundamental UI operations like clicking, dragging, and typing.
  • ACTREAL: A challenging set of 41 real-world YouTube recordings featuring "noisy" elements such as pop-ups, varying resolutions, and complex multi-step workflows.

Results and Analysis

The study's most significant finding is the "Simplicity Paradox": the Direct Approach (DF) proved more reliable than the Differential Approach (DiffF). Explicitly describing UI changes often misguided the VLM, causing it to lose global context in favor of localized pixel changes.

Performance comparison of various VLMs across DF and DiffF methodologies on the ACTONE dataset.

Key performance insights include:

  • Model Performance: GPT-4o emerged as the superior model, achieving 70% to 80% accuracy in identifying operation types. Larger models significantly outperformed smaller variants, indicating that UI interaction recognition requires high-level cognitive reasoning.
  • Functional Accuracy: Extracted sequences were validated by replaying them via RPA tools. In a test of nine cases, six were successfully replayed, demonstrating functional utility.
  • The Role of Correction: The Action Corrector module was found to be essential. Without it, performance dropped as VLMs frequently generated redundant actions or illogical sequences.

Conclusion and Future Work

Despite its success, Sharingan faces limitations. VLMs can still suffer from "visual hallucinations" or fail to reason through complex style changes. Future work will explore incorporating audio modalities (user narration) to resolve visual ambiguities and expanding context windows to reduce fragmentation in action recognition. Fine-tuning VLMs specifically for GUI environments remains a promising avenue for creating more robust automation systems.

Summary updated

BibTeX
@misc{chen2024sharingan,
  author = {Yanting Chen and Yi Ren and Xiaoting Qin and Jue Zhang and Kehong Yuan and Lu Han and Qingwei Lin and Dongmei Zhang and Saravan Rajmohan and Qi Zhang},
  title = {{Sharingan: Extract User Action Sequence from Desktop Recordings}},
  year = {2024},
  eprint = {2411.08768},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.08768},
}
Figure