JANUARY 2, 2026POST BY: TEAM CODESMITHS

The Library of Ash: How AI Read the Invisible

A volcano tried to delete a library. AI hit undo.

The Library of Ash: How AI Read the Invisible

AI reading ancient scrolls was once thought impossible. In 79 AD, Mount Vesuvius buried Pompeii and Herculaneum under volcanic ash. Herculaneum was hit by a superheated pyroclastic flow that instantly carbonized organic matter.

In the 1750s, workers digging a well discovered the Villa of the Papyri: the only surviving library from antiquity, with 1,800 scrolls. The problem was that they were no longer scrolls. They were lumps of charcoal that turned to dust if touched.

  • 79 ADVesuvius eruption
  • 1800scrolls in the villa
  • 5 TBdata per scan
  • 8 µmCT resolution

01 11

1. The Library Under Ash

For 250 years the carbonized scrolls sat in Naples: a time capsule of human knowledge that could be held but not read. Early attempts to open them destroyed them.

Historians call it the greatest tragedy of classical archaeology. The source code of Western civilisation—Epicurean philosophy, lost works of Sappho and Aristotle—was locked inside coal-like lumps.

Villa of the Papyri
Villa of the Papyri

02 11

2. The Problem

The heat had turned papyrus into fragile charcoal. Then, in 2023, a team led by a computer science professor and a former tech CEO used AI to do what physics said was impossible: read a book without opening it.

Carbonized papyrus fragments from Herculaneum
Carbonized papyrus fragments from Herculaneum

03 11

3. The Carbon-on-Carbon Problem

X-rays can read folded letters, but Roman ink was made of charcoal and the papyrus was made from plants. Both are carbon, so they have almost the same density. To an X-ray machine, the page is invisible: black text on black paper in a dark room.

Two scrolls were scanned at 8 µm resolution. Each file is roughly 5 TB, while a scroll may contain only 10,000 words.

X-ray CT scans of two Herculaneum scrolls
X-ray CT scans of two Herculaneum scrolls

04 11

4. The Virtual Unwrapping

Dr. Brent Seales of the University of Kentucky solved the first half of the puzzle. He used a synchrotron particle accelerator to scan at extremely high resolution, then wrote code to virtually unroll the 3D scan into a flat 2D sheet.

The scan worked, but the sheet was still blank. The ink was chemically invisible.

05 11

5. The Crackle Discovery

In mid-2023, physicist Casey Handmer noticed that ink did not appear as colour. It changed the texture of the papyrus fibres, leaving a microscopic crackle like dried mud.

The human eye could barely see it. If a human could see a faint pattern, an AI could learn to see a clear one.

06 11

6. The Ink Detection Model

The Vesuvius Challenge crowd-sourced the solution. Winners Youssef Nader, Luke Farritor and Julian Schilliger did not use a large language model. They used computer vision: a TimeSformer and a U-Net, an architecture normally used to find tumours in MRI scans.

  • 3D input: The model takes a small voxel cube from the X-ray scan.
  • Texture analysis: It reads the topography of papyrus fibres, looking for disruption rather than darkness.
  • Segmentation: It paints a probability map: an 85% chance, for example, that a pixel carries the crackle texture.
U-Net convolutional network diagram
U-Net convolutional network diagram

07 11

7. Probability Maps

The models use small input and output windows. Some outputs are simply binary: ink or no ink. That restriction makes it extremely unlikely that the model will hallucinate letter-like shapes from random texture.

Ink detection output with small input windows
Ink detection output with small input windows

08 11

8. The First Word

In October 2023, the model produced a clear Greek word: “πορφύρας” (Porphyras), meaning purple. It was the first word read from the library in two millennia.

The AI effectively hallucinated the ink back into existence from the scars it left in the paper 2,000 years earlier.

Detected ink patterns from the scrolls
Detected ink patterns from the scrolls

09 11

9. Why It Matters

AlphaFold and stock models predict the future. The Vesuvius AI predicts the past. Entire works vanished—Sophocles, Archimedes, early Roman histories—and this approach reconstructs text that survived only as charcoal.

It also proves the 1,800 scrolls in Naples are readable and opens the door to archaeological AI, including papyrus wrappers on Egyptian mummies made from recycled scrap paper containing lost poems.

10 11

10. The Risk

The risk is interpretative, not generative. The AI produces a grayscale image of letters; human papyrologists still translate it. An over-tuned model could turn a random crack into the Greek letter alpha and change a philosophical text.

CAUTION

Trust the texture

The machine perceives marks. People still decide what those marks mean.

11 11

11. Perception, Not Imagination

AI is usually discussed as intelligence: agents that think or act. This application shows a different power—perception. The model looked at a featureless black void and saw the texture of purple dye.

In 79 AD a volcano tried to delete a library. In 2023 three students and a neural network hit undo. This is the birth of archaeological AI: machines do not imagine history; they perceive it.

Archaeological AI

The Herculaneum scrolls show that AI can recover information that is physically present but biologically invisible. The model did not invent the text; it detected scars left by ink in carbonised fibres.

The result is a new category of AI: perception at the edge of human senses, where the output is evidence and the interpretation remains human.

  • Carbon on carbon: Ink and papyrus are effectively identical to X-rays.
  • Fibre texture: The invisible ink survives as a microscopic crackle.

Ready to build scalable, resilient, and crafted digital systems?

Explore computer vision with CodeSmiths →