It Takes Two to TANGO: Combining Visual and Textual Information for Detecting Duplicate Video-Based Bug Reports

Nathan Cooper, Carlos Bernal-Cárdenas, Oscar Chaparro, Kevin Moran, Denys Poshyvanyk

TL;DR

As mobile app users increasingly report bugs using screen recordings, developers face a flood of duplicate video-based bug reports that are tedious to triage manually. This paper introduces TANGO, a novel automated tool that combines computer vision (SimCLR) and optical character recognition (OCR) to detect duplicate video bug reports. By selectively fusing visual and textual similarities, TANGO accurately ranks duplicate videos in the top-2 results 83% of the time, saving developers over 65% of manual triage effort.

What Problem Does This Paper Address?

Bug reporting is undergoing a graphical shift. Thanks to built-in screen recording tools in iOS and Android, as well as crowd-testing platforms, users are increasingly submitting videos of bugs rather than typing out reproduction steps.

While videos provide excellent context, they create a massive headache for developers at scale: duplicate bug reports. When dozens of users submit a video of the exact same crash, developers have to manually watch and compare these lengthy screen recordings to identify the duplicates. Existing automated duplicate bug detectors rely heavily on textual descriptions and are completely blind to the content of video files. This paper tackles the challenge of building an automated duplicate detection system that operates purely on the graphical and textual information embedded within video-based bug reports.

Methods

The authors propose TANGO (Detecting Duplicate Screen Recordings of Software Bugs), an information retrieval system that takes a new video bug report (the query) and ranks a corpus of existing videos based on similarity. TANGO has two main pipelines that run in parallel:

  • Visual Similarity (TANGOvis): TANGO extracts frames from the videos and converts them into feature vectors. The authors tested both traditional Computer Vision (SIFT) and modern Deep Learning (SimCLR, a contrastive learning model) for feature extraction. These features are clustered into a "Bag-of-Visual-Words" (BoVW) and compared using TF-IDF cosine similarity. They also experimented with sequence-aware algorithms (like weighted Longest Common Substring) to give more importance to the end of the video, where the actual bug usually manifests.
  • Textual Similarity (TANGOtxt): TANGO runs Optical Character Recognition (Tesseract OCR) on the video frames to extract on-screen text (e.g., buttons, error messages, labels). This text is processed using standard text retrieval techniques (Apache Lucene) to compute a textual similarity score.
  • Selective Combination: Initially, TANGO linearly combined the visual and textual scores. However, the authors refined this into a selective combination: TANGO dynamically decides whether to include textual similarity based on a "vocabulary agreement" threshold, preventing false positives in apps where different screens share too much generic text.

Datasets

  • Training Data: The authors trained their SimCLR visual feature extractor and BoVW codebooks using the RICO dataset, which contains over 66,000 Android screenshots from over 9,000 popular apps.
  • Evaluation Benchmark (New): Because no dataset of video-based bug reports existed, the authors created a new benchmark. They collected 180 video bug reports across 6 open-source Android apps (AntennaPod, Time Tracker, Token, GNUCash, Grow Tracker, Droid Weight). This included 10 real bugs and 50 bugs injected via a mutation testing tool (MutAPK). From this, they generated 4,860 duplicate detection tasks mimicking real-world issue tracker scenarios.

Key Insights and Ideas

  • Deep Learning beats traditional CV for UI matching: The unsupervised contrastive learning model (SimCLR) significantly outperformed traditional handcrafted features (SIFT) for extracting meaningful visual representations of mobile app screens.
  • More text isn't always better: For some apps, the on-screen text is highly generic across entirely different bugs (e.g., a timer app where every screen just shows numbers and "Start/Stop"). In these cases, blindly adding text similarity actually hurt performance. TANGO's "aha moment" was realizing it needed to measure an app's historical vocabulary overlap and selectively ignore text if the overlap is too high.
  • Orderless > Ordered sequences: Surprisingly, treating a video as an unordered "bag of visual words" performed more consistently than trying to strictly align frame sequences. Why? Because different users often take slightly different paths, or add unnecessary taps, to trigger the exact same bug, which throws off strict sequential matching algorithms.

Key Results

  • High Accuracy: TANGO's best configuration (selective visual + textual) achieved a Mean Reciprocal Rank (mRR) of 79.8% and a Mean Average Precision (mAP) of 73.2%.
  • Excellent Top-K Retrieval: For 83% of the duplicate detection tasks, TANGO successfully placed the correct duplicate video in the top-2 results (HIT@2). The average rank of the true duplicate was 1.7.
  • Massive Time Savings: In a user study with experienced programmers, manually finding a duplicate video took about 81.2 seconds per task. By using TANGO's ranked suggestions, developers would only need to watch 1 or 2 videos, effectively saving 65.1% of their time.

Limitations and Future Work

  • Limitations: The 12.8% "vocabulary agreement" threshold used to decide when to include text similarity was derived from the test dataset and might not generalize perfectly to all unseen apps. Additionally, TANGO currently assumes the on-screen text is in English, which could negatively impact performance on localized apps.
  • Future Work: The authors plan to explore more advanced frame alignment algorithms (like longest common sub-sequence) to better handle the varying paths users take to reproduce bugs. They also aim to extend TANGO to handle mixed-media bug reports (where users submit a mix of text, images, and video) and evaluate the tool in a live industrial setting.

Summary updated

BibTeX
@inproceedings{cooper2021it,
  author = {Nathan Cooper and Carlos Bernal-Cárdenas and Oscar Chaparro and Kevin Moran and Denys Poshyvanyk},
  title = {{It Takes Two to TANGO: Combining Visual and Textual Information for Detecting Duplicate Video-Based Bug Reports}},
  booktitle = {ICSE},
  year = {2021},
  url = {https://openreview.net/forum?id=HuuxndeSZ-c},
}

Loading related content...

Figure