Control method of track type photovoltaic cleaning machine based on visual recognition

By combining a multispectral vision system and a deep learning model with RTK-GPS to implement an adaptive cleaning strategy, the problem of high cost and low efficiency in photovoltaic cleaning is solved, achieving high-precision pollution detection and efficient cleaning.

CN121680458BActive Publication Date: 2026-11-27SHENZHEN XINXUYUAN SMART ENERGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202610102014.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-01-26
Publication Date
2026-11-27
Estimated Expiration
2046-01-26

AI Technical Summary

Technical Problem

Existing photovoltaic cleaning technologies suffer from high cleaning costs, low efficiency, and a lack of specificity, resulting in insufficient accuracy in detecting photovoltaic panel contamination and an inability to effectively distinguish the type and degree of contamination, thus leading to low cleaning efficiency.

Method used

A multispectral vision system is used in conjunction with STN spatial transformation network and attention mechanism. A deep learning model is established through multi-scale U-Net network to generate dirt type segmentation map and pollution index distribution map. Visual SLAM and RTK-GPS are combined to carry out adaptive cleaning strategy and path planning.

Benefits of technology

Significantly improves dirt recognition accuracy, reduces energy consumption, increases cleaning efficiency, ensures cleaning coverage, extends the lifespan of photovoltaic panels, reduces ineffective travel, and optimizes system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121680458B_ABST
    Figure CN121680458B_ABST
Patent Text Reader

Abstract

The application discloses a control method of a crawler type photovoltaic cleaning machine based on visual identification, and the method comprises the following steps: synchronously collecting visual image data through a multispectral vision system; adopting an STN space transformation network and an attention mechanism to perform space-time alignment and feature fusion on the visual image data, and generating photovoltaic panel state image data; establishing a deep learning model based on an improved multi-scale U-Net network, inputting the photovoltaic panel state image data into the deep learning model, and outputting a dirt type segmentation graph and a pollution index distribution graph; generating an adaptive cleaning strategy according to the dirt type segmentation graph and the pollution index distribution graph, positioning and path planning of a cleaning machine based on the adaptive cleaning strategy through visual SLAM combined with RTK-GPS, and generating a target cleaning path. The method can reduce energy consumption and improve cleaning efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of photovoltaic power generation technology, and in particular to a control method for a tracked photovoltaic sweeper based on visual recognition. Background Technology

[0002] With the large-scale development of the photovoltaic industry, dust, bird droppings, and other pollutants on the surface of photovoltaic panels are causing a decline in power generation efficiency, making cleaning increasingly urgent. Traditional cleaning methods are costly and inefficient, making them unsuitable for large-scale photovoltaic power plants. Mechanical cleaning often uses fixed-path patterns, lacking specificity and easily leading to over-cleaning or missed areas. Existing detection technologies mostly rely on single-modal vision or simple sensors, which can only identify visible pollution and cannot quantify the degree of pollution or distinguish its type, resulting in insufficient pollution detection accuracy and low cleaning efficiency for photovoltaic systems. Summary of the Invention

[0003] The purpose of this invention is to solve the above problems by designing a control method for a tracked photovoltaic sweeper based on visual recognition.

[0004] To achieve the above objectives, the technical solution of the present invention further includes the following steps in the above-mentioned control method for a tracked photovoltaic sweeper based on visual recognition:

[0005] The RGB image, infrared thermal imaging data and near-infrared reflectance data of the photovoltaic panel surface are acquired simultaneously through a multispectral vision system. The acquired data are preprocessed to obtain visual image data.

[0006] The visual image data is spatiotemporally aligned and feature-fused using an STN spatial transformation network and an attention mechanism to generate photovoltaic panel status image data.

[0007] A deep learning model is established based on an improved multi-scale U-Net network. The photovoltaic panel status image data is input into the deep learning model, and the output is a dirt type segmentation map and a pollution index distribution map.

[0008] An adaptive cleaning strategy is generated based on the dirt type segmentation map and the pollution index distribution map. Based on the adaptive cleaning strategy, the cleaning machine is located and the path is planned by combining visual SLAM with RTK-GPS to generate the target cleaning path.

[0009] Furthermore, in the aforementioned control method for a tracked photovoltaic sweeper based on visual recognition, the step of simultaneously acquiring RGB images, infrared thermal imaging data, and near-infrared reflectance data of the photovoltaic panel surface through a multispectral vision system, and preprocessing the acquired data to obtain visual image data, includes:

[0010] The RGB image, infrared thermal imaging data and near-infrared reflectance data of the photovoltaic panel surface are acquired simultaneously using a multispectral vision system.

[0011] Gaussian filtering is used to process RGB images to eliminate noise caused by ambient light fluctuations. Median filtering is used to remove salt-and-pepper noise from infrared thermal imaging data. Moving average filtering is used to smooth random errors in near-infrared reflectance data.

[0012] A correction model was established based on the four corner points of the photovoltaic panel. A perspective transformation algorithm was used to perform geometric correction on the viewing angle deviation of the RGB and infrared images. The pixel values ​​of the RGB images were normalized to the [0,1] interval. The infrared temperature data was converted into a standardized temperature index, and three decimal places of the near-infrared reflectance data were retained and outliers were removed.

[0013] The processed RGB image, infrared temperature index map, and near-infrared three-band reflectance map are integrated according to the channel dimension to generate visual image data.

[0014] Furthermore, in the aforementioned control method for a tracked photovoltaic sweeper based on visual recognition, the step of using an STN spatial transformation network and an attention mechanism to perform spatiotemporal alignment and feature fusion on the visual image data to generate photovoltaic panel status image data includes:

[0015] The STN spatial transformation network consists of three parts: a localization network, a mesh generator, and a sampler. The localization network takes 7-channel visual image data as input, extracts spatial transformation parameters through 3 convolutional layers and 2 fully connected layers, and outputs a transformation matrix.

[0016] The grid generator generates a sampling grid in the target output space based on the transformation matrix, calculates the corresponding coordinates of each target pixel in the original image, and uses bilinear interpolation to process non-integer coordinates.

[0017] For the time difference of consecutive frame data, the inter-frame interpolation method is used for time alignment. When the interval between two frames exceeds 0.04s, the intermediate frame data is inserted to obtain the aligned channel data.

[0018] Furthermore, in the aforementioned control method for a tracked photovoltaic sweeper based on visual recognition, the step of using an STN spatial transformation network and an attention mechanism to perform spatiotemporal alignment and feature fusion on the visual image data to generate photovoltaic panel status image data includes:

[0019] The channel attention module performs global average pooling on the channel data aligned by STN to obtain feature vectors. It then calculates the weights of each channel through two fully connected layers and a sigmoid function. The weights for the RGB channel range from 0.2 to 0.3, the infrared channel from 0.3 to 0.4, and the near-infrared channel from 0.3 to 0.4.

[0020] The spatial attention module converts the channel-weighted feature map into a grayscale image, and generates a spatial attention map through a 3×3 convolutional layer and a sigmoid function, assigning high weights to the edges of the photovoltaic panel and areas where pollutants accumulate, and low weights to the background area.

[0021] The channel weights are multiplied by the spatial weights to obtain the comprehensive weight for each pixel. The weight matrix is ​​then multiplied element-wise with the original feature map to generate photovoltaic panel status image data.

[0022] Furthermore, in the aforementioned control method for a tracked photovoltaic sweeper based on visual recognition, the step of establishing a deep learning model based on an improved multi-scale U-Net network, inputting the photovoltaic panel status image data into the deep learning model, and outputting a dirt type segmentation map and a pollution index distribution map, includes:

[0023] Based on the multi-scale U-Net network, the encoder adopts a 4-level downsampling structure, with each level containing a multi-scale convolutional module, a ReLU activation function, and a max pooling layer.

[0024] Attention gating is added to the skip connections between the encoder and decoder, and an attention weight map is generated by calculating the correlation between the features of the decoder and the features of the encoder.

[0025] The decoding end adopts a 4-level upsampling structure. Each level doubles the feature map size and halves the number of channels through transposed convolution. It is then concatenated with the attention-weighted feature map of the corresponding level in the encoding end. The features are then refined through a 3×3 convolutional layer. The output end is set with dual output branches, corresponding to dirt type segmentation and pollution index prediction, respectively, to establish a deep learning model.

[0026] Furthermore, in the aforementioned control method for a tracked photovoltaic sweeper based on visual recognition, the step of establishing a deep learning model based on an improved multi-scale U-Net network, inputting the photovoltaic panel status image data into the deep learning model, and outputting a dirt type segmentation map and a pollution index distribution map, includes:

[0027] Morphological operations were used to remove small noise regions from the photovoltaic panel status image data. Each pollutant region was marked by connected component analysis, and category information was labeled to generate a dirt type segmentation map. Combined with the raw near-infrared reflectance data, the initially predicted pollution index was calibrated to generate a pollution index distribution map.

[0028] Furthermore, in the above-mentioned control method for a tracked photovoltaic sweeper based on visual recognition, the step of generating an adaptive cleaning strategy based on the dirt type segmentation map and the pollution index distribution map, and generating a target cleaning path by performing sweeper positioning and path planning through visual SLAM combined with RTK-GPS based on the adaptive cleaning strategy, includes:

[0029] Starting from the current position of the sweeper, with the center of gravity of the uncleaned area as the intermediate node, and the charging area at the boundary of the array as the endpoint, a sweeping direction penalty factor is introduced. After the initial path is obtained, the target sweeping path is generated by smoothing it with a Bezier curve.

[0030] Furthermore, in the system for implementing the vision recognition-based control method for a tracked photovoltaic sweeper, the system includes the following modules:

[0031] The image data acquisition module is used to simultaneously acquire RGB images, infrared thermal imaging data and near-infrared reflectance data of the photovoltaic panel surface through a multispectral vision system, and preprocess the acquired data to obtain visual image data.

[0032] The feature alignment and fusion module is used to perform spatiotemporal alignment and feature fusion on the visual image data using STN spatial transformation network and attention mechanism to generate photovoltaic panel status image data.

[0033] The pollution index calculation module is used to build a deep learning model based on the improved multi-scale U-Net network. The photovoltaic panel status image data is input into the deep learning model, and the output is a dirt type segmentation map and a pollution index distribution map.

[0034] The cleaning path generation module is used to generate an adaptive cleaning strategy based on the dirt type segmentation map and the pollution index distribution map. Based on the adaptive cleaning strategy, the cleaning machine is located and the path is planned by combining visual SLAM with RTK-GPS to generate the target cleaning path.

[0035] Furthermore, in the system for implementing the vision recognition-based control method for a tracked photovoltaic sweeper, the system includes the following sub-modules:

[0036] The calibration submodule is used to remove small noise regions from the photovoltaic panel status image data using morphological operations, mark each pollutant region through connected component analysis, label category information, and generate a dirt type segmentation map; combined with the raw near-infrared reflectance data, it calibrates the initially predicted pollution index and generates a pollution index distribution map.

[0037] Furthermore, in the system for implementing the vision recognition-based control method for a tracked photovoltaic sweeper, the system includes the following sub-modules:

[0038] The generation submodule is used to generate the target cleaning path by starting from the current position of the sweeper, taking the center of gravity of the uncleaned area as the intermediate node, and ending at the array boundary charging area. It introduces a cleaning direction penalty factor, searches for the initial path, and then uses Bezier curve smoothing to generate the target cleaning path.

[0039] Its beneficial effects include: significantly improving the accuracy of dirt recognition under various lighting and weather conditions through multimodal visual fusion technology; adaptively adjusting cleaning strategies based on dirt type and degree to reduce energy consumption while increasing cleaning efficiency; real-time monitoring of photovoltaic panel health status to prevent secondary damage caused by cleaning and extend the lifespan of photovoltaic panels; centimeter-level positioning accuracy combined with intelligent path planning to ensure cleaning coverage of over 99% while reducing unnecessary travel; multi-machine collaborative mechanism to shorten cleaning time for large photovoltaic power plants; and continuous improvement in system performance over time through self-learning optimization, thereby increasing cleaning efficiency. Attached Figure Description

[0040] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention.

[0041] Figure 1 This is a schematic diagram of the first embodiment of the control method for a tracked photovoltaic sweeper based on visual recognition in this invention.

[0042] Figure 2 This is a schematic diagram of a second embodiment of the control method for a tracked photovoltaic sweeper based on visual recognition in this invention.

[0043] Figure 3 This is a schematic diagram of the third embodiment of the control method for a tracked photovoltaic sweeper based on visual recognition in this invention. Detailed Implementation

[0044] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0045] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms "one," "an," and "this" used herein may also include the plural forms. It should be further understood that the terminology used in this specification includes the presence of features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0046] The present invention will now be described in detail with reference to the accompanying drawings. Figure 1 As shown, a vision-based control method for a tracked photovoltaic sweeper includes the following steps:

[0047] Step 101: Simultaneously acquire RGB images, infrared thermal imaging data, and near-infrared reflectance data of the photovoltaic panel surface using a multispectral vision system. Preprocess the acquired data to obtain visual image data.

[0048] Specifically, in this embodiment, a multispectral vision system is used to simultaneously acquire RGB images, infrared thermal imaging data, and near-infrared reflectance data of the photovoltaic panel surface; Gaussian filtering is used to process the RGB images to eliminate noise caused by ambient light fluctuations, median filtering is used to remove salt-and-pepper noise in the infrared thermal imaging data, and moving average filtering is used to smooth the random errors in the near-infrared reflectance data; a correction model is established based on the four corner points of the photovoltaic panel, and a perspective transformation algorithm is used to geometrically correct the viewing angle deviation between the RGB and infrared images; the pixel values ​​of the RGB images are normalized to the [0,1] interval; the infrared temperature data is converted into a standardized temperature index, and three decimal places of the near-infrared reflectance data are retained while outliers are removed; the processed RGB images, infrared temperature index maps, and near-infrared three-band reflectance maps are integrated according to the channel dimension to generate visual image data.

[0049] For hardware deployment, the multispectral vision system is fixed on the front gantry of the sweeper, ensuring that the lens is vertically aligned with the surface of the photovoltaic panel and that the center of the lens coincides with the central axis of the photovoltaic panel. The installation height is adjusted according to the size of the photovoltaic panel. When the width of a single panel is 1.6m, the installation height is set to 2.0-2.2m. At the same time, anti-vibration brackets are provided to reduce the impact of operational vibration on data acquisition.

[0050] Equipment calibration: The system calibration is completed 20 minutes before operation, including RGB camera white balance calibration, using a standard white balance card with an error controlled within ±2%; infrared thermal imager temperature calibration, using a high-precision blackbody furnace, with a calibration range of -10℃ to 80℃ and an error ≤ ±0.5℃; and near-infrared sensor reflectivity calibration, using a standard reflector, calibrating the wavelength band of 700-1100nm, and recording the calibration parameters in the system database.

[0051] Parameter configuration: Set the acquisition parameters according to the working environment. The RGB image resolution is set to 1920×1080 pixels and the frame rate is 25fps; the infrared thermal imaging data resolution is 640×512 pixels and the temperature acquisition interval is 0.1s; the near-infrared reflectivity data sampling frequency is 10Hz, and the sampling band is divided into three sub-bands: 700-800nm, 800-900nm, and 900-1100nm. All devices achieve millisecond-level synchronization through a time synchronizer, with a synchronization error ≤5ms.

[0052] The sweeper travels at a constant speed of 0.3 m / s. A multispectral vision system synchronously collects data according to preset parameters. An RGB camera captures visible light images of the photovoltaic panel surface, recording the morphological characteristics of pollutants such as dust, bird droppings, and leaves. An infrared thermal imager collects surface temperature distribution data, identifying hidden pollution by utilizing the difference in thermal conduction between pollutants and the photovoltaic panel. A near-infrared sensor collects reflectance data in three sub-bands, quantifying the degree of pollution through changes in reflectance. During the data collection process, the system monitors the data transmission status in real time. When the data loss rate exceeds 3%, a re-acquisition mechanism is triggered, simultaneously recording the acquisition location information and correlating it with subsequent RTK-GPS data.

[0053] Noise removal was achieved by using Gaussian filtering with a kernel size of 5×5 and σ=0.8 to process RGB images and eliminate noise caused by ambient light fluctuations. Median filtering was used on infrared thermal imaging data with a window size of 3×3 to remove salt-and-pepper noise. Near-infrared reflectance data was filtered by moving average with a window length of 5 to smooth random errors.

[0054] Geometric correction is performed to address the viewing angle deviation between RGB and infrared images. A perspective transformation algorithm is used for geometric correction, and a correction model is established based on the four corner points of the photovoltaic panel to ensure pixel-level alignment of images of different modalities. The image deviation after correction is ≤1 pixel.

[0055] Data standardization involves normalizing RGB image pixel values ​​to the [0,1] range using the formula: Normalized value = Original value - Minimum value / Maximum value - Minimum value. Infrared temperature data is converted to a standardized temperature index using the formula: Temperature index = Measured temperature - Ambient temperature / Ambient temperature. Near-infrared reflectance data is retained to three decimal places, and outliers are removed, including data exceeding the mean ± 3 times the standard deviation.

[0056] Data integration involves combining the processed RGB images, infrared temperature index maps, and near-infrared three-band reflectance maps according to the channel dimension to generate 3+1+3=7 channels of visual image data, which is stored in TIFF format. Each data file is associated with metadata such as acquisition time and location.

[0057] Step 102: Use STN spatial transformation network and attention mechanism to perform spatiotemporal alignment and feature fusion on visual image data to generate photovoltaic panel status image data;

[0058] Specifically, in this embodiment, the STN spatial transformation network consists of three parts: a localization network, a mesh generator, and a sampler. The localization network takes 7-channel visual image data as input, extracts spatial transformation parameters through 3 convolutional layers and 2 fully connected layers, and outputs a transformation matrix. The mesh generator generates a sampling mesh in the target output space based on the transformation matrix, calculates the corresponding coordinates of each target pixel in the original image, and uses bilinear interpolation to process non-integer coordinates. For the time difference of consecutive frame data, inter-frame interpolation is used for time alignment. When the interval between two frames exceeds 0.04s, intermediate frame data is inserted to obtain aligned channel data.

[0059] The channel attention module performs global average pooling on the STN-aligned channel data to obtain feature vectors. It then calculates the weights for each channel using two fully connected layers and a sigmoid function, with the RGB channel weights ranging from 0.2 to 0.3, the infrared channel from 0.3 to 0.4, and the near-infrared channel from 0.3 to 0.4. The spatial attention module converts the channel-weighted feature map into a grayscale image and generates a spatial attention map using a 3×3 convolutional layer and a sigmoid function. High weights are assigned to the edges of the photovoltaic panel and areas where pollutants accumulate, while low weights are assigned to the background area. The channel weights are multiplied by the spatial weights to obtain the comprehensive weight for each pixel. The weight matrix is ​​then multiplied element-wise with the original feature map to generate the photovoltaic panel status image data.

[0060] Spatial alignment is achieved using a spatial transformation network (STN). The network structure consists of three parts: a localization network, a mesh generator, and a sampler.

[0061] The localization network takes 7-channel visual image data as input, and outputs spatial transformation parameters through 3 convolutional layers with kernel size of 3×3, stride of 1, and padding of 1, with output channels of 16, 32, and 64 respectively. It also has 2 fully connected layers with output dimensions of 128 and 6 respectively. The network extracts transformation parameters and outputs a transformation matrix with 6 degrees of freedom, including translation, rotation, scaling, and shearing parameters.

[0062] The grid generator generates a sampling grid in the target output space with the same size as the input image, based on the transformation matrix. It calculates the corresponding coordinates of each target pixel in the original image and uses bilinear interpolation to process non-integer coordinates.

[0063] Time synchronization correction uses inter-frame interpolation to align the time difference between consecutive frames. When the interval between two frames exceeds 0.04s, an intermediate frame is inserted to ensure continuity in the time dimension. After alignment, the data frame rate remains at 25fps.

[0064] A dual-channel attention mechanism is introduced, combining spatial attention and channel attention, to strengthen the weight of key features.

[0065] The channel attention module performs global average pooling on the 7-channel data aligned by STN to obtain a 7-dimensional feature vector. It then uses two fully connected layers with a hidden layer dimension of 32 to calculate the weights of each channel using the ReLU and Sigmoid activation functions. The weights for the RGB channels range from 0.2 to 0.3, the infrared channels from 0.3 to 0.4, and the near-infrared channels from 0.3 to 0.4, highlighting the contamination detection capabilities of the infrared and near-infrared channels.

[0066] The spatial attention module converts the channel-weighted feature map into a grayscale image, uses channel weights to sum the values, and generates a spatial attention map through a 3×3 convolutional layer and a sigmoid function. High weights (≥0.7) are assigned to the edges of the photovoltaic panel and areas where pollutants accumulate, while low weights (≤0.3) are assigned to the background area.

[0067] Weight fusion multiplies the channel weights and spatial weights to obtain the comprehensive weight for each pixel. The weight matrix is ​​then multiplied element-wise with the original feature map to complete the attention enhancement.

[0068] A hierarchical fusion strategy is adopted, which is divided into shallow feature fusion and deep feature fusion.

[0069] Shallow feature fusion extracts shallow features such as edges and textures from the attention-enhanced modal data, reduces the dimensionality to 16 channels through 1×1 convolution, and fuses them using element-wise addition to preserve detailed information.

[0070] Deep feature fusion involves inputting shallow fusion features into four residual blocks. Each residual block contains two 3×3 convolutional layers and a shortcut connection to extract semantic features. The outputs of each residual block are then fused using a concat concatenation method to obtain a 256-channel deep feature map.

[0071] Feature compression and standardization: Global max pooling is used to compress the dimensions of the deep fusion features, and the features are standardized through a BatchNormalization layer with a mean of 0 and a standard deviation of 1. Finally, photovoltaic panel state image data with a size of 1920×1080×32 is generated for subsequent model input.

[0072] Step 103: Establish a deep learning model based on the improved multi-scale U-Net network, input the photovoltaic panel status image data into the deep learning model, and output the dirt type segmentation map and the pollution index distribution map;

[0073] Specifically, this embodiment is based on a multi-scale U-Net network. The encoder adopts a 4-level downsampling structure, with each level containing a multi-scale convolutional module, a ReLU activation function, and a max-pooling layer. Attention gating is added to the skip connections between the encoder and decoder, and an attention weight map is generated by calculating the correlation between the features of the decoder and the encoder. The decoder adopts a 4-level upsampling structure, where the feature map size is doubled and the number of channels is halved through transposed convolution at each level. This is then concatenated with the attention-weighted feature map of the corresponding level in the encoder, and the features are refined through a 3×3 convolutional layer. The output end is set with dual output branches, corresponding to dirt type segmentation and pollution index prediction, respectively, to establish a deep learning model. Morphological operations are used to remove small noise regions from the photovoltaic panel status image data. Each pollutant region is labeled through connected component analysis, and category information is marked to generate a dirt type segmentation map. Combined with the original near-infrared reflectance data, the initially predicted pollution index is calibrated to generate a pollution index distribution map.

[0074] Based on the standard U-Net, a multi-scale input module, an attention gating module, and residual connections are added. The network is divided into an encoder, a decoder, and an output.

[0075] At the encoding end, downsampling is employed using a 4-level downsampling structure. Each level includes a multi-scale convolutional module with three parallel convolutional kernels of sizes 3×3, 5×5, and 7×7, each with 32 output channels. It also includes a Batch Normalization layer, a ReLU activation function, and a 2×2 max-pooling layer with a stride of 2. The first-level input is 32-channel photovoltaic panel state image data. The number of channels doubles after each downsampling level, resulting in a final encoding end output of 512 channels. An attention gating module adds attention gating to the skip connections between the encoding and decoding ends. By calculating the correlation between the features at the decoding and encoding ends, an attention weight map is generated to enhance the transmission of features in pollutant regions and suppress background interference. At the decoding end, upsampling is employed using a 4-level upsampling structure. Each level doubles the feature map size and halves the number of channels through transposed convolution (2×2, stride 2). This is then concatenated with the attention-weighted feature map of the corresponding level at the encoding end, and further refined through a 3×3 convolutional layer. Residual connections are added to reduce the gradient vanishing problem. At the output end, dual output branches are set up, corresponding to dirt type segmentation and pollution index prediction respectively. In the segmentation branch, a 1×1 convolution is used to convert the number of output channels at the decoding end into the number of pollutant categories, including 5 categories of dust, bird droppings, leaves, oil stains, and moss, plus background, for a total of 6 channels. The probability map of each category is output through the Softmax activation function, and the probability threshold is set to 0.5.

[0076] The index prediction branch uses 3×3 convolution + global average pooling to output a single-channel pollution index prediction map. The values ​​are normalized to [0,1] by the Sigmoid activation function, corresponding to pollution indices of 0-100. The formula is: pollution index = predicted value × 100.

[0077] Dataset construction involved collecting photovoltaic panel data from different regions and under different climatic conditions, including 100,000 samples of 5 types of pollutants. These samples were divided into training, validation, and test sets in a 7:2:1 ratio. Data augmentation was performed using random flipping, rotation (±15°), brightness adjustment (±10%), and other techniques.

[0078] The loss function is designed using a combined loss function. The Dice loss is used for splitting branches to address the class imbalance problem, while the mean squared error loss is used for prediction branches. The total loss is calculated as 0.6 × Dice loss + 0.4 × mean squared error loss.

[0079] Training parameters were set using the Adam optimizer with an initial learning rate of 0.001, which decayed to 0.5 every 50 epochs. The batch size was set to 8, and the number of training epochs was set to 200. An early stopping strategy was adopted, where training was stopped when the validation set loss did not decrease for 10 consecutive epochs.

[0080] Model validation involves verifying performance on a test set after training. The required performance includes a dirt type segmentation accuracy ≥92%, IoU, Crossover Union (IoU) ≥85%, and a dirt index prediction error ≤±3%. If these targets are not met, the sample size needs to be increased for retraining or the network parameters adjusted.

[0081] The generated photovoltaic panel status image data is input into the trained model, and the initial output is then processed.

[0082] The dirt type segmentation map is optimized by performing morphological operations on the initial segmentation probability map, first eroding and then dilating. Small noise regions with an area of ​​<50 pixels are removed by using 3×3 structuring elements. Each contaminant region is labeled through connected component analysis, and category information is marked. Five types of contaminants are distinguished by different colors to generate the final dirt type segmentation map.

[0083] The pollution index distribution map is calibrated by combining the original near-infrared reflectance data with the initial predicted pollution index. The formula is: calibrated index = initial index × 0.8 × average near-infrared reflectance + 0.2. This eliminates the influence of ambient light on the index and generates a pollution index distribution map in pixels. An index ≥ 60 indicates heavy pollution, 30-60 indicates moderate pollution, and < 30 indicates light pollution.

[0084] The output will convert the segmentation map and exponential distribution map into PNG format, associate the collected location information, store it in the local database, and upload it to the cloud monitoring platform.

[0085] Step 104: Generate an adaptive cleaning strategy based on the dirt type segmentation map and the pollution index distribution map. Based on the adaptive cleaning strategy, use visual SLAM combined with RTK-GPS to locate the sweeper and plan the path, and generate the target cleaning path.

[0086] Specifically, in this embodiment, the current position of the sweeper is taken as the starting point, the center of gravity of the uncleaned area is taken as the intermediate node, and the array boundary charging area is taken as the ending point. A sweeping direction penalty factor is introduced, and after the initial path is obtained by searching, the target sweeping path is generated by smoothing it with a Bezier curve.

[0087] Based on the dirt type segmentation map and the pollution index distribution map, a strategy decision rule base is established to achieve adaptive adjustment of cleaning parameters.

[0088] Pollution area division: The photovoltaic panel is divided into multiple cleaning units using a region growing algorithm. Each unit is 1m×1m. The average pollution index and main dirt types of each unit are calculated to generate a unit-level pollution information table.

[0089] Cleaning modes: For lightly polluted areas (index < 30), use dry sweeping mode, only activating the brush cleaning; for moderately polluted areas (index 30 ≤ index < 60), use wet sweeping + dry sweeping mode, first spraying water to moisten and then brush cleaning; for heavily polluted areas (index ≥ 60), use high-pressure washing + wet sweeping + dry sweeping mode, adjusting the water pressure according to the type of dirt: 8-10 MPa for bird droppings and oily water, and 12-15 MPa for moss.

[0090] The sweeping speed and brush rotation speed are as follows: For lightly polluted areas, the sweeping speed is 0.3 m / s and the rotation speed is 150 r / min; for moderately polluted areas, the sweeping speed is 0.2 m / s and the rotation speed is 200 r / min; for heavily polluted areas, the sweeping speed is 0.1 m / s and the rotation speed is 250 r / min. A repeat sweeping setting is provided: for heavily polluted areas with a pollution index ≥80 or an area ≥0.5 m², two repeat sweeps are set, with a 5-second interval between the two sweeps.

[0091] The strategy output integrates parameters such as cleaning mode, speed, rotation speed, and water pressure of each cleaning unit to generate an adaptive cleaning strategy file in JSON format, and associates the unit position coordinates.

[0092] A fusion positioning scheme of visual SLAM and RTK-GPS is adopted to achieve centimeter-level positioning accuracy. Visual SLAM positioning uses an RGB camera at the front end of the sweeper to collect environmental images, extracts feature points using the ORB algorithm, extracts ≥2000 feature points per frame, eliminates mismatches using the RANSAC algorithm, solves the camera attitude using the PnP algorithm, and combines the back-end graph-based optimization (BA) and Bundle Adjustment algorithm to optimize the trajectory and generate relative position information. The positioning error is ≤5cm.

[0093] RTK-GPS positioning uses a dual-frequency RTK-GPS module to receive BeiDou + GPS dual-mode signals. The static positioning accuracy is ±1cm, the dynamic positioning accuracy is ±3cm, the sampling frequency is 10Hz, and the latitude, longitude and altitude information of the sweeper are output in real time.

[0094] For fusion positioning, a Kalman filter algorithm is used to fuse visual SLAM and RTK-GPS data. When the RTK-GPS signal is good and the signal-to-noise ratio is ≥40dB, RTK data is used as the main data with a weight of 0.7, and SLAM data is used as the auxiliary data with a weight of 0.3. When the signal is weak and the signal-to-noise ratio is 20-40dB, the weight of both is set to 0.5. When the signal is lost and the signal-to-noise ratio is <20dB, SLAM data is used as the main data, and a signal recovery mechanism is activated at the same time, with the positioning update frequency maintained at 10Hz.

[0095] Based on location information and cleaning strategy, an improved A* algorithm is used to plan the path.

[0096] Environmental modeling combines CAD drawings of the photovoltaic panel array with an environmental map generated by visual SLAM to construct a grid map with a grid size of 0.1m × 0.1m. The grid map marks the photovoltaic panel area, cleanable area, support area, obstacle area, boundary area, and prohibited area.

[0097] The path planning constraint sets the conditions of shortest path, cleaning coverage ≥99%, and repeated cleaning rate ≤5%. It prioritizes the planning of the cleaning sequence of heavily polluted area → moderately polluted area → lightly polluted area to reduce the round trip distance.

[0098] The A* algorithm path search is improved by taking the current position of the sweeper as the starting point, the center of gravity of the uncleaned area as the intermediate node, and the charging area at the boundary of the array as the ending point. A sweeping direction penalty factor is introduced, with a penalty coefficient of 1.0 when sweeping along the length of the photovoltaic panel and 1.2 in the vertical direction. After the initial path is obtained, a Bezier curve is used for smoothing to eliminate sharp angle turns, with a turning radius ≥0.5m.

[0099] The path optimization and output process calculates the total path length and estimated cleaning time. If the total length exceeds the range of a single battery (e.g., 10km), a charging point is set along the path. Finally, a target cleaning path containing coordinates, cleaning parameters, and travel speed is generated and output to the sweeper control system in KML format, which then controls the tracked actuator to operate along the path.

[0100] Its beneficial effects include: significantly improving the accuracy of dirt recognition under various lighting and weather conditions through multimodal visual fusion technology; adaptively adjusting cleaning strategies based on dirt type and degree to reduce energy consumption while increasing cleaning efficiency; real-time monitoring of photovoltaic panel health status to prevent secondary damage caused by cleaning and extend the lifespan of photovoltaic panels; centimeter-level positioning accuracy combined with intelligent path planning to ensure cleaning coverage of over 99% while reducing unnecessary travel; multi-machine collaborative mechanism to shorten cleaning time for large photovoltaic power plants; and continuous improvement in system performance over time through self-learning optimization, thereby increasing cleaning efficiency.

[0101] Please see Figure 2 In the vision-based control method for a tracked photovoltaic sweeper, the STN spatial transformation network and attention mechanism are used to perform spatiotemporal alignment and feature fusion of visual image data to generate photovoltaic panel status image data. This includes the following steps:

[0102] Step 201: The STN spatial transformation network consists of three parts: a localization network, a mesh generator, and a sampler. The localization network takes 7-channel visual image data as input, extracts spatial transformation parameters through 3 convolutional layers and 2 fully connected layers, and outputs a transformation matrix.

[0103] Step 202: The grid generator generates a sampling grid in the target output space according to the transformation matrix, calculates the corresponding coordinates of each target pixel in the original image, and uses bilinear interpolation to process non-integer coordinates.

[0104] Step 203: Use inter-frame interpolation to align the time difference between consecutive frame data. When the interval between two frames exceeds 0.04s, insert the intermediate frame data to obtain the aligned channel data.

[0105] Please see Figure 3 In the vision-based control method for a tracked photovoltaic sweeper, the STN spatial transformation network and attention mechanism are used to perform spatiotemporal alignment and feature fusion of visual image data to generate photovoltaic panel status image data. This includes the following steps:

[0106] Step 301: The channel attention module performs global average pooling on the channel data aligned by STN to obtain feature vectors. It then calculates the weights of each channel through two fully connected layers and the Sigmoid function. The weights of the RGB channels range from 0.2 to 0.3, the infrared channels from 0.3 to 0.4, and the near-infrared channels from 0.3 to 0.4.

[0107] Step 302: The spatial attention module converts the channel-weighted feature map into a grayscale image, and generates a spatial attention map through a 3×3 convolutional layer and a Sigmoid function, assigning high weights to the edges of the photovoltaic panel and the pollutant accumulation area, and low weights to the background area.

[0108] Step 303: Multiply the channel weights and spatial weights to obtain the comprehensive weight of each pixel. Multiply the weight matrix element-wise with the original feature map to generate photovoltaic panel status image data.

[0109] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely preferred examples and are not intended to limit the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.

Claims

1. A control method for a tracked photovoltaic sweeper based on visual recognition, characterized in that, The control method for the tracked photovoltaic sweeper includes the following steps: The RGB image, infrared thermal imaging data and near-infrared reflectance data of the photovoltaic panel surface are acquired simultaneously through a multispectral vision system. The acquired data are preprocessed to obtain visual image data. The visual image data is spatiotemporally aligned and feature-fused using an STN spatial transformation network and an attention mechanism to generate photovoltaic panel status image data. A deep learning model is built based on an improved multi-scale U-Net network. Generated photovoltaic panel state image data is input into the trained model. After obtaining the initial output, post-processing is performed, resulting in a dirt type segmentation map and a pollution index distribution map. This includes: a multi-scale U-Net network, with a 4-level downsampling structure at the encoding end, each level containing a multi-scale convolutional module and a batch... The system consists of a normalization layer, a ReLU activation function, and a max-pooling layer. The first-level input is 32-channel photovoltaic panel status image data. The number of channels doubles after each downsampling stage, resulting in a final output of 512 channels at the encoder. The multi-scale convolution module includes three parallel convolutional kernels with sizes of 3×3, 5×5, and 7×7, each with 32 output channels. Attention gating is added to the skip connections between the encoder and decoder. An attention weight map is generated by calculating the correlation between the features at the decoder and the features at the encoder. The decoder uses a 4-level upsampling structure. At each level, the feature map size is doubled and the number of channels is halved through transposed convolution. The feature map is then concatenated with the attention-weighted feature map of the corresponding level at the encoder. The features are then refined through a 3×3 convolutional layer. The output has two branches, corresponding to dirt type segmentation and pollution index prediction, respectively, to establish a deep learning model. Morphological operations were used to remove small noise regions from the initial segmentation probability map. Each contaminant region was labeled using connected component analysis, and category information was marked to generate a dirt type segmentation map. The initial predicted pollution index was calibrated by combining the raw near-infrared reflectance data to generate a pollution index distribution map. An adaptive cleaning strategy is generated based on the dirt type segmentation map and the pollution index distribution map. Based on the adaptive cleaning strategy, the cleaning machine is located and the path is planned by combining visual SLAM with RTK-GPS to generate the target cleaning path.

2. The control method for a tracked photovoltaic sweeper based on visual recognition according to claim 1, characterized in that, The process involves simultaneously acquiring RGB images, infrared thermal imaging data, and near-infrared reflectance data of the photovoltaic panel surface using a multispectral vision system. The acquired data is then preprocessed to obtain visual image data, including: The RGB image, infrared thermal imaging data and near-infrared reflectance data of the photovoltaic panel surface are acquired simultaneously through a multispectral vision system. Gaussian filtering is used to process RGB images to eliminate noise caused by ambient light fluctuations. Median filtering is used to remove salt-and-pepper noise from infrared thermal imaging data. Moving average filtering is used to smooth random errors in near-infrared reflectance data. A correction model was established based on the four corner points of the photovoltaic panel. A perspective transformation algorithm was used to perform geometric correction on the viewing angle deviation of the RGB and infrared images. The pixel values ​​of the RGB images were normalized to the [0,1] interval. The infrared temperature data was converted into a standardized temperature index, and three decimal places of the near-infrared reflectance data were retained and outliers were removed. The processed RGB image, infrared temperature index map, and near-infrared three-band reflectance map are integrated according to the channel dimension to generate visual image data.

3. The control method for a tracked photovoltaic sweeper based on visual recognition according to claim 1, characterized in that, The step of using an STN spatial transformation network and an attention mechanism to perform spatiotemporal alignment and feature fusion on the visual image data to generate photovoltaic panel status image data includes: The STN spatial transformation network consists of three parts: a localization network, a mesh generator, and a sampler. The localization network takes 7-channel visual image data as input, extracts spatial transformation parameters through 3 convolutional layers and 2 fully connected layers, and outputs a transformation matrix. The grid generator generates a sampling grid in the target output space based on the transformation matrix, calculates the corresponding coordinates of each target pixel in the original image, and uses bilinear interpolation to process non-integer coordinates. For the time difference of consecutive frame data, the inter-frame interpolation method is used for time alignment. When the interval between two frames exceeds 0.04s, the intermediate frame data is inserted to obtain the aligned channel data.

4. The control method for a tracked photovoltaic sweeper based on visual recognition according to claim 1, characterized in that, The step of using an STN spatial transformation network and an attention mechanism to perform spatiotemporal alignment and feature fusion on the visual image data to generate photovoltaic panel status image data includes: The channel attention module performs global average pooling on the channel data aligned by STN to obtain feature vectors. It then calculates the weights of each channel through two fully connected layers and a sigmoid function. The weights for the RGB channel range from 0.2 to 0.3, the infrared channel from 0.3 to 0.4, and the near-infrared channel from 0.3 to 0.

4. The spatial attention module converts the channel-weighted feature map into a grayscale image, and generates a spatial attention map through a 3×3 convolutional layer and a sigmoid function, assigning high weights to the edges of the photovoltaic panel and areas where pollutants accumulate, and low weights to the background area. The channel weights are multiplied by the spatial weights to obtain the comprehensive weight for each pixel. The weight matrix is ​​then multiplied element-wise with the original feature map to generate photovoltaic panel status image data.

5. The control method for a tracked photovoltaic sweeper based on visual recognition according to claim 1, characterized in that, The process involves generating an adaptive cleaning strategy based on the dirt type segmentation map and the pollution index distribution map. Based on this adaptive cleaning strategy, the sweeper is positioned and its path planned using visual SLAM combined with RTK-GPS to generate a target cleaning path, including: Starting from the current position of the sweeper, with the center of gravity of the uncleaned area as the intermediate node, and the charging area at the boundary of the array as the endpoint, a sweeping direction penalty factor is introduced. After the initial path is obtained, the target sweeping path is generated by smoothing it with a Bezier curve.

6. A system for implementing the vision recognition-based control method for a tracked photovoltaic sweeper as described in claim 1, characterized in that, The system includes the following modules: The image data acquisition module is used to simultaneously acquire RGB images, infrared thermal imaging data and near-infrared reflectance data of the photovoltaic panel surface through a multispectral vision system, and preprocess the acquired data to obtain visual image data. The feature alignment and fusion module is used to perform spatiotemporal alignment and feature fusion on the visual image data using STN spatial transformation network and attention mechanism to generate photovoltaic panel status image data. The pollution index calculation module is used to build a deep learning model based on the improved multi-scale U-Net network. The generated photovoltaic panel status image data is input into the trained model, and after obtaining the initial output results, post-processing is performed to output a dirt type segmentation map and a pollution index distribution map. The cleaning path generation module is used to generate an adaptive cleaning strategy based on the dirt type segmentation map and the pollution index distribution map. Based on the adaptive cleaning strategy, the cleaning machine is located and the path is planned by combining visual SLAM with RTK-GPS to generate the target cleaning path.

7. The system according to claim 6, characterized in that, The system includes the following sub-modules: The calibration submodule is used to remove small noise regions from the initial segmentation probability map using morphological operations, label each pollutant region through connected component analysis, annotate category information, and generate a dirt type segmentation map; combined with the raw near-infrared reflectance data, it calibrates the initially predicted pollution index and generates a pollution index distribution map.

8. The system according to claim 6, characterized in that, The system includes the following sub-modules: The generation submodule is used to generate the target cleaning path by starting from the current position of the sweeper, taking the center of gravity of the uncleaned area as the intermediate node, and ending at the array boundary charging area. It introduces a cleaning direction penalty factor, searches for the initial path, and then uses Bezier curve smoothing to generate the target cleaning path.

Citation Information

Patent Citations

  • Photovoltaic cleaning robot based on automatic path planning and operation method thereof

    CN119472645A

  • Building template cleaning monitoring method and system based on image recognition

    CN121121424A

  • Photovoltaic cleaning control method fusing RTK positioning and visual compensation

    CN121209493A