A laser radar wind measurement motion compensation method and system based on machine learning

Through the supervised learning method and cross-validation technology based on machine learning, the data deviation caused by the platform swing of the laser wind measurement radar in the marine environment is processed, and high-accuracy compensation of the laser wind measurement data is achieved, solving the data problems in the existing technology. Problems with poor scalability of assumptions and models over the sample period.

CN114218860BActive Publication Date: 2024-09-20HANGZHOU TITAN NEW ENERGY TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111524679.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-14
Publication Date
2024-09-20
Estimated Expiration
2041-12-14

AI Technical Summary

Technical Problem

In the marine environment, the deployment platform of laser wind measurement radar will swing due to the influence of ocean currents and waves, causing the laser beam pointing to be unstable, resulting in deviations between wind measurement data and actual data. The existing technology assumes scanning within the data sample period. The cross-section is circular but actually has an irregular shape, and the model has poor scalability to the dynamic velocity and angular velocity of the buoy.

Method used

A supervised learning method based on machine learning is used, using lidar wind measurement data and motion sensor data on sea surface buoys as feature variables, using data from standard wind measurement equipment as target variables for supervised learning, and selecting the best hyperparameters through cross-validation. And the optimal machine learning model is used to preprocess and train the wind measurement data to be compensated to obtain the actual wind measurement data after compensation.

Benefits of technology

It significantly improves the accuracy of wind measurement data, can effectively handle irregular scanning sections and dynamic changes of buoys, and improves the accuracy of data and the scalability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114218860B
    Figure CN114218860B
Patent Text Reader

Abstract

The present invention discloses a laser radar wind measurement motion compensation method and system based on machine learning, comprising: obtaining laser radar wind measurement data and motion sensor data fixed on a buoy as characteristic variables, and obtaining wind measurement data of a standard wind measurement device fixedly installed near the buoy as a target variable; performing data preprocessing on the characteristic variables and the target variables, wherein the data preprocessing comprises converting the angle data in the characteristic variables and the target variables into cosine or sine variables; dividing a data set composed of the preprocessed characteristic variables and the target variables into a training set and a test set; inputting the training set into a plurality of machine learning models for training; using a test set to evaluate the training results of the plurality of models according to evaluation indicators composed of R-square and mean absolute error, and selecting the optimal machine learning model; using a KFold method to divide the data set and cross-validate the optimal model, and obtaining the optimal hyperparameters of the optimal machine learning model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wind power technology, and in particular to a laser radar wind measurement motion compensation method and system based on machine learning. Background Art

[0002] Offshore wind power resources are very abundant and have become the main battlefield for future wind power development. Accurate assessment of wind resources in the early stage has become very important. Compared with traditional offshore wind towers, laser wind radar has the advantages of good portability, low deployment cost, multi-height measurement, good data integrity, and high accuracy. It has become the most promising means of measuring wind field information. However, due to the harsh marine environment, the radar deployment platform will produce translation, tilt, flip and other posture swing problems due to ocean currents, waves, etc., resulting in the laser beam of the laser wind radar not being fixed and changing with the movement of the platform. At this time, the radar's wind measurement data will have a large deviation from the actual data, so it is necessary to perform motion compensation calculations on the wind measurement data.

[0003] In the prior art, there are many studies on traditional analysis methods for calculating wind parameters such as wind speed and wind direction. They mainly use mathematical tools such as Euler angles and quaternions to perform rotation calculations in a three-dimensional coordinate system. The above prior art has the following technical problems: (1) The method based on coordinate transformation assumes that the scanning cross-section of the radar range is circular within the data sample period. In fact, due to the influence of the buoy's floating state, the cross-section is an irregular shape. In the calibration procedure based on the machine learning algorithm, since the entire system is considered as a model, the above problems can be avoided well. (2) For the influence of basic parameters such as heading angle / pitch angle / roll angle, the method based on coordinate transformation can be well described. However, due to the complexity of the calculation formula and the model solution, the model has poor scalability for variables such as speed / angular velocity of the buoy dynamics. Based on the machine learning algorithm, only variables such as speed / angular velocity need to be used as model input, without considering the complexity of the solution. Summary of the invention

[0004] One of the inventive objectives of the present invention is to provide a laser radar wind measurement motion compensation method and system based on machine learning. The method and system adopt a supervised learning method, use the laser radar wind measurement data and motion sensor data on the sea surface buoy as feature variables, and use the wind measurement data of a standard wind measuring device fixedly installed near the buoy as the target variable for supervised learning, thereby greatly improving the accuracy of the wind measurement data.

[0005] Another inventive object of the present invention is to provide a laser radar wind measurement motion compensation method and system based on machine learning. The method and system use a cross-validation method to evaluate the supervised learning model, select the best hyperparameter tuning and the best machine learning model, and then input the data set consisting of the preprocessed feature variables and target variables and the best hyperparameters into the selected optimal machine learning model for training to obtain a trained optimal machine learning model; the wind measurement data and motion data to be motion compensated are input into the trained optimal machine learning model to obtain the actual wind measurement data after compensation.

[0006] Another object of the present invention is to provide a method and system for motion compensation of laser radar wind measurement based on machine learning. The method and system use quartiles to scale the acquired wind measurement data and motion data, thereby establishing a standardized data set, which can improve the accuracy of the supervised model.

[0007] In order to achieve at least one of the above-mentioned invention objects, the present invention further provides a laser radar wind measurement motion compensation method based on machine learning, the method comprising the following steps:

[0008] The laser radar wind measurement data and motion sensor data fixed on the buoy are obtained as feature variables, and the wind measurement data of the standard wind measurement equipment fixed near the buoy is obtained as the target variable;

[0009] Performing data preprocessing on the characteristic variables and the target variables, wherein the data preprocessing includes converting the angle data in the characteristic variables and the target variables into cosine or sine variables;

[0010] Dividing the data set composed of the preprocessed feature variables and target variables into a training set and a test set; inputting the training set into multiple machine learning models for training;

[0011] According to the evaluation indicators composed of R square and mean absolute error, the test set is used to evaluate the training results of the above multiple models and select the optimal machine learning model;

[0012] Use the KFold method to divide the data set and cross-validate the optimal model to obtain the optimal hyperparameters of the optimal machine learning model;

[0013] Input the data set composed of the preprocessed feature variables and target variables and the optimal hyperparameters into the selected optimal machine learning model for training to obtain a trained optimal machine learning model;

[0014] The wind measurement data to be motion compensated and the motion data are input into the trained optimal machine learning model to obtain the actual wind measurement data after compensation.

[0015] According to one of the preferred embodiments of the present invention, the method for obtaining characteristic variables and target variables includes:

[0016] Obtain the height, wind direction, horizontal wind speed, and vertical wind speed detected by the laser radar on the buoy, where the wind direction is the deviation angle from due north;

[0017] Get the pitch angle, heading angle and roll angle of the motion sensor on the same buoy;

[0018] Get the height, wind direction, horizontal wind speed, and vertical wind speed detected by the same specification lidar near the same buoy shore.

[0019] According to another preferred embodiment of the present invention, the data preprocessing method includes: detecting and eliminating abnormal values ​​of feature variables and target variables, standardizing the feature variables and target variables and dividing them into a training set and a test set.

[0020] According to another preferred embodiment of the present invention, the data preprocessing method includes: obtaining the angle data of the feature variable and the target variable, converting the angle data into a cosine variable or a sine variable, and establishing a mapping relationship between the cosine variable or the sine variable and the angle, and converting it into an angle value after completing the model training:

[0021] θ→(sin(θ), cos(θ));

[0022] arctan2(sin(θ),cos(θ))→θ.

[0023] According to another preferred embodiment of the present invention, the data preprocessing method includes: scaling the data sets of the feature variables and the target variables using the quartile range, and standardizing the data sets, and the calculation method of the data set standardization includes:

[0024]

[0025] v i is a value in the same type of data set, median is the median of the same type of data set, and IQR is the interquartile range of the sample.

[0026] According to another preferred embodiment of the present invention, the calculation method of the evaluation model includes:

[0027]

[0028] Where MAE is the mean absolute error, R 2 is the goodness of fit, y i is the observed value, is the predicted value, is the average value.

[0029] According to another preferred embodiment of the present invention, the preprocessed data set is divided into a training set and a test set, and the training set is input into multiple machine learning models, wherein the machine learning models include: Lasso model, ElasticNet model, GradientBoost model, XGB model, LGB model and SVR model, and the output prediction value of each machine learning model is obtained, and the test set is used to judge the optimal machine learning model according to the evaluation criteria of the evaluation model.

[0030] According to another preferred embodiment of the present invention, the KFold method is used to divide the data set into N mutually exclusive subsets, and each time one of the subsets that is different from the previous one is used as a test set, and the remaining N-1 subsets are used as training sets and input into the optimal machine learning model to obtain N results for cross-validation, and the best hyperparameters are obtained according to the verification results.

[0031] In order to achieve at least one of the above-mentioned purposes of the invention, the present invention further provides a laser radar wind measurement motion compensation system based on machine learning, and the system executes the laser radar wind measurement motion compensation method based on machine learning.

[0032] The present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program can be executed by a processor to describe a laser radar wind measurement motion compensation method based on machine learning. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 Shown is a flow chart of a laser radar wind measurement motion compensation method based on machine learning according to the present invention. DETAILED DESCRIPTION

[0034] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.

[0035] It is to be understood that the term "one" should be understood as "at least one" or "one or more", that is, in one embodiment, the number of an element may be one, while in another embodiment, the number of the element may be multiple, and the term "one" should not be understood as a limitation on the quantity.

[0036] Please combine Figure 1The present invention discloses a laser radar wind measurement motion compensation method and system based on machine learning, wherein the method comprises the following steps: first, it is necessary to obtain characteristic variables and target variables, wherein the characteristic variable is obtained by: setting a buoy, and installing a laser radar and a motion sensor on the buoy, wherein the distance between the buoy and the target variable corresponding to a fixedly installed reference device is within 500 meters, and the altitude, wind direction, horizontal wind speed and vertical wind speed are directly obtained by the laser radar sensor, wherein the wind direction is the deviation angle from due north, and the pitch angle, heading angle and roll angle of the motion sensor can be directly obtained, wherein the frequency of data acquisition is 5Hz.

[0037] The method for obtaining the target variable includes: setting a fixed detection point within 500 meters from the buoy, wherein the fixed detection point is installed with a wind measuring device that meets the IEC 61400-12-1:2017 standard, wherein the standard wind measuring device at the detection point can detect actual wind-related parameters relative to the ground, and the wind-related parameters include: height, wind direction, horizontal wind speed and vertical wind speed. Since the distance between the fixed detection point and the buoy is close, it can be considered that the actual wind-related parameters are the same.

[0038] Furthermore, after acquiring the characteristic variables and target variables, the present invention performs data preprocessing on the characteristic variables and target variables, wherein the data preprocessing method includes: extracting important variables from the acquired data, such as the height, wind direction, horizontal wind speed and vertical wind speed of the laser radar, and arranging the formats of the variables, unifying the formats of the units and digits after the decimal point of the same type of variables; and detecting abnormal values ​​of the data set, because the laser radar may have a fault that causes the output value to be an abnormal value such as 9998 / 9999, so when the abnormal value is detected, the abnormal value needs to be removed. The cleaned data set is further standardized, and the standardized data set is divided into a training set and a test set for subsequent model training.

[0039] It is worth mentioning that the standardization processing of the data set includes: converting the angle data (wind direction, pitch angle, heading angle and roll angle) detected by the lidar and motion sensor into data recognizable by the machine model, wherein the angle data is converted into the cosine value or sine value of the corresponding angle, and establishing an angle mapping relationship corresponding to the cosine value or sine value. Since the machine learning model cannot recognize the jump of the movement angle of 0-360°, converting the angle into sine value or cosine value can solve the above problem. After completing the machine learning training, the cosine value or sine value is further converted into the corresponding angle according to the mapping relationship: θ→(sin(θ), cos(θ)); θ→(sin(θ), cos(θ)).

[0040] The method for standardizing the data set also includes: using robust statistical information of outliers to scale features, using the quartile data range to scale the data set, and standardizing the data set. The standardized data set can improve the accuracy of the machine learning model and improve the convergence of the machine learning model. The formula for scaling the data set by the quartile data range is:

[0041]

[0042] v i is a value in the same type of data set, median is the median of the same type of data set, and IQR is the interquartile range of the sample.

[0043] After the data set is normalized, it is divided into a training set and a test set in a ratio of 8:2.

[0044] The present invention further establishes an evaluation model for a machine learning algorithm, wherein the indicators of the evaluation model include R-square (R2) and mean absolute error (MAE), wherein the value of R-square needs to reach 0.97 or above, and the closer the value of R-square is to 1, the better the prediction effect of the machine learning algorithm, and the smaller the mean absolute error, the better. The combination of the two indicators of R-square (R2) and mean absolute error (MAE) of the evaluation model includes but is not limited to weighted summation and the like. The implementation of the evaluation model can be multiple, so the present invention will not give detailed examples of the implementation of the evaluation model, wherein the calculation formulas of the absolute error (MAE) and R-square (R2) are:

[0045]

[0046] Where MAE is the mean absolute error, R 2 is the goodness of fit, y i is the observed value, is the predicted value, is the average value.

[0047] The present invention adopts the KFold method to divide the standardized data set into N subsets, wherein one subset is selected as the test set each time, and the remaining N-1 subsets are used as training sets. When each subset is used as the test set, N results are generated, and the N results are cross-validated to obtain the optimal hyperparameters of the machine model. The cross-validation method is a prior art and will not be described in detail in the present invention.

[0048] It should be noted that the present invention needs to input the training set into a variety of machine learning models including but not limited to Lasso, ElasticNet, GradientBoost, XGB, LGB, SVR, etc. for training. And obtain the optimal hyperparameters of each machine learning model according to the KFold method, and obtain the optimal machine learning model according to the evaluation model. For example, the model of the best corrected wind speed is the Lasso algorithm model, the full name of which is Least Absolute Shrinkageand Selection Operator. The training set contains corresponding feature variables and target variables. After the training is completed, the corrected real wind speed can be output by inputting the feature variables. For example, the best model for correcting wind direction is SVR, the full name of Support Vector Regression, which is a machine learning algorithm that uses SVM (support vector machine) to predict continuous target variables. After the training is completed, the corrected real wind direction can be obtained by inputting the feature variables into the SVR model. The output values ​​corresponding to the best machine learning model corresponding to each type of feature variable are further combined to generate the corrected wind parameter data.

[0049] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the central processing unit (CPU), the above-mentioned functions defined in the method of the present application are executed. It should be noted that the above-mentioned computer-readable medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of an electrical, magnetic, optical, electromagnetic, infrared segment, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wire segments, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, electrical wire, optical cable, RF, etc., or any suitable combination of the foregoing.

[0050] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0051] Those skilled in the art should understand that the embodiments of the present invention described above and shown in the accompanying drawings are only examples and do not limit the present invention. The objectives of the present invention have been fully and effectively achieved. The functional and structural principles of the present invention have been demonstrated and explained in the embodiments. Without departing from the principles, the implementation methods of the present invention may be deformed or modified in any way.

Claims

1. A laser radar wind measurement motion compensation method based on machine learning, characterized in that: The method comprises the following steps: The laser radar wind measurement data and motion sensor data fixed on the buoy are obtained as feature variables, and the wind measurement data of the standard wind measurement equipment fixed near the buoy is obtained as the target variable; Performing data preprocessing on the characteristic variables and the target variables, wherein the data preprocessing includes converting the angle data in the characteristic variables and the target variables into cosine or sine variables; Dividing the data set composed of the preprocessed feature variables and target variables into a training set and a test set; inputting the training set into multiple machine learning models for training; According to the evaluation indicators composed of R square and mean absolute error, the test set is used to evaluate the training results of the above multiple models and select the optimal machine learning model; Use the KFold method to divide the data set and cross-validate the optimal model to obtain the optimal hyperparameters of the optimal machine learning model; Input the data set composed of the preprocessed feature variables and target variables and the optimal hyperparameters into the selected optimal machine learning model for training to obtain a trained optimal machine learning model; The wind measurement data to be motion compensated and the motion data are input into the trained optimal machine learning model to obtain the actual wind measurement data after compensation.

2. The method for laser radar wind measurement motion compensation based on machine learning according to claim 1, characterized in that: The method for obtaining characteristic variables and target variables includes: Obtain the height, wind direction, horizontal wind speed, and vertical wind speed detected by the laser radar on the buoy, where the wind direction is the deviation angle from due north; Get the pitch angle, heading angle and roll angle of the motion sensor on the same buoy; Obtain the height, wind direction, horizontal wind speed and vertical wind speed detected by a standard wind measuring device that meets the same wind measurement standards and is fixedly installed near the same buoy.

3. The laser radar wind measurement motion compensation method based on machine learning according to claim 1 is characterized in that: The data preprocessing method includes: detecting and eliminating abnormal values ​​of characteristic variables and target variables, standardizing the characteristic variables and target variables and dividing them into a training set and a test set.

4. The laser radar wind measurement motion compensation method based on machine learning according to claim 1 is characterized in that: The data preprocessing method includes: obtaining the angle data of the feature variable and the target variable, converting the angle data into a cosine variable or a sine variable, establishing a mapping relationship between the cosine variable or the sine variable and the angle, and converting the angle data into an angle value after completing the model training: θ→(sin(θ), cos(θ)); arctan2(sin(θ),cos(θ))→θ.

5. The laser radar wind measurement motion compensation method based on machine learning according to claim 1, characterized in that: The data preprocessing method includes: scaling the data sets of the feature variables and the target variables using the quartile range, and standardizing the data sets. The calculation method for standardizing the data sets includes: v i is a value in the same type of data set, median is the median of the same type of data set, and IQR is the interquartile range of the sample.

6. The method for laser radar wind measurement motion compensation based on machine learning according to claim 1, characterized in that: The calculation method of the evaluation model includes: Where MAE is the mean absolute error, R 2 is the goodness of fit, y i is the observed value, is the predicted value, is the average value.

7. The method for laser radar wind measurement motion compensation based on machine learning according to claim 5, characterized in that: The preprocessed data set is divided into a training set and a test set, and the training set is input into multiple machine learning models, wherein the machine learning models include: Lasso model, ElasticNet model, GradientBoost model, XGB model, LGB model and SVR model, and the output prediction value of each machine learning model is obtained, and the test set is used to judge the optimal machine learning model according to the evaluation criteria of the evaluation model.

8. The laser radar wind measurement motion compensation method based on machine learning according to claim 7 is characterized in that: The KFold method is used to divide the data set into N mutually exclusive subsets. Each time, one of the subsets that is different from the previous one is used as the test set, and the remaining N-1 subsets are used as training sets to input into the optimal machine learning model to obtain N results for cross-validation, and the optimal hyperparameters are obtained according to the verification results.

9. A laser radar wind measurement motion compensation system based on machine learning, characterized in that: The system executes a laser radar wind measurement motion compensation method based on machine learning as described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the laser radar wind measurement motion compensation method based on machine learning as described in any one of claims 1 to 8.