PathWISE: Multi-Agent Cancer Pathway Triaging Ontology Learning from Clinical Flowcharts
PathWISE is a multi-agent pipeline that transforms non-computable clinical cancer pathway flowcharts into validated, executable HL7 CQL libraries by combining LLM-based extraction with deterministic graph auditing and compiler verification to ensure 100% syntactic success while surfacing governance gaps without hallucination.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a hospital's cancer care plan as a giant, colorful flowchart hanging on a wall. It has arrows, boxes, red and blue colors, and bold text. For a human doctor, this chart is a perfect map: "If the patient has symptom A (red box), go left. If they have symptom B (bold text), go right."
But for a computer, this chart is a mystery. Computers can't "see" that a red background means "urgent" or that a thick arrow means "do this next." They only read text. This creates a gap: the doctors have the map, but the computer systems that could help automate care are blind to it.
PathWISE is a new tool designed to bridge this gap. Think of it as a team of five specialized robots working together to translate that wall-chart into a language computers can actually run.
Here is how the team works, step-by-step:
1. The "Eagle-Eye" Translator (Visual Parsing)
First, a robot with "super-vision" looks at the flowchart image. It doesn't just read the words; it notices the colors, the shapes, and the direction of the arrows. It turns the messy picture into a clean, structured digital map (a graph) that a computer can understand. It knows, for example, that a red box is different from a white one, even if they say the same thing.
2. The "Traffic Controller" (Deterministic Audit)
Next, a strict, rule-following robot takes that digital map. It doesn't guess; it uses math to trace every single possible path a patient could take from start to finish. It counts the routes, checks for dead ends, and makes sure the map makes logical sense. This part is 100% deterministic, meaning it never makes mistakes or "hallucinates" new paths.
3. The "Grammar Police" (Semantic Audit)
Now, the team checks if the instructions on the map can actually be followed by a computer. Some instructions are vague, like "treat if the patient feels very sick." A computer can't measure "very." This robot flags those vague spots. It marks them as "needs human review" rather than trying to guess what the doctor meant. It separates the clear, computer-friendly rules from the fuzzy, human-judgment rules.
4. The "Code Builder" and the "Strict Inspector" (CQL Generation & Verification)
This is the most unique part of PathWISE.
- The Builder: A creative robot writes the actual computer code (called CQL) based on the map.
- The Strict Inspector: Instead of another robot checking the work, PathWISE uses a real, official compiler (a tool that checks code for errors) as the inspector. If the Builder makes a mistake or invents a fake medical code, the Inspector immediately says, "Error! Fix this." The Builder keeps trying until the code passes the Inspector's test. This ensures the final code is perfect, with no made-up medical terms.
5. The "Delivery Driver" (Deployment)
Finally, the verified code is packaged into a service that can plug directly into a hospital's electronic health record system. When a doctor opens a patient's file, this system pops up a card saying, "Based on the flowchart, here is the next step," or "We need a human to decide this part because the chart was vague."
What Did They Actually Do?
The researchers tested this system on five real cancer pathways used in the UK's National Health Service (NHS): for skin, lung, breast, colorectal, and upper gastrointestinal cancers.
- Success Rate: The system successfully turned all five visual charts into working computer code.
- Finding Flaws: It found hundreds of "governance issues" in the original charts, such as vague language or contradictions that humans might miss.
- Safety: It never invented fake medical codes. If it didn't understand a term, it flagged it for a human to check, rather than guessing.
- The "Hybrid" Winner: They tried different combinations of AI models. The best result came from a "Hybrid" team: one model that was great at reading the pictures (Gemini) and another that was great at writing the code (Claude).
The Bottom Line
PathWISE doesn't replace doctors. Instead, it acts as a translator that turns static, visual hospital guidelines into dynamic, working computer tools. It keeps the "guessing" part of AI strictly limited to the early drafting phase and uses hard math and official code checkers to ensure the final result is safe, accurate, and ready to help doctors make decisions.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.