Sketch2Simulation: Automating Flowsheet Generation via Multi Agent Large Language Models

This paper presents "Sketch2Simulation," an end-to-end multi-agent large language model framework that automates the conversion of process sketches into executable Aspen HYSYS simulation models by integrating diagram parsing, model synthesis, and multi-level validation, achieving high structural and stream consistency across diverse chemical engineering case studies.

Abdullah Bahamdan, Emma Pajak, John D. Hedengren, Antonio del Rio Chanona

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

Imagine you are an architect who has just finished a beautiful, hand-drawn sketch of a new factory. You have drawn the pipes, the tanks, the pumps, and the arrows showing where the oil and water flow. It's a great picture, but a computer simulation program (like Aspen HYSYS) can't "read" a drawing. It needs a strict, digital blueprint with exact instructions: "Tank A connects to Pipe B," "Pump C needs 500 gallons per minute," and "The temperature must be 200 degrees."

Usually, a human engineer has to sit down and manually translate that sketch into the computer's language. This is slow, boring, and prone to mistakes.

"Sketch2Simulation" is a new system that acts like a team of super-smart AI robots to do this translation instantly. Instead of one giant robot trying to do everything (which often gets confused), the authors built a Multi-Agent System—a team of specialized robots, each with a specific job, working together to turn your sketch into a working computer model.

Here is how the team works, using a simple analogy:

The Team of AI Robots

Imagine a construction site where a blueprint needs to be turned into a real building. You wouldn't ask one person to draw, calculate, build, and inspect all at once. You'd hire a crew. This system does the same:

  1. The Detective (Diagram Parsing & Interpretation):

    • Job: This robot looks at your messy hand-drawn sketch. It uses "eyes" (computer vision) to find the pumps, tanks, and lines.
    • The Trick: It doesn't just see shapes; it understands context. If it sees three pipes merging into one, it knows, "Ah, this is a mixer," even if the label is missing. It creates a clean, digital list of "What is here?" and "How are they connected?"
    • Analogy: Think of this as a translator who looks at a foreign map and writes down a clear list of landmarks and roads, ignoring the scribbles and artistic flourishes.
  2. The Architect (Simulation Model Synthesis):

    • Job: Now that we have the list, this robot writes the actual code for the computer program.
    • The Trick: It breaks this down further:
      • The Librarian: Checks the names of chemicals to make sure the computer recognizes them (e.g., ensuring "Benzene" is spelled exactly right in the database).
      • The Builder: Places the virtual tanks and pipes into the software.
      • The Plumber: Connects the pipes to the tanks, making sure the flow direction is correct.
    • Analogy: This is like a contractor who takes the list of materials and starts assembling the actual house, ensuring the walls go in the right place and the plumbing connects to the pipes.
  3. The Inspector (Multi-Level Validation):

    • Job: This robot checks the work at every step.
    • The Trick: It asks, "Does this description match the drawing?" and "Does this code actually run without crashing?" If the computer program throws an error, this robot tries to fix the code automatically before trying again.
    • Analogy: This is the building inspector who walks through the house to make sure the roof doesn't leak and the electricity works before you move in.

Why is this a big deal?

  • It's a Team, Not a Solo Act: Previous AI attempts tried to use one giant brain to do everything. If that brain got tired or confused, the whole project failed. By splitting the work into a team of specialists, if one robot makes a mistake, the others can catch it.
  • It Handles the "Messy" Stuff: Real engineering sketches are often messy. They have missing labels, crossed lines, or implied connections. This system is smart enough to guess what was meant (like realizing two pipes must meet even if the line is faint) and fix it for the computer.
  • It Works on Real Industrial Problems: The authors tested this on four different scenarios, from a simple water cleaning process to a massive, complex oil refinery with many recycling loops.
    • The Result: For the simple cases, it was 100% perfect. For the complex industrial cases, it was still over 95% accurate, and the computer models actually ran without crashing.

The Bottom Line

Think of Sketch2Simulation as a magic bridge. On one side, you have the human engineer's creative, hand-drawn ideas. On the other side, you have the rigid, mathematical world of computer simulations.

In the past, you needed a human translator to cross that bridge. Now, this AI team can cross it for you in seconds, turning a sketch into a working, testable factory model. It doesn't replace the engineer; it frees them from the boring typing and allows them to focus on designing better processes.

The Catch? It's not perfect yet. If the drawing is too messy or the factory design is incredibly complex with many loops, the AI might get a little confused on the connections. But it's a massive leap forward in making engineering faster and more automated.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →