System and method for interactive contouring of anatomical structures in radiotherapy treatment planning
The interactive contouring system addresses the inefficiencies of manual and automated radiotherapy planning by integrating a large machine learning model for initial predictions, manual editing, and a fast refinement model, achieving precise and efficient tumor and organs-at-risk contouring.
Patent Information
- Application Number
- US19/685419
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-05-22
- Filing Date
- 2026-05-22
- Publication Date
- 2026-11-26
AI Technical Summary
Existing radiotherapy treatment planning systems face challenges with manual contouring being time-consuming and subjective, and automated methods are prone to variability, computational intensity, and limited accuracy, especially in anatomical regions, necessitating improved systems for efficient and precise auto-contouring of tumors and organs-at-risk.
An interactive contouring system using a large machine learning model for initial predictions, manual editing tools for user corrections, and a fast machine learning model for refining predictions, ensuring quick iterations and coherence with corrections.
Enhances contouring precision and efficiency by reducing computational burden and latency, allowing real-time interactive feedback during the contouring process, thereby optimizing radiotherapy treatment planning.
Smart Images

Figure US20260373509A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims benefit of U.S. Provisional Application No. 63 / 810,549, titled “PROMPT-BASED DEEP LEARNING FRAMEWORK FOR PRECISION AUTO-CONTOURING IN RADIOTHERAPY TREATMENT PLANNING,” filed on 22 May 2025.TECHNICAL FIELD OF INVENTION
[0002] The present disclosure relates generally to the field of medical imaging and radiation oncology. More specifically, the present disclosure relates to the development and application of Computer-Aided Detection (CAD) software for the segmentation of target volumes, such as cancerous tumors and organs at risk, in medical imaging datasets, particularly those generated by computer tomography (CT) or magnetic resonance imaging (MRI).
[0003] In particular, the present disclosure relates to the treatment planning procedure for radiation therapy, particularly the contouring of target volumes and organs at risk (OARs), to provide accurate and robust dose estimates in a shorter amount of time.BACKGROUND
[0004] The background description provided herein is for generally presenting the context of the disclosure. Work of the presently named inventors, to the extent it is described in this background section, as well as aspects of the description that may not otherwise qualify as prior art at the time of filing, are neither expressly nor impliedly admitted as prior art against the present disclosure.
[0005] Radiation therapy is a widely used treatment modality for cancer patients, involving the delivery of ionizing radiation to destroy or control malignant cells. The treatment planning procedure for radiotherapy involves the careful delineation and contouring of organ and target volumes. This step plays a role in ensuring accurate and effective radiation dose delivery. Organ contouring refers to the process of outlining the boundaries of organs at risk (OARs) in the body, such as the spinal cord, lungs, and heart. Target volume contouring involves outlining the tumor or the area where the radiation is intended to be delivered.
[0006] Traditionally, the clinical manual procedure of performing contouring for radiotherapy involves the use of medical imaging, such as CT and MRI scans, to visualize the patient's anatomy. Radiation oncologists and medical physicists manually review and mark organs and target volumes on images using specialized software. This process directly affects radiation dose distribution and the protection of healthy tissues.
[0007] The contouring process in the clinical manual procedure involves careful consideration of various factors, such as the location, size, and shape of the tumor, as well as the proximity of structures that may be sensitive to radiation. The radiation oncology team collaborates to ensure consistent and accurate contouring across patients. However, this manual procedure can be time consuming, subjective, and prone to inter-observer variability.
[0008] Automated segmentation approaches have been developed to assist with the contouring process. Some approaches involve calculating parameters associated with the image, such as tumor size, geometry, homogeneity, intensity, or texture, and then predicting which automatic segmentation method among a set of methods may be accurate based on the calculated parameters. However, such approaches may be dependent on training data diversity, sensitive to parameter calculation inaccuracies, limited to evaluated segmentation methods, and may exhibit decreased performance for tumors in certain anatomical locations.
[0009] Other approaches utilize machine learning-based target volume segmentation models in combination with imaging data to determine boundary information for target volumes. However, the effectiveness of such systems may be dependent on the quality of training data and the accuracy of contouring guidelines, and the complexity of such systems may require substantial computational resources and expertise for implementation.
[0010] Commercial solutions in the field of medical imaging and segmentation offer automated segmentation and contouring capabilities for various anatomical structures on CT and MR images. These solutions may provide varying levels of accuracy and contouring times depending on the anatomical region and the number of validated targets. Some solutions may offer broad coverage across many targets but with longer contouring times, while others may provide faster delineation but for more limited anatomical regions. Variability in contouring time across different regions may introduce challenges to workflow predictability.
[0011] In many existing approaches, there may be limited methods for intelligently and efficiently adjusting and refining automatically generated contours. As a result, clinicians may rely on manual methods to correct or refine initial predictions. In some cases, clinicians may find it faster to redraw contours manually from scratch rather than attempt to refine initial automated predictions.
[0012] Therefore, improved systems and methods for auto-contouring in radiotherapy treatment planning that address at least one or more of these considerations are desired.SUMMARY
[0013] This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. Aspects of the present disclosure may enhance medical imaging processes, and in some embodiments may focus on precise and efficient automated segmentation of tumor volumes and organs-at-risk in CT or MRI scans. In some implementations, the systems and methods described herein may integrate with PACS systems, ensuring compatibility with existing healthcare infrastructure, while also adhering to security standards. In some aspects, the present disclosure may provide detailed information for clinical evaluation, thereby contributing to the optimization of the radiotherapy treatment planning process.
[0014] The present disclosure introduces a system for performing an interactive tumor and / or organ-at risk contouring process for radiotherapy treatment planning, comprising an initial auto-contouring process using a machine learning algorithm, a user reviewing and editing process of the initial predictions using contouring, tools such as brush, pen, select or others and an auto-refining process for updating the initial predictions based on edits using a machine learning algorithm.
[0015] According to one embodiment of the system, the initial segmentation process generates initial contour predictions and image features extracted from the large machine learning model.
[0016] According to another embodiment of the system, the reviewing and editing process uses manual contouring tools to generate the user corrections.
[0017] According to yet another embodiment of the system, the auto-refining process updates the initial contour predictions based on image features and corrections resulted from the reviewing and editing process.
[0018] Another object of the invention consists of a computer-implemented method for refining contour predictions in radiotherapy treatment planning, comprising:
[0019] performing an initial segmentation process to generate initial contour predictions and image features;
[0020] displaying the initial contour predictions in a medical image viewer and editor interface;
[0021] receiving prompts to the contour predictions from the user, in form of contour corrections;
[0022] refining the initial predictions using image features and the contour corrections; and
[0023] displaying the refined predictions in the medical image viewer and editor interface
[0024] According to one embodiment of the computer-implemented method, the generation of baseline contour predictions is done by a machine learning model.
[0025] According to another embodiment of the computer-implemented method, the prompts / contour corrections are performed using contouring tools such as brush, pen, select, or others.
[0026] According to yet another embodiment of the computer-implemented method, the refined predictions are generated from the initial contour prediction, image features and contour corrections using a machine learning model.
[0027] Another object of the invention consists of a prompt-based deep learning algorithm for auto contouring of normal and / or target structures for radiotherapy treatment planning, comprising:
[0028] a large machine learning model for medical image segmentation;
[0029] a medical image viewer and editor for user reviews and corrections; and
[0030] a fast machine learning model for performing refined predictions based on the corrections made in the medical image viewer.
[0031] According to one embodiment of the prompt-based deep learning algorithm, the large machine learning model provides initial contour predictions and a set of features used in the refinement process.
[0032] According to another embodiment of the prompt-based deep learning algorithm, the medical image viewer and editor interface allows for user corrections via contouring tools such as brush, pen, select or others.
[0033] According to yet another embodiment of the prompt-based deep learning algorithm, the fast machine learning model (which may also be referred to as a second machine learning model) provides refined predictions based on the current prediction, corrections made by the user in the medical image editor, and features provided by the large machine learning model (which may also be referred to as a first machine learning model).
[0034] The foregoing general description of the illustrative embodiments and the following detailed description thereof are merely exemplary aspects of the teachings of this disclosure and are not restrictive.BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Non-limiting and non-exhaustive examples are described with reference to the following figures.
[0036] FIG. 1 illustrates an initial segmentation process with two workflows, according to aspects of the present disclosure.
[0037] FIG. 2 illustrates an iterative correction process with two workflows, according to aspects of the present disclosure.DETAILED DESCRIPTION
[0038] In the following detailed description, details are set forth by way of examples to provide a thorough understanding of the relevant disclosure. However, it should be apparent to those skilled in the art that the present disclosure may be practiced without such details. The present disclosure is not limited to the embodiments shown, but to be accorded the widest scope consistent with the claims.
[0039] The method described herein may be implemented as software and may be stored in any type of non-transitory computer-readable medium or another storage device, such as a compact disc, a digital video disc, a flash drive, a magnetic disc, or any other tangible medium, or as a digital download.
[0040] Such software code may be stored, partially or fully, on a storage device of the executing computing device, for execution by the computing device.
[0041] The term “image” in the present description is used to collectively refer to image data (e.g., scan data, projection data) and / or images of various forms, including a two-dimensional (2D) image, a three-dimensional (3D) image, a four-dimensional (4D), etc.
[0042] The term “region”, “location” and “area” in the present description may refer to a location of an anatomical structure shown in the image or an actual location of the anatomical structure existing in or on the subject's body, since the image may indicate the actual location of a certain anatomical structure existing in or on the subject's body.
[0043] The present disclosure relates to a software solution for providing an interactive framework under which a user (medical doctor) and AI algorithms iteratively improve the baseline contouring predictions given by e.g. an automatic contouring machine learning model.
[0044] The invention described in this application aims to enhance the contouring process by incorporating an interactive framework for performing corrections on existing contour predictions. The system utilizes incremental visual prompts in the form of local corrections to refine the initial contour predictions made by conventional machine learning models.
[0045] The following presents a simplified summary of one or more embodiments of the present disclosure to provide a basic understanding of such embodiments. This summary is not an extensive overview of all contemplated embodiments and is intended to neither identify key or critical elements of all embodiments, nor delineate the scope of any or all embodiments.
[0046] In one embodiment, the invention may incorporate a large machine learning model (which may also be referred to herein as a first machine learning model or an Initial Segmentation Model) for medical image segmentation, for performing baseline predictions and providing an accurate set of features for making corrections.
[0047] In one embodiment, the invention may incorporate a medical image viewer and editor, used as an interface for performing iterative corrections in form of local corrections using various classical tools, such as brush, pen, Boolean operators, margins, and so on. The viewer may be coupled with a backend through an API, which handles communication throughout the revision session and manages the machine learning models.
[0048] In one embodiment, the invention may incorporate a second machine learning model (which may also be referred to herein as a Correction Model or a fast machine learning model) for improved predictions based on (a) the current prediction, (b) the new corrections, obtained through the medical image viewer and editor, and (c) the features provided by the large machine learning model. The second machine learning model may be smaller in size compared to the first machine learning model, to improve the inference time and to ensure quick iterations and inference times. The model may iteratively adjust the current prediction and provide a refined prediction that is coherent with the corrections done across time.
[0049] FIG. 1-2 shows the logic of the interaction system. The two distinct processes are the initial segmentation process and the iterative correction process.
[0050] The Initial Segmentation process may run the large segmentation model on the image data that is read from a database (e.g., PACS) and can build an “Interactive adjustment session” composed of (a) the base prediction; (b) image features extracted from the segmentation model; and (c) a correction map, that may be initially empty.
[0051] The method may use PACS, picture archiving and communication system to securely store and digitally transmit electronic images and clinically relevant reports.
[0052] The Iterative Correction process can continuously update the correction map, as well as the (refined) predictions, using a Correction Model. The correction batch may be sent to the Backend, which can use this information to update the Correction map inside the Interactive adjustment session that may have been previously created by the Initial Segmentation process.
[0053] Then, the session may be fed as input to the Correction Model. This, in turn, can compute adjusted predictions, which are coherent with the (newly updated) correction map. The session may then be updated with the refined predictions, which can then be sent back to the Medical Image Viewer through the Backend. The user then may further analyze the refined prediction, may make further corrections as necessary, and may re-trigger the Iterative Correction process, until no more corrections are needed.
[0054] The “Medical Image Viewer & Editor” component may guide the interaction between the medical specialist and the backend and AI systems. It can provide a user interface that allows the user to view the medical images, request predictions, as well as perform corrections with the available tools and request refined predictions. The Medical Image Viewer & Editor can communicate with the Backend component via an API. This communication channel transmits the initial predictions, as well as corrections and refined predictions guides the interaction between the medical specialist and the backend and AI systems. It can provide a user interface that allows the user to view the medical images, request predictions, as well as perform corrections with the available tools and request refined predictions.
[0055] The “Backend” component may act as a gateway between the medical image viewer, the medical image database (e.g., PACS), and the machine learning models. For each Interactive Adjustment process, it can maintain a session holding the necessary information for the Correction Model to perform iterative adjustments. The Backend may provide a manager for the Interactive adjustment session(s) that are being created while using the framework.
[0056] The “Initial Segmentation Model” (which may also be referred to as the first machine learning model) can be a large predictive model for medical image segmentation. It may be trained via conventional supervised learning approaches, using labeled medical images as training data. The Initial Segmentation Model is generally thought of as a larger, more proficient model that has two purposes: (a) provides accurate initial predictions in the form of binary segmentation mask; (b) provides a high-quality set of features as a by-product. The (initial) predictions, as well as the image features can result from running the inference job on the Initial Segmentation Model and may be persisted in an Interactive adjustment session. An (currently) empty correction map may be initialized as well, and may be incorporated into the session, to track further corrections coming from the user.
[0057] The “Correction Model” (which may also be referred to as the second machine learning model) can consist of a smaller generative model for adjusting predictions. The Correction Model may be trained in a supervised learning fashion, on the task of masked prediction. It may receive as input an Interactive adjustment session, comprising of a prediction, the (fixed) image features obtained from the Initial Segmentation Model (first machine learning model), as well as a correction map. The model may be trained to provide refined predictions that are accurate with respect to the input features, as well as coherent with the correction map.
[0058] The reconstruction process may be made possible through a process like current state-of-the-art image generation techniques given masked images.
[0059] The Iterative Correction process can be a key part of the invention. As this process may be called repeatedly, it may be beneficial for the total time between sending the corrections and receiving the refined predictions to be as small as possible, to ensure quick iterations. Several techniques may be employed to optimize the latency of the Iterative Correction process, including (a) persisting the processed image features obtained from the Initial Segmentation Model; (b) sending corrections and refined predictions in differential format, to reduce network overhead; and (c) employing a smaller Correction Model architecture, to obtain a quicker inference time. In some embodiments, the recommended maximum inference time for the inference using the Correction Model may be approximately 2 seconds per iteration, and the total time of the process may be less than approximately 5 seconds, to ensure quick interactivity. For example, in some implementations, a GPU such as an NVIDIA RTX 3070 GPU can support a maximum of 20.31 TFLOPS, which means that the total number of floating-point operations may ideally be less than approximately 30 billion, considering a throughput of approximately 75% throughout one iteration. Other GPU configurations and performance thresholds may be used depending on the specific implementation requirements.
[0060] The Correction Model may also ultimately run inside the client machines (if the client machine specifications permit performing efficient machine learning inference) to eliminate any network overheads. This would allow an iteration to be performed in less than one second, on a computer with mid- to high-end GPUs.
[0061] One possible reference implementation of the invention is provided below, separating each of the components mentioned in the previous section. This illustrates how the invention may be used in a practical scenario, inside a clinical pipeline. This reference implementation can leverage a modern and high-performance technology stack, using industry-backed frameworks such as, by way of non-limiting examples, React, PyTorch, FastAPI, and Redis. Other frameworks, programming languages, and technology stacks may be used in alternative implementations.
[0062] One reference implementation of the Medical Image Viewer & Editor component may consist of a web-based user interface, written as a single-page app, using a Javascript framework such as, by way of non-limiting example, “React” to support interactivity. The web interface may also contain a study browser, populated in accordance to the database, fed through the API of the Backend. The web application may also allow low-latency full-duplex communication with the Backend through WebSockets or other suitable communication protocols.
[0063] One reference implementation of the Backend component may consist of a server written in a programming language such as Python, using a library such as, by way of non-limiting example, FastAPI for exposing a REST API interface for general use, as well as a WebSocket endpoint for full-duplex communication required throughout the Interactive Correction process. Other programming languages, libraries, and communication protocols may be used in alternative implementations.
[0064] Additionally, the system should be designed to support integration with existing medical imaging software and databases, such as Picture Archiving and Communication Systems (PACS), to streamline the data retrieval and storage processes. Implementing strict privacy measures, including data encryption and access control, will ensure compliance with applicable privacy regulations and protect patient information throughout the entire process.
[0065] Furthermore, the Backend should be able to store the Interactive adjustment session(s) in-memory for quick read access, or employ a more robust caching solution, such as Redis, to ensure scalability. The Backend may also host and manage the Machine learning models, to reduce the number of network hops required when triggering the Iterative Correction process.
[0066] One reference implementation of the invention may involve the use of a Python-based deep learning framework, such as TensorFlow or PyTorch, for training, benchmarking, and deploying the Initial Segmentation and Correction machine learning models. The models can be trained on a high-performance computing (HPC) cluster or cloud-based infrastructure to handle large-scale medical image datasets.
[0067] The Initial Segmentation Model architecture may be implemented as an encoder decoder-like architecture (U-Net or similar), by alternating Transformer layers with Convolutional layers. In order to improve efficiency, a two-phase segmentation may be employed:
[0068] 1. First, a detection phase computes bounding boxes for each of the target labels;
[0069] 2. Second, features from each depth of the decoder may be cropped to the bounding box and fed to the decoder, to reduce the dimensionality of the input space and label sparsity.
[0070] The Correction Model architecture may be implemented as a light decoder (compatible with the detector of the Initial Segmentation Model described above). The decoder would receive features from each layer of the Segmentation Model encoder, as well as the (masked) label, cropped to the detection bounding box. The correction Model should output a refined label as a binary mask, that is coherent with the unmasked bits of the (masked) input label. The model may be trained in a supervised fashion, by simulating adjustment sessions: starting from a base prediction, one may generate artificial corrections by iteratively replacing bits of the prediction with the available ground truth mask and train the model to (better) predict the true mask.
[0071] Access to patient data and medical images can also be a critical aspect of the present invention. The system may ensure that authorized personnel, such as medical professionals and researchers, have access to the necessary data for contouring and treatment planning purposes.
[0072] For training purposes, the system may use anonymized datasets in DICOM format. For use purposes, the same DICOM format is used. However, data encryption methods may be employed at the client side to ensure that the sensitive clinical data is stripped and not accessible to unauthorized parties.
[0073] Privacy is a paramount concern in the development and implementation of the present invention. The system may ensure that patient data and medical images are handled with the utmost care and in compliance with all applicable privacy regulations. Access to patient information is strictly controlled, and data encryption measures are implemented at the client side to protect data transmission and storage before they are sent to be processed inside the Backend.
[0074] Furthermore, the system may incorporate robust authentication and authorization protocols to prevent unauthorized access to patient data.
[0075] The systems and methods described herein may provide technical improvements to medical image processing by reducing the computational burden of iterative contour refinement through the use of a smaller, faster correction model (second machine learning model) that operates on pre-computed image features, thereby enabling real-time interactive feedback during the contouring workflow. This technical architecture may address the specific problem of latency in iterative machine learning inference by decoupling the computationally expensive feature extraction performed by the first machine learning model from the lighter-weight prediction refinement performed by the second machine learning model. In some embodiments, by persisting the image features extracted during initial segmentation and reusing them across multiple refinement iterations, the system may reduce redundant computation and enable rapid response times suitable for interactive clinical workflows.
[0076] In a preferred embodiment, a system for performing interactive contouring of anatomical structures for radiotherapy treatment planning may include at least one processor and a memory storing instructions that, when executed, cause the system to receive medical image data, generate initial contour predictions and image features using a first machine learning model, display the predictions in a user interface, receive user corrections, and generate refined predictions using a second machine learning model based on the initial predictions, image features, and user corrections.
[0077] Although the foregoing has been described in some detail for purposes of clarity, it will be apparent that certain changes and modifications may be made without departing from the principles thereof. It should be noted that there are many alternative ways of implementing both the processes and apparatuses described herein. Accordingly, the present embodiments are to be considered illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims.
[0078] Those having skill in the art will appreciate that many changes may be made to the details of the above-described embodiments without departing from the underlying principles of the invention.
Claims
1. A system for performing interactive contouring of anatomical structures for radiotherapy treatment planning, the system comprising:at least one processor;a memory storing instructions that cause the system when executed by at least one processor to:receive medical image data;generate, using a first machine learning model, initial contour predictions for at least one anatomical structure and image features extracted from the medical image data;display the initial contour predictions in a user interface configured to receive user corrections via one or more contouring tools;receive user corrections to the initial contour predictions via the user interface; andgenerate, using a second machine learning model, refined contour predictions based on the initial contour predictions, the image features, and the user corrections.
2. The system of claim 1, wherein the instructions further cause the system to establish an interactive adjustment session including a base prediction, the image features, and a correction map.
3. The system of claim 2, wherein the correction map is initially empty and is updated based on the user corrections received via the user interface.
4. The system of claim 1, wherein the first machine learning model generates the initial contour predictions as a binary segmentation mask.
5. The system of claim 1, wherein the second machine learning model has fewer parameters than the first machine learning model.
6. The system of claim 1, wherein the first machine learning model includes an encoder-decoder architecture with transformer layers and convolutional layers.
7. The system of claim 1, wherein the one or more contouring tools includes at least one of a brush tool, a pen tool, a selection tool, Boolean operators, or margin adjustment tools.
8. A computer-implemented method for refining contour predictions in radiotherapy treatment planning, the method comprising:receiving medical image data by at least one processor;generating initial contour predictions for at least one anatomical structure and image features extracted from the medical image data by the at least one processor using a first machine learning model;displaying the initial contour predictions in a user interface;receiving user corrections to the initial contour predictions via the user interface;generating refined contour predictions based on the initial contour predictions, the image features, and the user corrections by the at least one processor using a second machine learning model; anddisplaying the refined contour predictions in the user interface.
9. The method of claim 8, further including establishing an interactive adjustment session that includes a base prediction corresponding to the initial contour predictions, the image features, and a correction map that tracks the user corrections.
10. The method of claim 9, further including iteratively updating the correction map and the refined contour predictions in response to additional user corrections until no further corrections are received.
11. The method of claim 8, wherein the medical image data includes at least one of computer tomography image data or magnetic resonance imaging data.
12. The method of claim 8, wherein the at least one anatomical structure includes at least one of a tumor volume or an organ at risk.
13. The method of claim 8, wherein the second machine learning model generates the refined contour predictions in less than two seconds.
14. The method of claim 8, wherein the medical image data is retrieved from a picture archiving and communication system.
15. A non-transitory computer-readable medium storing instructions that, when executed by at least one processor, cause the at least one processor to perform operations comprising:receiving medical image data;generating initial contour predictions for at least one anatomical structure and image features extracted from the medical image data using a first machine learning model;displaying the initial contour predictions in a user interface configured to receive user corrections;receiving user corrections to the initial contour predictions via the user interface; andgenerating refined contour predictions based on the initial contour predictions, the image features, and the user corrections using a second machine learning model.
16. The non-transitory computer-readable medium of claim 15, wherein the operations further include establishing an interactive adjustment session including a base prediction, the image features, and a correction map.
17. The non-transitory computer-readable medium of claim 15, wherein the first machine learning model employs a two-phase segmentation including a detection phase that computes bounding boxes for target labels and a segmentation phase that processes features cropped to the bounding boxes.
18. The non-transitory computer-readable medium of claim 15, wherein the second machine learning model includes a decoder that receives features from an encoder of the first machine learning model and outputs a refined binary mask.
19. The non-transitory computer-readable medium of claim 15, wherein the operations further include persisting the image features to reduce latency during iterative refinement of the contour predictions.
20. The non-transitory computer-readable medium of claim 15, wherein the second machine learning model is configured to execute on a client device to reduce network latency.
