Agolabs

StereoWatch Plugin Home

StereoWatch is an ESAPI Plugin for Varian Eclipse TPS which allows to evaluate Eclipse Stereotactic Plans.

Current version is StereoWatch v.1.2.0 for Eclipse version 13.5. StereoWatch is a work in progress so this release should be considered a beta. If you are interested in StereoWatch please ask the author.

StereoWatch v.1.4.5.1 is for Eclipse version 18 and contains some interesting addition like usage of the Ring structure as proxy (see History).

IMPORTANT: please refer to Plugins Home for information about usage, license and AgolabsPreferences.txt text file.

IMPORTANT: StereoWatch uses the OxyPlot .NET library which is licensed under MIT license. The author gratefully thanks OxyPlot developers for their work.

Overview

StereoWatch allows to evaluate Eclipse External Beam Plans for Stereotactic treatments. Currently only Plans for brain targets, single-fraction (Radiosurgery-SRS) and three fractions, are supported.

How it works

  1. In Eclipse, open/create an External Beam Plan. Calculate dose and prescribe to have valid dose distribution in the Plan.
  2. Launch StereoWatch plugin.
  3. The StereoWatch window opens.
  1. Check Patient, Prescription and Plan information on the Info panel.
  2. Check/modify the Protocol used for analysis in the Protocol box.
  3. Check/modify data in Technique panel.
  4. Control/modify the matching of the structures in the listview boxes.
  5. Examine StereoWatch Results using colors, values in the Results columns of the listview boxes and StereoWatch Score bar. Results can be expressed in Gy, cc (cubic centimeters) or % (point to the Legend popup for details). Some Results in Gy are also reported in % of Prescription Dose in the PD columns of the listview boxes.
  6. Switch to Stereo Analysis panel and check Conformit and Gradient Indexes. Have a look at XY Gradient curves and R50% XY Gradient polar plot.
  7. Switch to X, Y and Z panels and have a look at the dose profiles to see if the dose is peaking inside the target as you like and examine its gradient values.
  1. Now switch to X, Y and Z Profile panels to look how the dose profile (in X, Y and Z directions) peaks inside the target (filled colored area) and have information about the 70-50-20% gradients. The small circle shows the position of maximum dose.
  1. The StereoWatch analysis can reveal weak points of a Stereotactic Plan and push the planner to further Plan optimization. If this is the case just click on the Cancel button to close StereoWatch window and proceed with Plan optimization and another StereoWatch analysis.
  2. Once you’re happy with the Results of your Plan, click on the Append data button to save main Plan data in your Export File and close StereoWatch window.

StereoWatch UI in details

  1. On top left (Info panel) Patient, Prescription and Plan information is shown (see The PLAN label paragraph for more information on the special PLAN label). RES label reports dose voxel dimensions, pointing at it also planning CT resolution is also shown in a popup window.
  2. On top center you can find Protocol and Export panels:
    • Pat PID = optional Protocol ID to assign to Patient
    • Protocol = select the Breast Protocol to be used for analysis; only protocols with compatible dose prescriptions can be selected
    • Export Drawer = file path where to find the Export File
    • Export File = the file name of the exported file
    • write headers = check this to add a header row to Export File
    • Comments = add here comments to be saved in Export File for this patient
  3. On top right the Technique panel contains checkboxes for 3DCRT/IMRT/VMAT/SUM automatically selected by the script (please note that Plan Sums are currently not supported).
  4. On top right the Site panel reports the treatment site automatically selected by the script.
  5. Below the upper panels you can find a series of listview boxes, two for each structure considered in StereoWatch :
    • Targets: PTV, GTV and optional Ring structure. The Ring structure if present is supposed to be 1 cm wide.
    • Head OARs: Brain, Optic tracts, Cochlea, Spinal cord/bulbo, Brainstem
  6. For each structure the upper listview box let’s the user select the right structure to consider for the matching (StereoWatch at start tries to find a match between the structures contained in the Plan, but this selection should be confirmed by user).
  7. The lower listview boxes show the dose constraints for the structure which are built in the selected Stereo Protocol. If the constraint is an extension of the standard Stereo Protocol a star (“*”) is put on the left of the constraint. In the case of optimal/mandatory constraints a slash (“/”) separates the constraint values.
  8. StereoWatch manages many different kinds of constraints. The user can find information about the constraints pointing to the Legend label on top right of the listview boxes (a popup window will show data legend).
  9. If the dose constraints are fulfilled their background is green, yellow if the optimal constraint are not fulfilled but the mandatory one are, red if the dose constraints are not fulfilled.
  10. In the case of starred constraints the colors are pale (pale green, pale yellow and pale red).
  11. Behind the OARs panel you can find other four panels (Stereo analysis panel and X/Y/Z panels) which are discussed in details below.
  12. On the bottom of the window you can find:
    • Bottom left: the Aria user logged in
    • Bottom right: the StereoWatch (SW) Score bar, which is 100% if all (starred and not) dose constraints are fullfilled. The bar is green if the SW Score is above 60% and red if it’s below.
    • Bottom center: the Cancel button just closes the StereoWatch window without any saving, the Append data button adds Plan data to the Export File and closes StereoWatch window.

The Stereo analysis panel

This panel shows volumetric data and information extracted from the XY plane which can be used to evaluate how the dose distribution fits the PTV.

  1. PTV – GTV cc = volume in cubic centimeters of PTV and GTV structures.
  2. PTV – GTV EqR = equivalent spherical radii of PTV and GTV in mm.
  3. PTV V100% – V95% = % of PTV receiving 100% – 95% of PD.
  4. PTV Min Dose – % = minimum PTV dose in Gy – %.
  5. PTV Median Dose – % = median PTV dose in Gy – %.
  6. PTV PITV 100% – 95% = ratio of 100% – 95% isodoses and PTV volume (a Conformity Index).
  7. Paddick CI 100% – 95% = Paddick Conformity Index, taking in account 100% – 95 % isodoses.
  8. R50% Gradient Index = ration of volume of the 50% isodose and PTV volume. Turns green or red if better/worse than the Gradient Index calculated by Agostinelli’s fit of Popple et al. (1) Fig.3 data for Rapidarc multiple non coplanar arcs.
  9. GSI 100% – 95% = Gradient Score Index. Turns Turns green or red if better/worse than the Gradient Index calculated by Reynolds et al. (3) and Agostinelli et al. (2) for Tomotherapy-based radiosurgery.
  10. 50% XY Gradient = average (min-max) of the distance of the 50% isodose from PTV surface in mm derived from Gradient curves in XY plane.
  11. 50% Z Gradient = average (Z-/Z+) of the distance of the 50% isodose from PTV surface in mm from the Z- and Z+ Gradient curves. These values can be useful to compare Z Gradients and XY Gradients.
  12. The XY Gradient Profile graph shows the dose fall-off (Gradient curve) beyond target surface (x=0).
    • The x-axis is the distance (a.k.a. delta) from PTV surface calculated diverging from PTV’s center. The y-axis is the isodose expressed in % of the PD.
    • The green curves are the min-max-average (dashed-dashed-solid) Gradient curves in the XY plane.
    • The purple curves are the Z-/Z+ (dashed – solid) Gradient curves.
    • The small graph on top right is the polar plot of the 50% delta in XY plane (use this to evaluate the circularity of the 50% XY dose fall-off).

The X/Y/Z panels

These panel show the dose profiles in X/Y/Z directions centered on PTV’s center, providing also numerical quantification of the dose outside the PTV.

  • Target Width = PTV Width in mm.
  • Max Dose % = the dose maximum inside the PTV.
  • Off peak offset = the distance of the dose maximum from PTV’s center in mm.
  • 70% – 50% – 20% delta = the delta (distance from PTV surface) for 70-50-20% isodoses in -/+ directions.
  • 70% – 50% – 20% FW = Full Width of 70-50-20% isodoses.
  • X/Y/Z Profile = the plot of the dose profiles in X/Y/Z directions centered on PTV’s center. The x-axis is the distance from PTV’s center in mm. The y-axis is the isodose in % of the PD. On the same plot the extension of the PTV is rendered as a filled colored area.

Protocol selection

At launch, StereoWatch examines Plan’s Prescription (Total Prescribed Dose and number of fractions) and the structures contained in the Plan. Using this information the compatible StereoProtocols are made available for user selection in the Protocol box.

What’s written in the Export File

StereoWatch appends in the Export File a selection of Patient and Plan information. Data is TAB separated and can be easily opened with a spreadsheet. To find out what’s written and what’s not, point to the Procotol label and a popup window will show data headers that will be written in the Export File.

The first time you write to your Export File click on the write headers checkbox to write as first row of the Export File the data headers.

The PLAN label

For Plans containing Eclipse beams (no Dose Plans), the PLAN label in the info Panel signals anomalies found during the plan sanity check (psc) of the Plan. If PLAN is green the psc was passed, red if the psc was not passed. Click on the PLAN label to find out what the psc signals out.

Bibliography

(1) Popple RA, Brown MH, Thomas EM, Willey CD, Cardan RA, Covington EL, Riley KO, Markert JM, Bredel M, Fiveash JB. Transition From Manual to Automated Planning and Delivery of Volumetric Modulated Arc Therapy Stereotactic Radiosurgery: Clinical, Dosimetric, and Quality Assurance Results. Pract Radiat Oncol. 2021 Mar-Apr;11(2):e163-e171. doi: 10.1016/j.prro.2020.10.013. Epub 2021 Feb 23. PMID: 33632630.

(2) Agostinelli S, Garelli S, Gusinu M, Zeverino M, Cavagnetto F, Pupillo F, Bellini A, Taccini G. Dosimetric analysis of Tomotherapy-based intracranial stereotactic radiosurgery of brain metastasis. Phys Med. 2018 Aug;52:48-55. doi: 10.1016/j.ejmp.2018.06.632. Epub 2018 Jun 21. PMID: 30139609.

(3) Reynolds TA, Jensen AR, Bellairs EE, Ozer M. Dose Gradient Index for Stereotactic Radiosurgery/Radiation Therapy. Int J Radiat Oncol Biol Phys. 2020 Mar 1;106(3):604-611. doi: 10.1016/j.ijrobp.2019.11.408. PMID: 32014151.

Eclipse plans:

  • 3D Plans OK
  • IMRT Plans OK
  • VMAT Plans OK
  • Plan Sums NO
  • Dose Plans OK