A sea wave forecasting method, electronic device and medium for flat sea areas
Through the spatio-temporal fusion processing of ConvLSTM and Conv3D layers, the problem of insufficient wave cycle and wave direction prediction in flat sea areas is solved, and high-precision wave prediction is achieved, especially showing low errors in short-term forecast periods.
Patent Information
- Application Number
- CN202410841743.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing wave prediction methods lack prediction of wave period and wave direction in flat sea areas, and the spatial resolution of the data is low. They fail to effectively comprehensively consider the multi-dimensional information of time, space and channels, resulting in insufficient prediction accuracy.
The ConvLSTM layer and Conv3D layer are used to process historical wave height, wave period, wave direction and sea and land distribution information. Through spatio-temporal fusion and attention mechanism, the wave prediction model is trained to output high-precision wave height, wave period and wave direction prediction.
It achieves high-precision integrated prediction of flat sea areas, improves the prediction accuracy of wave height, wave period and wave direction, especially showing low prediction error in short-term forecast period.
Smart Images

Figure CN118410327B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of ocean applications, and in particular relates to a sea wave forecasting method, electronic equipment and medium for a flat sea area. Background Art
[0002] The growth of global energy demand and the limitations of traditional fossil energy have promoted the development of clean renewable energy. Ocean wave energy, as a highly concentrated clean energy, has attracted widespread attention. However, the intermittent and undispatched nature of wave energy poses a challenge to energy supply.
[0003] Although traditional wave models (such as STWAVE, WAVEWATCH III and SWAN) can accurately simulate the physical process of waves, they are computationally intensive and are not suitable for rapid response scenarios. In recent years, thanks to the rapid development of deep learning algorithms and the increasing abundance of ocean wave data, the application of machine learning methods (such as support vector machines (SVM), decision trees (DT) and artificial neural networks (ANN)) in the field of wave prediction has become one of the key technologies to promote the industrialization of wave energy. These methods can effectively predict ocean wave elements by learning rules from historical wave data, among which neural networks perform well among a number of machine learning methods. However, the current neural network wave prediction methods have the following limitations:
[0004] (1) Current research focuses on single-point forecasting, with little involvement in wave prediction in flat sea areas. Moreover, the forecast content is mostly limited to wave height, lacking the prediction of wave period and wave direction, which are equally important for offshore operations.
[0005] (2) Existing forecasting methods rarely take into account the multi-dimensional information of time, space and channels, and the spatial resolution of data in most studies is low.
[0006] Therefore, it is urgent to propose a spatiotemporal multi-factor wave prediction method that comprehensively considers the multi-dimensional information of time, space, and channels to achieve high-precision integrated prediction of effective wave height, effective wave period, and wave direction in flat sea areas. Summary of the invention
[0007] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a wave forecasting method, electronic equipment and medium for a flat sea area.
[0008] In a first aspect, an embodiment of the present invention provides a method for forecasting sea waves in a flat sea area, the method comprising:
[0009] The historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted are input into the pre-trained wave prediction model, and the significant wave height, significant wave period and wave direction corresponding to the plane sea area at the time point to be predicted are output;
[0010] The training process of the wave prediction model includes:
[0011] Obtain the historical significant wave height, historical significant wave period, and historical wave direction of the plane sea area to be predicted; set the step size, and obtain the significant wave height, significant wave period, and wave direction corresponding to the target time through the sliding window;
[0012] The historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted are processed by the ConvLSTM layer to obtain the first intermediate tensor;
[0013] Performing spatiotemporal fusion on the first intermediate tensor to obtain a second intermediate tensor;
[0014] After the second intermediate tensor is processed by the Conv3D layer, the effective wave height, effective wave period, and wave direction corresponding to the plane sea area at the target time are obtained;
[0015] The wave prediction model is iteratively trained using the effective wave height, effective wave period, and wave direction corresponding to the target time as training labels.
[0016] In a second aspect, an embodiment of the present invention provides a wave forecasting system for a flat sea area, the system comprising:
[0017] A data acquisition module is used to obtain the historical significant wave height, historical significant wave period, and historical wave direction of the plane sea area to be predicted;
[0018] The wave prediction model training module sets the step size and obtains the effective wave height, effective wave period, and wave direction corresponding to the target time through the sliding window; the historical effective wave height, historical effective wave period, historical wave direction, and sea-land distribution information of the plane sea area to be predicted are processed by the ConvLSTM layer to obtain the first intermediate tensor; the first intermediate tensor is subjected to spatiotemporal fusion to obtain the second intermediate tensor; the second intermediate tensor is processed by the Conv3D layer to obtain the effective wave height, effective wave period, and wave direction corresponding to the plane sea area at the target time; the effective wave height, effective wave period, and wave direction corresponding to the target time are used as training labels to iteratively train the wave prediction model;
[0019] The wave prediction module is used to input the historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted into the pre-trained wave prediction model, and output the significant wave height, significant wave period and wave direction corresponding to the plane sea area at the time point to be predicted.
[0020] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the above-mentioned wave forecasting method for flat sea areas.
[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned method for forecasting waves for flat sea areas.
[0022] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the above-mentioned wave forecasting method for flat sea areas.
[0023] Compared with the prior art, the present invention has the following beneficial effects:
[0024] The present invention provides a wave forecasting method for flat sea areas. The historical effective wave height, historical effective wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted are processed by a ConvLSTM layer, spatiotemporal fusion and a Conv3D layer to obtain the effective wave height, effective wave period and wave direction corresponding to the plane sea area at a target time. The method of the present invention comprehensively considers the spatiotemporal multi-factor information of time, space and channel multi-dimensional information through spatiotemporal fusion to achieve high-precision integrated prediction of the effective wave height, effective wave period and wave direction of the plane sea area. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0026] Figure 1 is a flow chart of a method for forecasting ocean waves in a flat sea area provided by an embodiment of the present invention;
[0027] Figure 2 is a schematic diagram of a wave prediction model provided by an embodiment of the present invention;
[0028] Figure 3 is a schematic diagram of a ConvLSTM module provided by an embodiment of the present invention;
[0029] Figure 4 is a schematic diagram of a spatiotemporal fusion module provided in an embodiment of the present invention;
[0030] Figure 5It is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0032] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0033] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0034] The present invention is described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the features of the following embodiments and implementations can be combined with each other.
[0035] like Figure 1 and Figure 2 As shown, an embodiment of the present invention provides a method for forecasting sea waves in a flat sea area, and the method specifically comprises the following steps:
[0036] Step S1, obtaining the historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted. Setting the step size, obtaining the significant wave height, significant wave period and wave direction corresponding to the target time through the sliding window.
[0037] Specifically, in this example, the plane sea area to be predicted is divided into an H×W grid matrix according to the longitude and latitude of the plane sea area to be predicted.
[0038] The topographic data of the plane sea area to be predicted is obtained, with 0 representing land and 1 representing ocean, to obtain the land and sea distribution information of the plane sea area to be predicted.
[0039] Furthermore, the effective wave height, effective wave period, and wave direction are standardized, and the expressions are as follows:
[0040] Z=(Xu) / s
[0041] In the formula, X is the sample, u is the mean of the sample, s is the standard deviation, and Z is the standardized sample.
[0042] Furthermore, in this example, the historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted are taken as input, and the input data sequence is recorded as (n_in, 4, h, w); where n_in represents the input historical duration, h represents the length of the plane sea area to be predicted, and w represents the width of the plane sea area to be predicted. The significant wave height, significant wave period and wave direction corresponding to the target time are taken as training labels, recorded as (n_out, 3, h, w); where n_out represents the predicted output duration; the wave prediction model is trained to learn the mapping relationship between the input data sequence and the training labels.
[0043] Step S2, the historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted are processed by the ConvLSTM layer to obtain the first intermediate tensor.
[0044] like Figure 3 As shown in the figure, the ConvLSTM unit is an extension of the long short-term memory network (LSTM) when processing images or sequence data. ConvLSTM can effectively process data with spatial and temporal dependencies by combining the spatial feature extraction capabilities of the convolutional neural network (CNN) and the time series processing capabilities of the LSTM. ConvLSTM uses convolutional layers instead of LSTM's matrix multiplication in the state update and input gating mechanism. This design enables ConvLSTM to effectively integrate spatial information while performing time series analysis, thereby better capturing the complex dynamics of spatiotemporal data. The specific operation definition of ConvLSTM is as follows:
[0045]
[0046]
[0047]
[0048]
[0049]
[0050] In the formula, represents the input gate, represents the input of the current time step, represents the forget gate, represents the cell state at the current time step, represents the output gate, represents the hidden state of the current time step, represents the weight of the input gate at the current time step, represents the weight from the previous hidden state to the input gate, represents the weight from the previous unit state to the input gate, represents the weight of the current time step input to the forget gate, represents the weight from the previous hidden state to the forget gate, represents the weight from the previous unit state to the forget gate, represents the weight of the input to the candidate unit state, represents the weight from the previous hidden state to the candidate unit state, represents the weight of the input to the output gate, represents the weight from the previous hidden state to the output gate, represents the weight from the current cell state to the output gate, represents the bias term of the input gate, represents the bias term of the forget gate, represents the bias term of the candidate unit state, represents the bias term of the output gate, represents the convolution operation, represents element-wise multiplication, is the sigmoid function.
[0051] Step S3, performing spatiotemporal fusion on the first intermediate tensor to obtain a second intermediate tensor.
[0052] Specifically, Figure 4 As shown, step S3 specifically includes the following steps:
[0053] Step S301, encoding the first intermediate tensor to generate the first feature, the second feature, and the third feature; including: encoding each channel of the first intermediate tensor along the spatial horizontal coordinate, the spatial vertical coordinate, and the time coordinate through three three-dimensional pooling kernels of size (H, 1, 1), (1, W, 1), and (1, 1, D) to generate the first feature, the second feature, and the third feature; wherein the output expression of the cth channel at height h, width w, and time d is as follows:
[0054]
[0055]
[0056]
[0057]
[0058] In the formula, i represents the index in the height dimension, j represents the index in the width dimension, k represents the index in the time dimension, c represents the channel index, H represents the height of the tensor, W represents the width of the tensor, and D represents the size of the time dimension of the tensor. represents the first intermediate tensor, Represents the element value at channel c, height i, width j, and time k, represents the features after pooling the channel 𝑐 at height h along the width and time dimensions, Represents the element value at channel c, height h, width j, and time k, represents the features after pooling the channel c at width w along the height and time dimensions, It represents the element value at channel c, height i, width w, and time k, with the width w being particularly emphasized. represents the features after pooling channel c at time d along the height and width dimensions, Represents the element value at channel c, height i, width j, and time d.
[0059] It should be noted that the above transformation enables the spatiotemporal fusion module to capture long-distance dependencies in two dimensions while retaining precise location information in another dimension, which helps the wave prediction model to capture global features more accurately. In the wave forecast mentioned in this example, this mechanism can effectively extract key wave information in different regions and time steps on the sea plane by integrating the four channel features of wave height, wave period, wave direction and sea and land information and using pooling operations in spatial and temporal dimensions.
[0060] Step S302, the first feature, the second feature, and the third feature are spliced and 1 After convolution transformation and activation of nonlinear activation function δ, the global spatiotemporal features are obtained; the expression is as follows:
[0061]
[0062] In the formula, Represents the first feature, The second feature, Represents the third feature, Represents global spatiotemporal characteristics; , is the compression ratio used to reduce the complexity of the model.
[0063] It should be noted that in this example, the first feature, the second feature, and the third feature after splicing are 1After convolution transformation and activation of nonlinear activation function, the global spatiotemporal characteristics are obtained, which can effectively integrate the characteristic information on the sea plane and time dimension of the four channels of wave height, wave period, wave direction, and sea and land information, providing a comprehensive feature representation for the wave prediction model, which helps to reveal the complex pattern of wave changes.
[0064] Step S303: Split the global spatiotemporal features into the first spatiotemporal features , the second space-time characteristics and the third space-time characteristics .
[0065] Step S304: first spatiotemporal feature , the second space-time characteristics and the third space-time characteristics After being processed by convolution transformation and sigmoid function respectively, the first attention weight is obtained , the second attention weight , the third attention weight ; The expression is as follows:
[0066]
[0067]
[0068]
[0069] In the formula, , , Represents a 1×1 convolution transformation.
[0070] It should be noted that in this example, the global spatiotemporal features are split into the first spatiotemporal features, the second spatiotemporal features, and the third spatiotemporal features, thereby splitting the global spatiotemporal features into feature vectors for height, width, and time. The first spatiotemporal features, the second spatiotemporal features, and the third spatiotemporal features are processed by 1x1 convolution transformation and sigmoid function to obtain the first attention weight, the second attention weight, and the third attention weight, thereby converting the feature vectors of each dimension into corresponding feature weights. These weights reflect which features are more important in a specific sea area or at a specific time point.
[0071] Step S305: multiply the first intermediate tensor by the first attention weight, the second attention weight, and the third attention weight to obtain the second intermediate tensor. The expression is as follows:
[0072]
[0073] In the formula, Represents the second intermediate tensor.
[0074] It should be noted that, in this example, the second intermediate tensor is obtained by multiplying the first intermediate tensor with the first attention weight, the second attention weight, and the third attention weight, thereby strengthening the response of the wave prediction model to the key features of the waves and weakening the influence of unimportant features.
[0075] It should be noted that the present invention performs spatio-temporal fusion (Spatio-Temporal Fusion Module, STF) on the first intermediate tensor to obtain the second intermediate tensor, so that the wave prediction model not only embeds the characteristic information of each wave on the two-dimensional sea area, that is, the distribution of each wave on the sea plane, but also embeds the one-dimensional time information, that is, the change of each wave characteristic over time, into the four channels of wave height, wave period, wave direction and sea and land information, so as to enhance the feature extraction and learning ability of the wave prediction model for multi-dimensional data of the sea area, and then through adaptively learning the attention weight, the wave prediction model can find the most important features and positions for prediction in the four dimensions of height, width, time and channel, thereby improving the performance of the wave prediction model.
[0076] Step S4, after the second intermediate tensor is processed by the Conv3D layer, the effective wave height, effective wave period, and wave direction corresponding to the plane sea area at the target time are obtained; the effective wave height, effective wave period, and wave direction corresponding to the target time are used as training labels, and the wave prediction model is iteratively trained.
[0077] It should be noted that the wave prediction model provided by the present invention extracts feature information through three layers of ConvLSTM, then fuses the global spatiotemporal information and redistributes the weights through the spatiotemporal fusion STF, and finally uses Conv3D to adjust the data dimension and output it.
[0078] Furthermore, in this example, the training process of the wave prediction model also includes:
[0079] Obtain the real observed values of effective wave height, effective wave period and wave direction corresponding to the target time;
[0080] Based on the actual observed values of the effective wave height, effective wave period, and wave direction corresponding to the target time obtained and the effective wave height, effective wave period, and wave direction corresponding to the target time predicted and output by the wave prediction model, the spatial root mean square error SRMSE, the spatial mean absolute percentage error SMAPE, and the correlation coefficient R are calculated to optimize the wave prediction model; the expression is as follows:
[0081]
[0082]
[0083]
[0084] In the formula, is the true observed value, is the predicted value, is the sample index value, is the meridional grid index value, is the latitudinal grid point index value, N is the total number of samples, I is the total number of points in the longitudinal direction, and J is the total number of latitudinal grid points.
[0085] Step S5, inputting the historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted into a pre-trained wave prediction model, and outputting the significant wave height, significant wave period and wave direction corresponding to the plane sea area at the time point to be predicted.
[0086] Example 1
[0087] This example uses the wave forecasting method for flat sea areas provided by the present invention to forecast the significant wave height, significant wave period and wave direction for the next 24 hours in a certain sea area.
[0088] Table 1 shows the RMSE of this example for three prediction targets (significant wave height, significant wave period, and wave direction). It should be noted that what is calculated here is the true scale error obtained by denormalization based on the test data for half a year, rather than the standardized error used in training the wave prediction model.
[0089] Table 1: RMSE table of predicted significant wave height, significant wave period and wave direction
[0090]
[0091] It can be seen from Table 1 that with the increase of forecast duration, the RMSE of effective wave height increases from 0.0915 meters for 3 hours to 0.2913 meters for 24 hours. The effective wave period increases from 0.3065 seconds to 0.6805 seconds: the change of wave direction increases from 19.3255 degrees to 39.8805 degrees. In general, due to the spatiotemporal fusion characteristics of the wave forecasting method for flat sea areas provided by the present invention, this example shows a lower prediction error at each forecast duration point, especially in the short-term forecast of less than 12 hours, indicating that it can provide better accuracy and stability in the multi-factor wave forecasting task.
[0092] like Figure 5 As shown, 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.
[0093] 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.
[0094] Among them, the memory 101 can be, but is not limited to, a random access memory 101 (Random Access Memory, RAM), a read only memory 101 (Read Only Memory, ROM), a programmable read-only memory 101 (Programmable Read-Only Memory, PROM), an erasable programmable read-only memory 101 (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable read-only memory 101 (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
[0095] The processor 102 may be an integrated circuit chip with signal processing capability. The processor 102 may be a general-purpose processor 102, including a central processing unit 102 (CPU), a network processor 102 (NP), etc.; it may also be a digital signal processor 102 (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.
[0096] 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.
[0097] 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.
[0098] On the other hand, 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 described in any one of the first aspects 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 the part that contributes to the prior art or the 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: U disk, mobile hard disk, read-only memory 101 (ROM, Read-Only Memory), random access memory 101 (RAM, RandomAccess Memory), disk or optical disk and other media that can store program codes.
[0099] Those skilled in the art will readily appreciate other embodiments of the present application after considering the description and practicing the contents disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application. The description and examples are intended to be exemplary only.
[0100] It should be understood that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
Claims
1. A wave forecasting method for flat sea areas, It is characterized in that The method comprises: The historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted are input into the pre-trained wave prediction model, and the significant wave height, significant wave period and wave direction corresponding to the plane sea area at the time point to be predicted are output; The training process of the wave prediction model includes: Obtain the historical significant wave height, historical significant wave period, and historical wave direction of the plane sea area to be predicted; set the step size, and obtain the significant wave height, significant wave period, and wave direction corresponding to the target time through the sliding window; The historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted are processed by the ConvLSTM layer to obtain the first intermediate tensor; Performing spatiotemporal fusion on the first intermediate tensor to obtain a second intermediate tensor; After the second intermediate tensor is processed by the Conv3D layer, the effective wave height, effective wave period, and wave direction corresponding to the plane sea area at the target time are obtained; The wave prediction model is iteratively trained using the effective wave height, effective wave period, and wave direction corresponding to the target time as training labels.
2. A method for forecasting sea waves in a flat sea area according to claim 1, It is characterized in that Obtaining the sea and land distribution information of the plane sea area to be predicted includes: The topographic data of the plane sea area to be predicted is obtained, with 0 representing land and 1 representing ocean, to obtain the land and sea distribution information of the plane sea area to be predicted.
3. A method for forecasting sea waves in a flat sea area according to claim 1, It is characterized in that The training process of the wave prediction model includes: The historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted are taken as input, and the input data sequence is recorded as (n_in, 4, h, w); where n_in represents the input historical duration, h represents the length of the plane sea area to be predicted, and w represents the width of the plane sea area to be predicted; The effective wave height, effective wave period, and wave direction corresponding to the target time are used as training labels, recorded as (n_out, 3, h, w); where n_out represents the predicted output duration; The ocean wave prediction model is trained to learn the mapping between the input data sequence and the training labels.
4. The method for predicting sea waves in a flat sea area according to claim 1, It is characterized in that The process of performing spatiotemporal fusion on the first intermediate tensor to obtain the second intermediate tensor includes: Encode the first intermediate tensor to generate a first feature, a second feature, and a third feature; The first feature, the second feature, and the third feature are concatenated, and the global spatiotemporal features are obtained after being activated by convolution transformation and nonlinear activation function; Splitting the global space-time feature into the first space-time feature, the second space-time feature and the third space-time feature; The first spatiotemporal feature, the second spatiotemporal feature, and the third spatiotemporal feature are processed by convolution transformation and sigmoid function respectively to obtain the first attention weight, the second attention weight, and the third attention weight; The first intermediate tensor is multiplied by the first attention weight, the second attention weight, and the third attention weight to obtain the second intermediate tensor.
5. A method for forecasting sea waves in a flat sea area according to claim 4, It is characterized in that Encoding the first intermediate tensor to generate the first feature, the second feature, and the third feature includes: The first intermediate tensor is encoded along the horizontal spatial coordinate, vertical spatial coordinate and time coordinate of each channel through three three-dimensional pooling kernels of sizes (H, 1, 1), (1, W, 1) and (1, 1, D) to generate the first feature, the second feature and the third feature.
6. The method for predicting sea waves in a flat sea area according to claim 1, It is characterized in that The training process of the wave prediction model also includes: Obtain the real observed values of effective wave height, effective wave period and wave direction corresponding to the target time; Based on the actual observed values of the effective wave height, effective wave period and wave direction corresponding to the target time and the effective wave height, effective wave period and wave direction corresponding to the target time predicted and output by the wave prediction model, the spatial root mean square error, spatial mean absolute percentage error and correlation coefficient are calculated to optimize the wave prediction model.
7. A wave forecasting system for flat sea areas, It is characterized in that The system comprises: A data acquisition module is used to obtain the historical significant wave height, historical significant wave period, and historical wave direction of the plane sea area to be predicted; The wave prediction model training module sets the step size and obtains the effective wave height, effective wave period, and wave direction corresponding to the target time through the sliding window; the historical effective wave height, historical effective wave period, historical wave direction, and sea-land distribution information of the plane sea area to be predicted are processed by the ConvLSTM layer to obtain the first intermediate tensor; the first intermediate tensor is subjected to spatiotemporal fusion to obtain the second intermediate tensor; the second intermediate tensor is processed by the Conv3D layer to obtain the effective wave height, effective wave period, and wave direction corresponding to the plane sea area at the target time; the effective wave height, effective wave period, and wave direction corresponding to the target time are used as training labels to iteratively train the wave prediction model; The wave prediction module is used to input the historical significant wave height, historical significant wave period, historical wave direction and sea-land distribution information of the plane sea area to be predicted into the pre-trained wave prediction model, and output the significant wave height, significant wave period and wave direction corresponding to the plane sea area at the time point to be predicted.
8. An electronic device comprising a memory and a processor, It is characterized in that The memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the wave forecasting method for flat sea areas as described in any one of claims 1-6 above.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method for predicting ocean waves for a flat sea area as described in any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instruction is executed by a processor, the method for forecasting ocean waves for a flat sea area as described in any one of claims 1 to 6 is implemented.
