The surprising failure of AI in book digitization

For a decade, the Ibteda Digital Library meticulously digitized rare Urdu books. This painstaking process involved manual page cropping in Photoshop, resulting in a dataset of 575,729 finished pages. When the library wound down, the author realized this vast archive represented a decade of implicit crop decisions. The goal: to leverage this data to automate the digitization process for future projects. The results, however, defied conventional wisdom in machine learning, demonstrating that more data, larger models, and higher resolution inputs were not the answer. Instead, a simple, human-driven approach proved superior.

The core challenge in digitizing books, particularly older or rare ones, is accurately cropping each page. This involves defining the precise boundaries of the text, accounting for variations in paper, binding, and printing. The Ibteda Digital Library's decade-long operation generated an unintentional goldmine of this data. Each of the 575,729 pages represented a manual decision by an operator on where to crop. The author successfully registered these geometric crop decisions back to the raw scanned images using SIFT and MAGSAC for initial alignment, creating a supervised dataset.

Why scaling and advanced models failed

The author's initial hypothesis likely mirrored common machine learning approaches: more data and more powerful models should yield better results. However, empirical evidence showed otherwise. Scaling the training set from 378 to 572 books did not improve the unseen-book performance metric, pass@80. This suggests that the existing dataset, even before reaching its full 575k page potential, already contained sufficient information to generalize, or that the nature of the problem was not purely data-hungry.

Further attempts involved standard machine learning techniques. Employing a ResNet-50 backbone, a common choice for image-related tasks, showed promise in fitting the training data but failed to translate to improved performance on unseen books. In fact, after calibration, its performance was worse. Increasing input resolution to 1024px and adding a spatial head—architectural modifications often used to capture finer details—also yielded no significant gains. These negative results are critical because they highlight a common pitfall: assuming that established ML paradigms will automatically solve every problem, especially those with unique real-world constraints.

The critical insight: Operator bias

The breakthrough came from analyzing the errors. The failures in the automated system were not random; they consistently manifested as near-constant offsets per volume. This pattern pointed directly to the operator's habitual cropping style. Each operator, over time, developed a preferred margin inset, a subtle but consistent bias in how they framed the text on the page. This wasn't a flaw in their work, but a personal style that, when learned by an algorithm, became a source of error when applied to books cropped by different operators or with different inherent page geometries.

The surprising detail here is not the failure of complex models, but the success of a simple heuristic derived from understanding human behavior. The manual process, while slow and labor-intensive, encoded subtle, domain-specific knowledge that generic AI models overlooked. The problem wasn't about recognizing complex patterns in the image itself, but about replicating a consistent, albeit manual, workflow.

The winning strategy: Ten clicks per book

The most effective solution emerged from this understanding of operator bias. Instead of relying on the 575k labels to train a fully automated system, the researchers found that a mere ten operator clicks per book were sufficient to achieve superior results. This approach likely involved annotating a few key points on a representative page or two within a volume. This minimal annotation, when used to learn the specific volume's cropping offset and style, allowed for highly accurate page cropping. It's akin to a human quickly glancing at a book and knowing exactly where the margins are, rather than trying to learn from thousands of examples of other people's margins.

This outcome presents a paradigm shift for automated digitization of historical documents. It suggests that for tasks where consistent, human-defined heuristics are dominant, a small amount of targeted annotation can outperform large, generalized datasets and complex models. The decade of manual work provided invaluable insight into the nature of the problem, but the solution didn't require replicating that entire decade of effort computationally. It required understanding the *essence* of the manual decision-making process.

The implication is that for certain digitization workflows, focusing on capturing the *operator's intent* with minimal input per document, rather than attempting to generalize across vast datasets, is a more efficient and effective strategy. This approach democratizes automation, making it accessible even when large, perfectly curated datasets are not available, and when the 'labels' are implicit, human preferences.

Illustrating manual page cropping in Photoshop for book digitization.

Broader implications for document digitization

This finding has significant implications beyond rare Urdu books. Many historical documents, manuscripts, and even modern documents have unique formatting, layout, and preservation challenges that manual operators have implicitly learned to handle over years. Traditional AI models, trained on generic datasets, often struggle with this variability. The success of the