Skip to main content
QUICK REVIEW

[Paper Review] Digitizing Historical Balance Sheet Data: A Practitioner's Guide

Sergio Correia, Stephan Luck|arXiv (Cornell University)|Mar 31, 2022
Stock Market Forecasting MethodsDecision Sciences40 references9 citations
TL;DR

This paper presents a practical, open-source framework—quipucamayoc—for accurately digitizing large-scale historical balance sheet data by combining OCR with pre- and post-processing techniques. By leveraging cloud-based OCR, layout analysis, spellchecking, and accounting identity validation, the method achieves high accuracy even with noisy scans, enabling cost-effective large-scale data extraction for economic historians.

ABSTRACT

This paper discusses how to successfully digitize large-scale historical micro-data by augmenting optical character recognition (OCR) engines with pre- and post-processing methods. Although OCR software has improved dramatically in recent years due to improvements in machine learning, off-the-shelf OCR applications still present high error rates which limit their applications for accurate extraction of structured information. Complementing OCR with additional methods can however dramatically increase its success rate, making it a powerful and cost-efficient tool for economic historians. This paper showcases these methods and explains why they are useful. We apply them against two large balance sheet datasets and introduce quipucamayoc, a Python package containing these methods in a unified framework.

Motivation & Objective

  • To address the challenge of extracting structured balance sheet data from historically scanned documents with high accuracy and low cost.
  • To reduce reliance on manual data entry by automating digitization through a modular, reusable pipeline.
  • To provide a practical, open-source solution that integrates established tools like OpenCV and cloud OCR (e.g., AWS Textract) for researchers with limited programming expertise.
  • To enable researchers to focus on domain-specific validation and error detection rather than low-level OCR management.
  • To demonstrate the method’s effectiveness on two large, diverse datasets: U.S. national bank reports (1867–1904) and German firm balance sheets (1915–1933).

Proposed method

  • Applying a data extraction pipeline with three core stages: pre-processing (image de-warping, contrast adjustment), OCR and layout recognition using commercial engines (e.g., Google Vision, AWS Textract), and post-processing with validation logic.
  • Using a spellchecker trained on financial terms to correct OCR errors in numerical and textual fields.
  • Leveraging accounting identities—such as balance sheet identities (assets = liabilities + equity)—to detect and correct structural inconsistencies in extracted data.
  • Implementing a human-in-the-loop validation step where researchers create a 'ground truth' dataset to benchmark and tune the pipeline’s accuracy.
  • Building a modular Python package, quipucamayoc, that encapsulates OCR integration, pre-processing, and validation logic with command-line and programmatic interfaces.
  • Using the package’s command-line tools (e.g., `quipu extract -tables`) to enable lightweight, script-free OCR processing for small-scale projects.

Experimental results

Research questions

  • RQ1How can OCR-based digitization of historical balance sheets be made both accurate and cost-effective at scale?
  • RQ2What pre- and post-processing techniques significantly improve OCR accuracy for structured financial data in low-quality scanned documents?
  • RQ3To what extent can accounting identities be used to validate and correct OCR output in balance sheet data?
  • RQ4Can a unified, open-source software framework reduce the technical barrier to entry for economic historians seeking to digitize historical micro-data?
  • RQ5How can researchers efficiently optimize OCR pipelines without writing custom OCR engines?

Key findings

  • Applying OCR with a 95% character accuracy rate to a table with 60 digits results in error rates exceeding 95%, highlighting the critical need for post-processing.
  • The combination of OCR with pre-processing, spellchecking, and accounting identity validation reduced error rates significantly, enabling reliable extraction from large datasets.
  • The quipucamayoc package successfully digitized over 100,000 U.S. national bank balance sheets from 1867–1904 and 30,000 German firm balance sheets from 1915–1933 with high accuracy.
  • The use of a human-validated ground truth allowed researchers to construct accuracy metrics and iteratively improve pipeline parameters.
  • Command-line tools in quipucamayoc enabled non-programmers to perform OCR and extract data without writing Python code.
  • The framework’s modular design allows researchers to start simple and scale complexity only as needed, avoiding premature optimization.

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.