Making History Readable

Bipasha Banerjee, Jennifer Goyne, William A. IngramarXiv 2024 · DOI

TL;DR

Researchers at Virginia Tech have developed an AI-integrated pipeline to transform "unreadable" historical archives—ranging from 19th-century cursive letters to complex topographic maps—into searchable, machine-readable data. By combining AWS Textract with BERT-based error correction and Llama-3.1 for summarization, they are bridging the gap between fragile physical artifacts and modern digital accessibility.

What Problem Does This Paper Address?

Digital Library Platforms (DLPs) often house massive collections of historical documents that remain effectively "invisible" to search engines and researchers. Standard Optical Character Recognition (OCR) tools frequently fail when faced with:

  • Archaic Cursive: 1860s handwriting with irregular glyphs and faded ink.
  • Complex Layouts: Historical newspapers with multi-column formats, overlapping text, and embedded advertisements.
  • Non-linear Text: Topographic maps where text is oriented at arbitrary angles or follows curved geographical features like rivers.

These challenges lead to "noisy" data, poor indexing, and a lack of discoverability. The authors aim to build a scalable workflow that not only extracts text but also makes it understandable through modern summaries.

Methods

The authors implemented a multi-stage AI workflow to handle different document types:

  1. Text Extraction: They utilized AWS Textract to handle initial OCR and layout analysis. Textract provides "BlockType" tags (pages, lines, words) along with confidence scores.
  2. Contextual Error Correction: To fix OCR errors (e.g., misreading "hand" as "fund"), the team developed a pipeline using Google’s bert-large-uncased-whole-word-masking model. If a word's confidence score falls below a specific threshold, the model predicts the top three most probable words based on the surrounding sentence context to select a correction.
  3. Summarization: They employed Meta’s Llama-3.1-8B-Instruct to generate concise summaries of historical letters, simplifying archaic language for modern readers.
  4. Spatial Preprocessing for Maps: For topographic maps, the team applied a multi-angle rotation strategy. By rotating images at various angles before applying OCR, they significantly improved the extraction of text that follows non-rectilinear paths.
Fig. 4: Extracted text and corresponding summary from the Silas Stepp collection.

Datasets

The study focused on three distinct collections within the Virginia Tech University Libraries (VTUL):

  • Silas Stepp Letters: 4,070 items (414 MB) consisting of 1864 Civil War correspondence.
  • Montgomery Museum Newspapers: A massive 23 TB collection comprising 1.44 million items of historical regional news.
  • Digitized Topographic Maps: 12,178 items (3.87 TB) featuring complex series of paper maps.
TABLE I: Collection Description

Key Insights and Ideas

  • Confidence-Triggered Correction: Instead of blindly trusting OCR or manually correcting millions of pages, using confidence scores to trigger LLM-based "spell-checking" provides a scalable middle ground for data cleaning.
  • Layout Awareness is Crucial: For newspapers, the challenge isn't just reading the words, but understanding the order of columns. The authors highlight that traditional OCR struggles with the relative positioning of text in multi-column layouts.
  • Geometric Invariance: The "aha moment" for maps was realizing that standard OCR is optimized for left-to-right flow. By treating text extraction as a geometric problem (rotation and tiling), they could capture data that standard models missed.
Fig. 2: Layout analysis on a newspaper image

Key Results

The integration of these AI agents transformed previously static images into dynamic, searchable assets.

  • Handwriting: The system successfully mitigated errors in cursive extraction, as seen in the Silas Stepp collection where low-confidence words were flagged for contextual correction.
  • Summarization: Llama-3.1 provided clear, modern summaries of 19th-century letters, making them accessible to general users who might struggle with archaic phrasing.
  • Scalability: The workflow demonstrated the ability to handle massive datasets, such as the 23 TB newspaper collection, which would be impossible to process manually.

Limitations and Future Work

While the current results are promising, the authors identify several areas for improvement:

  • Map Tiling: For very large map files, the authors are developing an ensemble method that involves "tiling" (dividing maps into smaller segments) combined with rotation to meet file size requirements and improve accuracy.
  • Automated Metadata: The next step is to use AI to automatically generate rich, descriptive metadata (tags, categories, and dates) to further improve the organization and discoverability of the digital library.
  • Refining the Correction Pipeline: Further tuning of the confidence thresholds for BERT-based correction is needed to balance accuracy with computational overhead.
Fig. 3: A snapshot from the digitized maps collection

Summary updated

BibTeX
@misc{banerjee2024making,
  author = {Bipasha Banerjee and Jennifer Goyne and William A. Ingram},
  title = {{Making History Readable}},
  year = {2024},
  eprint = {2411.17600},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.17600},
}
Figure