Open-access Implementation of automation tools for test analysis in the Radiotherapy Quality Assurance Programs

Implementação de ferramentas de automatização para análise de testes no Programa da Garantia da Qualidade em Radioterapia

Abstract

The increasing complexity of techniques used in radiotherapy demands a quality assurance program that evolves to ensure efficient quality control of equipment and associated devices. Many periodic tests rely on analyzing acquired images, typically compared to predefined standards to verify consistancy—checks that can often be automated. Automated analyses enable greater standardization, reduced subjectivity, improved accuracy, and shorter quality control times. To implement such tools, it is essential to assess factors such as accuracy, error detection sensitivity, adaptability to institution needs, and ease of access and use for those involved in quality control processes.This study evaluated two automation tool interfaces: the commercial SunCHECK Machine by Sun Nuclear® and a web application implementing modules from the open-source Pylinac library. Both interfaces were suitable to the quality assurance program, using coherent methodologies to calculate key metrics outlined in reference documents. Each tool has unique features and specific considerations, highlighted throughout the study based on evaluating Picket Fence, Star Shot, Winston-Lutz tests, field analysis, and Cone Beam Computed Tomography image quality. The findings highlight the importance of conducting studies during the implementation phase of such tools to understand the algorithms used and establish appropriate usage and control measures for routine practice. Both interfaces proved capable of quantifying the relevant quantities based on the reference documents, providing more efficient and effective quality control.

Keywords:
Radiotherapy; Quality Assurance; Pylinac; SunCHECK Machine

Resumo

O aumento crescente da complexidade das técnicas utilizadas na radioterapia exige um eficiente programa de garantia de qualidade que acompanhe essa tendência, de forma a garantir um controle da qualidade do aparelho e dispositivos associados. Muitos testes periódicos são baseados na análise de imagens adquiridas, e geralmente existem padrões aos quais essas imagens são comparadas para verificar sua constância, verificações essas passíveis de automatização. As análises automatizadas possibilitam uma maior padronização, redução da subjetividade, precisão e redução no tempo requerido para o controle da qualidade. Para a implementação de tais ferramentas é necessário avaliar fatores como precisão, sensibilidade na identificação de erros, adaptação às necessidades da instituição, e facilidade de acesso e de uso para aqueles que participam dos processos de controle da qualidade.Neste trabalho foram avaliadas duas interfaces de ferramentas de automatização, a comercial SunCHECK Machine® da Sun Nuclear, e um web aplicativo implementado contendo os módulos da biblioteca aberta Pylinac. Ambas as interfaces de avaliação se mostraram aplicáveis no programa de garantia da qualidade, calculando com metodologias coerentes as grandezas de interesse apresentadas nos documentos referência. Cada uma apresenta suas peculiaridades e áreas de atenção, que são destacadas ao decorrer do trabalho, a partir da avaliação dos testes de Picket Fence, Star Shot, Winston-Lutz, análise de campo radioativo, e qualidade da imagem do Cone Beam Computed Tomography. Com isso nota-se a importância da condução de estudos na fase de implementação de tais ferramentas, com intuito de promover o entendimento dos algoritmos utilizados, e estabelecer a forma de utilização e os controles necessários na rotina. Ambas as interfaces se mostraram capazes de quantificar as grandezas relevantes com base nos documentos de referência, propiciando um controle da qualidade mais eficiente e eficaz.

Palavras-chave:
Radioterapia; Garantia da Qualidade; Pylinac; SunCHECK Machine

1. INTRODUCTION

The objective of any quality assurance (QA) is to ensure that the performance and characteristics of the machine, associated devices, and processes do not significantly deviate from the values established during the acceptance and commissioning phase [1- 2]. The increasing complexity of planning and treatment techniques in radiotherapy also demands a more efficient, safe, and effective QA [3- 4]. In this context, many periodic tests that rely on image analysis, ranging from isocenter verification [5- 6] and multileaf collimator (MLC) performance [7- 8] to image quality evaluation for image-guided radiotherapy (IGRT) 9, can be automated either partially or entirely.

Several automation implementations are already commercially available and demonstrate significant advantages in their applicability, reducing both the time required and operator-dependent variability [10- 12]. However, acquiring these solutions may involve high costs depending on the economic context of the institution. Alternatively, fully developing in-house tools can be a viable solution, but medical physicists often lack the necessary robust training in programming and data science. In this regard, open-source libraries such as Pylinac, as they enable automated image analysis with just a few lines of code and offering multiple modules for various tests commonly used in radiotherapy quality control 13.

Despite the great potential of these tools, careful analysis must be conducted before any implementation in clinical routine to ensure that the parameters tested in automated analysis align with those established in reference documents [14- 16]. Thus, this study compares two tools for automating QA machine tests: the commercial platform SunCHECK® Machine (SCM) and an interface built using Pylinac’s open-source modules. This work does not intend to provide a rigorous quantitative analysis of the evaluated tools, given the limited dataset available from the machine on which the tests were conducted. Instead, a qualitative analysis is presented, focusing on the relationship between the obtained measurements and those defined in the reference documents, as well as the analysis methodologies, functionalities, and feasibility of implementing each interface within the QA program.

2. MATERIALS AND METHODS

This study was conducted using images acquired from the TrueBeam® (Varian Medical Systems, Palo Alto, USA) linear accelerator available at the Institute of Radiology (INRAD) of the Hospital das Clínicas da Faculdade de Medicina da Universidade de São Paulo (HCFMUSP). The machine is equipped with a Millennium® HD 120 MLC collimator, consisting of leaves that are 0.25 cm wide in the central 8 cm and 0.5 cm wide in the periphery, with a maximum field size of 22 cm.

The tests performed for evaluation included the Picket Fence, Star Shot, and Winston-Lutz tests, as well as the analysis of the radiation field and Cone Beam Computed Tomography (CBCT) image quality. MV images were acquired using a high-energy beam (6 MV with a flattening filter), while kV-CBCT images were obtained using a kilovoltage beam with a specific protocol. The detailed methodology for image acquisition for each test is described in the following sections.

The test tolerances were determined based on AAPM reports, primarily Hanley et al. (Task Group 198, 2021) 15, which provides updates and a guide for implementing the recommendations of Klein et al. ( Task Group 142, 2009) 1 regarding quality assurance.

2.1. Data Aquisition

2.1.1. Picket FenceAquisition

For the acquisition of the Picket Fence test image, the MV imaging panel, EPID (Electronic Portal Imaging Device), was positioned at a source-to-image distance (SID) of 100 cm, with the lateral and longitudinal positions centered. Irradiation was performed using a dynamic arc, with the gantry starting at 179° and rotating counterclockwise to 187°, delivering 480 MU. The acquired image, containing the 10 picket patterns with a leaf gap of 1.5 mm, formed by the movement of the MLC during the arc delivery, is presented in Figure 1.

Figure 1
Picket fence image pattern acquired in arc delivery.
2.1.2. Star Shot Aquisition

Irradiation of the characteristic star pattern for the Star Shot test was performed using narrow geometry fields, spoke shots, with a size of 0.6 × 10.0 cm² (x, y). For the evaluation of the collimator isocenter, the EPID was used with a SID of 100 cm, and images were acquired at angles of 0°, 30°, 60°, 270°, and 315°. For the evaluation of the gantry isocenter and the table isocenter, an image plate (IP) model PC Type C® (Fujfilm, Tokyo, Japan) was used. In each case, the IP was properly aligned using the lasers: positioned vertically along the axial direction for the gantry test and horizontally, perpendicular to the beam axis, for the table test (Figure 2).

Figure 2
IP setup in the Star Shot acquisition: (a) Gantry test; (b) Table test.

The gantry angles used for irradiation were 0°, 70°, 140°, 220°, and 290°, while the table angles were 0°, 45°, 90°, 300°, and 330°.

2.1.3. Winston-Lutz Aquisition

For the acquisition of Winston-Lutz test images, the MultiMet-WL® (Sun Nulclear, Melbourne, FL, USA) phantom was positioned using lasers and the light field reticle, based on the mechanical isocenter position. The central beam axis was aligned with the isocenter marker sphere of the phantom, which is made of tungsten and has a diameter of 5 mm (Figure 3).

Figure 3
Setup for the acquisition of the Winston-Lutz test with the MultiMet-WL®.

The field size used was 2.2 × 2.5 cm² (x, y) delivering 20 MU, irradiated at the gantry, collimator, and table positions described in Table 1. Images were acquired using EPID with a SID of 150 cm.

Table 1
Field setup parameters: Gantry, Collimator, and Couch angles.
2.1.4. Radiation Field Aquisition

For the acquisition of the radiation field, the collimators defined a 10 × 10 cm² field, with the EPID exposed at a SID of 150 cm. A sheet of graph paper with a centrally positioned radiopaque spherical marker was placed on the treatment table, aligned with the reticle. This setup allowed visualization of the center of the light field and comparison with the size of the radiation field. The field was irradiated with 10 MU, and its image can be seen in Figure 4.

Figure 4
Radiation field 10x10 cm² acquired. Note the radiopaque marker, positioned in the center of the light field, indicated by the arrow.
2.1.5. CBCTAquisition

For the analysis of kV-CBCT image quality, the Catphan® 604 (The Phantom Laboratory, Salem, NY, USA) phantom was used, which contains modules for evaluating uniformity, geometric distortion, contrast, noise, spatial resolution, and slice thickness, which can be seen in Figure 5.

Figure 5
On the left, each of the scan sections acquired in the image. On the right, the location of each section in the phantom 17.

The phantom was positioned on the edge of the accelerator table using its own case for support, ensuring proper alignment and leveling. Longitudinally, it was positioned atthe scan section 2, to ensure it was fully encompassed by the CBCT scan. The protocol selected for this study was the Pelvis protocol, with 125 kV, 1080 mAs, a half-fan beam mode, and a full-arc trajectory. The reconstruction algorithm used was iCBCT18, with a slice thickness of 2 mm, resulting in a total of 89 images.

2.2. Image Analysys Methodology

The image analysis was conducted using two approaches: the SunCHECK® Machine (SCM, Sun Nulclear, Melbourne, FL, USA) platform (V.4.3.3) 19, and a custom interface developed using Pylinac (V.3.38) in Python 13.

SCM is a commercial platform by Sun Nuclear that efficiently automates image and log data collection, processing, and analysis. The platform is accessed via a web browser and includes pre-configured test templates compliant with Report of AAPM Task Group 142 1, while also allowing customization according to the institution’s specific needs.

Pylinac is an open-source Python library that provides multiple automated image analysis modules for quality control in radiotherapy. In combination with the Streamlit library 20 (V.1.37) open-source Python framework, which facilitates the development of interactive web applications, a custom interface was created containing the necessary modules for analyzing the selected test images.

The following sections briefly explore the reasoning behind the algorithms used for analysis, highlighting the differences in calculation methodologies between the two evaluated tools.

2.2.1. Picket Fence Analysis

In the SCM platform, the analysis of the Picket Fence test is based on the Mamalui-Hunter formalism 21. First, the image is registered, adjusting its center and rotation if necessary. After that, the algorithm identifies the irradiated stripes by generating the average profile along lines perpendicular to the movement of the leaves, obtaining a profile as shown in Figure 6.

Figure 6
Average rectangular profile in the horizontal direction of the Picket Fence test image.

Next, for each horizontal line corresponding to a MLC pair, a Gaussian or Lorentzian curve is fitted to describe the peak of each stripe. Then, for each line, that corresponds to a pair of leafs, the difference between the center position of the Gaussian (found leaf pair position) and the central position of the stripe determined by a linear fit of the average rectangular profile (expected position), is computed (Figure 7). This difference is then compared to the established tolerance. Additionally, the curve data allow measurement of the stripe width.

The Pylinac Picket Fence module enables analysis based on either individual leaf detection or a combined approach, similar to SCM. Since leaf pairs have historically been evaluated together in automated methods, the combined approach was selected for comparative purposes. Moreover, the algorithm used in the combined method is similar to the one implemented in SCM, with the exception that the peak position used for comparison with the ideal position is determined at the center of full width at half maximum (FWHM). Additionally, the Pylinac analysis also provides the angle of the leaves, which corresponds to the closest value to the cardinal direction.

Figure 7
Picket Fence test leaf pair positions identified by the algorithm. The dashed green line shows the expected position of the fit for the picket; the green band, the tolerance margin around the expected position; the blue lines the center of the gap of each identified leaf pair that is within tolerance of the expected position, and red those that exceed it.
2.2.2. Star ShotAnalysis

In general, most automated analysis tools for the Star Shot test are based on the concept of determining the minimum inscribed circle in the star pattern, as proposed by Gonzalez 22 e Depuydt 23. The main difference between the SCM implementation and the Pylinac Star Shot module lies in how each method identifies the center of the irradiated beams while minimizing bias due to small noise variations or maximum grayscale values in pixel intensity.

In SCM, the algorithm sets a grayscale threshold to distinguish the spokes (the superposition of the radiative marks of the fields), from the image background and defines a search circle. In the grayscale profile along this circle, the spokes are identified as continuous arc segments where the values exceed the predetermined threshold. Each spoke is then assigned to the center of these segments and subsequently paired. If all spokes are not correctly identified, the threshold value and circle center can be manually adjusted. In Pylinac, a circular grayscale profile is extracted from the image, peaks are identified, and spokes are determined by the center of the FWHM around these peaks. If spoke identification is inaccurate, the radius of the circular sampling profile can be adjusted; in this study, a radius equal to 50% of the smallest image dimension was adopted. Once the opposing spokes are identified and paired, both implementations apply an optimization algorithm to determine the diameter of the minimum enclosing circle for the central irradiated lines.

2.2.3. Winston-LutzAnalysis

For the analysis of the Winston-Lutz test, both implementations (SCM and Pylinac) begin similarly. First, in each image, the central axis (CAX) of the field is detected based on edge detection and the calculation of its center of mass. Both tools can perform this step for both rectangular and circular fields. Next, the edges of the radiopaque sphere in the phantom are identified by determining an optimal grayscale threshold for its detection and calculating its center of mass based on its radius. As a result, in each image, the vector associated with the displacement between these two centers are obtained, computing the maximum observed deviation. Subsequently, the mathematical formalism presented by Low 24 is applied, where geometric transformations are used to convert 2D coordinate deviations into 3D vector displacements. This also allows determining the optimal shift to apply to the phantom to minimize the maximum error.

Differences between the two tools emerge in the additional results and applied methodologies. In Pylinac, based on Winkler's findings 25, the gantry isocenter is calculated using the sphere's center as a fixed reference point (excluding images with nonzero table angles). A back-projection algorithm reconstructs the CAX trajectory in 3D space, determining its center and size. The collimator isocenter (in the plane normal to the gantry) and the table isocenter (in the coronal plane) are also calculated based on the maximum distances found between any two CAX positions and any two sphere centers, respectively. Additionally, Pylinac enables the generation of error plots concerning gantry, collimator, table, and EPID positions individually, as well as a visualization plot of the calculated isocenters. Using the displacement coordinates that minimize errors, a virtual shift can be simulated, calculating the expected errors if the displacement were applied and the images were acquired again (Figure 8).

Figure 8
Isocenter visualization calculated in Winston-Lutz Pylinac’s module. The image on the left refers to the visualization based on the original images, and the right is based on the simulation of the visualization that would be obtained by applying the optimal shift.

In SCM, the gantry isocenter is estimated solely based on the maximum deviation due to the gantry in each direction. The Hancock Winston-Lutz tool provides additional analyses based on the test interpretations described in Hancock's paper 26. In this case, the diameter of the table isocenter is also calculated, along with its coronal plane distance from the phantom sphere position and the gantry isocenter. Additionally, the 2D couch results are simulated under the assumption that the optimal displacement was applied (Figure 9). Furthermore, diagrams related to gantry sag and errors associated with beam steering are also computed

Figure 9
Visualization of the sphere positions based on the images with couch angle in the SCM. On the left, deviations obtained with the initial image, and on the right, that would be obtained by applying the optimal shift.
2.2.4. Radiation Field Analysis

Metrics such as field size, penumbra, flatness, and symmetry of the radiation field can be analyzed based on the profiles of the static field image on the EPID, with different calculation protocols in both evaluated tools. In SCM, the image can be manually centered using the graphical interface based on a visible reference. Median filters and profile smoothing are also applied in this step. Once these definitions are set, the following metrics can be calculated: field size, determined at 50% of the profile; penumbra size, measured from 80% to 20% of the profile; flatness assessed using the variance method (Equation 1); and symmetry, evaluated based on the area method (Equation 2)

(1) 𝐹𝑙𝑎𝑡𝑛𝑒𝑠𝑠 = 100 x D m a x - D m i n D m a x + D m i n \[ \]
(2) 𝑆𝑦𝑚𝑚𝑒𝑡𝑟𝑦 = 100 x A L - A R A L + A R \[ \]

Where Dmax is the highest profile value within the field width (up to 80%) and Dmin is the lowest value within the field width. The area to the left of the CAX up to 80% of the profile is designated as AL, and similarly, AR represents the right side.

In the field analysis module of Pylinac, it is also possible to apply a median filter by specifying the number of neighboring pixels for the filter. In this case, a median filter of size three was applied. The same formalisms adopted in SCM were used for calculating penumbra, flatness, and symmetry. The difference lies in the field size detection method. In addition to the conventional method based on FWHM, Pylinac also allows the use of the inflection method, which is based on the zero-crossing of the second derivative of the profile. This method is recommended when analyzing high-resolution images, such as those from the EPID.

2.2.5. CBCTAnalysis

From the images obtained using the Catphan® 604 (The Phantom Laboratory, Salem, NY, USA) phantom, it was possible to perform analyses of the key metrics referenced in the AAPM Task Group 142 report 1 regarding CBCT image quality. These include geometric distortion, spatial resolution, contrast, HU constancy, uniformity, and noise. In addition to those mentioned in the reference, low-contrast visibility and slice thickness of the reconstruction were also measured.

The first step, in both tools, is based on identifying the phantom's modules, as incorrect ROI (Region of Interest) positioning can compromise automatic analysis. Therefore, verifying whether the ROIs have been correctly placed via automatic module detection is essential. In SCM, there is a registration interface (Figure 10), where the ROIs can be manually adjusted, along with features for image windowing, magnification, and comparison with a reference image. In the Pylinac CatPhan module, automatic ROI positioning is achieved by identifying the center of the scan section 2 linearity module, and it can detect any rotation of the phantom. The ROIs can be adjusted across all modules or a single specific module, with manual input for position, angle, and scale adjustments.

Figure 10
CBCT image registration interface in SCM. In each of the modules it is possible to adjust the position and angle of the ROI models.

In scan section 1, which contains aluminum inserts with patterns ranging from 1 to 15 line pairs per cm, the evaluation of spatial resolution is performed by calculating the MTF (Modulation Transfer Function). In both tools, spatial resolution was conservatively taken as the value at 50% of the MTF (some references consider the resolution limit at 10% of the MTF 27).

In scan section 2, geometric distortion, HU linearity, and reconstruction thickness can be evaluated. Geometric distortion is calculated based on four holes whose centers are 50 mm apart. In both tools, the distances between pairs of these holes are calculated, and the maximum absolute difference found in relation to the expected value is reported as geometric distortion. For the HU linearity test, different materials contained in this module are used, and the measured HU value is compared with the nominal expected value (average of the range provided in the simulator object manual). In each material, circular ROIs are evaluated, with SCM taking the mean HU value and Pylinac taking the median value. The maximum difference from the nominal values is computed. Slice thickness is evaluated using two pairs of wires inclined at 23° relative to the base of the phantom. In SCM, the full width at half maximum (FWHM) of the ROI positioned on the wire is measured and multiplied by the factor given by the tangent of the angle. The same formalism is also used in Pylinac, however, to avoid fluctuations due to noise in the image, an average FWHM value is taken from neighboring slices. Three slices were used for the calculation.

Scan section 3 contains low-contrast targets, with the number of structures visible at the 1% contrast level being evaluated. In SCM, it is assumed that the product of contrast and the ROI diameter remains constant. The visibility criterion for the smallest structure is that the mean ROI value of the structure minus the background mean value must be greater than four times the standard deviation. Visibility in Pylinac is calculated using the signal-to-noise ratio (SNR) based on Rose's criterion 28.

Finally, in scan section 4, uniformity is evaluated based on five ROIs: one central and four at the cardinal angles. SCM calculates uniformity as the maximum difference found between the mean values of a peripheral ROI and the central ROI. In Pylinac, despite using a similar ROI definition, the uniformity index is calculated according to Elstrom’s formalism 29. For comparison purposes, uniformity was also calculated using the SCM method. In this same module, noise is assessed. SCM calculates noise as the standard deviation in HU within the ROI, while Pylinac calculates the average Noise Power, obtaining noise dependence on frequency through the 2D Fourier transform of the image 27.

3. RESULTS AND DISCUSSION

Table 2 presents the main results obtained for each of the tests in the analyses performed using SCM and the implemented modules of Pylinac. The adopted tolerances, based on the correspondence of the obtained quantities with those from reference documents, are also presented together. As shown, both interfaces can calculate the quantities of interest in the reference documents related to the tests carried out, and the values found are within the expected tolerances.

Table 2
Results obtained in the tests analyzed in the SCM, in the Pylinac modules, and tolerance based on the reference documents

Table 3 provides comparisons between the evaluated interfaces, highlighting the main functionalities and available tools. In general terms, we would highlight the graphical interfaces present in the SCM for viewing and registering images, as well as functionalities such as automatic image export, test scheduling and historical data trend analysis. These functionalities add value to the interface, making QA's routine easier and faster, as all control is on a single platform. Although these tools can be implemented in Pylinac, they require more development time, since the only ones available natively are automated image analysis and report generation. While pylinac requires considerable development and programming time to unite the modules into a single user-friendly interface, SCM already provides a simple intuitive, and integrated interface for everyone involved in quality control, positively impacting the routine much more quickly. Even with these apparent negative points, it's undeniable how Pylinac makes it possible to make QA’s routine more efficient and effective for free, especially for institutions in developing countries with more prohibitive budgets.

Table 3
Comparison of functionalities and tools in SCM interfaces and Pylinac modules.

3.1. Picket Fence

Among the values found in the Picket Fence test, the lowest maximum leaf position error was observed in the Pylinac module (0.12 mm, compared to 0.16 mm in SCM). This difference is likely due to the method used to identify the leaf position in Pylinac, as it is based on the FWHM center rather than fitting a curve, as done in SCM.

The skew angle provided in the Pylinac module should also be highlighted. Skew is identified when the lines appear thicker at one end than at the other, indicating a possible deviation in the linear motion of the MLC leaf banks. This measurement may be masked by image registration in the SCM interface since the image angle is adjusted to the cardinal position during the registration stage before calculation, and this angle is not subsequently reported. Even so, the skew value reported in the Pylinac Picket Fence module should be interpreted with caution, as it may be influenced by EPID displacement and rotation.

Regarding the interface, the ability to view the analyzed image interactively in SCM (Figure 11) stands out, allowing users to select a specific pair of leaves and quickly check their results. Although simple, this interface enables easy identification of the leaf pair, which is not always as intuitive when only numbers are displayed, as is the case in Pylinac.

Figure 11
Picket Fence Test SCM interface. Each leaf pair can be viewed and selected, providing easy access to each peak of the expected and calculated leaf position.

In terms of results, the histogram of leaf position errors in Pylinac (Figure 12, right) serves as an excellent summary of the results, rather than simply reporting a maximum error value, showing the distribution of leafs position errors found, as well as illustrating the tolerance and action levels provided.

Figure 12
Results of the analysis of the Picket Fence test in Pylinac. On the left, the leaf positions calculated, highlighted in pink those that differ more than 0.1 mm from the expected position. On the right, the histogram of leaf position error, with the pink lines representing the tolerance levels, and the red ones, the action levels.

Furthermore, the values obtained using the combined analysis in both tools are consistent, following the stricter criterion suggested by the Report of AAPM MPPG8.b 14 for a quantitative analysis of leaves positions with a tolerance of 0.5 mm. The individual leaf detection method available in Pylinac, despite having advantages in detecting errors in specific situations when well-implemented, tends to be less robust and more prone to errors. This is due to the need to provide the nominal gap value of leaf pairs, which depends on the combined plan gap, the dosimetric leaf gap (DLG), and even EPID scattering effects, thus requiring further studies for proper implementation.

3.2. Star Shot

Regarding the Star Shot test, both tools provide very similar solutions, as well as comparable values for the diameter of the smallest circle inscribed in the lines. However, the method for identifying spoke shots stands out, particularly in cases where automatic detection fails to correctly identify all the lines, requiring manual parameter adjustments.

In the case of SCM, it is necessary to adjust the gray threshold value in the image registration interface, lowering it only until all spokes are visible and solid within the analysis circumference. Although this adjustment process is rarely needed (in our experience around 15%), it introduces operator subjectivity into the analysis and increases the possibility of errors, as it can significantly alter the final measured value.

In contrast, in Pylinac, this adjustment is made by modifying the radius of the sampled circular profile. Thus, choosing an intermediate radius is sufficient since, at the center, the intensity of the rays tends to overlap, and at the edges, it decreases (especially in images acquired with radiochromic film). Consequently, if images are consistently acquired and processed in the same way, a standard value can be established, minimizing the potential for operator-induced errors. Figure 13 presents the detected spoke shots and the smallest inscribed circle drawn along the lines in both SCM and Pylinac.

Figure 13
Results of the analysis of the Star Shot test, upper SCM, and lower Pylinac. On the left, the spoke shots identified for the composite image of the collimator. On the right, the smallest circle inscribed in the lines found.

3.3. Winston-Lutz

The results of the 2D analysis of the maximum error found from the center of the field to the radiopaque sphere were similar between the tools, remaining within the 1 mm tolerance. Figure 14 presents the visualization of the identification of the center of the field and center of the sphere in each of the interfaces. Despite being simpler the visualization of the field center and the sphere in SCM images, it is visually easier to verify whether the identification occurred as expected.

Figure 14
Visual identification of the center of radiation field and radiopaque sphere in the Winston-Lutz test on the acquired images. On the left, SCM analysis, where the deviation vector between the centers is shown below the acquired image; on the right, Pylinac analysis, where the center of the EPID is also shown.

Since the sphere was positioned at the mechanical isocenter of the accelerator, we can interpret the optimal shift vector as a measure of the coincidence between the mechanical and radiation isocenters. Although both results are within the 1 mm tolerance, a notable difference is observed in the modulus of the displacement vector obtained: 0.24 mm in Pylinac and 0.16 mm in SCM, with the latter not providing the necessary shift in the vertical direction.

The virtual shifting tool in Pylinac allows for recalculating the 2D error values by simulating the ideal displacement, without modifying the 3D isocenter values, such as those of the gantry and collimator, since these are calculated independently of the sphere's position. Figure 15 shows the deviations found in each component as a function of the evaluation axis angle in Pylinac, which helps in the clinical routine to identify which component causes the greatest deviations.

Figure 15
Results of the analysis of the Pylinac Winston-Lutz test, separating the error due to gantry, collimator, table, and EPID.

In SCM, an analysis of this type is missing for the collimator and EPID, as it only presents the values for the gantry and couch separately. Additionally, SCM lacks a more robust virtual shifiting tool, as it only demonstrates this graphically and specifically for couch rotations. The additional graphs in SCM, which use the measured data to plot the expected curves for gantry sag (Figure 16) and beam steering errors, provides interesting additional analyses that could help identify deviation trends and adjustment directions. However, they lack detailed methodological documentation to assist in their interpretation.

Figure 16
Gantry sag results based on Winston-Lutz results in SCM. The blue line shows the x-component of the gantry sag, the green line the y-component, and in red the total.

3.4. Field Analysis

Regarding the parameters of the analyzed radiation field, both implementations obtained the relevant quantities with good agreement and within tolerance levels 15. The use of the radiopaque marker at the center of the light field proved to be a good alternative for establishing a comparison reference with the light field. In SCM, centralization is facilitated by the visual interface, allowing the center to be placed directly on the marker in the image. In contrast, in Pylinac, this process is more challenging, requiring manual adjustments to the centralization parameters, which can then add an unwanted dependent operator process to the analysis if necessary.

For the calculated field size, even with different metrics, similar results were obtained. The ability to determine the field size using the inflection method is an advantage of Pylinac, especially when dealing with FFF (Flattening Filter Free) energy fields, where the FWHM metric is not appropriate.

Regarding profile visualization, Pylinac stands out by displaying the identified field edges, penumbra region, and regions considered for symmetry and flatness calculations (Figure 17). However, it lacks an easy-to-use implementation for comparing two profiles, a feature available in SCM, which aids in periodic result comparisons. This feature can be implemented in Pylinac with programming, requiring more development time.

Figure 17
Analyzed radiation field profile and visualization of the chosen metrics in Pylinac.

The symmetry and flatness metrics derived from the EPID image proved to be feasible. However, factors that influence the beam profile, such as the central marker and the treatment couch, must be considered. As a result, this method should be used only as a monthly constancy test, provided that the same conditions are maintained. Therefore, it is essential to perform a water tank scan at least annually to obtain symmetry and flatness values and compare them with the machine’s acceptance values 15.

3.5. CBCT

In the analysis of CBCT images, the metrics referenced in the literature were evaluated in both tools, however, some differences can be noted. Regarding the analysis ROIs, both implementations performed well in automatic positioning, but the visual interface in SCM attract attention as a clear advantage when adjustments are necessary.

The noise evaluation in Pylinac using the Noise Power Spectrum provides a more detailed analysis compared to the standard deviation method applied to the ROI in SCM. Two ROIs with the same standard deviation value may present very different noise distributions across frequencies. This directly impacts noise perception and can be quantitatively measured through the average value of the Noise Power distribution.

The Pylinac methodology, which uses multiple slices to determine the reconstruction thickness, showed a result closer to the nominal thickness of 2 mm (SCM 2.5 mm and Pylinac 1.93 mm).

Contrast is evaluated differently between the implementations. In SCM, contrast is calculated based on the Teflon insert relative to the background, yielding a value of 0.95. On the other hand, Pylinac assesses contrast using the smallest visible target in module 730, which contains structures with a nominal contrast level of 1%, resulting in a contrast value of 0.35. Since the references do not specify a clear methodology for contrast evaluation, both approaches are valid for establishing a baseline. The SCM method is more straightforward, relying on a high-contrast structure, whereas the Pylinac approach considers a more limiting case based on the visibility of low-contrast structures.

4. CONCLUSIONS

Both automated image analysis interfaces evaluated, the commercial SCM from Sun Nuclear and the web application implemented using modules from the open-source Pylinac library, were able to quantify the relevant metrics in a manner consistent with the reference test documents and meet the service's needs. This contributes to a Quality Assurance Program with reduced image analysis time, lower susceptibility to inter-operator errors, and greater precision and standardization in results, minimizing subjectivity in the process.

The SCM platform, in addition to automated analyses, offers an interactive interface that integrates the entire quality control process, from automated image and log exports to test scheduling, result recording, and trend analysis through graphical representations. This set of tools further enhances the advantages already mentioned, making QA's routine easier and faster, as all control is integrated on a single platform..

The web interface developed using Pylinac modules demonstrated that, even at a basic level, it is possible to create tools similar to commercial solutions using available open-source libraries, allowing for customization to fit the specific needs of a Quality Assurance Program. However, the time investment and challenges involved in its development are undeniable, requiring more time to implement and integrate into a user-friendly interface.

Regardless of the interface used, the role of the medical physicist remains crucial, whether in developing or validating these tools, ensuring a thorough understanding of the algorithms and methodologies used in the analyses, as well as their limitations and critical aspects. When necessary, conducting studies is essential to prevent incorrect tool usage from leading to erroneous quantifications, avoiding potential risks and fostering a safe and efficient Quality Assurance Program.

To INRAD and all professionals involved where this study was carried out.

REFERENCES

Conflict of Interest

All authors declare that they have no conflicts of interest.

SCIENTIFIC EDITOR:

Prof. Dr. Bernardo Maranhão Dantas http://orcid.org/0000-0002-2388-6073

SCIENTIFIC EDITOR:

Prof. Dr. Alfredo Lopes Ferreira Filho http://orcid.org/0000-0002-0806-1284

Publication Dates

  • Publication in this collection
    09 Feb 2026
  • Date of issue
    Jul-Aug 2025

History

  • Received
    24 Feb 2025
  • Accepted
    19 May 2025
location_on
Sociedade Brasileira de Proteção Radiológica Rua General Severiano 90, sl. 404 e 406, CEP: 22290-040, Botafogo, Tel.: +55 (21) 2586-1323 - Rio de Janeiro - RJ - Brazil
E-mail: bjrs@bjrs.org.br
rss_feed Acompanhe os números deste periódico no seu leitor de RSS
Ir para o topo