← Latest papers
🤖 machine learning

A Neurosymbolic Approach for Constructing Planning Domain Models from Clinical Narratives

This paper introduces NSPIN, a neurosymbolic framework that combines large language models with empirical validation to automatically construct probabilistic planning domain models from unstructured clinical narratives, effectively addressing the challenges of implicit actions and data scarcity in complex surgical workflows.

Original authors: Ranveer Singh, Saurabh Mathur, Michael Skinner, Prasad Tadepalli, Kristian Kersting, Sriraam Natarajan

Published 2026-08-24
📖 6 min read🧠 Deep dive

Original authors: Ranveer Singh, Saurabh Mathur, Michael Skinner, Prasad Tadepalli, Kristian Kersting, Sriraam Natarajan

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

Hospitals are filled with stories written in the margins of patient care. Surgeons record their work in detailed notes, describing how they handled a specific patient's unique complications, from a perforated organ to an unexpected infection. For decades, this knowledge has remained trapped inside individual charts, useful only for the person who wrote it or the team caring for that specific patient. It has never been gathered into a single, clear picture of how these procedures actually work across thousands of cases. Scientists have long wanted to turn these messy, handwritten stories into a formal set of rules—a logical map that shows exactly what must happen before a surgeon can take the next step, and what might happen as a result. This kind of map is essential for building artificial intelligence that can help train new doctors, review surgical notes automatically, or even guide future robotic systems. The challenge is that human language is full of shortcuts and assumptions. A surgeon might write that they "placed a port" without mentioning that they first had to make an incision, because to them, that step is so obvious it doesn't need to be said. Computers, however, cannot guess what is obvious; they need every single step explicitly stated to understand the logic of the operation.

A team of researchers has developed a new method to solve this problem, turning thousands of unstructured surgical notes into a precise, logical model of a common pediatric surgery called a laparoscopic appendectomy. This procedure, which involves removing an inflamed appendix through small incisions, is performed frequently in children's hospitals, providing a rich dataset of over 2,600 real-world notes written by nine different surgeons. The researchers created a system that acts as a bridge between the fluid nature of human language and the rigid requirements of computer logic. They call this system NSPIN. It works by first using a powerful language model, a type of artificial intelligence trained on vast amounts of text, to read the raw notes and pull out the specific actions and observations mentioned. Because the notes are often incomplete, the system then uses the same language model to fill in the missing gaps, inferring the hidden steps that a surgeon would have taken but didn't write down. Finally, it uses a different kind of mathematical logic to organize these steps into a coherent plan, checking the work against the data to ensure the rules make sense.

The process begins with the system reading the raw text of a surgical note. It identifies the key events, such as making an incision or placing a surgical instrument, and arranges them in the order they occurred. However, the researchers found that simply reading the text was not enough. Surgeons often skip writing down universal protocols or obvious intermediate steps, leaving the computer with a broken chain of events. To fix this, the system asks the language model to act as a clinical expert, suggesting the missing steps that logically connect the recorded events. For instance, if a note mentions that an appendix was removed, the system infers that the base of the appendix must have been secured first, even if the surgeon did not explicitly write that down. This step is crucial because it recovers the silent knowledge that experts carry in their heads but rarely commit to paper. The system generates multiple possible versions of these missing steps and then combines them, keeping only the ones that the majority of the generated versions agree on, ensuring the final sequence is robust and reliable.

Once the system has a complete, ordered sequence of events for each surgery, it builds a formal model that describes the rules of the operation. This model defines what conditions must be true before a specific action can be taken and what the likely outcomes of that action are. For example, it learns that a surgeon cannot place a surgical port until an incision has been made, and that placing the port might lead to the discovery of adhesions, or scar tissue, which then requires a specific procedure to remove. The researchers tested this approach by comparing it against methods that relied solely on the language model without the logical checking step. They found that the combined approach was far superior. The system that used the logical rules to refine the language model's suggestions produced a model that was much better at predicting what would happen next in a surgery and at identifying which actions were actually possible at any given moment.

The results showed that the system could learn from the notes of nine different surgeons and create a general set of rules that worked for all of them, even when tested on notes from a surgeon it had never seen before. When the researchers asked medical experts to review the steps the system had inferred, the experts confirmed that the missing steps were clinically correct and necessary. In one instance, the system correctly recovered the information that a surgeon had closed the abdominal wall with a specific type of suture, even though the information extractor initially failed to pull it out from a note that explicitly stated, "The umbilical fascia was closed with 0 Vicryl suture." In another case, it deduced that securing the base of the appendix was a prerequisite for cutting it, a logical necessity that was not explicitly stated in the text. These findings demonstrate that the system can successfully translate the implicit, unwritten knowledge of human experts into a formal, usable format.

The study also revealed that relying only on the language model, without the logical refinement, led to errors. The language model alone tended to create rules that were too loose or too restrictive, often missing the true cause-and-effect relationships that govern a surgical procedure. By combining the language model's ability to understand text with a symbolic system's ability to enforce logical consistency, the researchers created a model that was both flexible enough to handle the variety of human writing and strict enough to be trusted by machines. This approach suggests a path forward for building artificial intelligence in high-stakes fields like medicine, where understanding the "why" behind an action is just as important as knowing the "what." The work does not claim to have solved all the problems of surgical automation, but it provides a proven method for turning the vast, unstructured history of patient care into a structured foundation for future tools that could improve patient safety and surgical training.

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 →