A Mamba-based prediction method for Arctic sea ice density
By using the Mamba network model in Arctic sea ice density prediction to extract and learn the spatiotemporal features of sea ice data, it solves the problems of insufficient capture of spatiotemporal features and high consumption of computing resources in the existing technology, and achieves more efficient and accurate predictions. Sea ice concentration forecasts.
Patent Information
- Application Number
- CN202410719179.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-05
AI Technical Summary
Existing Arctic sea ice density predictions based on numerical or statistical methods are difficult to effectively capture the spatiotemporal characteristics of sea ice data, and consume large amounts of computing resources, resulting in insufficient model flexibility and accuracy.
Adopt a Mamba-based network model to extract and learn spatio-temporal sequence features through the Encoder, Decoder and Mamba modules, use dual-branch convolution and Mamba modules to process time and space features respectively, and combine Huber Loss and AdamW optimization algorithms to reduce computational complexity and improve Model performance.
It improves the accuracy and timeliness of sea ice density prediction, reduces the consumption of computing resources, enhances the model's ability to perceive spatiotemporal characteristics, and improves the robustness and generalization ability of the prediction.
Smart Images

Figure CN118298327B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of remote sensing data analysis, and in particular relates to a Mamba-based method for predicting Arctic sea ice density. Background Art
[0002] Sea ice is an ice layer formed on the surface of seawater, mainly composed of frozen seawater. It is affected by many factors such as climate change, ocean circulation, and wind, and has a complex formation and evolution process. Changes in Arctic sea ice cover are one of the important indicators of global climate change and have an important impact on the stability and changes of the earth's climate system. By monitoring and understanding the changing laws of Arctic sea ice, we can improve our ability to predict climate change. Understanding the formation mechanism and evolution of sea ice is crucial to predicting sea ice density. Using remote sensing data to monitor the changing trend of Arctic sea ice density can help scientists understand the process and trend of climate change more accurately and provide important data support for climate change research. The area of Arctic sea ice is constantly shrinking and thinning. Opening up Arctic summer commercial shipping routes can greatly shorten the shipping distance from Asia to Europe. Accurately predicting the daily sea ice density in the Arctic and the distribution of sea ice in the next 14 days can help ships avoid sea ice areas, reduce accident risks, and improve shipping safety; predicting the sea ice density in the next 14 days can help researchers make long-term plans and decisions.
[0003] Arctic sea ice prediction based on remote sensing data relies on a variety of technologies. The Arctic region mainly relies on satellite remote sensing data to obtain sea ice information, including coarse-resolution images provided by SMMR, SSM / I and SSMIS satellites and ERA5 reanalysis data. The key step in the prediction process is to extract and analyze the characteristics of sea ice. The sea ice data is denoised, edge detected and feature extracted through image processing technology to obtain characteristic information such as the morphology and texture of sea ice. Machine learning and deep learning technologies play an important role in the prediction of sea ice density. Traditional machine learning methods such as support vector machine (SVM) and random forest are used to establish statistical models, while deep learning methods such as convolutional neural network (CNN) and recurrent neural network (RNN) better capture the spatiotemporal characteristics in the image and improve the accuracy and precision of the prediction. Data assimilation technology is a key method to integrate multi-source observation data with model prediction results. Through data assimilation, observation data from different sources can be effectively integrated, prediction errors can be reduced, and the accuracy and reliability of sea ice density prediction can be improved. The development and innovation of these technologies provide strong support for improving the accuracy and reliability of sea ice prediction.
[0004] Although most current sea ice density predictions based on numerical or statistical methods have achieved good results, these methods still have some problems. The main problems are: (1) Sea ice data contains complex nonlinear relationships and spatiotemporal characteristics. When predicting Arctic sea ice density, how to adaptively extract these complex nonlinear relationships, automatically learn the features and patterns in the input data, and improve the flexibility and accuracy of the model is a difficult problem that needs to be solved. (2) In the past period of time, researchers have used numerical or statistical models to predict Arctic sea ice, but these methods require a lot of CPU computing resources and cannot perform lightweight predictions.
[0005] Therefore, how to more effectively capture the spatiotemporal characteristics of sea ice data and reduce the consumption of computing resources by traditional models is a task that cannot be ignored. Summary of the invention
[0006] In view of the problems of insufficient spatiotemporal feature capture and excessive computing resource demand in the existing sea ice density prediction based on remote sensing data, this paper proposes a Mamba-based Arctic sea ice density prediction method to improve the performance and accuracy of sea ice density prediction tasks.
[0007] The present invention uses multi-source remote sensing data (including satellite remote sensing, meteorological radar, etc.) to predict and monitor the sea ice density in the Arctic region, aiming to improve the accuracy and timeliness of sea ice prediction.
[0008] To achieve the above object, the technical solution implemented by the present invention is as follows:
[0009] A method for predicting Arctic sea ice density based on Mamba, comprising the following steps:
[0010] S1: Collect historical sea ice concentration observation datasets;
[0011] S2: preprocessing the historical sea ice density observation data set, extracting the temporal and spatial characteristics of sea ice density, and constructing a training data set, an evaluation data set, and a test data set;
[0012] S3: constructing a Mamba network model capable of extracting and learning spatiotemporal sequences, wherein the Mamba network model includes an Encoder module, a Decoder module, and a Mamba module;
[0013] S4: sending the training data set to the Mamba network model for training, training the temporal features and the spatial features respectively during the training process, and finally fusing the two features;
[0014] S5: Use the evaluation dataset to cross-validate the performance of the Mamba network model and dynamically adjust the model parameters to achieve the best results at the end of training;
[0015] S6: Use the trained Mamba network model to test the test data set, and use qualitative and quantitative indicators to comprehensively evaluate the model's prediction results;
[0016] S7: Use the trained Mamba network model to make predictions and output the final prediction result graph.
[0017] Furthermore, in S1, the OSI-450-a dataset is downloaded from the OSI-SAF official website. The dataset provides global sea ice density information from 1978 to 2020. The dataset is processed according to the official documentation, and the naming format of the downloaded data is modified in batches using Python coding to facilitate reading and processing in the next stage.
[0018] Furthermore, the S2 includes
[0019] S2-1: Preprocess the data set collected in S1, use the netCDF4 and xarray library functions in Python to extract the temporal and spatial features in the data set, sort the temporal features in chronological order and generate a time list, ensuring that all temporal features are within the specified start and end time periods;
[0020] S2-2: The land data values in the original data set are all set to -32767. According to this data feature, the code is used to process the land part in the data set. The land mask is generated according to the data value of the land part to ensure that the land data does not need to be loaded when the model is used for training in the later stage, thereby reducing the calculation amount of the model. Finally, all the land values are preprocessed to 0, which reduces the space occupied by storing land values and facilitates model recognition;
[0021] S2-3: Sea ice density is the fraction of the ocean area of a unit covered by sea ice. It is given as a percentage, ranging from 0 to 100. Normalization is used to process all sea ice data to be distributed between [0, 1]. Finally, the preprocessed data is written into a ".nc" file and output as a dataset to be used;
[0022] S2-4: Divide the preliminarily processed data set into a data set used in the training phase, a data set used in the model performance evaluation phase, and a data set used in the model final result testing phase; the ratio of the three data sets used in the present invention is.
[0023] Furthermore, in S3, the Mamba network model structure is represented as: input data → Encoder module extracts features → Mamba module processes features → Decoder module restores and reconstructs data → fully connected layer; wherein the input data is a five-dimensional feature represented as [B, T, C, H, W], B represents the Batch Size of the model, and during the experiment, the Batch Size is set to 4. Setting this value too large will result in excessive video memory usage; T represents a picture that is input into the model at one time.
[0024] The purpose of this invention is to predict sea ice for the next two weeks, so here; C represents the input channel dimension. Before the data is input into the model, the image is cut and a whole image is divided into 3×3 sub-images and fed into the model, so the initial channel dimension is 9; H and W represent the length and width of the image input to the model. Before the feature is input into the dual-branch convolution module, in order to facilitate the subsequent processing of the feature dimension, the feature dimension is reshaped to [D, C, H, W].
[0025] Furthermore, in S3, the specific training process of the Mamba network model is as follows:
[0026] S3-1: In the Encoder stage, N serial two-branch convolutions are designed to extract feature information from sea ice data (N=4 in the experiment). During the downsampling process, the dimension of the data input to the model changes as follows: [56, 9,144, 144] → [56, 48, 144, 144] → [56, 48, 72, 72] → [56, 64, 72, 72] → [56, 64, 36, 36];
[0027] S3-11: The first branch of the dual-branch convolution uses a 3×3 convolution to extract shallow features while retaining more spatial information. The calculation process of this branch is expressed as:
[0028] ;
[0029] in, represents a 3×3 convolution, X represents the input data, and Y1 represents the output feature of the first branch;
[0030] S3-12: The second branch of the dual-branch convolution is a 1×1 convolution followed by an n×n depthwise separable convolution (DWConv). This branch is used to extract deep features, including spatial and channel information. The n×n DWConv can effectively capture the spatial and channel information of sea ice data and share weights between channels, thereby reducing the number of parameters. During the experiment, the settings in this branch are [9, 7, 5, 3] in sequence. The calculation process of this branch is expressed as:
[0031] ;
[0032] in, represents 1×1 convolution, represents an n×n depth-separable convolution, and Y2 represents the output feature of the second branch;
[0033] S3-13: The features extracted from the two branches are fused, and the fused features are downsampled using a 1×1 convolution. Then, normalization and activation functions are used to improve the performance of the network and the training efficiency. The specific calculation process is expressed as follows:
[0034] ;
[0035] ;
[0036] Among them, Concat represents the fusion feature operation, Z is the feature representation after the fusion of the two branch features, and LayerNorm represents layer normalization. represents the activation function, Represents the final output of the dual-branch convolution module;
[0037] S3-2: Send the extracted features to N t stacked interactive Mamba modules (N in the experiment t =6), these features are divided into time features and space features, and Mamba is used to process them respectively. The time features are processed by the time Mamba module, and the space features are processed by the space Mamba module. The calculation of the time Mamba module and the space Mamba module is expressed as:
[0038] ;
[0039] Among them, Linear represents linear projection, represents a 3×3 convolution, Represents element-by-element multiplication, Y represents the final fused and processed features, SS1D and SS2D represent the state space calculation equations of the Mamba module. The calculation equations of these two modules are the same, and the difference lies in the scanning mechanism of the features. SS1D represents the use of forward and backward scanning mechanisms in the channel dimension for time features, and SS2D represents the use of upward, downward, left and right scanning mechanisms in the spatial dimension for spatial features. Combining the two scanning mechanisms, the information of sea ice data is fully mined and the model's perception and understanding of this information is enhanced. This module first maps the features to one dimension and then converts the one-dimensional input signal into Mapping to N-dimensional latent states , and then projected to the one-dimensional input signal , the calculation process is as follows:
[0040] ;
[0041] in, is the state transition matrix, is the matrix input to the state, is the state-to-output matrix, and D is the parameter directly from input to output (usually D=0);
[0042] S3-3: In the Decoder stage, N serial convolution blocks are used to restore the image (N=4 in the experiment). The feature dimension of the data changes as follows: [56, 64, 36, 36] → [56, 64, 72, 72] → [56, 48,72, 72] → [56, 48, 144, 144] → [56, 9, 144, 144]. This convolution block includes a convolution layer, a normalization layer and an activation function. The specific calculation is as follows:
[0043] ;
[0044] S3-4: A fully connected layer is used for the data finally restored by the decoder. A 1×1 convolution is used here to perform the operation. The final feature is modeled by mapping the input features to the output feature space, fusing the feature information of different channels to generate a richer and more abstract feature representation, and processing the feature dimension into the dimension of the final output. The calculation formula is expressed as:
[0045] ;
[0046] S3-5: Huber Loss is used to calculate the loss of the final output result. This loss function is also called smooth mean absolute error. Compared with the mean square error (MSE), Huber Loss is more robust to outliers when the error is small because it is a weighted combination of absolute error and square error. Huber Loss has less impact on outliers in some cases, while retaining the continuity and differentiability of MSE. It is defined as follows:
[0047] ;
[0048] in, is the true value, is the predicted value, N is the number of samples, Represents the hyperparameters of Huber Loss;
[0049] S3-6: Use the AdamW optimization algorithm for parameter optimization. Compared with the standard Adam algorithm, AdamW is more accurate in handling weight decay, can better control the regularization effect of the model, and improve the generalization performance of the model.
[0050] Furthermore, in S4, the divided data set is sent to the network model for training. During the training process, the time feature and the space feature are trained separately, and finally the two features are fused: the training for the time and space features is a parallel process. By training the time and space features in parallel, the model can learn different types of feature representations at the same time, thereby improving the model's ability to understand the data. The time feature can capture the dynamic changes of the sequence data, while the space feature can capture the structure and morphological information of the spatial data. This parallel training design can also effectively reduce the model's excessive dependence on a certain feature, thereby reducing the risk of overfitting, balancing the contribution of the two features to the model, and thus improving the generalization ability of the model.
[0051] Furthermore, in S5:
[0052] S5-1: Use the evaluation data set divided in S2 to evaluate the performance of the model after 1 epoch training. Take the result of the first training of the model as the benchmark. If the effect of subsequent training is better than this benchmark, update the benchmark, otherwise retrain the model.
[0053] S5-2: When the benchmark indicators have not been updated for 10 consecutive epochs during training, it can be determined that the model performance has reached the best, and the training is stopped. The trained model is saved and prepared for the next stage of testing.
[0054] Advantages and beneficial technical effects of the present invention:
[0055] Advantages of the technical solution of the present invention:
[0056] 1. Generate a mask image using the land information in the data set. Use the mask image to cover the land area during training so that the model only needs to focus on the ocean area when performing prediction tasks, thereby greatly reducing the amount of calculation of the model.
[0057] 2. Use double-branch convolution to extract the features of sea ice data, and use convolution to increase the receptive field of the convolution kernel, so that the model can more fully extract the global features of sea ice data and enhance the model's perception of sea ice data features.
[0058] 3. The Mamba network structure is used to process the extracted temporal features and spatial features respectively. The spatial features are scanned in four directions, namely upward, downward, left and right, to fully learn the dependencies between features and enhance the model's ability to represent spatial features. The temporal features are scanned in two directions, namely forward and backward, on the channel, so that the model can fully explore the relationship between temporal features and enhance the model's ability to understand the trend of sea ice changes. These two scanning feature mechanisms are used to enhance the model's ability to learn features and improve the model's prediction ability.
[0059] 4. Use the Mamba network structure to linearly project the feature information into one dimension, thereby reducing the computational complexity of the model to the level and accelerating the model's learning speed for feature information.
[0060] The present invention generates a land mask image to mask the land area, uses a dual-branch convolution to expand the convolution kernel receptive field, splits the spatiotemporal features and processes the temporal and spatial features respectively, uses the Mamba network structure to reduce the model calculation amount, and enhances the model's perception of spatiotemporal features, so that the model has high robustness. The present invention predicts and monitors the sea ice density in the future by analyzing the spatiotemporal variation of sea ice coverage, and provides a reliable decision-making basis for the fields of shipping safety, resource development, ecological environmental protection, and marine resource management in the Arctic waters. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 It is a schematic diagram of a flowchart of an embodiment of the present invention.
[0062] Figure 2 It is a schematic diagram of a principle flow chart of an embodiment of the present invention.
[0063] Figure 3 Schematic diagram of the neural network structure described in an embodiment of the present invention.
[0064] Figure 4 It is a detailed structural diagram of the Mamba module according to an embodiment of the present invention.
[0065] Figure 5 Schematic diagram of Arctic sea ice density under representative extreme weather conditions of the present invention, wherein (a) corresponds to April 1, 2020, (b) corresponds to June 1, 2020, (c) corresponds to August 1, 2020, and (d) corresponds to September 1, 2020.
[0066] Figure 6 This is the actual sea ice density distribution used in the embodiments of the present invention.
[0067] Figure 7 This is the prediction of the sea ice density for the next 14 days according to an embodiment of the present invention.
[0068] Figure 8 This is the difference between the prediction of the sea ice density in the next 14 days by the comparison method ConvLSTM used in the embodiment of the present invention and the actual distribution.
[0069] Fig. 9 This is the difference between the prediction of sea ice density for the next 14 days by the comparison method PredRNN used in the embodiment of the present invention and the actual distribution.
[0070] Fig.10 This is the difference between the prediction of sea ice density for the next 14 days by the comparison method PredRNN_V2 used in the embodiment of the present invention and the actual distribution.
[0071] Fig.11 This is the difference between the prediction of the sea ice density for the next 14 days by the method of the present invention in the embodiment of the present invention and the actual distribution. DETAILED DESCRIPTION
[0072] The present invention is further described below through specific embodiments in conjunction with the accompanying drawings.
[0073] A method for predicting Arctic sea ice density based on Mamba, such as Figure 1 , Figure 2 As shown, the following steps are included:
[0074] Step 1: Collect historical sea ice density observation data, extract sea ice density features, and process the sea ice density data into the specified ".nc" data format:
[0075] Step 1.1: Download the OSI-450-a dataset from the OSI-SAF official website. This dataset provides global sea ice density information from 1978 to 2020. Process the dataset according to the official documentation, use the netCDF4 and xarray library functions in Python to extract the sea ice density features in the downloaded dataset, and finally write all the processed data into a ".nc" file to generate the dataset used in the experiment, which is convenient for reading in the next stage;
[0076] Step 2: Preprocess the sea ice density dataset to construct training dataset, evaluation dataset, and test dataset:
[0077] Step 2.1: Further preprocess the data set after preliminary processing in step 1.1, use Python library functions to extract the time and space features in the data set, sort the time features in chronological order and generate a time list, ensuring that all time features are within the specified start and end time periods;
[0078] Step 2.2: The land data values in the original data set are all set to -32767. Encoding is performed based on this data feature. The land data in the data set is processed with code. A land mask is generated based on the land data values to ensure that the land data does not need to be loaded when the model is used for training in the later stage, thereby reducing the amount of calculation of the model. Finally, all land values are preprocessed to 0, which reduces the space occupied by storing land values and facilitates model recognition.
[0079] Step 2.3: Sea ice density is the fraction of ocean area covered by sea ice. It is given as a percentage, ranging from 0 to 100. Normalization is used to process all sea ice data to be distributed between [0, 1]. Finally, the preprocessed data is written into a ".nc" file and output as a dataset to be used.
[0080] Step 2.4: Divide the preliminarily processed data set into a data set used in the training phase, a data set used in the model performance evaluation phase, and a data set used in the model final result testing phase. The ratio of these three data sets used in this embodiment is:
[0081] Step 3: Build a Mamba network model that can extract and learn spatiotemporal sequences, such as Figure 3 , Figure 4 shown.
[0082] The Mamba network model constructed by the present invention is composed of an Encoder module, a Decoder module and an intermediate Mamba module. The detailed model network structure can be expressed as: input data → Encoder module extracts features → Mamba module processes features → Decoder module restores and reconstructs data → fully connected layer. The input data is a five-dimensional feature that can be expressed as [B, T, C, H, W]. B represents the Batch Size of the model. During the experiment, the Batch Size is set to 4. If the value is set too large, it will cause excessive video memory occupation; T represents a picture input into the model at one time. The purpose of the present invention is to predict sea ice for the next two weeks, so T=14 here; C represents the input channel dimension. Before the data is input into the model, the image is cut, and a whole image is divided into 3×3 sub-images and sent to the model, so the initial channel dimension is 9; H and W represent the length and width of the picture input to the model. Before the feature is input into the dual-branch convolution module, in order to facilitate the subsequent processing of the feature dimension, the feature dimension is Reshaped to [D, C, H, W].
[0083] Step 3.1: In the Encoder stage, N serial two-branch convolutions are designed to extract feature information from sea ice data. The characteristic is that N=4 is taken during the experiment. During the downsampling process, the dimension of the data input to the model changes as follows: [56, 9, 144, 144] → [56, 48, 144, 144] → [56, 48, 72, 72] → [56, 64,72, 72] → [56, 64, 36, 36]:
[0084] Step 3.1.1: The first branch of the dual-branch convolution uses a 3×3 convolution to extract shallow features while retaining more spatial information. The calculation process of this branch can be expressed as:
[0085] ;
[0086] in, represents a 3×3 convolution, X represents the input data, and Y1 represents the output feature of the first branch;
[0087] Step 3.1.2: The second branch of the dual-branch convolution is a 1×1 convolution followed by an n×n depthwise separable convolution (DWConv). This branch is used to extract deep features, including spatial and channel information. The n×n DWConv can effectively capture the spatial and channel information of sea ice data and share weights between channels, thereby reducing the number of parameters. During the experiment, n in this branch was set to [9, 7, 5, 3] in sequence. The calculation process of this branch can be expressed as:
[0088] ;
[0089] in, represents 1×1 convolution, represents an n×n depth-separable convolution, and Y2 represents the output feature of the second branch;
[0090] Step 3.1.3: Fuse the features extracted by the two branches, then downsample the fused features using a 1×1 convolution, and then use normalization and activation functions to further process these extracted features. The specific calculation process can be expressed as:
[0091] ;
[0092] Among them, Concat represents the fusion feature operation, Z is the feature representation after the fusion of the two branch features, and LayerNorm represents layer normalization. represents the activation function, and Z' represents the final output of the dual-branch convolution module;
[0093] Step 3.2: Send the extracted features to N t A stacked interactive Mamba module is used to divide these features into time features and space features. Mamba is used to process them separately. The time features are processed by the time Mamba module, and the space features are processed by the space Mamba module. The calculation of the time Mamba module and the space Mamba module can be expressed as:
[0094] ;
[0095] Among them, Linear represents linear projection, Represents element-by-element multiplication, Y represents the final fused and processed features, SS1D and SS2D represent the state space calculation equations of the Mamba module. The calculation equations of these two modules are the same, and the difference lies in the scanning mechanism of the features. SS1D represents the use of forward and backward scanning mechanisms in the channel dimension for time features, and SS2D represents the use of upward, downward, left and right scanning mechanisms in the spatial dimension for spatial features. Combining the two scanning mechanisms, the information of sea ice data can be fully mined and the model's perception and understanding of this information can be enhanced. This module first maps the features to one dimension, and then converts the one-dimensional input signal Mapping to N-dimensional latent states , and then projected to the one-dimensional input signal , the calculation process is as follows:
[0096] ;
[0097] in, is the state transition matrix, is the matrix input to the state, is the state-to-output matrix, and D is the parameter directly from input to output (usually D=0);
[0098] Step 3.3: In the Decoder stage, N serial convolution blocks are used to restore the image. In this process, N=4. The feature dimension of the data changes as follows: [56, 64, 36, 36] → [56, 64, 72, 72] → [56, 48, 72, 72] → [56, 48, 144, 144] → [56, 9, 144, 144]. This convolution block includes a 3×3 convolution layer, a normalization layer, and an activation function. The specific calculation is as follows:
[0099] .
[0100] Step 3.4: Use a fully connected layer for the data finally restored by the Decoder. Here, a 1×1 convolution is used to perform the operation. The final feature is modeled by mapping the input features to the output feature space, fusing the feature information of different channels to generate a richer and more abstract feature representation, and processing the feature dimension into the dimension of the final output. The calculation formula can be expressed as:
[0101] .
[0102] Step 3.5: Use Huber Loss to calculate the loss of the final output result. This loss function is also called smooth mean absolute error. Compared with the mean square error (MSE), Huber Loss is more robust to outliers when the error is small because it is a weighted combination of absolute error and square error. Huber Loss has less impact on outliers in some cases, while retaining the continuity and differentiability of MSE. It is defined as follows:
[0103] ;
[0104] in, is the true value, is the predicted value, N is the number of samples, Represents the hyperparameters of Huber Loss;
[0105] Step 3.6: Use the AdamW optimization algorithm to optimize parameters. Compared with the standard Adam algorithm, AdamW is more accurate in handling weight decay, can better control the regularization effect of the model, and improve the generalization performance of the model.
[0106] Step 4: Send the divided data set to the network model for training. During the training process, the temporal features and spatial features are trained separately, and finally the two features are integrated:
[0107] Training for temporal and spatial features is a parallel process. By training temporal and spatial features in parallel, the model can learn different types of feature representations at the same time, improving the model's ability to understand data. Temporal features can capture the dynamic changes of sequence data, while spatial features can capture the structure and morphological information of spatial data. This parallel training design can also effectively reduce the model's excessive reliance on a certain feature, thereby reducing the risk of overfitting, balancing the contribution of the two features to the model, and thus improving the model's generalization ability.
[0108] Step 5: Use the evaluation data set to cross-validate the performance of the network model and dynamically adjust the model parameters to achieve the best results at the end of training:
[0109] Step 5.1: Use the evaluation data set divided in step 2 to evaluate the performance of the model after 1 epoch training. Take the result of the first training of the model as the benchmark. If the effect of subsequent training is better than this benchmark, update the benchmark, otherwise retrain the model.
[0110] Step 5.2: When the benchmark indicator has not been updated for 10 consecutive epochs, it can be determined that the model performance has reached the best, stop training, save the trained model, and prepare for the next stage of testing.
[0111] Step 6: Use the model trained in step 5 to test the test data set, and use qualitative and quantitative indicators to comprehensively evaluate the model's prediction results.
[0112] Step 7: Use the trained model to make predictions and output the final prediction result graph.
[0113] Embodiment 2: This embodiment further illustrates the effect of the present invention through simulation experiments.
[0114] The simulation experiment was carried out in the hardware environment of AMD EPYC 9754, GeForce RTX 4090D, and 60GB of memory and the software environment of Ubuntu20.04.5, Python 3.8.19, and Pytorch 2.1.1.
[0115] The simulation experiment data of this embodiment is the OSI-450-a dataset downloaded from the OSI-SAF website. The dataset includes coarse-resolution images provided by SMMR, SSM / I and SSMIS satellites and ERA5 reanalysis data, providing global sea ice density information from 1978 to 2020. The size of each image in the dataset is 432×432 pixels. Figure 5 As shown in the figure, a schematic diagram of Arctic sea ice density under representative extreme weather conditions is shown, namely April 1, 2020, June 1, 2020, August 1, 2020 and September 1, 2020. By selecting these representative dates, the importance and application value of sea ice density prediction can be fully demonstrated. At the same time, it can also help users better understand the complexity and changing laws of the sea ice system, and demonstrate the important impact of sea ice density on the environment and human activities.
[0116] The method of the present invention is compared with the existing advanced sea ice density prediction methods. The ConvLSTM method used in the comparative experiment is proposed in the article "Convolutional LSTM Network: A Machine Learning Approach for Precipitation Nowcasting"; the PredRNN method is proposed in the article "PredRNN: Recurrent Neural Networks for Predictive Learning using Spatiotemporal LSTMs"; and the PredRNN_V2 method is proposed in the article "PredRNN: A Recurrent Neural Network for Spatiotemporal Predictive Learning".
[0117] like Figure 6 As shown in the figure, for the OSI-450-a dataset, the method of the present invention can effectively predict the distribution of Arctic sea ice density in the future. Figure 7 The actual sea ice density distribution over these 14 days is shown; Figure 8 , Fig. 9 and Fig.10 The differences between the prediction results of ConvLSTM, PredRNN and PredRNN_V2 models and the actual distribution of sea ice density are shown respectively. Fig.11 The difference between the sea ice density distribution predicted by the method of the present invention for the next 14 days and the actual sea ice density is demonstrated. By comparing the difference results, it can be seen that the prediction effect obtained by using the method of the present invention is very close to the actual situation, which once again verifies the superiority of the method of the present invention.
[0118] The evaluation indicators used in the quantitative analysis of the model performance in the present invention are mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE), Nash-Sutcliffe efficiency coefficient (NSE) and peak signal-to-noise ratio (PSNR), which are calculated as follows:
[0119] ;
[0120] in, is the observed value, is the corresponding predicted value, n represents the number of samples, the smaller the MSE value is, the smaller the difference between the predicted value and the observed value is, and the better the model fitting effect is; compared with MSE, RMSE is more intuitive; the smaller the MAE is, the smaller the difference between the predicted value and the observed value is, and the better the model fitting effect is.
[0121] ;
[0122] in, It is the average of the observed values. The value range of NSE is from negative infinity to 1. The closer the value is to 1, the better the model performance is.
[0123] ;
[0124] Among them, MAX is the maximum possible value of the data, where MAX=1, MSE is the mean square error, and the higher the PSNR value, the higher the similarity between the predicted result and the original data.
[0125] Tables 1, 2, 3, 4 and 5 respectively show the comparison results of MSE, RMSE, MAE, NSE and PSNR of these model methods in the five years from 2016 to 2020. It can be seen from the table that the method of the present invention is superior to other model methods in these five evaluation indicators, and has achieved good prediction results during these five years, which shows that the method of the present invention can more accurately predict the density of Arctic sea ice in the future:
[0126] Table 1 Comparison of performance indicators of prediction results of OSI-450-a dataset in 2016
[0127] ;
[0128] Table 2 Comparison of performance indicators of prediction results of OSI-450-a dataset in 2017
[0129] ;
[0130] Table 3 Comparison of performance indicators of prediction results of OSI-450-a dataset in 2018
[0131] ;
[0132] Table 4 Comparison of performance indicators of prediction results of OSI-450-a dataset in 2019
[0133] ;
[0134] Table 5 Comparison of performance indicators of prediction results of OSI-450-a dataset in 2020
[0135] .
[0136] The method for predicting Arctic sea ice density from remote sensing images based on the Mamba framework provided by the present invention is mainly used to predict the daily distribution of Arctic sea ice. The article predicts the Arctic sea ice density for the next two weeks. However, the method of the present invention is also applicable to forecasts for the next few days or even weeks, and is also applicable to predicting the monthly distribution of Arctic sea ice density, and the beneficial effects achieved are similar.
[0137] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A method for predicting Arctic sea ice density based on Mamba, characterized in that: The following steps are involved: S1: Collect historical sea ice concentration observation datasets; S2: preprocessing the historical sea ice density observation data set, extracting the temporal and spatial characteristics of sea ice density, and constructing a training data set, an evaluation data set, and a test data set; Specifically: S2-1: Preprocess the data set collected in S1: extract the temporal and spatial features in the data set, sort the temporal features in chronological order and generate a time list, ensuring that all temporal features are within the specified start and end time periods; S2-2: The data values of the land part in the original data set are all set to -32767. According to this data feature, the land part in the data set is coded with the code, and the land mask is generated according to the data value of the land part. Then, all the land values are preprocessed to 0; S2-3: The sea ice density range is 0-100. Normalization is used to process all sea ice data to be distributed between [0,1]. Finally, the preprocessed data is written into a ".nc" file and output as a data set to be used. S2-4: Divide the preliminarily processed data set into a data set used in the training phase, a data set used in the model performance evaluation phase, and a data set used in the final result test phase of the model; S3: Construct a Mamba network model capable of extracting and learning spatiotemporal sequences, wherein the Mamba network model includes an Encoder module, a Decoder module, and a Mamba module; the Mamba network model structure is represented as follows: input data → Encoder module extracts features → Mamba module processes features → Decoder module restores and reconstructs data → fully connected layer; wherein The input data is a five-dimensional feature represented as [B, T, C, H, W], where B represents the batch size of the model and T represents the image input to the model at one time. The specific training process of the Mamba network model is as follows: S3-1: In the Encoder stage, N serial two-branch convolutions are designed to extract feature information from sea ice data. During the downsampling process, the first branch of the two-branch convolution uses a 3×3 convolution to extract shallow features while retaining more spatial information. The calculation process of this branch is expressed as: Y1=Conv =3×3 (X) Among them, Conv 3×3 represents a 3×3 convolution, X represents the input data, and Y1 represents the output feature of the first branch; The second branch of the two-branch convolution is a 1×1 convolution followed by an n×n depth-separable convolution. This branch is used to extract deep features, including spatial and channel information. The calculation process of this branch is expressed as: Y2=DWConv n×n (Conv 1×1 (X)) Among them, Conv 1×1 Represents 1×1 convolution, DWConv n×n represents an n×n depth-separable convolution, and Y2 represents the output feature of the second branch; The features extracted from the two branches are fused, and the fused features are downsampled using a 1×1 convolution. Then, normalization and activation functions are used to improve the performance and training efficiency of the network. The specific calculation process is expressed as follows: Z=Concat(Y1,Y2) WITH ′ =σ(LayerNorm(Conv 1×1 (WITH))) Among them, Concat represents the fusion feature operation, Z is the feature representation after the fusion of the two branch features, LayerNorm represents layer normalization, σ represents the SELU activation function, and Z′ represents the final output of the dual-branch convolution module; S3-2: Send the extracted features to N t A stacked interactive Mamba module is used to divide these features into time features and space features. Mamba is used to process them separately. The time features are processed by the time Mamba module, and the space features are processed by the space Mamba module. The calculation of the time Mamba module and the space Mamba module is expressed as follows: Y1=Linear(Linear(X)⊙SS1D(Linear(X))) Y2=Linear(Linear(X)⊙SS2D(Conv 3×3 (Linear(X)))) Y=Concat(Y1,Y2) Among them, Linear represents linear projection, Conv 3×3 represents a 3×3 convolution, ⊙ represents element-by-element multiplication, Y represents the final fused and processed features, SS1D and SS2D represent the state space calculation equations of the Mamba module, SS1D represents the use of forward and backward scanning mechanisms in the channel dimension for time features, and SS2D represents the use of upward, downward, left and right scanning mechanisms in the spatial dimension for spatial features; this module first maps the features to one dimension, and then converts the one-dimensional input signal Mapping to N-dimensional latent states Then it is projected to the one-dimensional input signal y(t), and the calculation process is as follows: in, is the state transition matrix, is the matrix input to the state, is the state-to-output matrix, and D is the parameter directly from input to output; S3-3: In the Decoder stage, N serial convolution blocks are used to restore the image. This convolution block includes a 3×3 convolution layer, a normalization layer, and an activation function. The specific calculation is as follows: Y=σ(LayerNorm(Conv 3×3 (X))) Among them, σ represents the SELU activation function; S3-4: A fully connected layer is used for the data finally recovered by the decoder. The calculation formula is expressed as: Y=Conv 1×1 (X) S3-5: Use Huber Loss to calculate the loss of the final output result, which is defined as follows: Among them, y i is the true value, is the predicted value, N is the number of samples, and δ represents the hyperparameter of Huber Loss; S3-6: Finally, the AdamW optimization algorithm is used to optimize the parameters; S4: sending the training data set to the Mamba network model for training, training the temporal features and the spatial features respectively during the training process, and finally fusing the two features; S5: Use the evaluation dataset to cross-validate the performance of the Mamba network model and dynamically adjust the model parameters; S6: Use the trained Mamba network model to test the test data set, and use qualitative and quantitative indicators to comprehensively evaluate the model's prediction results; S7: Use the trained Mamba network model to make predictions and output the final prediction result graph.
2. The Mamba-based Arctic sea ice density prediction method according to claim 1, characterized in that: In S1, the OSI-450-a dataset is downloaded from the OSI-SAF official website, and the naming format of the downloaded data is modified in batches using Python coding.
3. The Mamba-based Arctic sea ice density prediction method according to claim 1, characterized in that: In S4, the divided data set is sent to the network model for training. During the training process, the time features and the space features are trained separately, and finally the two features are fused: the training for the time and space features is a parallel process. By training the time and space features in parallel, the model can learn different types of feature representations at the same time, thereby improving the model's ability to understand the data.
4. The Mamba-based Arctic sea ice density prediction method according to claim 1, characterized in that: In S5: S5-1: Use the evaluation data set divided in S2 to evaluate the performance of the model after 1 epoch training, and use the result obtained by the first training of the model as a benchmark. If the effect of subsequent training is better than this benchmark, update the benchmark, otherwise retrain the model; S5-2: When the benchmark indicator has not been updated for 10 consecutive epochs during training, the model performance is considered to have reached the best, so the training is stopped and the trained model is saved for the next stage of testing.
Citation Information
Patent Citations
Deep convolutional neural network based SAR image sea ice sorting method
CN107516317A
Regression coefficient continuous updating method based on sea surface temperature inversion algorithm
CN116595307A
Sea ice identification method combining residual network and edge detection
CN117994666A
Arctic sea ice short-term forecasting method and system in combination with physical constraint and twin network
CN118094473A
Method for exploration of ice situation, using remotely controlled unmanned aerial vehicles, and device for its implementation
RU2778158C1
