A dose control optimization method for electron linear accelerators in radiotherapy

By improving the human evolutionary optimization algorithm and optimizing the fractional-order PID control algorithm, the problem of insufficient response of traditional controllers in complex nonlinear systems is solved, fast and stable dose control of electron linear accelerators in dynamic treatment is achieved, and the stability of the system is improved. and robustness.

CN118341003BActive Publication Date: 2024-10-15SHANDONG UNIV QILU HOSPITAL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410734812.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-15
Estimated Expiration
2044-06-07

Smart Images

  • Figure CN118341003B_ABST
    Figure CN118341003B_ABST
Patent Text Reader

Abstract

The present invention discloses a dose control optimization method for an electron linear accelerator for radiotherapy, which belongs to the field of fractional-order PID, and includes: building a dose control system for an electron linear accelerator; S2, optimizing the Kp, Ki, Kd, ​​and γ and α parameters of the fractional-order PID control algorithm using an improved human evolution optimization algorithm to obtain the optimal parameter value; collecting the dose value in real time, converting the real-time dose value into a real-time dose signal value r(t), and calculating the error value e(t) between r(t) and the dose signal target value; inputting the optimal control parameter value and e(t) into the fractional-order PID control algorithm, and calculating the dose output control value u(t) at the current moment t; using u(t) to adjust the AFC frequency stabilization signal output to drive the actuator to output an accurate dose, and repeating the above steps until the dose reaches the expected dose value. Experiments have shown that the method of the present invention can improve the accuracy and stability of the dose control of the electron linear accelerator.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of accelerator dose control, and in particular relates to a dose control optimization method for an electron linear accelerator for radiotherapy. Background Art

[0002] The electron linear accelerator has become not only a medical accelerator but also a representative of the entire radiotherapy device, and has become the main equipment of every tumor prevention and treatment center engaged in radiotherapy. In the clinical application of medical electron linear accelerators, there are high requirements for the stability of dose rate. In traditional static treatment and conformal treatment, a stable dose servo system is required. With the development of radiotherapy technology, dynamic treatments have emerged, such as volumetric intensity modulation, such as making the treatment site receive a predetermined dose. For different doctor prescriptions, it is necessary to respond dynamically and quickly to changes in dose rate and quickly stabilize the dose system.

[0003] In order to overcome the current semi-closed loop control mode that relies only on AFC (automatic frequency control) to stabilize the lock screen and stabilize the accelerator dose, a method of full closed loop intelligent dose stabilization control based on the dose and microwave actual waveform and historical tuning data based on the PID algorithm (PID: Proportional, Integral, Differential, PID control algorithm is a control algorithm that combines proportional, integral and differential links in one) has emerged. For the dose control of the electron linear accelerator, the invention patent with the publication number CN112074073A proposes a control method and system for stabilizing the pre-target dose rate of the industrial electron linear accelerator, which is mainly realized by the AFC adjustment system based on the standard PID algorithm controller; the article with the article number: 1006-6586 (2015) 07-0042-04 proposes a new dose rate control output method based on fuzzy PID, which mainly improves the fuzzy control of the standard PID to achieve the optimization of dose rate control.

[0004] The traditional PID controller is a feedback controller whose control algorithm is based on integer-order differential and integral theory and is applicable to most linear systems and some simple nonlinear systems. However, for complex nonlinear systems, the traditional integer-order PID controller often fails to meet the requirements. The fractional-order PID controller is an enhancement of the traditional PID controller. It introduces fractional-order derivative terms to improve the dynamic response and anti-interference ability of the system. The control algorithm of this controller is designed based on the fractional-order differential and integral theory, and its control algorithm includes three parts: proportional, integral and fractional-order differential. This makes the fractional-order PID controller more flexible and adaptable, and can better adapt to different system characteristics and working conditions.

[0005] Fuzzy PID is a control theory that combines PID algorithm with fuzzy control theory. It is equivalent to the segmented PID control of error and error change rate. Through fuzzification, fuzzy reasoning and defuzzification, it can realize the dynamic adjustment of PID parameters. Fuzzy control has a certain effect on traditional PID control, but fuzzy control still has a certain gap in processing time and control accuracy compared with the current new meta-heuristic algorithm. Meta-heuristic algorithm can improve control accuracy and stability, while saving time and labor costs, and has certain advantages over fuzzy control. Summary of the invention

[0006] In order to overcome the above-mentioned shortcomings, the present invention proposes a dose control optimization method for a radiotherapy electron linear accelerator, by improving the standard human evolution optimization algorithm, using the improved human evolution optimization algorithm (MHEOA) to optimize and strengthen the fractional-order PID control algorithm of the dose control system, further improving the control accuracy and stability of the fractional-order PID, and using the fractional-order PID control dose output module of the enhanced dose control system to efficiently and accurately adjust the AFC frequency stabilization signal, thereby optimizing the dose control of the electron linear accelerator.

[0007] To achieve the above-mentioned purpose, the technical solution adopted by the present invention is: a method for optimizing the dose control of an electron linear accelerator by using a fractional-order PID control dose output module for an enhanced dose control system to efficiently and accurately adjust the AFC frequency stabilization signal, and utilizing an enhanced fractional-order PID algorithm to control the dose output module to efficiently and accurately adjust the AFC frequency stabilization signal to drive the actuator to output an accurate dose, thereby optimizing the dose control of the electron linear accelerator, and the specific steps are as follows.

[0008] S1. Build a dose control system for an electron linear accelerator, wherein the control system includes a fractional-order PID control algorithm module, a signal processing module, an AFC control processing module, a dose detection module, a dose output module, and a magnetron tuning position actuator.

[0009] S2. Use the improved human evolution optimization algorithm to optimize the Kp, Ki, Kd, ​​γ, and α parameters of the fractional-order PID control algorithm to obtain the optimal fractional-order PID control parameter values.

[0010] S3. Input the dose value collected in real time by the dose detection module into the signal processing module, and the signal processing module converts the real-time dose value r1(t) into a real-time dose signal value r(t), and calculates the error value e(t) between r(t) and the dose signal target value p(t).

[0011] S4. Input the optimal control parameter value described in S2 and the error value e(t) described in S3 into the fractional-order PID control algorithm module to calculate the dosage output control value u(t) at the current time t.

[0012] S5. Input the control value u(t) in S4 into the AFC control processing module to adjust the AFC stabilization frequency signal, use the AFC stabilization frequency signal output to drive the magnetron tuning position actuator to output an accurate dose, and repeat steps S2 to S5 until the dose reaches the target dose value.

[0013] More specifically, the signal processing module transmits the dose value of the pre-target ionization chamber collected by the electron linear accelerator dose detection module to the fractional-order PID control algorithm module in real time. The fractional-order PID control algorithm module and the AFC control processing module work together to control the magnetron tuning position actuator, wherein the magnetron tuning position actuator includes a magnetron tuning motor and a magnetron, and adjusts the AFC frequency stabilization signal through the control value u(t), and outputs a stable AFC frequency stabilization signal to control the rotation of the magnetron tuning motor, thereby adjusting the magnetron position and outputting an accurate dose.

[0014] More specifically, the adaptive search in the human exploration phase of the standard human evolution optimization algorithm is implemented through an adaptive function β. The adaptive function β adjusts the parameters in the human evolution optimization algorithm according to the number of iterations and the current position of the individual and the average position of the population. Although the linear descent adaptive function is simple, it cannot fully enable the standard human evolution optimization algorithm to achieve a good effect in the dose control of the complex nonlinear electron linear accelerator. The adaptive function β is improved, and the improved adaptive function The mathematical model is:

[0015] (1);

[0016] In formula (1), is the minimum fitness value of the population in the yth iteration, is the fitness value of the i-th individual position in the y-th iteration, is the position of the ith individual in the yth iteration, is the average position of individuals in the population at the yth iteration.

[0017] More specifically, the fitness value is a criterion for the optimization performance of the reaction algorithm. The smaller the fitness value, the better the optimization performance of the algorithm, which means the better the individual position. The improved human evolution optimization algorithm is used to optimize the Kp, Ki, Kd, ​​γ, and α parameters of the fractional-order PID control algorithm. The individual position is the Kp, Ki, Kd, ​​γ, and α parameter set solution of the fractional-order PID control algorithm. In the improved adaptive function The fitness value of the i-th individual position and the minimum fitness value of the population, as well as the exponential function and the sine function are introduced in the adaptive function, so that the adaptive function changes nonlinearly according to the change of the individual fitness value in the population, which is more suitable for the nonlinear control of the dose of the electron linear accelerator. The sine function is used to limit the step size of the adaptive function to prevent the adaptive function from changing too fast and missing the optimal solution.

[0018] More specifically, the standard human evolution optimization algorithm introduces a jump coefficient, and the algorithm search scale is adjusted by setting parameters. The present invention improves the jump coefficient through the concept of similarity, so that the improved jump coefficient The optimization range of the algorithm can be adaptively changed according to the similarity between individuals. The specific improvement steps are:

[0019] Step 1: According to formula (2), calculate the similarity between the i-th individual in the human evolution optimization algorithm population and a random individual and the individual at the best position in the current iteration. ;

[0020] (2);

[0021] In formula (2), is the fitness value of the i-th individual position in the y-th iteration, is the fitness value of the best individual position in the yth iteration, is the fitness value of the random b individual position in the yth iteration;

[0022] Step 2: Calculate the mean of the population similarity of the yth iteration ;

[0023] (3);

[0024] In formula (3), The largest population size;

[0025] Step 3: Use the mean of similarity Jump coefficient Improved, the mathematical model is:

[0026] (4);

[0027] In formula (4), is the lower bound of the individual position, is the upper bound of the individual position.

[0028] More specifically, by introducing the improved adaptive function and the improved jump factor The position update strategy of the human exploration phase of the standard human evolution optimization algorithm is improved, and the improved position update mathematical model is:

[0029] (5);

[0030] In formula (5), is the position of the i-th individual in the y+1-th iteration, is the position of the ith individual in the yth iteration, is the global best individual position, is the Levy flight function, is the algorithm problem dimension, is the current iteration number, is the maximum number of iterations, is the average position of individuals in the y-th iteration population, For improved jump factor .

[0031] More specifically, the improved human evolution optimization algorithm is used to optimize the Kp, Ki, Kd, ​​γ, and α parameters of the fractional-order PID control algorithm. The specific steps are as follows:

[0032] S21, encoding Kp, Ki, Kd, ​​and γ, α parameters of the fractional-order PID control algorithm for the dose control of the electron linear accelerator into a 5-dimensional vector, where the dimension corresponds to the algorithm problem dimension dim;

[0033] S22. Randomly initialize N individual initial positions of the improved human evolution optimization algorithm (MHEOA) , a real number mapping relationship is established between the position of each individual and a set of Kp, Ki, Kd and γ, α parameter vectors;

[0034] S23, setting a fitness function, calculating the fitness value of each individual in the population at the current iteration of the improved human evolution optimization algorithm, and arranging the individual positions corresponding to the minimum fitness value in increasing order;

[0035] S24, judging whether the current number of iterations y reaches the maximum number of iterations Y, if y=Y, then exiting the optimization, parsing the individual position corresponding to the global minimum fitness value into Kp, Ki, Kd and γ, α parameter values;

[0036] S25, if satisfied , then the human exploration stage is executed, simulating that when faced with unexplored areas and limited knowledge, individuals tend to take a unified search, and the algorithm global exploration mathematical model is established according to formula (5); otherwise, step S26 is executed to establish the algorithm local development mathematical model;

[0037] S26, the stage of executing human development, dividing individuals into leaders, explorers, followers and losers according to their individual fitness values, each role adopts a unique development strategy, and updates the individual positions of the algorithm population;

[0038] S27, will satisfy formula (6) The individual is taken as the leader, and the mathematical model of leader position update is established according to formula (7) to update the position of the leader individual of the population;

[0039] (7);

[0040] In formula (7), is the position of the i-th individual in the y+1-th iteration, is the position of the ith individual in the yth iteration, is the current iteration number, is the maximum number of iterations, is a random number between 0 and 1. is a random number that follows a normal distribution, is a dim-dimensional vector with a value of 1, is a constant, with a value of 0.6, w is the weight coefficient, and the mathematical model is:

[0041] ;

[0042] S28, will satisfy formula (8) The individuals are regarded as explorers, and the mathematical model of explorer position update is established according to formula (9) to update the positions of explorer individuals in the population;

[0043] (9);

[0044] In formula (9), is the worst individual position in the yth iteration;

[0045] S29, will satisfy formula (10) The individuals are regarded as followers, and the mathematical model of follower position update is established according to formula (11) to update the positions of the follower individuals in the population;

[0046] (11);

[0047] In formula (11), is the best individual position in the yth iteration, is a random number in the range [1, 5];

[0048] S30, will satisfy formula (12) The individuals are regarded as losers, and the mathematical model for updating the loser position is established according to formula (13) to update the positions of the loser individuals in the population;

[0049] (13);

[0050] In formula (13), is the global best individual position.

[0051] More specifically, the mathematical model of the fitness function is:

[0052] ;

[0053] In the formula, is the integral of the current moment, The upper limit of time integration.

[0054] More specifically, the signal processing module converts the real-time dose value r1(t) into the real-time dose signal value r(t) through a mathematical model, and the mathematical model reflects the linear relationship between the real-time dose value r1(t) and the real-time dose signal value r(t). The specific method includes:

[0055] S31, performing a linear transformation on the input real-time dose value r1(t) according to the mathematical model formula (14), and adjusting its amplitude and offset;

[0056] (14);

[0057] In formula (14), r2(t) is the initial value of the dose signal after linear processing of the dose value at the tth moment;

[0058] S32, filtering the initial value of the dose signal using a discrete-time first-order low-pass filter according to the mathematical model formula (15);

[0059] (15);

[0060] In formula (15), r3(t) is the initial value of the dose signal after filtering at the tth moment; r3(t-1) is the initial value of the dose signal after filtering at the t-1th moment;

[0061] S33, performing a limiting process on the initial value of the dose signal after filtering at the tth moment, so that the signal is controlled between 0 and 2, and obtaining a final dose signal value r(t).

[0062] More specifically, the purpose of performing the amplitude limiting process on the initial value of the dose signal after filtering at the tth moment is to prevent an excessive overshoot from occurring in the dose control.

[0063] More specifically, the optimal fractional-order PID control parameter value and the error value e(t) are input into the fractional-order PID control algorithm module for the dose control of the electron linear accelerator. The mathematical model of the fractional-order PID control algorithm is:

[0064] (16);

[0065] In formula (16), is the optimal proportional parameter of fractional-order PID, is the optimal integral parameter of fractional-order PID, is the optimal differential parameter of fractional-order PID, is the order of the optimal integral term of the fractional-order PID, is the order of the optimal derivative term of the fractional-order PID.

[0066] Compared with the prior art, the technical solution of the present invention has the following advantages and beneficial effects: the present invention improves the adaptive function of the standard human evolution optimization algorithm and the jump factor Improve the global exploration optimization performance of the standard human evolution optimization algorithm, thereby improving the balance performance of the global search and local development of the standard human evolution optimization algorithm and the ability to avoid falling into the local optimum, so that the standard human evolution optimization algorithm has the ability to jump out of the local optimum, and use the improved human evolution optimization algorithm to optimize the fractional-order PID of the dose control of the electron linear accelerator, improve the stability and optimal robustness of the fractional-order PID, so that the fractional-order PID can quickly and stably reach the target dose in the dose control of the electron linear accelerator, so that the electron linear accelerator can work stably and reliably at the preset dose position, reduce the uncertainty of artificial correction parameters, reduce the workload of installation and debugging, and improve the performance of the dose control system of the electron linear accelerator. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 Diagram of the steps for optimizing the dose control method for an electron linear accelerator.

[0068] Figure 2 A flowchart for optimizing the Kp, Ki, Kd, ​​γ, and α parameters of the fractional-order PID control algorithm to improve the human evolution optimization algorithm.

[0069] Figure 3 This is the Simulink simulation diagram for the dose control of the electron linear accelerator.

[0070] Figure 4Optimize the Kp, Ki, Kd, ​​and γ, α parameters of the fractional-order PID using the human evolution optimization algorithm.

[0071] Figure 5 To improve the human evolution optimization algorithm, the Kp, Ki, Kd, ​​γ, and α parameter change diagrams of fractional-order PID are optimized.

[0072] Figure 6 Comparison chart of fitness values ​​during tuning of the improved human evolution optimization algorithm and the standard human evolution optimization algorithm.

[0073] Figure 7 A comparison chart of the effects of optimizing fractional-order PID in the dose control of electron linear accelerator using the improved human evolution optimization algorithm and the standard human evolution optimization algorithm. DETAILED DESCRIPTION

[0074] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0075] See also Figure 1-Figure 7 The present invention provides a technical solution: a dose control optimization method for a radiotherapy electron linear accelerator, the specific steps are as follows Figure 1 shown.

[0076] S1. Build a dose control system for an electron linear accelerator, wherein the control system includes a fractional-order PID control algorithm module, a signal processing module, an AFC control processing module, a dose detection module, a dose output module, and a magnetron tuning position actuator.

[0077] More specifically, the signal processing module transmits the dose value of the pre-target ionization chamber collected by the electron linear accelerator dose detection module to the fractional-order PID control algorithm module in real time. The fractional-order PID control algorithm module and the AFC control processing module work together to control the magnetron tuning position actuator, wherein the magnetron tuning position actuator includes a magnetron tuning motor and a magnetron, and adjusts the AFC frequency stabilization signal through the control value u(t), and outputs a stable AFC frequency stabilization signal to control the rotation of the magnetron tuning motor, thereby adjusting the magnetron position and outputting an accurate dose.

[0078] S2. Use the improved human evolution optimization algorithm to optimize the Kp, Ki, Kd, ​​γ, and α parameters of the fractional-order PID control algorithm to obtain the optimal fractional-order PID control parameter values.

[0079] Furthermore, the adaptive function β is improved, and the improved adaptive function The mathematical model is:

[0080] (1);

[0081] In formula (1), is the minimum fitness value of the population in the yth iteration, is the fitness value of the i-th individual position in the y-th iteration, is the position of the ith individual in the yth iteration, is the average position of individuals in the population at the yth iteration.

[0082] Furthermore, the jump coefficient is improved by the similarity concept, so that the improved jump coefficient The optimization range of the algorithm can be adaptively changed according to the similarity between individuals. The specific improvement steps are:

[0083] Step 1: According to formula (2), calculate the similarity between the i-th individual in the human evolution optimization algorithm population and a random individual and the individual at the best position in the current iteration. ;

[0084] (2);

[0085] In formula (2), is the fitness value of the i-th individual position in the y-th iteration, is the fitness value of the best individual position in the yth iteration, is the fitness value of the random b individual position in the yth iteration;

[0086] Step 2: Calculate the mean of the population similarity of the yth iteration ;

[0087] (3);

[0088] In formula (3), The largest population size;

[0089] Step 3: Use the mean of similarity Jump coefficient Improved, the mathematical model is:

[0090] (4);

[0091] In formula (4), is the lower bound of the individual position, is the upper bound of the individual position.

[0092] Furthermore, by introducing the improved adaptive function and the improved jump factor The position update strategy of the human exploration phase of the standard human evolution optimization algorithm is improved, and the improved position update mathematical model is:

[0093] (5);

[0094] In formula (5), is the position of the i-th individual in the y+1-th iteration, is the position of the ith individual in the yth iteration, is the global best individual position, is the Levy flight function, is the algorithm problem dimension, is the current iteration number, is the maximum number of iterations, is the average position of individuals in the y-th iteration population, For improved jump factor .

[0095] Furthermore, if Figure 2 As shown in the figure, the improved human evolution optimization algorithm is used to optimize the Kp, Ki, Kd, ​​γ, and α parameters of the fractional-order PID control algorithm. The specific steps are:

[0096] S21, encoding Kp, Ki, Kd, ​​and γ, α parameters of the fractional-order PID control algorithm for the dose control of the electron linear accelerator into a 5-dimensional vector, where the dimension corresponds to the algorithm problem dimension dim;

[0097] S22. Randomly initialize N individual initial positions of the improved human evolution optimization algorithm (MHEOA) , a real number mapping relationship is established between the position of each individual and a set of Kp, Ki, Kd and γ, α parameter vectors;

[0098] S23, setting a fitness function, calculating the fitness value of each individual in the population at the current iteration of the improved human evolution optimization algorithm, and arranging the individual positions corresponding to the minimum fitness value in increasing order;

[0099] S24, judging whether the current number of iterations y reaches the maximum number of iterations Y, if y=Y, then exiting the optimization, parsing the individual position corresponding to the global minimum fitness value into Kp, Ki, Kd and γ, α parameter values;

[0100] S25, if satisfied , then the human exploration stage is executed, simulating that when faced with unexplored areas and limited knowledge, individuals tend to take a unified search, and the algorithm global exploration mathematical model is established according to formula (5); otherwise, step S26 is executed to establish the algorithm local development mathematical model;

[0101] S26, the stage of executing human development, dividing individuals into leaders, explorers, followers and losers according to their individual fitness values, each role adopts a unique development strategy, and updates the individual positions of the algorithm population;

[0102] S27, will satisfy formula (6) The individual is taken as the leader, and the mathematical model of leader position update is established according to formula (7) to update the position of the leader individual of the population;

[0103] (7);

[0104] In formula (7), is the position of the i-th individual in the y+1-th iteration, is the position of the ith individual in the yth iteration, is the current iteration number, is the maximum number of iterations, is a random number between 0 and 1. is a random number that follows a normal distribution, is a dim-dimensional vector with a value of 1, is a constant, with a value of 0.6, w is the weight coefficient, and the mathematical model is:

[0105] ;

[0106] S28, will satisfy formula (8) The individuals are regarded as explorers, and the mathematical model of explorer position update is established according to formula (9) to update the positions of explorer individuals in the population;

[0107] (9);

[0108] In formula (9), is the worst individual position in the yth iteration;

[0109] S29, will satisfy formula (10) The individuals are regarded as followers, and the mathematical model of follower position update is established according to formula (11) to update the positions of the follower individuals in the population;

[0110] (11);

[0111] In formula (11), is the best individual position in the yth iteration, is a random number in the range [1, 5];

[0112] S30, will satisfy formula (12) The individuals are regarded as losers, and the mathematical model for updating the loser position is established according to formula (13) to update the positions of the loser individuals in the population;

[0113] (13);

[0114] In formula (13), is the global best individual position.

[0115] Furthermore, the mathematical model of the fitness function is:

[0116] ;

[0117] In the formula, is the integral of the current moment, The upper limit of time integration.

[0118] S3. Input the dose value collected in real time by the dose detection module into the signal processing module, and the signal processing module converts the real-time dose value r1(t) into a real-time dose signal value r(t), and calculates the error value e(t) between r(t) and the dose signal target value p(t).

[0119] Furthermore, the signal processing module converts the real-time dose value r1(t) into the real-time dose signal value r(t) through a mathematical model, and the mathematical model reflects the linear relationship between the real-time dose value r1(t) and the real-time dose signal value r(t). The specific method includes:

[0120] S31, performing a linear transformation on the input real-time dose value r1(t) according to the mathematical model formula (14), and adjusting its amplitude and offset;

[0121] (14);

[0122] In formula (14), r2(t) is the initial value of the dose signal after linear processing of the dose value at the tth moment;

[0123] S32, filtering the initial value of the dose signal using a discrete-time first-order low-pass filter according to the mathematical model formula (15);

[0124] (15);

[0125] In formula (15), r3(t) is the initial value of the dose signal after filtering at the tth moment; r3(t-1) is the initial value of the dose signal after filtering at the t-1th moment;

[0126] S33, performing a limiting process on the initial value of the dose signal after filtering at the tth moment, so that the signal is controlled between 0 and 2, and obtaining a final dose signal value r(t).

[0127] S4. Input the optimal control parameter value described in S2 and the error value e(t) described in S3 into the fractional-order PID control algorithm module to calculate the dosage output control value u(t) at the current time t.

[0128] Furthermore, the optimal fractional-order PID control parameter value and the error value e(t) are input into the fractional-order PID control algorithm module for the dose control of the electron linear accelerator. The mathematical model of the fractional-order PID control algorithm is:

[0129] (16);

[0130] In formula (16), is the optimal proportional parameter of fractional-order PID, is the optimal integral parameter of fractional-order PID, is the optimal differential parameter of fractional-order PID, is the order of the optimal integral term of the fractional-order PID, is the order of the optimal derivative term of the fractional-order PID.

[0131] S5. Input the control value u(t) in S4 into the AFC control processing module to adjust the AFC stabilization frequency signal, use the AFC stabilization frequency signal output to drive the magnetron tuning position actuator to output an accurate dose, and repeat steps S2 to S5 until the dose reaches the target dose value.

[0132] Furthermore, according to the algorithm, the steps of optimizing the Kp, Ki, Kd, ​​γ, and α parameters of the fractional-order PID control algorithm are followed, and the standard human evolution optimization algorithm (HEOA) and improved human evolution optimization algorithm (MHEOA) are programmed in Matlab. The maximum scale N = 30, the problem dimension dim = 5, i.e., the number of parameters to be optimized, and the objective function fobj adopts the fitness function ; Maximum number of iterations Y = 40, minimum fitness value = 1e-8, upper limit ub of Kp, Ki, Kd, ​​γ, α parameters = [100 100 100 2 2]; lower limit lb = [1e-8 1e-8 1e-8 1e-8 1e-8], run the program for 40 iterations, and output the optimal Kp, Ki, Kd, ​​γ, α parameter values ​​of fractional-order PID, such as Figure 4 and Figure 5 shown.

[0133] Input the optimal Kp, Ki, Kd, ​​γ, and α parameter values ​​of fractional-order PID into Figure 3 In the Simulink simulation model of the electron linear accelerator dose control shown in the figure, a dose control mathematical model is established: , output the objective function value, that is, the change of the fitness function value and the system control response curve, such as Figure 6 and Figure 7 shown. Figure 6 Compared with the human evolution optimization algorithm optimized fractional-order PID (HEOA-FOPID), the improved human evolution optimization algorithm optimized fractional-order PID (MHEOA-FOPID) has a smaller fitness value at the beginning of iteration; with the increase of the number of iterations, the fitness value of MHEOA-FOPID decreases faster, reaching the minimum fitness value of 7.6 at the 23rd iteration, and the fitness value of HEOA-FOPID reaches stability at the 12th iteration. It can be found from the comparison chart that HEOA-FOPID falls into the local optimal area during the optimization process and cannot jump out of the local optimal area. In summary, the MHEOA-FOPID method proposed in the present invention has greatly improved the stability and robustness of fractional-order PID in fractional-order PID.

[0134] MHEOA-FOPID and HEOA-FOPID are applied to the dose control Simulink simulation model of electron linear accelerator, and the target dose is set to 15. Figure 7 It can be found that the overshoot of the standard fractional-order PID (FOPID) is too large, and the control amount is repeatedly adjusted. It tends to be stable in 15 seconds and reaches the target dose in 20 seconds, which is not advisable in practical applications; the overshoot of the HEOA-FOPID control method is lower than that of FOPID, tends to be stable at 10 seconds, and reaches the target dose at 12 seconds, without much repeated overshoot; the MHEOA-FOPID control method has the smallest overshoot, tends to be stable at 5 seconds, and reaches the target dose value; This shows that MHEOA-FOPID is more accurate and sensitive in dose control of electron linear accelerators.

Claims

1. A dose control optimization method for a radiotherapy electron linear accelerator, which uses an enhanced fractional-order PID algorithm to control the dose output module to efficiently and accurately adjust the AFC frequency stabilization signal to drive the actuator to output an accurate dose, thereby optimizing the dose control of the electron linear accelerator, characterized in that: The following steps are involved: S1. Build a dose control system for an electron linear accelerator, wherein the control system includes a fractional-order PID control algorithm module, a signal processing module, an AFC control processing module, a dose detection module, a dose output module, and a magnetron tuning position actuator; S2. Optimize the Kp, Ki, Kd, ​​γ, and α parameters of the fractional-order PID control algorithm using an improved human evolution optimization algorithm to obtain the optimal fractional-order PID control parameter values; S3, inputting the dose value collected in real time by the dose detection module into the signal processing module, the signal processing module converts the real-time dose value r1(t) into a real-time dose signal value r(t), and calculates the error value e(t) between r(t) and the dose signal target value p(t); S4, inputting the optimal fractional-order PID control parameter value described in S2 and the error value e(t) described in S3 into the fractional-order PID control algorithm module, and calculating the dosage output control value u(t) at the current time t; S5, input the control value u(t) in S4 to the AFC control processing module to adjust the AFC stabilization frequency signal, output the AFC stabilization frequency signal to drive the actuator to output an accurate dose, and repeat steps S2 to S5 until the dose reaches the target dose value.

2. The dose control optimization method for a radiotherapy electron linear accelerator according to claim 1, characterized in that: In step S2, the human evolution optimization algorithm is improved, and the specific steps are as follows: D1. Improvement of the adaptive function β in the human exploration phase of the standard human evolution optimization algorithm. The improved adaptive function The mathematical model is: (1); In formula (1), is the minimum fitness value of the population in the yth iteration, is the fitness value of the i-th individual position in the y-th iteration, is the position of the ith individual in the yth iteration, and the minimum fitness value of the population in the yth iteration, is the fitness value of the i-th individual position in the y-th iteration, is the position of the ith individual in the yth iteration, is the average position of individuals in the population at the yth iteration, y is the current iteration number, and Y is the maximum iteration number; D2. Improve the jump coefficient through the concept of similarity, so that the improved jump coefficient The optimization range of the algorithm can be adaptively changed according to the similarity between individuals. The specific improvement steps are: Step 1: According to formula (2), calculate the similarity between the i-th individual in the human evolution optimization algorithm population and a random individual and the individual at the best position in the current iteration. ; (2); In formula (2), is the fitness value of the i-th individual position in the y-th iteration, is the fitness value of the best individual position in the yth iteration, is the fitness value of the random b individual position in the yth iteration; Step 2: Calculate the mean of the population similarity of the yth iteration ; (3); In formula (3), The largest population size; Step 3: Use the mean of similarity The jump factor Improved, the mathematical model is: (4); In formula (4), is the lower bound of the individual position, is the upper bound of the individual position.

3. The dose control optimization method for a radiotherapy electron linear accelerator according to claim 2, characterized in that: By introducing the improved adaptive function and the improved jump factor The position update strategy of the human exploration phase of the standard human evolution optimization algorithm is improved, and the improved position update mathematical model is: (5); In formula (5), is the position of the i-th individual in the y+1-th iteration, is the position of the ith individual in the yth iteration, is the global best individual position, is the Levy flight function, is the algorithm problem dimension, is the current iteration number, is the maximum number of iterations, is the average position of individuals in the y-th iteration population, For improved jump factor .

4. The dose control optimization method for a radiotherapy electron linear accelerator according to claim 3, characterized in that: In step S2, the improved human evolution optimization algorithm is used to optimize the Kp, Ki, Kd, ​​and γ, α parameters of the fractional-order PID control algorithm. The specific steps are: S21, encoding Kp, Ki, Kd, ​​and γ, α parameters of the fractional-order PID control algorithm for the dose control of the electron linear accelerator into a 5-dimensional vector, where the dimension corresponds to the algorithm problem dimension dim; S22. Randomly initialize N individual initial positions of the improved human evolution optimization algorithm (MHEOA) , a real number mapping relationship is established between the position of each individual and a set of Kp, Ki, Kd and γ, α parameter vectors; S23, setting a fitness function, calculating the fitness value of each individual in the population at the current iteration of the improved human evolution optimization algorithm, and arranging the individual positions corresponding to the minimum fitness value in increasing order; S24, determine whether the current number of iterations y reaches the maximum number of iterations Y, if y=Y, then exit the optimization, and resolve the individual position corresponding to the global minimum fitness value into Kp, Ki, Kd and γ, α parameter values; otherwise, execute S25; S25, if satisfied , then the human exploration stage is executed, simulating that when faced with unexplored areas and limited knowledge, individuals tend to adopt a unified search, and the algorithm global exploration mathematical model is established according to formula (5); Otherwise, execute step S26 to establish a mathematical model for local development of the algorithm; S26, the stage of executing human development, dividing individuals into leaders, explorers, followers and losers according to their individual fitness values, each role adopts a unique development strategy, and updates the individual positions of the algorithm population; S27, will satisfy formula (6) The individual is taken as the leader, and the mathematical model of leader position update is established according to formula (7) to update the position of the leader individual of the population; (7); In formula (7), is the position of the i-th individual in the y+1-th iteration, is the position of the ith individual in the yth iteration, is the current iteration number, is the maximum number of iterations, is a random number between 0 and 1. is a random number that follows a normal distribution, is a dim-dimensional vector with a value of 1, is a constant, with a value of 0.6, w is the weight coefficient, and the mathematical model is: ; S28, will satisfy formula (8) The individuals are regarded as explorers, and the mathematical model of explorer position update is established according to formula (9) to update the positions of explorer individuals in the population; (9); In formula (9), is the worst individual position in the yth iteration; S29, will satisfy formula (10) The individuals are regarded as followers, and the mathematical model of follower position update is established according to formula (11) to update the positions of the follower individuals in the population; (11); In formula (11), is the best individual position in the yth iteration, is a random number in the range [1, 5]; S30, will satisfy formula (12) The individuals are regarded as losers, and the mathematical model for updating the loser position is established according to formula (13) to update the positions of the loser individuals in the population; (13); In formula (13), is the global best individual position.

5. The dose control optimization method for a radiotherapy electron linear accelerator according to claim 1, characterized in that: In step S3, the signal processing module converts the real-time dose value r1(t) into the real-time dose signal value r(t) through a mathematical model. The specific method includes: S31, performing a linear transformation on the input real-time dose value r1(t) according to the mathematical model formula (14), and adjusting its amplitude and offset; (14); In formula (14), r2(t) is the initial value of the dose signal after linear processing of the dose value at the tth moment; S32, filtering the initial value of the dose signal using a discrete-time first-order low-pass filter according to the mathematical model formula (15); (15); In formula (15), r3(t) is the initial value of the dose signal after filtering at the tth moment; r3(t-1) is the initial value of the dose signal after filtering at the t-1th moment; S33, performing a limiting process on the initial value of the dose signal after filtering at the tth moment, so that the signal is controlled between 0 and 2, and obtaining a final dose signal value r(t).