Manuscript Offprint

arXiv:2608.21186

A Neurosymbolic Approach for Constructing Planning Domain Models from Clinical Narratives

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Surgical procedures such as laparoscopic appendectomy are complex, high-stakes processes, yet formalizing their workflows for decision support remains a significant challenge. Inducing probabilistic planning domain models in this setting is particularly difficult due to the lack of structured event data and the prevalence of implicit actions in clinical narratives, which neither empirical symbolic methods nor Large Language Models (LLMs) can adequately address on their own. We introduce NSPIN, a neurosymbolic framework for inducing probabilistic planning domain models from unstructured clinical narratives. Our method extracts and imputes structured event sequences from raw text using a pretrained LLM, then induces a PPDDL model and refines its preconditions with LLM-proposed revisions, guided by empirical validation. We evaluate the approach on 2,660 laparoscopic appendectomy notes written by 9 surgeons. NSPIN yields models that generalize to unseen notes, and expert clinical review indicates its induced knowledge is largely consistent with surgical practice.

Introduction

Surgical notes describe clinical findings and how a surgeon handled them in a specific patient, such as a perforated appendix or an unexpected abscess (Mathioudakis, Rousalova et al. 2016). However, this knowledge remains confined to the note in which it was recorded and is never used beyond that patient's chart. Learning a model of surgical actions and their preconditions and effects generalizes this experience across thousands of individual cases of a given procedure, with direct consequences for patient safety, surgical training, and equitable access to high-quality care. Such a model can underpin AI-in-the-loop systems (Natarajan et al. 2025) that help improve simulators for training residents by capturing rare complications, enable automated review of operative notes, and inform quality improvement by tracking systematic differences among surgeons and institutions. With further advances, such models could drive the development of autonomous surgical systems.

Formalizing surgical procedures requires a representation that is both expressive enough to capture their structure and interpretable enough for clinicians to validate. Formal planning languages, such as the Planning Domain Definition Language (PDDL) (Ghallab et al. 1998), offer a powerful framework for this purpose, representing procedures as a set of state predicates and parameterized action schemas. This declarative symbolic logical representation is highly interpretable, allowing clinicians to validate it against established medical standards.

However, the transition from unstructured clinical narratives to formal symbolic logic represents a significant challenge. Extracting a formal representation from clinical notes requires handling the linguistic diversity and varied writing styles of different clinicians (Hier et al. 2024). It also requires domain knowledge, since surgeons often omit information that is obvious to them but essential for maintaining a logically consistent state in a formal representation.

We address this formalization challenge through the specific case of laparoscopic appendectomy (Korndorffer Jr, Fellinger, and Reed 2010) in pediatric patients. The removal of the appendix to manage acute appendicitis is among the most common operative procedures in pediatric surgery. In a large children's hospital, pediatric surgeons may perform ten or more such procedures in a single day. This high frequency and relatively straightforward procedural workflow make the laparoscopic appendectomy an ideal domain for investigation. It provides a dense, large-scale dataset of operative notes that are structurally similar enough to allow for comparison, yet linguistically diverse enough to test the limits of automated compilation. Using this dataset, we build a model of action preconditions and effects that generalizes across different instances of the same procedure. Beyond serving as an interpretable representation of the procedure itself, this model can also synthesize plans and narratives for downstream uses such as simulator scenario generation and training data augmentation, both of which are important building blocks for deployment-ready clinical AI systems.

We make the following key technical contributions toward interpretable, generalizable models of surgical procedures that can support trustworthy, deployable clinical AI: (1) We introduce NSPIN, a Neurosymbolic framework that trans-

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

Figure

Figure 1: The NSPIN framework for inducing probabilistic planning models from clinical narratives. Our neurosymbolic approach extracts structured predicates from unstructured surgical notes using an LLM. It uses this structured information to synthesize a planning model that generalizes across diverse surgical workflows. Using an LLM to ground each action and observation in the text allows NSPIN to account for both explicit and implicitly mentioned information.

forms unstructured surgical notes into formal, probabilistic PDDL planning domains by combining the linguistic flexibility of LLMs with the logical rigor of symbolic induction. (2) We exploit the internal world models of pretrained LLMs to fill the gaps in surgical notes, inferring the implicit clinical actions and preconditions essential for logical plan consistency. (3) We evaluate NSPIN on a database of 2,660 real-world surgical notes by 9 surgeons. Our results demonstrate that this neurosymbolic approach produces planning models that generalize to unseen surgical workflows more effectively than purely LLM-based baselines.

After introducing the necessary technical background, we present our problem and its solution. We then outline our evaluation before discussing problems for future research.

References (32)

  • Learning rules from incomplete examples via implicit mention models
  • Neural Network Heuristic Functions for Classical Planning: Bootstrapping and Comparison to Other Methods
  • STRIPS: A new approach to the application of theorem proving to problem solving
  • Neurosymbolic AI: the 3rd wave
  • PDDL-the planning domain definition language
  • Automated Planning: theory and practice
  • Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planning
  • Slr: Automated synthesis for scalable logical reasoning (opens arXiv in a new tab)
  • Efficient standardization of clinical notes using large language models (opens arXiv in a new tab)
  • LLM-IE: a python package for biomedical generative information extraction with large language models
  • On the Limit of Language Models as Planning Formalizers
  • Learning Probably Approximately Complete and Safe Action Models for Stochastic Worlds
  • Mathematics without Numbers
  • SAGES guideline for laparoscopic appendectomy
  • Learning safe action models with partial observability
  • Leveraging Environment Interaction for Automated PDDL Translation and Planning with Large Language Models
  • Graph Neural Network Based Action Ranking for Planning (opens arXiv in a new tab)
  • How to keep good clinical records
  • Human-in-the-loop or AI-in-the-loop? Automate or Collaborate? In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, 28594–28600
  • Large language models as planning domain generators
  • Learning symbolic models of stochastic domains
  • SQUiD: Synthesizing Relational Databases from Unstructured Text
  • MedGemma Technical Report (opens arXiv in a new tab)
  • Clinical text data in machine learning: systematic review
  • LLMs as planning formalizers: A survey for leveraging large language models to construct automated planning models
  • On the planning abilities of large language models—a critical investigation
  • Local-to-Global Logical Explanations for Deep Vision Models (opens arXiv in a new tab)
  • A survey of information extraction based on deep learning
  • PPDDL1.0: An extension to PDDL for expressing planning domains with probabilistic effects
  • PROC2PDDL: Open-Domain Planning Representations from Texts
  • A Survey of Large Language Models
  • Language Models Can Infer Action Semantics for Symbolic Planners from Environment Feedback