AI Unveils the Secrets of Ancient Artifacts
Using Deep Learning and Image Processing to Restore and Preserve Artwork
When Carola-Bibiane Schönlieb started her Ph.D. studies in mathematics in 2005, one of her first projects was to help restore a medieval fresco in Vienna. Once hidden by the walls of an old apartment, the remains of the painting were pockmarked with white holes, damage from the removal of the walls a few years prior. Instead of paint, solvents, or resin, Schönlieb’s restoration tools were algorithms. “There were some conservators from the University of Vienna who had started physically restoring this,” says Schönlieb. “Then we got to doing this digitally.”
The MACH initiative combines the expertise of art historians, conservators, classicists, and medievalists with that of mathematicians to advance restoration and archaeology.
After taking photographs of the damaged fresco, Schönlieb researched algorithms that could use those photos to fill in the missing, damaged pieces of the painting, creating a digital mockup of what the original fresco could have looked like. At the time, there were just a handful of papers describing how mathematicians and conservators could work together to restore artwork. Conservators and art historians were just beginning to digitize their archives, preserving paintings, manuscripts, and pottery on machines.
Schönlieb, now professor of applied mathematics at the University of Cambridge, uses image analysis and processing for art restoration and conservation. Currently, she works with other mathematicians and humanities experts on the Mathematics for Applications in Cultural Heritage (MACH) initiative. The initiative combines the expertise of art historians, conservators, archaeologists, and medievalists with that of mathematicians to advance restoration and material culture studies.
In their current project, “Unveiling the Invisible,” the MACH team uses MATLAB® algorithms to catalogue Roman pottery, analyze paint cross-sections to allow scholars to see new relationships between artifacts, and digitally restore illuminated manuscripts too delicate for physical restoration. These three areas of project focus have been years in the making.
The MACH collaboration began in 2013, when Schönlieb gave a talk about digital image restoration at the university. Staff from Cambridge’s Fitzwilliam Museum, which features art from ancient times through the present, were in attendance. They thought that Schönlieb’s methods could be applied to their work.
The keeper of manuscripts and printed books at the Fitzwilliam Museum at the time had been pursuing noninvasive approaches for manuscript restoration when she heard Schönlieb’s image restoration talk. She approached Schönlieb and suggested they work together. That’s when the MACH project was born.
When confronted with damaged paintings and artifacts, conservators face a dilemma. While they have the option of restoring a piece to what it might have looked like in its original form, the damage itself can chronicle an object’s history. Illuminated manuscripts from the Middle Ages, for example, are handwritten books, written on parchment, with painted decoration that often includes precious metals such as gold or silver. In some cases, the manuscripts might have had paint intentionally removed or added to eliminate marks of ownership, or cover up an offensive image.
“Using virtual and mathematical methods allows you to keep the [illuminated manuscript] as it is and retain that history, and offers a restored, pristine version of what it might have looked like. It gives you the opportunity to have the best of both worlds.”Suzanne Reynolds, curator at the Fitzwilliam Museum
“What do we gain by restoring, and what do we lose by restoring?” asks Suzanne Reynolds, curator at the Fitzwilliam Museum in the Department of Manuscripts and Printed Books. Reynolds is a member of the MACH group and works with medieval illuminated manuscripts.
Illuminated manuscripts are especially problematic when it comes to restoration. They’re rarely physically restored compared with other forms of painting. Working with Reynolds, Schönlieb and Simone Parisotto, a research associate in Cambridge’s Department of Applied Mathematics and Theoretical Physics and the Fitzwilliam Museum, are developing an app to address these challenges in one arm of the larger “Unveiling the Invisible” project.
Designed for conservators and developed using MATLAB, the app uses image processing techniques to identify damage and virtually reconstruct the images in manuscripts. It relies on inpainting, a term that originally referred to physically reconstructing a painting. In mathematical circles, inpainting means digitally restoring images.
Using deep learning and partial differential equations, the MACH group’s program can fill in the blanks of a damaged manuscript and predict the results of different avenues of restoration. A user trains the algorithm with examples from the same or related manuscript(s)—the more the better—and the algorithm then reconstructs the missing contents of the image that needs to be restored.
“Using virtual and mathematical methods allows you to keep the object as it is and retain that history, and offers a restored, pristine version of what it might have looked like,” Reynolds says. “It gives you the opportunity to have the best of both worlds.”
In addition to restoration, mathematical methods can not only digitize archives, but also leverage artificial intelligence to make the archival data even more useful to conservators, art historians, and archaeologists.
Clustering Roman Pottery
The idea for the second focus of “Unveiling the Invisible” originated in 2015, when Alessandro Launaro, senior lecturer in classics at Cambridge, came to Schönlieb with a problem. An archaeologist, Launaro focuses on the Roman period and had been excavating sites in western Italy. As is almost invariably the case, he had found a great amount of commonware pottery, the kind used for day-to-day tasks like cooking, but faced the daunting task of analyzing several thousand pottery shapes, pieces of pot rims, and bases.
“I had an archaeological problem, the analysis of a great body of evidence,” says Launaro. Although there are systematic and comprehensive catalogues that help archaeologists analyze more refined classes of Roman pottery (fineware), nothing zeroed in on the day-to-day pottery he wanted to learn more about.
“Someone could just go through all these [pottery fragment] shapes, but that’s super tedious. And since we are human, we make mistakes, we are tired sometimes, and we might miss something. An algorithm will not tire.”Carola-Bibiane Schönlieb, professor of applied mathematics at the University of Cambridge
Commonware pottery, as the name suggests, accounts for a majority of pottery found at archeological sites. But given the very diverse shapes this pottery can take, and the sheer number of these finds, figuring out the relationships between different pottery types at different sites has been challenging.
“Because commonware represents everyday objects, it allows us to see a larger proportion of the ancient population than statues, mosaics, or the nice, painted pots in museums do,” Launaro says. Creating a catalogue to record these objects and their relationships to one another could offer further valuable insights into the daily life of past civilizations. “But that’s not something one person can easily do,” he says.
Schönlieb and Parisotto thought they could help Launaro address this problem. “Someone could just go through all these shapes, but that’s super tedious,” says Schönlieb. “And since we are human, we make mistakes, we are tired sometimes, and we might miss something. An algorithm will not tire.”
Parisotto and Schönlieb turned to MATLAB to create the catalogue that Launaro envisioned. In 2016, they piloted a system meant to match a drawing of a piece of pottery in profile to a similar image in a database. Archaeologists classify ancient pottery by their profile shape and think that similar shapes signify chronological as well as functional relationships.
But it didn’t work well. The reference pottery images weren’t well organized. The team needed to take a step back and do that organization themselves. “Given that it would’ve involved thousands of unique shapes of pottery, we needed to tap into the processing powers of a computer,” says Launaro.
To fill out and organize their own pottery database, the team has added thousands of images, black-and-white profiles of pieces of commonware. By the end of 2020, around 6,000 pottery profiles will be included. Parisotto is using unsupervised deep learning algorithms to group or cluster related pottery shapes. The program creates hierarchical dendrograms grouping the pottery shards to better show archaeologists the relationships between different types. “The idea is to extract the relevant features from the available objects,” says Parisotto, “and to find the relationships uniting different features.”
By determining the relationships between commonware types, archaeologists could better map their development and distribution over space and time. These relationships may then offer clues about important developments in trade, settlement patterns, or eating habits. The MACH group is still developing and testing the app, but, “the idea in the end is to create a tool that enables archaeologists to more effectively interpret the sites they excavate and study,” says Launaro.
Art Lessons from Paint Chips
Kasia Targonska-Hadzibabic, a research associate with the MACH team and physicist by training, is working on an “Unveiling the Invisible” subproject that draws on principles similar to the Roman pottery database. But instead of pottery, Targonska-Hadzibabic is working with Parisotto to build a platform for digital images of paint chip cross-sections that enables their sorting and comparison.
In art conservation, studying the cross-sections of small chips from a painting can reveal how the artist created the work. “It gives you information on the techniques the artist used, how the painting was painted,” says Targonska-Hadzibabic.
The MACH team is also creating a system that could identify connections between paint chip cross-sections from different paintings, artists, or periods in time to figure out what similarities could mean.
Traditionally, conservators take these cross-sections, preserve them in resin, and examine the different paint layers under a microscope. Up close, a resin-covered paint chip looks like a colorful, many-layered sandwich. Targonska-Hadzibabic’s colleague in art conservation had been digitizing his own archive of paint chip cross-sections and wanted to see what more, aside from an individual artist’s technique, these paint chips could reveal.
Targonska-Hadzibabic teamed up with Schönlieb to create a system that could identify connections between cross-sections from different paintings, artists, or periods in time. The layers in a cross-section aren’t uniform, and vary not just in color, but in texture, mixture, and consistency in shooting conditions. As with the Roman pottery project, the team is using machine learning techniques in MATLAB to cluster more than 10,000 digital images of cross-sections into meaningful groups based on their features.
According to Targonska-Hadzibabic, they’re not yet sure what these algorithms might reveal. “It’s an iterative process that relies on communication with conservators to find similarities important from the history of art perspective,” she says.
But with their resulting app, they hope that conservators will be able to compare layers in their source cross-section with similar patches in other cross-sections in the database. Not only will app users see these results, but Targonska-Hadzibabic is working to make sure the conservators can easily modify the results according to their needs, too.
In the Field
Feedback from archaeological, art conservation, and art historical experts has been crucial to guiding these projects. “Only experts can guide the people in data science in the correct path to follow,” says Parisotto.
MACH collaborators at the Fitzwilliam are just beginning to test these apps, but the goal is to publish these resources for all scholars and conservators, expanding their existing toolboxes. For Launaro, the commonware pottery reference catalogue will enable more detailed study of a previously overlooked side of archaeology.
According to Reynolds, not only could MACH’s digital manuscript restoration tool help conservators, but it could also expand options for teaching and public engagement. “There’s a hope that it will be very useful for teaching because it will enable you to work with images of objects at their best,” says Reynolds. The tool could also expand museums’ virtual offerings, showing the members of the public both the actual artifact and the digital “original.”
Targonska-Hadzibabic says that compiling a paint cross-section database that can identify connections between samples could help experts identify new painting methods and reveal previously unknown connections between artists and artworks.
None of these tools, however, will replace the work of humanities professionals. “There is a level of interpretation where you need a human being,” says Launaro. “But there are other things that would make our work so much easier and straightforward that a machine can achieve.”
Read Other Stories
Green Technology / Control Systems
Removing Millions of Tons of CO2 Emissions at Seaports Each Year
Electrifying Commercial Vehicles with Hydrogen Fuel Cells
STEM / Academia
Building a Future in STEM
High School Student Discovers There Is More to Coding than a Computer Screen
Professor Reengineers MATLAB Course Overnight in Response to COVID
Online and Interactive Tools Simplified the Move to Remote Learning