A method for predicting ENSO based on improved convolutional neural network using subsurface sea temperature anomalies in the tropical Pacific

By improving the convolutional neural network and attention mechanism, and using subsurface sea temperature anomaly data in the tropical Pacific, we have solved the problems of long time consumption and large data resources of existing ENSO prediction methods, achieved efficient and accurate ENSO prediction, and can predict Nino3 in advance. .4 change trend and is more robust when dealing with outliers.

CN118227979BActive Publication Date: 2024-09-06NANJING UNIV OF INFORMATION SCI & TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410652939.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-06
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

Existing ENSO prediction methods require a large amount of data and computing resources, resulting in long-term training and verification of models, and difficulty in capturing the complex nonlinear characteristics of ENSO.

Method used

An improved convolutional neural network (SENet-CNN) combined with an attention mechanism is used to construct an efficient ENSO prediction model using tropical Pacific subsurface sea temperature anomaly data through standardized processing, adding a Dropout layer and a Huber loss function.

Benefits of technology

It reduces the demand for data and computing resources, improves the prediction speed and accuracy, can accurately predict the change trend of Nino3.4 18 months in advance, and is more robust when dealing with outliers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118227979B
    Figure CN118227979B
Patent Text Reader

Abstract

The present invention discloses a method for predicting ENSO based on an improved convolutional neural network using tropical Pacific subsurface sea temperature anomaly, comprising the following steps: (1) collecting tropical Pacific subsurface sea temperature data and Nino3.4 observation data, and preprocessing the data to construct a training data set; (2) building a CNN model with an attention mechanism SENet; (3) training based on the training set and the model; (4) generating a prediction product and calculating ENSO prediction using the Pearson product-moment correlation coefficient; the present invention uses less data resources and computing resources, has a faster computing speed, and has a longer prediction time; it highlights the meridional disturbance of the subsurface sea temperature, and can better reflect the characteristics of the eastward propagation of the tropical Pacific subsurface sea temperature anomaly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ENSO prediction, and in particular to a method for predicting ENSO based on an improved convolutional neural network and utilizing subsurface sea temperature anomalies in the tropical Pacific Ocean. Background Art

[0002] ENSO (El Niño-Southern Oscillation) is considered the strongest signal of interannual climate change and has received widespread attention from around the world. ENSO phenomena include El Niño and La Niña, which are driven by changes in sea surface temperature and atmospheric pressure in the equatorial Pacific. Predicting ENSO events is crucial to mitigating its impacts on society, economy and environment.

[0003] Traditional ENSO prediction methods are mainly based on statistical models that rely on historical climate data, such as the NINO3.4 index. However, these methods have limitations in predicting ENSO events because they may not capture the complex nonlinear characteristics of ENSO dynamics. Therefore, machine learning, especially deep learning methods, has become an emerging tool for predicting ENSO. Since 2019, scientists at home and abroad have begun to use deep learning methods to predict ENSO, but before training, a large amount of climate data needs to be collected and preprocessed, including SST, wind direction, wind speed, sea level pressure, etc. This method requires a large amount of data and computing resources to design, train and verify the model, which is computationally intensive and time-consuming. Summary of the invention

[0004] Purpose of the invention: The purpose of the present invention is to provide a method for predicting ENSO based on an improved convolutional neural network using subsurface sea temperature anomalies in the tropical Pacific Ocean, so as to solve the problem in the prior art that a large amount of data and computing resources are required to design, train and verify the model.

[0005] Technical solution: The method for predicting ENSO based on an improved convolutional neural network using subsurface sea temperature anomalies in the tropical Pacific Ocean comprises the following steps:

[0006] (1) Collect tropical Pacific subsurface temperature data and Nino3.4 observation data, preprocess the data, and construct a training data set;

[0007] (2) Build a CNN model with SENet, an attention mechanism;

[0008] (3) performing training based on the training set and the model;

[0009] (4) Generate forecast products. The ENSO forecast is calculated using the Pearson product-moment correlation coefficient.

[0010] Further, step (1) is as follows: select the tropical Pacific subsurface sea temperature data of 16 layers, 5m-250m below the sea surface, 5°N-5°S, 105°E-90°W in the tropical Pacific Ocean, with a resolution of 0.5°×0.5°; the tropical Pacific subsurface sea temperature data is processed as follows: first calculate the monthly anomaly, then calculate the latitudinal anomaly; the Nino3.4 index obtained by the Hadley Center observation is the target observation data; the preprocessing is as follows: the collected tropical Pacific subsurface sea temperature data and the target observation data are standardized; wherein,

[0011] The anomaly formula is:

[0012] ;

[0013] in, is the result after deviation. Represents the mean value of x.

[0014] Furthermore, step (2) is as follows: SENet module and flattening layer are introduced between the convolutional layer and the fully connected layer of the CNN model; the improved SENet-CNN model includes: 3 convolutional layers, SENet module, 1 flattening layer and 3 fully connected layers; Dropout layer is introduced into the first two layers of the fully connected layer; each convolutional layer includes: batch normalization layer, activation function layer and maximum pooling layer; the specific process of the model is: the input data first passes through the convolutional module, then passes through the SENet block, the data is flattened and passes through the fully connected layer, and finally returns the output.

[0015] Furthermore, step (3) is as follows: the processed data is divided into training set and test set according to the year, and the training set is randomly divided into batches to train the model; the gradient descent method is used to compare the model results with the target data; the Huber loss is used as the loss function, and the formula is as follows:

[0016] ;

[0017] in, , is the predicted value With the true value The difference between is a hyperparameter, set to 0.5; when When , the Huber loss is the MSE function, when When , the loss becomes a linear function.

[0018] Furthermore, the calculation formula of step (4) is as follows:

[0019] ;

[0020] Where r is the correlation coefficient, is the ith predicted value, is the average of the predicted values, is the ith measured value, is the average of the measured values.

[0021] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: considering that the tropical Pacific subsurface sea temperature has obvious interannual variation (cycle) and is closely related to the physical mechanism of the formation of ENSO, the tropical Pacific subsurface sea temperature anomaly is used to predict ENSO, and the prediction method uses less data resources and computing resources, has a faster calculation speed, and a longer prediction time; on the basis of the temporal anomaly of the tropical Pacific subsurface sea temperature, the latitudinal anomaly is also made, highlighting the meridional disturbance of the subsurface sea temperature, which can better reflect the characteristics of the eastward propagation of the tropical Pacific subsurface sea temperature anomaly; considering the correlation between the target data and the input data, the attention mechanism SENet is added to the network structure to improve the data utilization efficiency; using Huber Loss, it combines the characteristics of mean square error (MSE) and mean absolute error (MAE) and can provide better robustness when outliers exist compared with MSE. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of the present invention;

[0023] Figure 2 This is a diagram of the improved deep learning model architecture of the present invention;

[0024] Figure 3 This is the change of the correlation coefficient of ENSO prediction in the present invention with the forecast time. DETAILED DESCRIPTION

[0025] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0026] like Figure 1 As shown, an embodiment of the present invention provides a method for predicting ENSO based on an improved convolutional neural network using subsurface sea temperature anomalies in the tropical Pacific Ocean, comprising the following steps:

[0027] (1) Collect tropical Pacific subsurface temperature data and Nino3.4 observation data, and preprocess the data to construct a training data set; specifically, select 16 layers of tropical Pacific subsurface temperature data from 5°N-5°S, 105°E-90°W below the sea surface, with a resolution of 0.5°×0.5°; the processing of tropical Pacific subsurface temperature data is as follows: first calculate the monthly anomaly, and then calculate the latitudinal anomaly; the Nino3.4 index obtained by the Hadley Center observation is the target observation data; the preprocessing is as follows: the collected tropical Pacific subsurface temperature data and target observation data are standardized; where,

[0028] The anomaly formula is:

[0029] ;

[0030] in, is the result after deviation. Represents the mean value of x.

[0031] Build a CNN model with SENet added to the attention mechanism; Figure 2 As shown in the figure, the details are as follows: SENet modules and flattening layers are introduced between the convolutional layers and the fully connected layers of the CNN model; the improved SENet-CNN model includes: 3 convolutional layers, SENet modules, 1 flattening layer and 3 fully connected layers; the first two layers in the fully connected layer introduce the Dropout layer; each convolutional layer includes: batch normalization layer, activation function layer and maximum pooling layer; the specific process of the model is: the input data first passes through the convolutional module, then passes through the SENet block, the data is flattened and passes through the fully connected layer, and finally returns the output.

[0032] Among them, convolutional layers:

[0033] nn.Conv2d(160, 64, kernel_size=(4, 8), padding="same"): This is a 2D convolutional layer that convolves the input data (assuming there are 160 channels) through 64 convolution kernels (filters) with a convolution kernel size of 4x8. padding="same" means that padding is used to ensure that the size of the output feature map is the same as the input.

[0034] nn.Conv2d(64, 128, kernel_size=(4, 2), padding="same"): Similar to the first convolutional layer, this layer convolves the 64-channel input data through 128 convolution kernels with a convolution kernel size of 4x2.

[0035] nn.Conv2d(128, 64, kernel_size=(4, 2), stride=(1, 1), padding="same"): This layer convolves the 128-channel input data through 64 convolution kernels with a kernel size of 4x2 and a stride of 1x1.

[0036] Batch Normalization Layers:

[0037] nn.BatchNorm2d(64): Batch normalizes the convolution output of 64 channels, which helps speed up the training process and reduce overfitting.

[0038] nn.BatchNorm2d(128): Batch normalize the convolution output with 128 channels.

[0039] Activation Functions:

[0040] nn.ReLU(inplace=True): Apply the ReLU activation function to perform nonlinear transformation on the output of each convolutional layer and fully connected layer.

[0041] Pooling Layers:

[0042] nn.MaxPool2d(kernel_size=(2, 2), stride=(2, 2)): performs maximum pooling on the feature map with a pooling window size of 2x2 and a stride of 2x2, which helps reduce the size of the feature map and extract important features.

[0043] SENet block (Squeeze-and-Excitation Block):

[0044] The attention mechanism SENet outputs the same number of weight values ​​as the input features through a structure consisting of a global average pooling layer plus two fully connected layers and the corresponding activations (ReLU and Sigmoid) of the fully connected layers, that is, the weight coefficient of each feature channel, which is used to decide which channels should focus on extracting features and which parts should be abandoned.

[0045] Fully Connected Layers:

[0046] nn.Linear(31488, 128): A linear layer that maps the flattened feature vector to a 128-dimensional vector.

[0047] nn.Linear(128, 64): Another linear layer that maps a 128-dimensional vector to a 64-dimensional vector.

[0048] nn.Linear(64, 18): The last linear layer maps the 64-dimensional vector to an 18-dimensional vector, which is usually the output layer of the network for classification tasks.

[0049] Dropout Layers:

[0050] nn.Dropout(p=0.5): Applies Dropout, randomly setting half of the activation units to zero, which helps prevent overfitting.

[0051] Flatten Layer:

[0052] nn.Flatten(): Flattens the output of the convolutional layer into a one-dimensional vector for input to the fully connected layer.

[0053] (3) Training is performed based on the training set and the model; specifically, the processed data is divided into a training set and a test set according to the year, and the training set is randomly divided into batches to train the model; the model results are compared with the target data using the gradient descent method; Huber is used as the loss function, and the formula is as follows:

[0054] ;

[0055] in, , is the predicted value With the true value The difference between is a hyperparameter, set to 0.5; when The Huber loss is an MSE function, so that for smaller errors, the gradient will not be too large, which helps the stable learning of the model. When , the loss becomes a linear function, which reduces the impact of outliers on the gradient and makes the model more robust to outliers.

[0056] During the training process, the model structure and parameters (mainly including convolutional layer settings, pooling layer settings, and learning rate) are adjusted to train a model with the smallest prediction error.

[0057] (4) Generate forecast products and use the Pearson product-moment correlation coefficient to calculate the ENSO forecast. The calculation formula is as follows:

[0058] ;

[0059] Where r is the correlation coefficient, is the ith predicted value, is the average of the predicted values, is the ith measured value, is the average of the measured values.

[0060] If the predicted correlation coefficient is around 0.5, it is considered that the model can accurately predict the change trend of Nino3.4. Figure 3 As shown, the actual prediction results show that the correlation coefficients of the prediction time from 1 to 18 months are all over 0.5, indicating that the model can predict the changing trend of Nino3.4 18 months in advance.

Claims

1. A method for predicting ENSO based on improved convolutional neural network using subsurface sea temperature anomalies in the tropical Pacific. It is characterized in that The following steps are involved: (1) Collect tropical Pacific subsurface temperature data and Nino3.4 observation data, and preprocess the data to construct a training data set; specifically, select 16 layers of tropical Pacific subsurface temperature data from 5°N-5°S and 105°E-90°W below the sea surface, with a resolution of 0.5°×0.5°; the processing of tropical Pacific subsurface temperature data is as follows: first calculate the monthly anomaly, then the latitudinal anomaly; the Nino3.4 index obtained by the Hadley Center observation is the target observation data; the preprocessing is as follows: the collected tropical Pacific subsurface temperature data and the target observation data are standardized; where, The anomaly formula is: ; in, is the result after deviation. represents the average value of x; (2) Build a CNN model with SENet attention mechanism; the details are as follows: Introduce SENet module and flattening layer between the convolutional layer and the fully connected layer of the CNN model; the improved SENet-CNN model includes: 3 convolutional layers, SENet module, 1 flattening layer and 3 fully connected layers; the first two layers of the fully connected layer introduce Dropout layer; each convolutional layer includes: batch normalization layer, activation function layer and maximum pooling layer; the specific process of the model is: the input data first passes through the convolutional module, then passes through the SENet block, the data is flattened and passes through the fully connected layer, and finally returns the output; (3) Training is performed based on the training data set and the model. Specifically, the processed data is divided into a training set and a test set according to the year, and the training set is randomly divided into batches to train the model. The gradient descent method is used to compare the model results with the target data. Huber is used as the loss function, and the formula is as follows: ; in, , is the predicted value With the true value The difference between is a hyperparameter, set to 0.5; when When , the Huber loss is the MSE function, when When , the loss becomes a linear function; (4) Generate forecast products. The Pearson product-moment correlation coefficient is used to calculate the ENSO forecast. The calculation formula is as follows: ; Where r is the correlation coefficient, is the ith predicted value, is the average of the predicted values, is the ith measured value, is the average of the measured values.

Citation Information

Patent Citations

  • ENSO (El Nino-Southern Oscillation) aggregative indicator and runoff prediction method thereof

    CN106250699A

  • South China area summer average temperature short term climate prediction method and system

    CN106485371A

  • Sea surface temperature deep learning prediction method based on space-time multi-dimensional influence

    CN111680784A

  • ENSO prediction method and device and computer readable storage medium

    CN114707708A

  • ENSO intelligent prediction method and device, equipment and storage medium

    CN114861530A