Abstract
When a bug manifests in a user-facing application, it is likely to be exposed through the graphical user interface (GUI). Given the importance of visual information to the process of identifying and understanding such bugs, users are increasingly making use of screenshots and screen-recordings as a means to report issues to developers. However, when such information is reported en masse, such as during crowd-sourced testing, managing these artifacts can be a time-consuming process. As the reporting of screen-recordings in particular becomes more popular, developers are likely to face challenges related to manually identifying videos that depict duplicate bugs. Due to their graphical nature, screen-recordings present challenges for automated analysis that preclude the use of current duplicate bug report detection techniques. To overcome these challenges and aid developers in this task, this paper presents Tango, a duplicate detection technique that operates purely on video-based bug reports by leveraging both visual and textual information. Tango combines tailored computer vision techniques, optical character recognition, and text retrieval. We evaluated multiple configurations of Tango in a comprehensive empirical evaluation on 4,860 duplicate detection tasks that involved a total of 180 screen-recordings from six Android apps. Additionally, we conducted a user study investigating the effort required for developers to manually detect duplicate video-based bug reports and compared this to the effort required to use Tango. The results reveal that Tango's optimal configuration is highly effective at detecting duplicate video-based bug reports, accurately ranking target duplicate videos in the top-2 returned results in 83% of the tasks. Additionally, our user study shows that, on average, Tango can reduce developer effort by over 60%, illustrating its practicality.
Introduction
Bug reporting is undergoing a significant graphical shift. With the ubiquity of screen-recording tools in modern mobile operating systems and the rise of crowd-testing platforms, users are increasingly submitting videos to document software defects. While these recordings provide rich context for reproduction, they present a scalability challenge: duplicate detection. Manually triaging dozens of videos depicting the same crash is a labor-intensive process for developers. Traditional automated duplicate detectors, which rely on textual descriptions, are often ineffective against purely graphical reports. This paper introduces TANGO, an automated system designed to detect duplicate video-based bug reports by analyzing the visual and textual information embedded within the recordings.
The TANGO Framework
TANGO is an information retrieval system that ranks existing video reports based on their similarity to a new query video. The system employs a dual-pipeline architecture to capture different facets of the user interface (UI) and interaction flow.
Visual Similarity (TANGOvis)
This pipeline extracts frames and converts them into feature vectors. The authors evaluated both traditional computer vision (SIFT) and modern unsupervised contrastive learning (SimCLR). These features are aggregated into a "Bag-of-Visual-Words" (BoVW) and compared using TF-IDF cosine similarity. TANGO also supports sequence-aware comparison using weighted Longest Common Substring (LCS) to prioritize the end of the video, where bugs typically occur.
Textual Similarity (TANGOtxt)
Using Tesseract OCR, TANGO extracts on-screen text such as button labels and error messages. This text is indexed and queried using Apache Lucene to compute a textual similarity score between videos.
Selective Combination
A key innovation in TANGO is its selective fusion strategy. Rather than blindly combining visual and textual scores, TANGO uses a "vocabulary agreement" threshold. If an app's historical UI text is too generic (e.g., a timer app with repetitive labels), the system suppresses the textual signal to avoid false positives.
Experimental Evaluation
The authors evaluated TANGO using a benchmark of 180 video bug reports from six Android applications, generating 4,860 duplicate detection tasks. The SimCLR model was pre-trained on the RICO dataset of 66,000 Android screenshots to ensure robust UI feature extraction.
As shown in the performance results, TANGO's modern components significantly outperform traditional methods. The optimal configuration—combining selective visual and textual analysis—achieved a Mean Reciprocal Rank (mRR) of 79.8% and a Mean Average Precision (mAP) of 73.2%. Crucially, the system placed the correct duplicate in the top-2 results (HIT@2) for 83% of the tasks, with an average rank of 1.7.
Key Insights and Discussion
- Deep Learning Superiority: SimCLR's unsupervised representations of UI screens proved far more effective than handcrafted SIFT features for matching app states.
- The Textual Trade-off: While OCR provides vital context (like specific error codes), it can be noisy. TANGO’s ability to dynamically ignore text in apps with high vocabulary overlap is essential for maintaining precision.
- Robustness to User Variation: Orderless "Bag-of-Visual-Words" matching was found to be more consistent than strict sequential alignment. This is because different users often take slightly different paths or perform extraneous actions to reach the same bug state.
Conclusion and Practical Impact
A user study involving experienced developers demonstrated that TANGO can reduce manual triage effort by over 60% (specifically 65.1%). By providing a highly accurate ranked list of potential duplicates, TANGO allows developers to confirm duplicates by watching only one or two videos instead of searching the entire database. Future work will focus on refining frame alignment for complex reproduction paths and extending the system to support localized (non-English) applications and multi-modal reports containing mixed text and video.
Summary updated