Skip to main content
QUICK REVIEW

[Paper Review] Neural Word Search in Historical Manuscript Collections

Tomas Wilkinson, Jonas Lindström|arXiv (Cornell University)|Dec 6, 2018
Handwritten Text Recognition TechniquesComputer Science78 references5 citations
TL;DR

This paper introduces Ctrl-F-Net, a deep learning model for segmentation-free query-by-string word spotting in historical manuscripts, which jointly generates region proposals and embeds them in a shared embedding space for efficient retrieval. Trained on only 11 pages, it enables large-scale historical research on over 100,000 pages, accelerating data collection by orders of magnitude and outperforming prior state-of-the-art methods on benchmark datasets.

ABSTRACT

We address the problem of segmenting and retrieving word images in collections of historical manuscripts given a text query. This is commonly referred to as "word spotting". To this end, we first propose an end-to-end trainable model based on deep neural networks that we dub Ctrl-F-Net. The model simultaneously generates region proposals and embeds them into a word embedding space, wherein a search is performed. We further introduce a simplified version called Ctrl-F-Mini. It is faster with similar performance, though it is limited to more easily segmented manuscripts. We evaluate both models on common benchmark datasets and surpass the previous state of the art. Finally, in collaboration with historians, we employ the Ctrl-F-Net to search within a large manuscript collection of over 100 thousand pages, written across two centuries. With only 11 training pages, we enable large scale data collection in manuscript-based historical research. This results in a speed up of data collection and the number of manuscripts processed by orders of magnitude. Given the time consuming manual work required to study old manuscripts in the humanities, quick and robust tools for word spotting has the potential to revolutionise domains like history, religion and language.

Motivation & Objective

  • To address the challenge of manually searching for specific words in large, handwritten historical manuscript collections, which is time-consuming and limits research scope.
  • To develop a scalable, deep learning-based solution for word spotting that does not require manual segmentation or transcription of individual words.
  • To enable historians to efficiently locate relevant textual fragments in uncurated, noisy manuscript collections using only a text query.
  • To demonstrate the feasibility of zero-shot retrieval for out-of-vocabulary words in historical scripts with limited training data.
  • To validate the method in real-world historical research by applying it to a large, unexplored manuscript collection of 64 volumes spanning two centuries.

Proposed method

  • The proposed Ctrl-F-Net model uses a deep convolutional neural network to simultaneously generate region proposals and embed them into a shared word embedding space for similarity-based retrieval.
  • Region proposals are generated using a Faster R-CNN-style backbone, followed by a shared embedding head that maps each region to a dense vector representation.
  • The model is trained end-to-end using a triplet loss with hard negative mining to ensure that relevant word regions are closer in embedding space than irrelevant ones.
  • A simplified version, Ctrl-F-Mini, is introduced for manuscripts with easier word segmentation, trading off some accuracy for significantly faster inference.
  • The model performs query-by-string retrieval by computing cosine similarity between the query embedding (generated from a text encoder) and the region embeddings.
  • The method is evaluated on standard benchmarks and applied to a real-world dataset of 100,000 pages from 18th–19th century court records, with only 11 training pages.

Experimental results

Research questions

  • RQ1Can a deep learning model perform accurate word spotting in historical manuscripts without requiring manual word segmentation or transcription?
  • RQ2How effective is the proposed end-to-end model in retrieving relevant word instances from large, uncurated manuscript collections using only a text query?
  • RQ3To what extent can a model generalize to out-of-vocabulary words when trained on a small number of pages?
  • RQ4How does the model perform on manuscripts with highly variable writing styles, faded ink, and complex layouts?
  • RQ5Can the model significantly accelerate historical research by enabling large-scale data collection from previously inaccessible manuscript collections?

Key findings

  • Ctrl-F-Net outperforms previous state-of-the-art methods on benchmark datasets, achieving a mean average precision (MAP) of 0.87 on the IAM dataset and surpassing prior SOTA on the Snevringe court records.
  • On the Snevringe dataset, the model achieved a precision of 0.70 at rank 1 and 0.68 at rank 10 for 10 queries, with higher performance on in-vocabulary words compared to out-of-vocabulary (OOV) words.
  • Despite being trained on only 11 pages, the model successfully retrieved relevant word instances in a 100,000-page manuscript collection, enabling data collection at orders of magnitude faster than manual methods.
  • The model demonstrated surprising robustness to OOV queries, with high precision for 'gifta' (married), suggesting effective zero-shot generalization despite limited training data.
  • Qualitative results show the model handles diverse writing styles, including Kurrent script, though it occasionally retrieves incorrect instances due to script overrepresentation in training data.
  • The ablation study confirmed that region proposal quality significantly impacts performance, leading to the design of the lighter Ctrl-F-Mini variant for faster inference on easily segmented manuscripts.

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.