To Show or Not to Show: Redacting Sensitive Text from Videos of Electronic Displays

Abhishek Mukhopadhyay, Shubham Agarwal, Patrick Dylan Zwick, Pradipta Biswas

Abstract

With the increasing prevalence of video recordings there is a growing need for tools that can maintain the privacy of those recorded. In this paper, we define an approach for redacting personally identifiable text from videos using a combination of optical character recognition (OCR) and natural language processing (NLP) techniques. We examine the relative performance of this approach when used with different OCR models, specifically Tesseract and the OCR system from Google Cloud Vision (GCV). For the proposed approach the performance of GCV, in both accuracy and speed, is significantly higher than Tesseract. Finally, we explore the advantages and disadvantages of both models in real-world applications.

Introduction

As video recording becomes ubiquitous in research, safety, and entertainment, protecting participant privacy has become a significant challenge. This is particularly evident in automotive "in-cabin" environments, where infotainment systems frequently display sensitive personally identifiable information (PII), such as phone numbers, home addresses, and email notifications. While researchers require these recordings to improve user interface and experience (UI/UX), they must redact PII to comply with privacy standards.

Traditional manual redaction is labor-intensive, slow, and expensive. While previous work has addressed face anonymization, redacting dynamic text within video frames presents unique challenges. This study proposes an automated system to accurately identify and obscure text-based PII across thousands of video frames while maintaining the overall utility of the visual data.

Methodology

The researchers developed a multi-stage pipeline designed to process video frames sequentially. The process involves four primary steps:

  1. Text Detection (OCR): An OCR engine identifies all text within a frame and provides bounding box coordinates.
  2. Entity Identification (NLP): Extracted text is filtered through two mechanisms:
  3. Named-Entity Recognition (NER): Utilizing the spaCy library to detect human names.
  4. Regular Expressions (RegEx): Pattern matching to identify structured data like emails and phone numbers.
  5. Redaction: The system overlays green "privacy boxes" on the identified coordinates.
  6. Reconstruction: Redacted frames are reassembled into the final video output.
The proposed multi-stage pipeline for automated PII redaction.

The study specifically evaluates two OCR engines within this pipeline: the open-source Tesseract and the cloud-based Google Cloud Vision (GCV).

Experimental Setup

The evaluation utilized real-world datasets from Pulse Labs AI, featuring drivers interacting with automotive infotainment systems. A test set of 100 frames was sampled from three video sets, containing 209 names, 183 phone numbers, and 214 email addresses. Human-labeled ground truth was used to measure accuracy, precision, and recall.

Results and Discussion

The performance comparison revealed a substantial gap between the two OCR models. GCV significantly outperformed Tesseract in both qualitative and quantitative metrics.

Comparison of accuracy between Tesseract and GCV across different PII classes.

Performance Metrics

  • Accuracy: GCV achieved a mean accuracy of 91.21%, compared to Tesseract's 54.21%.
  • Class-Specific Accuracy: GCV maintained high performance across all PII categories. Tesseract performed best on emails due to their distinct patterns but struggled with names, yielding a precision score of only 0.42.
  • Processing Speed: GCV processed frames in 1.09 seconds on average, slightly faster than Tesseract’s 1.25 seconds (tested on an NVIDIA RTX 2070). Qualitative analysis also showed the system's effectiveness on mobile screen recordings, suggesting broad applicability beyond automotive research.

Key Insights

The primary bottleneck in the pipeline is the initial OCR stage. Tesseract often failed due to "punctuation pitfalls," where it incorrectly parsed punctuation within names or phone numbers, causing downstream NLP filters to fail. Furthermore, Tesseract struggled with the motion blur and low-light conditions common in vehicle environments.

While GCV offers superior performance, it introduces a "Cloud Privacy Paradox": using it requires uploading unredacted sensitive data to a third-party cloud provider. In contrast, Tesseract allows for local, offline processing, which may be preferable for certain high-security protocols despite its lower accuracy.

Conclusion

This research demonstrates that combining OCR and NLP provides a viable path for automated PII redaction in video. While cloud-based solutions like GCV currently offer the necessary accuracy and speed for scalable privacy protection, future work should focus on fine-tuning lightweight, local OCR models. Such advancements could bridge the gap between the privacy benefits of local processing and the high performance required for reliable redaction.

Summary updated

BibTeX
@misc{mukhopadhyay2022show,
  author = {Abhishek Mukhopadhyay and Shubham Agarwal and Patrick Dylan Zwick and Pradipta Biswas},
  title = {{To Show or Not to Show: Redacting Sensitive Text from Videos of Electronic Displays}},
  year = {2022},
  eprint = {2208.10270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.10270},
}
Figure