A method and system for controlling electric equipment based on artificial intelligence algorithm

By using a combination of GRU neurons and Double DQN algorithms in the home electrical equipment monitoring system to analyze and optimize energy usage data, the problem of the existing system's inability to efficiently utilize data has been solved, and the effects of scientific energy use and deep energy saving have been achieved.

CN115202202BActive Publication Date: 2024-09-20SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210697068.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-20
Publication Date
2024-09-20
Estimated Expiration
2042-06-20

AI Technical Summary

Technical Problem

The existing household electrical equipment monitoring system is difficult to efficiently utilize massive energy usage data, and is unable to analyze and guide users' energy usage behavior in scientific decisions, resulting in the inability to achieve scientific energy usage and deep energy conservation.

Method used

The Seq-Seq deep learning model based on GRU neurons and the Double DQN reinforcement learning algorithm are used to predict the energy consumption characteristics of the period to be controlled by analyzing the historical energy load sequence, and generate control instructions to optimize power consumption under the constraints of the regulation target. Operation of equipment.

Benefits of technology

It achieves in-depth analysis of users’ energy usage behavior and scientific decision-making guidance, improves energy comfort and energy utilization efficiency, and achieves all-round scientific energy use and deep energy conservation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115202202B
    Figure CN115202202B
Patent Text Reader

Abstract

The present invention relates to the field of electrical equipment control technology, and provides an electrical equipment control method and system based on an artificial intelligence algorithm, including: obtaining energy load sequences of several historical cycles; based on the energy load sequences of several historical cycles, using a deep learning model to predict the energy characteristics of the cycle to be controlled; using the energy characteristics of the cycle to be controlled as a state, and using a neural network under the constraints of the control target, obtaining control instructions for rigid loads, translatable load switches, and power-variable load gears. This improves the user's energy comfort, achieves all-round scientific energy use, and achieves deep energy saving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electric equipment control, and in particular, relates to an electric equipment control method and system based on an artificial intelligence algorithm. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] With the continuous improvement of the level of informatization, more and more electronic and electrical equipment are used in all walks of life. The number of electrical equipment is growing on a large scale, but its management and maintenance level has not kept up with its huge growth rate, and problems are coming one after another. On the other hand, the innovation of sensors, signal measurement and other technologies and the widespread application of artificial intelligence algorithms have made data a very valuable resource. Extracting valuable information from energy consumption data, analyzing user energy consumption, and providing users with optional energy consumption strategies are important means to improve user comfort and achieve deep energy saving.

[0004] The search found that the patents that can currently realize the monitoring of household electrical equipment are mainly based on smart monitoring sockets, which can realize power supply monitoring of indoor electrical equipment, and can display power parameters and remotely control switches through mobile phone apps, as well as abnormal situation alarms to ensure home safety; but such devices are rarely combined with artificial intelligence algorithms, and it is difficult to efficiently utilize the massive amount of data collected, analyze user energy consumption behavior, provide users with scientific energy decision-making guidance, and independently control electrical equipment, thereby achieving scientific energy use and deep energy saving. Summary of the invention

[0005] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a method and system for controlling electrical equipment based on artificial intelligence algorithm, which improves the energy comfort of users and achieves all-round scientific energy use and deep energy saving.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] A first aspect of the present invention provides an electric equipment control method based on an artificial intelligence algorithm, comprising:

[0008] Obtain energy load sequences for several historical periods;

[0009] Based on the energy load sequences of several historical periods, a deep learning model is used to predict the energy consumption characteristics of the period to be controlled;

[0010] The energy consumption characteristics of the cycle to be controlled are taken as the state, and under the constraint of the control target, a neural network is used to obtain the control instructions for the rigid load, the translatable load switch and the power variable load gear.

[0011] Further, the deep learning model includes an encoder and a decoder;

[0012] The hidden layer state of the t-th GRU neuron in the encoder is jointly determined by the hidden layer state of the t-1-th GRU neuron and the user load sequence of the t-th historical period;

[0013] The initial GRU neuron hidden layer state in the decoder is the same as the last GRU neuron hidden layer state in the encoder;

[0014] The hidden layer state of the GRU neuron at time k in the decoder is jointly determined by the hidden layer state of the GRU neuron at time k-1 and the hidden layer input of the GRU neuron at time k.

[0015] Furthermore, the input of the GRU neuron hidden layer at time k is the output of the decoder at time k-1;

[0016] The output of the encoder decoder at time k is determined by the GRU neuron hidden layer states at time k and time k-1 in the decoder, and the output of the decoder at time k-1.

[0017] Furthermore, the neural network adopts two back-propagation neural networks and is optimized using a reinforcement learning algorithm.

[0018] Furthermore, the energy load sequence of a historical period is the electricity consumption time, peak power consumption and power consumption of all electrical equipments of the user in the historical period.

[0019] Furthermore, the energy consumption characteristics of the period to be controlled are the power consumption time and power consumption of all electrical devices in the period to be controlled.

[0020] Furthermore, the control target is to maximize the reduction of electricity bills, maximize the satisfaction of user load demands, or maximize the reduction of peak voltage.

[0021] A second aspect of the present invention provides an electric equipment control system based on an artificial intelligence algorithm, comprising:

[0022] A data acquisition module is configured to: acquire energy load sequences of several historical periods;

[0023] A prediction module is configured to: predict the energy consumption characteristics of a period to be controlled based on energy consumption load sequences of several historical periods using a deep learning model;

[0024] The control module is configured to: take the energy consumption characteristics of the cycle to be controlled as the state, and use the neural network under the control target constraint to obtain the control instructions of the rigid load, the translatable load switch and the power variable load gear.

[0025] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the method for controlling an electrical device based on an artificial intelligence algorithm as described above.

[0026] The fourth aspect of the present invention provides a computer 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 program, the steps in the method for controlling an electrical equipment based on an artificial intelligence algorithm as described above are implemented.

[0027] Compared with the prior art, the present invention has the following beneficial effects:

[0028] The present invention provides an electrical equipment control method based on an artificial intelligence algorithm. The method is based on user energy consumption data and adopts a Seq-Seq deep learning model with GRU neurons as the carrier to analyze the user's energy consumption behavior characteristics at different time and space scales to obtain the user's energy consumption behavior analysis data; and based on the user energy consumption behavior data obtained by the deep learning model analysis, a Double DQN reinforcement learning algorithm is adopted to further explore the energy-saving potential of controllable loads by combining constraints such as local electricity prices, thereby providing users with scientific energy consumption decision-making guidance, improving users' energy consumption comfort, and achieving all-round scientific energy use and deep energy saving. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0030] Figure 1 is a flow chart of a method for controlling an electric device based on an artificial intelligence algorithm according to a first embodiment of the present invention;

[0031] Figure 2 is a structural diagram of a deep learning model according to the first embodiment of the present invention;

[0032] Figure 3 is a flow chart of a reinforcement learning algorithm according to the first embodiment of the present invention;

[0033] Figure 4 This is a state transition flow chart of the first embodiment of the present invention. DETAILED DESCRIPTION

[0034] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0035] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0036] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0037] Embodiment 1

[0038] This embodiment provides a method for controlling an electric device based on an artificial intelligence algorithm, such as Figure 1 As shown, the specific steps include:

[0039] Step 1: Data collection:

[0040] Assume that the current period is T, the period to be controlled is T+1, and each period contains K moments; Figure 1 As shown in FIG. 1 , it is assumed that a user has n electrical devices. A cycle can be one day.

[0041] Step 101: Collect data using a data acquisition device, such as Figure 1 As shown, the data acquisition device includes n LoRa nodes and a LoRa concentrator. Each LoRa node is connected to an electrical device. Each LoRa node includes an electrical parameter acquisition device and a temperature and humidity sensor. Specifically:

[0042] Obtain the energy load sequence of all electrical equipment in several historical periods: collect the power consumption time, peak power consumption and power consumption of all electrical equipment by users in each historical period. The power consumption time, peak power consumption and power consumption of all electrical equipment by users in a historical period t constitute the energy load sequence P in a historical period. Lt , t=1,2,…,T, the energy load sequences of several historical periods constitute a set of energy load sequences P L Specifically, the electrical parameter collection device can be used to collect relevant electrical parameters such as voltage, current, power, and electric energy of each electrical device. The electrical parameter collection device also has power protection and remote switch control functions, and can also automatically control the power start and stop time according to the scientific energy guidance strategy to achieve intelligent control of the switch. The electrical parameter collection device can more conveniently and efficiently manage and control electrical equipment, and provide data input for artificial intelligence algorithms such as user energy behavior analysis and scientific energy decision guidance.

[0043] Obtain environmental information of each electrical device: The temperature and humidity sensors collect environmental information around the electrical devices in real time, and users can view the environmental information of the electrical devices at any time; at the same time, the temperature and humidity over-limit alarm can be realized to ensure the safety of electricity use.

[0044] LoRa wireless communication is used between the LoRa node and the LoRa concentrator to form a LoRa network. The LoRa networking communication has the characteristics of long data transmission distance, low data transmission delay, strong anti-interference ability, and a large number of terminal nodes that can be mounted. It can meet the communication requirements of the present invention, and the LoRa communication method is more reliable and stable.

[0045] Step 102: Upload the data collected in step 101 to the cloud platform to receive and store the data.

[0046] Step 2: After receiving and storing the data, conduct energy usage behavior analysis and scientific energy usage guidance. Specifically:

[0047] Step 201: Based on the energy load sequences of several historical periods, a Seq-Seq deep learning model based on GRU neurons is used to obtain the energy consumption characteristics of the period to be controlled.

[0048] Among them, the Seq-Seq deep learning model based on GRU neurons extracts the user's energy consumption characteristics from the energy load sequence through the time scale analysis characteristics of GRU neurons, and accurately analyzes the user's behavior by inputting the user's electricity consumption time, peak electricity consumption and electricity consumption in several historical cycles (multiple days), and outputs the user's energy consumption time (electricity consumption time) and electricity consumption of all electrical equipment in the control period (next day).

[0049] The Seq-Seq deep learning model based on GRU neurons adopts the Encoder-Decoder architecture, including an encoder, an intermediate state, and a decoder. Its structure is as follows: Figure 2 shown.

[0050] A set of load time series P L Input into the feature extraction model, the encoder converts P L The encoder contains T GRU neuron hidden layers connected in sequence. The state of the tth GRU neuron hidden layer is determined by the state of the t-1th GRU neuron hidden layer and the user load sequence of the tth historical period (take h 0 =0), the specific formula is:

[0051] h t =f(P Lt ,h t-1) (1)

[0052] Where: f represents the activation function sigmoid in the neural network, h t represents the hidden layer state value of the tth GRU neuron; h t-1 represents the hidden layer state value of the t-1th GRU neuron; P Lt Represents the load sequence data of the t-th historical period, that is, the input of the t-th GRU neuron hidden layer.

[0053] In the Encoder-Decoder architecture, the intermediate state of the Encoder-Decoder architecture is the same as the Tth (last) GRU neuron hidden layer state h in the encoder. T At the same time, the hidden layer state of the GRU neuron in the decoder at the initial moment is The same as the intermediate state of the Encoder-Decoder architecture, the specific formula is:

[0054]

[0055] Where: C represents the intermediate state of the Encoder-Decoder architecture.

[0056] The intermediate state C of the sequence is input into the decoder, where the initial value of the hidden layer in the decoder is The same as the intermediate state C of the sequence, after inputting C, the hidden layer state of the GRU neuron at time k in the decoder can be obtained It is determined by the hidden layer state of the GRU neuron at time k-1 and the hidden layer input of the GRU neuron at time k. The specific formula is:

[0057]

[0058] Where: f represents the activation function sigmoid in the neural network, represents the hidden layer state of the GRU neuron at time k-1; x k represents the input of the hidden layer of the GRU neuron at time k, taking x 1 =0; where k=1, 2,…, K, K means that each cycle contains K moments.

[0059] The output of the decoder at the previous moment is used as the input of the decoder at the next moment (the input of the GRU neuron hidden layer at moment k is the output of the decoder at moment k-1), as shown in the following formula:

[0060] x k =U Gk-1 (4)

[0061] Where: U Gk-1Represents the Decoder architecture output at time k-1.

[0062] Substitute equation (4) into equation (3) so that the decoder decodes the input sequence intermediate state C step by step according to the time step to form the final output sequence U Gk , that is, the extracted energy feature vector; the output of the decoder at time k is given by U Gk-1 as well as Joint decision, as described below:

[0063]

[0064] Where: U Gk represents the output of the decoder at time k; g represents the softmax activation function; F represents the conversion function.

[0065] The output of the decoder at time K is the energy consumption behavior feature output by the feature extraction model.

[0066] By setting a reasonable number of network layers, training algorithms, objective functions, etc., the clustered load time series input sample data is used to train the deep learning model built based on GRU and Seq2Seq technology until a certain accuracy requirement is met, the training stops, and the model training is completed.

[0067] The user load time series obtained by actual sampling is input, and the deep learning model after training outputs the corresponding user energy consumption characteristic results.

[0068] The feature extraction model of the present invention can obtain the energy consumption behavior feature vector containing the time span by using only the load time series as input, including the energy consumption time and power consumption amount of all electrical equipments of the user in the control period (next day).

[0069] Step 202: Based on the energy consumption characteristics of the period to be controlled and combined with external factors such as regional electricity prices, the DoubleDQN reinforcement learning algorithm is used to deeply explore the energy-saving potential of controllable loads, formulate economical and environmentally friendly energy consumption strategies, and achieve scientific guidance of user energy consumption. Figure 4 As shown, the energy consumption characteristics and electricity price of the period to be controlled are taken as state s τ , under the control target constraint γ, the device controller uses a neural network to obtain the control action a τ (Control instructions for rigid load, shiftable load switch and power variable load gear) to control all electrical equipment. At the same time, the control instructions are sent to the user terminal through the user management center.

[0070] like Figure 3As shown in the figure, the present invention optimizes and trains the Double DQN reinforcement learning controller using the real-time situation of the control action execution, and continuously improves the energy-saving optimization effect through learning. In order to avoid learning falling into the local optimum and ensure the convergence speed of the algorithm, the controller needs to achieve a balance between exploration and utilization, that is, adopt the ε-greedy strategy. The specific operation optimization process is as follows:

[0071] (1) Initialize the parameters of the neural network: objective function neural network parameters θ - The sum value estimation function neural network parameter θ;

[0072] (2) Obtain the energy consumption characteristics and electricity price s at time τ obtained in step 201 τ ;

[0073] (3) τ Input the neural network and use the ε-greedy strategy to select the control action a τ ; According to control action a τ Control electrical equipment and get rewards τ , and the state s at time τ+1 τ+1 (energy consumption characteristics and electricity prices at time τ+1); and store state transition data (s τ , a τ , r τ ,s τ+1 ) to the data file;

[0074] (4) At regular intervals, the controller randomly extracts N data from the data file, updates the parameters of the action selection neural network and the action evaluation neural network (i.e., the parameters of the objective function neural network and the value estimation function neural network), and reduces the value of the exploration probability ε. As the number of iterations increases, the parameters of the action selection neural network and the action evaluation neural network gradually converge, and the control action output by the controller gradually stabilizes. When the accumulated system energy consumption no longer changes, the learning process is considered to be over, and the controller has obtained the optimal strategy and can be put into formal use.

[0075] Among them, energy use strategy refers to the regulation of user energy use to achieve the goals of maximizing electricity bill reduction, maximizing user demand satisfaction, or maximizing peak voltage reduction. Structural loads include rigid loads, movable loads, and variable power loads. Rigid loads cannot be regulated, so energy use strategies need to be formulated to optimize controllable loads.

[0076] The data obtained in step 201 is essentially prediction data, which serves as a type of input for energy use strategy and is used for training the reinforcement learning algorithm to achieve the purpose of finding the optimal strategy.

[0077] The energy-guiding system reinforcement learning task can be modeled as a Markov decision process (MDP), usually represented as a four-tuple {S, A, p, r}, where S is the state space composed of the current regional electricity price level and the energy consumption characteristics of the period to be controlled, A represents the action space composed of the available control instructions for rigid loads, shiftable load switches, and power-variable load gears, p is the transition probability between states, and r is the immediate reward that can be obtained by taking different control actions a in state s (i.e., the regulation target (maximizing the reduction of electricity bills, maximizing the satisfaction of user load needs, or maximizing the reduction of peak voltage)).

[0078] The purpose of the Double DQN reinforcement learning algorithm is to obtain the State-action value function, which means to estimate the Reward value function of action a in state s, expressed as Q(s,a), which means as follows:

[0079]

[0080] Where: Q(s,a) represents the expected benefit of taking action a in state s, γ∈(0,1) is the discount factor, which represents the impact of the current action on future rewards. The closer γ is to 0, the more the strategy tends to focus on short-term benefits. On the contrary, the closer it is to 1, the more it focuses on long-term benefits. 0 is the initial state; a 0 is the initial action; E π is the expected cumulative reward under strategy π; r τ It represents the instant reward at time τ. The energy strategy is obtained by using the predicted value instead of the actual value. The energy strategy is solved by the predicted value, and the energy consumption behavior of the period to be controlled is adjusted after the result is obtained.

[0081] According to the theory of Markov Reward Process, Q(s,a) satisfies the following Bellman equation:

[0082] Q(s,a)=E π (r τ +γQ(s τ+1 ,a τ+1 )|s τ =s,a τ =a) (7)

[0083] Based on the above theoretical framework, the Double DQN reinforcement learning algorithm will estimate the Reward value function for all State-action pairs in the entire energy optimization model. The estimation process is based on the real Reward value obtained by the Agent in the process of continuous trial and error in the model environment. The Reward value estimation function is iteratively updated using the following formula. This process is called action evaluation:

[0084] Q(S τ ,a τ )←l r [ τ +γmaxQ(s τ+1 ,a τ+1 )-Q(s τ ,a τ )]+Q(s τ ,a τ ) (8)

[0085] Where: l r ∈(0, 1) is the learning rate during algorithm training.

[0086] After the iterations gradually converge, the optimal strategy π * (s,a) is the action with the largest Q value that can be selected in state s, that is, the Greedy strategy. This process is called action selection, as shown in the following formula:

[0087]

[0088] The Double DQN reinforcement learning algorithm adopted in the present invention uses BP neural network for training, which has two major advantages: first, the BP neural network is used to parameterize the estimated value function to achieve the purpose of generalization and dimensionality reduction; second, two BP neural networks are trained separately to complete action selection and action evaluation to solve the problem of over-estimation of value function.

[0089] In Double DQN, the objective function of the estimation function network is no longer the maximized Q estimation, but another neural network is used to calculate the objective function, the process is:

[0090] For each State-action pair, first find the action corresponding to the maximum Q value in the current Q network, that is:

[0091]

[0092] Where: s τ+1 State-action pair (s τ ,a τ ) leads to a state, a τ+1 is in τ+1All actions that can be taken under this condition, θ is the value estimation function neural network parameters.

[0093] Use the selected action and substitute it into the objective function network to calculate the objective function used.

[0094] Finally, the neural network parameters are updated by the gradient descent method, as shown in formula (11):

[0095]

[0096] Where: is the objective function; θ - are the parameters of the objective function neural network (action evaluation neural network), and θ represents the parameters of the value estimation function neural network (action selection neural network).

[0097] Among them, θ - It does not completely follow the update of θ, but after multiple action network trainings, that is, after θ is updated multiple times, the objective function neural network parameter θ is updated. - Synchronize with the value estimation function neural network parameters θ.

[0098] The present invention optimizes and trains the reinforcement learning controller using the real-time situation of the execution of the control action. By combining the energy consumption behavior characteristics of the user in the given control period with the influence of factors such as regional electricity prices, the energy consumption strategy of the user at different times is obtained, and the energy-saving optimization effect after energy consumption guidance is continuously improved through learning. In order to avoid learning falling into the local optimum and ensure the convergence speed of the algorithm, the controller needs to achieve a balance between exploration and utilization. The ε-greedy strategy is a proven reliable optimization action selection strategy. In this strategy, the agent selects the action with the largest Q value with a probability of 1- when selecting an action, and randomly selects an action with a probability of ε. In the learning process, the value of the exploration probability ε is gradually reduced as the number of training times increases.

[0099] Based on the Double DQN reinforcement learning algorithm, the model is continuously trained and optimized to eventually obtain the optimal energy use strategy, which can then provide users with scientific energy use guidance, further improve energy utilization, and achieve deep energy saving.

[0100] Based on user energy consumption data, the present invention adopts a Seq-Seq deep learning model with GRU neurons as the carrier to analyze the user energy consumption behavior characteristics at different time and space scales to obtain the user's energy consumption behavior analysis data, such as the user's electricity consumption time, peak electricity consumption and amount of electricity consumption in a day.

[0101] This invention is based on the user energy consumption behavior data obtained by deep learning model analysis, adopts the Double DQN reinforcement learning algorithm, and further explores the energy-saving potential of controllable loads by combining constraints such as local electricity prices, thereby giving users scientific energy consumption decision-making guidance, improving user energy consumption comfort, and achieving all-round scientific energy use and deep energy saving.

[0102] Embodiment 2

[0103] This embodiment provides an electric equipment control system based on an artificial intelligence algorithm, which specifically includes the following modules:

[0104] A data acquisition module is configured to: acquire energy load sequences of several historical periods;

[0105] A prediction module is configured to: predict the energy consumption characteristics of a period to be controlled based on energy consumption load sequences of several historical periods using a deep learning model;

[0106] The control module is configured to: take the energy consumption characteristics of the cycle to be controlled as the state, and use the neural network under the control target constraint to obtain the control instructions of the rigid load, the translatable load switch and the power variable load gear.

[0107] It should be noted here that each module in this embodiment corresponds to each step in Example 1 one by one, and the specific implementation process is the same, which will not be repeated here.

[0108] Embodiment 3

[0109] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the method for controlling an electric device based on an artificial intelligence algorithm as described in the first embodiment above are implemented.

[0110] Embodiment 4

[0111] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the method for controlling an electric device based on an artificial intelligence algorithm as described in the first embodiment above are implemented.

[0112] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0113] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0114] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0115] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0116] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for controlling electrical equipment based on artificial intelligence algorithm, It is characterized in that include: Obtain energy load sequences for several historical periods; Based on the energy load series of several historical periods, a deep learning model is used, using the load time series as input to predict the energy consumption characteristics of the period to be controlled; The energy consumption characteristics of the period to be controlled are the power consumption time and power consumption of all electrical equipment in the period to be controlled; Based on the energy consumption characteristics of the cycle to be controlled, the reinforcement learning algorithm is used to formulate energy consumption strategies to achieve scientific guidance of user energy consumption. The energy consumption characteristics of the cycle to be controlled are used as the state. Under the constraints of the control target, the neural network is used to obtain the control instructions of the rigid load, the shiftable load switch and the power variable load gear to achieve control of all electrical equipment; Among them, energy use strategy refers to the regulation of user energy use to achieve goals such as maximizing the reduction of electricity bills, maximizing the satisfaction of user needs, or maximizing the reduction of peak voltage. Energy use strategy is formulated to optimize controllable loads.

2. A method for controlling electrical equipment based on an artificial intelligence algorithm as claimed in claim 1, It is characterized in that The deep learning model includes an encoder and a decoder; The hidden layer state of the t-th GRU neuron in the encoder is jointly determined by the hidden layer state of the t-1-th GRU neuron and the user load sequence of the t-th historical period; The initial GRU neuron hidden layer state in the decoder is the same as the last GRU neuron hidden layer state in the encoder; The hidden layer state of the GRU neuron at time k in the decoder is jointly determined by the hidden layer state of the GRU neuron at time k-1 and the hidden layer input of the GRU neuron at time k.

3. A method for controlling electrical equipment based on artificial intelligence algorithm as claimed in claim 2, It is characterized in that The input of the GRU neuron hidden layer at time k is the output of the decoder at time k-1; The output of the encoder k-time decoder is jointly determined by the GRU neuron hidden layer states at time k and time k-1 in the decoder, and the output of the decoder at time k-1.

4. The method for controlling electrical equipment based on artificial intelligence algorithm as claimed in claim 1, It is characterized in that The neural network adopts two back-propagation neural networks and is optimized by a reinforcement learning algorithm.

5. The method for controlling electric equipment based on artificial intelligence algorithm as claimed in claim 1, It is characterized in that The energy load sequence of a historical period is the electricity consumption time, peak power consumption and power consumption of all electrical equipment by users in a historical period.

6. An electrical equipment control system based on artificial intelligence algorithm, It is characterized in that include: A data acquisition module is configured to: acquire energy load sequences of several historical periods; A prediction module is configured to: based on energy load sequences of several historical periods, adopt a deep learning model, use the load time series as input, and predict the energy consumption characteristics of the period to be controlled; The energy consumption characteristics of the period to be controlled are the power consumption time and power consumption of all electrical equipment in the period to be controlled; The control module is configured to: formulate energy consumption strategies based on the energy consumption characteristics of the period to be controlled, use reinforcement learning algorithms, achieve scientific guidance of user energy consumption, take the energy consumption characteristics of the period to be controlled as the state, and use neural networks under the constraints of the control target to obtain control instructions for rigid loads, translatable load switches, and power-variable load gears, so as to achieve control of all electrical equipment; Among them, energy use strategy refers to the regulation of user energy use to achieve goals such as maximizing the reduction of electricity bills, maximizing the satisfaction of user needs, or maximizing the reduction of peak voltage. Energy use strategy is formulated to optimize controllable loads.

7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps in the method for controlling an electric device based on an artificial intelligence algorithm as described in any one of claims 1 to 5 are implemented.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps in the method for controlling an electric device based on an artificial intelligence algorithm as described in any one of claims 1 to 5 are implemented.