Leveraging GenAI for Segmenting and Labeling Centuries-old Technical Documents

This paper presents a novel approach to automating the curation and retrieval of 16th and 17th-century shipbuilding treatises by leveraging generative AI models like SAM2, Florence2, and ChatGPT, enhanced with specialized nautical ontologies, to overcome the challenges of segmenting and labeling scarce, domain-specific historical documents.

Carlos Monroy, Benjamin Navarro

Published 2026-03-04
📖 5 min read🧠 Deep dive

Imagine you have a massive, dusty library filled with ancient, handwritten blueprints for ships. These books are hundreds of years old, written in different languages, and the drawings are intricate, faded, and full of technical terms that only a master shipwright from the 1600s would understand.

Now, imagine you want to build a modern, searchable digital catalog for this library. You want a computer to look at a picture of a ship, point to every single part (the mast, the rudder, the specific type of knot), and tell you exactly what it is.

The Problem:
Modern computers are great at recognizing things in today's photos. If you show a computer a picture of a cat on a car, it knows exactly what a "cat" and a "car" are because it has seen millions of them on the internet. But if you show it a 400-year-old drawing of a ship, the computer gets confused. It doesn't know what a "rider frame" is, or how to tell the difference between a "keel" and a "keelson" in a sketch that looks like a messy doodle to a modern eye. It's like trying to teach a toddler to read a complex engineering manual.

The Solution: A Team of AI Specialists
The authors of this paper tried to solve this by creating a "dream team" of Artificial Intelligence tools to act as a digital curator. Think of their process like a three-step assembly line in a factory:

  1. The "Cutting" Machine (Segmentation):
    First, they needed to separate the different parts of the ship drawing. Imagine a drawing of a ship where the hull, the sails, and the ropes are all drawn on top of each other. The computer uses a tool called SAM2 (think of it as a super-precise digital pair of scissors) to cut the image into pieces. It draws outlines around every single part, isolating the "wheel" from the "axle," even if they are touching.

  2. The "Labeling" Machine (Recognition):
    Once the pieces are cut out, the computer needs to know what they are. This is where they tried different "brain" tools.

    • The Old Way: They tried using standard AI that just guesses based on general knowledge. It was like asking a tourist to identify parts of a spaceship; they might guess "wheel" when it's actually a "thruster."
    • The New Way: They used GenAI (like ChatGPT) and specialized tools. But here's the catch: if you just ask the AI, "What is this?" it might give you a wrong answer because it doesn't know the context. It might think a "rider frame" is part of a motorcycle!
  3. The "Expert" Dictionary (The Ontology & Glossary):
    This is the secret sauce. The researchers didn't just let the AI guess. They gave the AI a specialized dictionary and a rulebook (called an ontology) written by real human experts on shipbuilding.

    • Think of this as giving the AI a cheat sheet. Instead of saying, "What is this?" they tell the AI, "Look at this shape. In our rulebook, this shape is called a 'Rider Frame,' and it is always found at the back of the ship."
    • This forces the AI to stop guessing and start using the correct, historical vocabulary.

The Results: A Work in Progress
The experiment showed that this "Team Approach" works much better than just letting the AI guess on its own.

  • The Good: The computer can now identify more parts of the ship and give them the correct, fancy names. It's like upgrading from a toddler's vocabulary to a professor's vocabulary.
  • The Bad: It's not perfect yet. Sometimes the computer still gets confused. It might label a pulley as an "axis" or think a book edge is a "sharpened object." It's like a very smart student who knows the definitions but sometimes applies them to the wrong picture.

Why Does This Matter?
Why spend so much time teaching a computer to read old ship drawings?

  • Preservation: These books are priceless. If they are lost or damaged, that knowledge disappears forever.
  • Accessibility: Right now, only a few experts can read these books. If we can teach a computer to understand them, we can build a search engine where a student, a historian, or a curious grandparent can type "show me all the ships with red sails" and instantly find the right pages.
  • Reconstruction: By understanding exactly how these ships were built from the drawings, we can help archaeologists rebuild sunken ships or understand how our ancestors explored the world.

In a Nutshell:
The paper is about teaching a computer to become a digital shipwright. By combining a "digital scissors" to cut up the images, a "smart brain" to guess what they are, and a "human expert's dictionary" to correct the guesses, they are making it possible to unlock the secrets of centuries-old shipbuilding manuals for everyone. It's a bit like giving a time machine a library card.