Skip to main content
QUICK REVIEW

[Paper Review] Text Extraction and Retrieval from Smartphone Screenshots: Building a Repository for Life in Media

Agnese Chiatti, Mu-Jung Cho|arXiv (Cornell University)|Jan 4, 2018
Web Data Mining and AnalysisComputer Science13 references3 citations
TL;DR

This paper presents a complete workflow for extracting and retrieving text from smartphone screenshots using OpenCV for image pre-processing and LSTM-enhanced Tesseract OCR, achieving 74% character-level accuracy. The system enables efficient indexing and search via a custom vertical search engine, offering a scalable solution for behavioral and health research using life-in-media data.

ABSTRACT

Daily engagement in life experiences is increasingly interwoven with mobile device use. Screen capture at the scale of seconds is being used in behavioral studies and to implement "just-in-time" health interventions. The increasing psychological breadth of digital information will continue to make the actual screens that people view a preferred if not required source of data about life experiences. Effective and efficient Information Extraction and Retrieval from digital screenshots is a crucial prerequisite to successful use of screen data. In this paper, we present the experimental workflow we exploited to: (i) pre-process a unique collection of screen captures, (ii) extract unstructured text embedded in the images, (iii) organize image text and metadata based on a structured schema, (iv) index the resulting document collection, and (v) allow for Image Retrieval through a dedicated vertical search engine application. The adopted procedure integrates different open source libraries for traditional image processing, Optical Character Recognition (OCR), and Image Retrieval. Our aim is to assess whether and how state-of-the-art methodologies can be applied to this novel data set. We show how combining OpenCV-based pre-processing modules with a Long short-term memory (LSTM) based release of Tesseract OCR, without ad hoc training, led to a 74% character-level accuracy of the extracted text. Further, we used the processed repository as baseline for a dedicated Image Retrieval system, for the immediate use and application for behavioral and prevention scientists. We discuss issues of Text Information Extraction and Retrieval that are particular to the screenshot image case and suggest important future work.

Motivation & Objective

  • To develop a scalable, end-to-end pipeline for extracting unstructured text from smartphone screenshots for behavioral and health research.
  • To assess the effectiveness of state-of-the-art OCR and image processing techniques on a novel, real-world dataset of mobile device screenshots.
  • To build a structured, searchable repository of screenshot data enriched with extracted text and metadata for longitudinal behavioral analysis.
  • To address challenges unique to screenshots, such as mixed fonts, icons, and embedded graphics, through optimized pre-processing and OCR workflows.
  • To create a vertically-searchable image retrieval system tailored to the needs of behavioral scientists and public health researchers.

Proposed method

  • Pre-processing screenshots using OpenCV-based modules to enhance image quality and isolate text regions.
  • Applying Tesseract OCR 4.0 with an LSTM-based line-recognition model for improved character and word recognition.
  • Integrating metadata (e.g., timestamp, device type) into a structured schema to enrich the extracted text.
  • Indexing the processed document collection using a custom inverted index for efficient text-based image retrieval.
  • Building a vertical search engine application that supports query-by-text and metadata filtering for rapid access to relevant screenshots.
  • Evaluating performance using character-level and word-level accuracy metrics on a ground-truth annotated dataset of 13,172 screenshots.

Experimental results

Research questions

  • RQ1Can state-of-the-art OCR and image processing techniques achieve high accuracy in extracting text from real-world smartphone screenshots with diverse layouts and fonts?
  • RQ2How does the integration of LSTM-based line recognition in Tesseract 4.0 improve OCR performance compared to earlier versions on screenshot data?
  • RQ3To what extent do image pre-processing steps enhance OCR accuracy in the presence of noise, icons, and mixed graphical content?
  • RQ4How do human errors in ground-truth transcription affect the evaluation of OCR accuracy, and what is their relative impact compared to technical limitations?
  • RQ5Can a dedicated image retrieval system built on extracted text and metadata effectively support behavioral science research on digital life experiences?

Key findings

  • The combination of OpenCV pre-processing and LSTM-based Tesseract 4.0 achieved a 74% character-level accuracy in text extraction from smartphone screenshots without ad hoc training.
  • Tesseract 4.0 outperformed Tesseract 3.03 in word and character recognition, with no significant difference in processing time, indicating improved efficiency and accuracy.
  • Human transcription errors in the ground-truth data contributed substantially to performance degradation, with correction improving accuracy by a magnitude similar to technical refinements.
  • Image pre-processing significantly reduced noise and improved localization of text regions, especially in complex layouts with icons and mixed backgrounds.
  • The retrieval system successfully enabled fast, text-based access to screenshots, demonstrating feasibility for use in behavioral and public health studies.
  • Future improvements should focus on fine-tuning OCR models for domain-specific fonts and user-specific text patterns, as well as reducing human involvement in ground-truth production.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.