Abstract
Mobile application tutorials often require visual overlays to clarify user interactions, yet manual annotation is labor-intensive and error-prone. We present Video2Action, a non-intrusive framework that leverages computer vision and deep learning to automate the annotation of app tutorial videos. By identifying action scenes and predicting interaction coordinates without requiring app instrumentation, Video2Action reduces manual workload by 85% while maintaining high accuracy across diverse UI environments.
1. Introduction
The proliferation of mobile applications has led to a surge in instructional video content. However, these tutorials often suffer from a lack of clarity regarding specific user actions, such as subtle taps or rapid scrolls. To mitigate this, creators manually insert "action cues"—graphical indicators like arrows or labels. This process is notoriously inefficient, requiring frame-by-frame analysis and precise synchronization.
Existing automated solutions typically rely on "instrumenting" the application (modifying source code) or enabling developer-level touch indicators. These methods are inaccessible to most casual creators. Video2Action addresses this gap by providing a "lightweight" approach that operates directly on raw screen recordings, requiring no access to the underlying application code.
2. Methodology
The Video2Action pipeline is divided into two primary phases: action scene generation and action location prediction.
2.1 Action Scene Generation
To avoid the computational overhead of per-pixel analysis, the system identifies "shots"—intervals where the UI remains relatively static. This is achieved using luminance similarity (Y-Diff in the YUV color space) and the Structural Similarity Index (SSIM). SSIM is particularly effective here as it is robust against compression noise and minor luminance fluctuations that often plague UI recordings.
The system classifies detected transitions into three categories:
- Tap: An instantaneous UI change.
- Scroll: A continuous transition between states.
- Backward: A return to a previous state, managed via a Last-In-First-Out (LIFO) stack to track navigation history.
2.2 Action Location Prediction
For identified "Tap" scenes, the system must pinpoint the interaction coordinates. Video2Action utilizes a ResNet-101 backbone to extract visual features from the UI. A Region Proposal Network (RPN) identifies potential interactable areas, while a specialized Location Prediction Network compares "before" and "after" frames to infer the specific trigger coordinate.
To enhance model robustness, two novel UI-specific data augmentation techniques were implemented:
- Element Exchange: Swapping visually similar UI elements to ensure the model prioritizes element type over absolute position.
- Metamorphic Augmentation: Leveraging the reversible nature of many UI transitions (e.g., Play to Pause) to synthesize additional training data.
Finally, DBSCAN clustering is applied to the predicted coordinates to ensure the suggested tap location is centered within the target UI element.
3. Datasets and Evaluation
The framework was trained and evaluated using two distinct datasets:
- Rico: A large-scale dataset featuring 55,000 UI transition traces from over 9,000 Android apps, providing the ground truth for deep learning.
- YouTube Crawl: A custom benchmark consisting of 500 YouTube app tutorials (approximately 10,000 labeled actions) used to evaluate real-world performance.
4. Results
Video2Action demonstrates significant improvements over baseline methods:
- Scene Segmentation: Achieved an 81.67% F1-score, vastly outperforming standard tools like PySceneDetect (38.28%).
- Tap Prediction: Reached 50.14% Top-1 and 81.89% Top-5 accuracy, surpassing state-of-the-art models like ActionBert.
- Human Impact: A study involving 12 video creators revealed an 85% reduction in manual effort. Users transitioned from manual frame hunting to a verification-based workflow, confirming system-generated suggestions.
5. Limitations and Conclusion
While effective, Video2Action faces challenges with dynamic content (e.g., auto-playing videos) which can trigger false positives in scene detection. Additionally, the current iteration focuses on taps, scrolls, and back-navigation, excluding complex gestures like pinching or multi-finger swipes.
In conclusion, Video2Action represents a significant step toward automating the post-production of mobile tutorials. Future work will focus on integrating these capabilities into mainstream video editing suites to foster a collaborative Human-AI environment for content creation.
Summary updated