Skip to content
#small language model Open access

PlanningCopilot: An agentic framework integrating ESAPI modules for autonomous treatment planning in lung radiotherapy.

Sep 2026 · Medical Physics (Lancaster) · Vol 53 9, pp. e70665 · 1 citation · 22 references
Medicine

TL;DR

PlanCopilot consistently satisfies clinical dosimetric requirements across varying anatomical complexities and improves optimization efficiency through self-learning from prior optimization history.

Abstract

Background

Consistently generating clinically acceptable plans without human intervention remains a challenge in radiotherapy. Rule-based automation provides deterministic execution, and knowledge-based planning (KBP) provides statistical dose estimation, but both often require manual refinement. Large language models (LLMs) offer clinical reasoning capability, but effective autonomous planning also requires a mechanism to execute complex planning actions within the treatment planning system (TPS).

Purpose

To develop and evaluate PlanningCopilot, an agentic system that utilizes the reasoning capability of LLM and a validated Eclipse Scripting API (ESAPI) optimization module integrating KBP initialization ("PlanAct") to autonomously generate treatment plans. This study evaluates the system's ability to produce clinically acceptable plans for locally advanced non-small cell lung cancer (LA-NSCLC) and assesses its potential to refine performance by self-learning.

Methods

PlanningCopilot was implemented as a multi-agent framework linked to the TPS through PlanAct API. It comprises four specialized GPT-4.1 agents that iteratively interact with the TPS: (1) an Evaluator agent that accesses the plan and generates plan quality reports, (2) a Supervisor agent that validates these reports before passing them to a Planner agent, (3) the Planner agent that executes initialization and optimization tasks through PlanAct API and planning guidelines, and (4) an optional Learner agent that synthesizes optimization history into Planner-facing prompt addendums. We retrospectively analyzed 62 patients with conventionally fractionated LA-NSCLC and compared original clinical plans with autonomous plans with and without the Learner agent. Measurement-based patient-specific quality assurance (PSQA) was performed on the first 21 autonomous IMRT plans in planning order.

Results

All autonomous plans met clinical dosimetric requirements, including those not achieved in the clinical plans and KBP (RapidPlan) plans. Paired Wilcoxon signed-rank tests showed no significant differences between autonomous and clinical plans for Lungs Dmean (p = 0.371), Lungs V20Gy (p = 0.449), Lungs V5Gy (p = 0.309), Heart D50% (p = 0.175), Esophagus Dmean (p = 0.750), Spinal Cord D0.03cc (p = 0.422), and Plan D0.03cc (p = 0.941). Furthermore, autonomous plans achieved significantly lower Esophagus D0.03cc (p = 0.027). Compared with RapidPlan initialization, PlanningCopilot improved multiple dosimetric endpoints, including Lungs Dmean (p < 0.001), Lungs V20Gy (p < 0.001), Lungs V5Gy (p = 0.004), Heart D50% (p = 0.037), and Plan D0.03cc (p < 0.001), with the cost of higher Esophagus Dmean (p < 0.001) and Esophagus D0.03cc (p < 0.001). In a subset of 18 cases requiring at least two iterations, applying Learner-derived knowledge reduced required iterations by an average of 11.8% while maintaining comparable plan quality (p > 0.05). All 21 autonomous IMRT plans passed measurement-based PSQA.

Conclusion

PlanningCopilot enables autonomous generation of clinically acceptable and deliverable treatment plans for LA-NSCLC. It consistently satisfies clinical dosimetric requirements across varying anatomical complexities and improves optimization efficiency through self-learning from prior optimization history.

Read PDF

Similar papers

Open access Sep 2026

Improving portability of knowledge‐based planning using an LLM‐driven plan refinement framework in lung radiotherapy

Knowledge‐based planning (KBP) has improved the quality and efficiency of radiotherapy treatment planning. However, its broader clinical adoption remains limited because effective deployment often requires institution‐specific model training and tuning. Publicly available KBP models provide a convenient starting point...

Zi-Pai Wang, Hao Guo, Yang Lei et al. · 1 citation
Open access Sep 2026

UPF4ROS2 for integrating planner independent task planning into ROS 2

The lack of standardized interfaces remains one of the main barriers to the adoption of automated planning in robotic systems. To address this challenge, the AIPlan4EU project, part of the European AI4EU initiative, developed the Unified Planning Framework (UPF), a planner-independent ecosystem designed to facilitate...

Irene González-Fernández, M. '. González-Santamarta, Francisco Martín et al. · 0 citations
Open access Sep 2026

Stereotactic radiosurgery plan optimization with a human-in-the-loop reasoning large language model agent

Large language model agents can adjust optimization parameters in a treatment planning system under natural-language instruction, but no study has tested a model post-trained for extended reasoning against a general-purpose model in stereotactic radiosurgery. We compared a reasoning-optimized model (QwQ-32B) with a...

H. Nusrat, Luke Francisco, Bing Luo et al. · 0 citations
Sep 2026

A Modular Multi-Agent Reinforcement Learning Framework Guided by LLMs: Improving Quality and Efficiency of Treatment Planning in Lung Radiotherapy.

PURPOSE Knowledge-based planning (KBP) frequently requires manual refinement to satisfy institution-specific clinical constraints, while existing automated approaches based on large language models (LLMs) or reinforcement learning (RL) each face distinct limitations in long-term optimization awareness and scalability....

Zi-Pai Wang, Hao Guo, Yang Lei et al. · 0 citations
#artificial intelligence Preprint Oct 2026

RadOnc-Agent: An LLM-Orchestrated Framework for AI Workflows Across the Radiotherapy Care Pathway

Artificial intelligence has advanced individual radiotherapy tasks, yet these capabilities remain separated across clinical stages, software environments and data modalities. This fragmentation contrasts with the longitudinal radiotherapy workflow from treatment decision-making through follow-up. Here we present RadOnc...

Cai-Wen Jiang, Shuo-Yang Wei, Song-Lin Zhao et al. · 0 citations
Open access Oct 2026

Planner-Executor Style Multimodal Agentic System to Answer Patient Questions in Lung Cancer Screening CT

Background: Accurate patient understanding of lung cancer screening (LCS) results is critical for engagement and follow-up adherence, given the currently low screening uptake. While artificial intelligence (AI) systems show promise in facilitating patient communication, its effective use in clinical settings requires a...

K. Sakiyama, A. Serapio, M. Ye et al. · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.