Introduction

Cervical cancer ranks as the fourth most prevalent malignant tumor among women globally [1]. Radiotherapy has served as a critical treatment modality for patients with locally advanced, lymph node-positive, and/or high-risk cervical cancer [2,3,4,5], as well as the standard regimen for postoperative adjuvant therapy [6, 7]. Radiotherapy for cervical cancer could lead to severe toxic reactions in the gastrointestinal, urinary, and hematological systems [8, 9]. Optimizing dose distribution with advanced radiotherapy techniques could help to minimize the side effects [10]. Tomotherapy (TOMO) and volumetric modulated arc therapy (VMAT) are two widely used and effective external beam radiotherapy techniques for treating cervical cancer [11, 12]. In clinical practice, radiotherapy dosimetrists manually created treatment plans using treatment planning systems (TPS), which often require optimization with multiple iterations and trial-and-error to meet dose constraints. However, due to the large treatment area required for cervical cancer, a delicate balance between achieving sufficient tumor coverage and protecting organs at risk (OARs) is necessary. Furthermore, the variations in patients' anatomy make the process of manual planning complex, cumbersome, and time-consuming [13, 14]. The variations of planner's expertise, execution standards, and effort expended, potentially lead to inconsistent plan quality, which not only increase the risk of toxicity to OARs but also complicate the outcomes and interpretations of clinical trials [15]. Therefore, it is essential to enhance the plan quality and consistency.

The application of automated radiotherapy planning allows for procedures to be executed with as little human intervention as possible, effectively improving the quality, efficiency, and consistency of radiotherapy planning [16]. There are primarily two types of strategies for automated planning: strategies based on atlas prediction of optimization objectives and script-based strategies that emulate manual optimization. The atlas-based methods use data from previous radiotherapy plans to train models that predict dose distribution for new patients [13]. However, this method is highly dependent on the training datasets [17], and tends to struggle when adapting to new cases that differ significantly from the training data. In contrast, the script-based methods don’t require a prior training or learning step [18, 19]. In the radiotherapy of cervical cancer, particularly with the VMAT technique, mature automated planning methods have already been developed and have been proven to achieve better plan quality and greater efficiency than manual planning [20,21,22,23]. However, research into the automated planning for TOMO plans in cervical cancer remains unreported, suggesting room for improvement and development.

It is well known that the Precision (Accuray Inc., Sunnyvale, CA, USA) TPS for TOMO lacks the function for implementing scripts, whereas RayStation (RaySearch Labs, Sweden) TPS possesses functions for TOMO planning and scripting. In this study, we developed a script-based automated TOMO (A-TOMO) planning method for external beam radiotherapy in cervical cancer using RayStation TPS, and the A-TOMO plans were compared with those from manual TOMO (M-TOMO) planning and automated VMAT (A-VMAT) planning to validate its feasibility and effectiveness.

Materials and methods

Patients

In this study, we consecutively selected 30 cervical cancer patients who underwent TOMO treatment at our center in 2023. This study strictly adhered to the ethical principles outlined in the Declaration of Helsinki and the protocol was approved by the institutional review board and ethics committee at Tianjin Medical University Cancer Institute & Hospital. All participants provided written informed consent. Among these 30 patients, 26 patients underwent definitive radiotherapy, and 4 received postoperative radiotherapy. All the TOMO plans were manually designed, with all patients receiving a dose of 50.4 Gy in 28 fractions. The patients were treated in two positions: 12 in the prone position and 18 in the supine position. The average volume of the planning target volume (PTV) was 1347.45 ± 179.28 cc, ranging from 1122.82 to 1862.99 cc. The average overlapping rate of the bladder in the PTV was 37 ± 11%, with a range from 13 to 64%. For the rectum, the average overlap rate with the PTV was 52 ± 13%, ranging from 24 to 72%. The average overlapping volume of the bowel bag in the PTV was 115.79 ± 52.09 cc, ranging from 8.05 to 205.67 cc.

CT simulation and Contouring

CT scans were performed to obtain images with a thickness of 5 mm. To ensure bladder filling, patients were instructed to drink 500 ml of water 30 min before the scans. Following the Radiotherapy Oncology Group (RTOG) guidelines, radiotherapy oncologists delineated the targets and OARs on the CT images, including the clinical target volume (CTV), PTV, bladder, rectum, bowel bag, femoral heads, and kidneys. For patients undergoing definitive radiotherapy, the CTV encompassed the uterus and its lymphatic drainage area. For those receiving postoperative radiotherapy, the CTV included the lymphatic drainage area of the radical uterus. The PTV was defined by expanding the CTV by 7 mm in all three dimensions.

Radiotherapy planning

Radiotherapy planning protocol

The radiotherapy planning protocol in our center adhered to the dose limits for the PTV and OARs as recommended by the National Comprehensive Cancer Network (NCCN) guidelines and the recommendations of Quantitative Analysis of Normal Tissue Effects in the Clinic (QUANTEC), as detailed in Table 1. Here, Dmax denoted the maximum dose, VxGy represented the volume receiving x Gy in the dose volume histogram (DVH), and Dmean indicated the mean dose. This protocol of dose volume limits ensured the priority fulfillment of hard constraints for indexes, which meant that in case of conflicts between OARs protection and PTV coverage, partial prescription coverage of PTV could be compromised.

Table 1 Target and OAR dose constraints

M-TOMO planning

The clinical M-TOMO plans for the 30 patients were created using the Precision TPS with the TOMO Radixact Linac (Accuray Inc., Sunnyvale, CA, USA). These plans utilized the dynamic jaw mode with a jaw width set to 2.51 cm. Three plans used a pitch of 0.287, while the remaining 27 plans had a pitch of 0.43. The average Modulation Factor (MF) was 1.99 ± 0.41. Helical mode was employed, and dose calculation was performed using the collapsed cone algorithm, with the final dose calculation was performed in high-resolution mode. The radiotherapy plans for these 30 patients were randomly assigned to 14 dosimetrists, each employing potentially different manual optimization strategies. All plans were approved by oncologists for clinical treatment.

A-TOMO planning

Creation of auxiliary structures

The method for creating auxiliary structures is detailed in Table 2. To facilitate meeting clinical dose requirements and to concentrate PTV dose deficits in areas overlapping with OARs as much as possible, we processed these overlapping sections as described in Fig. 1A. We ensured that the overlapping volumes of the rectum and bladder in the PTV were less than or equal to 45% of their total volume, and the overlapping volume of the bowel bag in the PTV was less than or equal to 110 cc, based on clinical requirements and experience. For example, the auxiliary structures PTV_new and rectum-ptv, created for preprocessing the overlapping section between the rectum and PTV, are shown in Fig. 2. To address potential dose control challenges caused by larger bowel volumes, we specifically created an auxiliary structure named "bag" to aid optimization. We set optimization goals based on each patient's bowel volume, calculated as (195/Vbag)%, and took the integer part of the value.

Table 2 The creation method of auxiliary structures
Fig. 1
figure 1

The workflow of the script-based automated planning method. A Flowchart for creating auxiliary structures. B Flowchart for the execution of the automated planning script. Note: Vbladder_PTV, Vrectum_PTV, and Vbowel bag_PTV represented the volumes of intersection between the bladder, rectum, and bowel bag with the PTV, respectively. The 'abstract 0.5mm' indicated that with each cycle, the PTV was contracted inward by 0.5 mm

Fig. 2
figure 2

Examples of the auxiliary structure creation. Left: The green area represented the rectum, and the blue area represented the PTV. Right: The red area represented rectum-ptv, the brown area represented PTV_new, and the remaining green part represented rectum_new. Equations: rectum − rectum_new = rectum-ptv; PTV − (rectum-ptv) = PTV_new. Note: rectum_new represented the volume of intersection between the rectum and the PTV after it has been contracted inward

Formulation of A-TOMO planning

The A-TOMO planning script was developed using the scripting function in RayStation 10B (RaySearch Labs, Sweden) TPS, within a Python (3.6) environment. This script utilized the standard model of the Radixact Linac for dose optimization and calculation. After verifying the contours and region of interest (ROI) names, the CT images were imported into the RayStation system, initiating the automated planning script. The workflow of the A-TOMO planning script is shown in Fig. 1B. Firstly, the script automatically selected the CT electron density conversion table and set the outline (body) type to “External”. A dose grid size of 0.3 × 0.3 × 0.3 cm was established. A virtual couch was inserted, and auxiliary structures were created. The script then automatically created a new plan and added beams, adjusting machine parameters, including setting the delivery time factor (DTF) to 1.7, the optimization stopping tolerance to 0, and the maximum number of iterations to 100. The system automatically loaded the optimization objective template, as listed in Table 3. The entire optimization process consisted of two rounds, each with 100 iterations of optimization. Ultimately, the plan was normalized so that the prescription dose covered 95% of the PTV volume, completing the optimization process. If the final normalized doses to OARs exceeded dose constraints, manual normalization was made by the dosimetrists as needed. Moreover, the A-TOMO planning script defaulted to a pitch of 0.43 and a jaw width of 2.51 cm, employing dynamic jaw mode and the collapsed cone dose calculation algorithm. The average MF for these plans was 1.83 ± 0.17.

Table 3 The optimization objective template
A-VMAT planning

The A-VMAT planning script was developed in the RayStation 10B TPS and Python (3.6) environment, employing an optimization strategy similar to that used for the A-TOMO plan. The automated plans were optimized based on a standard model for the TrueBeam Linac (Varian Medical Systems, Palo Alto, CA, USA) with 6 MV and a 120-leaf millennium multi-leaf collimator (MLC). In the A-VMAT planning script, two beams with gantry angles from 181° to 179° were automatically created, irradiating in both clockwise and counterclockwise directions. Moreover, the collimator angles were set to 355°. The maximum values for the jaws X1, X2, Y1, Y2 were set to 1, 14, 20, 20, and 14, 1, 20, 20 (cm), respectively, with jaw tracking mode, and the gantry spacing set at 2°. During optimization, the stopping tolerance was set to 0, employing the collapsed cone dose calculation algorithm with a calculation grid size of 0.3 × 0.3 × 0.3 cm. The maximum number of iterations was 100, with the iterations before conversion set at 40. The optimization process included two rounds, each consisting of 100 iterations. The system defaulted to optimizing segment shapes and segment MU.

Evaluation

To evaluate the differences between radiotherapy plans, we conducted comparisons from two perspectives. Firstly, we compared A-TOMO plans with M-TOMO plans; secondly, we compared A-TOMO plans with A-VMAT plans. These comparisons primarily focused on the dosimetric indexes for PTV and OARs. For the assessment of OARs, our analysis concentrated on the dosimetric indexes for the bladder, rectum, and bowel bag (D0.03cc, V50Gy%, V40Gy%, Dmean), femoral head_L, femoral head_R (V50Gy%, Dmean) and kidney_L, kidney_R (Dmean). For the PTV, we used Dmax, conformity index (CI), and homogeneity index (HI) for evaluation. Additionally, we assessed the dose drop-off outside the target volume using gradient index (GIx) for thresholds of 40 Gy, 30 Gy, 20 Gy, and 10 Gy. The CI, HI, GIx were defined in the formulas below:

$${\text{HI}} = \frac{{{\text{D}}_{2{{\% }}} - {\text{D}}_{98{{\% }}}}}{{{\text{D}}_{50{{\% }}}}}$$

The D2%, D98%, and D50% referred to the doses received by 2%, 98%, and 50% of the PTV volume in the DVH, respectively. A lower HI indicated better uniformity of the dose distribution within the PTV.

$${\text{CI}} = \frac{{{\text{TV}}_{{{\text{PTV}}}} \times {\text{ TV}}_{{{\text{PTV}}}} }}{{{\text{V}}_{{{\text{PTV}}}} {\text{ }} \times {\text{ V}}_{{{\text{TVP}}}} }}$$

The TVPTV represented the volume within the PTV encompassed by the prescription dose line, and the VPTV was the volume of the PTV, and the VTVP was the volume encompassed by the prescription dose line. The closer the CI value was to 1, the better the conformity.

$${\text{GI}}_{{\text{x}}} = \frac{{{\text{V}}_{{{\text{x}}}} }}{{{\text{V}}_{{{\text{TVP}}}} {\text{ }} }}$$

The Vx referred to the volume encompassed by the x Gy dose line, while the VTVP represented the volume encompassed by the prescription dose line. A smaller GIx value indicated a faster dose drop-off outside the target volume.

Furthermore, we conducted a statistical analysis on the treatment delivery time as directly displayed by the TPS. To comprehensively evaluate work efficiency, we also assessed the time required to execute the automated treatment planning scripts.

Statistical analysis

Before conducting the statistical analysis, we renormalized the A-TOMO and A-VMAT radiotherapy plans to ensure they matched the prescription dose coverage of the PTV as the M-TOMO plans. The data were found not to follow a normal distribution; hence, we employed the two-sided Wilcoxon signed-rank test as our statistical method, using the Wilcoxon function from the scipy.stats library in Python. In this analysis, a P-value less than 0.05 was considered statistically significant. To clearly present and compare the outcomes of different treatment plans, we recorded the mean values and standard deviations of each dataset.

Results

A-TOMO Plan versus M-TOMO plan comparison

In comparing the A-TOMO plans and M-TOMO plans for the 30 patients, it was found that for 5 patients, neither the manual nor the automated plans could achieve prescription dose coverage of 95% PTV, while meeting the dose constraints for OARs. The dosimetric comparison results are shown in Table 4. Although both plans demonstrated similar performance in terms of PTV Dmax and HI (P+ = 0.92, 0.11), A-TOMO plans significantly surpassed M-TOMO plans in PTV CI (P+ < 0.01) and achieved greater reductions in OAR doses. Specifically, for the D0.03cc for the bladder, rectum, and bowel bag, and the V45Gy for the bowel bag, the two plans were comparable (P+ = 0.12, 0.57, 0.52 > 0.05; P+ = 0.11). However, for the V50Gy%, V40Gy%, and Dmean for the bladder and rectum, as well as the Dmean for the bowel bag, kidney_L, and kidney_R, A-TOMO plans were significantly lower than those in M-TOMO plans (P+ < 0.05). The V50Gy% for femoral head_L and femoral head_R in both plans were nearly identical, close to 0. Additionally, the GI40Gy, GI30Gy, and GI20Gy values were significantly lower in A-TOMO plans than in M-TOMO plans (P+ < 0.01), indicating a faster dose drop-off outside the target volume in A-TOMO plans, thereby exposing normal tissues to lower radiation doses. The mean values ± standard deviations of the dose metrics also indicated better consistency in A-TOMO plans. Figure 3 presents a comparison of representative dose distribution and DVH for key ROIs for a case.

Table 4 Comparison of dosimetric indexes for three types of plans
Fig. 3
figure 3

Dose Distributions and DVH of Three Plans of a case

A-TOMO plan versus A-VMAT plan comparison

The dosimetric comparison results between A-TOMO and A-VMAT plans for the 30 patients are shown in Table 4. The A-VMAT plan showed a slight advantage over the A-TOMO plan in terms of the GI, but it presented slightly higher values for the PTV (Dmax, D2%), bladder (D0.03cc, V50Gy%, Dmean), rectum (V50Gy%, V40Gy%, Dmean), bowel bag (D0.03cc, Dmean), femoral head_L (Dmean), and femoral head_R (V50Gy%, Dmean). Although these differences were statistically significant (P < 0.05), the actual numerical differences were within 1 Gy and 1%. This suggests that the A-TOMO plan was comparable in overall plan quality to the A-VMAT plan, and may even be superior. Representative dose distributions and DVH for key ROIs of the case are displayed in Fig. 3.

Regarding the workflow efficiency, the execution time for the A-TOMO planning script was approximately only 20 min, whereas that for the A-VMAT planning script took slightly longer, about 30 min. In terms of treatment delivery efficiency, as reported by the TPS and shown in Table 5, the dose delivery time for A-TOMO plans was slightly increased compared to M-TOMO plans. In contrast, A-VMAT plans demonstrated superior dose delivery efficiency, requiring less than 3 min, which was significantly less than the time required for TOMO plans.

Table 5 Treatment delivery parameters

Discussion

In this study, we successfully developed and validated the first automated Tomotherapy planning method for cervical cancer. This automated planning strategy not only significantly improved the quality of the plans but also enhanced work efficiency. The automated planning method we proposed could automatically generate personalized dose distributions based on the unique anatomical characteristics of different patients, offering greater generalization. The entire process required almost no manual intervention and was compatible with commercial TPS, which was easily applicable in clinical routine.

A fundamental principle of radiotherapy is ensuring adequate dose coverage to the target while minimizing the dose to OARs and normal tissue, thereby reducing unnecessary radiation-induced harm to the patient. Our study results demonstrated that A-TOMO plans significantly improved target dose conformity without sacrificing homogeneity, and reduced the dose to OARs and normal tissues compared to clinical M-TOMO plans. This was particularly true for critical indexes such as the V50Gy%, V40Gy% and Dmean for the rectum and bladder, as well as the Dmean for the bowel bag. Although no statistical significance was observed in the V45Gy (cc) for the bowel bag between the two types of plans, the mean value for A-TOMO plans was 141.83 cc, lower than the 146.39 cc for the M-TOMO plans. Studies indicated that further reducing the dose to the small intestine and rectum could help decrease gastrointestinal toxicity [24,25,26].

The improvements in plan quality are influenced by the experience and effort of different dosimetrists and could also be affected by differences between TPS. Notably, differences exist between the Precision TPS and RayStation TPS, with Precision TPS lacking the equivalent uniform dose (EUD) function and allowing a maximum of only three optimization objectives for each ROI. Moreover, in the TOMO optimization process within Precision TPS, each voxel is assigned to only one ROI. Considering that the quality of M-TOMO plans could inevitably be influenced by subjective human factors, we compared A-TOMO plans with A-VMAT plans. The study results showed that the quality of these two types of plans was comparable, further affirming the plan quality of A-TOMO planning. A study by Panda et al. [27] suggested that VMAT and TOMO were equivalent in treating cervical cancer. A finding corroborated by the experimental data from Marnitz et al. [28], also aligned with our study results. These indicated that the A-TOMO planning method we developed further standardized TOMO planning, effectively showcasing the capabilities of TOMO technique.

Dose-volume parameters are simplified substitutes for potential biological effects and didn’t necessarily reflect the entire treatment region's dose distribution [29]. Combining dose-volume constraints with EUD could yield better dose distributions [30]. We set the EUD objective value to 0, as a previous study [31]. Additionally, studies showed that automated plans based on predicted EUD values were superior in quality to manual plans [32, 33]. We analyzed the relationship between the overlap of bladder, rectum, bowel bag and PTV with EUD (A = 1) in A-TOMO plans, as shown in Fig. 4. The Pearson correlation coefficients for bladder and rectum were 0.88 and 0.84, respectively, with R2 values of 0.78 and 0.70, indicating a strong linear relationship. It suggested that automated planning based on the predicted EUD method had research potential and was worth further exploration.

Fig. 4
figure 4

Regression Model of EUD (A = 1). A Logistic regression of the overlap rate between the bladder and PTV with the bladder's EUD; y = 33.05x + 22.61 was the fitted linear equation. B Logistic regression of the overlap rate between the rectum and PTV with the rectum's EUD; y = 15.80x + 28.70 was the fitted linear equation. C Logistic regression of the overlap volume between the bowel bag and PTV with the bowel bag's EUD; the linear correlation was not strong

One of the significant features of the automated planning was its high efficiency, and our study results were consistent with this observation [34,35,36]. In our study, A-TOMO and A-VMAT planning only required about 20 min and 30 min to complete, respectively. However, as described by dosimetrists, the M-TOMO plans required repeated adjustments and could take several hours from start to submission. Our script set two consecutive rounds of iteration, each with 100 iterations, to seek the final solution. Although we had not yet delved into the possibility of achieving an optimal solution with fewer iterations, this exploration might further shorten the script execution time. In the future, incorporating contouring into the automated planning process could realize a more complete automated planning workflow, further saving time and improving efficiency.

Although the A-TOMO plan improved work efficiency, the treatment delivery time was longer compared to M-TOMO plans. This could be due to several reasons, including more stringent dose constraints and the DTF parameter in A-TOMO plans being set to 1.7, which made the execution time of each rotation approximately 20 s. A previous study indicated that increasing the DTF, while improving plan quality, also led to longer dose delivery times [37]. However, this did not increase the modulation of the A-TOMO plan. As shown in Table 6, the average MF value for A-TOMO was 1.83 ± 0.17, which is slightly lower than the average MF value of 1.99 ± 0.41 for M-TOMO plans, though the difference was not statistically significant. Additionally, compared to TOMO plans, VMAT plans had shorter dose delivery times, consistent with previous studies [38].

Table 6 Modulation factor

Currently, the quality of our developed A-TOMO plan has been preliminarily validated in our treatment center. To further demonstrate its effectiveness and applicability, we plan to collaborate with multiple treatment centers for broader validation studies. This cross-center collaboration will provide a detailed assessment of our A-TOMO planning method, ensuring its stability and reliability in different settings. Through future multi-center collaboration, we aim to provide a comprehensive and precise validation platform for automated cervical cancer radiation therapy planning. Moreover, given the A-TOMO planning method's ability to generate high-quality and consistent plans, it has great potential to serve as a superior data source for training automated planning systems based on the atlas model. Compared to methods that use traditional manual planning as the training set, we anticipate not only improving the model's performance but also creating higher-quality plans.

Conclusion

We have successfully developed an automated Tomotherapy planning method in RayStation TPS for external beam radiotherapy of cervical cancer. This method not only effectively improved the quality of the plans but also significantly enhanced work efficiency. Compared to M-TOMO plans, the A-TOMO plans achieved a higher level of plan quality while significantly reducing the dose to OARs. Moreover, A-TOMO plans demonstrated dose distributions similar to those of A-VMAT plans, further validating their quality and feasibility.