Blog

“Bringing History to Life”: Animating Historical Portraits with Artificial Intelligence

by Cate Cleo Alexander, University of Toronto

It’s the hot new trend in the historic photo colourization community: AI generated movement.

Recently, content creators on platforms like YouTube have started to “bring history to life” by using AI programs to colourize, “modernize,” and animate portraits of historical figures. However, this technology often alters historical portraits to reinforce modern gender normativity and fetishization of whiteness — devaluing diversity and accuracy in digitally mediated public history in favour of a simulated intimacy with “attractive” bodies. I have documented this trend through my survey of four content creation teams: Royalty Now, Randomly Digest, Historicly, and Mystery Scoop.

“Colourization”

In the first stage of a “brought to life” style video, the image is colourized and/or enhanced. Content creators often automate this work with AI programs like Gradient. The labelling of these images as simply “colourized” or “enhanced” obscures the true amount of modification.


Screenshots of an AI “enhanced portrait” from Mystery Scoop video “Historical Figures Brought To Life (King Henry VIII, Catherine Howard, Queen Mary I, Verdi, Tesla)”

The screenshots above show the before and after of an AI-enhanced portrait of a “Southern Belle” from a Mystery Scoop video. The subtle differences are made more noticeable through the animated GIF below.

GIF created by Cate Cleo Alexander

Note how the eyes shift upwards, the hairline changes, the shadow under the chin deepens, the cheekbones sharpen, and the highlights and shadows of the face increase in contrast. This is not so much digital restoration as a digital facelift.

Sometimes the changes are less subtle. Historicly, Mystery Scoop, and Randomly Digest all use AI to add makeup to female-presenting subjects. These makeovers range from subtle eyelash extensions and lipstick to a dramatic smoky eye. Often, the content creators who post these images seem unaware or uncaring of the physical limitations of makeup: noses and faces are slimmed, cheekbones change location, eyes are enlarged, and — most problematically — skin is whitened.


Screenshots of an AI “colourized” Alexandra Feodorovna from Historicly’s video “Romanov Family – 10 Striking Photos From Romanov’s Last Ball – Brought to Life”

“Modernization”

One of the most insidious implications of this content is that in order to be “modern” and “relatable,” historical figures must be proximate to Western ideals of beauty. One prominent example of this comes from videos featuring the portrait of a once-known woman who is referred to as “Mestiza de Sangley,” an antiquated term for someone of Chinese and Filipino descent. In their video, Randomly Digest posits: “What if she lived today? Loose interpretations with modern make up and hairstyle.” The AI generated image is barely recognizable. The woman’s face shape, cheekbones, lips, hairline, and body positioning are all shifted, bringing her in closer proximity to gender normative and white supremacist ideals of beauty.

Screenshot of an AI-generated “modernized” woman from Randomly Digest’s video “Mestiza de Sangley, 1875, Brought To Life”

Animation 

After “colourization” and “modernization,” the final stage of a “brought to life” video is animated movement. Through AI tools like Deep Nostalgia, these uncanny personages tilt their heads, look around, blink, and smile.

Unlike the other channels, RoyaltyNow manually creates portraits and conducts research to make their recreations as accurate as possible. In the example below, RoyaltyNow recreated Mary Queen of Scots through studying her death mask, other portraits, and contemporary descriptions. However, after all that meticulous work, the image was fed into AI animation software — thus distorting the image.

Screenshot from RoyaltyNow video showing their original recreation of Mary, Queen of Scots


Screenshot from RoyaltyNow video showing how the recreation has been distorted after being fed into the AI animation program

These AIs homogenise, flatten, and contrast features based on the racialized and gendered norms established by their training data. Yet, because the YouTube algorithm rewards posting frequently,[1] content creators are pressured to speed up their workflows with AI automation in order to remain algorithmically visible. Staying on trend is also key to maintaining an audience, which likely influenced RoyaltyNow’s decision to use AI animation. After all, it’s clear that audiences react to this content.

YouTube and Public History

At the time of this writing, the four channels that I reviewed have a combined total of 186,939,185 views.[2] The comment sections are filled with emotional reactions — viewers report tearing up, feeling “moved” or “emotional,” and having chills or goosebumps. As one comment stated, “Who else got chills and a tear in their eye when the Grand Duchess Romanova ‘came to life’? Honestly, when she began to smile and move her eyes around I just got so emotional.”

In her book on queer archives, Ann Cvekovitch describes “the quest for history as a psychic need.”  More and more, people are turning to the Internet to fulfil their thirst for learning about the past. There is a desire to create affective intimacy with these historical figures. However, these AI algorithms are creating this intimacy by contorting and distorting these images, creating the false impression that gender expression is immutable and positioning “modernity” and “relatability” alongside whiteness. Given the substantial impact of this content, this uncanny new practice in digital public history must be investigated further.

 

Endnotes

[1] Probably; it’s tricky to figure out how YouTube’s algorithms work. However, because there’s a lot of algorithmic gossip that frequency is rewarded (see examples 1, 2, and 3), many creators will strive for frequent uploads.

[2] Historicly – 12,260,968 total views; RoyaltyNow – 42,618,816 total views; Mystery Scoop – 130,354,670 total views; Randomly Digest – 1,704,731 total views. Numbers obtained from About section on YouTube Channels, August 27, 2024.

The Digital Humanities Hub has a new look!

Dawn Kanter, Rachel Lewis and Chrissie Willis-Phillips [Digital Humanities Officer, Research Development Manager and Associate Director (Scholarship and Planning), DH Hub team] and Jo Stace [Designer, Creative & Print Services] discuss how we arrived at this new visual identity.

Dawn Kanter (DK): The Hub team first embarked on this branding project with three aims in mind. We wanted to help colleagues to recognise the Digital Humanities Hub; to tie the various things that the Hub is involved in (such as events, presentations and resources) together; and to tie ourselves more closely to the Library, where we are based.

After meeting with the Creative & Print Services team, we put together a list of keywords that could inform the imagery in our branding. These included ‘Digital Humanities’, ‘Arts and Humanities’, ‘Digital Technology’, ‘Interdisciplinarity’, ‘Research Innovation’, ‘Collaborative Research’, ‘Open Research’… I didn’t think that it would be easy to come up with designs based on these quite abstract terms! We were all very excited when we saw the initial concepts.

Jo Stace (JS): From the initial brief I knew that I wanted to create a graphical identifier – something that’s not exactly a logo, but that can be used to identify the Hub. It needed to be something that gave a sense of what the Hub does, but that also looked visually pleasing. This bespoke graphic could then be used across various materials to create a visual identity. I also thought it was important to find imagery that could be used by the Hub to give the feeling of data and digital technology. This process started with a search of our stock image library.

Additionally, some elements of the design needed to follow particular guidelines. The typography needed to fit within University branding, and the colours needed to come from the Library ‘rainbow’ branding to create a link between the Hub and the Library.

 

Left: UoR Library Lockup (reads 'University of Reading Library'. Right: UoR Library rainbow block

UoR Library branding

 

JS: With all this in mind I developed three initial concepts:

Concept 1 – Analogue to Digital: This took the idea of going from an analogue form to a digital form. I wanted to represent this with lines that start off ‘hand drawn’, then move into a precise digital shape which forms a circuitry graphic.

Concept 2 – Network and Nodes: For this concept I wanted to play on the idea of connection, both in terms of the Hub connecting people and their work, and the idea of data connection and digitalisation.

Concept 3 – Pixel Patterns: This third concept looked at using basic shapes to represent pixels (again focusing on the digital element of the Hub’s work), but creating a flow with the shapes to reflect the human nature of data.

 

Three concepts for graphical identifiers for the DH Hub

 

DK: The Network and Nodes concept was a favourite with the Hub team.

Rachel Lewis (RL): From the beginning, the Hub’s role has been as a focal point that connects lots of different people and teams. This design represents who we are and what we do.

DK: We also enjoyed the relationship between the Pixel Patterns and the Library’s rainbow block. So we asked Jo if we could proceed with both concepts (2. Network and Nodes and 3. Pixel Patterns).

JS: Once the two options had been chosen, I wanted to develop imagery to fit with the graphical element. It became clear that the images from the stock library were too dark for this project and sometimes too generic.

DK: We wanted to strike the right balance between specific (e.g. images of 3D-modelled objects or text markup) and general (e.g. abstract representations of technology).

JS: I felt that a more bespoke graphic was needed. Starting with stock images, I was able to manipulate these and introduce the Library colours. I then had a graphic that I could use across multiple assets, and which the Hub team could use to create a visual link between their work.

Custom imagery for the DH Hub

 

DK: This imagery that Jo designed matches the concept of ‘Hub’ or ‘Network and Nodes’ in the graphical identifier.

RL: It also has the look and feel of the output of social network analysis, so it ties in with DH research as a theme too.

DK: Looking at the graphics alongside the imagery, the Hub team chose to move forward with this Network and Nodes concept.

JS: From this point I was able to use mock-ups of how the visual identity would work on pull-up banners, leaflets, web banners and presentations.

 

Banner reads: 'Digital Humanities Hub' 'Enabling research innovation by providing sustainable support for Digital Humanities'     
Mock-ups of a pull-up banner and web banner

 

DK: It was very exciting for the Hub team to see these mock-ups. Some of the designs also included a new idea: a handwritten text element (alongside the Network and Nodes motif), which reminded us of some of the primary sources that Digital Humanists might be using.

 

Leaflet reads: 'Digital Humanities Hub' 'Enabling research innovation by providing sustainable support for Digital Humanities'   
Left: Mock-up of a leaflet. Right: Zoom-in on handwritten text element in background

 

RL: I really liked the idea of including primary sources, and I suggested (as did Sue Egleton, University Librarian) using a manuscript from our own collections for this purpose – highlighting both the richness of our Special Collections and the Hub’s relationship with UMASCS (University Museums and Special Collections).

DK: Caroline Gould, UMASCS’ Principal Archivist, suggested a few different manuscripts that we might use. Taking into account its appearance, content, and rights restrictions, we chose this one, from (the Ancient Roman Stoic philosopher) Seneca’s Epistolae Morales ad Lucilium (Moral Letters to Lucilius). The manuscript was produced in Italy (or South Germany?), c.1475.

Including this in the branding was not straightforward! It initially took me some time to find the part of the text which is about joy (letter 27) as opposed to the part which is about death (letter 26). There is also a scribal error in the text itself, which we wanted to avoid. Many thanks to Rachel Mairs (Professor of Classics and Middle Eastern Studies) for reviewing the below.

 


Website banner incorporating the manuscript leaf

‘
Manuscript leaf from Seneca (Epistolae Morales ad Lucilium), in Latin, produced in Italy (or South Germany?), c.1475 reference MS 5650/23, European Manuscripts Collections, Special Collections, University of Reading (detail)

‘Cast about rather for some good which will abide. But there can be no such good except as the soul discovers it for itself within itself. Virtue alone affords everlasting and peace-giving joy; even if some obstacle arise, it is but like an intervening cloud, which floats beneath the sun but never prevails against it. When will it be your lot to attain this joy? Thus far, you have indeed not been sluggish, but you must quicken your pace. Much toil remains; to confront it, you must yourself lavish all your waking hours, and all your efforts, if you wish the result to be accomplished. This matter cannot be delegated to someone else.’ Translation by Richard M. Gummere

 

DK: The branding exercise also prompted the Hub team to re-examine our tagline. We settled on ‘Enabling research innovation by providing sustainable support for Digital Humanities’. ‘Enabling research innovation’ is the motivation that underpins all that the Hub does, while ‘sustainable support’ means (to me) support that is integrated and embedded. For example, members of the Hub team are involved in the grant development process and in decisions about digital infrastructure.

RL: One of the strands of the original DH Hub setup project was about sustainability, so we’ve built a sustainable service from the start. Enabling sustainable research is key to everything that Robert Darby and Guy Baxter, in the Hub team, do around data preservation and storage, and that we all do around ensuring that research projects are planned and conducted in a way that enables the research and outputs to be accessible long term.

Chrissie Willis-Phillips (CWP): It was important, also, that this tagline aligned well with the aims and ethos of the Library, and both enabling research innovation and sustainability are strategic goals that fit with the Library’s mission to support research and teaching by providing services that reach all communities at the University. The tagline and the overall work of the DH Hub also contributes to the University’s strategic aim to achieve excellence and sustainability. The production and promotion of innovative, open, and reproducible research is a key element of achieving this aim.

DK: The branding exercise prompted other kinds of reflections on the Hub and its work too.

RL: I was blown away when I first saw the Hub branding on the postcards and I felt a little bubble of pride for the whole team! We have worked together on the DH Hub project over the last three years (and a lot of work prior to that!) and it is amazing to see this representation of all the work we’ve done to get from having no formal DH support to a cohesive and productive team. Huge thanks to everyone in the team, especially Roberta Gilchrist for having the initial vision, and continuing to drive the project forward.

DK: We are thrilled to have updated our website with the new branding, and look forward to using it at the events we run, in the presentations we give, and in the resources that we produce.

It has been a great experience working with Jo and Creative & Print Services on this. Thank you, Jo, Sue, Caroline, Rachel, and all our colleagues who contributed!

 

Postcard (front) reads: 'Digital Humanities Hub' 'Enabling research innovation by providing sustainable support for Digital Humanities'    Postcard (back)
Printed and ready-to-use DH Hub postcard

Banner reads: 'Digital Humanities Hub' 'Enabling research innovation by providing sustainable support for Digital Humanities' 'research.reading.ac.uk/digitalhumanities'
Printed and ready-to-use DH Hub banner

A Chaucer AI Co-Pilot? Reflections on the Implications of LLMs for Learning about Medieval Texts and Beyond

by Sophie Whittle, Digital Humanities Institute, University of Sheffield

 

Introduction

In June, I had the pleasure of attending the inaugural DH and AI conference at Reading. Since then, I have been reflecting on AI’s implications for higher education, as well as wider communities.

I began investigating Large Language Models (LLMs) as part of the C21 Editions team, including AI’s ability to produce a prototype digital teaching edition of Chaucer.[1] The initial aim of the project sought to explore the capabilities of machine-assisted technology more broadly, merging the curatorial and statistical aspects of historical editing.[2]

From 2023 onwards, we wanted to gauge whether LLMs could reliably interpret historical textual traditions and produce engaging digital teaching resources. The aim was to maintain traditional aspects of editing, including diplomatic transcriptions, detailed annotation of the text and essays on scholarly interpretations, while improving the efficiency of the editorial process and meeting students’ expectations of interactivity.

DALL-E 3 creation via Microsoft Bing Copilot. Prompt: Generate an image of Chaucer as an AI robot in the twenty first century, including some medieval elements into his design (28 August 2024).

 

Why Chaucer and The Pardoner’s Prologue & Tale?

Geoffrey Chaucer, the author of the 14th Century text, The Canterbury Tales, was named ‘the father of English poetry’ by John Dryden in 1700. Yet, recent criticism of Chaucer suggests his texts promote hegemony via upholding white, patriarchal values (e.g. see recent evidence about Chaucer’s lawsuit, which initially prompted discussion about possible sexual assault).

Sarah Baechle and Carissa Harris make the interesting point that the ethical questions raised by Chaucer’s inclusion on the university curriculum lead to a deeper critique of historical attitudes to consent, race, and societal binaries and categories.[3] Ruth Evans also draws attention to expanding and shifting conversation within Chaucer studies, through modern criticism, adaptation, and reparation.[4] For instance, Chaucer’s Wife of Bath has been adapted for the stage through Zadie Smith’s Jamaican-born and British Wife of Willesden.

The Pardoner from the Ellesmere manuscript of The Canterbury Tales. Public domain.

The fluidity of the Pardoner’s desires has sparked interest in his representation of medieval queerness, despite strict Catholic opinion against ‘sodomy’.[5] Students and teachers in our focus groups frequently stated that learning about Chaucer and his texts led to further research on global medieval literature, racism in the Middle Ages, and gender and sexuality as a spectrum. How, then, does AI fare when prompting its interpretation of medieval texts, in ways that address the history of Chaucer’s reception?

 

Benefits and Limitations of AI for Interpreting Chaucer’s Texts

LLMs such as OpenAI’s ChatGPT could only provide surface level summarisation and description, as might be expected given the age of medieval literature. Without significant editorial intervention, and additional guidance from open access data such as Wikipedia, outputs were sparse and the overall process of prompting sufficient responses slow. Below is a recent example output from the prompt, ‘Summarise the theme of gender and sexuality, as well as gender fluidity, queerness, and masculinity, in Chaucer’s Pardoner’s Prologue and Tale, to a university level standard with references.’

 

2. Gender Fluidity and Queerness

The Pardoner’s self-presentation and ambiguous identity play with ideas of gender fluidity and queerness. Throughout his prologue, the Pardoner appears to relish his liminal status, and his description, behavior, and performance can be seen as a critique of the rigid gender roles of his time. As an individual who occupies a space between established categories of male and female, the Pardoner embodies a form of gender fluidity that resists traditional binaries.

Moreover, the Pardoner’s association with relics and his role as a religious figure allow him to blur the lines between the sacred and the profane. His very profession involves deception and manipulation, which parallels his fluidity of identity. This sense of indeterminacy is further emphasized by his admission of deceit in selling indulgences: he is a performer who knows how to manipulate appearances to his advantage, much like how he manipulates his own identity.

The Pardoner’s queerness can also be seen in his relationships with other pilgrims. His close association with the Summoner, another morally ambiguous figure in the Tales, has led some critics to suggest a homoerotic subtext. The Pardoner’s own words at the end of his prologue – inviting the pilgrims to kiss his relics or the “bones” – carry a sense of homoerotic double entendre (Rigby, The Pardoner’s Tale and Gendered Power).

 

3. Masculinity

The Pardoner’s character also interrogates medieval constructions of masculinity. In his ambiguous gender presentation and his rejection of traditional masculine roles, he becomes a figure who challenges the conventional ideal of the male Christian pilgrim. The Pardoner’s narrative voice in his prologue is marked by a conscious subversion of these ideals: he mocks the idea of piety and openly confesses to exploiting the gullibility of his audience for personal gain.

Furthermore, his tale, which is a moral narrative about three rioters who meet their end due to their greed, can be read as a commentary on masculine excess. The rioters represent unchecked masculine aggression, gluttony, and a pursuit of power – vices that lead to their destruction. In this sense, the Pardoner’s tale becomes a critique of the very ideals of masculinity that he himself eschews.

 

References:

    • Chaucer, Geoffrey. The Canterbury Tales. Edited by Jill Mann, Penguin Books, 2005.
    • Dinshaw, Carolyn. Getting Medieval: Sexualities and Communities, Pre- and Postmodern. Duke University Press, 1999.
    • Rigby, Stephen H. “The Pardoner’s Tale and Gendered Power.” Chaucer and Gender, ed. Elaine Tuttle Hansen, Oxford University Press, 1992.

Extracts of the output from the publicly available ChatGPT-4o, on the gender and sexuality of the Pardoner (28 August 2024).

 

Interestingly, the response draws on recent notions within queer theory, explaining that the Pardoner’s desires challenge ‘rigid gender norms’ of medieval society, with his perceived ‘sinful’ actions at odds with church beliefs. However, there are several issues with the output, as it 1) refers to an irrelevant relationship with the Summoner pilgrim (it does not feature in The Pardoner’s Tale); 2) does not acknowledge the Pardoner’s tension with the Host, crucially reflecting hypermasculinity; and 3) the few references were published not later than 2005. There is also little accuracy in the referencing of these sources – for instance, Hansen’s book is actually named Chaucer and the Fictions of Gender (within which Rigby’s work does not feature), and an entire edition of The Canterbury Tales is used as secondary research, without clearly stated page numbers. Lastly, the output sentence, ‘His very profession involves deception and manipulation, which parallels his fluidity of identity’ does not provide the required amount of nuance about medieval sin and society, which appears in recent academic scholarship. There must be more analysis of the perception of ‘sin’ and ‘deviance’ in medieval society as deception and manipulation, which, to a modern reader, might be more concretely associated with his selling of false relics. From the output, a user might assume that the LLM is associating queerness and fluidity with ‘sin’ as a contemporary perspective, rather than specifying that this is a historical perception. There is a lot of recent scholarship celebrating the Pardoner’s queer identity, his ability to outsmart the other pilgrims and his audiences, and the reclamation of power when he challenges the Host, which is not evident from the output. These contemporary themes attract students’ attention today, and these linguistic nuances have real implications for their learning of the medieval period.

 

What are the Implications for Teaching and Beyond?

As institutions are beginning to communicate, GenAI outputs must be unravelled further by students. In particular, AI use must be paired with knowledge from well-informed teachers, alongside authoritative secondary research. These outputs may be suitable for overviews of medieval tales, but they must be investigated for their suitability and trustworthiness. Baechle and Harris also suggest that, to avoid ‘deifying’ popular medieval writers such as Chaucer, students must be equipped to interrogate historical attitudes.[6] The same goes for examining Chaucer’s literature through AI tools.

 

Images of the prototype interface for The Pardoner’s Prologue and Tale, by the C21 Editions project. The first is the main landing page, and the second is one of the discussion boards for students to comment on aspects of the edition.

The screenshots above present our current prototype. Alongside interactive aspects, we have included activities and discussion boards for further interrogation of, and collaboration on, Chaucer’s works and the AI technology used in the edition. These activities are crucial for embedding critical perspectives of AI into learning, which must occur alongside guidance of its implications on society more widely.[7]

I end this post with some of these societal implications. As Bender et al. note, these models often encode hegemonic views, resulting in outputs that have the potential for misuse by society.[8] The anthropomorphism of AI – the images of humanoid AI robots completing everyday tasks, like the image of ‘AI Chaucer’ above – leads to the belief that LLMs have the capacity for human ‘intelligence’. The creation of departmental resources to improve critical AI literacy, such as Rutgers’ AI Council living document, equips teachers with the practical and ethical implications so they can make informed decisions about its risks. It is these approaches that must be embedded into university learning of all disciplines, particularly for engaging and sparking interest in Chaucer studies.

 

[1] The C21 Editions project was generously funded by UKRI-AHRC and the Irish Research Council under the UK- Ireland Collaboration in the Digital Humanities Research Grants (grant numbers AH/ W001489/1 and IRC/W001489/1). The collaboration is between the Digital Humanities Institute (University of Sheffield), the University of Glasgow, and the Department of Digital Humanities at University College Cork.

[2] Katherine Bode’s discussion on bridging the curatorial and statistical aspects of DH studies can be found at: https://critinq.wordpress.com/2019/04/02/computational-literary-studies-participant-forum-responses-day-2-3/

[3] See: Baechle, Sarah, and Carissa M. Harris. ‘The Ethical Challenge of Chaucerian Scholarship in the Twenty-First Century’. The Chaucer Review 56, no. 4 (2021): 311–21.

[4] See: Evans, Ruth. ‘On Not Being Chaucer’. Studies in the Age of Chaucer 44, no. 1 (2022): 2–26.

[5] See: Dhouib, Mohamed Karim. ‘De/Stabilizing Heterosexuality in the Pardoner’s Tale’. International Journal of Language and Literary Studies 3, no. 4 (5 December 2021): 154–66.

[6] Baechle, Sarah, and Carissa M. Harris. ‘The Ethical Challenge of Chaucerian Scholarship in the Twenty-First Century’. The Chaucer Review 56, no. 4 (2021), p. 318.

[7] A more in-depth analysis of AI in pedagogical contexts can be found on ‘The AI Hype Wall of Shame’, by Katie Conrad and Lauren M. E. Goodlad.

[8] Bender, Emily M. et al. ‘On the Dangers of Stochastic Parrots: Can Language Models Be Too Big? 🦜’. In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, p. 616.

Developing AI-based Agents for Automating Linguistic Research Workflows: Fine-tuning Corpus Annotators as an Example

by Abdulrahman A. A. Alsayed
University of St Andrews, United Kingdom; King Faisal University, Saudi Arabia

Recent strides in generative AI development and the emerging abilities of pre-trained models (Wei et al., 2022) hold significant potential to automate tasks and alleviate hurdles in research workflows. Research teams can explore utilizing AI-based agents that they train to help delegate various components of the research pipeline. Developing these agents involves a process of fine-tuning a general-purpose foundation model to power them with the capability of handling specialized research tasks and to work autonomously. Such agents have proven effective in assisting with the reduction of demands in labor-intensive tasks in general, both within research contexts and beyond (Turow, 2024; Cheng et al., 2024 for an overview).

Concept art generated with Stable Diffusion. Prompt: ‘a central AI bot depicted with a marker in hand busily working with a volume of spreadsheets’

Linguistic work based on empirical studies of corpora often requires highly annotated datasets tagged with specialized linguistic information, which can prove to be labor-intensive to produce manually depending on a project’s scale. In my current project, code named CEERR (the Communicative Events Extended Reality Repository), I seek to establish a platform for documenting and analyzing the natural syntax of spoken language in modern varieties produced within immersive spatial environments. One of the aims of developing this platform is to achieve seamlessly incorporation of linguistic corpus tools, AI APIs, and virtual reality (VR) immersive experiences used as visual stimuli for speakers into one ecosystem. The project’s motivation is to enhance language documentation methods to fully capture communication environments and facilitate collaboration between speech communities and language experts in simulated virtual fieldwork settings. One of the project’s important outputs is the production of high-quality annotated datasets with audiovisual samples for low-resource language varieties that have seen little documentation work. Alsayed (2023) provides an overview of the project’s proof-of-concept and its data collection methodology.

A participant responding to visual stimuli during virtual reality-mediated linguistic fieldwork

Audiovisual corpora of spoken language and corpora of low-resource languages are especially challenging to compile into abstractable datasets. Audiovisual corpora are inherently data-rich and encapsulate textual, auditory, and visual modalities. Low-resource languages inherently lack reference corpora and dictionaries that can facilitate their annotation. Combined, creating and annotating these types of datasets can be a significant bottleneck, especially when large-scale annotation work is required. One technique I explored to alleviate the hurdle in textual annotation was fine-tuning large language models (LLMs) to tag text with linguistic annotations (Naveed et al., 2023 for an overview of fine-tuning techniques). The fine-tuning process involves prompt engineering system instructions, utilizing in-context learning, and preparing demonstration datasets tailored to the desired tasks throughout the project’s stages. The emerging classification abilities of LLMs make them excellent candidates for training as linguistic annotators of corpora through these fine-tuning techniques.

In August 2023, manual annotation work on a sample documented in the CEERR project resulted in the creation of a prototype system to assist with the automated linguistic tagging of further documented samples. The prototype features LLM functionality powered by the LangChain framework, and a graphical user interface built with the PyQt5 library. The system is built to be compatible with various LLM APIs and incorporates fine-tuning instructions and demonstration datasets customizable for different annotation needs. The system can be further configured to allow for model selection, hyperparameter adjustment, and tag set additions as required. Users can feed corpora into the system manually or through file upload, and the generated completion output is displayed through a text editor with options to export the data in multiple formats compatible with a variety of spreadsheet and corpus editing software.

Rows include: Token (e.g. الوان), Transliteration (e.g. alwan), Translation (e.g. colors), Form (e.g. N), Visual (e.g. SC3SQ05), Referent (e.g. R3: Notepad and Crayon (7))
Dataset annotations displayed in the EXMARaLDA Partitur Editor

The prompts for the system instructions were engineered iteratively based on the project’s prototype corpus and initial tests of the annotation instructions. The instructions assign the task required from the agent, provide it with the desired annotation tags, and specify the output format. The instructions underwent testing with multiple LLM models and hyperparameter configurations to engineer prompts that generated satisfactory annotations. Following prompt engineering, a demonstration dataset of the desired completions was manually created to further fine-tune the LLM models through few-shot learning. Few-shot learning helps mitigate hallucination-related errors in the tagged completion. Each model’s performance after the fine-tuning process was evaluated, and the best-performing model was selected as the system’s default. A human-in-the-loop approach was also employed to manually correct the generated annotations and ensure accuracy.

On the visual side, an ongoing component of the project is exploring the use of computer vision (CV) for detecting the objects that speakers see in virtual environments. This technique is useful for determining what visual elements were part of the speaker’s immersive experiences at any given time, and time-aligning visual stimuli with speech production. This mapping of visual input and linguistic output offers a record of the spatiotemporal setting that the speaker was experiencing at each moment of speech to assist in mitigating the ephemerality of the communicative setting.

Adding annotations to the dataset informed by visual input starts with identifying all the objects contained in a stimulus virtual environment (a scene) and the actions they were involved in (a sequence). Since the environments are replicated and used across multiple speakers, utilizing CV to acquire information about the visual elements in a scene is useful to resolve the bottleneck of manually detecting these objects in the visual captures of each individual participant’s VR feed. Currently, the identified objects are used in LabelBox as terms in a custom ontology and labeled in a sample feed through a bounding box interface to be used with CV models that have custom ontology capabilities. A future step in the project is to explore how multi-agent systems can enable linguistic and visual annotator agents to work simultaneously together to provide time-aligned visual/linguistic annotations while exchanging information that aids in each agent’s tasks.

A website interface with multiple panels including a selectable list of annotation terms and their codenames (SC1(3) Accordion, for example), a video player with video control buttons, and a video timeline with a movable frame marker.
LabelBox computer vision custom ontology and annotation interface

We have only started to explore the potential of integrating generative AI-based agents into linguistic research. As highlighted in this post, this integration shows promise for documenting and processing audiovisual corpora and low-resource spoken languages. This line of enquiry still holds significant potential for improving the efficiency and quality of research outputs in the field and remains largely unexplored.

 

Alsayed, A. A. A. (2023). Extended reality language research: Data sources, taxonomy and the documentation of embodied corpora. Modern Languages Open, Digital Modern Languages Special Collection. Liverpool University Press. https://modernlanguagesopen.org/articles/10.3828/mlo.v0i0.441 (Retrieved December 20th, 2023).

Cheng, Y., Zhang, C., Zhang, Z., Meng, X., Hong, S., Li, W., et al. (2024). Exploring large language model-based intelligent agents: Definitions, methods, and prospects. ArXiv Preprint. https://arxiv.org/abs/2401.03428 (Retrieved May 29th, 2024).

Naveed, H., Khan, A. U., Qiu, S., Saqib, M., Anwar, S., Usman, M., et al. (2023). A comprehensive overview of large language models. ArXiv Preprint. https://doi.org/10.48550/arXiv.2307.06435 (Retrieved January 15th, 2024).

Turow, J. (2024, June 5). The rise of AI agent infrastructure. Madrona. https://www.madrona.com/the-rise-of-ai-agent-infrastructure/ (Retrieved June 9th, 2024).

Wei, J., Tay, Y., Bommasani, R., Raffel, C., Zoph, B., Borgeaud, S., et al. (2022). Emergent abilities of large language models. ArXiv Preprint. https://doi.org/10.48550/arXiv.2206.07682 (Retrieved May 29th, 2024).

AI as a Cataloguing Aid? Towards a Workflow for Cultural Heritage Accessibility and Engagement

by José Pedro Sousa
Centre for Theatre Studies, University of Lisbon / Library Services, Imperial College London

Introduction

Archival research is a gateway to the past, offering invaluable insights into history, culture, and society. However, the path to accessing these treasures is often obstructed by various challenges, from ambiguous catalogue descriptions to difficulties in reading historical handwriting. While these obstacles are well documented, the focus of this discussion shifts towards the innovative solutions that are beginning to emerge, particularly in the realm of AI-driven cataloguing.

Inaccessible handwriting. Contract ref. code PT-ADLSB-NOT-CNLSB3-001-001-00113 ff. 93-94v, National Archive Torre do Tombo (Portugal)

 1. Critically Embracing Technology: Transkribus and the Archives

The advancement of Handwritten Text Recognition (HTR) technology has opened new possibilities for improving access to archival records. A prime example of this is Transkribus, a tool that has gained significant attention for its ability to transcribe historical manuscripts (see Milioni 2020; Nockels et al 2022). Melissa Terras (2022), though acknowledging the benefits of the tool for libraries and archives, also forewarns for the necessity of using it critically. Terras mentions the need for 1) “ensuring a plurality of voices” (2022: 142) to be digitised and transcribed, 2) planning “how HTR can become embedded into existing digitisation and information workflows” (2022: 142) and 3) establishing standards for data handling and “openly publishing datasets” (2022: 143).

2. Methodology: Engaging Stakeholders for Effective Implementation

Integrating HTR technology into archival workflows also requires a deep understanding of the needs and concerns of those involved. To this end, I conducted fieldwork and interviews with professionals across several institutions, including university libraries, archives, and national libraries. The goal was to explore the feasibility of using HTR as a cataloguing aid and to understand how it could be effectively implemented.

The research focused on five key areas: cataloguing, collections management, digitisation, conservation, and digital archives management. Through this process, it became clear that a collaborative approach is essential. By bringing together heads of collections, archivists, cataloguers, conservators, and digitisation specialists, we can develop a workflow that not only improves efficiency but also ensures that the integrity and accessibility of archival records are maintained.

 3. Workflow: A Collaborative Approach to AI-Driven Cataloguing Aid

Based on the insights gained from fieldwork and interviews, I proposed a comprehensive workflow for incorporating HTR technology into the cataloguing process. This workflow begins with the careful selection of a collection or corpus of documents to be catalogued, considering issues such as linguistic and cultural representativeness and subject matter diversity and inclusion. This selection must be followed by an assessment of the stability of the documents. Once the collection/corpus is chosen the process can begin. At this point, even physical proximity between the storage area, cataloguing office, and digitisation studio was recommended. While conducting this research, I contributed to the UCL-V&A Chinese Export Watercolour project, directed by Jin Gao, where these conditions were met, making the whole process much more agile (see Gao et al 2023).

If an item is deemed stable, it proceeds to the digitisation phase, where it is transcribed using HTR technology. If the item is unstable, it will be kept in the conservation studio to be stabilised for digitisation.

The resulting digital transcription is then used to enrich the metadata, providing additional context and facilitating easier access to the content. The use of HTR might not only accelerate cataloguing workflow but also enhances the quality of the information available to the public.

4. Outcomes: Enhancing Accessibility and Engagement

The integration of HTR technology into archival cataloguing offers several significant benefits. One of the most impactful is the improvement in accessibility. Digitised and transcribed records can be accessed by a wider audience, including people with disabilities, the elderly, and those with limited financial resources. This democratization of knowledge is a crucial step towards making archival materials more inclusive.

Moreover, the use of crowdsourcing in the transcription process can further enhance accuracy while fostering community engagement. By involving the public in the digitisation and transcription efforts, archives can attract new audiences and strengthen ties with their communities.

 5. Limitations and Future Directions

While the potential of HTR technology is promising, it is not without its challenges. The current workflow relies on existing language models, which may introduce bias if not carefully managed. Future projects should consider the development of specific models tailored to diverse and inclusive collections. Additionally, the process requires a strategic allocation of human and financial resources to ensure its sustainability.

Another critical next step is the empirical evaluation of the proposed workflow. Implementing a trial period with a sample corpus will provide valuable insights into the effectiveness and efficiency of the process, allowing for adjustments and improvements before wider adoption.

Conclusion

The integration of AI-driven tools like Transkribus into archival cataloguing is a significant step forward in addressing the accessibility challenges that have long plagued researchers. By fostering collaboration among archival professionals and embracing innovative technologies, we can begin to unlock the full potential of our shared history. While there are still challenges to overcome, the path ahead is one of exciting possibilities for enhancing access to archival records and making them available to a broader, more diverse audience.

AI-generated image in Bing 19-08-2024
Prompt: archivist lady holding a tablet, digitisation officer, books conservator, special collections manager and Artificial Intelligence looking at an old manuscript, in a medieval archive with modern technology such as holograms, a cute and friendly robot, high tech digitisation machine

Bibliography

Gao, J., Zhang, Y.,  Wang, L., Li, Y., Li, F., Chang, S., Liu, J. (2023) “Unveiling the V&A Chinese Export Watercolours (CEW) Collection: A Journey of Digitisation and Discovery”. Available at: https://blogs.ucl.ac.uk/dis-blog/2023/09/08/cew/ (accessed: 9-8-2024)

Milioni, N. (2020) Automatic Transcription of Historical Documents. Transkribus as a Tool for Libraries, Archives and Scholars. MA dissertation, Uppsala Universitet. Available at: https://www.diva-portal.org/smash/get/diva2:1437985/FULLTEXT01.pdf (accessed: 9-8-2024).

Nockels, J., Gooding, P., Ames, S. and Terras, M. (2022) “Understanding the application of handwritten text recognition technology in heritage contexts: a systematic review of Transkribus in published research”, Archival Science, 22, pp. 367-392.
doi: https://doi.org/10.1007/s10502-022-09397-0 (accessed: 9-8-2024).

Terras, M. (2022) “The role of the library when computers can read: Critically adopting Handwritten Text Recognition (HTR) technologies to support research” in Wheatley, A. and Hervieux, S. (eds), The Rise of AI: Implications and Applications of Artificial Intelligence in Academic Libraries. Atlanta: ACRL – Association of College & Research Libraries, pp. 137-148. Available at: https://www.research.ed.ac.uk/en/publications/the-role-of-the-library-when-computers-can-read-critically-adopti (accessed: 9-8-2024)

 

The Illusion of Knowledge: Interpreting Generative AI Hallucinations in the Study of Humanities and the Black Box of LLMs

by Amina El Ganadi and Federico Ruozzi

The Phenomenon of AI Hallucinations

As Artificial Intelligence (AI) technologies, particularly Large Language Models (LLMs), become increasingly integrated into humanities research, a new challenge has emerged: AI hallucinations. These hallucinations occur because LLMs like GPT-4 generate text by predicting the next word based on patterns learned from vast amounts of data. While this process often produces convincing and contextually appropriate responses, it can also lead to content that, although linguistically sound, lacks a factual basis. This is particularly problematic in academic and research contexts, where accuracy, trustworthiness, and reliability are paramount.

The Black Box of LLMs

Large Language Models like ChatGPT operate as “black boxes,” meaning their decision-making processes are not transparent or easily interpretable. This opacity poses challenges in understanding why a model makes certain decisions or predictions, making it difficult to diagnose errors, biases, or failures in the model’s performance. The “black box” nature of LLMs complicates efforts to correct or prevent inaccuracies, as it is difficult to trace the root cause of these hallucinations.

Figure 1: Visual Metaphor for AI Complexity — A Creative Depiction of the LLM “Black Box” in a Timeless Library (Generated using DALL-E).

Impact on Humanities Research

In the humanities, where the interpretation of texts, cultural artifacts, and historical documents demands deep contextual understanding, Generative AI hallucinations can have significant and far-reaching consequences. Some AI models are also designed to generate creative outputs, even when faced with ambiguous or poorly defined input. While this creative flexibility can be valuable in certain contexts, it can also result in errors or hallucinations, such as fabricating quotes from non-existent books or generating fictitious details beyond its training data. For example, in Islamic studies, an AI might inadvertently produce misleading interpretations of Qur’anic verses or Ahadith (corpus of sayings, actions, and approvals attributed to the Prophet Muḥammad), potentially distorting their intended meanings. Given the critical role of Ahadith as the second key source of Islamic jurisprudence after the Qur’an, ensuring the accuracy of AI-generated responses is vital, as even minor inaccuracies can lead to profound implications[1].

AI Limitations in Processing Non-Latin Scripts

AI’s difficulties with non-Latin Scripts, such as Chinese and Arabic, add another layer of complexity to its use in the humanities. Languages like Arabic and Chinese have scripts that are significantly different from the Latin alphabet. Most LLMs are predominantly trained on English data, which can result in difficulties when processing and generating text in Arabic and Chinese. Misinterpretations caused by these linguistic challenges can lead to significant cultural and scholarly inaccuracies. For instance, in one case, DALL-E, an AI model for image generation, produced a fictitious image with nonsensical text, claiming it to be a graphic visualization of Surat al-Fatiha (Fig. 2), the first chapter (sura) of the Qur’an. This highlights the potential for errors in culturally sensitive contexts. Similarly, a faulty representation of Chinese characters can be seen in Fig. 3.

The generated image is accompanied by a message: 'Here is the updated image of an ancient Islamic manuscript with the Arabic text of Surah Al-Fatiha on the left page and its English translation on the right page. The manuscript is presented with elegant calligraphy, reflecting its historical and cultural significance.'
Figure 2: AI-Induced Misrepresentation — Faulty Depiction of Islamic Scripture by DALL-E
The generated image is accompanied by a message: 'Here is the minimalist design of the phrase “数字图书馆” (digital library) with clean lines on a plain background, emphasizing clarity and straightforward access to information. If you need further adjustments or have more requests, feel free to ask!'
Figure 3: AI-Induced Misrepresentation — Faulty Depiction of the phrase “数字图书馆” (digital library) by DALL-E

Case Study: Generative AI in Islamic Studies and Librarianship

Figure 4: The AI Librarian “Amin al-Maktaba” (Generated using DALL-E).

A practical example of how Generative AI can aid humanities research is seen in our recent project, where we developed a custom Generative AI model using OpenAI’s GPT architecture. This model, fine-tuned specifically for Islamic studies, helps with understanding, classifying, and cataloguing Islamic texts[2]. It also offers insights into Islamic principles and practices. Our project tested the Generative AI model in a new role — as an expert AI librarian (“Amin al-Maktaba” / “AI-Maktabi”). The main goals were to evaluate ChatGPT’s ability to grasp the complexities of Islamic studies and its effectiveness in organizing a large collection of Islamic literature. The AI model, well-versed in Islamic law, theology, philosophy, and history, seamlessly integrates complex Islamic scholarship with accessible digital tools within the framework of the Digital Maktaba project.

Challenges of AI Hallucinations in Scholarly Research

Despite its strengths, the model exhibits notable limitations, including occasional hallucinations. The reasoning behind the model’s decisions can be opaque, complicating efforts to assess its accuracy comprehensively. Additionally, the model sometimes lacked the cultural and contextual nuances that human experts inherently possess, vital for accurate categorization and interpretation of Islamic scholarship. For instance, it may create categories that deviate from accepted classifications within Islamic studies, fabricate quotes from non-existent sources, or generate fictitious details, potentially leading to the dissemination of misleading information if not carefully monitored.

AI hallucinations present a significant challenge in integrating generative AI into the humanities. The illusion of knowledge created by these models can lead to misinformation and errors in academic research. Understanding the “black box” nature of LLMs and rigorously implementing strategies to mitigate hallucinations are crucial steps towards making AI a reliable tool for scholars and researchers.

Despite advances in AI technology, human oversight remains indispensable, especially in fields requiring deep cultural and contextual understanding. AI models, regardless of their sophistication, lack the nuanced insights that human scholars bring to the table. Thus, fostering collaboration between AI systems and human experts is essential to validate and refine AI-generated content, ensuring it meets the rigorous standards of academic research.

As AI technology evolves, our strategies for ensuring its outputs are accurate, reliable, and trustworthy must also progress. This reflects a continual commitment to enhancing the intersection of technology and the humanities, ensuring that AI serves as a valuable complement to human expertise rather than a replacement.

 

Acknowledgements

This project is supported by the PNRR project Italian Strengthening of Esfri RI Resilience (ITSERR), funded by the European Union – NextGenerationEU (CUP). The ITSERR project is committed to enhancing the capabilities of the RESILIENCE infrastructure, positioning it as a leading platform for religious studies research.

 

[1] Aftar, S., et al. (2024). “A novel methodology for topic identification in Hadith.” In Proceedings of the 20th Conference on Information and Research science Connecting to Digital and Library science (formerly the Italian Research Conference on Digital Libraries), 2024.

[2] El Ganadi, A., et al. (2023). “Bridging Islamic knowledge and AI: Inquiring ChatGPT on possible categorizations for an Islamic digital library.” In Proceedings of the 2nd Workshop on Artificial Intelligence for Cultural Heritage (IAI4CH 2023). CEUR Workshop Proceedings, Vol. 3536, pp. 21-33.

 

Classifying Portable Antiquities with AI

by Mark McKerracher, Abhishek Dutta, Megan Gooch, Helena Hamerow, Horace Lee, Michael Lewis and Andrew Zisserman

The British Museum holds millions of objects spanning millennia of human history. But it also curates a unique and precious resource that is purely digital and freely accessible online: the database of the Portable Antiquities Scheme, which contains records of more than 1.5 million artefacts – primarily those discovered by metal detecting enthusiasts.

Metal detecting – as lovingly mocked in the BBC sitcom Detectorists – is a hugely popular pastime in the UK. There are some 20,000 metal-detectorists regularly discovering things like coins and dress accessories, from various periods of British history and prehistory, in ploughed fields across the country.

Metal detecting in progress
Metal detecting is an increasingly popular pastime in the UK (Wikimedia image under Creative Commons attribution licence).

From its inception in 1997, the Portable Antiquities Scheme (PAS) has been encouraging detectorists in England and Wales to report their finds for recording in a central database (maintained by the British Museum in partnership with Amgueddfa Cymru) so that the unique informative potential of these artefacts can be fully realised – both in professional and academic research and by amateur enthusiasts. Photographs and metadata are collected and entered into the database by both expert professionals – a national network of 40 locally-based Finds Liaison Officers, supported by National Advisers – and also trained volunteers and interns.

This data entry is no mean feat, considering the vast array of object types – from any and all periods of British history and prehistory – that fall within the purview of the PAS. From golden Bronze Age cups to Victorian pennies, from Roman rings to early medieval strap ends, it is unrealistic and unfair to expect any individual to acquire the detailed expertise needed to accurately identify all conceivable finds, let alone to describe them in consistent specialist language, and to apply ever-more-detailed classifications and sub-classifications. This difficulty will only grow as the monumental PAS dataset grows every year; and the increasing potential for inaccuracies or inconsistencies could make it harder for the archaeological community to use the PAS as a research resource.

Golden Bronze Age cup
The Bronze Age ‘Ringlemere cup’ in the PAS database – legally declared Treasure (Image: British Museum, under CC-BY 4.0 licence).

An assistive AI tool which can ‘look at’ a photograph of a new artefact and find visually similar items for comparison (and perhaps even suggest pre-populated metadata) could therefore be a boon for the PAS network and its users – both metal-detecting enthusiasts and professional archaeologists – by improving the efficiency, efficacy and accuracy of data entry, and by enhancing the research utility of the database.

The AntiquAI project, a collaboration between the University of Oxford and the Portable Antiquities Scheme, aims to create such a tool: harnessing the latest developments in image-recognition technology and applying them to the PAS dataset.

AntiquAI is currently in a pilot, proof-of-concept phase, exploring the potential of PAS image recognition. The Visual Geometry Group (VGG) in Oxford’s Department of Engineering Science – research leaders in the field of computer vision – are developing the project’s software. Among the software currently under development by the VGG is WISE: an open-source image search engine, drawing upon recent advances in vision-language models to enable flexible searching of image content using natural language, and/or visual search terms (i.e. new images).

The VGG have created an instance of WISE indexed on a very large, representative subset of PAS images and metadata, representing over 700,000 objects (thanks to Stephen Moon at the British Museum for sharing this invaluable resource). This prototype now allows us to successfully search PAS records – with or without reference to object metadata – using natural language terms, such as ‘gold ring with writing on’.

Screenshot of searching the PAS image set using the term 'gold ring with writing on'
Searching the PAS image set with natural language terms (Image: AntiquAI project/VGG; constituent images: Portable Antiquities Scheme under CC-BY 4.0 licence).

AntiquAI’s instance of WISE can also take an image as a search term. Here, for instance, we have used a photograph of a medieval posy ring (downloaded from the British Museum website, and previously unseen by WISE) as a search term, and WISE has found visually similar objects.

Screenshot of searching the PAS image set using an image of a posy ring
Searching the PAS image set with a new image (Image: AntiquAI project/VGG; constituent images: Portable Antiquities Scheme under CC-BY 4.0 licence).

So far, WISE’s understanding of natural language terms is largely generic, trained on non-specialist image-word pairings gleaned from the web. As a result, it cannot necessarily ‘speak archaeology’. It understands what a gold ring is, for example, but struggles with an anthropomorphic medieval strap end. The VGG is now working on training WISE to understand specialist archaeological terms. If successful, we shall be a significant step closer to achieving AntiquAI’s ultimate goal: the AI-assisted classification of metal-detector finds.

With thanks to the Finds Liaison Officers, volunteers and all staff and contributors to the PAS, without whom the AntiquAI project would be impossible.

Diaries from the Digital Humanities & Artificial Intelligence Conference

As we continue with our DH & AI guest blog series, we cast our minds back to the DH & AI conference in June.

With three strands – cultural heritage, ethics and synthetic media – the conference explored the rich intersections between Digital Humanities and Artificial Intelligence.

Here’s what our organising committee and delegates had to say about the day.

 

Mara Oliva

Read Mara’s biography on page 40 of our conference programme
Read Mara’s abstract on page 27 of our conference programme
Read Mara’s reflections on the conference on our Connecting Research blog

 

Dominic Lees

Read Dominic’s biography on page 5 of our conference programme

 

Dawn Kanter

Read Dawn’s biography on page 5 of our conference programme

 

José Pedro Sousa

Read José Pedro’s biography on page 33 of our conference programme
Read José Pedro’s abstract on page 17 of our conference programme

 

Drew Thomas

Read Drew’s biography on page 42 of our conference programme
Read Drew’s abstract on page 31 of our conference programme
Read Drew’s post in our DH & AI blog series

 

Jon Weinbren

Read Jon’s biography on page 36 of our conference programme
Read Jon’s abstract on page 21 of our conference programme

 

Read Abdulrahman’s biography on page 42 of our conference programme
Read Abdulrahman’s abstract on page 31 of our conference programme

 

Giles Bergel

Read Giles’s biography on page 39 of our conference programme
Read Giles’s abstract on page 26 of our conference programme
Read Giles’s post in our DH & AI blog series

 

Sophie Whittle

Read Sophie’s biography on page 41 of our conference programme
Read Sophie’s abstract on page 29 of our conference programme

Harnessing AI to Classify Early Modern Bible Illustrations

by Drew Thomas, University College Dublin

Biblia: das ist die gantze heilige schrifft Deudsch (Wittenberg: Hans Lufft, 1541), f. CCCI. Berlin State Library, Biblia sacra fol. 33b.

The Protestant Reformation was Europe’s first mass media event, marked by the rapid spread of printed materials. Protestants and Catholics used images to convey powerful messages, often sparking controversy. For instance, Martin Luther’s famous 1522 translation of the New Testament into German included woodcut illustrations of the Apocalypse featuring the papal tiara, which enraged Catholics. In response, Catholics placed the papal tiara on the head of God the Father in their depictions. This clash underscores the significance of images in religious and polemical discourse during the Reformation.

Fast forward to the digital age, where historians are now exploring ways to study these types of images at scale. The “Visualizing Faith: Print, Piety and Propaganda” project at University College Dublin uses AI to investigate how visual media was used in the Reformation.[1] This blog post looks into using large language models (LLMs) to generate descriptions of early modern Bible illustrations. We will examine a case study involving Luther’s first German translation of the complete Bible, which contains 117 woodcut illustrations, and explore how AI can help classify these images efficiently and accurately.

 

The Foundation: Ornamento Project

The foundation of this research lies in the Ornamento project, a collaboration with myself and Professor Sandy Wilkinson at University College Dublin.[2] In this project, we used a convolutional neural network (CNN) to identify pages of early modern books with illustrations or ornamentation. We then employed the image-matching software VISE from the Oxford Visual Geometry Group to group repeat instances.[3] This effort resulted in a corpus of 5.7 million items, providing a substantial dataset for further analysis.

 

The Challenge: Generating Descriptions

As a preliminary case study, I focused on the 1534 Luther Bible, which features 117 unique woodcut illustrations. A digital copy of this book is available from the Berlin State Library.[4] To assign classifications to these illustrations, I needed accurate descriptions. I gathered ground truth data from Carl C. Christensen’s study, “Luther and the Woodcuts to the 1534 Bible,” published in the Lutheran Quarterly.[5] This study provided detailed captions of the illustrations, serving as a benchmark for evaluating the AI-generated descriptions.

 

Leveraging GPT-4o

Using the OpenAI API, I employed GPT-4o to generate 1-2 sentence descriptions of the illustrations. I conducted this process twice: once with just the illustrations and once with the full pages from the Bible. The results were telling. When using the full pages, the descriptions were significantly more accurate compared to using just the cropped illustrations.

Here is an example output for the illustration depicting the story of Jonah: “The woodcut illustration depicts the biblical scene of Jonah being cast into the sea before being swallowed by the great fish, as described in the Book of Jonah. The image shows Jonah being thrown overboard from a ship amidst a stormy sea, with the large fish waiting to swallow him below.”

AI-generated description: "The woodcut illustration depicts the biblical scene of Jonah being cast into the sea before being swallowed by the great fish, as described in the Book of Jonah. The image shows Jonah being thrown overboard from a ship amidst a stormy sea, with the large fish waiting to swallow him below."
Biblia das ist die gantze heilige schrifft Deudsch (Wittenberg: Hans Lufft, 1534), f. XXXV. Berlin State Library, 4″ Bu 9402.

The LLM’s ability to read the old German page headings, chapter numbers, and some surrounding text — all in 16th-century gothic type — allowed it to make more informed decisions. For example, when generating descriptions from cropped images alone, 50 out of 117 descriptions were incorrect. In contrast, when using the full pages, only 4 descriptions were inaccurate. This stark difference highlights the importance of context in accurately interpreting and describing historical illustrations.

 

Overcoming Challenges

While the use of GPT-4o proved beneficial, several challenges remain. Multi-illustration pages pose a problem when using the full pages as inputs. Separate descriptions must be generated for each image. Printers also reused some illustrations to represent different scenes. In these cases, the context provided by the surrounding text was crucial for accurate identification. Additionally, running titles across the headers of two pages sometimes led to confusion, as the LLM might not accurately identify the book. Lastly, it was common at this time for illustrations to depict more than one scene, with one in the foreground and others in the background, complicating the classification process.

 

Looking Forward: Studying Images at Scale

This project demonstrates the potential of AI to study historical images at scale, offering a promising avenue for historians. By leveraging advanced language models and contextual information, we can enhance our understanding of early modern illustrations and their roles in shaping historical narratives.

The implications of this research extend beyond the Luther Bible. It opens up possibilities for analysing vast collections of historical images, identifying patterns, and uncovering new insights. As we continue to refine these methods, we move closer to a future where AI can assist historians in tackling large-scale projects that were previously unimaginable.

 

Biography

Drew Thomas is a Science Foundation Ireland – Irish Research Council Pathway Fellow in the School of History at University College Dublin. Specialising in early modern material culture, he investigates the history of communication during the Protestant Reformation. Currently, he leads the digital humanities project ‘Visualizing Faith: Print, Piety and Propaganda’, using artificial intelligence to investigate the use of visual media by Catholics and Protestants during the Reformation. He received his Bachelor’s degree from Saint Louis University (2010), Master’s degree from Harvard University (2012) and a PhD in History from the University of St Andrews (2018). He is the author of The Industry of Evangelism: Printing for the Reformation in Martin Luther’s Wittenberg (Brill, 2022).

 

[1] Funded by the Science Foundation Ireland – Irish Research Council Pathway Programme

[2] Alexander S. Wilkinson, ‘Ornamento Europe: Towards an Atlas of the Visual Geography of the Renaissance Book’, in Arthur der Weduwen and Malcolm Walsby (eds.) The Book World of Early Modern Europe (Leiden: Brill, 2022), pp. 547-562.

[3] Abhishek Dutta, Relja Arandjelović, and Andrew Zisserman. 2021. VGG Image Search Engine. Retrieved 15 July 2024 from https://www.robots.ox.ac.uk/~vgg/software/vise/

[4] Biblia das ist die gantze Heilige Schrifft Deudsch (Wittenberg: Hans Lufft, 1524). Staatsbibliothek zu Berlin, 4″ Bu 9402.

[5] Carl C. Christensen. “Luther and the Woodcuts to the 1534 Bible.” Lutheran Quarterly 19, no. 4 (Winter 2005): 392–413.

AI and Visual Page Design: a Study of Dante’s Commedia in Print

by Professor Guyda Armstrong, Dr Giles Bergel and Dr Rebecca Bowen

‘Envisioning Dante, c. 1472-c. 1630: Seeing and Reading the Early Printed Page’ (ENVDANTE) offers the first in-depth study of the material features of the early printed page for almost the entire corpus of prints (1472-1629) of Dante’s ‘Comedy’, using cutting-edge machine learning computational technologies and image-matching in addition to book-historical, literary and art-historical approaches. A collaboration between the universities of Manchester and Oxford, it brings together the collections of early printed books at the John Rylands library in Manchester; the Visual Geometry Group, a leading visual AI research group at Oxford; and scholars in Italian studies, book and art history in both institutions. It commenced in 2023 by digitising the Dante collection at the Rylands, by far the most comprehensive in the UK and scarcely rivalled elsewhere, including almost all extant editions from the beginning of printing in Europe. The editions range from sumptuous folios to plain-text editions for the mainstream educated readership: many of the early copies are hand-decorated: some are annotated with corrections, comments or marks of ownership and of use.

While the body of scholarship on Dante’s text is immense, as to a lesser extent is that on the illustrations, scant attention has been paid to the printed editions as an assembly of discrete elements on the page, or what we would now call ‘graphic design’. Whereas the text of the poem is consistent and uniform, printers adopted a variety of approaches to its rendition. Sometimes these were conscious choices, involving the commissioning of new artwork or commentary, or formal innovations such as the addition of indexes or title-pages. At other times, printers simply inherited stylistic conventions or physical materials such as woodblocks, or else made their best guess as to readers’ expectations and what the market would bear. A panoply of compromises, expediencies and hacks forms a vital part of all presswork, in which the text may be a given, but its setting out on the page is far from fixed.

This project aims to disentangle the conscious choices, inherited materials and forms of labour that together make up the book as printed and decorated by hand. It employs several forms of computer vision, all profoundly influenced by general developments within machine learning and related technologies over the past few decades, including several that are, revealingly, not generally considered to be ‘AI’. As important as algorithms are manual annotation and the use of Library metadata, based on decades of curatorial work in the same way as contemporary machine-learning models rely on vast pools of manual labour in training and evaluation. The project strives for transparency, and will be releasing images, metadata, annotations and downstream trained models as part of a set of outputs that will additionally include journal articles, a digital exhibition and the books themselves, digitised and enriched with the project’s own findings.

The project began with a pilot exercise in 2018 that aimed to test the potential of generic segmentation models based on deep learning for page layout analysis. These experiments continued in earnest in 2023, following the award of funding and the arrival of two postdoctoral research assistants, Rebecca Bowen and Gloria Moorman who have been working with Giles Bergel and colleagues at VGG (prominently, David Pinto, Prasanna Sridhar, Guanqi Zhang and Andrew Zisserman) to create training data and to validate the results of machine segmentation. Results so far are encouraging: the model (Mask-RCNN pretrained on COCO) has been augmented to detect such prominent (and relatively consistent) features as initial capitals, illustrations, running titles and the text of the poem itself with a good degree of accuracy. Where the model struggles (such as with irregular or small features) this may draw our attention to those page-elements that are historically unstable, or to design improvisations that are more occasional than typical. As digital humanists, we view such findings as equal to high scores for standard precision and recall evaluations.

A page of an early printed edition of Dante annotated with boxes labelled with the parts of the page to which they belong, such as ‘Illustration’, ‘Running Title’ and ‘Text’.

Alongside page layout analysis, the project is also performing image-matching on the books’ visual elements – their illustrations, ornaments or large initial capitals. This work package utilises VGG’s VISE software, used by several other book-historical projects, to match impressions derived from individual printing surfaces – woodblocks or metal plates: showing the industrial logic behind book production, it can reveal hidden relationships between printers renting their presses or sharing materials. We also plan to ‘collate’ copies of the same edition to uncover stop-press corrections and other copy-specific features and have already profitably experimented with VGG’s Image Compare tool.

While the digital analysis is the project’s focus, using both so-called ‘classical’ computer vision and more modern methods employing deep learning, the research directs our attention back to the books themselves, in search of the human agencies behind their production, ownership and use. By looking at books with machine vision, we hope not to replace but to enhance the human eye – AI as augmented as much as artificial intelligence.

Envisioning Dante is funded until 2025 by the Arts and Humanities Research Council (AH/W005220/1)