A sea surface temperature prediction method based on multi-scale channels and spatiotemporal information fusion

By using a deep learning model that integrates multi-scale channels and spatio-temporal information in sea surface temperature prediction, we extract and screen multi-scale features in sea surface temperature data, solving the problem that existing technology cannot effectively capture spatial features and channel information, and achieve Provides more accurate sea surface temperature predictions.

CN118535889BInactive Publication Date: 2024-09-24FIRST INSTITUTE OF OCEANOGRAPHY MNR +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411000622.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing sea surface temperature prediction methods cannot effectively capture the spatial characteristics and channel information in the data, resulting in low prediction accuracy, especially when processing sea surface temperature data with dynamic changes in space and time.

Method used

A deep learning model based on multi-scale channels and spatio-temporal information fusion is adopted, including a multi-scale feature extraction module, a convolutional block attention residual module and a convolutional long and short memory network layer, and multiple parallel convolution layers and pooling layers are used to extract small , medium- and large-scale features, combine channel and spatial attention modules to screen important information, and introduce a residual module to avoid the vanishing gradient problem.

Benefits of technology

A powerful prediction model is constructed that can accurately capture the spatial and temporal dynamic characteristics, improve the prediction accuracy of sea surface temperature, reduce the amount of calculation, and make accurate predictions on future temperature change trends.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535889B
    Figure CN118535889B
Patent Text Reader

Abstract

The present invention relates to the technical field of sea surface temperature prediction, and discloses a sea surface temperature prediction method based on multi-scale channels and spatiotemporal information fusion, comprising the following steps: pre-processing a sea surface temperature data set obtained from the ERA5 reanalysis data of the European Center for Medium-Term Weather Forecasts, and dividing it into a training set and a test set; inputting the data of the training set into a deep learning model of multi-scale channels and spatiotemporal information fusion for training, and using the data of the test set to evaluate the model accuracy; the model consists of an input layer, a multi-scale feature extraction module, a convolutional block attention residual module, a convolutional long short-term memory network layer, and an output layer; after pre-processing the sea surface temperature data of the sea area to be predicted, the data is input into a qualified model for sea surface temperature prediction. The method disclosed by the present invention can more finely parse the complex information in the SST data, and accurately predict the future temperature change trend while ignoring irrelevant interference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sea surface temperature prediction, and in particular to a sea surface temperature prediction method based on multi-scale channels and spatiotemporal information fusion. Background Art

[0002] Sea surface temperature (SST), as a key parameter for assessing the energy interaction between the ocean and the atmosphere, is becoming increasingly important. The trend of global warming has led to a continuous rise in SST, which has had complex and far-reaching impacts on the structure of marine ecosystems, the distribution of fishery resources, the frequency and intensity of extreme climate events, and even the pattern of global economic activities. Therefore, a deep understanding and accurate prediction of SST changes have become an urgent need to implement the above strategies, protect the marine environment, ensure food security, respond to the challenges of global climate change, and plan a path for sustainable economic development.

[0003] There are two main methods for predicting SST data today: numerical model-based methods (ocean dynamics models) and data-driven methods. The former uses a series of complex physical equations to predict ocean variables. This method has good physical significance, but the computational complexity is extremely high. The latter directly mines patterns from historical observation data and builds a prediction model. Compared with the numerical model method, this method has fewer parameters and lower complexity. However, these methods often fail to mine the long-term trend and nonlinear characteristics of SST data, affecting the prediction accuracy.

[0004] With the development of deep learning technology, traditional prediction methods can no longer meet the growing demand for accuracy. Especially when dealing with spatiotemporal dynamic data such as SST, SST data is not only huge in volume, but also rich in time series information, reflecting complex geophysical processes. Therefore, it is very important to use deep learning methods to mine the information and laws contained in these data for the prediction of SST in time and space. The data-driven model method with deep learning as the mainstream can well extract the changes in complex features in the data in time series.

[0005] Traditional data-driven model methods, such as LSTM and GRU, can capture the temporal dependencies in the sequence and thus predict SST, but they cannot directly capture the spatial features and channel information in the data or process these channel information. Each channel can be regarded as a specific type of feature extracted by the network from the input data. A larger number of channels enables the network to learn more different types of features, including edges, textures, shapes, etc. Existing data-driven model methods cannot process the features of the above channels, resulting in low accuracy in SST prediction. Summary of the invention

[0006] To solve the above technical problems, the present invention provides a sea surface temperature prediction method based on multi-scale channels and spatiotemporal information fusion, so as to achieve the purpose of more finely analyzing the complex information in SST data and accurately predicting future temperature change trends while ignoring irrelevant interference.

[0007] To achieve the above object, the technical solution of the present invention is as follows:

[0008] A sea surface temperature prediction method based on multi-scale channels and spatiotemporal information fusion includes the following steps:

[0009] Step 1: preprocess the sea surface temperature dataset obtained from the ERA5 reanalysis data of the European Centre for Medium-Range Weather Forecasts and divide it into a training set and a test set;

[0010] Step 2: Input the training set data into the deep learning model of multi-scale channel and spatiotemporal information fusion for training, and use the test set data to evaluate the model accuracy;

[0011] The model consists of five parts: input layer, multi-scale feature extraction module, convolutional block attention residual module, convolutional long short-term memory network layer and output layer;

[0012] The input layer is used to receive the preprocessed data set;

[0013] The multi-scale feature extraction module consists of four branches, which are used to fully extract the multi-scale features in the sea surface temperature data and obtain a multi-scale feature map;

[0014] The convolution block attention residual module includes a channel attention module, a spatial attention module and a residual module. The channel attention module is used to obtain a feature map enhanced by channel attention. The spatial attention module is used to perform spatial attention enhancement on the feature map enhanced by channel attention. Finally, the residual module is used to add the feature map processed by the channel attention module and the spatial attention module to the original input feature map to realize residual connection and output multiple multi-channel feature maps.

[0015] The convolutional long short-term memory network layer is composed of a layer of ConvLSTM, which is used to capture and process the channel attention weights and spatial attention weights obtained by the convolutional block attention residual module, and then generate a multi-channel feature map based on the spatiotemporal features;

[0016] The output layer consists of a convolution 2D function, which is used to perform dimensionality reduction and output a single-channel feature map;

[0017] Step 3: After preprocessing the sea surface temperature data of the sea area to be predicted, input it into the qualified model for sea surface temperature prediction.

[0018] In the above scheme, the specific method of step 1 is as follows:

[0019] (1) First, the sea surface temperature datasets of recent years obtained from the ERA5 reanalysis data were spliced ​​along the time dimension in the order of time, latitude, and longitude. Next, the 24-hour data of each day were averaged, and the Kelvin temperature of the sea surface temperature was converted to Celsius to obtain the daily average sea surface temperature dataset;

[0020] (2) Assign the temperature of the land part of the daily average sea surface temperature dataset to NAN, and then assign the NAN value to 0 to uniformly handle missing values;

[0021] (3) The data in the daily average sea surface temperature dataset are normalized to the range of 0-1. The normalization formula is:

[0022] ;

[0023] Where y represents the data of the daily average sea surface temperature dataset, represents the normalized daily average sea surface temperature data, represents the minimum value in the daily mean sea surface temperature dataset, Represents the maximum value in the daily mean sea surface temperature dataset;

[0024] (4) The normalized data is divided into training set and test set in a ratio of 8:2. The input data of the model has five dimensions, namely batch size, time step, latitude, longitude and number of features; the label has four dimensions, namely batch size, latitude, longitude and number of features.

[0025] In the above scheme, in the multi-scale feature extraction module, the first branch passes through a Conv3D function with a convolution kernel size of 1×1×1, an output channel number of 20, and a step size of 1, which is used to increase the number of input channels and increase the number of channels of the feature map;

[0026] The second branch first passes through a Conv3D function with a convolution kernel size of 1×1×1, 20 output channels, and a step size of 1, which is used to provide more feature information for the subsequent convolution layer and enhance the expressiveness of the model; then passes through a Conv3D function with a convolution kernel size of 3×3×3, the number of output channels remains unchanged, and a step size of 1, which is used to extract feature information of a larger scale than the 1×1×1 convolution kernel;

[0027] The third branch first passes through a Maxpool3D function with a convolution kernel size of 1×1×1 and a step size of 1. Same padding is used to keep the spatial size unchanged, achieve downsampling of the spatial dimension, capture coarser features, and provide information at different scales. Then it passes through a Conv3D function with a convolution kernel size of 3×3×3, 20 output channels, and a step size of 1.

[0028] The fourth branch first passes through a Conv3D function with a convolution kernel size of 1×1×1, 20 output channels, and a step size of 1, which is used to provide more feature information for the subsequent convolution layer and enhance the expressiveness of the model; then it passes through two identical Conv3D functions with a convolution kernel size of 3×3×3, 20 output channels, and a step size of 1, which is used to reduce the number of parameters and extract feature information of a larger scale than the 3×3×3 convolution kernel;

[0029] The outputs of all four branches are combined in the channel dimension to output a multi-scale feature map.

[0030] In the above scheme, the channel attention module first uses the Maxpool 3D function and the Avgpool 3D function respectively, and the size of the pooling window is 3×3×3 to reduce the time dimension and the space dimension; then the two pooled results are respectively passed through MLP, and the MLP includes two Conv3D functions; the first Conv3D function compresses the output channel to 1 / 4 of the original, the convolution kernel size is 1×1×1, the step size is 1, and the relu activation function is used; the second Conv3D function restores the output channel to 120, the convolution kernel size is 1×1×3, the step size is 1, and the relu activation function is used; the pooling results are processed by MLP, the information is fused, and then added to form the channel attention weight; the sigmoid activation function is applied to convert it to between 0 and 1 to indicate the importance of each channel; finally, the channel attention weight is applied to the input feature map by element-by-element multiplication to obtain a feature map with enhanced channel attention.

[0031] In the above scheme, the spatial attention module first uses the Max-channel function and the Avg-channel function to respectively calculate the maximum value and average value of the feature map processed by the channel attention module in the spatial dimension, and then splices the two in the channel dimension and sends them to the 3D depth separable convolution function, including depth convolution and point-by-point convolution; the depth convolution is a separate convolution for each input channel, the convolution kernel size is 3×3×3, and the same padding is used; the point-by-point convolution is used to mix the channel information after the depth convolution, the output channel is 120, the convolution kernel size is 1×1×1, and the same padding is used; the 3D depth separable convolution function is used to learn the spatial relationship in the feature map and generate the spatial attention weight; the spatial attention weight is applied to the feature map processed by the channel attention module using element-by-element multiplication.

[0032] In the above scheme, the formula of the convolutional block attention residual module is as follows:

[0033] ;

[0034] ;

[0035] In the formula, is the input tensor, is the output of the channel attention module, represents the output of the spatial attention module, is the output of the channel attention module, is the output of the convolutional block attention residual module, It is the Hadamard product, that is, the elements at each position are multiplied correspondingly, + represents addition, and the values ​​of the two tensors at the same position are added together to generate a new tensor.

[0036] In a further technical solution, the output calculation formula of the channel attention module is as follows:

[0037] ;

[0038] In the formula, represents the Sigmoid activation function, It is a three-dimensional average pooling layer with a pooling window size of 3×3×3, a step size of 1, and same padding; It is a three-dimensional maximum pooling layer with a pooling window size of 3×3×3, a step size of 1, and same padding. MLP is a multi-layer perceptron, which consists of two Conv3D functions, both with 120 output channels, 1×1×1 convolution kernel sizes, and 1 step size. Both use same padding, which is used to compress and restore channel dimensions, respectively.

[0039] In a further technical solution, the output calculation formula of the spatial attention module is as follows:

[0040] ;

[0041] In the formula, represents the Sigmoid activation function, represents a 3D depth-separable convolution function; and Respectively represent the average and maximum values ​​along the channel dimension; Represents splicing along the channel dimension.

[0042] In a further technical solution, the relu activation function formula is as follows:

[0043] ;

[0044] The Sigmoid activation function formula is as follows:

[0045] ;

[0046] Where x represents the input sea surface temperature data, Represents the activation function.

[0047] In the above scheme, the calculation formula of the convolutional long short-term memory network layer is as follows:

[0048] ;

[0049] ;

[0050] ;

[0051] ;

[0052] ;

[0053] ;

[0054] In the formula, represents the input gate, represents the forget gate, represents the output gate; , , Represent the input weight matrices of the input gate, forget gate, output gate, and candidate memory unit respectively; , , and Respectively represent the hidden state of the connection before To the current moment, the input gate, forget gate, output gate and memory unit The weight matrix of , , Respectively represent the weight matrices for adjusting the input gate, forget gate, and output gate; Represents the sea surface temperature data input at time t; Represents the Sigmoid function; and Respectively and The memory unit of the moment; represents a candidate memory unit; and Respectively and The hidden state of the moment; , , and Represent the bias vectors of the input gate, forget gate, output gate and candidate memory unit respectively; is the Hadamard product.

[0055] Through the above technical solution, the sea surface temperature prediction method based on multi-scale channels and spatiotemporal information fusion provided by the present invention has the following beneficial effects:

[0056] This paper integrates the multi-scale feature extraction capability of the multi-scale feature extraction module (InceptionV2+), the key feature screening mechanism of the convolutional block attention residual module (ResCBAM3D), and the in-depth modeling of spatiotemporal dynamic features by the convolutional long short-term memory network (ConvLSTM) layer to build a powerful prediction model - the deep learning model of multi-scale channels and spatiotemporal fusion (MCSF). It can extract small, medium and large-scale three-dimensional feature information from complex SST data through multiple parallel convolutional layers and pooling layers, and then screen the multi-scale feature information through the channel attention module and the spatial attention module to highlight the important part of the information. At the same time, the residual module is introduced to avoid the gradient disappearance problem. Among them, the spatial attention module introduces the innovatively designed 3D deep separable convolution function (DWC function), which enhances the information interaction in the spatial and temporal dimensions and greatly reduces the amount of calculation; finally, it captures the long-term dependencies in the time series, learns complex spatiotemporal features, and makes accurate predictions of future temperatures based on this. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0058] Figure 1 A schematic flow chart of a method for predicting sea surface temperature based on multi-scale channels and spatiotemporal information fusion disclosed in an embodiment of the present invention;

[0059] Figure 2 A schematic diagram of a deep learning model for multi-scale channels and spatiotemporal information fusion disclosed in an embodiment of the present invention;

[0060] Figure 3 This is the internal structure diagram of the multi-scale feature extraction module;

[0061] Figure 4 This is the internal structure diagram of the convolutional block attention residual module;

[0062] Figure 5 This is the internal structure diagram of the convolutional long short-term memory network layer;

[0063] Figure 6 The RMSE change graph averaged over all grid points for each model prediction for days 1-20;

[0064] Figure 7 MAE change graph averaged over all grid points for 1-20 days forecast for each model;

[0065] Figure 8 Average RMSE plots for each model predicting the 20th day at each grid point, (a) LSTM; (b) BiLSTM; (c) ConvLSTM; (d) MCSF. DETAILED DESCRIPTION

[0066] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0067] The present invention provides a sea surface temperature prediction method based on multi-scale channels and spatiotemporal information fusion, such as Figure 1 As shown, the following steps are included:

[0068] Step 1: The sea surface temperature dataset obtained from the ERA5 reanalysis data of the European Centre for Medium-Range Weather Forecasts is preprocessed and divided into a training set and a test set.

[0069] ERA5 is a global reanalysis dataset released by the European Centre for Medium-Range Weather Forecasts (ECMWF). Its full name is "Fifth generation ECMWF atmospheric reanalysis of the global climate". ERA5 provides high-resolution, high-quality reanalysis data of the global atmosphere, land and ocean surface conditions from 1979 to the present, with a spatial resolution of about 30 kilometers and a temporal resolution of once per hour.

[0070] The specific methods of preprocessing are as follows:

[0071] 24-hour data based on ERA5 SST reanalysis data, with a time range of January 1, 2019 - December 31, 2023, and a spatial range of 103°E - 121°E, 0°N - 23°N.

[0072] (1) First, the sea surface temperature dataset obtained from the ERA5 reanalysis data was spliced ​​along the time dimension in the order of time, latitude, and longitude. Next, the 24-hour data of each day was averaged, and the Kelvin temperature of the sea surface temperature was converted to Celsius to obtain the daily average sea surface temperature dataset;

[0073] (2) Assign the temperature of the land part of the daily average sea surface temperature dataset to NAN, and then assign the NAN value to 0 to uniformly handle missing values;

[0074] (3) The data in the daily average sea surface temperature dataset are normalized to the range of 0-1. The normalization formula is:

[0075] ;

[0076] Where y represents the data of the daily average sea surface temperature dataset, represents the normalized daily average sea surface temperature data, represents the minimum value in the daily mean sea surface temperature dataset, Represents the maximum value in the daily mean sea surface temperature dataset;

[0077] (4) The normalized data is divided into training set and test set in a ratio of 8:2. The input data of the model has five dimensions, namely batch size, time step, latitude, longitude and feature number. The label has four dimensions, namely batch size, latitude, longitude and feature number.

[0078] In step 2, the data of the training set is input into the deep learning model of multi-scale channel and spatiotemporal information fusion (MCSF) for training, and the model accuracy is evaluated using the data of the test set.

[0079] 1. Build the model

[0080] like Figure 2 As shown in the figure, the model consists of five parts: input layer, multi-scale feature extraction module (InceptionV2+), convolutional block attention residual module (ResCBAM3D), convolutional long short-term memory network (ConvLSTM) layer and output layer;

[0081] (1) Input layer

[0082] The input layer is used to receive the preprocessed dataset.

[0083] (2) Multi-scale feature extraction module (InceptionV2+)

[0084] The multi-scale feature extraction module consists of four branches, which are used to fully extract the multi-scale features in the sea surface temperature data and obtain the multi-scale feature map.

[0085] like Figure 3 As shown in the figure, in the multi-scale feature extraction module, the first branch passes through a Conv3D function (the ordinary InceptionV2 uses 2D convolution), the convolution kernel size is 1×1×1, the number of output channels is 20, and the step size is 1, which is used to increase the number of input channels and increase the number of channels of the feature map;

[0086] The second branch first passes through a Conv3D function with a convolution kernel size of 1×1×1, 20 output channels, and a step size of 1, which is used to provide more feature information for the subsequent convolution layer and enhance the expressiveness of the model; then passes through a Conv3D function with a convolution kernel size of 3×3×3, the number of output channels remains unchanged, and a step size of 1, which is used to extract feature information of a larger scale than the 1×1×1 convolution kernel;

[0087] The third branch first passes through a Maxpool3D function (the ordinary InceptionV2 only uses Maxpool2D 1×1), with a convolution kernel size of 1×1×1, a step size of 1, and same padding to keep the spatial size unchanged, to achieve downsampling of the spatial dimension, capture coarser features, and provide information at different scales; then passes through a Conv3D function, with a convolution kernel size of 3×3×3, 20 output channels, and a step size of 1;

[0088] The fourth branch first passes through a Conv3D function with a convolution kernel size of 1×1×1, 20 output channels, and a step size of 1, which is used to provide more feature information for the subsequent convolution layer and enhance the expressiveness of the model; then it passes through two identical Conv3D functions with a convolution kernel size of 3×3×3, 20 output channels, and a step size of 1, which is used to significantly reduce the number of parameters and extract feature information of a larger scale than the 3×3×3 convolution kernel;

[0089] The outputs of all four branches are combined (contact) in the channel dimension to output a multi-scale feature map, allowing the network to consider multi-scale features simultaneously.

[0090] (3) Convolutional Block Attention Residual Module (ResCBAM3D)

[0091] like Figure 4 As shown in the figure, the convolution block attention residual module includes a channel attention module, a spatial attention module and a residual module. The channel attention module is used to obtain a feature map enhanced by channel attention. The spatial attention module is used to perform spatial attention enhancement on the feature map enhanced by channel attention. Finally, the feature map processed by the channel attention module and the spatial attention module is added to the original input feature map through the residual module to realize the residual connection and output the feature map.

[0092] The channel attention module first uses the Maxpool 3D function and the Avgpool 3D function respectively, with the size of the pooling window being 3×3×3, to reduce the time dimension and the space dimension to reduce the amount of calculation (the traditional CBAM only reduces the space dimension); then the two pooled results are respectively passed through MLP, which includes two Conv3D functions; the first Conv3D function compresses the output channel to 1 / 4 of the original, the convolution kernel size is 1×1×1, the step size is 1, and the relu activation function is used; the second Conv3D function restores the output channel to 120, the convolution kernel size is 1×1×1, the step size is 1, and the relu activation function is used; the pooling results are processed by MLP, the information is fused, and then added to form the channel attention weight; the sigmoid activation function is applied to convert it to between 0 and 1 to indicate the importance of each channel; finally, the channel attention weight is applied to the input feature map by element-by-element multiplication to obtain the feature map with enhanced channel attention.

[0093] The spatial attention module first uses the Max-channel function and the Avg-channel function to calculate the maximum and average values ​​of the feature maps processed by the channel attention module in the spatial dimension, and then concatenates the two in the channel dimension (the last dimension) and sends them to a DWC function. DWC is a 3D depth-separable convolution function, which undergoes depth convolution and point-by-point convolution. The depth convolution performs a separate convolution for each input channel, with a convolution kernel size of 3×3×3 and same padding. The point-by-point convolution is used to mix the channel information after the depth convolution. The output channel is 120, the convolution kernel size is 1×1×1, and same padding is used. The 3D depth-separable convolution function can effectively and efficiently learn the temporal and spatial relationships in the feature map, generate spatial attention weights, and keep the model lightweight and computationally efficient; the spatial attention weights are applied to the feature map processed by the channel attention module using element-by-element multiplication.

[0094] The formula of the convolutional block attention residual module is as follows:

[0095] ;

[0096] ;

[0097] In the formula, is the input tensor, is the output of the channel attention module, represents the output of the spatial attention module, is the output of the channel attention module, is the output of the convolutional block attention residual module, It is the Hadamard product, that is, the elements at each position are multiplied correspondingly, + represents addition, and the values ​​of the two tensors at the same position are added together to generate a new tensor.

[0098] The output calculation formula of the channel attention module is as follows:

[0099] ;

[0100] In the formula, represents the Sigmoid activation function, It is a three-dimensional average pooling layer with a pooling window size of 3×3×3, a step size of 1, and same padding; It is a three-dimensional maximum pooling layer with a pooling window size of 3×3×3, a step size of 1, and same padding. MLP is a multi-layer perceptron, which consists of two Conv3D functions, both with 120 output channels, a convolution kernel size of 3×3×3, a step size of 1, and same padding, which are used to compress and restore the channel dimension respectively.

[0101] The output calculation formula of the spatial attention module is as follows:

[0102] ;

[0103] In the formula, represents the Sigmoid activation function, Represents a 3D depth-separable convolution function, including depth-wise convolution and point-wise convolution. The convolution kernel size of the depth-wise convolution is 3×3×3, the step size is 1, and the same padding is used. The number of output channels of the point-wise convolution is 120, the convolution kernel size is 1×1×1, the step size is 1, and the same padding is used; and Respectively represent the average and maximum values ​​along the channel dimension; Represents concatenation along the channel dimension (the last dimension).

[0104] The formula of relu activation function is as follows:

[0105] ;

[0106] The Sigmoid activation function formula is as follows:

[0107] ;

[0108] Where x represents the input sea surface temperature data, Represents the activation function.

[0109] (4) Convolutional Long Short-Term Memory (ConvLSTM) layer

[0110] like Figure 5As shown in the figure, the convolutional long short-term memory network layer consists of a layer of ConvLSTM, which combines the characteristics of CNN and LSTM. It is used to capture and process the channel attention weights and spatial attention weights obtained by the convolutional block attention residual module, and then generate multi-channel feature maps based on spatiotemporal features.

[0111] The calculation formula of the convolutional long short-term memory network layer is as follows:

[0112] ;

[0113] ;

[0114] ;

[0115] ;

[0116] ;

[0117] ;

[0118] In the formula, Represents the input gate, which is used to control how new information is added to the memory cell the extent of;

[0119] Stands for the forget gate, which is responsible for deciding which information to remove from the memory cell forgotten or preserved;

[0120] Represents the output gate, which determines the memory unit Which information in will be used to form the hidden state at the current time step? , and finally as the output of ConvLSTM or passed to the next time step;

[0121] represents the weight matrix that adjusts the input gate, which affects the degree to which new information enters the memory cell;

[0122] Represents the weight matrix for adjusting the forget gate, which determines the memory unit at the previous moment How much information should be retained?

[0123] represents the weight matrix that regulates the output gate, which controls the memory unit How does the information of affect the hidden state at the current moment? ;

[0124] Represents the input weight matrix of the input gate, which is used to determine the influence of the current input on the memory state update;

[0125] Represents the input weight matrix of the forget gate, which is used to control the memory unit the retention or discarding of information;

[0126] Represents the input weight matrix of the output gate, which is used to determine the memory unit How to be output to the next layer or the next moment;

[0127] Represents the input weight matrix used to generate candidate memory cells and process input data To generate candidate memory units;

[0128] Indicates the hidden state of the connection at the previous moment Enter the gate at the current time The weight matrix is ​​used to determine the degree of filtering and storage of new information;

[0129] Indicates the hidden state of the connection at the previous moment To the current moment forget gate The weight of is used to control the retention or forgetting of old memories;

[0130] Indicates the hidden state of the connection at the previous moment To the current moment forget gate The weight matrix is ​​used to determine the current memory unit How it is exported;

[0131] Indicates the hidden state of the connection at the previous moment Candidate memory unit at the current moment The weight matrix is ​​used to generate candidate memory units The updated value of

[0132] represents the SST data input at time t;

[0133] Represents the Sigmoid function; When it approaches +∞, tends to 1, otherwise it tends to 0;

[0134] and Respectively and The memory unit at each moment is responsible for storing and updating network information;

[0135] Represents candidate memory cells, generating possible updates to the current memory cell new information;

[0136] and Respectively and The hidden state at the moment, based on Generate output for the current time step or pass information to the next time step; , , and Represent the bias vectors of the input gate, forget gate, output gate and candidate memory unit respectively.

[0137] is the Hadamard product.

[0138] (5) Output layer

[0139] The output layer consists of a convolution 2D function, which performs dimensionality reduction, that is, compressing the number of output channels to 1, using a 1×1 convolution kernel to integrate global information, and maintaining the "same" padding method to keep the spatial dimension unchanged. Finally, after this series of processing, a single-channel feature map is output.

[0140] 2. Model training

[0141] The data of the training set is input into the model for training. The hyperparameters of the model are set as follows: the batch size is set to 10, the training epoch is set to 80, RMSE is used as the loss function, the optimizer used is Adam, and the initial learning rate of the training is 0.001. The activation function uses Relu and Sigmoid. During the training process, the learning rate decay strategy is adopted. If the loss error on the validation set does not decrease within 5 consecutive epochs, the learning rate at this time is reduced to half of the original. And the early stopping method is adopted. If the loss function on the test set does not decrease within 20 consecutive epochs, the training stops.

[0142] 3. Model Evaluation

[0143] In order to verify the ability to predict 20 days, 20 days are predicted in the test set.

[0144] First, use 40 days of data to predict the SST for the next day. Then add the predicted SST for the next day to the end of the 40-day sequence, and remove the SST data of the first day to form a new 40-day sequence to predict the SST data of the second day. Repeat this cycle to achieve a rolling forecast of the SST data for the next 20 days.

[0145] For comparison, LSTM, BiLSTM, ConvLSTM and MCSF were used for evaluation respectively, and the average RMSE graph of the prediction of the 20th day for each model at each grid point was plotted, and the average RMSE and average MAE of the prediction of 1-20 days in the entire test set were calculated. The RMSE and MAE formulas are as follows:

[0146] ;

[0147] ;

[0148] in, represents the predicted SST value, represents the actual observed SST value, and n refers to the number of grid points in the data set. The smaller the RMSE and MAE values ​​are, the better the prediction performance of the model is. Figure 6 and Figure 7 .from Figure 6 and Figure 7 It can be seen that the average RMSE and MAE of MCSF prediction for 1-20 days are lower than those of LSTM, BiLSTM and ConvLSTM. The lower the RMSE and MAE, the smaller the error and the better the prediction effect.

[0149] Plot the average RMSE of the forecasted 20th day for each model at each grid point, as shown in Figure 8 As shown. Figure 8 It can be seen that the prediction effect from LSTM, BiLSTM, ConvLSTM to MCSF gradually improves. The RMSE range of the model of the present invention is concentrated between 0-0.4, which is closer to 0 than the other three models, so the model of the present invention has better effect.

[0150] Step 3: Preprocess the sea surface temperature data of the sea area to be predicted in the same way as step 1, and then input it into the qualified model for sea surface temperature prediction.

[0151] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A sea surface temperature prediction method based on multi-scale channels and spatiotemporal information fusion, characterized in that: The steps include: Step 1: preprocess the sea surface temperature dataset obtained from the ERA5 reanalysis data of the European Centre for Medium-Range Weather Forecasts and divide it into a training set and a test set; Step 2: Input the training set data into the deep learning model of multi-scale channel and spatiotemporal information fusion for training, and use the test set data to evaluate the model accuracy; The model consists of five parts: input layer, multi-scale feature extraction module, convolutional block attention residual module, convolutional long short-term memory network layer and output layer; The input layer is used to receive the preprocessed data set; The multi-scale feature extraction module consists of four branches, which are used to fully extract the multi-scale features in the sea surface temperature data and obtain a multi-scale feature map; The convolution block attention residual module includes a channel attention module, a spatial attention module and a residual module. The channel attention module is used to obtain a feature map enhanced by channel attention. The spatial attention module is used to perform spatial attention enhancement on the feature map enhanced by channel attention. Finally, the residual module is used to add the feature map processed by the channel attention module and the spatial attention module to the original input feature map to realize residual connection and output multiple multi-channel feature maps. The convolutional long short-term memory network layer is composed of a layer of ConvLSTM, which is used to capture and process the channel attention weights and spatial attention weights obtained by the convolutional block attention residual module, and then generate a multi-channel feature map based on the spatiotemporal features; The output layer consists of a convolution 2D function, which is used to perform dimensionality reduction and output a single-channel feature map; Step 3: After preprocessing the sea surface temperature data of the sea area to be predicted, input it into the qualified model for sea surface temperature prediction.

2. The method for predicting sea surface temperature based on multi-scale channels and spatiotemporal information fusion according to claim 1, characterized in that: The specific method of step 1 is as follows: (1) First, the sea surface temperature datasets of recent years obtained from the ERA5 reanalysis data were spliced ​​along the time dimension in the order of time, latitude, and longitude. Next, the 24-hour data of each day were averaged, and the Kelvin temperature of the sea surface temperature was converted to Celsius to obtain the daily average sea surface temperature dataset; (2) Assign the temperature of the land part of the daily average sea surface temperature dataset to NAN, and then assign the NAN value to 0 to uniformly handle missing values; (3) The data in the daily average sea surface temperature dataset are normalized to the range of 0-1. The normalization formula is: ; Where y represents the data of the daily average sea surface temperature dataset, represents the normalized daily average sea surface temperature data, represents the minimum value in the daily mean sea surface temperature dataset, Represents the maximum value in the daily mean sea surface temperature dataset; (4) The normalized data is divided into training set and test set in a ratio of 8:

2. The input data of the model has five dimensions, namely batch size, time step, latitude, longitude and number of features; the label has four dimensions, namely batch size, latitude, longitude and number of features.

3. The method for predicting sea surface temperature based on multi-scale channels and spatiotemporal information fusion according to claim 1, characterized in that: In the multi-scale feature extraction module, the first branch passes through a Conv3D function with a convolution kernel size of 1×1×1, an output channel number of 20, and a step size of 1, which is used to increase the number of input channels and increase the number of channels of the feature map; The second branch first passes through a Conv3D function with a convolution kernel size of 1×1×1, 20 output channels, and a step size of 1, which is used to provide more feature information for the subsequent convolution layer and enhance the expressiveness of the model; then passes through a Conv3D function with a convolution kernel size of 3×3×3, the number of output channels remains unchanged, and a step size of 1, which is used to extract feature information of a larger scale than the 1×1×1 convolution kernel; The third branch first passes through a Maxpool3D function with a convolution kernel size of 1×1×1 and a step size of 1. Same padding is used to keep the spatial size unchanged, achieve downsampling of the spatial dimension, capture coarser features, and provide information at different scales. Then it passes through a Conv3D function with a convolution kernel size of 3×3×3, 20 output channels, and a step size of 1. The fourth branch first passes through a Conv3D function with a convolution kernel size of 1×1×1, 20 output channels, and a step size of 1, which is used to provide more feature information for the subsequent convolution layer and enhance the expressiveness of the model; then it passes through two identical Conv3D functions with a convolution kernel size of 3×3×3, 20 output channels, and a step size of 1, which is used to reduce the number of parameters and extract feature information of a larger scale than the 3×3×3 convolution kernel; The outputs of all four branches are combined in the channel dimension to output a multi-scale feature map.

4. The method for predicting sea surface temperature based on multi-scale channels and spatiotemporal information fusion according to claim 1, characterized in that: The channel attention module first uses the Maxpool 3D function and the Avgpool 3D function respectively, and the size of the pooling window is 3×3×3, and the time dimension and the space dimension are reduced; then the two pooled results are respectively passed through MLP, and the MLP includes two Conv3D functions; the first Conv3D function compresses the output channel to 1 / 4 of the original, the convolution kernel size is 1×1×1, the step size is 1, and the relu activation function is used; the second Conv3D function restores the output channel to 120, the convolution kernel size is 1×1×1, the step size is 1, and the relu activation function is used; the pooling results are processed by MLP, the information is fused, and then added to form the channel attention weight; A sigmoid activation function is applied to convert it to between 0 and 1 to indicate the importance of each channel. Finally, the channel attention weight is applied to the input feature map by element-by-element multiplication to obtain a feature map with channel attention enhancement.

5. The method for predicting sea surface temperature based on multi-scale channels and spatiotemporal information fusion according to claim 1, characterized in that: The spatial attention module first uses the Max-channel function and the Avg-channel function to respectively calculate the maximum value and the average value of the feature map processed by the channel attention module in the spatial dimension, and then splices the two in the channel dimension and sends them to the 3D depth separable convolution function, which undergoes depth convolution and point-by-point convolution in succession; the depth convolution is a separate convolution for each input channel, the convolution kernel size is 3×3, and the same padding is used; the point-by-point convolution is used to mix the channel information after the depth convolution, the output channel is 120, the convolution kernel size is 1×1, and the same padding is used; the 3D depth separable convolution function is used to learn the spatial relationship in the feature map and generate the spatial attention weight; The spatial attention weights are applied to the feature maps processed by the channel attention module using element-wise multiplication.

6. The method for predicting sea surface temperature based on multi-scale channels and spatiotemporal information fusion according to claim 1, characterized in that: The formula of the convolutional block attention residual module is as follows: ; ; In the formula, is the input tensor, is the output of the channel attention module, represents the output of the spatial attention module, is the output of the channel attention module, is the output of the convolutional block attention residual module, It is the Hadamard product, that is, the elements at each position are multiplied correspondingly, + represents addition, and the values ​​of the two tensors at the same position are added together to generate a new tensor.

7. The method for predicting sea surface temperature based on multi-scale channels and spatiotemporal information fusion according to claim 6, characterized in that: The output calculation formula of the channel attention module is as follows: ; In the formula, represents the Sigmoid activation function, It is a three-dimensional average pooling layer with a pooling window size of 3×3×3, a step size of 1, and same padding; It is a three-dimensional maximum pooling layer with a pooling window size of 3×3×3, a step size of 1, and same padding. MLP is a multi-layer perceptron, which consists of two Conv3D functions, both with 120 output channels, 1×1×1 convolution kernel sizes, and 1 step size. Both use same padding, which is used to compress and restore channel dimensions, respectively.

8. The method for predicting sea surface temperature based on multi-scale channels and spatiotemporal information fusion according to claim 6, characterized in that: The output calculation formula of the spatial attention module is as follows: ; In the formula, represents the Sigmoid activation function, represents a 3D depth-separable convolution function; and Respectively represent the average and maximum values ​​along the channel dimension; Represents splicing along the channel dimension.

9. The method for predicting sea surface temperature based on multi-scale channels and spatiotemporal information fusion according to claim 4, characterized in that: The relu activation function formula is as follows: ; The Sigmoid activation function formula is as follows: ; Where x represents the input sea surface temperature data, Represents the activation function.

10. The method for predicting sea surface temperature based on multi-scale channels and spatiotemporal information fusion according to claim 1, characterized in that: The calculation formula of the convolutional long short-term memory network layer is as follows: ; ; ; ; ; ; In the formula, represents the input gate, represents the forget gate, represents the output gate; , , Represent the input weight matrices of the input gate, forget gate, output gate, and candidate memory unit respectively; , , and Respectively represent the hidden state of the connection before To the current moment, the input gate, forget gate, output gate and memory unit The weight matrix of , , Respectively represent the weight matrices for adjusting the input gate, forget gate, and output gate; Represents the sea surface temperature data input at time t; Represents the Sigmoid function; and Respectively and The memory unit of the moment; represents a candidate memory unit; and Respectively and The hidden state of the moment; , , and Represent the bias vectors of the input gate, forget gate, output gate and candidate memory unit respectively; is the Hadamard product.

Citation Information

Patent Citations

  • Sea surface temperature prediction method fused with space-time granularity context neural network

    CN117172355A

  • Double-element fusion space-time prediction method based on attention mechanism

    CN117237781A

  • Marine salinity super-resolution reconstruction method based on deep learning SROSRN model

    CN117934274A

  • Sea surface temperature data reconstruction method based on deep learning algorithm

    CN118097455A

  • Marine temperature frontal surface intelligent detection method based on deep learning

    CN118135423A