Machine learning-based feed-forward compensation magnet power supply PID precision control method and system

By introducing a two-layer control architecture with machine learning feedforward compensation into the particle accelerator magnet power supply system, the shortcomings of traditional PID control in terms of high precision and fast response are solved, realizing high-precision and fast-response magnet power supply control, adapting to different magnet characteristics and aging characteristics, and maintaining system stability.

CN123034698APending Publication Date: 2026-11-03INST OF MODERN PHYSICS CHINESE ACADEMY OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611144236.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-30
Publication Date
2026-11-03

AI Technical Summary

Technical Problem

Traditional PID control struggles to simultaneously meet the requirements of high precision, fast dynamics, and strong robustness in particle accelerator magnet power supply systems. It is particularly ineffective when dealing with large inductance characteristics, hysteresis effects, and parameter drift. Furthermore, feedforward compensation based on physical models is difficult to achieve accurate adaptive compensation in practical applications.

Method used

A feedforward compensation magnet power supply PID control method based on machine learning is adopted. By combining PID closed-loop steady-state dynamics and machine learning models, a two-layer control architecture is constructed. By real-time compensation of magnet nonlinearity and parameter changes, synthetic control commands are generated to achieve high-precision tracking.

Benefits of technology

It achieves high-precision and fast-response magnet power supply control in complex magnet systems, and can adapt to different magnet characteristics and aging characteristics, maintain system stability and robustness, and reduce dynamic errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123034698A_ABST
    Figure CN123034698A_ABST
Patent Text Reader

Abstract

The application relates to a machine learning-based feedforward compensation magnet power supply PID precision control method and system, which comprises a power supply controller, a drive modulation unit and a power conversion unit; the power supply controller is configured to generate a synthesized control instruction according to given current data, adopt a PID closed-loop steady dynamic and a double-layer control strategy for machine learning error compensation; the input end of the drive modulation unit is connected to the power supply controller, the output end is connected to the control end of the power conversion unit, and the drive modulation unit is configured to generate a drive signal according to the synthesized control instruction to adjust the output of the power conversion unit in real time; the input end of the power conversion unit is connected to a power supply or a bus, and the output end is connected to a magnet load, and the power conversion unit is configured to provide adjustable excitation current under the action of the drive signal to realize minimum tracking error output of the power supply. The application can be widely applied to the technical field of particle accelerator magnet power supply control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of particle accelerator magnet power supply control technology, and relates to a magnet power supply control method and system suitable for high precision and fast dynamic response. In particular, it relates to a feedforward compensation magnet power supply PID (proportional-integral-derivative) precision control method and system based on machine learning. Background Technology

[0002] In particle accelerators, magnets (dipoles, quadrupoles, hexapoles, etc.) are responsible for beam deflection, focusing, and correction of dispersion and chromaticity. The magnet power supply is one of the most precision-critical and complexly coupled subsystems in the entire particle accelerator system. Its control precision directly determines beam trajectory stability, tune value maintenance accuracy, injection / extraction efficiency, and scanning beam position accuracy (especially in proton / ion therapy devices). As particle accelerators develop towards higher brightness, higher repetition rates, and faster cycling, even more stringent requirements are placed on the dynamic response and steady-state accuracy of the magnet power supply.

[0003] There is an inherent contradiction between the physical characteristics of the magnet load and the requirements for high-performance control: the accelerator magnet exhibits large inductance characteristics, resulting in lag in the dynamic response of the system; the hysteresis effect of ferromagnetic materials introduces nonlinear memory characteristics, causing the same control input to produce different magnetic field outputs at different operating points; parameter drift (such as changes in coil resistance caused by temperature changes) causes the system model to be time-varying; and the fast scan / high-frequency ramping operating mode imposes stricter constraints on the dynamic tracking performance of the magnet power supply.

[0004] Currently, PID control is widely used in accelerator power supplies due to its advantages such as simple algorithm, clear physical meaning, and good robustness. However, in modern accelerator applications that demand "high precision + fast dynamics + strong robustness," the traditional PID control's error-driven "post-correction" mechanism struggles to overcome the phase lag caused by large inductance. Furthermore, as a linear controller, it cannot effectively handle nonlinear effects such as hysteresis, and its fixed-parameter structure is ill-suited to parameter drift. Therefore, it cannot simultaneously meet the comprehensive requirements of high precision, fast dynamics, and strong robustness. To improve dynamic tracking performance, industry often introduces feedforward compensation. Traditional feedforward compensation heavily relies on an accurate physical model of the controlled object. However, due to the complexity of the hysteresis loop in magnet systems, the high cost of accurate modeling, and significant individual differences among magnets, model-based feedforward compensation often fails to achieve the desired results in practical applications, and model mismatch may even introduce additional errors. Summary of the Invention

[0005] To address the aforementioned problems, the purpose of this invention is to provide a PID precision control method and system for feedforward compensated magnet power supply based on machine learning. By combining machine learning methods with PID control, a novel feedforward control strategy is achieved that does not rely on an accurate physical model and can adaptively compensate for magnet nonlinearity and parameter changes.

[0006] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, the present invention provides a feedforward compensation magnet power supply PID precision control system based on machine learning, comprising: Power controller, drive modulation unit and power conversion unit; The power controller is configured to generate synthetic control commands based on given current data, using a two-layer control strategy of PID closed-loop steady-state dynamic control and machine learning error compensation. The input terminal of the drive modulation unit is connected to the power controller, and the output terminal is connected to the control terminal of the power conversion unit. It is configured to generate a drive signal according to the synthesis control command to adjust the output of the power conversion unit in real time. The input terminal of the power conversion unit is connected to a power supply or bus, and the output terminal is connected to a magnetic load. It is configured to provide an adjustable excitation current under the action of a drive signal to achieve the minimum tracking error output of the power supply.

[0007] Furthermore, the power controller is internally equipped with a real-time closed-loop PID regulator, a machine learning feedforward compensator, and a signal superposition unit. The real-time closed-loop PID controller is configured to process a given current signal. and measurement error The change in current is obtained by subtraction. And based on the change in current Generate feedback correction control quantity ; The machine learning feedforward compensator is configured to generate feedforward compensation control quantities in real time based on given current curve information using a pre-built machine learning model. ; The signal superposition unit is configured to superimpose the feedback correction control quantity. With feedforward compensation control quantity Superimpose the values ​​to generate the total control quantity. The signal is output as a synthesis control command to the driving modulation unit.

[0008] Furthermore, the power controller also includes a monitoring unit configured to process the feedforward compensation control quantity output by the machine learning feedforward compensator. The control quantity is compared in real time with the preset safety threshold. If the feedforward compensation control quantity is... If the preset safety threshold is exceeded, the feedforward compensation control quantity will be adjusted. Automatically limit or block.

[0009] Furthermore, the real-time closed-loop PID controller is implemented using an FPGA-based digital controller, and the machine learning feedforward compensator is implemented by deploying machine learning algorithms in the logic resources of the FPGA.

[0010] Secondly, the present invention provides a PID precision control method for a feedforward compensated magnet power supply based on machine learning, comprising: Based on the given current data, the power controller adopts a two-layer strategy of PID closed-loop steady-state and machine learning error compensation to generate synthetic control commands. The driving modulation unit generates a driving signal according to the synthesis control command and outputs it to the control terminal of the power conversion unit; The power conversion unit provides an adjustable excitation current under the action of the drive signal to achieve the minimum power supply tracking error output.

[0011] Furthermore, based on the given current data, the power controller employs a two-layer strategy of PID closed-loop steady-state control and machine learning error compensation to generate synthetic control commands, including: Given current signal and real-time measurement error The change in current is obtained by subtraction. And based on the change in current Generate feedback correction control quantity ; Based on the given current curve information, a pre-deployed machine learning model is used to generate feedforward compensation control quantities in real time. ; Feedback correction control quantity With feedforward compensation control quantity Superimpose the values ​​to generate the total control quantity. As a synthetic control command.

[0012] Furthermore, the deployment method of the machine learning model includes: Based on a machine learning-based feedforward compensation magnet power supply PID precision control system, it runs a typical "ramping" cycle and uses a current sensor to collect data during operation. Based on the data collection results, extract the input data. and output tags , as the training sample set; The pre-built machine learning model is trained based on the training sample set, and the trained machine learning model is then embedded into the power controller.

[0013] Furthermore, the input data Including the given current signal at the current moment ,past A given current sequence at each time step Feedback current at the current moment The output label This is the optimal feedforward compensation voltage value.

[0014] Furthermore, the deployment method of the machine learning model also includes: At preset intervals, the machine learning model is fine-tuned based on new running data to adapt to changes caused by parameter drift.

[0015] Furthermore, the feedback correction control quantity With feedforward compensation control quantity Superimpose the values ​​to generate the total control quantity. Prior to the synthesized control instructions, it also includes: feedforward compensation control quantity The control quantity is compared in real time with the preset safety threshold. If the feedforward compensation control quantity is... If the preset safety threshold is exceeded, the feedforward compensation control quantity will be adjusted. Automatically limit or block.

[0016] The present invention has the following advantages due to the adoption of the above technical solutions: 1. A two-layer architecture of PID closed-loop stability and machine learning error compensation: While maintaining the stability of traditional PID closed-loop, this invention introduces machine learning to build a high-precision feedforward compensation model, and proposes a decoupled control architecture of "PID stability protection + ML intelligence enhancement". The complex nonlinear compensation problem is handled by the feedforward machine learning model, which ensures the coexistence of system safety and advancement from a methodological perspective.

[0017] 2. The entire design scheme has a clear division of labor: In this invention, the real-time closed-loop PID controller only needs to act as a "gatekeeper", responsible for handling unknown real-time random noise and maintaining stability; the machine learning algorithm is responsible for "forward attack", using its powerful nonlinear fitting ability to preemptively offset deterministic nonlinear factors such as magnetohysteresis, eddy current, and inductance saturation of the magnet, which is something that traditional linear feedforward (such as L / R feedforward) cannot do.

[0018] 3. This invention does not compromise stability: As long as the feedforward implemented by machine learning is generated based on a set value, it remains outside the feedback loop. This means that no matter how complex the machine learning model is, it will not directly cause oscillations in the closed-loop system due to phase lag. Furthermore, this feedforward model can adapt to the characteristics of different magnets or the aging characteristics of the same magnet through data updates, exhibiting good transferability.

[0019] Therefore, this invention can be widely applied in the field of particle accelerator magnet power supply control technology. Attached Figure Description

[0020] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Throughout the drawings, the same reference numerals denote the same parts. In the drawings: Figure 1 This is the machine learning-based feedforward compensation magnet power supply PID precision control system architecture provided in this embodiment of the invention; Figure 2 This is a control principle block diagram provided in the embodiments of the present invention; Figure 3 This is a flowchart of the PID precision control method for feedforward compensation magnet power supply based on machine learning provided in this embodiment of the invention. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention are within the scope of protection of the present invention.

[0022] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0023] In some embodiments of the present invention, a PID precision control method for a feedforward compensated magnet power supply based on machine learning is provided, with the objective of: 1) Construct a feedforward enhanced PID control framework to improve the tracking accuracy, repeatability and robustness of the magnet power supply in dynamic processes, so as to solve the problem that traditional PID control is difficult to balance between fast response and no overshoot, resulting in large ripple of the magnet power supply output current and difficulty in eliminating steady-state error.

[0024] 2) Constructing a feedforward compensation model using machine learning techniques. Magnet power supply systems are sensitive to nonlinear disturbances such as grid fluctuations, temperature changes, and load characteristic alterations. Traditional feedback control cannot predict and compensate for these disturbances in advance. Existing feedforward control strategies rely excessively on precise physical models, making it difficult to achieve accurate adaptive compensation for time-varying, nonlinear magnet load systems, resulting in poor dynamic process control performance. Machine learning, with its powerful nonlinear fitting capabilities and data-driven characteristics, provides a new approach to constructing high-precision feedforward compensation models, potentially effectively compensating for dynamic errors that traditional physical models struggle to describe, thereby overcoming the bottlenecks of existing magnet power supply control technology.

[0025] Correspondingly, in other embodiments of the present invention, a feedforward compensation magnet power supply PID precision control system based on machine learning is provided.

[0026] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the invention and to fully convey the scope of the invention to those skilled in the art.

[0027] Example 1 like Figure 1 , Figure 2 As shown, this embodiment provides a machine learning-based feedforward compensation magnet power supply PID precision control system, which includes a power controller, a drive modulation unit, and a power conversion unit. The power controller is configured to generate a synthetic control command based on a dual-layer control strategy of PID closed-loop steady-state and machine learning error compensation, using given current data. The input of the drive modulation unit is connected to the power controller, and its output is connected to the control terminal of the power conversion unit. It is configured to generate a drive signal based on the synthetic control command to adjust the output of the power conversion unit in real time. The input of the power conversion unit is connected to the power supply (or bus), and its output is connected to the magnet load. It is configured to provide an adjustable excitation current under the action of the drive signal to achieve minimum power supply tracking error output.

[0028] Furthermore, the power controller internally incorporates a real-time closed-loop PID regulator, a machine learning feedforward compensator, and a signal superposition unit. The real-time closed-loop PID regulator is configured to process the given current signal... and measurement error The change in current is obtained by subtraction. And based on the change in current Generate feedback correction control quantity ,Should To ensure the system's basic stability and anti-interference capability; the machine learning feedforward compensator is configured to generate feedforward compensation control quantities in real time based on given current curve information using a pre-built machine learning model. ,Should Used to counteract the back electromotive force and hysteresis nonlinear voltage of the load; the signal superposition unit is configured to input the feedback correction control quantity. With feedforward compensation control quantity Superimpose the values ​​to generate the total control quantity. It is output as a synthesis control command to the drive modulation unit.

[0029] Furthermore, the power controller also includes a monitoring unit configured to process the feedforward compensation control quantity output by the machine learning feedforward compensator. The control quantity is compared in real time with the preset safety threshold. If the feedforward compensation control quantity is... If the voltage exceeds the preset safety threshold (such as the maximum compensation voltage), then the feedforward compensation control quantity will be adjusted. Automatic limiting or shielding is performed. In this case, the synthesized control command is the feedforward compensation control quantity after limiting. With feedback correction control quantity The summation is either generated by the superposition of data or by the feedback correction control quantity output solely from the real-time closed-loop PID controller. Generate, ensuring absolute system security.

[0030] Furthermore, in the machine learning feedforward compensator, given the current curve information, mainly including the current desired current value and the rate of change of current,... Historical current sequences, etc.

[0031] Furthermore, the real-time closed-loop PID controller is implemented using an FPGA-based digital controller, while the machine learning feedforward compensator is implemented by deploying machine learning algorithms in the logic resources of the FPGA.

[0032] In this invention, during the power supply "ramping" process, the machine learning feedforward compensator predicts the voltage increment required to overcome inductance and hysteresis based on a preset current trajectory, and directly superimposes it onto the output of the real-time closed-loop PID controller. When the current begins to rise, the machine learning model deployed in the machine learning feedforward compensator quickly provides a higher voltage to help the current establish itself rapidly, reducing the dynamic error caused by the integral lag in the real-time closed-loop PID controller. Since the feedforward compensation term undertakes most of the work of counteracting the back electromotive force, the real-time closed-loop PID controller only needs to handle the inaccurate predictions of the machine learning model and random disturbances, resulting in a more accurate actual output. With a given current curve They almost overlap.

[0033] Example 2 like Figure 3 As shown, based on the machine learning-based feedforward compensation magnet power supply PID precision control system provided in Embodiment 1, this embodiment provides a machine learning-based feedforward compensation magnet power supply PID precision control method. This method adopts a two-layer architecture of "PID closed-loop steady dynamic and machine learning error compensation" to achieve PID precision control of the magnet power supply.

[0034] Specifically, it includes the following steps: 1) Based on the given current data, the power controller adopts a two-layer strategy of PID closed-loop steady-state and machine learning error compensation to generate synthetic control commands. 2) The driving modulation unit generates a driving signal according to the synthesis control command and outputs it to the control terminal of the power conversion unit; 3) The power conversion unit provides an adjustable excitation current under the action of the drive signal to achieve the minimum power supply tracking error output.

[0035] Furthermore, step 1) above includes the following steps: 1.1) Given a current signal and real-time measurement error The change in current is obtained by subtraction. And based on the change in current Generate feedback correction control quantity ; 1.2) Based on the given current curve information, the feedforward compensation control quantity is generated in real time using a pre-deployed machine learning model. ; 1.3) Feedback correction control quantity With feedforward compensation control quantity Superimpose the values ​​to generate the total control quantity. As a synthetic control command.

[0036] Furthermore, in step 1.2) above, the method for deploying the machine learning model includes: 1.2.1) Based on the machine learning-based feedforward compensation magnet power supply PID precision control system, a typical "ramping" cycle is run, and a high-precision current sensor is used for data acquisition during the operation.

[0037] In this embodiment, a typical "ramping" cycle includes rising, flat-top, and falling phases. During each phase, a high-precision current sensor collects and accumulates real-time data sequences of the actual output current waveform of the magnet power supply, as well as data such as the operating status of the magnet power supply, reference waveform data, and ambient temperature, which are used as input and output data for the machine learning model.

[0038] 1.2.2) Extract input data based on the data collection results. and output tags , as the training sample set.

[0039] In this embodiment, input data (Characteristics): Includes the given current signal at the current moment. ,past A given current sequence at each time step (Reflecting the trend of current change), the feedback current at the current moment. wait.

[0040] Output Labels (Tag): Optimal feedforward compensation voltage value. The feedforward compensation voltage value is not manually set, but obtained through "reverse modeling" or "error-driven" methods: during test runs, the portion of the control output by the real-time closed-loop PID controller to overcome dynamic errors is recorded. Ideal output. It should be approximately equal to ,in It is an inductor The generated voltage is proportional to the rate of change of current. It is a complex nonlinear voltage generated by hysteresis, i.e., an ideal output. It can counteract the voltage required for inductance and hysteresis.

[0041] 1.2.3) Train the pre-built machine learning model based on the training sample set, and then embed the trained machine learning model into the embedded system of the power controller.

[0042] In this embodiment, the collected dataset is utilized. Train a machine learning model. The training objective is to minimize the compensation voltage predicted by the model. Optimal compensation voltage required in practice The error between them.

[0043] Preferably, the machine learning model can be a neural network model, a support vector regression model, etc., and the present invention does not limit this.

[0044] In this invention, the machine learning model does not participate in the real-time closed-loop feedback, but only serves as feedforward compensation, thus it does not violate the stability criteria of the real-time closed-loop PID controller.

[0045] Furthermore, step 1.2 above also includes the following steps: 1.2.4) At each preset interval, the machine learning model is fine-tuned (transfer learning) based on new running data to adapt to the changes brought about by parameter drift.

[0046] The fine-tuning of the machine learning model can be achieved using offline or online retraining mechanisms, and this invention does not impose any restrictions on this.

[0047] Furthermore, prior to step 1.3 above, the following steps are also included: feedforward compensation control quantity The control quantity is compared in real time with the preset safety threshold. If the feedforward compensation control quantity is... If the voltage exceeds the preset safety threshold (such as the maximum compensation voltage), then the feedforward compensation control quantity will be adjusted. Automatic limiting or shielding is performed. In this case, the synthesized control command is the feedforward compensation control quantity after limiting. With feedback correction control quantity The summation is either generated by the superposition of data or by the feedback correction control quantity output solely from the real-time closed-loop PID controller. Generate, ensuring absolute system security.

[0048] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A PID precision control system for a feedforward compensated magnet power supply based on machine learning, characterized in that, include: Power controller, drive modulation unit and power conversion unit; The power controller is configured to generate synthetic control commands based on given current data, using a two-layer control strategy of PID closed-loop steady-state dynamic control and machine learning error compensation. The input terminal of the drive modulation unit is connected to the power controller, and the output terminal is connected to the control terminal of the power conversion unit. It is configured to generate a drive signal according to the synthesis control command to adjust the output of the power conversion unit in real time. The input terminal of the power conversion unit is connected to a power supply or bus, and the output terminal is connected to a magnetic load. It is configured to provide an adjustable excitation current under the action of a drive signal to achieve the minimum tracking error output of the power supply.

2. The PID precision control system for a feedforward compensated magnet power supply based on machine learning as described in claim 1, characterized in that, The power controller is equipped with a real-time closed-loop PID regulator, a machine learning feedforward compensator, and a signal superposition unit. The real-time closed-loop PID controller is configured to process a given current signal. and measurement error The change in current is obtained by subtraction. And based on the change in current Generate feedback correction control quantity ; The machine learning feedforward compensator is configured to generate feedforward compensation control quantities in real time based on given current curve information using a pre-built machine learning model. ; The signal superposition unit is configured to superimpose the feedback correction control quantity. With feedforward compensation control quantity Superimpose the values ​​to generate the total control quantity. The signal is output as a synthesis control command to the driving modulation unit.

3. The PID precision control system for a feedforward compensated magnet power supply based on machine learning as described in claim 2, characterized in that, The power controller also includes a monitoring unit configured to process the feedforward compensation control quantity output by the machine learning feedforward compensator. The control quantity is compared in real time with the preset safety threshold. If the feedforward compensation control quantity is... If the preset safety threshold is exceeded, the feedforward compensation control quantity will be adjusted. Automatically limit or block.

4. The PID precision control system for a feedforward compensated magnet power supply based on machine learning as described in claim 2, characterized in that, The real-time closed-loop PID controller is implemented using an FPGA-based digital controller, and the machine learning feedforward compensator is implemented by deploying machine learning algorithms in the logic resources of the FPGA.

5. A machine learning-based feedforward compensation magnet power supply PID precision control method, implemented based on the machine learning-based feedforward compensation magnet power supply PID precision control system as described in any one of claims 1 to 4, characterized in that, include: Based on the given current data, the power controller adopts a two-layer strategy of PID closed-loop steady-state and machine learning error compensation to generate synthetic control commands. The driving modulation unit generates a driving signal according to the synthesis control command and outputs it to the control terminal of the power conversion unit; The power conversion unit provides an adjustable excitation current under the action of the drive signal to achieve the minimum power supply tracking error output.

6. The PID precision control method for a feedforward compensated magnet power supply based on machine learning as described in claim 5, characterized in that, Based on given current data, the power controller employs a two-layer strategy of PID closed-loop steady-state and machine learning error compensation to generate synthetic control commands, including: Given current signal and real-time measurement error The change in current is obtained by subtraction. And based on the change in current Generate feedback correction control quantity ; Based on the given current curve information, a pre-deployed machine learning model is used to generate feedforward compensation control quantities in real time. ; Feedback correction control quantity With feedforward compensation control quantity Superimpose the values ​​to generate the total control quantity. As a synthetic control command.

7. The PID precision control method for a feedforward compensated magnet power supply based on machine learning as described in claim 6, characterized in that, The deployment method of the machine learning model includes: Based on a machine learning-based feedforward compensation magnet power supply PID precision control system, it runs a typical "ramping" cycle and uses a current sensor to collect data during operation. Based on the data collection results, extract the input data. and output tags , as the training sample set; The pre-built machine learning model is trained based on the training sample set, and the trained machine learning model is then embedded into the power controller.

8. The PID precision control method for a feedforward compensated magnet power supply based on machine learning as described in claim 7, characterized in that, The input data Including the given current signal at the current moment ,past A given current sequence at each time step Feedback current at the current moment The output label This is the optimal feedforward compensation voltage value.

9. The PID precision control method for a feedforward compensated magnet power supply based on machine learning as described in claim 7, characterized in that, The method for deploying the machine learning model also includes: At preset intervals, the machine learning model is fine-tuned based on new running data to adapt to changes caused by parameter drift.

10. The PID precision control method for a feedforward compensated magnet power supply based on machine learning as described in claim 6, characterized in that, The feedback correction control quantity With feedforward compensation control quantity Superimpose the values ​​to generate the total control quantity. Prior to the synthesized control instructions, it also includes: feedforward compensation control quantity The control quantity is compared in real time with the preset safety threshold. If the feedforward compensation control quantity is... If the preset safety threshold is exceeded, the feedforward compensation control quantity will be adjusted. Automatically limit or block.