Multimodal artificial-intelligence tools can turn a hand-drawn scientific diagram into an editable digital figure, potentially saving researchers hours of work. The safest approach is not to ask an image generator to invent a finished illustration, but to use a vision-enabled language model as a translator: it can interpret an existing sketch and convert its structure into code compatible with an editor such as Draw.io. The researcher remains responsible for checking the wording, numbers, arrows and relationships in the result.
Whether I am creating a scientific diagram, outlining a clinical study, planning a flowchart or mapping a signal-transduction pathway, I often begin with pen and paper.
Hand sketching is fast. You can draw boxes, cross things out and reorganize entire ideas without thinking about fonts, alignment or software menus. At this stage, the goal is not to make the diagram attractive but to assemble its logic.
Turning that rough sketch into a clean figure for a manuscript, however, can be surprisingly tedious. Text boxes must be aligned, arrows must connect to the correct points, and fonts, spacing and colours must be consistent. A diagram that takes five minutes to draw can require an hour or more to recreate digitally.
Multimodal AI tools can shorten this process. Instead of asking an AI model to create the final scientific image, use it as a translator. The model reads the sketch, interprets its structure and converts it into editable diagram code. That code can then be opened in a vector-based editor such as Draw.io, a free application for creating diagrams.
This distinction matters. The aim is not for AI to invent numbers or scientific details, but to help digitize figures that have already been designed.
Do not just ask for a picture
One tempting approach is to describe an idea to an image-generation model and ask it to produce a sophisticated scientific figure. For research diagrams, this can create more problems than it solves. Text may be misspelled, arrows may point in the wrong direction, or the pathway may be altered.
More importantly, the resulting images are usually flat: the text, images and background are combined into a single largely uneditable file. If a reviewer later requests changes to a figure for a research publication, the image may have to be recreated from scratch.
A better option is to use a multimodal language model, such as Google’s Gemini, to convert the sketch into a structured diagram format such as Draw.io-compatible XML or Mermaid syntax. The output can be imported into a diagram editor, where boxes, labels and connectors remain editable.
In this workflow, AI acts less like an illustrator and more like a compiler: a programming tool that translates human-readable instructions into code that a computer can run. The sketch is the source, and the Draw.io XML is the output.
Start with the logic
First, concentrate on the figure’s structure. Roughly sketch the important nodes, branches and connections without worrying about visual refinement. In a clinical study, these might include eligibility criteria, treatment groups and follow-up visits. In a laboratory workflow, they might represent experimental stages or decision points.
The crucial task is to make the relationships clear. Which box comes first? Where do the paths diverge? Which arrows connect to which endpoints? If the logic is ambiguous to human readers, it will also be ambiguous to AI models.
When the sketch is complete, photograph it and upload the image to a vision-enabled language model along with a detailed prompt. For example:
“Recreate your uploaded hand-drawn diagram as a clean, editable academic flowchart in an XML format compatible with Draw.io. Preserve as closely as possible the original structure, including box positions, arrows, dashed connectors, side boxes, branching patterns and text content. This is a rebuild task, not a redesign task. Use a plain white background, thin dark slate-gray borders, white box fills, thin connector lines and clean sans-serif text, with no shadows. Use gradients and decorative elements to maintain publication quality.”
It is important to state that the task is a rebuild, not a redesign. Scientific diagrams are not the place for creative embellishment. The goal is for the model to reproduce the structure rather than improve it according to its own interpretation.
The prompt should also specify what must not change. In particular, ask the model to preserve the wording, branching relationships and direction of the connections. If the diagram includes important numbers, doses or time points, manually review every one.
Convert a sketch into an editable figure
Source: www.nature.com












