Offshore wind turbine installed capacity calculation method and system based on Sentinel-2 image and Unet model
Using Sentinel-2 images and the Unet model, the hub height and installed capacity of offshore wind turbines are calculated, which solves the problem of inefficiency of traditional methods, achieves fast and accurate statistics of offshore wind turbine installed capacity, and provides a low-cost solution for the wind energy industry. .
Patent Information
- Application Number
- CN202410694383.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-31
AI Technical Summary
Traditional methods used to investigate the hub height and installed capacity of offshore wind turbines are inefficient and costly, making it difficult to achieve large-scale and rapid statistics.
The deep learning method based on Sentinel-2 images and Unet model is used to determine the hub height and installed capacity of offshore wind turbines by establishing a data sample library, building a VC-Net model, training the model, calculating the shadow length and solar altitude angle.
It achieves efficient and accurate calculation of offshore wind turbine hub height and installed capacity, provides a low-cost, real-time and robust method, is suitable for statistics in large-scale areas, and provides a reference for wind energy related departments.
Smart Images

Figure CN118279751B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a method and system for calculating the installed capacity of an offshore wind turbine based on Sentinel-2 images and a Unet model. Background Art
[0002] As global climate issues have intensified over the past few decades, countries around the world have been committed to reducing the emission of greenhouse gases such as carbon dioxide and the use of fossil fuels. Changes in global clean energy policies have reduced dependence on fossil fuels and stimulated the growth of renewable energy, among which wind energy, as a clean energy with high energy storage, no pollution and mature technology, has been used by many countries.
[0003] Offshore wind power projects are highly cost-intensive. The costs of blades, tower components, construction and installation processes will affect the benefits of a single wind turbine. Therefore, it is crucial to optimize the hub height to reduce costs, increase power and improve the economic competitiveness of offshore wind turbines (offshore wind turbines). However, there are many wind turbine manufacturers, different wind turbine models, and customizable hub heights. Traditional methods for investigating the hub height and installed capacity of offshore wind turbines on a large scale require detailed statistical data, which is a huge workload and inefficient. Therefore, it is of great value to propose a low-cost, real-time and robust method to quickly obtain the hub height and installed capacity of offshore wind turbines. Summary of the invention
[0004] In order to overcome the above problems or at least partially solve the above problems, the present invention provides a method and system for calculating the installed capacity of offshore wind turbines based on Sentinel-2 images and Unet models, which utilizes Sentinel-2 images and deep learning models to realize efficient and accurate calculation of the hub height and installed capacity of offshore wind turbines.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] In a first aspect, the present invention provides a method for calculating the installed capacity of an offshore wind turbine based on Sentinel-2 images and a Unet model, comprising the following steps:
[0007] Acquire and establish a data sample library based on Sentinel-2 image data;
[0008] Build a new deep learning model VC-Net based on the Unet model;
[0009] Train the deep learning model VC-Net based on the data sample library;
[0010] The trained deep learning model VC-Net and the Sentinel-2 image data in the data sample library are used to calculate the shadow length of the corresponding offshore wind turbine hub height;
[0011] Determine the corresponding solar altitude angle according to the image attributes of the Sentinel-2 image data in the data sample library;
[0012] Calculate the corresponding offshore wind turbine hub height based on the shadow length and the sun altitude angle;
[0013] The hub height and installed capacity of offshore wind turbines are fitted, and the installed capacity of each offshore wind turbine is determined according to the calculated hub height of the offshore wind turbine.
[0014] The present invention creates a training data set suitable for semantic segmentation of offshore wind turbines, constructs a new deep learning model VC-Net model, integrates the first 4 convolution blocks of the medium-depth network VGG16 backbone as the encoding component of the Unet architecture; the CBAM attention mechanism is added before each upsampling in the decoding stage to accurately segment the wind turbine shadow boundary. Then, the offshore wind turbine hub height can be calculated according to the shadow length, solar altitude angle formula, etc., the official offshore wind turbine hub height and installed capacity are fitted, and the installed capacity of each offshore wind turbine can be further modeled based on the calculated offshore wind turbine hub height using the fitting formula. The present invention uses Sentinel-2 images and deep learning models to realize the calculation of offshore wind turbine hub height and installed capacity; the model and modeling method are low-cost, real-time and robust; it can be applied to statistical offshore wind turbine installation in a wide range of regions, providing a reference for wind energy related departments.
[0015] Based on the first aspect, further, the method for constructing a new deep learning model VC-Net based on the Unet model includes the following steps:
[0016] Integrate the first 4 convolutional blocks of the medium-depth network VGG16 backbone as the encoding component of the Unet architecture;
[0017] Based on the Unet architecture, the CBAM attention mechanism is added to accurately segment the wind turbine shadow boundary to obtain a new deep learning model VC-Net.
[0018] Based on the first aspect, further, the method for calculating the shadow length of the corresponding offshore wind turbine hub height using the trained deep learning model VC-Net and the Sentinel-2 image data in the data sample library includes the following steps:
[0019] Slice the image in the Sentinel-2 image data in the data sample library to obtain multiple image slices;
[0020] Input multiple image slices into the trained deep learning model VC-Net to segment the water body and wind turbine shadow, and output the corresponding segmentation results;
[0021] Perform affine transformation on each segmentation result to achieve the conversion of pixel coordinates to original geographic coordinates; then merge the slices of each segmentation result after transformation, and convert the contour of the segmentation result into a surface vector file to obtain the contour of the wind turbine shadow surface;
[0022] The minimum circumscribed rectangle is drawn for the outline of the wind turbine shadow surface, and the length of the minimum circumscribed rectangle is the shadow length of the offshore wind turbine hub height.
[0023] Based on the first aspect, further, the above-mentioned Sentinel-2 image data includes Sentinel-2 images and corresponding image attributes, and the above-mentioned image attributes include satellite transit date, longitude, latitude, solar altitude angle and image shooting time.
[0024] Based on the first aspect, further, the method for determining the corresponding solar altitude angle according to the image attributes in the Sentinel-2 image data in the data sample library comprises the following steps:
[0025] The corresponding solar altitude angle can be obtained based on the latitude of the offshore wind turbine and the shooting time of the Sentinel-2 image. .
[0026] Based on the first aspect, further, the method for calculating the corresponding offshore wind turbine hub height according to the shadow length and the sun altitude angle comprises the following steps:
[0027] Using trigonometric functions, the hub height of each offshore wind turbine is calculated based on the shadow length and the sun altitude angle;
[0028] The hub heights of all offshore wind turbines are counted and median calculation is performed to determine the final hub height of offshore wind turbines for the target wind farm.
[0029] Based on the first aspect, further, the offshore wind turbine installed capacity calculation method based on Sentinel-2 images and Unet model further includes the following steps:
[0030] Determine the model performance evaluation indicators and evaluate the accuracy of the deep learning model VC-Net based on the model performance evaluation indicators.
[0031] In a second aspect, the present invention provides an offshore wind turbine installed capacity calculation system based on Sentinel-2 images and Unet models, comprising an image acquisition module, a new model construction module, a model training module, a shadow length calculation module, a solar altitude angle determination module, a hub height calculation module, and an installed capacity calculation module, wherein:
[0032] Image acquisition module, used to acquire and establish a data sample library based on Sentinel-2 image data;
[0033] New model building module, used to build a new deep learning model VC-Net based on the Unet model;
[0034] Model training module, used to train the deep learning model VC-Net based on the data sample library;
[0035] The shadow length calculation module is used to calculate the shadow length of the corresponding offshore wind turbine hub height using the trained deep learning model VC-Net and the Sentinel-2 image data in the data sample library;
[0036] The solar altitude angle determination module is used to determine the corresponding solar altitude angle according to the image attributes in the Sentinel-2 image data in the data sample library;
[0037] Hub height calculation module, used to calculate the corresponding offshore wind turbine hub height according to the shadow length and the sun altitude angle;
[0038] The installed capacity calculation module is used to fit the offshore wind turbine hub height and installed capacity, and determine the installed capacity of each offshore wind turbine according to the calculated offshore wind turbine hub height.
[0039] This system creates a training data set suitable for semantic segmentation of offshore wind turbines through the cooperation of multiple modules such as image acquisition module, new model construction module, model training module, shadow length calculation module, solar altitude angle determination module, hub height calculation module and installed capacity calculation module, and constructs a new deep learning model VC-Net model, which integrates the first 4 convolution blocks of the deep network VGG16 backbone as the encoding component of the Unet architecture; the CBAM attention mechanism is added before each upsampling in the decoding stage to accurately segment the wind turbine shadow boundary. Then, the offshore wind turbine hub height can be calculated according to the shadow length, solar altitude angle formula, etc., and the official offshore wind turbine hub height and installed capacity are fitted. The fitting formula can be used to further model the installed capacity of each offshore wind turbine according to the calculated offshore wind turbine hub height. The present invention uses Sentinel-2 images and deep learning models to realize the calculation of offshore wind turbine hub height and installed capacity; the model and modeling method are low-cost, real-time and robust; it can be applied to statistical offshore wind turbine installation in a wide range of areas, providing a reference for wind energy related departments.
[0040] In a third aspect, the present application provides an electronic device, comprising a memory for storing one or more programs; a processor; when the one or more programs are executed by the processor, the method as described in any one of the first aspects above is implemented.
[0041] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of the first aspects above.
[0042] The present invention has at least the following advantages or beneficial effects:
[0043] The present invention provides a method and system for calculating the installed capacity of offshore wind turbines based on Sentinel-2 images and Unet models, creates a training data set suitable for semantic segmentation of offshore wind turbines, and constructs a new deep learning model VC-Net model, which integrates the first 4 convolution blocks of the deep network VGG16 backbone as the encoding component of the Unet architecture; before each upsampling in the decoding stage, a CBAM attention mechanism is added to accurately segment the wind turbine shadow boundary. Then, the offshore wind turbine hub height can be calculated according to the shadow length, solar altitude angle formula, etc., the official offshore wind turbine hub height and installed capacity are fitted, and the installed capacity of each offshore wind turbine can be further modeled using the fitting formula according to the calculated offshore wind turbine hub height.
[0044] The present invention uses Sentinel-2 images and deep learning models to calculate the hub height and installed capacity of offshore wind turbines. The model and modeling method are low-cost, real-time and robust. They can be applied to statistics on offshore wind turbine installations in a wide range of areas, providing a reference for wind energy-related departments. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 This is a flow chart of a method for calculating installed capacity of offshore wind turbines based on Sentinel-2 images and Unet model according to an embodiment of the present invention;
[0047] Figure 2 An example diagram of a Sentinel-2 ACE enhanced image and corresponding labels in an embodiment of the present invention;
[0048] Figure 3 This is the structure diagram of the Unet model;
[0049] Figure 4 Schematic diagram of the VGG16 backbone structure;
[0050] Figure 5 This is the structural diagram of the CBAM attention mechanism;
[0051] Figure 6 This is a schematic diagram for calculating the fan hub height;
[0052] Figure 7 Schematic diagram of the hub height and installed capacity of an offshore wind turbine modeled as a quadratic function;
[0053] Figure 8 A structural block diagram of an electronic device provided by an embodiment of the present invention;
[0054] Fig. 9 It is the shadow and minimum circumscribed rectangle diagram of the offshore wind turbine hub height output in the embodiment of the present invention.
[0055] Explanation of the reference numerals: 1. Shadow of an offshore wind turbine; 2. Minimum circumscribed rectangle; 101. Memory; 102. Processor; 103. Communication interface; 104. Communication bus. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0057] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0059] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0060] In the description of the embodiments of the present invention, "plurality" means at least 2.
[0061] Example:
[0062] like Figure 1 As shown, in the first aspect, an embodiment of the present invention provides a method for calculating the installed capacity of an offshore wind turbine based on Sentinel-2 images and a Unet model, comprising the following steps:
[0063] S1. Acquire and establish a data sample library based on Sentinel-2 image data; the above-mentioned Sentinel-2 image data includes Sentinel-2 images and corresponding image attributes, and the above-mentioned image attributes include satellite transit date, longitude, latitude, solar altitude angle and image shooting time.
[0064] In some embodiments of the present invention, a multispectral Sentinel-2 Level 2A atmospherically corrected surface reflectance image is downloaded from the Google Earth Engine (GEE) platform, and the cloud pixels are masked using the QA60 band. The temporal resolution of the Sentinel-2 image is 5 days. In view of the fact that the shadow of the offshore wind turbine is too small when the solar altitude angle is large, the shadow area cannot be accurately and accurately extracted. The date range of the image is set to the interval of ±30 days on December 22, 2022, which can cover more ground samples. After obtaining the image information of the b11, b6 and b3 bands, the cloud percentage threshold is set to 10%, and the single Sentinel-2 image closest to December 22, 2022 in the study area is selected and downloaded by strip number. For each downloaded Sentinel-2 image, the present invention records the satellite transit date, longitude, latitude and solar altitude angle (SEA) according to the available image attributes.
[0065] Deep learning requires a large number of typical samples to achieve good accuracy and generalization effects. The present invention selects certain offshore wind farms with strong aggregation, and processes the Sentinel-2 images on December 19, 2022 with the automatic color equalization algorithm (ACE). The ACE algorithm can realize the image brightness and color adjustment and contrast adjustment of local and nonlinear features, and correct the final pixel value according to the dark relationship between pixels to enhance local characteristics. The present invention uses the Sentinel-2 images enhanced by ACE for training. These images contain a total of 9 offshore wind farms (offshore wind turbines with the same arrangement interval and direction are considered to be an offshore wind farm) and 352 offshore wind turbines. These training images contain different underlying surfaces, such as water bodies and tidal flats of different depths. In these images, the shadows of the wind turbines appear obvious black, contrasting with the blue water body and brown soil. Then the present invention accurately extracts the shadows of 352 offshore wind turbines in 9 offshore wind farms through multi-person visual interpretation to obtain segmentation results. Finally, these training images were cut into a total of 960 256×256 pixel deep learning sample slices, such as Figure 2 The sample library is randomly divided into 8:2 (768 training sets and 192 validation sets) in the hope of better evaluating the performance and generalization ability of the model.
[0066] S2. Build a new deep learning model VC-Net based on the Unet model;
[0067] S3, training the deep learning model VC-Net based on the data sample library;
[0068] In some embodiments of the present invention, the VC-Net model is implemented using Pytorch in a Python environment on a Pycharm platform. Sentinel-2 images and their corresponding labels are randomly input into VC-net in a ratio of 8:2 for training and validation data for 200 epochs. If the accuracy does not improve and the validation loss does not decrease after 10 epochs, the training is stopped in advance. The training is divided into two stages, namely the freezing stage and the thawing stage. The freezing stage requires less video memory, which reduces the performance requirements of the machine. The total epochs of model training are set to 200, of which the epochs of frozen training are 40. The model with an initial learning rate of 1e-4 was compiled using the Adam optimizer, and the momentum parameter inside the optimizer was set to 0.9. The training weights are automatically saved after every 2 epochs, and the validation set is evaluated every 5 epochs. In view of the imbalance of positive and negative samples in the data set, we use the Dice Loss function to alleviate the negative impact of the foreground-background imbalance, so that the model training focuses more on the mining of the foreground area, and combines the Focal Loss function to improve the sample imbalance problem, so that the model focuses on the objects of interest.
[0069] S4, using the trained deep learning model VC-Net and the Sentinel-2 image data in the data sample library to calculate the shadow length of the corresponding offshore wind turbine hub height;
[0070] S5. Determine the corresponding solar altitude angle according to the image attributes in the Sentinel-2 image data in the data sample library;
[0071] S6. Calculate the corresponding offshore wind turbine hub height according to the shadow length and the sun altitude angle;
[0072] The corresponding solar altitude angle can be obtained based on the latitude of the offshore wind turbine and the specific shooting time of the Sentinel-2 image. , ,in Indicates geographic latitude (latitude in longitude and latitude), Represents the solar declination, and t represents the hour angle. Then, the hub height of each wind turbine is calculated by combining the length of the wind turbine shadow with the trigonometric function, and then the hub height of each offshore wind farm in the study area is calculated. In the present invention, for the convenience of statistics, we select the median of the hub height of all offshore wind turbines in each offshore wind farm to define the hub height of this offshore wind farm.
[0073] S7. Fit the hub height and installed capacity of the offshore wind turbine, and determine the installed capacity of each offshore wind turbine according to the calculated hub height of the offshore wind turbine.
[0074] In some embodiments of the present invention, 60 offshore wind farms are randomly selected from the collected official published data, and the hub height data and installed capacity of these 60 offshore wind farms are modeled. The independent variable is the hub height of the wind turbine, and the dependent variable is the installed capacity. Assume that model I is a quadratic polynomial function, see formula (1), where H is the independent variable, representing the hub height of the offshore wind turbine. I is the dependent variable, representing the installed capacity of the offshore wind turbine, and a, b, and c are three parameters.
[0075] (1)
[0076] A quadratic polynomial function can be used to fit the hub height of offshore wind turbines ranging from 60 meters to 120 meters and the corresponding installed capacity. Figure 8 As shown, a=0.0006103943460076255, b=-0.008711736914070567, c=-0.33371828377626733. In addition, the goodness of fit (R) was further calculated according to formula (2) by calculating the residual sum of squares (SSR) and the total sum of squares (SST). 2 ), R 2 The installed capacity of each offshore wind turbine can be further modeled based on the calculated offshore wind turbine hub height using the fitting formula (e.g. Figure 7 as shown).
[0077] (2)
[0078] The present invention creates a training data set suitable for semantic segmentation of offshore wind turbines, constructs a new deep learning model VC-Net model, integrates the first 4 convolution blocks of the medium-depth network VGG16 backbone as the encoding component of the Unet architecture; the CBAM attention mechanism is added before each upsampling in the decoding stage to accurately segment the wind turbine shadow boundary. Then, the offshore wind turbine hub height can be calculated according to the shadow length, solar altitude angle formula, etc., the official offshore wind turbine hub height and installed capacity are fitted, and the installed capacity of each offshore wind turbine can be further modeled based on the calculated offshore wind turbine hub height using the fitting formula. The present invention uses Sentinel-2 images and deep learning models to realize the calculation of offshore wind turbine hub height and installed capacity; the model and modeling method are low-cost, real-time and robust; it can be applied to statistical offshore wind turbine installation in a wide range of regions, providing a reference for wind energy related departments.
[0079] Based on the first aspect, further, the method for constructing a new deep learning model VC-Net based on the Unet model includes the following steps:
[0080] Integrate the first 4 convolutional blocks of the medium-depth network VGG16 backbone as the encoding component of the Unet architecture;
[0081] On the basis of the Unet architecture, the CBAM attention mechanism is added to accurately segment the fan shadow boundary to obtain a new deep learning model VC-Net; in the decoding stage, the CBAM attention mechanism is added before each upsampling to accurately segment the fan shadow boundary.
[0082] In some embodiments of the present invention, in order to improve the performance of the classic Unet architecture, two modifications are made in the present invention: (1) the first 4 convolution blocks of the deep network VGG16 backbone are integrated as the encoding components of the Unet architecture. (2) The CBAM attention mechanism is added before each upsampling in the decoding stage to accurately segment the wind turbine shadow boundary. The proposed deep learning model is called VC-Net). Unet is a fully convolutional neural network that was first proposed in 2015 and used in the field of image segmentation. It is characterized by a U-shaped network structure and has an encoder-decoder architecture. The encoder captures contextual information, gradually reduces the spatial dimension and extracts high-level features. The decoder restores the resolution by upsampling and performs jump connections with the feature map of the encoder to restore the detail information. The advantages are small sample learning, jump connection feature fusion and multi-level feature extraction (Unet architecture such as Figure 3 The backbone convolutional network is a key component of deep image recognition, semantic segmentation and other tasks.
[0083] The VGG network is one of the classic models in the field of deep learning. It is widely used in computer vision tasks such as semantic segmentation because of its simple network structure and easy implementation. The VGG network uses continuous small convolution kernels (3x3) and pooling layers (2x2) to build a deep neural network, which can increase the receptive field without increasing the amount of calculation and has stronger nonlinear capabilities. In addition, the reduction in the number of parameters also reduces the risk of overfitting and improves the feature extraction ability of the network. The 16-layer network depth is called VGG16. The network architecture is composed of 13 convolutional layers and pooling layers stacked alternately, and finally classified by 3 fully connected layers (such as Figure 4 As shown in Figure 2). This study replaces the encoder part of the Unet network with the network structure before the 4th pooling of VGG16, and the number of convolutional layers contained in each block is 64, 128, 256, and 512 respectively. Deep learning requires a large number of available training samples to extract features better. However, due to the limited training data of Sentinel-2 images, in order to make the feature extraction effect more obvious, the present invention uses transfer learning technology. Using the pre-trained weights of the VGG16 backbone network, the pre-trained parameters of the fixed initial weights can bring more stable training results than random initial weights.
[0084] The CBAM (Convolutional Block Attention Module) attention mechanism module was proposed in 2018 and can be used to enhance the performance of convolutional neural networks. CBAM mainly introduces channel attention and spatial attention to improve the perception ability of the model without increasing the complexity of the network. By adaptively learning channel and spatial attention weights, the CBAM module can capture the correlation between features in different dimensions, thereby improving the performance of image recognition tasks and overcoming the limitations of traditional convolutional neural networks in processing information of different scales and directions. First, the maximum eigenvalue and average eigenvalue are calculated for each channel, and the feature vector after global maximum pooling and average pooling is input into the fully connected layer, and the Sigmoid activation function is applied to obtain the final attention weight vector. The features after maximum pooling and average pooling are connected along the channel dimension into a feature map with contextual information of different scales, and then the feature map is processed by the convolutional layer to generate the spatial attention weight. The output features of the channel attention module and the spatial attention module are multiplied element by element to obtain the final attention-enhanced features (such as Figure 5 This enhanced feature will be used as the input of the subsequent network layer, while retaining the key information, while suppressing the noise and irrelevant information.
[0085] Based on the first aspect, further, the method for calculating the shadow length of the corresponding offshore wind turbine hub height using the trained deep learning model VC-Net and the Sentinel-2 image data in the data sample library includes the following steps:
[0086] Slice the image in the Sentinel-2 image data in the data sample library to obtain multiple image slices;
[0087] Input multiple image slices into the trained deep learning model VC-Net to segment the water body and wind turbine shadow, and output the corresponding segmentation results;
[0088] Affine transformation is performed on each segmentation result to realize the conversion of pixel coordinates to original geographic coordinates; then the slices of each segmentation result after conversion are spliced and merged, and the contour of the segmentation result is converted into a surface vector file to obtain the contour of the wind turbine shadow surface; the segmentation result output by the model will lose the original geographic information of the image, and only retain the pixel information, but the research results require the geographic information of the wind turbine shadow, so the present invention uses the Geospatial Data Abstraction Library (GDAL) to restore the geographic coordinate information of the image slices to realize the conversion of the original geographic coordinates of the pixel coordinates. The remote sensing image is cut into sample slices of 256×256 size. After the image slices restore the geographic information, they need to be spliced into the original remote sensing image. Among them, GDAL (Geospatial Data Abstraction Library) is an open source library for reading and writing raster and vector geospatial data formats. GDAL can handle the projection and coordinate transformation of data. It supports a large number of projection systems and coordinate reference systems (CRS), and provides powerful projection conversion functions.
[0089] The minimum circumscribed rectangle is drawn for the outline of the wind turbine shadow surface, and the length of the minimum circumscribed rectangle is the shadow length of the offshore wind turbine hub height.
[0090] In some embodiments of the present invention, since each remote sensing image pixel is large, considering the accuracy and processing speed of model recognition, the present invention cuts each Sentinel-2 image downloaded by GEE into a series of 256×256 pixel slices, and inputs the slices into the trained VC-net model for the segmentation of water bodies and wind turbine shadows. After the model predicts each slice one by one, the prediction result is that the raster data loses the geographic information of the original data. Therefore, each segmentation result is affine transformed with the help of Python Geospatial Data Abstraction Library (GDAL) to achieve the conversion of pixel coordinates to original geographic coordinates. Then, the slices of each output result are spliced and merged, and the contour of the segmentation result map is converted into a surface vector file. The Douglas-Peucker algorithm of OpenCV is used to adjust the threshold to simplify the contour, and the calculation cost is reduced while ensuring the accuracy of the contour. In the real scene, the OWT shadow is approximately a rectangle, but affected by the raster data structure, the recognition result is an irregular polygon. Therefore, the Minimum Bounding Geometry tool in ArcMap is used to draw the minimum bounding rectangle. The length of the bounding rectangle is the shadow length of the offshore wind turbine hub height, such as Fig. 9 shown.
[0091] Based on the first aspect, further, the method for determining the corresponding solar altitude angle according to the image attributes in the Sentinel-2 image data in the data sample library comprises the following steps:
[0092] The corresponding solar altitude angle can be obtained based on the latitude of the offshore wind turbine and the shooting time of the Sentinel-2 image. The specific latitude positions of offshore wind turbines were measured directly from Sentinel-2 images using ArcMap software.
[0093] Based on the first aspect, further, the method for calculating the corresponding offshore wind turbine hub height according to the shadow length and the sun altitude angle comprises the following steps:
[0094] Using trigonometric functions, the hub height of each offshore wind turbine is calculated based on the shadow length and the sun altitude angle;
[0095] The hub heights of all offshore wind turbines are counted and median calculation is performed to determine the final hub height of offshore wind turbines for the target wind farm.
[0096] In some embodiments of the present invention, Figure 6 The figure shows the principle of using Sentinel-2 data and the sun altitude angle to calculate the hub height of offshore wind turbines. , where H is the hub height and S is the shadow length. The present invention selects Sentinel-2 data around December 22, when the sun is directly above the Tropic of Capricorn. The corresponding solar altitude angle can be obtained based on the latitude of the offshore wind turbine and the specific shooting time of the Sentinel-2 image. , and then use trigonometric functions combined with the wind turbine shadow length to calculate the hub height of each wind turbine. Then calculate the hub height of each wind turbine in the study area. Here, for the convenience of statistics, the present invention selects the median of the hub height of all offshore wind turbines in each offshore wind farm to define the hub height of this offshore wind farm.
[0097] Based on the first aspect, further, the offshore wind turbine installed capacity calculation method based on Sentinel-2 images and Unet model further includes the following steps:
[0098] Determine the model performance evaluation indicators and evaluate the accuracy of the deep learning model VC-Net based on the model performance evaluation indicators.
[0099] In some embodiments of the present invention, in order to comprehensively quantify the effectiveness of the backbone network and decoder for offshore wind turbine shadow segmentation, the indicators commonly used in semantic segmentation to measure the performance of the detection algorithm are selected, including accuracy (Accuracy), average precision (AP), average accuracy of all categories (mAP), intersection over union (IoU) and F1 score. Accuracy is the degree to which the average value of multiple measurements is consistent with the true value, and evaluates the relationship between the number of samples predicted correctly and the total number of samples. Average precision (AP) is the integration of the Precision-recall curve, which characterizes the comprehensive performance of both Precision and Recall. The average accuracy of all categories (mAP) is the comprehensive weighted average of the average precision (AP) of multiple categories. IoU is used to evaluate the spatial overlap between the algorithm prediction results and the actual results on the ground. The F1 score is the weighted harmonic mean of precision and recall, which comprehensively reflects the overall indicators and is not affected by unbalanced samples. The specific calculation method is as follows:
[0100]
[0101] Among them, TP, TN, FP and FN represent the number of true positives (correctly predicted target pixels), true negatives (correctly predicted background pixels), false positives (water pixels predicted as target pixels) and false negatives (i.e. target pixels predicted as background pixels) at the pixel level, respectively. In addition, the higher the values of Accuracy, mAP, IoU and F1, the higher the accuracy of wind turbine shadow segmentation.
[0102] In a second aspect, the present invention provides an offshore wind turbine installed capacity calculation system based on Sentinel-2 images and Unet models, comprising an image acquisition module, a new model construction module, a model training module, a shadow length calculation module, a solar altitude angle determination module, a hub height calculation module, and an installed capacity calculation module, wherein:
[0103] Image acquisition module, used to acquire and establish a data sample library based on Sentinel-2 image data;
[0104] New model building module, used to build a new deep learning model VC-Net based on the Unet model;
[0105] Model training module, used to train the deep learning model VC-Net based on the data sample library;
[0106] The shadow length calculation module is used to calculate the shadow length of the corresponding offshore wind turbine hub height using the trained deep learning model VC-Net and the Sentinel-2 image data in the data sample library;
[0107] The solar altitude angle determination module is used to determine the corresponding solar altitude angle according to the image attributes in the Sentinel-2 image data in the data sample library;
[0108] Hub height calculation module, used to calculate the corresponding offshore wind turbine hub height according to the shadow length and the sun altitude angle;
[0109] The installed capacity calculation module is used to fit the offshore wind turbine hub height and installed capacity, and determine the installed capacity of each offshore wind turbine according to the calculated offshore wind turbine hub height.
[0110] This system creates a training data set suitable for semantic segmentation of offshore wind turbines through the cooperation of multiple modules such as image acquisition module, new model construction module, model training module, shadow length calculation module, solar altitude angle determination module, hub height calculation module and installed capacity calculation module, and constructs a new deep learning model VC-Net model, which integrates the first 4 convolution blocks of the deep network VGG16 backbone as the encoding component of the Unet architecture; the CBAM attention mechanism is added before each upsampling in the decoding stage to accurately segment the wind turbine shadow boundary. Then, the offshore wind turbine hub height can be calculated according to the shadow length, solar altitude angle formula, etc., and the official offshore wind turbine hub height and installed capacity are fitted. The fitting formula can be used to further model the installed capacity of each offshore wind turbine according to the calculated offshore wind turbine hub height. The present invention uses Sentinel-2 images and deep learning models to realize the calculation of offshore wind turbine hub height and installed capacity; the model and modeling method are low-cost, real-time and robust; it can be applied to statistical offshore wind turbine installation in a wide range of areas, providing a reference for wind energy related departments.
[0111] like Figure 8 As shown, in a third aspect, an embodiment of the present application provides an electronic device, which includes a memory 101 for storing one or more programs and a processor 102. When the one or more programs are executed by the processor 102, any method in the first aspect described above is implemented.
[0112] The memory 101, the processor 102 and the communication interface 103 are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines. The memory 101 can be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 101. The communication interface 103 can be used to communicate signaling or data with other node devices.
[0113] Among them, the memory 101 can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.
[0114] The processor 102 may be an integrated circuit chip with signal processing capability. The processor 102 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0115] In the embodiments provided in the present application, it should be understood that the disclosed method and system can also be implemented in other ways. The method and system embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the method and system, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0116] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0117] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by the processor 102, the method as in any one of the first aspects described above is implemented. If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk.
[0118] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0119] It will be apparent to those skilled in the art that the present application is not limited to the details of the exemplary embodiments described above, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present application. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A method for calculating installed capacity of offshore wind turbines based on Sentinel-2 images and Unet model, characterized in that: The following steps are involved: Acquire and establish a data sample library based on Sentinel-2 image data; the Sentinel-2 image data includes Sentinel-2 images and corresponding image attributes, and the image attributes include satellite transit date, longitude, latitude, solar altitude angle, and image shooting time; Build a new deep learning model VC-Net based on the Unet model; Train the deep learning model VC-Net based on the data sample library; The trained deep learning model VC-Net and the Sentinel-2 image data in the data sample library are used to calculate the shadow length of the corresponding offshore wind turbine hub height; Determine the corresponding solar altitude angle according to the image attributes of the Sentinel-2 image data in the data sample library; Calculate the corresponding offshore wind turbine hub height based on the shadow length and the sun altitude angle; Fit the hub height and installed capacity of offshore wind turbines, and determine the installed capacity of each offshore wind turbine based on the calculated hub height of the offshore wind turbine; in: The method for constructing a new deep learning model VC-Net based on the Unet model comprises the following steps: The first four convolution blocks of the VGG16 backbone of the medium-depth network are integrated as the encoding components of the Unet architecture. The CBAM attention mechanism is added to the Unet architecture to accurately segment the wind turbine shadow boundary to obtain a new deep learning model VC-Net. The method for calculating the shadow length of the corresponding offshore wind turbine hub height by using the trained deep learning model VC-Net and the Sentinel-2 image data in the data sample library comprises the following steps: The images in the Sentinel-2 image data in the data sample library are sliced to obtain multiple image slices; the multiple image slices are input into the trained deep learning model VC-Net to segment the water body and the wind turbine shadow, and the corresponding segmentation results are output; an affine transformation is performed on each segmentation result to realize the conversion of the pixel coordinates to the original geographic coordinates; then the slices of each segmentation result after the conversion are spliced and merged, and the contour of the segmentation result is converted into a surface vector file to obtain the wind turbine shadow surface contour; the minimum circumscribed rectangle of the wind turbine shadow surface contour is drawn, and the length of the drawn minimum circumscribed rectangle is the shadow length of the offshore wind turbine hub height.
2. According to claim 1, a method for calculating installed capacity of offshore wind turbines based on Sentinel-2 images and Unet model is characterized in that: The method for determining the corresponding solar altitude angle according to the image attributes in the Sentinel-2 image data in the data sample library comprises the following steps: The corresponding solar altitude angle can be obtained based on the latitude of the offshore wind turbine and the shooting time of the Sentinel-2 image. .
3. The method for calculating installed capacity of offshore wind turbines based on Sentinel-2 images and Unet model according to claim 1, characterized in that: The method for calculating the corresponding offshore wind turbine hub height according to the shadow length and the sun altitude angle comprises the following steps: Using trigonometric functions, the hub height of each offshore wind turbine is calculated based on the shadow length and the sun altitude angle; The hub heights of all offshore wind turbines are counted and median calculation is performed to determine the final hub height of offshore wind turbines for the target wind farm.
4. The method for calculating installed capacity of offshore wind turbines based on Sentinel-2 images and Unet model according to claim 1, characterized in that: The following steps are also included: Determine the model performance evaluation indicators and evaluate the accuracy of the deep learning model VC-Net based on the model performance evaluation indicators.
5. An offshore wind turbine installed capacity calculation system based on Sentinel-2 images and Unet model, characterized in that: It includes image acquisition module, new model construction module, model training module, shadow length calculation module, solar altitude angle determination module, wheel hub height calculation module and installed capacity calculation module, among which: An image acquisition module is used to acquire and establish a data sample library based on Sentinel-2 image data; the Sentinel-2 image data includes Sentinel-2 images and corresponding image attributes, and the image attributes include satellite transit date, longitude, latitude, solar altitude angle, and image shooting time; A new model building module is used to build a new deep learning model VC-Net based on the Unet model, including: integrating the first four convolution blocks of the deep network VGG16 backbone as the encoding component of the Unet architecture; adding the CBAM attention mechanism on the basis of the Unet architecture to accurately segment the wind turbine shadow boundary to obtain a new deep learning model VC-Net; Model training module, used to train the deep learning model VC-Net based on the data sample library; The shadow length calculation module is used to calculate the shadow length of the corresponding offshore wind turbine hub height using the trained deep learning model VC-Net and the Sentinel-2 image data in the data sample library, including: slicing the image in the Sentinel-2 image data in the data sample library to obtain multiple image slices; inputting the multiple image slices into the trained deep learning model VC-Net to segment the water body and the wind turbine shadow, and outputting the corresponding segmentation results; performing an affine transformation on each segmentation result to achieve the conversion of the original geographic coordinates of the pixel coordinates; then splicing and merging the slices of each segmentation result after the conversion, and converting the contour of the segmentation result into a surface vector file to obtain the wind turbine shadow surface contour; drawing the minimum circumscribed rectangle of the wind turbine shadow surface contour, and the length of the drawn minimum circumscribed rectangle is the shadow length of the offshore wind turbine hub height; The solar altitude angle determination module is used to determine the corresponding solar altitude angle according to the image attributes in the Sentinel-2 image data in the data sample library; Hub height calculation module, used to calculate the corresponding offshore wind turbine hub height according to the shadow length and the sun altitude angle; The installed capacity calculation module is used to fit the offshore wind turbine hub height and installed capacity, and determine the installed capacity of each offshore wind turbine according to the calculated offshore wind turbine hub height.
6. An electronic device, characterized in that: include: A memory for storing one or more programs; processor; When the one or more programs are executed by the processor, the method according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
