Abstract
Accessing daily news content remains a significant challenge for people with print impairments, including the blind and those with low vision, due to the physical opacity of printed content and the accessibility hurdles of many online sources. In this paper, we present an approach for the digitization of print newspapers into an accessible file format such as HTML. We employ an ensemble of instance segmentation and detection frameworks for newspaper layout analysis, followed by Optical Character Recognition (OCR) to recognize text elements like headlines and body text. A key contribution of our work is the proposed EdgeMask loss function for the Mask R-CNN framework, designed to improve segmentation mask boundaries and the accuracy of downstream OCR tasks. Empirically, we demonstrate that our proposed loss function reduces the Word Error Rate (WER) of news article text by 32.5%.
Introduction
For individuals with visual impairments, the traditional print newspaper is a wall of inaccessible information. While digital news platforms exist, they are often "screen-reader hostile," cluttered with non-linear ad placements, pop-ups, and complex layouts that disrupt the reading experience. Digitizing physical newspapers offers a path to independence, but the dense, multi-column layouts of modern broadsheets present a unique challenge for standard computer vision systems.
The Challenge: Why Standard OCR Fails
While Optical Character Recognition (OCR) technology has matured, its success in complex documents depends entirely on the quality of the preceding layout analysis. In a dense newspaper column, standard segmentation models often suffer from minor geometric inaccuracies. The authors discovered that even a single-pixel shift in a segmentation boundary can "clip" the edges of characters. While this error is negligible for general object detection (e.g., identifying a car or a dog), it is catastrophic for OCR, rendering text unrecognizable and leading to nonsensical digitized output.
The Digitization Pipeline
To address these challenges, we developed an end-to-end pipeline that transforms raw newspaper images into structured, navigable text.
The process consists of three primary stages:
- Layout Analysis: A modified Mask R-CNN framework segments the page into high-level blocks, including text, headlines, advertisements, and images.
- Element Detection: A secondary Faster R-CNN model identifies specific sub-elements within those blocks, distinguishing between headlines and body text to preserve the article's hierarchy.
- OCR and Structuring: The system extracts text from the segmented regions and converts it into a structured HTML/Markdown format, including a table of contents for easy navigation via screen readers.
Innovation: The EdgeMask Loss Function
Standard segmentation models typically use a cross-entropy loss function that treats all pixels within a mask equally. For text digitization, however, the boundary pixels are far more critical than the interior ones. We proposed EdgeMask, a novel loss function that applies a higher weight ($\lambda$) to pixels at the mask's boundary. By forcing the model to prioritize "pixel-perfect" accuracy at the edges of text blocks, we ensure that characters are not clipped, significantly improving the reliability of the downstream OCR engine.
Dataset and Training
Training such a model requires high-quality labeled data, which is scarce for newspaper layouts. We utilized a dataset of 5,600 newspaper images and employed a "silver-standard" labeling approach. We manually labeled a small subset (100 images) to fine-tune an initial model, then used that model to predict labels for the remaining images. These predictions were then refined by intersecting them with bounding boxes generated by an OCR engine, creating a robust, large-scale training set without exhaustive manual labor.
Results and Impact
The implementation of the EdgeMask loss function yielded substantial improvements in text quality. Using an optimal boundary weight of $\lambda = 100$, the Word Error Rate (WER) dropped from 8.89% to 6.00%, representing a relative improvement of 32.5%. The Character Error Rate (CER) saw a similar decline, from 3.19% to 1.77%.
A critical insight from our testing is that standard metrics like "Intersection over Union" (IoU) can be deceptive. A model might achieve a near-perfect IoU of 0.99, yet if the missing 0.01 represents the left-hand edge of a text column, the resulting OCR will be unusable. Our approach shifts the focus from area overlap to edge precision, solving a linguistic problem through geometric refinement.
Conclusion and Future Directions
By combining deep learning with boundary-sensitive loss functions, we have created a viable path for making print media accessible to the print-impaired. Future work will focus on "stitching" multi-page articles together and implementing automated alt-text generation for images and data visualizations. Additionally, we aim to expand the system to support the multi-lingual and multi-script layouts common in Indian newspapers, further broadening the reach of accessible news.
Summary updated