A motor control method and related device based on deep reinforcement learning

By constructing a learning model and outputting the conduction angle through a motor control method based on deep reinforcement learning, various problems of motor energy savers are solved, achieving stable energy saving and adaptive control, improving the energy saving rate and power factor of the motor, and reducing costs.

CN123184565APending Publication Date: 2026-11-27GUANGDONG ZHONGRUN INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611447568.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing motor energy savers suffer from problems such as high harmonics, deteriorating power factor, large fluctuations in energy saving rate, high production cost, complex installation, high maintenance cost, poor adaptability, severe fluctuations in energy saving rate, deterioration of reactive power, discontinuous control process, and insufficient adaptive capability.

Method used

A motor control method based on deep reinforcement learning is adopted. By constructing a learning model, collecting the operating parameters of the motor, constructing a reward function and training the learning model, outputting the conduction angle, and controlling the operation of the energy-saving device connected to the motor, steady-state operation and adaptive control are achieved.

Benefits of technology

It improves the stability of motor energy efficiency, enhances power factor, increases compatibility and versatility, reduces production and maintenance costs, and achieves adaptive soft-start and energy-saving effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184565A_ABST
    Figure CN123184565A_ABST
Patent Text Reader

Abstract

The application discloses a motor control method and related device based on deep reinforcement learning, the method comprises the following steps: collecting the running parameters of the motor at a preset frequency, the running parameters including voltage value, current value, power factor, load rate and temperature value; constructing a learning model based on a deep reinforcement learning algorithm, constructing a reward function based on the power factor, voltage value, temperature value and energy-saving rate, and training the learning model, wherein the energy-saving rate is determined by the voltage value and the current value; inputting the running parameters into the trained learning model, and outputting the conduction angle; when the load rate is less than a preset load threshold, controlling the energy-saving device connected with the motor to work according to the conduction angle. By inputting the running parameters of the motor into the learning model based on the deep reinforcement learning algorithm, the conduction angle is obtained, and the energy-saving device connected with the motor is controlled to work according to the conduction angle, so that the stability of the energy-saving rate can be ensured, the power factor can be effectively improved, and the compatibility and universality of the motor control method can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of motor control technology, and in particular to a motor control method and related apparatus based on deep reinforcement learning. Background Technology

[0002] Motor energy savers are key equipment for cost reduction and efficiency improvement in the industrial sector. They are mainly used in long-running equipment such as fans, pumps, and compressors, accounting for over 60% of industrial electricity consumption. Existing motor energy savers primarily use traditional thyristor phase-controlled voltage reduction, which reduces the motor input voltage and decreases iron and copper losses by adjusting the conduction angle of the bidirectional thyristor. However, this method suffers from high harmonics, deteriorating power factor, and large fluctuations in energy saving rate, failing to meet energy conservation and emission reduction requirements. Some motors use frequency converters for speed control, adjusting the speed by changing the frequency to make the motor operating point follow load changes. However, this method suffers from high production costs, complex installation, and high maintenance costs, failing to save production costs. Additionally, some motors use soft starters to reduce voltage during startup to minimize starting shock, but bypassing the circuit after startup. However, soft starters cannot operate in a steady state, and energy-saving effects cannot be guaranteed after startup. Summary of the Invention

[0003] This application provides a motor control method and related device based on deep reinforcement learning, which can quickly optimize and adjust according to operating parameters and performance parameters, improve the energy efficiency of the power consumption layer, and ensure the operational stability of the distribution network layer.

[0004] In a first aspect, embodiments of this application provide a motor control method based on deep reinforcement learning, the method comprising the following steps: The operating parameters of the motor are collected at a preset frequency. These operating parameters include voltage, current, power factor, load rate, and temperature. A learning model based on a deep reinforcement learning algorithm is constructed. A reward function is built based on the power factor, the voltage value, the temperature value, and the energy saving rate, and the learning model is trained. The energy saving rate is determined by the voltage value and the current value. Input the running parameters into the trained learning model and output the conduction angle; When the load rate is less than the preset load threshold, the energy-saving device connected to the motor is controlled to work according to the conduction angle.

[0005] In some embodiments, constructing a learning model based on a deep reinforcement learning algorithm includes: Construct the learning model, wherein the learning model includes a policy network and a value network; The operating parameters are input into the policy network, and the conduction angle is output. The operating parameters are input into the value network, and the state value of the conduction angle is output.

[0006] In some embodiments, constructing a reward function based on the power factor, the voltage value, the temperature value, and the energy saving rate, and training the learning model, includes: Based on the operating parameters, determine the changes in the energy saving rate, the power factor, and the voltage value; The reward function is determined by weighted summation of the change value and the temperature value; The learning model is trained based on the reward function, a preset number of the operating parameters, and the state value.

[0007] In some embodiments, after constructing the learning model based on the deep reinforcement learning algorithm, the method further includes: Construct a digital twin model of the motor; Based on the digital twin model and the operating parameters, the learning model is trained offline according to the preset training data volume, training rounds, and training duration.

[0008] In some embodiments, controlling the operation of the energy-saving device connected to the motor according to the conduction angle includes: Determine the load inertia based on the load rate; The starting curve of the motor is determined based on the load inertia and the operating parameters; The energy-saving device is controlled to operate based on the start-up curve and the conduction angle.

[0009] In some embodiments, after the energy-saving device connected to the motor is controlled to operate according to the conduction angle, the method further includes: When the load rate is greater than or equal to the load threshold and the duration reaches a preset duration, stop controlling the energy-saving device to work according to the conduction angle. The energy-saving device is controlled to operate according to PID instructions.

[0010] In some embodiments, after the energy-saving device connected to the motor is controlled to operate according to the conduction angle, the method further includes: When the power factor is lower than a preset power factor threshold, the weight coefficient corresponding to the power factor in the reward function is adjusted, and the reward function is updated. The learning model is retrained based on the updated reward function.

[0011] Secondly, embodiments of this application provide a motor control device based on deep reinforcement learning, which is used to implement the motor control method based on deep reinforcement learning of the first aspect, including: The acquisition module is used to acquire the operating parameters of the motor at a preset frequency. The operating parameters include voltage value, current value, power factor, load rate and temperature value. A construction module is used to construct a learning model based on a deep reinforcement learning algorithm, construct a reward function based on the power factor, the voltage value, the temperature value, and the energy saving rate, and train the learning model, wherein the energy saving rate is determined by the voltage value and the current value; The output module is used to input the running parameters into the trained learning model and output the conduction angle. The control module is used to control the energy-saving device connected to the motor to work according to the conduction angle when the load rate is less than a preset load threshold.

[0012] Thirdly, embodiments of this application provide an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the deep reinforcement learning-based motor control method of the first aspect.

[0013] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the deep reinforcement learning-based motor control method of the first aspect.

[0014] The deep reinforcement learning-based motor control method and related apparatus of this application have at least the following beneficial effects: By acquiring motor operating parameters at a preset frequency, including voltage, current, power factor, load rate, and temperature; constructing a learning model based on a deep reinforcement learning algorithm, and building a reward function based on the power factor, voltage, temperature, and energy saving rate, the learning model is trained, wherein the energy saving rate is determined by the voltage and current values; inputting the operating parameters into the trained learning model, and outputting the conduction angle; when the load rate is less than a preset load threshold, controlling the energy-saving device connected to the motor to operate according to the conduction angle. By inputting the motor operating parameters into the deep reinforcement learning-based learning model to obtain the conduction angle and controlling the energy-saving device connected to the motor according to the conduction angle, the stability of the energy saving rate can be guaranteed, the power factor can be effectively improved, and the control method can be switched according to the load rate, thus improving the compatibility and versatility of the deep reinforcement learning-based motor control method.

[0015] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the description and the accompanying drawings. Attached Figure Description

[0016] Figure 1 This is a flowchart illustrating a motor control method based on deep reinforcement learning, as described in an embodiment of this application. Figure 2 for Figure 1 Flowchart of step S2000; Figure 3 for Figure 1 A flowchart of another embodiment of step S2000; Figure 4 for Figure 1 The flowchart of step S2000 during offline training of the learning model; Figure 5 for Figure 1 Flowchart of step S4000; Figure 6 for Figure 1 The flowchart for step S4000 when the load rate is greater than or equal to the load threshold; Figure 7 for Figure 1 The flowchart of step S4000 when the power factor is lower than the preset power factor threshold; Figure 8 This is a structural diagram of a motor control device based on deep reinforcement learning, according to an embodiment of this application. Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various implementations. Simultaneously, the steps or actions described in the method description can be rearranged or adjusted in a manner readily apparent to those skilled in the art. Therefore, the various orders in the specification and drawings are merely for the clear description of a particular embodiment and do not imply a mandatory order, unless otherwise stated that a particular order must be followed.

[0018] In the description of this application, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.

[0019] The serial numbers assigned to components in this document, such as "first" and "second," are used only to distinguish the described objects and have no sequential or technical meaning. The terms "connection" and "linkage" used in this application, unless otherwise specified, include both direct and indirect connections (linkages).

[0020] The embodiments of this application involve a motor control method and related devices based on deep reinforcement learning, applied to motors and energy-saving devices connected to them. Among these, motor energy-saving devices are key equipment for cost reduction and efficiency improvement in the industrial field. Existing motor energy-saving devices mainly use traditional thyristor phase-controlled voltage reduction, which reduces the motor input voltage and decreases iron and copper losses by adjusting the conduction angle of the bidirectional thyristor. However, this method suffers from problems such as high harmonics, deteriorating power factor, and large fluctuations in energy saving rate, failing to meet energy conservation and emission reduction requirements. Some motors use frequency converters for speed regulation, adjusting the speed by changing the frequency to make the motor operating point follow load changes. However, this method suffers from high production costs, complex installation, and high maintenance costs, failing to save production costs. Furthermore, some motors use soft starters to reduce voltage during startup to reduce starting shock, but bypass the circuit after startup. However, soft starters cannot operate in a steady state, and energy-saving effects cannot be guaranteed after startup.

[0021] Furthermore, existing motor control algorithms suffer from poor adaptability. For example, PID / fuzzy control algorithms have fixed parameters, resulting in slow response to changes in operating conditions, oscillations during sudden load changes, long settling times (10-30 seconds), and the need for manual parameter adjustments for different load scenarios, leading to high maintenance costs. Secondly, existing motor control processes suffer from severe fluctuations in energy efficiency. Specifically, influenced by factors such as load rate, grid voltage, and temperature, the energy efficiency fluctuates between 5-25%, making it impossible for users to predict energy-saving effects and impacting procurement decisions. Thirdly, existing motors exhibit reactive power degradation. Simply focusing on energy saving without considering the power factor can lead to further deterioration of the power factor after energy saving, resulting in fines from the power sector. Additionally, existing motor soft-start and steady-state control are disconnected. Specifically, after the soft starter completes startup, it bypasses, and the energy saver operates independently. Therefore, the startup process and steady-state control process are discontinuous, resulting in switching jitter and affecting energy efficiency. Finally, existing motor control algorithms lack adaptive capabilities. Specifically, different motors (such as a 30kW injection molding machine and a 75kW fan) require different parameters, and on-site debugging relies on manual experience, resulting in low control efficiency and an inability to achieve continuous optimization.

[0022] Based on the above, this application provides a motor control method and related device based on deep reinforcement learning. The method involves acquiring motor operating parameters at a preset frequency, including voltage, current, power factor, load rate, and temperature. A learning model based on a deep reinforcement learning algorithm is constructed, and a reward function is built based on the power factor, voltage, temperature, and energy saving rate, which is then trained on the model. The energy saving rate is determined by the voltage and current values. The operating parameters are input into the trained learning model, and a conduction angle is output. When the load rate is less than a preset load threshold, the energy-saving device connected to the motor is controlled according to the conduction angle. By inputting the motor's operating parameters into the deep reinforcement learning algorithm-based learning model to obtain the conduction angle and controlling the energy-saving device connected to the motor based on the conduction angle, the stability of the energy saving rate can be guaranteed, the power factor can be effectively improved, and the control method can be switched according to the load rate, thus improving the compatibility and versatility of the deep reinforcement learning-based motor control method.

[0023] Please see Figure 1 , Figure 1 A flowchart illustrating a motor control method based on deep reinforcement learning provided in an embodiment of this application is shown. Figure 1 As shown, the motor control method based on deep reinforcement learning in this application includes the following steps: Step S1000: Collect the motor's operating parameters at a preset frequency. The operating parameters include voltage, current, power factor, load rate, and temperature.

[0024] It is understandable that acquiring motor operating parameters can be achieved by directly reading data from the registers of the energy-saving device's controller to obtain motor operating parameters such as conduction angle, current, and voltage. This method enables low-cost acquisition, with sampling rates typically in the millisecond range. In other embodiments, independent sensors can be combined with a high-speed data acquisition system to acquire instantaneous waveforms of operating parameters, suitable for simulation, harmonic analysis, and other scenarios, with sampling rates ≥10kHz, suitable for capturing start-up transient curves. In practical applications, acquiring motor operating parameters at a preset frequency is existing technology and will not be elaborated upon here.

[0025] It should be noted that the motor's operating parameters are collected at a preset frequency, where the sampling frequency is... Specifically, operating parameters As shown in the following formula:

[0026] in, It is a three-phase voltage. It is a three-phase current. For power factor, For load rate, Rotational speed (rpm) This is the temperature value of the motor. The frequency is the power grid frequency (Hz). This refers to the runtime. It should be noted that the runtime parameters... It can be adjusted according to actual needs and usage scenarios; no restrictions are set here.

[0027] Step S2000: Construct a learning model based on a deep reinforcement learning algorithm. Construct a reward function based on power factor, voltage value, temperature value and energy saving rate and train the learning model. The energy saving rate is determined by voltage value and current value.

[0028] Understandably, Deep Reinforcement Learning (DRL) combines the perceptual capabilities of Deep Learning (DL) with the decision-making capabilities of Reinforcement Learning (RL). It optimizes policies through the interaction between the agent and the environment, aiming to maximize long-term gains. DRL excels in handling high-dimensional perceptual inputs and complex decision-making problems, making it suitable for processing frequently acquired operating parameters and motor control scenarios. In this embodiment, the Proximal Policy Optimization (PPO) algorithm is used to analyze and process operating parameters. Specifically, PPO is an Actor-Critic type deep reinforcement learning algorithm, currently the most commonly used algorithm in industrial control, applied in continuous control scenarios such as motor and energy-saving device conduction angle optimization, fundamentally solving the problem of difficulty in controlling the step size of the gradient of old policies. In other embodiments, the deep reinforcement learning algorithms used include, but are not limited to, one or a combination of the following: DQN (Deep Q-Network), A2C (Advantage Actor-Critic), DDPG, SAC, and other proximal policy optimization or value function algorithms.

[0029] Please see Figure 2 , Figure 2 A schematic diagram illustrating the specific implementation process of step S2000 above is shown. For example... Figure 2 As shown, step S2000 includes at least the following steps: Step S2100: Construct a learning model, wherein the learning model includes a policy network and a value network.

[0030] It is understandable that the learning model built based on the PPO algorithm includes a policy network (Actor) and a value network (Critic). The policy network and the value network are a pair of interactive structures in the Actor-Critic framework. Specifically, the policy network is used to make decisions and output actions; the value network is used to evaluate good and bad and give scores, without outputting actions.

[0031] Step S2200: Input the running parameters into the policy network and output the conduction angle.

[0032] It is understandable that the input to the policy network is the state, i.e., the operating parameters obtained in the above steps. The output includes: continuous action distribution, output mean and variance; the action is controlling the thyristor conduction angle. .

[0033] Step S2300: Input the running parameters into the value network and output the state value of the conduction angle.

[0034] Understandably, the policy network's role is to output actions and interact with the learned model. Furthermore, the value network's input is also the runtime parameters. The output is the state value of the conduction angle, which represents the expected discounted cumulative reward of the current state. The value network's role is to evaluate the quality of a state, calculate the advantage function, and guide the policy network update.

[0035] Please see Figure 3 , Figure 3 A schematic diagram illustrating the specific implementation process of another embodiment of step S2000 described above is shown. For example... Figure 3 As shown, step S2000 further includes at least the following steps: Step S2400: Determine the changes in energy saving rate, power factor, and voltage value based on the operating parameters.

[0036] Understandably, based on the operating parameters Based on its historical data, it can accurately obtain the changes in energy saving rate, power factor, and voltage value, i.e. , and Among them, energy saving rate The power factor refers to the percentage of electricity saved before and after the modification, under the same operating conditions and output, compared to the electricity consumption before the modification. The power factor is the ratio of active power to apparent power. Voltage fluctuation refers to the change in voltage value, used to ensure that the motor's supply voltage changes quickly and in a short time.

[0037] Step S2500: Perform a weighted summation of the change value and the temperature value to determine the reward function.

[0038] Understandably, to ensure effective improvement in energy efficiency and power factor during motor operation, while reducing the impact of voltage fluctuations and temperature, a weighted sum is applied to the changes in energy efficiency, power factor, voltage, and temperature to determine the reward function. Specifically, the reward function... The calculation formula is as follows:

[0039] in, , , , For reward function The non-negative weighting coefficients, , , , All are located in the interval [0,1] and satisfy:

[0040] Please see Figure 4 , Figure 4 This diagram illustrates the specific implementation process of step S2000 above during offline training of the learning model. For example... Figure 4 As shown, step S2000 further includes at least the following steps: Step S2700: Construct a digital twin model of the motor.

[0041] Understandably, a digital twin model of a motor is a digital mirror image of the motor built in a computer, along with a real-time bidirectional mapping of the physical motor. The digital twin is built on a multiphysics simulation platform, encompassing electromagnetic, mechanical, and thermal physical fields. Specifically, the simulation platform includes, but is not limited to, MATLAB / Simulink, ANSYS, and AMESim. The digital twin model enables performance simulation and energy-saving assessment. Through simulation within the twin model, it can simulate and calculate load changes, voltage fluctuations, changes before and after power factor compensation, as well as key data such as motor losses and efficiency, and achieve online health monitoring and fault early warning.

[0042] Step S2800: Based on the digital twin model and operating parameters, conduct offline training on the learning model according to the preset training data volume, number of training rounds and training duration.

[0043] Understandably, historical data of operating parameters are input into the digital twin model to train the learning model offline. Specifically, the amount of training data is ≥1000, including samples of normal operation, faults, and changes in operating conditions; the number of training rounds is within the range [100, 10000]; and the training time is less than or equal to 24 hours, where the training time is obtained statistically based on the training device accelerated by GPU.

[0044] Step S3000: Input the running parameters into the trained learning model and output the conduction angle.

[0045] Understandably, the operating parameters are input into the trained learning model. The specific model deployment environment is as follows: a 32-bit MCU with a main frequency ≥ 100MHz is used; model quantization deployment switches high-precision floating-point to low-precision fixed-point, effectively improving the model size compression ratio; the output conduction angle delay is ≤ 50ms, far lower than the motor control cycle. Preferably, the output conduction angle... The delay is ≤10ms; the motor control cycle is within the range [10ms, 200ms]. This configuration effectively ensures that the delay of the output conduction angle is much lower than the motor control cycle, improving the motor control accuracy.

[0046] Step S4000: When the load rate is less than the preset load threshold, control the energy-saving device connected to the motor to work according to the conduction angle.

[0047] Understandably, the load factor is the ratio between the motor's actual output mechanical power and its rated output power. Therefore, when the motor is under light to medium load, the power factor is low, especially under no-load or light-load conditions, where the proportion of excitation reactive power is high. This is also the motor's efficient operating range, where the motor's efficiency and power factor are relatively ideal, making it the recommended long-term operating range for the motor. Therefore, when the load factor is less than a preset load threshold, controlling the energy-saving device connected to the motor based on the conduction angle can effectively improve the motor's power factor and energy efficiency. In practical applications, the load threshold is 60%.

[0048] Please see Figure 5 , Figure 5 A schematic diagram illustrating the specific implementation process of step S4000 above is shown. For example... Figure 5 As shown, step S4000 includes at least the following steps: Step S4100: Determine the load inertia based on the load rate.

[0049] As is understandable, load inertia is a physical quantity used to characterize the ability of a motor rotor to resist changes in rotational speed. Specifically, the greater the load inertia, the more difficult it is for the motor to accelerate and decelerate. When a motor drives a load, the total load inertia equals the sum of the motor rotor inertia and the load inertia. Linearly moving objects can also be converted into equivalent rotational inertia and transferred to the motor shaft; this is the most common operation in servo or frequency converter drives. Specifically, the motor rotor inertia is determined by the motor's size and weight, while the load inertia can be determined by changes in current and temperature during motor operation. Especially for high-inertia loads, voltage fluctuations significantly affect the starting process; therefore, the load inertia can be determined through the load factor.

[0050] Step S4200: Determine the motor's starting curve based on load inertia and operating parameters.

[0051] Understandably, the motor starting curve reflects the dynamic changes in current, torque, and speed over time during the starting process, and is an important basis for optimizing motor starting performance. Specifically, to ensure smooth motor starting and energy-saving effects, the motor starting curve needs to be determined based on load inertia and operating parameters. In this embodiment, energy consumption is also recorded during motor starting, and the accumulated starting energy consumption is included in the overall energy-saving assessment of the motor.

[0052] Step S4300: Control the energy-saving device to work according to the start-up curve and conduction angle.

[0053] It is understandable that after determining the starting curve and conduction angle through the above steps, the motor and energy-saving device are controlled to operate. In practical applications, controlling the motor and energy-saving device based on the starting curve and conduction angle is existing technology and will not be elaborated here.

[0054] Please see Figure 6 , Figure 6 The diagram illustrates the specific implementation process of step S4000 above when the load rate is greater than or equal to the load threshold. For example... Figure 6 As shown, step S4000 includes at least the following steps: Step S4400: When the load rate is greater than or equal to the load threshold and the duration reaches the preset duration, stop controlling the energy-saving device according to the conduction angle.

[0055] Understandably, when the load rate is greater than or equal to the load threshold, to prevent the motor current from exceeding the current limit threshold under heavy load conditions, it is necessary to switch to the existing technology of controlling the conduction angle based on PID instructions. Specifically, when the load rate is greater than or equal to the load threshold, current is prioritized as a hard constraint, and the conduction angle no longer simply follows the voltage ramp, thus avoiding insufficient torque margin in the motor. Simultaneously, to avoid frequent switching of the conduction angle control method, the energy-saving device will only stop operating when the load rate is greater than or equal to the load threshold for a preset duration. In practical applications, the preset duration is 5 seconds.

[0056] Step S4500: Control the energy-saving device to work according to the PID instruction.

[0057] Understandably, traditional energy-saving devices use power factor feedback PID control, a control algorithm that combines proportional, integral, and derivative parameters. By setting a target power factor, the power factor of the motor's input line is collected in real time. The output trigger delay angle is determined by the power factor. When the power factor is less than the target power factor, the motor is in a state of excessive reactive power and light load. The trigger delay angle of the PID output increases, lowering the voltage, reducing excitation reactive power, and raising the power factor. When the motor load increases, the trigger delay angle of the PID output decreases to raise the voltage and ensure output torque. Therefore, under high load conditions, using PID command control to operate the energy-saving device can effectively guarantee motor performance.

[0058] Please see Figure 7 , Figure 7 This diagram illustrates the specific implementation process of step S4000 when the power factor is lower than a preset power factor threshold. Figure 7 As shown, step S4000 includes at least the following steps: Step S4600: When the power factor is lower than the preset power factor threshold, adjust the weight coefficient corresponding to the power factor in the reward function and update the reward function.

[0059] Understandably, while controlling the motor and energy-saving device based on the start-up curve and conduction angle, the power factor can also be monitored in real time. When the power factor If the power factor is below a preset threshold, adjust the weighting coefficient of the power factor in the reward function. The reward function is updated to prioritize improving the power factor at the conduction angle, thereby achieving the dual goals of energy saving and reactive power improvement.

[0060] Step S4700: Retrain the learning model according to the updated reward function.

[0061] It is understandable that the process of retraining the learning model after updating the reward function is the same as the steps described above, and will not be repeated here. Specifically, in this embodiment, the MCU outputs the conduction angle based on the DRL inference result. (0-180°), the conduction angle of each phase thyristor is adjusted by optically isolating the trigger terminal of the thyristor. This reduces the motor terminal voltage, achieving energy savings. Voltage, current, and temperature data are synchronously sampled by the metering chip and fed back to the MCU to retrain the learning model, forming a closed-loop control.

[0062] This application provides a motor control method based on deep reinforcement learning. The method involves collecting motor operating parameters at a preset frequency, including voltage, current, power factor, load rate, and temperature. A learning model based on a deep reinforcement learning algorithm is constructed, and a reward function is built based on the power factor, voltage, temperature, and energy saving rate. The energy saving rate is determined by the voltage and current values. The operating parameters are input into the trained learning model, and a conduction angle is output. When the load rate is less than a preset load threshold, the energy-saving device connected to the motor is controlled according to the conduction angle. By inputting the motor's operating parameters into the deep reinforcement learning algorithm-based learning model to obtain the conduction angle and controlling the energy-saving device connected to the motor based on the conduction angle, the stability of the energy saving rate can be guaranteed, the power factor can be effectively improved, and the control method can be switched according to the load rate, thus improving the compatibility and versatility of the deep reinforcement learning-based motor control method. In practical applications, this solution ensures stable energy savings, maintaining an energy saving rate of 12-18% when the load rate is between 30-60%. While pursuing energy savings, it improves the power factor, avoiding the power factor deterioration caused by the single-objective control of traditional motor control methods. It also compensates for reactive power, improving the power factor from 0.55 to over 0.85, an improvement of 49%. Furthermore, it provides heavy-load protection with automatic algorithm switching to ensure effectiveness even when the load rate exceeds 60%. It automatically adjusts the start-up curve based on load inertia, achieving soft-start adaptation and reducing impact. It is compatible with everything from 30kW injection molding machines to 75kW fans, requiring no on-site debugging and achieving universal applicability across all scenarios. Finally, it significantly improves energy savings, increasing the average energy saving rate by 30% compared to existing solutions.

[0063] like Figure 8 As shown, Figure 8 This is a structural diagram of the motor control device 500 based on deep reinforcement learning provided in the embodiments of this application. The entire process of the motor control method based on deep reinforcement learning provided in the embodiments of this application involves the following modules in the motor control device 500 based on deep reinforcement learning: acquisition module 510, construction module 520, output module 530 and control module 540.

[0064] The acquisition module 510 is used to acquire the motor's operating parameters at a preset frequency. The operating parameters include voltage, current, power factor, load rate, and temperature. Module 520 is used to build a learning model based on a deep reinforcement learning algorithm. It constructs a reward function based on power factor, voltage value, temperature value and energy saving rate and trains the learning model. The energy saving rate is determined by voltage value and current value. The output module 530 is used to input the running parameters into the trained learning model and output the conduction angle; The control module 540 is used to control the energy-saving device connected to the motor to work according to the conduction angle when the load rate is less than the preset load threshold.

[0065] It should be noted that the information interaction and execution process between the modules of the above-mentioned device are based on the same concept as the method embodiment of this application. For details on their specific functions and technical effects, please refer to the method embodiment section, and they will not be repeated here.

[0066] like Figure 9 As shown, Figure 9 This is a schematic diagram of an electronic device 600 provided in one embodiment of this application.

[0067] The electronic device 600 of this application embodiment includes one or more processors 610 and a memory 620. Figure 9 The example uses a processor 610 and a memory 620.

[0068] The processor 610 and the memory 620 can be connected via a bus or other means. Figure 9 Taking the example of a connection between China and Israel via a bus.

[0069] Memory 620, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory 620 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 620 may optionally include memory 620 remotely located relative to processor 610, and these remote memories can be connected to the electronic device 600 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0070] Those skilled in the art will understand that Figure 9 The device structure shown does not constitute a limitation on electronic device 600 and may include, but is not limited to, other electronic devices. Figure 9 More or fewer components, or combinations of certain components, or different arrangements of components.

[0071] This application embodiment also provides a storage medium storing computer-executable instructions for executing the above-described deep reinforcement learning-based motor control method.

[0072] In one embodiment, the storage medium stores computer-executable instructions that are executed by one or more processors 610, such as one of the processors 610 in the electronic device 600, which enable the one or more processors 610 to execute the deep reinforcement learning-based motor control method provided in any embodiment of this application.

[0073] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network nodes. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0074] Those skilled in the art will understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0075] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0076] In the several embodiments provided in this application, it should be understood that the disclosed systems, instruments, and methods can be implemented in other ways. For example, the instrument embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between instruments or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0077] It should also be understood that the various implementation methods provided in this application can be combined arbitrarily to achieve different technical effects.

[0078] The above is a detailed description of the preferred embodiments of this application. However, this application is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.

Claims

1. A motor control method based on deep reinforcement learning, characterized in that, The method includes the following steps: The operating parameters of the motor are collected at a preset frequency. These operating parameters include voltage, current, power factor, load rate, and temperature. A learning model based on a deep reinforcement learning algorithm is constructed. A reward function is built based on the power factor, the voltage value, the temperature value, and the energy saving rate, and the learning model is trained. The energy saving rate is determined by the voltage value and the current value. Input the running parameters into the trained learning model and output the conduction angle; When the load rate is less than the preset load threshold, the energy-saving device connected to the motor is controlled to work according to the conduction angle.

2. The motor control method based on deep reinforcement learning according to claim 1, characterized in that, The construction of the learning model based on the deep reinforcement learning algorithm includes: Construct the learning model, wherein the learning model includes a policy network and a value network; The operating parameters are input into the policy network, and the conduction angle is output. The operating parameters are input into the value network, and the state value of the conduction angle is output.

3. The motor control method based on deep reinforcement learning according to claim 2, characterized in that, The step of constructing a reward function based on the power factor, voltage value, temperature value, and energy saving rate, and training the learning model, includes: Based on the operating parameters, determine the changes in the energy saving rate, the power factor, and the voltage value; The reward function is determined by weighted summation of the change value and the temperature value; The learning model is trained based on the reward function, a preset number of the operating parameters, and the state value.

4. The motor control method based on deep reinforcement learning according to claim 1, characterized in that, After constructing the learning model based on the deep reinforcement learning algorithm, the method further includes: Construct a digital twin model of the motor; Based on the digital twin model and the operating parameters, the learning model is trained offline according to the preset training data volume, training rounds, and training duration.

5. The motor control method based on deep reinforcement learning according to claim 1, characterized in that, The operation of the energy-saving device connected to the motor, controlled according to the conduction angle, includes: Determine the load inertia based on the load rate; The starting curve of the motor is determined based on the load inertia and the operating parameters; The energy-saving device is controlled to operate based on the start-up curve and the conduction angle.

6. The motor control method based on deep reinforcement learning according to claim 1, characterized in that, After the energy-saving device connected to the motor is controlled to operate according to the conduction angle, the method further includes: When the load rate is greater than or equal to the load threshold and the duration reaches a preset duration, stop controlling the energy-saving device to work according to the conduction angle. The energy-saving device is controlled to operate according to PID instructions.

7. The motor control method based on deep reinforcement learning according to claim 1, characterized in that, After the energy-saving device connected to the motor is controlled to operate according to the conduction angle, the method further includes: When the power factor is lower than a preset power factor threshold, the weight coefficient corresponding to the power factor in the reward function is adjusted, and the reward function is updated. The learning model is retrained based on the updated reward function.

8. A motor control device based on deep reinforcement learning, used to implement the motor control method based on deep reinforcement learning as described in any one of claims 1 to 7, characterized in that, include: The acquisition module is used to acquire the operating parameters of the motor at a preset frequency. The operating parameters include voltage, current, power factor, load rate, and temperature. A construction module is used to construct a learning model based on a deep reinforcement learning algorithm, construct a reward function based on the power factor, the voltage value, the temperature value, and the energy saving rate, and train the learning model, wherein the energy saving rate is determined by the voltage value and the current value; The output module is used to input the running parameters into the trained learning model and output the conduction angle; The control module is used to control the energy-saving device connected to the motor to work according to the conduction angle when the load rate is less than a preset load threshold.

9. An electronic device, characterized in that, include: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the deep reinforcement learning-based motor control method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The device stores a computer program, which, when executed by a processor, implements the deep reinforcement learning-based motor control method as described in any one of claims 1 to 7.