A medium- and long-term wind speed forecasting method based on low-frequency filtering and autocorrelation
By using deep learning methods based on low-frequency filtering and autocorrelation to decompose wind speed sequences and learn the trend and periodic characteristics of wind speed, the problem of insufficient accuracy in mid- and long-term wind speed prediction is solved, and more efficient wind speed prediction and calculation efficiency are achieved.
Patent Information
- Application Number
- CN202410634167.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-22
AI Technical Summary
Existing wind speed prediction methods have problems with insufficient accuracy and large prediction errors in mid- and long-term predictions. In particular, due to the highly non-stationary characteristics and volatility of wind speed series, traditional methods are ineffective in mid- and long-term wind speed predictions.
Using a deep learning method based on low-frequency filtering and autocorrelation, through the steps of sequence decomposition, normalization, model training and inverse normalization, the wind speed sequence is decomposed into trend terms, periodic terms and residual terms, and autocorrelation is used The module learns periodic characteristics and builds a prediction model more suitable for wind speed fluctuation characteristics.
It improves the accuracy and calculation efficiency of mid- to long-term wind speed prediction, can better capture the trend and periodic characteristics of wind speed, and reduces the flatness of prediction results, which is better than traditional statistical models and other methods.
Smart Images

Figure CN118228002B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of wind speed prediction, and in particular, relates to a medium- and long-term wind speed prediction method based on low-frequency filtering and autocorrelation. Background Art
[0002] Wind energy is one of the most important and widely used renewable energy sources. Due to the randomness and intermittency of wind power, the popularity of wind power generation has brought many challenges to the operation and planning of global power systems. In order to meet these challenges, it is necessary to develop more accurate wind prediction models and methods. Wind turbine power output is strongly correlated with wind speed. When the wind speed is known, the corresponding power curve can be fitted. Therefore, if the wind speed can be accurately predicted, the wind turbine power can basically be accurately predicted. Since a small error in wind speed prediction may lead to a large error in wind power prediction, it has a significant impact on wind power generation prediction, and accurate wind speed prediction has also become a very important research topic.
[0003] Various prediction methods and models are used to predict wind speed with varying success rates. These methods include physical methods, statistical methods, and deep learning-based methods. Physical methods use meteorological data of wind farms, such as atmospheric temperature, pressure, surface roughness, obstacles, etc. to predict wind speed. The wind speed prediction results can be further used to plot wind power turbine power curves. Previous studies have shown that physical models have good performance in medium- and long-term wind speed forecasts, but these physical methods require in-depth calculations and a lot of time. Statistical methods and deep learning-based methods are both data-driven models that can use recorded wind speed values at any location for prediction. Time series-based statistical models can give a function based on past wind speeds. Traditional statistical models usually have good performance in ultra-short-term and short-term forecasts, but they do not work well in medium- and long-term forecasts.
[0004] Wind speed forecasting can be classified as time series forecasting. There have been many related studies on time series forecasting based on deep learning, but not many studies focus on wind speed forecasting. Wind speed forecasting has its own unique characteristics, and directly migrating general time series forecasting methods may not necessarily achieve good results. The key to wind speed forecasting is to explore the persistence law of the atmosphere from the historical wind speed series, and then infer the changing trend of wind speed. The difficulty of forecasting lies in the highly non-stationary characteristics of the wind speed series, which is affected by the fluctuation, intermittent, and disordered characteristics of the wind speed itself. In view of this characteristic, when forecasting wind speed, it is easy to have problems such as insufficient prediction accuracy and significant increase in prediction error with the prediction step size. The short-term and ultra-short-term time scales are short, and it is relatively easier to have accurate prediction results. Most researchers are invested in short-term and ultra-short-term forecasts. Due to the actual demand for wind power generation, people have begun to pay more and more attention to medium- and long-term wind speed forecasting in the past two years, but due to the longer prediction scale and higher prediction difficulty, research in this area is still lacking. Medium- and long-term wind speed forecasting generally refers to a forecast scale of six hours or more. Summary of the invention
[0005] In response to the above problems, the present invention proposes a medium- and long-term wind speed prediction method based on low-frequency filtering and autocorrelation. A relationship network between input data and output data is constructed based on a deep learning method, and historical data is used for training according to various learning algorithms. This type of model can better solve complex nonlinear problems and has better performance in wind speed prediction than traditional statistical models.
[0006] The present invention is achieved through the following technical solutions:
[0007] A medium- and long-term wind speed prediction method based on low-frequency filtering and autocorrelation:
[0008] The method specifically comprises the following steps:
[0009] Step 1: sequence decomposition: input the wind speed sequence collected in the past and decompose it using a deep learning time series decomposition method based on low-frequency filtering;
[0010] Step 2: normalization, normalizing the data decomposed in step 1;
[0011] Step 3: Model training: input the data processed in step 2 and train the autocorrelation and multi-layer linear layers;
[0012] Step 4, inverse normalization, input the most recently collected new wind speed sequence into the model trained in step 3 for prediction, inverse normalize the prediction results, restore the prediction results to the original data scale, and obtain the wind speed forecast for a period of time in the future.
[0013] Furthermore, in step 1,
[0014] The input wind speed sequence is first decomposed into a low-frequency part and a high-frequency part by a low-frequency filtering method;
[0015] The low-frequency part and the high-frequency part are further decomposed using the sliding average method. The low-frequency part is decomposed into trend term and period term 1, and the high-frequency part is decomposed into period term 2 and residual term.
[0016] Combine the two periodic terms and use the autocorrelation module to learn the periodic features;
[0017] For the trend term and residual term, multiple linear layers are used for learning.
[0018] Furthermore, the method of low-frequency filtering is specifically as follows: using fast Fourier transform to transform the wind speed sequence into the frequency domain, using shift to place the low-frequency part at the center, and using low-frequency filtering to obtain the central low-frequency part in the time dimension; the remaining part is the high-frequency part; then using inverse transform to restore the data of the low-frequency part and the data of the high-frequency part, completing the low-frequency filtering decomposition.
[0019] Furthermore, the result of low-frequency filtering decomposition is further decomposed. Here, a sliding average method is used. The sliding average method selects the current observed k data, the past k data, and the future k data for averaging;
[0020] The low-frequency part is further averaged to obtain the trend part, i.e., the trend term, and the remaining part contains the periodic information, i.e., the periodic term 1;
[0021] After averaging the high-frequency part, it contains periodic information, namely, periodic term 2, and the remaining part is wind speed fluctuation information, namely, residual term; periodic term 1 and periodic term 2 can be superimposed.
[0022] Furthermore, in step 2,
[0023] The trend term, cycle term 1, cycle term 2, and residual term all need to be normalized and converted into values with similar ranges.
[0024] Furthermore, in step 3,
[0025] After merging and normalizing the two periodic terms, the autocorrelation module is used to learn the periodic features;
[0026] Use FFT to observe the sequence in the frequency domain. Through FFT, we can get the amplitude of the sequence at different frequencies. A large amplitude indicates that the sequence has a strong signal at this frequency. The time length corresponding to this frequency is considered to be the period length of the sequence.
[0027] That is, first use FFT to analyze the frequency domain to find the main periodic components; then use the autocorrelation module to further learn the periodic characteristics of the sequence in the time domain.
[0028] Furthermore, after the trend term and residual term are normalized, multi-layer linear layers are used for learning.
[0029] A medium- and long-term wind speed prediction system based on low-frequency filtering and autocorrelation:
[0030] The prediction system includes a sequence decomposition module, a normalization module, a deep learning module and a denormalization module:
[0031] Input the wind speed sequence collected in the past, and decompose it by using the deep learning time series decomposition method based on low-frequency filtering through the sequence decomposition module;
[0032] The normalization module is used to normalize the data decomposed by the sequence decomposition module;
[0033] Input the data processed by the normalization module, and train the autocorrelation and multi-layer linear layers through the deep learning module;
[0034] The newly collected wind speed sequence is input into the model trained in step 3 for prediction. The prediction result is inversely normalized by the normalization module, and the prediction result is restored to the original data scale to obtain the wind speed prediction for a period of time in the future.
[0035] An electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0036] A computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed by a processor, the steps of the above method are implemented.
[0037] Beneficial effects of the present invention
[0038] (1) Using the deep learning time series decomposition method based on low-frequency filtering, the original sequence can be gradually decomposed into trend terms, periodic terms and residual terms using deep learning methods, which is more in line with the random characteristics of wind speed fluctuations and makes it easier for the model to learn the trend and periodic characteristics of wind speed, while the prediction results will not tend to be flat.
[0039] (2) The time series periodic learning module based on autocorrelation and full connection optimizes the calculation method compared with previous methods and is more suitable for wind speed prediction problems. It improves the prediction performance while also improving the calculation efficiency.
[0040] (3) Using normalization and denormalization methods to process data can ensure that the mean and variance of the input sequence are roughly the same as the mean and variance of the output sequence, and perform a certain calibration on the output sequence. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is the overall structure of the wind speed prediction model based on low-frequency filtering and autocorrelation of the present invention.
[0042] Figure 2 It is a deep learning time series decomposition method based on low-frequency filtering.
[0043] Figure 3 It is a time series periodicity learning method based on autocorrelation and full connection. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0045] In the problem of wind speed prediction, the present invention uses the wind speed in the past as the input of the deep learning model, and expects to obtain the wind speed prediction for the future as the output.
[0046] A medium- and long-term wind speed prediction method based on low-frequency filtering and autocorrelation:
[0047] The method specifically comprises the following steps:
[0048] Step 1: sequence decomposition: input the wind speed sequence collected in the past and decompose it using a deep learning time series decomposition method based on low-frequency filtering;
[0049] Wind speed series is a type of time series that describes the wind speed values at a specific time point or time period. It usually includes time and corresponding wind speed data.
[0050] The wind speed series includes but is not limited to the following data:
[0051] Timestamp: The time point or time period of each measurement is recorded. This helps to associate wind speed values with specific times, allowing analysis of wind speed trends and periodicity.
[0052] Wind speed value: indicates the wind speed value at a specific time point or time period. It is usually expressed as the average wind speed per hour, per minute or other time interval.
[0053] Direction: Sometimes the direction of the wind is recorded, which is critical in industries such as wind energy.
[0054] Collection source: also includes information about sensors or equipment that collect wind speed data.
[0055] Time series data is of great significance in the wind energy industry, meteorology, environmental science, and some engineering applications. By analyzing the wind speed series, we can understand the changing patterns, periodicity, and trends of wind speed. This information is of great value in wind power generation planning, weather forecasting, climate research, and other fields.
[0056] In the problem of time series prediction, decomposing the time series is a common method. Since time series decomposition has a certain time overhead, the series is usually decomposed before the data is fed into the deep learning model, and then the decomposition results are learned separately.
[0057] The input wind speed sequence is first decomposed into a low-frequency part and a high-frequency part by low-frequency filtering. The low-frequency part is considered to retain more large trend characteristics, while the high-frequency part has more fluctuation information.
[0058] The low-frequency part and the high-frequency part are further decomposed using the sliding average method. The low-frequency part is decomposed into trend term and cycle term 1, and the high-frequency part is decomposed into cycle term 2 and residual term (fluctuation term).
[0059] Combine the two periodic terms and use the autocorrelation module to specifically learn the periodic features;
[0060] For the trend term and residual term, multiple linear layers are used for learning.
[0061] The present invention adopts a deep learning time series decomposition method based on low-frequency filtering to make the model more purposeful during deep learning, and to separate trend terms, periodic terms and fluctuation terms as much as possible to obtain better prediction results.
[0062] Low-frequency filtering is common in image processing. For an image, low frequency corresponds to the grayscale component that changes slowly in the image, while high frequency corresponds to the grayscale component that changes faster and faster in the image. Using low-frequency filtering can only allow low-frequency signals to pass through in the frequency domain, obtain the overall information in the image, and then achieve the purpose of blurring the image.
[0063] When the time series is converted to the frequency domain, low frequencies correspond to slowly changing features, while high frequencies correspond to rapidly changing features. Generally speaking, the changing trend and general periodic fluctuations of the series can be observed in the low-frequency part; the high-frequency part may also contain a small amount of periodic fluctuation information and disordered fluctuation information of the wind speed itself.
[0064] The wind speed prediction model in the prior art also attempts to decompose the sequence in the frequency domain, but it is often placed in the preprocessing stage, that is, before being sent to the model. The present invention puts the decomposition into the deep learning model, giving the deep prediction model the inherent ability of progressive decomposition.
[0065] The method of low-frequency filtering is specifically as follows: Figure 2 As shown in the figure, the wind speed sequence is transformed into the frequency domain using Fast Fourier Transform (FFT). The transformation result here contains negative frequency terms. The low-frequency part is placed at the center using shift, and the central low-frequency part is obtained in the time dimension using low-frequency filtering; the remaining part is the high-frequency part; then the inverse transform is used to restore the data of the low-frequency part and the high-frequency part, completing the low-frequency filtering decomposition.
[0066] The simplest sequence decomposition method, sliding average, is incorporated into the model to give the deep prediction model the inherent ability of progressive decomposition.
[0067] The result of low-frequency filtering decomposition is further decomposed. Here, the sliding average method is used. The sliding average method selects the current observed k data, the past k data, and the future k data for averaging. In the actual model, when the sliding window is k, it means that there are k data in the window, and it can also be k node data before and after the current time node. Generally speaking, the higher the order, the smoother the curve. Through averaging, the random factors in the sequence are filtered out, so as to obtain the long-term trend, and the remaining part contains periodic changes and residuals;
[0068] The low-frequency part is further averaged to obtain the trend part, i.e., the trend term, and the remaining part may contain periodic information, i.e., the periodic term 1;
[0069] After averaging the high-frequency part, it may contain periodic information, namely, periodic term 2, and the remaining part is wind speed fluctuation information, namely, residual term; periodic term 1 and periodic term 2 can be superimposed.
[0070] In ordinary time series, the random volatility of data is not obvious, and the series is mainly composed of trend items and periodic items. Using sliding average decomposition can obtain good prediction results. However, wind speed has the characteristics of fluctuation, intermittence, and disorder, so the periodic part and the fluctuation part cannot be discussed together, which will cause the model to become flat during the learning process.
[0071] The low-frequency filtering decomposition finally decomposes the original sequence into trend sequence, period sequence and residual sequence. Compared with the simple sliding average method, it can better separate the three periods, which is convenient for subsequent model learning.
[0072] Step 2, normalization, normalizes the data decomposed in step 1 to improve the stability and effect of training; converts the original data into values within a specific range. Normalization is performed before the data is input into the model to ensure that the values of different features are in the same range;
[0073] Normalizing the sequence is a common method in time series forecasting, which can make the model more stable and generally improve the forecasting performance.
[0074] Step 3: Model training: input the data processed in step 2 and train the autocorrelation and multi-layer linear layers;
[0075] Autocorrelation describes the relationship between a set of time series and the interval before it. The correlation between a set of time series at moments. The length is Time Series , and postpone the sequence in sequence The length is obtained New sequence For one of the sequences Calculate its autocorrelation coefficient:
[0076]
[0077] Generally speaking, when a time series has a period When New sequences of length have better correlation.
[0078] The problem is that after the sequence is mixed with residual terms and trend terms, and generally there are multiple cycles superimposed in the same sequence, the cycle length is difficult to observe directly in the time domain.
[0079] FFT is used to observe the sequence in the frequency domain. Through FFT, the amplitude of the sequence at different frequencies can be obtained. A large amplitude indicates that the sequence has a strong signal at this frequency. The time length corresponding to this frequency can be considered as the period length of the sequence.
[0080] For the seasonal terms input into the deep learning model, the frequencies with the largest amplitudes are obtained through FFT, the sequence is delayed by the corresponding period length, multiplied by the weights after passing through a fully connected layer, and then superimposed, where the weights come from the amplitudes. Figure 3As shown. In models such as Autoformer, the Transformer architecture is often used to learn periodic sequences. Each Transformer architecture requires multiple weight modules, which consumes a lot of computing resources and has low computing efficiency. The present invention uses the Linear module to replace the Transformer module. In the problem of wind speed prediction, the periodic characteristics can be fully learned, with better prediction performance and rapid improvement of computing efficiency.
[0081] By observation, a general signal has a large amplitude when the frequency is 1, and the corresponding period is the complete length of the sequence. The present invention does not consider this period and selects the frequency starting from the frequency of 2. At the end of the superposition result, the original sequence is connected through the residual module.
[0082] Using the autocorrelation module helps the model learn seasonal terms better and improves model performance. Seasonal terms are usually used as part of time series analysis to capture and model seasonal patterns in data. Seasonal patterns refer to periodic fluctuations that occur repeatedly within a certain time frame. These fluctuations may be affected by time units such as seasons, months, and weeks.
[0083] In time series decomposition, the seasonal term feature represents the periodic changes of the series within a specific time unit. For each time unit, the model learns a seasonal term associated with it to capture the periodic patterns that occur within that time unit.
[0084] In time series decomposition models, seasonal components are usually separated from trend, cycle, and residual terms to more accurately model and predict the individual components of the time series. This decomposition helps to better understand the patterns on different time scales in the data and improve the model's ability to predict future trends and seasonal changes.
[0085] FFT is a method for analyzing signals in the frequency domain. It allows us to observe the components of different frequencies in the signal by converting the signal from the time domain to the frequency domain. FFT is used to observe the frequency domain information of the wind speed series to select the frequency with the largest amplitude to obtain the periodic information of the series. This method helps to extract the main periodic components in the signal.
[0086] Autocorrelation is a measure of the similarity between a time series and itself at different time points. It reveals the periodicity and regularity within the series by calculating the correlation of the series at different time lags.
[0087] Use the autocorrelation module to learn the periodic features in the sequence. This can detect the inherent periodicity of the sequence at different time lags by calculating the autocorrelation function. Such learning can help the model better understand the repetitive patterns in the sequence.
[0088] That is, first, use FFT to analyze the frequency domain to find the main periodic components. Secondly, the periodic characteristics of the sequence are further learned in the time domain through the autocorrelation module, which helps to discover some details or additional information that FFT fails to capture.
[0089] The combined use of FFT and autocorrelation can provide a more comprehensive understanding of the structure and periodicity of the time series and provide a richer feature representation for the model. The two are often regarded as complementary tools in time series analysis.
[0090] After merging and normalizing the two periodic terms, the autocorrelation module is used to learn the periodic features;
[0091] The autocorrelation module learns the periodic characteristics of periodic terms:
[0092] The autocorrelation module is used to learn the correlation of periodic terms in a sequence. Autocorrelation usually refers to the degree of similarity between a signal and itself at different time delays. The autocorrelation calculation method is used to learn the periodic characteristics of the sequence by observing the similarity of the sequence at different delays.
[0093] Through the autocorrelation module, the model can learn the periodic patterns in the sequence, identify the length of the cycle, and the relationship between different periodic items. This learning can help the model better understand and capture the periodic changes in the sequence.
[0094] After the trend term and residual term are normalized, multi-layer linear layers are used for learning.
[0095] Multiple linear layers are used to learn trend terms and residual terms:
[0096] Using multiple linear layers for the trend term and the residual term means that linear transformation operations are performed on these two parts. The linear layer is one of the most basic operations in the deep learning model, which realizes the linear transformation between the input data and the weight.
[0097] The trend term and residual term are considered to be part of the model that needs to be learned through linear transformation. Such linear transformation can help the model adjust the feature representation of these two parts to better suit the requirements of the task. The normalized trend term and residual term can be stacked through multiple linear layers to form a multi-layer linear layer. Such a structure helps the model learn more complex and abstract feature representations.
[0098] In general, by learning the periodic features of the periodic terms through the autocorrelation module, the model can understand the repetitive patterns in the sequence. By learning the trend terms and residual terms through multiple linear layers, the model can represent the trend and residual more flexibly to adapt to different data characteristics. The combination of these two helps the model better understand and learn various patterns and features in time series.
[0099] Step 4, inverse normalization, input the most recently collected new wind speed sequence into the model trained in step 3 for prediction, inverse normalize the prediction results, restore the prediction results to the original data scale, and obtain the wind speed forecast for a period of time in the future.
[0100] Inverse normalization can ensure that the mean and variance of the input sequence are roughly the same as the mean and variance of the output sequence, and can calibrate the output sequence to a certain extent.
[0101] The normalization here is similar to the normalization method used during data input preprocessing, but the function is different. Statistics are usually calculated based on the overall historical observation sequence during the preprocessing phase, and the inverse normalization during the inference phase often produces a conceptual drift in the data distribution, that is, the overall data distribution of the test set may be inconsistent with the training set. Therefore, during model training, the statistics of each sliding window data fed into the model are calculated in real time and then scaled and normalized, and the parameters are learned dynamically, and then inverse normalization is performed during the prediction phase. The use of normalization and inverse normalization can effectively improve the model prediction performance.
[0102] A medium- and long-term wind speed prediction system based on low-frequency filtering and autocorrelation:
[0103] The prediction system includes a sequence decomposition module, a normalization module, a deep learning module and a denormalization module:
[0104] Input the wind speed sequence collected in the past, and decompose it by using the deep learning time series decomposition method based on low-frequency filtering through the sequence decomposition module;
[0105] The normalization module is used to normalize the data decomposed by the sequence decomposition module;
[0106] Input the data processed by the normalization module, and train the autocorrelation and multi-layer linear layers through the deep learning module;
[0107] The newly collected wind speed sequence is input into the model trained in step 3 for prediction. The prediction result is inversely normalized by the normalization module, and the prediction result is restored to the original data scale to obtain the wind speed prediction for a period of time in the future.
[0108] In the wind speed prediction problem, given the input wind speed sequence, it is necessary to output the future wind speed prediction sequence. The discussion here mainly focuses on the medium- and long-term predictions for the next six hours, one day, three days, or even longer. The input sequence is generally larger than the output sequence. For example, if two days of wind speed and other related meteorological data are input, the wind speed forecast for the next day is output; if five days of wind speed data are input, the wind speed forecast for the next three days is output.
[0109] In the data sets of different wind farms, the prediction method of the present invention can achieve stable and excellent prediction performance in medium- and long-term predictions of one day or more under the setting of optimal parameters, and the overall average prediction performance is better than other algorithms.
[0110] The experiment was run on wind farm data provided by CGN. The data set is not open to the public. The predictions of other models in the prior art cannot be maintained accurately in all wind farms, and are often affected by the wind speed characteristics of different wind farms. Among them, the problem of the DLinear model prediction tending to be flat is very prominent. In terms of MAE indicators, the model of the present invention can often improve by about 1% compared with the second-place model.
[0111] An electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0112] A computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed by a processor, the steps of the above method are implemented.
[0113] The memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory, ROM, a programmable read-only memory, PROM, an erasable programmable read-only memory, EPROM, an electrically erasable programmable read-only memory, EEPROM, or a flash memory. The volatile memory may be a random access memory, RAM, which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory static RAM, SRAM, dynamic random access memory dynamic RAM, DRAM, synchronous dynamic random access memory synchronous DRAM, SDRAM, double data rate synchronous dynamic random access memory double data rate SDRAM, DDR SDRAM, enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM, synchronous connection dynamic random access memory synchlink DRAM, SLDRAM and direct memory bus random access memory direct rambus RAM, DR RAM. It should be noted that memory of the methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0114] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center through a wired method such as coaxial cable, optical fiber, digital subscriber line digital subscriber line, DSL or wireless such as infrared, wireless, microwave, etc. to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium such as a floppy disk, a hard disk, a tape, an optical medium such as a high-density digital video disc digital video disc, DVD, or a semiconductor medium such as a solid state hard disk solid state disc, SSD, etc.
[0115] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0116] It should be noted that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined to perform. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0117] The above is a detailed introduction to the medium- and long-term wind speed prediction method based on low-frequency filtering and autocorrelation proposed in the present invention, and the principles and implementation methods of the present invention are explained. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in the field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A medium- and long-term wind speed prediction method based on low-frequency filtering and autocorrelation, characterized by: The method specifically comprises the following steps: Step 1: sequence decomposition: input the wind speed sequence collected in the past and decompose it using a deep learning time series decomposition method based on low-frequency filtering; The input wind speed sequence is first decomposed into a low-frequency part and a high-frequency part by a low-frequency filtering method; The low-frequency part and the high-frequency part are further decomposed using the sliding average method. The low-frequency part is decomposed into trend term and period term 1, and the high-frequency part is decomposed into period term 2 and residual term. The method of low-frequency filtering is specifically as follows: transforming the wind speed sequence into the frequency domain by fast Fourier transform, placing the low-frequency part at the center by shift, and obtaining the central low-frequency part in the time dimension by low-frequency filtering; the remaining part is the high-frequency part; and then recovering the data of the low-frequency part and the data of the high-frequency part by inverse transform, thereby completing the low-frequency filtering decomposition; Step 2: normalization, normalizing the data decomposed in step 1; Step 3: Model training: input the data processed in step 2, train the autocorrelation and multi-layer linear layers; merge the two periodic terms, and use the autocorrelation module to learn the periodic features; for the trend term and residual term, use the multi-layer linear layer for learning; Step 4, inverse normalization, input the most recently collected new wind speed sequence into the model trained in step 3 for prediction, inverse normalize the prediction results, restore the prediction results to the original data scale, and obtain the wind speed forecast for a period of time in the future.
2. The method according to claim 1, characterized in that: The result of low-frequency filtering decomposition is further decomposed. Here, the sliding average method is used. The sliding average method selects the current observed k data, the past k data, and the future k data for averaging; The low-frequency part is further averaged to obtain the trend part, i.e., the trend term, and the remaining part contains the periodic information, i.e., the periodic term 1; After averaging the high-frequency part, it contains periodic information, namely, periodic term 2, and the remaining part is wind speed fluctuation information, namely, residual term; periodic term 1 and periodic term 2 can be superimposed.
3. The method according to claim 2, characterized in that: In step 2, The trend term, cycle term 1, cycle term 2, and residual term all need to be normalized and converted into values with similar ranges.
4. The method according to claim 3, characterized in that: In step 3, In step 3, the autocorrelation module is used to learn the periodic features; Use FFT to observe the sequence in the frequency domain. Through FFT, we can get the amplitude of the sequence at different frequencies. A large amplitude indicates that the sequence has a strong signal at this frequency. The time length corresponding to this frequency is considered to be the period length of the sequence. That is, first use FFT to analyze the frequency domain to find the main periodic components; then use the autocorrelation module to further learn the periodic characteristics of the sequence in the time domain.
5. A prediction system for executing the medium- and long-term wind speed prediction method based on low-frequency filtering and autocorrelation as described in any one of claims 1 to 4, characterized in that: The prediction system includes a sequence decomposition module, a normalization module, a deep learning module and a denormalization module: Input the wind speed sequence collected in the past, and decompose it by using the deep learning time series decomposition method based on low-frequency filtering through the sequence decomposition module; The normalization module is used to normalize the data decomposed by the sequence decomposition module; Input the data processed by the normalization module, and train the autocorrelation and multi-layer linear layers through the deep learning module; The newly collected wind speed sequence is input into the model trained in step 3 for prediction. The prediction results are inversely normalized by the inverse normalization module, and the prediction results are restored to the original data scale to obtain the wind speed prediction for a period of time in the future.
6. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium for storing computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
