Photovoltaic equipment control method and system based on artificial intelligence
Through the photovoltaic equipment control method based on artificial intelligence, the ResNet neural network model is used to identify the lighting status and make movement and steering adjustments, which solves the problem of insufficient lighting of photovoltaic equipment in special environments and improves power generation efficiency.
Patent Information
- Application Number
- CN202311398582.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-10-26
AI Technical Summary
In special environments, photovoltaic equipment cannot obtain all-weather sunlight, resulting in insufficient light intensity and light coverage area, affecting power generation efficiency.
The photovoltaic equipment control method based on artificial intelligence is used to obtain the illumination image data around the photovoltaic equipment through the image acquisition device. The ResNet neural network model is combined with the SE attention mechanism module to identify the illumination status and generate control instructions for movement and steering adjustments. Maximize the use of light intensity.
It improves the control accuracy and efficiency of photovoltaic equipment in special environments and ensures that photovoltaic equipment always faces the place with the highest light intensity, thereby improving power generation efficiency.
Smart Images

Figure CN117130394B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of photovoltaic equipment, and in particular to an artificial intelligence-based photovoltaic equipment control method and system. Background Art
[0002] In areas where large-scale photovoltaic equipment is deployed, the light intensity is sufficient and the light coverage area is wide. Therefore, there is no need to move or turn the photovoltaic equipment to obtain sunlight around the clock. However, in some special application environment areas (such as rural or mountainous areas) or areas where photovoltaic equipment is deployed in a small area, photovoltaic equipment cannot obtain sunlight around the clock. Therefore, the light intensity and light coverage area do not reach a certain intensity. Therefore, how to improve the degree of automatic control of photovoltaic equipment in special environments to improve the power generation efficiency of photovoltaic equipment is a technical problem that needs to be solved at this stage. Summary of the invention
[0003] The purpose of the present invention is to solve the above problems and to design a photovoltaic equipment control method and system based on artificial intelligence.
[0004] To achieve the above object, the technical solution of the present invention is that, further, in the above-mentioned photovoltaic device control method based on artificial intelligence, the photovoltaic device control method comprises the following steps:
[0005] Acquire illumination image data around the photovoltaic device through an image acquisition device to obtain historical illumination image data of the photovoltaic device, and perform data preprocessing on the historical illumination image data of the photovoltaic device to obtain a historical illumination image data set of the photovoltaic device;
[0006] A ResNet image recognition neural network model is established based on the ResNet neural network, and an SE attention mechanism module is introduced after the convolution layer of the ResNet image recognition neural network model to obtain a target ResNet image recognition neural network model;
[0007] Inputting the photovoltaic device historical illumination image data set into the target ResNet image recognition neural network model for recognition to obtain the photovoltaic device illumination status data;
[0008] Determining the illumination intensity of the photovoltaic device according to the illumination status data of the photovoltaic device, and if it is determined that the photovoltaic device has no illumination intensity, generating a photovoltaic device control instruction according to the illumination status data of the photovoltaic device;
[0009] Using the photovoltaic device control instruction to control the movement and steering of the photovoltaic device, and acquiring real-time illumination image data around the photovoltaic device based on an image acquisition device to obtain a real-time illumination image data set of the photovoltaic device;
[0010] The real-time illumination image data set of the photovoltaic device is input into the target ResNet image recognition neural network model for recognition to obtain the real-time illumination status data of the photovoltaic device, and the real-time movement and steering control of the photovoltaic device is performed according to the real-time illumination status data of the photovoltaic device.
[0011] Furthermore, in the photovoltaic device control method, the image acquisition device is used to acquire the illumination image data around the photovoltaic device to obtain the historical illumination image data of the photovoltaic device, and the historical illumination image data of the photovoltaic device is preprocessed to obtain the historical illumination image data set of the photovoltaic device, including:
[0012] Acquire illumination image data around the photovoltaic device through an image acquisition device to obtain historical illumination image data of the photovoltaic device;
[0013] Performing image noise reduction processing on the historical illumination image data of the photovoltaic device to obtain noise-reduced illumination image data of the photovoltaic device;
[0014] Performing data enhancement processing on the photovoltaic device noise reduction illumination image data to obtain photovoltaic device enhanced illumination image data, wherein the data enhancement processing at least includes image rotation, image scaling, image cropping, color adjustment, random splitting and center cropping;
[0015] Expanding the data set of the normalized illumination image data of the photovoltaic device by using random horizontal flipping, random contrast adjustment, random brightness adjustment, random micro-angle rotation and random cropping and scaling methods to obtain expanded photovoltaic device illumination image data;
[0016] The photovoltaic device illumination image data is clustered using the FCM fuzzy clustering algorithm to obtain a photovoltaic device historical illumination image data set.
[0017] Furthermore, in the photovoltaic device control method, the ResNet image recognition neural network model is established based on the ResNet neural network, and the SE attention mechanism module is introduced after the convolution layer of the ResNet image recognition neural network model to obtain the target ResNet image recognition neural network model, including:
[0018] A ResNet image recognition neural network model is established based on the ResNet neural network, and a Swish activation function is used to replace the ReLU activation function in the ResNet image recognition neural network model;
[0019] The mean square error loss function and the cross entropy loss function are set as the loss functions of the ResNet image recognition neural network model;
[0020] Expand the range of the convolutional layer in the ResNet image recognition neural network model and add a batch normalization layer after the convolutional layer;
[0021] An SE attention mechanism module is introduced after the convolution layer of the ResNet image recognition neural network model, and the convolution layer and the batch normalization layer are connected by using the SE attention mechanism module;
[0022] The hyperparameters of the ResNet image recognition neural network model are adjusted using a Bayesian optimization algorithm to obtain a target ResNet image recognition neural network model.
[0023] Furthermore, in the photovoltaic device control method, the photovoltaic device historical illumination image data set is input into the target ResNet image recognition neural network model for recognition to obtain the photovoltaic device illumination state data, including:
[0024] The target ResNet image recognition neural network model is a trained image recognition neural network model;
[0025] The photovoltaic device illumination state data includes illumination coverage area data of the photovoltaic device and illumination intensity data of the photovoltaic device;
[0026] The photovoltaic device illumination state data also includes location data of the photovoltaic device and orientation data of the photovoltaic panel of the photovoltaic device.
[0027] Furthermore, in the above photovoltaic device control method, the light intensity of the photovoltaic device is determined according to the light state data of the photovoltaic device, and if it is determined that the photovoltaic device has no light intensity, a photovoltaic device control instruction is generated according to the light state data of the photovoltaic device, including:
[0028] The light intensity of the photovoltaic device is determined based on the light status data of the photovoltaic device. If the light coverage area data of the photovoltaic device is less than 70% of the photovoltaic panel, it is determined to be weak light intensity. If the light coverage area data of the photovoltaic device is less than 30% of the photovoltaic panel, it is determined to be no light intensity.
[0029] If the light intensity data of the photovoltaic device is less than 80% of the set light intensity threshold, it is judged as weak light intensity. If the light intensity data of the photovoltaic device is less than 50% of the set light intensity threshold, it is judged as no light intensity.
[0030] If it is determined that the photovoltaic device has no light intensity, a photovoltaic device control instruction is obtained by analyzing the light status data of the photovoltaic device, which also includes the position data of the photovoltaic device and the photovoltaic panel orientation data of the photovoltaic device.
[0031] Furthermore, in the photovoltaic device control method, the photovoltaic device is controlled to move and turn using the photovoltaic device control instruction, and real-time illumination image data around the photovoltaic device is acquired based on an image acquisition device to obtain a real-time illumination image data set of the photovoltaic device, including:
[0032] Acquire a photovoltaic device control instruction, and generate a photovoltaic device movement electrical signal and a photovoltaic device steering electrical signal based on the photovoltaic device control instruction;
[0033] Controlling the movement and steering of the photovoltaic device according to the photovoltaic device movement electrical signal and the photovoltaic device steering electrical signal;
[0034] Acquiring real-time illumination image data of the surrounding area of the photovoltaic device after movement and steering control based on an image acquisition device;
[0035] The real-time illumination image data is processed to obtain a real-time illumination image data set of a photovoltaic device.
[0036] Furthermore, in the photovoltaic device control method, the real-time illumination image data set of the photovoltaic device is input into the target ResNet image recognition neural network model for recognition to obtain the real-time illumination status data of the photovoltaic device, and the real-time movement and steering control of the photovoltaic device is performed according to the real-time illumination status data of the photovoltaic device, including:
[0037] Acquire a real-time illumination image dataset of a photovoltaic device, and input the real-time illumination image dataset of the photovoltaic device into the target ResNet image recognition neural network model for recognition;
[0038] Obtaining real-time illumination status data of the photovoltaic device, and judging the illumination intensity of the photovoltaic device according to the real-time illumination status data of the photovoltaic device;
[0039] If it is determined that the light intensity of the photovoltaic device does not reach the set adjustment threshold, the photovoltaic device continues to be moved and turned, and the adjustment threshold is that the light intensity of the photovoltaic device is 90%, and the light coverage area data of the photovoltaic device is greater than 80% of the photovoltaic panel;
[0040] When the light intensity of the photovoltaic device reaches the set adjustment threshold, the movement and steering adjustment of the photovoltaic device is stopped.
[0041] To achieve the above object, the technical solution of the present invention is that, further, in the above-mentioned photovoltaic equipment control system based on artificial intelligence, the photovoltaic equipment control system includes:
[0042] A data acquisition module is used to acquire illumination image data around the photovoltaic device through an image acquisition device to obtain historical illumination image data of the photovoltaic device, and to perform data preprocessing on the historical illumination image data of the photovoltaic device to obtain a historical illumination image data set of the photovoltaic device;
[0043] A model building module is used to build a ResNet image recognition neural network model based on the ResNet neural network, and introduce an SE attention mechanism module after the convolution layer of the ResNet image recognition neural network model to obtain a target ResNet image recognition neural network model;
[0044] A state recognition module, used to input the photovoltaic device historical illumination image data set into the target ResNet image recognition neural network model for recognition, and obtain the photovoltaic device illumination state data;
[0045] An instruction generation module is used to determine the light intensity of the photovoltaic device according to the light state data of the photovoltaic device, and if it is determined that the photovoltaic device has no light intensity, generate a photovoltaic device control instruction according to the light state data of the photovoltaic device;
[0046] A device control module, used to use the photovoltaic device control instruction to control the movement and steering of the photovoltaic device, and to obtain real-time illumination image data around the photovoltaic device based on an image acquisition device to obtain a real-time illumination image data set of the photovoltaic device;
[0047] The control adjustment module is used to input the real-time illumination image data set of the photovoltaic device into the target ResNet image recognition neural network model for recognition, obtain the real-time illumination status data of the photovoltaic device, and perform real-time movement and steering control of the photovoltaic device according to the real-time illumination status data of the photovoltaic device.
[0048] Furthermore, in the above-mentioned photovoltaic equipment control system based on artificial intelligence, the data acquisition module includes the following submodules:
[0049] An acquisition submodule is used to acquire illumination image data around the photovoltaic device through an image acquisition device to obtain historical illumination image data of the photovoltaic device;
[0050] A denoising submodule, used for performing image denoising processing on the historical illumination image data of the photovoltaic device to obtain denoised illumination image data of the photovoltaic device;
[0051] An enhancement submodule, used for performing data enhancement processing on the photovoltaic device noise reduction illumination image data to obtain photovoltaic device enhanced illumination image data, wherein the data enhancement processing at least includes image rotation, image scaling, image cropping, color adjustment, random splitting and center cropping;
[0052] A normalization submodule, used for normalizing the photovoltaic device enhanced illumination image data to obtain photovoltaic device normalized illumination image data;
[0053] An expansion submodule, used to expand the data set of the normalized illumination image data of the photovoltaic device by using random horizontal flipping, random contrast adjustment, random brightness adjustment, random micro-angle rotation and random cropping and scaling methods to obtain expanded photovoltaic device illumination image data;
[0054] The clustering submodule is used to cluster the photovoltaic device illumination image data using the FCM fuzzy clustering algorithm to obtain a photovoltaic device historical illumination image data set.
[0055] Furthermore, in the above-mentioned photovoltaic equipment control system based on artificial intelligence, the model building module includes the following submodules:
[0056] Establish a submodule for establishing a ResNet image recognition neural network model based on the ResNet neural network, and use a Swish activation function to replace the ReLU activation function in the ResNet image recognition neural network model;
[0057] Setting a submodule, used to set a mean square error loss function and a cross entropy loss function as loss functions of the ResNet image recognition neural network model;
[0058] Changing the submodule to expand the range of the convolution layer in the ResNet image recognition neural network model and adding a batch normalization layer after the convolution layer;
[0059] An introduction submodule is used to introduce an SE attention mechanism module after the convolution layer of the ResNet image recognition neural network model, and connect the convolution layer and the batch normalization layer using the SE attention mechanism module;
[0060] A submodule is obtained, which is used to adjust the hyperparameters of the ResNet image recognition neural network model using a Bayesian optimization algorithm to obtain a target ResNet image recognition neural network model.
[0061] Its beneficial effect lies in that the illumination image data around the photovoltaic device is obtained through the image acquisition device to obtain the historical illumination image data of the photovoltaic device, the historical illumination image data of the photovoltaic device is preprocessed to obtain the historical illumination image data set of the photovoltaic device; a ResNet image recognition neural network model is established based on the ResNet neural network, and the SE attention mechanism module is introduced after the convolution layer of the ResNet image recognition neural network model to obtain the target ResNet image recognition neural network model; the historical illumination image data set of the photovoltaic device is input into the target ResNet image recognition neural network model for recognition to obtain the illumination state of the photovoltaic device data; judging the illumination intensity of the photovoltaic device according to the illumination status data of the photovoltaic device, if it is judged that the photovoltaic device has no illumination intensity, generating a photovoltaic device control instruction through the illumination status data of the photovoltaic device; using the photovoltaic device control instruction to control the movement and steering of the photovoltaic device, and acquiring the real-time illumination image data around the photovoltaic device based on the image acquisition device, obtaining the real-time illumination image data set of the photovoltaic device; inputting the real-time illumination image data set of the photovoltaic device into the target ResNet image recognition neural network model for recognition, obtaining the real-time illumination status data of the photovoltaic device, and performing real-time movement and steering control on the photovoltaic device according to the real-time illumination status data of the photovoltaic device. The accuracy and efficiency of controlling the photovoltaic device under special environments can be improved, the illumination intensity of the photovoltaic device can be sensed in time, and the movement and steering of the photovoltaic device can be controlled, so that the photovoltaic device always faces the place with the highest illumination intensity, which is conducive to improving the power generation efficiency of the photovoltaic device under special environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.
[0063] Figure 1 It is a schematic diagram of a first embodiment of a photovoltaic device control method based on artificial intelligence in an embodiment of the present invention;
[0064] Figure 2 Schematic diagram of a second embodiment of a photovoltaic device control method based on artificial intelligence in an embodiment of the present invention;
[0065] Figure 3 Schematic diagram of a third embodiment of a photovoltaic device control method based on artificial intelligence in an embodiment of the present invention;
[0066] Figure 4 This is a schematic diagram of a first embodiment of a photovoltaic equipment control system based on artificial intelligence in an embodiment of the present invention. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0068] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "said" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0069] The present invention will be described in detail below in conjunction with the accompanying drawings. Figure 1 As shown, a photovoltaic device control method based on artificial intelligence, the photovoltaic device control method comprises the following steps:
[0070] Step 101: Acquire illumination image data around a photovoltaic device through an image acquisition device to obtain historical illumination image data of the photovoltaic device, perform data preprocessing on the historical illumination image data of the photovoltaic device to obtain a historical illumination image data set of the photovoltaic device;
[0071] Specifically, in this embodiment, the illumination image data around the photovoltaic device is acquired through the image acquisition device to obtain the historical illumination image data of the photovoltaic device; the historical illumination image data of the photovoltaic device is subjected to image denoising to obtain the denoised illumination image data of the photovoltaic device; the denoised illumination image data of the photovoltaic device is subjected to data enhancement to obtain the enhanced illumination image data of the photovoltaic device, and the data enhancement processing at least includes image rotation, image scaling, image cropping, color adjustment, random splitting and center cropping; the enhanced illumination image data of the photovoltaic device is subjected to normalization to obtain the normalized illumination image data of the photovoltaic device; the normalized illumination image data of the photovoltaic device is clustered using the FCM fuzzy clustering algorithm to obtain the historical illumination image data set of the photovoltaic device.
[0072] Specifically, the photovoltaic device in this embodiment is a photovoltaic device with a steering device and a moving device.
[0073] Step 102: Establish a ResNet image recognition neural network model based on the ResNet neural network, introduce an SE attention mechanism module after the convolution layer of the ResNet image recognition neural network model, and obtain a target ResNet image recognition neural network model;
[0074] Specifically, in this embodiment, a ResNet image recognition neural network model is established based on the ResNet neural network, and the Swish activation function is used to replace the ReLU activation function in the ResNet image recognition neural network model; the mean square error loss function and the cross entropy loss function are set as the loss function of the ResNet image recognition neural network model; the size of the convolution layer in the ResNet image recognition neural network model is changed, and a batch normalization layer is added; the SE attention mechanism module is introduced after the convolution layer of the ResNet image recognition neural network model to obtain the target ResNet image recognition neural network model.
[0075] Step 103: input the photovoltaic equipment historical illumination image data set into the target ResNet image recognition neural network model for recognition to obtain the photovoltaic equipment illumination state data;
[0076] Specifically, in this embodiment, the target ResNet image recognition neural network model is a trained image recognition neural network model; the photovoltaic device lighting status data is the lighting coverage area data of the photovoltaic device and the lighting intensity data of the photovoltaic device; the photovoltaic device lighting status data also includes the location data of the photovoltaic device and the photovoltaic panel orientation data of the photovoltaic device.
[0077] Step 104: judging the illumination intensity of the photovoltaic device according to the illumination status data of the photovoltaic device; if it is judged that the photovoltaic device has no illumination intensity, generating a photovoltaic device control instruction according to the illumination status data of the photovoltaic device;
[0078] Specifically, in this embodiment, the illumination intensity of the photovoltaic device is judged according to the illumination status data of the photovoltaic device. If the illumination coverage area data of the photovoltaic device is less than 70% of the photovoltaic panel, it is judged to be weak illumination intensity; if the illumination coverage area data of the photovoltaic device is less than 30% of the photovoltaic panel, it is judged to be no illumination intensity; if the illumination intensity data of the photovoltaic device is less than 80% of the set illumination intensity threshold, it is judged to be weak illumination intensity; if the illumination intensity data of the photovoltaic device is less than 50% of the set illumination intensity threshold, it is judged to be no illumination intensity; if it is judged that the photovoltaic device has no illumination intensity, then the control instruction of the photovoltaic device is obtained by performing data analysis on the illumination status data of the photovoltaic device, which also includes the position data of the photovoltaic device and the photovoltaic panel orientation data of the photovoltaic device.
[0079] Step 105: Use the photovoltaic device control instruction to control the movement and steering of the photovoltaic device, and obtain real-time illumination image data around the photovoltaic device based on the image acquisition device to obtain a real-time illumination image data set of the photovoltaic device;
[0080] Specifically, in this embodiment, a photovoltaic device control instruction is obtained, and a photovoltaic device movement electrical signal and a photovoltaic device steering electrical signal are generated based on the photovoltaic device control instruction; the movement and steering of the photovoltaic device are controlled according to the photovoltaic device movement electrical signal and the photovoltaic device steering electrical signal; real-time illumination image data of the surrounding area after the movement and steering of the photovoltaic device is obtained based on an image acquisition device; and the real-time illumination image data is processed to obtain a real-time illumination image data set of the photovoltaic device.
[0081] Step 106: Input the real-time illumination image data set of the photovoltaic device into the target ResNet image recognition neural network model for recognition, obtain the real-time illumination status data of the photovoltaic device, and perform real-time movement and steering control of the photovoltaic device according to the real-time illumination status data of the photovoltaic device.
[0082] Specifically, in this embodiment, a real-time illumination image data set of a photovoltaic device is obtained, and the real-time illumination image data set of the photovoltaic device is input into a target ResNet image recognition neural network model for recognition; the real-time illumination status data of the photovoltaic device is obtained, and the illumination intensity of the photovoltaic device is judged according to the real-time illumination status data of the photovoltaic device; if it is judged that the illumination intensity of the photovoltaic device does not reach the set adjustment threshold, the movement and steering of the photovoltaic device continues to be adjusted, and the adjustment threshold is that the illumination intensity of the photovoltaic device is 90%, and the illumination coverage area data of the photovoltaic device is greater than 80% of the photovoltaic panel; until the illumination intensity of the photovoltaic device reaches the set adjustment threshold, the movement and steering of the photovoltaic device is stopped.
[0083] The beneficial effect lies in that the illumination image data around the photovoltaic device is obtained by an image acquisition device to obtain the historical illumination image data of the photovoltaic device, and the historical illumination image data of the photovoltaic device is preprocessed to obtain the historical illumination image data set of the photovoltaic device; a ResNet image recognition neural network model is established based on the ResNet neural network, and an SE attention mechanism module is introduced after the convolution layer of the ResNet image recognition neural network model to obtain a target ResNet image recognition neural network model; the historical illumination image data set of the photovoltaic device is input into the target ResNet image recognition neural network model for recognition to obtain the illumination state data of the photovoltaic device; the illumination intensity of the photovoltaic device is judged according to the illumination state data of the photovoltaic device, and if it is judged that the photovoltaic device has no illumination intensity, a photovoltaic device control instruction is generated according to the illumination state data of the photovoltaic device; the photovoltaic device is moved and turned by using the photovoltaic device control instruction, and the real-time illumination image data around the photovoltaic device is obtained based on the image acquisition device to obtain the real-time illumination image data set of the photovoltaic device; the real-time illumination image data set of the photovoltaic device is input into the target ResNet image recognition neural network model for recognition to obtain the real-time illumination state data of the photovoltaic device, and the real-time movement and steering control of the photovoltaic device is performed according to the real-time illumination state data of the photovoltaic device. It can improve the accuracy and efficiency of controlling photovoltaic equipment in special environments, can timely sense the light intensity of photovoltaic equipment, and control the movement and steering of photovoltaic equipment so that the photovoltaic equipment always faces the place with the highest light intensity, which is beneficial to improving the power generation efficiency of photovoltaic equipment in special environments.
[0084] In this embodiment, please refer to Figure 2 In a second embodiment of a photovoltaic device control method based on artificial intelligence in an embodiment of the present invention, the illumination image data around the photovoltaic device is acquired by an image acquisition device to obtain historical illumination image data of the photovoltaic device, and data preprocessing is performed on the historical illumination image data of the photovoltaic device to obtain the historical illumination image data set of the photovoltaic device, including the following steps:
[0085] Step 201: Acquire illumination image data around the photovoltaic device through an image acquisition device to obtain historical illumination image data of the photovoltaic device;
[0086] Step 202, performing image noise reduction processing on the historical illumination image data of the photovoltaic device to obtain noise-reduced illumination image data of the photovoltaic device;
[0087] Step 203, performing data enhancement processing on the photovoltaic device noise reduction illumination image data to obtain photovoltaic device enhanced illumination image data, wherein the data enhancement processing at least includes image rotation, image scaling, image cropping, color adjustment, random splitting and center cropping;
[0088] Step 204, normalizing the photovoltaic device enhanced illumination image data to obtain photovoltaic device normalized illumination image data;
[0089] Step 205, using random horizontal flipping, random contrast adjustment, random brightness adjustment, random micro-angle rotation and random cropping and scaling methods to expand the data set of normalized illumination image data of the photovoltaic device to obtain expanded illumination image data of the photovoltaic device;
[0090] Step 206: cluster the photovoltaic equipment illumination image data using the FCM fuzzy clustering algorithm to obtain a photovoltaic equipment historical illumination image data set.
[0091] In this embodiment, please refer to Figure 3 In a third embodiment of a photovoltaic device control method based on artificial intelligence in an embodiment of the present invention, a ResNet image recognition neural network model is established based on a ResNet neural network, and an SE attention mechanism module is introduced after the convolution layer of the ResNet image recognition neural network model to obtain a target ResNet image recognition neural network model, including the following steps:
[0092] Step 301: Establish a ResNet image recognition neural network model based on the ResNet neural network, and use the Swish activation function to replace the ReLU activation function in the ResNet image recognition neural network model;
[0093] Step 302: setting the mean square error loss function and the cross entropy loss function as the loss function of the ResNet image recognition neural network model;
[0094] Step 303: Expand the range of the convolution layer in the ResNet image recognition neural network model, and add a batch normalization layer after the convolution layer;
[0095] Step 304: introduce an SE attention mechanism module after the convolution layer of the ResNet image recognition neural network model, and use the SE attention mechanism module to connect the convolution layer and the batch normalization layer;
[0096] Step 305: Use the Bayesian optimization algorithm to adjust the hyperparameters of the ResNet image recognition neural network model to obtain the target ResNet image recognition neural network model.
[0097] Specifically, the Bayesian optimization in this embodiment mainly includes a probabilistic proxy model and an acquisition function. The probabilistic proxy function fits the objective function by first sampling a few points, and based on this, collects more points near the possible minimum point or collects more points in the range without sampling. The sampling process can be represented by constructing an acquisition function, and more points are used to update the proxy function, so that its fitting effect is better and it is easier to find the optimal solution of the objective function.
[0098] The process of Bayesian optimization is: 1. Determine the maximum number of iterations; 2. Maximize the acquisition function, determine the next evaluation point, and use the evaluation point to evaluate the objective function value; 3. Integrate data and update the probabilistic proxy model; 4. Repeat steps 2-4 until the maximum number of iterations is reached.
[0099] The above describes a photovoltaic device control method based on artificial intelligence provided by an embodiment of the present invention. The following describes a photovoltaic device control system based on artificial intelligence according to an embodiment of the present invention. Figure 4 In one embodiment of the photovoltaic device control system of the present invention, an embodiment includes:
[0100] A data acquisition module is used to acquire the illumination image data around the photovoltaic device through an image acquisition device, obtain the historical illumination image data of the photovoltaic device, perform data preprocessing on the historical illumination image data of the photovoltaic device, and obtain the historical illumination image data set of the photovoltaic device;
[0101] A model building module is used to build a ResNet image recognition neural network model based on the ResNet neural network, and introduce the SE attention mechanism module after the convolution layer of the ResNet image recognition neural network model to obtain the target ResNet image recognition neural network model;
[0102] The state recognition module is used to input the historical illumination image data set of the photovoltaic equipment into the target ResNet image recognition neural network model for recognition, and obtain the illumination state data of the photovoltaic equipment;
[0103] An instruction generation module is used to determine the light intensity of the photovoltaic device according to the light status data of the photovoltaic device, and if it is determined that the photovoltaic device has no light intensity, a photovoltaic device control instruction is generated according to the light status data of the photovoltaic device;
[0104] The device control module is used to control the movement and steering of the photovoltaic device using the photovoltaic device control instruction, and to obtain the real-time illumination image data around the photovoltaic device based on the image acquisition device to obtain the real-time illumination image data set of the photovoltaic device;
[0105] The control adjustment module is used to input the real-time illumination image data set of the photovoltaic equipment into the target ResNet image recognition neural network model for recognition, obtain the real-time illumination status data of the photovoltaic equipment, and perform real-time movement and steering control of the photovoltaic equipment according to the real-time illumination status data of the photovoltaic equipment.
[0106] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A photovoltaic equipment control system based on artificial intelligence, characterized in that: The photovoltaic equipment control system includes the following modules: A data acquisition module is used to acquire illumination image data around the photovoltaic device through an image acquisition device to obtain historical illumination image data of the photovoltaic device, and to perform data preprocessing on the historical illumination image data of the photovoltaic device to obtain a historical illumination image data set of the photovoltaic device; A model building module is used to build a ResNet image recognition neural network model based on the ResNet neural network, and introduce an SE attention mechanism module after the convolution layer of the ResNet image recognition neural network model to obtain a target ResNet image recognition neural network model; A state recognition module is used to input the photovoltaic device historical illumination image data set into the target ResNet image recognition neural network model for recognition, so as to obtain the photovoltaic device illumination state data, wherein the target ResNet image recognition neural network model is a trained image recognition neural network model; the photovoltaic device illumination state data is the illumination coverage area data of the photovoltaic device and the illumination intensity data of the photovoltaic device; the photovoltaic device illumination state data also includes the photovoltaic device location data and the photovoltaic panel orientation data of the photovoltaic device; An instruction generation module is used to judge the illumination intensity of the photovoltaic device according to the illumination status data of the photovoltaic device. If it is judged that the photovoltaic device has no illumination intensity, a photovoltaic device control instruction is generated through the illumination status data of the photovoltaic device, wherein the illumination intensity of the photovoltaic device is judged according to the illumination status data of the photovoltaic device. If the illumination coverage area data of the photovoltaic device is less than 70% of the photovoltaic panel, it is judged to be weak illumination intensity. If the illumination coverage area data of the photovoltaic device is less than 30% of the photovoltaic panel, it is judged to be no illumination intensity; if the illumination intensity data of the photovoltaic device is less than 80% of the set illumination intensity threshold, it is judged to be weak illumination intensity. If the illumination intensity data of the photovoltaic device is less than 50% of the set illumination intensity threshold, it is judged to be no illumination intensity; if it is judged that the photovoltaic device has no illumination intensity, a photovoltaic device control instruction is obtained by performing data analysis on the illumination status data of the photovoltaic device, which also includes the position data of the photovoltaic device and the photovoltaic panel orientation data of the photovoltaic device; A device control module is used to use the photovoltaic device control instruction to control the movement and steering of the photovoltaic device, and obtain real-time illumination image data around the photovoltaic device based on an image acquisition device to obtain a real-time illumination image data set of the photovoltaic device, wherein the photovoltaic device control instruction is obtained, and a photovoltaic device movement electrical signal and a photovoltaic device steering electrical signal are generated based on the photovoltaic device control instruction; the photovoltaic device is controlled to move and steer according to the photovoltaic device movement electrical signal and the photovoltaic device steering electrical signal; the real-time illumination image data around the photovoltaic device after the movement and steering control is obtained based on the image acquisition device; the real-time illumination image data is processed to obtain a real-time illumination image data set of the photovoltaic device; A control adjustment module, used for inputting the real-time illumination image data set of the photovoltaic device into the target ResNet image recognition neural network model for identification, obtaining the real-time illumination status data of the photovoltaic device, and performing real-time movement and steering control on the photovoltaic device according to the real-time illumination status data of the photovoltaic device, wherein the real-time illumination image data set of the photovoltaic device is obtained, and the real-time illumination image data set of the photovoltaic device is input into the target ResNet image recognition neural network model for identification; the real-time illumination status data of the photovoltaic device is obtained, and the illumination intensity of the photovoltaic device is judged according to the real-time illumination status data of the photovoltaic device; if it is judged that the illumination intensity of the photovoltaic device does not reach the set adjustment threshold, then the movement and steering of the photovoltaic device is continued to be adjusted, and the adjustment threshold is that the illumination intensity of the photovoltaic device is 90%, and the illumination coverage area data of the photovoltaic device is greater than 80% of the photovoltaic panel; until the illumination intensity of the photovoltaic device reaches the set adjustment threshold, the movement and steering adjustment of the photovoltaic device is stopped; The data acquisition module includes the following submodules: An acquisition submodule is used to acquire illumination image data around the photovoltaic device through an image acquisition device to obtain historical illumination image data of the photovoltaic device; A denoising submodule, used for performing image denoising processing on the historical illumination image data of the photovoltaic device to obtain denoised illumination image data of the photovoltaic device; An enhancement submodule, used for performing data enhancement processing on the photovoltaic device noise reduction illumination image data to obtain photovoltaic device enhanced illumination image data, wherein the data enhancement processing at least includes image rotation, image scaling, image cropping, color adjustment, random splitting and center cropping; A normalization submodule, used for normalizing the photovoltaic device enhanced illumination image data to obtain photovoltaic device normalized illumination image data; An expansion submodule, used to expand the data set of the normalized illumination image data of the photovoltaic device by using random horizontal flipping, random contrast adjustment, random brightness adjustment, random micro-angle rotation and random cropping and scaling methods to obtain expanded photovoltaic device illumination image data; A clustering submodule, used to cluster the photovoltaic device illumination image data using an FCM fuzzy clustering algorithm to obtain a photovoltaic device historical illumination image data set; The model building module includes the following submodules: Establish a submodule for establishing a ResNet image recognition neural network model based on the ResNet neural network, and use a Swish activation function to replace the ReLU activation function in the ResNet image recognition neural network model; Setting a submodule, used to set a mean square error loss function and a cross entropy loss function as loss functions of the ResNet image recognition neural network model; Changing the submodule to expand the range of the convolution layer in the ResNet image recognition neural network model and adding a batch normalization layer after the convolution layer; An introduction submodule is used to introduce an SE attention mechanism module after the convolution layer of the ResNet image recognition neural network model, and connect the convolution layer and the batch normalization layer using the SE attention mechanism module; A submodule is obtained, which is used to adjust the hyperparameters of the ResNet image recognition neural network model using a Bayesian optimization algorithm to obtain a target ResNet image recognition neural network model.
