How AI could reveal secrets of thousands of handwritten documents – from medieval manuscripts to hieroglyphics
Over the last ten years, researchers have gradually been working out how to teach computers to read handwritten documents. As in most machine learning, a computer is fed training data: in this case, images of handwriting and details of what it says. It then learns how the marks on each page correspond to letters. It learns that that half circle is a “c”, that that short vertical stroke is an “i” and that it might therefore be “rice” that you wrote on your shopping list, for example.
How it does this no one is quite sure – machine learning is often a black box. But it seems likely it is at least partly learning which characters are likely to occur in sequence, thus determining that you are unlikely to want to be shopping for “qvjx”, however much the word might look like that.
This technology has been applied to handwriting from many countries and periods, from medieval manuscripts to 19th-century diaries (if not yet 21st-century shopping lists), in languages from Latin to Old French to Hebrew.
Because the technology works on the basis of image analysis, it is in theory applicable to any writing whatsoever, from Egyptian hieroglyphs to copperplate. Ten years after its initial development, some truly exciting consequences of the development of handwritten text recognition (HTR) techniques are becoming clear.
AI’s archive applications
One is that it democratises access to knowledge. The digitisation of manuscripts has made many libraries’ collections accessible at the click of a button (cybercriminality notwithstanding). But lengthy training, only available in select universities, is still needed to read what they say (and some scripts, like Beneventan, have the power to make even postgraduates gnash their teeth).
HTR has the power to generate a tolerably accurate, machine-readable version of a manuscript at more or less the click of a button. If language is still a barrier for the user, that transcript can be subjected to machine translation and a workable English (or French, or Chinese) version given, side by side with the manuscript.
The sheer quantity of data these processes will make available has significant ramifications for scholarship. Many medieval manuscripts haven’t been read since the middle ages. In the past, major questions (like the date of composition of foundational works like Beowulf) have often been resolved with the tiniest fragments of data, such as a single spelling. We are now starting to look at answering such questions with data sets of tens of thousands of spellings: with HTR it will be hundreds of thousands, if not millions. And the answers we get will be different.
Beyond qwerty
The data HTR can generate is also richer. Over the past half millennium, the representation of medieval texts has been fundamentally constrained by the printing press and the computer keyboard.
![script of Beowulf](https://images.theconversation.com/files/562169/original/file-20231128-17-3s1iz3.jpg?ixlib=rb-1.1.0&q=45&auto=format&w=237&fit=clip)
Some medieval scribes use three different forms of “s”, but all have been transcribed as the familiar, snake-like “s” on a keyboard. Marks of punctuation, like the poor punctus elevatus (which looks something like an inverted semi-colon) have had to be modernised out of sight.
Because HTR is based on visual recognition technology, it can recognise any number of letter forms, not just the hundred or so on a qwerty keyboard, and reproduce them more accurately than a human who has become accustomed to copying all four forms of “s” as “s”.
Realising these potential applications for the earliest written English, from the period before 1150, is the goal of my new pilot project, Ansund, at Trinity College Dublin.
Ansund aims to use HTR to build an exhaustive, open-access digital corpus of Old English texts, that transcribes all surviving Old English for the first time, and in an unparalleled level of detail. We’re particularly excited to see how many new letter forms we discover and to gather the first, substantial data on word division in Old English (scribes did not always put spaces where we might expect).
Ansund is one of a number of initiatives at Trinity that aims to harness new technologies to increase access to manuscripts, including the Trinity Centre for the Book, which focuses on the history of writing and sharing of the book. Virtual Trinity Library has digitised over 60 manuscripts and launches this week with the Many Lives of Medieval Manuscripts Symposium.
The ethics and dangers of AI have received important attention over the past year, but its power to make legible and navigable our cultural heritage also deserves attention. Some day soon, it may even ensure you can decode your muddled shopping lists.
Mark Faulkner, Assistant Professor in Medieval Literature and Director, Trinity Centre for the Book, Trinity College Dublin
This article is republished from The Conversation under a Creative Commons license. Read the original article.
Stay in the loop.
Subscribe to our newsletter for a weekly update on the latest podcast, news, events, and jobs postings.