Flash therapy mode beam current pulse parameter control method and system

CN122582501APending Publication Date: 2026-08-18FUJIAN RUISIKE MEDICAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611087855.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-22
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

[0003]本发明提供闪疗模式的束流脉冲参数控制方法及系统,解决相关技术中启动初期脉冲与正式治疗脉冲缺乏有效区分、主递送阶段结束边界不明确、末段修整难以依据实时剩余剂量动态筛档以及整次照射的剂量控制与有效平均剂量率判定难以统一协调的技术问题

Benefits of technology

[0006]本发明的有益效果在于:本发明对闪疗模式下的束流脉冲输出过程进行分阶段控制,先对启动初期脉冲进行隔离判断,再确定稳态参考单脉冲剂量和正式治疗起始脉冲,使后续主递送阶段的校验基准和时间起点具有统一来源。通过将处方总剂量拆分为主递送目标剂量和末段修整预留空间,并以主递送参考脉冲数约束主递送过程,可使主递送结束边界更加明确。进一步地,本发明依据累计治疗剂量与处方总剂量确定剩余剂量,并结合修整脉冲档位剂量组逐轮筛选最优修整档位,使末段补偿过程与当前剂量缺口保持对应关系。与此同时,本发明在束流停止后结合治疗起始时间、治疗结束时间和累计治疗剂量确定有效照射时长及有效平均剂量率,从而使整次照射结果能够在剂量和时间两个维度上统一判定。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122582501A_ABST
    Figure CN122582501A_ABST
Patent Text Reader

Abstract

This invention relates to the field of beam parameter control technology, and discloses a method and system for beam pulse parameter control in flash therapy mode, comprising: Step 1, acquiring the total prescribed dose, tolerance parameters, and trim level parameters; Step 2, collecting detection values ​​and converting them into single-pulse equivalent doses to determine the steady-state reference single-pulse dose and the initial pulse for formal treatment; Step 3, determining the treatment start time, the primary delivery target dose, and the number of primary delivery reference pulses; Step 4, performing primary delivery pulse verification and updating the cumulative treatment dose; Step 5, calculating the remaining dose and determining the optimal trim level; Step 6, performing trim pulse verification and updating the cumulative treatment dose and the remaining dose; Step 7, stopping the beam and determining the irradiation result based on the duration, dose, and effective average dose rate. This invention achieves coordinated constraints between dose output and effective average dose rate throughout the entire irradiation process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of beam parameter control technology, specifically relating to a method and system for controlling beam pulse parameters in flash therapy mode. Background Technology

[0002] Radiotherapy equipment, under pulsed beam output conditions, typically needs to simultaneously control the total prescribed dose, the stability of single-pulse output, and the overall irradiation time. For flash therapy, the beam output rhythm is more concentrated, and the pulses are prone to rise and fluctuation during the initial phase. The final compensation needs to be completed within a short time, thus placing higher demands on pulse-level control. In existing technologies, some control methods primarily adjust the average or continuous output, lacking a clear distinction between the initial pulse and the formal treatment pulse, easily including unstable pulses in the initial phase directly into the treatment process. Simultaneously, the boundary between the main delivery phase and the final correction phase is not clearly defined, and fixed levels or continuous compensation are often used during correction, making it difficult to dynamically adjust the correction control state based on the real-time remaining dose. This can lead to problems such as unstable end positions in the main delivery phase, excessive or insufficient final compensation, increased deviation between the cumulative treatment dose and the total prescribed dose, and difficulty in accurately determining the effective average dose rate. Summary of the Invention

[0003] This invention provides a beam pulse parameter control method and system for flash therapy mode, which solves the technical problems in related technologies such as the lack of effective distinction between the initial pulse and the formal treatment pulse, the unclear end boundary of the main delivery stage, the difficulty in dynamically screening the final trimming based on the real-time remaining dose, and the difficulty in unifying and coordinating the dose control and effective average dose rate determination for the entire irradiation.

[0004] This invention provides a method for controlling beam pulse parameters in flash therapy mode, comprising the following steps: Step 1: Obtain the total prescription dose, steady-state judgment tolerance, main delivery pulse deviation tolerance, final dose tolerance, trim pulse level dose group and corresponding trim pulse control state group; Step 2: Collect the single-pulse integral detection value, convert it into a single-pulse equivalent dose based on the integral conversion coefficient, isolate and judge the initial pulse of the start-up, and determine the steady-state reference single-pulse dose and the formal treatment start pulse; Step 3: Determine the treatment start time based on the formal treatment start pulse, and combine the total prescription dose, final dose tolerance, maximum value of the trimmed pulse level, and steady-state reference single pulse dose to determine the cumulative treatment dose, main delivery protection margin, main delivery target dose, and main delivery reference pulse number. Step 4: Perform pulse-by-pulse verification of the main delivery pulse according to the steady-state reference single pulse dose and the main delivery reference pulse number, and update the cumulative treatment dose according to the verification results; Step 5: Calculate the remaining dose based on the cumulative treatment dose and the total prescription dose, and determine the optimal trim level under the constraints of the remaining dose, the final dose tolerance, and the trim pulse level dose group; Step 6: Call the trim pulse control state corresponding to the optimal trim level, output the trim pulse and perform pulse-by-pulse verification, update the cumulative treatment dose and the remaining dose, repeat until the remaining dose is not greater than the final dose tolerance. Step 7: Stop the beam and determine the effective irradiation duration and effective average dose rate based on the treatment start time, treatment end time and cumulative treatment dose, and determine whether the irradiation result meets the standard.

[0005] This invention also provides a beam pulse parameter control system for flash therapy mode, including: The parameter acquisition module is used to acquire the total prescription dose, steady-state judgment tolerance, main delivery pulse deviation tolerance, final dose tolerance, trim pulse level dose group and corresponding trim pulse control state group; The steady-state identification module is used to collect the single-pulse integral detection value, convert it into a single-pulse equivalent dose based on the integral conversion coefficient, isolate and judge the initial pulse at the start, and determine the steady-state reference single-pulse dose and the formal treatment start pulse. The starting point planning module is used to determine the treatment start time based on the formal treatment start pulse, and in combination with the total prescription dose, final dose tolerance, maximum value of the trim pulse level and steady-state reference single pulse dose, to determine the cumulative treatment dose, main delivery protection margin, main delivery target dose and main delivery reference pulse number; The main delivery verification module is used to perform pulse-by-pulse verification of the main delivery pulse according to the steady-state reference single pulse dose and the main delivery reference pulse number, and update the cumulative treatment dose according to the verification results; The remaining dose screening module is used to calculate the remaining dose based on the cumulative treatment dose and the total prescription dose, and to determine the optimal trimming level under the constraints of the remaining dose, the final dose tolerance, and the trimming pulse level dose group. The trimming closure module is used to call the trimming pulse control state corresponding to the optimal trimming level, output the trimming pulse and perform pulse-by-pulse verification, update the cumulative treatment dose and the remaining dose, and repeat until the remaining dose is not greater than the final dose tolerance. The result determination module is used to stop the beam and determine the effective irradiation duration and effective average dose rate based on the treatment start time, treatment end time, and cumulative treatment dose, and determine whether the irradiation result meets the standard.

[0006] The beneficial effects of this invention are as follows: This invention implements phased control of the beam pulse output process in flash therapy mode. First, it isolates and judges the initial pulse, then determines the steady-state reference single-pulse dose and the formal treatment start pulse, ensuring a unified source for the verification benchmark and time starting point of the subsequent main delivery phase. By splitting the total prescription dose into the main delivery target dose and the final trimming reserve space, and constraining the main delivery process with the main delivery reference pulse number, the main delivery end boundary becomes clearer. Furthermore, this invention determines the remaining dose based on the cumulative treatment dose and the total prescription dose, and combines the trimming pulse dose group to sequentially screen the optimal trimming level, ensuring that the final compensation process maintains a correspondence with the current dose gap. Simultaneously, after beam cessation, this invention combines the treatment start time, treatment end time, and cumulative treatment dose to determine the effective irradiation duration and effective average dose rate, thereby enabling a unified judgment of the entire irradiation result in both dose and time dimensions. Attached Figure Description

[0007] Figure 1 This is a flowchart of the beam pulse parameter control method for the flash therapy mode of the present invention. Detailed Implementation

[0008] The subject matter described herein will now be discussed with reference to exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and implement the subject matter described herein, and changes may be made to the function and arrangement of the elements discussed without departing from the scope of this specification. Various processes or components may be omitted, substituted, or added as needed in the examples. Furthermore, features described in some examples may be combined in other examples.

[0009] It should be noted that, unless otherwise defined, the technical or scientific terms used in one or more embodiments of the present invention should have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in one or more embodiments of the present invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0010] like Figure 1As shown, the beam pulse parameter control method in flash therapy mode includes the following steps: Step 1: Obtain the total prescription dose, steady-state judgment tolerance, main delivery pulse deviation tolerance, final dose tolerance, trim pulse level dose group and corresponding trim pulse control state group; Step 2: Collect the single-pulse integral detection value, convert it into a single-pulse equivalent dose based on the integral conversion coefficient, isolate and judge the initial pulse of the start-up, and determine the steady-state reference single-pulse dose and the formal treatment start pulse; Step 3: Determine the treatment start time based on the formal treatment start pulse, and combine the total prescription dose, final dose tolerance, maximum value of the trimmed pulse level, and steady-state reference single pulse dose to determine the cumulative treatment dose, main delivery protection margin, main delivery target dose, and main delivery reference pulse number. Step 4: Perform pulse-by-pulse verification of the main delivery pulse according to the steady-state reference single pulse dose and the main delivery reference pulse number, and update the cumulative treatment dose according to the verification results; Step 5: Calculate the remaining dose based on the cumulative treatment dose and the total prescription dose, and determine the optimal trim level under the constraints of the remaining dose, the final dose tolerance, and the trim pulse level dose group; Step 6: Call the trim pulse control state corresponding to the optimal trim level, output the trim pulse and perform pulse-by-pulse verification, update the cumulative treatment dose and the remaining dose, repeat until the remaining dose is not greater than the final dose tolerance. Step 7: Stop the beam and determine the effective irradiation duration and effective average dose rate based on the treatment start time, treatment end time and cumulative treatment dose, and determine whether the irradiation result meets the standard.

[0011] In one embodiment of the present invention, in flash therapy mode, the beam pulse output rhythm is dense, and single-pulse dose control and end-stage trimming control are interconnected. If the sources of the pre-parameters are not unified, inconsistencies in the reference bases may easily occur between subsequent steady-state identification, master delivery verification, and trimming level invocation. Therefore, this embodiment first merges the dose target parameters, tolerance parameters, and trimming parameters to form a unified set of control parameters for continuous invocation in subsequent steps.

[0012] In step 11, the system first obtains the total prescribed dose, steady-state determination tolerance, main delivery pulse deviation tolerance, and final dose tolerance. The total prescribed dose represents the total dose target required to be delivered in this irradiation mission; the steady-state determination tolerance represents the allowable fluctuation range when multiple consecutive pulses enter a steady state after startup; the main delivery pulse deviation tolerance represents the allowable deviation range of a single pulse in the main delivery phase relative to the steady-state reference single pulse dose; and the final dose tolerance represents the allowable error range of the cumulative treatment dose relative to the total prescribed dose.

[0013] Subsequently, the system verifies the validity of the above parameters. The total prescription dose must be greater than zero, the final dose tolerance must be less than the total prescription dose, and both the steady-state determination tolerance and the main delivery pulse deviation tolerance must be greater than zero. In other words, this step first excludes parameter combinations that lack control significance or have unbalanced boundary relationships, and then determines the total prescription dose, steady-state determination tolerance, main delivery pulse deviation tolerance, and final dose tolerance that meet the conditions as valid parameters. For example, if the final dose tolerance is greater than the total prescription dose, the subsequent determination of the remaining dose will lose its practical constraint effect, and such parameter configurations will not enter the subsequent processing flow.

[0014] In step 12, the system continues to acquire the trimmed pulse level dose group and the trimmed pulse control status group. The trimmed pulse level dose group represents multiple pre-calibrated trimmed dose levels; the trimmed pulse control status group represents the device control status corresponding to each trimmed dose level. The system first sorts the dose levels in the trimmed pulse level dose group from largest to smallest, and then establishes a one-to-one correspondence between the sorted dose levels and the trimmed pulse control status with the same sequence number in the trimmed pulse control status group. This one-to-one correspondence means that each trimmed dose level corresponds to only one trimmed pulse control status, and the reverse is also true.

[0015] After sorting and establishing the correspondence, the system writes the effective parameters, the sorted trimmed pulse dose groups, and their corresponding trimmed pulse control state groups into the same control parameter set. Subsequent steps directly call this control parameter set. Specifically, the steady-state identification process calls the steady-state judgment tolerance, the main delivery boundary construction calls the total prescription dose and the maximum value of the trimmed pulse dose, and the final trimming stage calls the trimmed pulse dose groups and their corresponding trimmed pulse control states. For example, when a subsequent step selects an optimal trimmed dose, the system can directly call the corresponding trimmed pulse control state according to the same sequence number, without re-matching the control rules.

[0016] This embodiment first confirms the validity of the parameters, and then completes the unified organization of the adjusted dose level and control status. This not only ensures that the parameter references in subsequent steps are consistent, but also allows the adjustment level selection result to be directly linked to the equipment control status, facilitating the continuous execution of the entire beam pulse control process.

[0017] In one embodiment of the present invention, step 2 is responsible for pulse identification and steady-state entry determination during the initiation phase. This step continues to process real-time detection data based on step 1, converting the original pulse detection results into comparable dose data, and determining whether the beam has left the initial initiation pulse phase based on the continuous pulse group. That is to say, this step does not directly include all pulses after initiation into the formal treatment, but first completes the isolation of the initial initiation pulses, and then determines the steady-state reference single-pulse dose and the initiation pulse of the formal treatment required for subsequent steps.

[0018] In step 21, the system first obtains the integral conversion coefficient and calls the steady-state judgment tolerance from step 1. The integral conversion coefficient represents the fixed conversion parameter for converting the single-pulse integral detection value into a dose value; the single-pulse integral detection value represents the integral detection data collected by the device after each pulse output. Subsequently, the system collects the single-pulse integral detection values ​​one by one in pulse order and multiplies each single-pulse integral detection value by the integral conversion coefficient to obtain the single-pulse equivalent dose arranged by pulse number. Here, the single-pulse equivalent dose represents the actual output value of a single pulse under a unified dose dimension. After this processing, subsequent judgments are no longer directly based on the original detection data, but are uniformly based on the single-pulse equivalent dose sequence arranged by pulse number.

[0019] In step 22, the system constructs a candidate decision sequence based on a preset number of consecutive single-pulse equivalent doses. The preset number represents the number of consecutive pulses used in each steady-state judgment; this number is fixed in this embodiment and does not change with the fluctuation of the current pulse. The candidate decision sequence represents the set of single-pulse equivalent doses continuously intercepted from the current pulse. The system performs fluctuation calculations on this candidate decision sequence, using the difference between the maximum and minimum values ​​in the candidate decision sequence as the numerator and the median value as the denominator. The ratio of the numerator to the denominator is determined as the steady-state fluctuation ratio. The median value is used as the normalization benchmark to keep the influence of local abnormal pulses within the sequence on the overall judgment within a controllable range. For example, when multiple consecutive pulses have generally stabilized, and only a single pulse shows a slight deviation, the median value of the candidate decision sequence can still represent the central dose level of that consecutive pulse group relatively well.

[0020] In step 23, the system compares the steady-state fluctuation ratio with the steady-state determination tolerance. When the steady-state fluctuation ratio is greater than the steady-state determination tolerance, it indicates that the continuous pulse group corresponding to the current candidate determination sequence still has fluctuations exceeding the allowable range. The system continues to update the candidate determination sequence based on the subsequent single-pulse equivalent doses arranged by pulse number and repeats the steady-state determination. When the steady-state fluctuation ratio is not greater than the steady-state determination tolerance, it indicates that the continuous pulse group corresponding to the current candidate determination sequence has met the steady-state conditions. At this time, the system determines the median value in the candidate determination sequence as the steady-state reference single-pulse dose and determines the first pulse in the candidate determination sequence arranged by pulse number as the formal treatment initiation pulse. Here, the steady-state reference single-pulse dose represents the single-pulse dose benchmark used for subsequent master delivery verification, and the formal treatment initiation pulse represents the pulse corresponding to the starting point of the formal entry into the treatment chain. That is to say, pulses before the formal treatment initiation pulse are all classified as initial pulses and do not participate in the subsequent master delivery dose accumulation.

[0021] It should be noted that the candidate decision sequence in this step does not point to a fixed set of pulses, but rather slides and updates continuously as new pulses arrive. This allows the system to determine whether it has entered a steady state based on the latest continuous pulse group state, rather than on the result of a single pulse at a particular moment. For example, if the steady-state fluctuation ratios of the first few candidate decision sequences after startup are all higher than the steady-state decision tolerance, the system will not prematurely lock the formal treatment initiation pulse; only when a continuous pulse group as a whole meets the allowable fluctuation boundary will the steady-state reference single-pulse dose and the formal treatment initiation pulse be formally determined.

[0022] Through the above implementation process, this embodiment first converts the single-pulse integral detection value into a single-pulse equivalent dose under a unified dimension, and then completes the initial pulse isolation and steady-state entry determination based on the continuous pulse group. This not only ensures that the steady-state reference single-pulse dose called in the subsequent main delivery stage has a unified source, but also ensures that the formal treatment start pulse corresponding to the treatment start time has a clear boundary, thereby maintaining the consistency of the reference basis for subsequent dose verification, pulse counting and duration calculation.

[0023] In one embodiment of the present invention, the time start point, dose start point, main delivery protection margin, main delivery target dose, and main delivery reference pulse number are determined sequentially, so that subsequent step 4 can perform pulse-by-pulse verification around a unified boundary, rather than temporarily determining the end position during the main delivery process.

[0024] In step 31, the system first determines the treatment start time based on the timestamp corresponding to the formal treatment initiation pulse. This treatment start time represents the starting point of the formal treatment process, excluding the time period corresponding to the initial pulse. Subsequently, the system sets the initial cumulative treatment dose to zero and calls the dose level with the highest dose in the trim pulse dose level group. The initial cumulative treatment dose represents the dose starting point already included in the cumulative result at the start of formal treatment; it is fixed at zero in this step, and subsequent steps (step 4) only accumulate it based on this after the main delivery pulse passes verification. The dose level with the highest dose represents the maximum dose level value used for a single trim in the trim pulse dose level group. In other words, this step first fixes the time and dose starting points, then extracts the maximum single trim dose that may be used in the final trim stage, serving as the basis for calculating the subsequent main delivery protection margin. If the formal treatment initiation pulse has been stably identified in step 2, the treatment start time determined in this step and the subsequent effective irradiation duration calculation have the same source.

[0025] In step 32, the system adds the maximum dose level to the final dose tolerance to determine the primary delivery protection margin. This primary delivery protection margin represents the dose space that needs to be reserved before the end of the primary delivery phase. The maximum dose level corresponds to the maximum single correction dose that may be used in the final correction phase, and the final dose tolerance corresponds to the final error range that can be retained for the entire irradiation. The system then subtracts the primary delivery protection margin from the total prescribed dose to determine the primary delivery target dose. The primary delivery target dose represents the dose boundary that needs to be achieved in the primary delivery phase and is no longer equivalent to the total prescribed dose. That is, the total dose target is split into two parts in this step: one part is undertaken by the primary delivery phase, and the other part is reserved for the final correction phase in the form of the primary delivery protection margin. For example, if the total prescribed dose is already close to the end of the primary delivery phase, but the system still needs to reserve operating space for one maximum dose correction, the primary delivery target dose determined in this step will be lower than the total prescribed dose, ensuring that the subsequent correction phase still has a clear dose buffer.

[0026] In step 33, the system divides the primary delivery target dose by the steady-state reference single-pulse dose, and takes the largest integer not greater than the result to determine the primary delivery reference pulse number. The steady-state reference single-pulse dose, derived from step 2, represents the standard dose level of a single pulse after the beam has entered a steady state; the primary delivery reference pulse number represents the theoretically required number of qualified pulses to be completed in the primary delivery phase. The system takes the largest integer not greater than the result of the division because the primary delivery pulse number must be expressed as an integer, not a fractional pulse. After this processing, the primary delivery target dose, originally in continuous form, is converted into a discrete primary delivery reference pulse number. Subsequent step 4 can then use this primary delivery reference pulse number to verify each primary delivery pulse and determine when to end the primary delivery. Furthermore, when the primary delivery target dose is not divisible by the steady-state reference single-pulse dose, this step does not expand the pulse number upwards, but instead reserves the uncovered dose portion for processing in the final trimming stage to maintain the division of labor between primary delivery and trimming.

[0027] From an overall perspective, step 31 first locks the treatment start time and initial cumulative treatment dose value based on the formal treatment initiation pulse. Then, step 32 generates the main delivery protection margin and main delivery target dose based on the total prescribed dose, final dose tolerance, and the dose at the highest dose level. Finally, step 33 generates the main delivery reference pulse count by combining the steady-state reference single-pulse dose. The output of the previous sub-step is used as the input of the next sub-step, and there is no renaming or reassignment of parameters. The treatment start time continues to participate in the calculation of effective irradiation duration in step 7, and the initial cumulative treatment dose value continues to serve as the main delivery cumulative starting point in step 4. The main delivery protection margin and the main delivery target dose jointly define the dose boundary of the main delivery stage, and the main delivery reference pulse count is further transformed into the pulse count boundary in step 4.

[0028] Through the above implementation process, this embodiment first fixes the time start and dose start of formal treatment, then breaks down the total dose target into the main delivery dose boundary and the trimming reserve boundary, and further converts the main delivery dose boundary into an executable pulse number boundary. This not only ensures that the main delivery stage maintains a stable end basis, but also reserves a clear dose space for the final trimming stage.

[0029] In one embodiment of the present invention, step 4, based on step 3, performs detection, conversion, deviation comparison and accumulation processing on each of the current main delivery pulses, so that each pulse in the main delivery stage is judged under the same dose caliber and the same counting rule, instead of going back to check after the accumulation is completed.

[0030] In step 41, the system first acquires the single-pulse integral detection value of the current main delivery pulse. The single-pulse integral detection value represents the integrated detection data acquired by the device for the current main delivery pulse. It is still the original measurement result and cannot be directly compared with the steady-state reference single-pulse dose. Subsequently, the system multiplies the single-pulse integral detection value of the current main delivery pulse by the integral conversion factor to determine the single-pulse equivalent dose of the current main delivery pulse. Here, the integral conversion factor represents a fixed conversion parameter that converts the original detection value into a dose value. The single-pulse equivalent dose represents the result value that characterizes the output level of the current main delivery pulse under a unified dose dimension. After this processing, the object involved in the verification in step 4 is no longer the original detection quantity, but the single-pulse equivalent dose that has undergone unified conversion. That is to say, the single-pulse equivalent dose used for steady-state identification in step 2 and the single-pulse equivalent dose used for main delivery verification in this step use the same conversion logic, and the two have a consistent data basis.

[0031] In step 42, the system compares the single-pulse equivalent dose of the current master delivery pulse with the steady-state reference single-pulse dose to perform deviation calculation and threshold construction. Specifically, the system takes the absolute value of the difference between the single-pulse equivalent dose of the current master delivery pulse and the steady-state reference single-pulse dose to obtain the master delivery pulse deviation value; simultaneously, it multiplies the master delivery pulse deviation tolerance by the steady-state reference single-pulse dose to obtain the allowable deviation threshold. Here, the master delivery pulse deviation value represents the actual deviation of the current master delivery pulse relative to the steady-state reference, and the allowable deviation threshold represents the upper limit of the acceptable deviation for the current master delivery stage. The system then compares the master delivery pulse deviation value with the allowable deviation threshold. If the master delivery pulse deviation value is not greater than the allowable deviation threshold, the verification result is determined to be passed; if the master delivery pulse deviation value is greater than the allowable deviation threshold, the verification result is determined to be failed. With this processing method, whether the pulse in the master delivery stage is qualified does not depend on a fixed absolute deviation value, but rather on the relative deviation level of the current pulse relative to the steady-state reference single-pulse dose. For example, when the steady-state reference single-pulse dose is high, the allowable absolute deviation range of the system is correspondingly expanded; when the steady-state reference single-pulse dose is low, the allowable absolute deviation range of the system is tightened, thereby maintaining the consistency of the main delivery calibration caliber.

[0032] In step 43, the system updates the cumulative treatment dose and simultaneously executes the main delivery count based on the verification result obtained in step 42. If the verification result is successful and the current main delivery pulse is the first main delivery pulse to pass verification, the system adds the single-pulse equivalent dose of the current main delivery pulse to the initial value of the cumulative treatment dose to obtain the updated cumulative treatment dose. If the verification result is successful but the current main delivery pulse is not the first main delivery pulse to pass verification, the system adds the single-pulse equivalent dose of the current main delivery pulse to the previously updated cumulative treatment dose to obtain the new cumulative treatment dose. Simultaneously, the system counts each main delivery pulse that passes verification. "Counting each one" means that for each main delivery pulse that passes verification, the count increases by one unit; main delivery pulses that fail verification are not included in the count. If the verification result is unsuccessful, the system stops the beam and does not continue to output subsequent main delivery pulses. Subsequently, the system compares the count result with the main delivery reference pulse count, and determines that the main delivery is complete when the count result reaches the main delivery reference pulse count. In other words, the termination condition for the main delivery phase is not that the total number of output pulses reaches a certain preset value, but rather that the number of main delivery pulses that pass verification reaches the main delivery reference pulse number. With this processing, even if a main delivery pulse deviates from the allowable dosage range, it will not be included in the cumulative treatment dose and counting results. For example, when the first verified main delivery pulse appears, the system starts the initial accumulation based on the initial cumulative treatment dose value; as subsequent main delivery pulses continue to pass verification, the accumulation continues based on the previously updated cumulative treatment dose, thus maintaining the continuity of the accumulation chain.

[0033] Through the above steps, this embodiment first converts the detection result of the current main delivery pulse into a single-pulse equivalent dose under a unified dimension. Then, it constructs a pulse-by-pulse verification boundary using the steady-state reference single-pulse dose and the main delivery pulse deviation tolerance. Finally, it determines whether the main delivery is complete only by accumulating and counting the main delivery pulses that pass the verification. This ensures that the dose judgment criteria for each pulse in the main delivery stage are consistent, and that the cumulative treatment dose consists only of the main delivery pulses that meet the verification conditions. This facilitates the continued execution of subsequent remaining dose calculation and adjustment control along the same parameter link.

[0034] In one embodiment of the present invention, the system first compares the cumulative treatment dose with the total prescription dose to obtain the current dose difference that has not yet been completed. Then, it combines the final dose tolerance and the dose group of the trimming pulse level to determine whether it is necessary to enter the trimming stage. If trimming is indeed necessary, it determines the optimal trimming level to be used in this round. After this processing, the trimming pulse control state called in the subsequent step 6 is no longer a preset fixed state, but a state that directly corresponds to the current dose gap.

[0035] In step 51, the system subtracts the cumulative treatment dose from the total prescribed dose to determine the remaining dose. Here, the total prescribed dose represents the target total dose required for this irradiation task, the cumulative treatment dose represents the actual cumulative dose achieved up to the end of the main delivery phase, and the remaining dose represents the dose value that still needs to be supplemented to reach the total prescribed dose. In other words, this step first transforms the actual output of the main delivery phase into a quantity that directly reflects the size of the dose gap. After this processing, subsequent steps no longer directly decide based on the total prescribed dose, but instead uniformly focus on adjusting the remaining dose. The reason for this is that after the main delivery phase, the control focus has shifted from the overall target to local compensation; if the total prescribed dose is still used as the direct judgment object, it would be detrimental to the fine selection of subsequent adjustment levels.

[0036] In step 52, the system compares the remaining dose with the final dose tolerance. The final dose tolerance represents the allowable error boundary at the end of the entire irradiation session. If the remaining dose is not greater than the final dose tolerance, it indicates that the deviation between the current cumulative treatment dose and the total prescribed dose is within the allowable range, and the system determines to end the optimal trim level determination process and no longer enters the trim level screening. If the remaining dose is greater than the final dose tolerance, it indicates that the current uncompleted dose difference still exceeds the allowable boundary, and the system determines to enter the optimal trim level screening. This comparison step has a diversion function; that is, this step first determines whether the current dose gap is small enough, and only triggers subsequent level screening if compensation is still needed. For example, when only a very small dose difference remains after the main delivery phase, and this difference has already fallen within the final dose tolerance range, the system will not execute additional trim pulse output for this purpose.

[0037] In step 53, assuming the optimal trimming dose selection has been determined in step 52, the system calls the trimming pulse dose set and compares each dose level with the remaining dose in descending order. The trimming pulse dose set represents a pre-calibrated set of multiple trimming dose levels, where each dose level is sorted in descending order. The system judges each level sequentially, starting with the larger levels. When the first level dose is not greater than the remaining dose, the level of that level dose in the trimming pulse dose set is determined as the optimal trimming dose level. Here, the optimal trimming dose level means the trimming dose level that neither exceeds the remaining dose nor is as close to the remaining dose as possible in the current round. In other words, this step adopts a screening method that prioritizes selecting the larger level while ensuring that the remaining dose is not exceeded, rather than arbitrarily selecting a smaller level. As a result, in each subsequent trimming stage, the largest available level is used first in each round to reduce the remaining dose more quickly while keeping the dose boundary under control. For example, when the remaining dose is between two adjacent trim levels, the system will select the larger trim level that does not exceed the remaining dose, instead of directly downgrading to the smaller trim level.

[0038] Through the above steps, this embodiment first converts the cumulative output result of the main delivery stage into the remaining dose, then determines whether to continue into trimming control based on the final dose tolerance, and finally determines the optimal trimming level in the trimming pulse level dose group based on the remaining dose. This not only maintains a clear connection between the main delivery result and the trimming stage, but also allows subsequent trimming control to be based on the current actual dose gap, thus providing a continuous and clear screening basis for the final compensation process of the entire irradiation.

[0039] In one embodiment of the present invention, after the optimal trimming level has been determined in step 5, the system does not directly compensate continuously at a fixed level. Instead, it calls the corresponding trimming pulse control state based on the optimal trimming level obtained in the current round of screening to complete the single trimming pulse output, single trimming pulse verification, and dose status update after trimming. Subsequently, the system determines whether it needs to re-enter the optimal trimming level screening based on the updated remaining dose. That is to say, the trimming control in this step is not a one-time compensation process, but a closed-loop process with a single trimming pulse as the granularity. After this processing, the trimming pulse control state no longer remains static, but is adjusted round by round according to the change of the remaining dose, so that the final compensation process always revolves around the current dose gap.

[0040] In step 61, the system first calls the trimming pulse control state corresponding one-to-one with the optimal trimming level. The optimal trimming level is obtained in step 5 based on the remaining dose, and the trimming pulse control state is the corresponding state in the control parameter set established with the same sequence number for each trimming level in step 1. The system outputs the current trimming pulse according to this correspondence and collects the integral detection value of the current trimming pulse after its output. The integral detection value represents the integrated detection data of the actual output result of this trimming pulse. The system then multiplies the integral detection value of the current trimming pulse by the integral conversion coefficient to determine the equivalent dose of the current trimming pulse. The equivalent dose of the trimming pulse here represents the actual output result of the current trimming pulse under a unified dose dimension. After this processing, the object used for verification and accumulation in step 6 is no longer the original detection value, but the equivalent dose of the trimming pulse after unified conversion, thus maintaining a consistent data caliber with the aforementioned main delivery stage and steady-state identification stage. If the optimal trim level has been re-selected in step 5, the current trim pulse control state will also be updated synchronously, and the previous trim control state will not be continued. This can be understood as follows: when the remaining dose has decreased after the previous trim, the optimal trim level re-selected in subsequent rounds will also change accordingly. In this case, the trim pulse control state invoked in this step will also switch, rather than mechanically repeating the control parameters of the previous round.

[0041] In step 62, the system compares the equivalent dose of the current trimming pulse with the sum of the remaining dose and the final dose tolerance. Here, the remaining dose is the dose output in step 5 that is valid before the start of this trimming round, and the final dose tolerance represents the allowable error boundary for the entire irradiation. The system uses the sum of the remaining dose and the final dose tolerance as the upper bound for verification of the current trimming pulse. Verification is considered successful when the equivalent dose of the current trimming pulse is not greater than the sum of the remaining dose and the final dose tolerance; otherwise, the beam is stopped. The remaining dose and the final dose tolerance are used together to form the verification boundary, rather than just the remaining dose, because a small range of error constrained by the final dose tolerance is allowed in the final trimming stage. Without the final dose tolerance, the restriction on the trimming pulse would be too rigid, hindering the continuous execution of the final closure. Conversely, if this upper bound for verification is not set and the trimming pulses are allowed to participate directly in the accumulation, excessive output exceeding the allowable boundary may easily occur during the final compensation stage. Therefore, this step first verifies and then updates to ensure that each trimming pulse enters the next processing link within the allowable range of the current round.

[0042] In step 63, assuming the verification has passed in step 62, the system processes the first verified trimming pulse and subsequent verified trimming pulses separately. For the first verified trimming pulse, the system adds its equivalent dose to the cumulative treatment dose output in step 4 to obtain the updated cumulative treatment dose. For subsequent verified trimming pulses, the system adds their equivalent dose to the previously updated cumulative treatment dose to obtain the new cumulative treatment dose. This distinction between the first and subsequent trimming pulses ensures a smooth transition between the trimming and main delivery phases. Subsequently, the system subtracts the updated cumulative treatment dose from the total prescription dose to obtain the updated remaining dose. If the updated remaining dose is greater than the final dose tolerance, it indicates that there is still a dose gap exceeding the allowable boundary after the current round of trimming, and the system returns to step 5 to re-determine the optimal trimming level. If the updated remaining dose is not greater than the final dose tolerance, it indicates that the deviation between the current cumulative treatment dose and the total prescription dose has fallen within the allowable range, and the system ends the trimming pulse output. In other words, this step does not continuously output multiple trimming pulses at an optimal trimming level until the end. Instead, it recalculates the remaining dose after each verified trimming pulse is output and decides whether to re-screen the dose level. For example, if the updated remaining dose after the first round of trimming is lower than the dose at the current level but still higher than the final dose tolerance, the system will not continue to use the original optimal trimming level. Instead, it will return to step 5 to reselect a trimming level that is more suitable for the new remaining dose.

[0043] After the above processing, this embodiment first calls the corresponding trimming pulse control state according to the optimal trimming level, then performs verification and state update on a single trimming pulse, and after each round of trimming, selects the subsequent level again according to the updated remaining dose. This not only maintains the continuous correspondence between the final trimming process and the current dose gap, but also allows the cumulative treatment dose and the remaining dose to be updated synchronously after each round of trimming, so that the final compensation process maintains a clear and continuous closed-loop control relationship.

[0044] In one embodiment of the present invention, after the main delivery phase and the trimming phase, the system does not directly use the cumulative treatment dose as the final conclusion. Instead, it continues to combine the treatment start time, treatment end time, and cumulative treatment dose to determine the effective irradiation duration and effective average dose rate, and provides the irradiation result when both dose and rate constraints are satisfied. The aforementioned steps have completed beam output control, main delivery verification, and trimming closure, but the results formed by these steps are still process results. This step further merges the process results into the final state determination result. That is to say, this step does not continue to adjust the beam parameters, but rather performs a unified calculation of the time and dose results formed throughout the entire irradiation process.

[0045] In step 71, the system first stops the beam and records the time stamp of the beam stop as the treatment end time. Here, the treatment end time represents the end point after the termination of the last effective beam output in the current irradiation task, while the treatment start time determined in step 3 represents the starting point when the formal treatment enters the link. Subsequently, the system subtracts the treatment start time from the treatment end time in step 3 to determine the effective irradiation duration. The effective irradiation duration represents the duration from the start of formal treatment to the complete cessation of the beam, excluding the invalid interval before the initial pulse isolation. It also no longer separately distinguishes between the main delivery phase and the adjustment phase, but rather combines both into the total effective irradiation duration. After this processing, subsequent rate calculations no longer rely on the duration of a single phase, but instead use the actual duration of the entire formal treatment as a unified time basis. If the interference of the initial pulse on the treatment start time has been eliminated in step 3, the effective irradiation duration obtained in this step can accurately reflect the formal treatment interval, without mistakenly including the time corresponding to the unstable pulse in the final state determination.

[0046] In step 72, the cumulative treatment dose output from step 6 is used as the numerator, and the effective irradiation duration is used as the denominator. The ratio of the numerator to the denominator is determined as the effective average dose rate. Here, the cumulative treatment dose represents the total dose result that has been completed and confirmed as effective by the end of step 6. This includes both the cumulative treatment dose formed by the verified main delivery pulse during the main delivery phase and the final cumulative treatment dose formed after compensation by the verified trimming pulse during the trimming phase. The effective average dose rate represents the average dose output level actually achieved by the system within the effective irradiation duration. After this processing, the cumulative output results originally scattered across different phases are uniformly converted into a single rate index. The reason for this is that whether the entire irradiation meets the flash therapy requirements cannot be determined solely by whether the cumulative treatment dose reaches the prescribed total dose; it also requires consideration of the formal treatment duration to determine whether the dose is completed within the effective time range. In other words, even if the cumulative treatment dose is close to the prescribed total dose, if the effective irradiation duration is too long, the corresponding effective average dose rate may still be insufficient, thus failing to meet the standard. For example, although the main delivery phase and the trimming phase are executed separately in the preceding steps, this step no longer calculates the average rate of the two phases separately. Instead, it uses the total cumulative treatment dose and the total effective irradiation time to form a unique effective average dose rate result.

[0047] In step 73, the system takes the absolute value of the difference between the cumulative treatment dose and the total prescribed dose to determine the dose deviation. Here, the dose deviation represents the actual degree of deviation of the final irradiation result from the total prescribed dose, which comes from step 1 and is the total dose target for the entire irradiation. Subsequently, the system performs two comparisons simultaneously: first, comparing the dose deviation with the final dose tolerance; second, comparing the effective average dose rate with the minimum effective average dose rate of the flash therapy. The final dose tolerance represents the allowable dose error boundary at the end of the entire irradiation, and the minimum effective average dose rate of the flash therapy represents the minimum rate boundary for judging whether the irradiation meets the flash therapy rate requirement. When the dose deviation is not greater than the final dose tolerance and the effective average dose rate is not less than the minimum effective average dose rate of the flash therapy, the system determines that the irradiation result meets the standard; if either condition is not met, the irradiation result is determined to be unsatisfactory. Therefore, this step forms a two-condition final state determination, rather than drawing a conclusion based solely on a single dose result or a single rate result. For example, if the deviation between the cumulative treatment dose and the total prescribed dose is within the allowable range, but the effective average dose rate is lower than the minimum effective average dose rate of flash therapy, the system will still determine that the irradiation result is not up to standard; conversely, if the effective average dose rate meets the requirements, but the cumulative treatment dose deviates too much from the total prescribed dose, the system will also not judge it as up to standard.

[0048] Through the above processing, this embodiment first locks the treatment end time when the beam stops, then forms the effective irradiation duration based on the treatment start time, and obtains the effective average dose rate by combining the cumulative treatment dose. Finally, the dose deviation judgment and rate judgment are uniformly incorporated into the irradiation result judgment. This can not only maintain the consistency of the final state conclusions of the entire irradiation in the time and dose dimensions, but also make the control results formed in the previous steps have clear and continuous judgment basis in the final output stage.

[0049] In one embodiment of the present invention, after each trimming pulse verification passes, step 63 re-determines whether to perform the level selection again based on the updated remaining dose. That is, the optimal trimming level corresponds to a single trimming pulse output. After the current round of trimming pulses is completed, the system first updates the cumulative treatment dose and the updated remaining dose, and then determines whether to proceed to the next round of optimal trimming level determination. With this processing, the trimming phase is no longer continuous compensation at a fixed level, but rather a closed-loop compensation based on real-time changes in the remaining dose.

[0050] In step 91, the system outputs only a single trimming pulse for the trimming pulse control state corresponding to the current optimal trimming level. The current optimal trimming level originates from the screening result in step 5, while the trimming pulse control state originates from the one-to-one correspondence established in step 1. The system does not allow multiple trimming pulses to be output continuously based on the same optimal trimming level in the current round. Instead, it outputs a single trimming pulse first, and immediately updates the cumulative treatment dose and the updated remaining dose after the single trimming pulse passes verification. Updating the cumulative treatment dose involves adding the equivalent dose of the trimming pulse formed by the current single trimming pulse to the cumulative treatment dose in the previous state; the updated remaining dose is the remaining dose result obtained again based on the updated cumulative treatment dose. After this processing, the output result of a single trimming pulse will not remain at the local execution level but will be directly written back to the new dose state in the system. This is because each pulse compensation in the final trimming stage changes the remaining dose on which subsequent level screening is based. If multiple trimming pulses are output continuously under the same optimal trimming level, the dose gap on which subsequent trimming pulses are based will no longer be consistent with the latest state. For example, when the dose corresponding to the optimal trim level in a certain round is close to the current remaining dose, after outputting a single trim pulse, the updated remaining dose may have decreased significantly. If the original level is continued to be used at this time, subsequent trim pulses may not match the new dose gap.

[0051] In step 92, after step 91 has completed the output of the single trimming pulse for the current round and updated the cumulative treatment dose and the updated remaining dose, the system compares the updated remaining dose with the final dose tolerance. When the updated remaining dose is greater than the final dose tolerance, the system does not directly continue outputting the trimming pulse control state corresponding to the current optimal trimming level. Instead, it uses the updated remaining dose as the input for step 5 to re-determine the next optimal trimming level. Here, the updated remaining dose represents the dose gap that has not been filled after the current single trimming pulse compensation, and the final dose tolerance represents the error boundary that can be retained for the entire irradiation. In this step, the system actually establishes a return relationship, that is, the dose state after the current round of trimming does not directly determine how the next pulse is output. Instead, it first returns to step 5 to re-select, and then enters the next round of trimming control based on the new selection result. In other words, a round-by-round cyclical relationship is formed between steps 5 and 6. Step 5 is responsible for re-selecting the level based on the latest remaining dose, and step 6 is responsible for executing the next single-pulse trimming at that level. With this processing, the optimal adjustment level for each round strictly corresponds to the latest dose state before the current adjustment, rather than to a state from an earlier round.

[0052] In step 93, after the updated remaining dose has been sent back to step 5 as screening input in step 92, the system, based on the next optimal trim level determined in step 5, calls the trim pulse control state corresponding to the next optimal trim level and outputs the next single trim pulse. After this single trim pulse is output, the system continues to follow the processing method of step 91, first performing verification on the single trim pulse and updating the cumulative treatment dose and the updated remaining dose, and then, following the processing method of step 92, determining whether it is still necessary to send the updated remaining dose back to step 5 for re-screening. This cycle repeats, with the system executing steps 91 to 93 repeatedly, until the updated remaining dose is not greater than the final dose tolerance. Here, "until" does not mean continuously outputting multiple trim pulses of the same level, but rather that after multiple rounds of single trim pulse output, multiple rounds of state updates, and multiple rounds of optimal trim level reselection, the system finally brings the updated remaining dose into the final dose tolerance range. In other words, the system reconfirms the optimal trim level to be used in each cycle. The trim result of the current cycle is only responsible for the current cycle and does not automatically carry over to the next cycle. For example, when the remaining dose after a certain cycle decreases from a large value to a smaller range, the optimal trim level selected in the next cycle will usually be lower than that of the previous cycle. At this time, the trim pulse control state corresponding to the next optimal trim level called in step 93 will also be adjusted accordingly, so that the trim process gradually converges to the final dose tolerance range.

[0053] Through the above processing, this embodiment refines the final trimming process into a cyclical link of single trimming pulse output, single verification, single state update, re-screening, and re-output, ensuring that each round of trimming is based on the latest remaining dose. This maintains the correspondence between the optimal trimming level and the current dose gap, and also allows the final compensation process to converge round by round with the updated remaining dose, thereby maintaining the continuity and determinism of the entire trimming process.

[0054] This invention also provides a beam pulse parameter control system for flash therapy mode, including: The parameter acquisition module is used to acquire the total prescription dose, steady-state judgment tolerance, main delivery pulse deviation tolerance, final dose tolerance, trim pulse level dose group and corresponding trim pulse control state group; The steady-state identification module is used to collect the single-pulse integral detection value, convert it into a single-pulse equivalent dose based on the integral conversion coefficient, isolate and judge the initial pulse at the start, and determine the steady-state reference single-pulse dose and the formal treatment start pulse. The starting point planning module is used to determine the treatment start time based on the formal treatment start pulse, and in combination with the total prescription dose, final dose tolerance, maximum value of the trim pulse level and steady-state reference single pulse dose, to determine the cumulative treatment dose, main delivery protection margin, main delivery target dose and main delivery reference pulse number; The main delivery verification module is used to perform pulse-by-pulse verification of the main delivery pulse according to the steady-state reference single pulse dose and the main delivery reference pulse number, and update the cumulative treatment dose according to the verification results; The remaining dose screening module is used to calculate the remaining dose based on the cumulative treatment dose and the total prescription dose, and to determine the optimal trimming level under the constraints of the remaining dose, the final dose tolerance, and the trimming pulse level dose group. The trimming closure module is used to call the trimming pulse control state corresponding to the optimal trimming level, output the trimming pulse and perform pulse-by-pulse verification, update the cumulative treatment dose and the remaining dose, and repeat until the remaining dose is not greater than the final dose tolerance. The result determination module is used to stop the beam and determine the effective irradiation duration and effective average dose rate based on the treatment start time, treatment end time, and cumulative treatment dose, and determine whether the irradiation result meets the standard.

[0055] It should be noted that the range and threshold size are set for ease of comparison. The size of the threshold depends on the amount of sample data and the number of bases set by those skilled in the art for each set of sample data, as long as it does not affect the ratio between the parameter and the quantized value.

[0056] The embodiments of the present invention have been described above, but the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms based on the guidance of the present embodiments, all of which are within the protection scope of the present embodiments.

Claims

1. A method for controlling beam pulse parameters in flash therapy mode, characterized in that, Includes the following steps: Step 1: Obtain the total prescription dose, steady-state judgment tolerance, main delivery pulse deviation tolerance, final dose tolerance, trim pulse level dose group and corresponding trim pulse control state group; Step 2: Collect the single-pulse integral detection value, convert it into a single-pulse equivalent dose based on the integral conversion coefficient, isolate and judge the initial pulse of the start-up, and determine the steady-state reference single-pulse dose and the formal treatment start pulse; Step 3: Determine the treatment start time based on the formal treatment start pulse, and combine the total prescription dose, final dose tolerance, maximum value of the trimmed pulse level, and steady-state reference single pulse dose to determine the cumulative treatment dose, main delivery protection margin, main delivery target dose, and main delivery reference pulse number. Step 4: Perform pulse-by-pulse verification of the main delivery pulse according to the steady-state reference single pulse dose and the main delivery reference pulse number, and update the cumulative treatment dose according to the verification results; Step 5: Calculate the remaining dose based on the cumulative treatment dose and the total prescription dose, and determine the optimal trim level under the constraints of the remaining dose, the final dose tolerance, and the trim pulse level dose group; Step 6: Call the trim pulse control state corresponding to the optimal trim level, output the trim pulse and perform pulse-by-pulse verification, update the cumulative treatment dose and the remaining dose, repeat until the remaining dose is not greater than the final dose tolerance. Step 7: Stop the beam and determine the effective irradiation duration and effective average dose rate based on the treatment start time, treatment end time and cumulative treatment dose, and determine whether the irradiation result meets the standard.

2. The beam pulse parameter control method for flash therapy mode according to claim 1, characterized in that, Obtain the total prescription dose, steady-state judgment tolerance, main delivery pulse deviation tolerance, final dose tolerance, trim pulse level dose group, and corresponding trim pulse control state group, including: Step 11: Obtain the total prescription dose, steady-state judgment tolerance, main delivery pulse deviation tolerance, and final dose tolerance. When the total prescription dose is greater than zero, the final dose tolerance is less than the total prescription dose, and the steady-state judgment tolerance and main delivery pulse deviation tolerance are both greater than zero, determine the total prescription dose, steady-state judgment tolerance, main delivery pulse deviation tolerance, and final dose tolerance as valid parameters. Step 12: Obtain the trimmed pulse dose group and the trimmed pulse control state group. Sort the doses in the trimmed pulse dose group from largest to smallest. Establish a one-to-one correspondence between the sorted doses and the trimmed pulse control states with the same sequence number in the trimmed pulse control state group. Write the effective parameters, the sorted trimmed pulse dose group and its corresponding trimmed pulse control state group into the same control parameter set as the parameters to be called in subsequent steps.

3. The beam pulse parameter control method for flash therapy mode according to claim 1, characterized in that, The single-pulse integral detection value is collected and converted into a single-pulse equivalent dose based on the integral conversion factor. The initial pulse at the start of treatment is isolated and judged, and the steady-state reference single-pulse dose and the formal treatment initiation pulse are determined, including: Step 21: Obtain the integral conversion coefficient, call the steady-state judgment tolerance, collect the single-pulse integral detection value, and multiply the single-pulse integral detection value with the integral conversion coefficient to obtain the single-pulse equivalent dose arranged by pulse sequence number; Step 22: Construct a candidate decision sequence based on a preset number of continuous single-pulse equivalent doses, use the difference between the maximum and minimum values ​​in the candidate decision sequence as the numerator, use the median value in the candidate decision sequence as the denominator, and determine the ratio of the numerator to the denominator as the steady-state fluctuation ratio. Step 23: Compare the steady-state fluctuation ratio with the steady-state judgment tolerance. If the steady-state fluctuation ratio is greater than the steady-state judgment tolerance, update the candidate judgment sequence based on the subsequent single-pulse equivalent doses arranged by pulse number. If the steady-state fluctuation ratio is not greater than the steady-state judgment tolerance, determine the median value in the candidate judgment sequence as the steady-state reference single-pulse dose, and determine the first pulse in the candidate judgment sequence arranged by pulse number as the formal treatment initiation pulse.

4. The beam pulse parameter control method for flash therapy mode according to claim 1, characterized in that, The treatment start time is determined based on the formal treatment initiation pulse. Combined with the total prescribed dose, final dose tolerance, maximum trimmed pulse level, and steady-state reference single-pulse dose, the cumulative treatment dose, primary delivery protection margin, primary delivery target dose, and primary delivery reference pulse count are determined, including: Step 31: Determine the treatment start time based on the time marker corresponding to the formal treatment start pulse, set the initial value of the cumulative treatment dose to zero, and call the dose with the largest dose in the trim pulse dose group. Step 32: Add the highest dose level to the final dose tolerance to determine the primary delivery protection margin, and subtract the primary delivery protection margin from the total prescription dose to determine the primary delivery target dose; Step 33: Divide the main delivery target dose by the steady-state reference single-pulse dose, and take the largest integer not greater than the result to determine the main delivery reference pulse number.

5. The beam pulse parameter control method for flash therapy mode according to claim 1, characterized in that, Perform pulse-by-pulse verification of the main delivery pulses based on the steady-state reference single-pulse dose and the main delivery reference pulse count, and update the cumulative treatment dose according to the verification results, including: Step 41: Collect the single-pulse integral detection value of the current main delivery pulse, multiply the single-pulse integral detection value by the integral conversion factor, and determine the single-pulse equivalent dose of the current main delivery pulse. Step 42: Take the absolute value of the difference between the single-pulse equivalent dose of the current main delivery pulse and the steady-state reference single-pulse dose to determine the main delivery pulse deviation value; multiply the main delivery pulse deviation tolerance by the steady-state reference single-pulse dose to determine the allowable deviation threshold, and compare the main delivery pulse deviation value with the allowable deviation threshold to determine the verification result. Step 43: When the verification result is passed, if the current main delivery pulse is the first main delivery pulse to pass the verification, the single-pulse equivalent dose of the current main delivery pulse is added to the initial value of the cumulative treatment dose to obtain the updated cumulative treatment dose; if the current main delivery pulse is not the first main delivery pulse to pass the verification, the single-pulse equivalent dose of the current main delivery pulse is added to the previously updated cumulative treatment dose to obtain the updated cumulative treatment dose, and the main delivery pulses that pass the verification are counted one by one; when the verification result is not passed, the beam current is stopped; when the count result reaches the main delivery reference pulse number, the main delivery is determined to be completed.

6. The beam pulse parameter control method for flash therapy mode according to claim 1, characterized in that, The remaining dose is calculated based on the cumulative treatment dose and the total prescribed dose, and the optimal trim level is determined under the constraints of the remaining dose, the final dose tolerance, and the trim pulse level dose group, including: Step 51: Subtract the cumulative treatment dose from the total prescription dose to determine the remaining dose; Step 52: Compare the remaining dose with the final dose tolerance. If the remaining dose is not greater than the final dose tolerance, determine the end of the optimal trim level determination process. If the remaining dose is greater than the final dose tolerance, determine the entry into the optimal trim level screening. Step 53: When determining the optimal adjustment level selection, call the adjustment pulse level dose group, and compare each level dose with the remaining dose in descending order. When the level dose is not greater than the remaining dose for the first time, the level of that level dose in the adjustment pulse level dose group is determined as the optimal adjustment level.

7. The beam pulse parameter control method for flash therapy mode according to claim 1, characterized in that, The optimal trim level corresponding to the trim pulse control state is invoked, the trim pulse is output and pulse-by-pulse verification is performed, the cumulative treatment dose and remaining dose are updated, and this process is repeated until the remaining dose is no greater than the final dose tolerance, including: Step 61: Call the trim pulse control state corresponding to the optimal trim level, output the current trim pulse, collect the integral detection value of the current trim pulse, and multiply the integral detection value of the current trim pulse with the integral conversion coefficient to determine the trim pulse equivalent dose of the current trim pulse. Step 62: Compare the equivalent dose of the current trimmed pulse with the sum of the remaining dose and the final dose tolerance. If the equivalent dose of the current trimmed pulse is not greater than the sum of the remaining dose and the final dose tolerance, the verification is confirmed to be successful. If the equivalent dose of the current trimmed pulse is greater than the sum of the remaining dose and the final dose tolerance, the beam flow is stopped. Step 63: When the verification is successful, for the first verified trimming pulse, add its equivalent dose to the cumulative treatment dose output in step 4 to obtain the updated cumulative treatment dose; for subsequent verified trimming pulses, add their equivalent dose to the previously updated cumulative treatment dose to obtain the updated cumulative treatment dose; subtract the updated cumulative treatment dose from the total prescription dose to obtain the updated remaining dose; if the updated remaining dose is greater than the final dose tolerance, return to step 5 to redetermine the optimal trimming level; if the updated remaining dose is not greater than the final dose tolerance, end the trimming pulse output.

8. The beam pulse parameter control method for flash therapy mode according to claim 1, characterized in that, Stop the beam and determine the effective irradiation duration and effective average dose rate based on the treatment start time, treatment end time, and cumulative treatment dose. Determine whether the irradiation results meet the standards, including: Step 71: Stop the beam, record the time stamp when the beam stops as the treatment end time, and subtract the treatment start time in step 3 from the treatment end time to determine the effective irradiation duration; Step 72: Take the cumulative treatment dose output in step 6 as the numerator, the effective irradiation duration as the denominator, and determine the ratio of the numerator to the denominator as the effective average dose rate. Step 73: Take the absolute value of the difference between the cumulative treatment dose and the total prescription dose to determine the dose deviation; if the dose deviation is not greater than the final dose tolerance and the effective average dose rate is not less than the minimum effective average dose rate of flash therapy, the irradiation result is determined to be up to standard; otherwise, the irradiation result is determined to be down to standard.

9. The beam pulse parameter control method for flash therapy mode according to claim 7, characterized in that, In step 63, if the updated remaining dose is greater than the final dose tolerance, return to step 5 to redetermine the optimal trim level, including: Step 91: For the trimming pulse control state corresponding to the current optimal trimming level, only a single trimming pulse is output, and the cumulative treatment dose and the updated remaining dose are updated after the single trimming pulse passes the verification. Step 92: When the updated remaining dose is greater than the final dose tolerance, use the updated remaining dose as the input for step 5 to re-determine the next optimal trim level. Step 93: After redetermining the next optimal trim level, call the trim pulse control state corresponding to the next optimal trim level, output the next single trim pulse, and repeat steps 91 to 93 until the updated remaining dose is not greater than the final dose tolerance.

10. A beam pulse parameter control system for flash therapy mode, characterized in that, The beam pulse parameter control method for the flash therapy mode as described in any one of claims 1-9 includes: The parameter acquisition module is used to acquire the total prescription dose, steady-state judgment tolerance, main delivery pulse deviation tolerance, final dose tolerance, trim pulse level dose group and corresponding trim pulse control state group; The steady-state identification module is used to collect the single-pulse integral detection value, convert it into a single-pulse equivalent dose based on the integral conversion coefficient, isolate and judge the initial pulse at the start, and determine the steady-state reference single-pulse dose and the formal treatment start pulse. The starting point planning module is used to determine the treatment start time based on the formal treatment start pulse, and in combination with the total prescription dose, final dose tolerance, maximum value of the trim pulse level and steady-state reference single pulse dose, to determine the cumulative treatment dose, main delivery protection margin, main delivery target dose and main delivery reference pulse number; The main delivery verification module is used to perform pulse-by-pulse verification of the main delivery pulse according to the steady-state reference single pulse dose and the main delivery reference pulse number, and update the cumulative treatment dose according to the verification results; The remaining dose screening module is used to calculate the remaining dose based on the cumulative treatment dose and the total prescription dose, and to determine the optimal trimming level under the constraints of the remaining dose, the final dose tolerance, and the trimming pulse level dose group. The trimming closure module is used to call the trimming pulse control state corresponding to the optimal trimming level, output the trimming pulse and perform pulse-by-pulse verification, update the cumulative treatment dose and the remaining dose, and repeat until the remaining dose is not greater than the final dose tolerance. The result determination module is used to stop the beam and determine the effective irradiation duration and effective average dose rate based on the treatment start time, treatment end time, and cumulative treatment dose, and determine whether the irradiation result meets the standard.