Introduction
Screen recordings are a primary medium for mobile app support, tutorials, and bug reporting. However, these videos are inherently passive. To reproduce a bug or follow a tutorial, developers and users must manually interpret and replicate actions on their own devices. This manual process is inefficient because raw video pixels lack interaction metadata, such as touch coordinates or gesture types. While previous solutions required instrumented environments or specialized recording software, this research presents a system capable of extracting actionable interaction traces from standard, "black box" screen recordings using only raw pixel data.
Methodology
The proposed system employs a four-phase pipeline to transform raw video into a replayable interaction script.
1. Video Segmentation
The system first segments the video into individual interaction clips. It utilizes Histogram of Oriented Gradients (HOG) and Structural Similarity (SSIM) to identify "stable intervals"—periods where the UI is static. Spikes in visual change between these intervals indicate user interactions, allowing the system to isolate specific clips for analysis.
2. Interaction Classification
Isolated actions are classified into six categories: tap, type, and four swipe directions. The system uses heuristic-based image processing, such as detecting the appearance of a QWERTY keyboard to identify "type" actions or tracking synchronized movement of UI elements to identify "swipes."
3. Interaction Localization
Localization identifies the precise coordinates of an interaction. For taps, the system first applies high-confidence heuristics, such as checking if a button label matches the title of the subsequent screen. If heuristics fail, a Deep Learning Localization Model is used. This model employs a 3D convolutional encoder to detect subtle visual feedback animations (e.g., button ripples) and a 2D encoder to compare consecutive UI states.
4. Interaction Replay
To execute the extracted script on a target device, the system performs UI element detection. It uses fuzzy text matching and multi-scale template matching to find the corresponding UI element on the new screen, ensuring robustness against changes in layout or resolution.
Datasets and Experimental Setup
The system was evaluated using two datasets:
- Rico Dataset: A large-scale repository of Android interactions used to train the deep learning localization models.
- Cross-Platform Dataset: A custom dataset comprising 128 recordings from 64 popular apps available on both iOS and Android, totaling 1,052 interactions. This dataset tested the system's performance on modern UI designs across different operating systems.
Key Insights and Results
A core finding of the research is that mobile operating systems provide sufficient visual "tells"—such as ripples or element scaling—that a 3D CNN can learn to interpret as touch indicators. This "pixel-only" approach provides a robust foundation that does not rely on often-unavailable metadata.
Performance Metrics: * Classification Accuracy: 89.3% on Android and 87.6% on iOS. * Segmentation (F1-score): 81.9% on iOS; lower on Android (67.9%) due to emulator latency and ads. * Localization Accuracy: 69.1% on the Rico dataset. * Replay Success Rate: 84.1% on iOS and 78.4% on Android across different devices.
The study also noted that modern UI trends, such as gesture-based navigation and subtle animations, present greater challenges than the older design paradigms found in the Rico dataset.
Limitations and Future Work
The current system struggles with dynamic content, where the specific UI elements shown in a video (e.g., a specific news headline) may no longer be present during replay. Additionally, unexpected UI elements like pop-up ads can disrupt the replay flow. Future research will focus on incorporating UI logic to better handle dynamic transitions and interstitial screens. The authors also suggest that integrating available metadata as an optional enhancement could further improve the system's accuracy.
Summary updated