Ocean temperature data set completion method based on CNN-RNN neural network

Through the method based on CNN-RNN neural network, the missing problem in the ocean temperature data set is solved, the spatio-temporal completion of the data is realized, and the integrity of the data and the support of high-precision model are ensured.

CN118690126APending Publication Date: 2024-09-24TIANJIN UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410535216.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The ocean temperature data set has the problem of missing temperature information at individual points and missing temperature information at individual dates, resulting in low data resource utilization and difficulty in supporting high-precision model construction.

Method used

A data completion method based on CNN-RNN neural network is adopted, including data standardization processing, spatial data completion and time data completion, spatial prediction through CNN neural network and temporal prediction through RNN neural network, using spatiotemporal coding and climate periodicity changes to supplement missing data.

Benefits of technology

It achieves effective completion of ocean temperature data, ensures the spatiotemporal integrity of the data, improves data resource utilization, and supports the high-precision construction of deep learning models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690126A
    Figure CN118690126A
Patent Text Reader

Abstract

The invention relates to an ocean temperature data set complementing method based on a CNN-RNN neural network, which can solve the problems of missing of individual point position temperature information and missing of individual date temperature information of an existing ocean temperature data set, considers a three-dimensional sea area thermal effect and global climate periodic change, ensures the integrity of data in time and space, and improves the accuracy of ocean temperature data set complementing. The data utilization rate is improved. Comprising the following steps: data standardization processing: uniformly encoding time and space of ocean temperature data to form a data format for simultaneously storing time-space information and temperature information; spatial data complementation: complementing the temperatures of individual spatial points in an nc file in which temperature information of a certain day is stored; and time data completion: completing complete information in the nc file in which the temperature information of a certain day is not stored, so as to obtain a complete time-space sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of deep learning and big data processing, and in particular to a method for completing an ocean temperature data set based on a CNN-RNN neural network. Background Art

[0002] Ocean temperature is not only a key factor in studying ocean energy balance, but also an important reference factor for marine operations. Traditional ocean temperature prediction methods generally use dynamic and thermodynamic equations to describe sea temperature changes, and then solve a series of differential equations, that is, use some important theories in physics and oceanography to establish mathematical models. Statistical data analysis methods based on deep learning require a large amount of sample data to establish models to solve future ocean temperatures. The National Marine Data Center provides limited data for related research, among which there are two problems: missing temperature information at individual points and missing temperature information on individual dates, resulting in low utilization of data resources and difficulty in supporting high-precision model construction. Summary of the invention

[0003] The purpose of the present invention is to propose a data completion method based on deep learning to address the current situation where there are two types of problems in the three-dimensional ocean temperature data set: missing temperature information of individual points and missing temperature information of individual dates. The method includes three parts: data standardization processing, spatial data completion, and temporal data completion. The data standardization processing performs spatiotemporal encoding on the ocean temperature data and performs tensor classification according to the degree of data missing; spatial data completion completes the temperature of individual spatial points in the nc file storing the temperature information of a certain day; and temporal data completion completes the complete information in the nc file that is missing the temperature information of a certain day. The technical solution is as follows:

[0004] A method for completing ocean temperature dataset based on CNN-RNN neural network:

[0005] (1) Data standardization

[0006] (1.1) The temperature of the specified spatial range in the nc file is processed. The specified spatial range is represented by a three-dimensional grid of H×W×L, where L is the length, W is the width, and H is the depth. A three-dimensional tensor T is used. t represents the ocean temperature on day t, T t ∈R H ×W×L , given the ocean temperature over n days, use T to represent the tensor sequence.

[0007] (1.2) Use nan missing data to represent that there is a nan element and it is not nan H×W×L The tensor forms a sequence T er , which is nan H×W×L The tensor forms a sequence T et, there are no tensors with nan elements forming a sequence T′.

[0008] (2) Spatial data completion method

[0009] (2.1) Divide T′ into training set T according to the quantitative relationship of 8:2 train and validation set T test .

[0010] (2.2) is the i-th complete three-dimensional tensor in the training set, which is obtained after passing through the first layer of the CNN neural network.

[0011]

[0012] Among them, F1 is the first layer convolution kernel of CNN neural network, which consists of N tensors. The ReLU function is a commonly used activation function in neural networks, ReLU(x) = max(0, x); P is the pooling matrix, P∈R p×p .

[0013] (2.3) Input the second layer of CNN neural network and get

[0014]

[0015] Among them, F2 is the second convolution kernel of the CNN neural network, which consists of M tensors.

[0016] (2.4) Expand to get L i , L i Input the fully connected layer and get it after Softmax operation

[0017]

[0018] W is the fully connected matrix, Softmax is an activation function for multi-classification problems,

[0019] (2.5) Calculate the cross entropy loss function:

[0020]

[0021] q is the training set The number of tensors is increased by multiple trainings to reduce the loss function value and obtain the spatial relationship model. erThe tensors in the spatial relationship model are input to obtain the completed tensors, and the completed tensors are merged with the sequence T′ one by one and arranged in chronological order to obtain the sequence T r .

[0022] (3) Time data completion

[0023] (3.1) T r According to the quantitative relationship of 8:2, it is divided into training set T room-train and validation set T room-test ;

[0024] (3.2) In the training set T room-train In as well as The tensor sequence of ocean temperatures for the previous n days is used as the input unit X j :

[0025]

[0026] (3.3) Create hidden unit S as {s j1 ,s j2 ,s j3 , ..., s jt , ..., s jn}, U and W are parameter matrices, and f is the activation function, then:

[0027]

[0028] (3.4) Calculate the output value V is the parameter matrix, g is the activation function, then:

[0029]

[0030] (3.5) Calculate the square loss function:

[0031]

[0032] Q is the training set T room-train The number of tensors is increased, and the loss function value is reduced by multiple trainings to obtain the temporal relationship model. et In the sequence T r Summarize and arrange in order of date to get T t , if the i-th tensor Then the first n of them are not nan H×W×L The tensor of is input into the temporal relationship model to obtain the completed tensor, and the completed tensors are compared with the sequence T one by one. r Merge and arrange them in chronological order to obtain a complete space-time sequence T".

[0033] The beneficial effects of the present invention are:

[0034] (1) Practical and clearly classified, the completeness of the ocean temperature information in the actual nc file is classified for spatial prediction and temporal prediction respectively.

[0035] (2) Data expansion: Fully utilize the CNN-RNN neural network to supplement the missing data and form a complete data set for deep learning training, ensuring the integrity of time and space.

[0036] (3) Space-time fusion, expansion and precision, using CNN neural network for spatial prediction, considering the thermal effect of three-dimensional sea areas, and using RNN neural network for temporal prediction, considering the periodic changes of global climate. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is the overall flow chart of the present invention;

[0038] Figure 2 is a tensor classification flow chart of the present invention;

[0039] Figure 3 It is a CNN neural network flow chart of the present invention;

[0040] Figure 4 It is the RNN neural network flow chart of the present invention. DETAILED DESCRIPTION

[0041] To make the technical solution of the present invention clearer, the present invention is further described below in conjunction with the accompanying drawings. The present invention is specifically implemented according to the following steps:

[0042] 1. Data standardization

[0043] (1) Temporal and spatial encoding of ocean temperature data: nc file is a common format for storing ocean temperature. It stores ocean temperature in a specified spatial range. The National Ocean Science Data Center and other institutions have provided ocean temperatures in some sea areas in my country in recent years, which can provide data sets for deep learning to predict ocean temperature. The ocean temperature data in a three-dimensional grid space range of H×W×L in a single nc file is read and stored as a three-dimensional tensor. For example, the ocean temperature on the tth day is represented by T t , T t ∈R H×W×L Due to some reasons in the measurement, encoding, storage and other processes, some locations in some nc files have missing data and need to be replaced by null; the nc files of some dates are missing as a whole and need to be replaced by null. The ocean temperature within n days is known, and T is used to represent the tensor sequence.

[0044] (2) Classify tensors according to the degree of data missing: Figure 2As shown, the tensor sequence T is classified, and the sequence consisting of tensors without null is recorded as T′; the sequence consisting of tensors with null but not all null is recorded as T er ; Let the sequence of all null tensors be recorded as T et .

[0045] 2. Spatial data completion method

[0046] (1) Divide the sequence T′ into a training set T according to the quantitative relationship of 8:2 train and validation set T test , using CNN neural network for spatial prediction, considering the thermal effect of three-dimensional sea area, at this time it is necessary to train the CNN neural network with ocean temperature data in the three-dimensional grid space range of H×W×L to obtain the spatial relationship model, and then supplement the missing data of individual spaces.

[0047] (2) Figure 3 As shown, input training set T train The i-th tensor in In the first layer of the CNN neural network, a convolution operation is performed with the convolution kernel F1 of the first layer of the CNN neural network to obtain the first layer of convolution output F1 consists of N tensors, each of which is in In, we have:

[0048]

[0049] According to the convolution calculation results, P is the edge filling number and S is the step size, then:

[0050] O w =(WF w +2P) / S

[0051] O L =(LF L +2P) / S

[0052] After ReLU transformation, the dimension is not changed, and the ReLU output is obtained for:

[0053]

[0054] in,

[0055] In order to achieve feature dimensionality reduction, reduce the consumption of computing resources and prevent overfitting, the ReLU output Perform pooling operation and convolution operation with pooling matrix P, P∈R p×p , get the output of the first layer of CNN neural network for:

[0056]

[0057] According to the convolution calculation results:

[0058] P w =O w / p

[0059] P L =O L / p

[0060] (3) Figure 3 As shown, the first layer of CNN neural network output Input the second layer of CNN neural network, perform convolution operation with the second layer of CNN neural network convolution kernel F2, and get the second layer of convolution output F2 consists of M tensors, each of which is in In, we have:

[0061]

[0062] According to the convolution calculation results, P is the edge filling number and S is the step size, then:

[0063] Q′ w =(WF′ w +2P) / S

[0064] Q′ L =(LF′ L +2P) / S

[0065] After ReLU transformation, the dimension is not changed, and the ReLU output is obtained for:

[0066]

[0067] (4) Figure 3 As shown, Expand to get L i , L i ∈R E×1 , where E = M × Q′ W ×Q′ L , L i Input the fully connected layer, which consists of F neurons, and the fully connected matrix is ​​W, then the fully connected output is for:

[0068]

[0069] After Softmax operation, we get for:

[0070]

[0071] (5) Figure 3 As shown, the cross entropy loss function is calculated

[0072]

[0073] q is the training set The number of tensors is increased by multiple trainings to reduce the loss function value and obtain the spatial relationship model. er The tensors in the spatial relationship model are input to obtain the completed tensors, and the completed tensors are merged with the sequence T′ one by one and arranged in chronological order to obtain the sequence T r .

[0074] 3. Time data completion

[0075] (1) Sequence T r According to the quantitative relationship of 8:2, it is divided into training set T room-train and validation set T room-test , using CNN neural network for time prediction, considering the periodic changes of climate throughout the year, it is necessary to train the RNN neural network with ocean temperature data in the three-dimensional grid space range of H×W×L to obtain the time relationship model, and then supplement all missing data on a certain date.

[0076] (2) Affected by the climate cycle, the training set T room-train The jth tensor in There is a certain time relationship with the previous n tensors, such as Figure 4 As shown, in the training set T room-train In as well as The tensor sequence of ocean temperatures for the previous n days is used as the input unit X j :

[0077]

[0078] (3) Figure 4 As shown, create a hidden unit S to store the previous time information, S is {s j1 ,s j2 ,s j3 , ..., s jt ,..,s jn}, U and W are parameter matrices, and f is the activation function, then:

[0079]

[0080] (4) Figure 4As shown, the output value is calculated V is the parameter matrix, g is the activation function, then:

[0081]

[0082] (5) Calculate the square loss function:

[0083]

[0084] Q is the training set T rpom-trai n tensors, multiple trainings, reducing the loss function value, and obtaining the temporal relationship model. et In the sequence T r Summarize and arrange in order of date to get T t , if the i-th tensor Then the first n of them are not nan H×w×L The tensor of is input into the temporal relationship model to obtain the completed tensor, and the completed tensors are compared with the sequence T one by one. r Merge and arrange them in chronological order to obtain a complete space-time sequence T".

Claims

1. A method for completing ocean temperature dataset based on CNN-RNN neural network, characterized in that: It includes three parts: data standardization, spatial data completion, and temporal data completion. Data standardization performs spatiotemporal encoding on ocean temperature data and performs tensor classification according to the degree of data missing. Spatial data completion completes the temperature of individual spatial points in the nc file storing the temperature information of a certain day. Temporal data completion completes the complete information in the nc file that is missing and stores the temperature information of a certain day.

2. The method for completing an ocean temperature dataset based on a CNN-RNN neural network according to claim 1, characterized in that: In the data standardization processing method, the nc file information storing the temperature information of a certain day is subjected to spatiotemporal encoding and tensor classification: (1) The spatiotemporal encoding function is changed to process the temperature of the specified spatial range in the nc file. The specified spatial range is represented by a three-dimensional grid of H×W×L, where L is the length, W is the width, and H is the depth. The ocean temperature on the tth day can be represented by a three-dimensional tensor T t Indicates that T t ∈R H×W×L In the actual data set, some spatial points in a single day are missing. The missing data is represented by nan. The sequence formed by such tensors is recorded as T er , T er ≠nan H×W×L , write the temperature, time code, and spatial coordinates into a tensor sequence. Given the ocean temperature within n days, use T to represent the tensor sequence, then T = {T1, T2, T3, T4, ..., T n }, the actual data set has some missing single-day data, the missing data is represented by nan, and the sequence formed by such tensors is recorded as T et , T et =nan H×W×L ; (2) The tensor classification function selects tensors with individual elements of nan from the tensor sequence T to form a sequence T er ; Filter out tensors whose elements are all nan to form a sequence T et ; Filter out tensors that do not contain nan elements to form a sequence T′.

3. The method for completing an ocean temperature dataset based on a CNN-RNN neural network according to claim 1, characterized in that: In the spatial data completion method, T' is used to obtain the spatial relationship model between the temperature of a certain point and the temperature of the surrounding points within the spatial range through CNN neural network training. The spatial relationship model is used to complete the sequence T with incomplete spatial temperature information. er Completion is performed to obtain a sequence with complete space: (1) Divide T′ into the training set T according to the quantitative relationship of 8:2 train and validation set T test ; (2) is the i-th complete three-dimensional tensor in the training set, F1 is the first convolution kernel of the CNN neural network, which consists of N tensors. The first layer of CNN neural network convolution output for: The first layer of CNN neural network ReLU output for: Introduce the pooling matrix P, p∈R p×p , the first layer of CNN neural network pooling output for: (3) F2 is the second convolution kernel of the CNN neural network, which consists of M tensors. The second layer of CNN neural network convolution output for: The second layer of CNN neural network ReLU output for: (4) Expand to get L i , L i Input the fully connected layer, which consists of F neurons, and the fully connected matrix is ​​W, then the fully connected output for: After Softmax operation, we get for: (5) Calculate the cross entropy loss function q is the training set The number of tensors is increased by multiple trainings to reduce the loss function value and obtain the spatial relationship model. er The tensors in the spatial relationship model are input to obtain the completed tensors, and the completed tensors are merged with the sequence T' one by one and arranged in chronological order to obtain the sequence T r .

4. The method for completing an ocean temperature dataset based on a CNN-RNN neural network according to claim 1, characterized in that: Time data completion method, using T r After RNN neural network training, the ocean temperature tensor of day j is obtained and the ocean temperature tensor series of the previous n days The time relationship model is used to calculate the sequence T with missing single-day data. et To complete, with the sequence T r Merge to get a complete sequence in time and space: (1) T r According to the quantitative relationship of 8:2, it is divided into training set T room-train and validation set T room-test ; (2) In the training set T room-train In, will, as well as The tensor sequence of ocean temperatures for the previous n days is used as the input unit X j : (3) Create a hidden unit S as {s j1 ,s j2 ,s j3 , ..., s jt , ..., s jn }, U and W are parameter matrices, and f is the activation function, then: (4) Calculate the output value V is the parameter matrix, g is the activation function, then: (5) Calculate the square loss function: Q is the training set T room-train The number of tensors is increased, and the loss function value is reduced by multiple trainings to obtain the temporal relationship model. et In the sequence T r Summarize and arrange in order of date to get T t , if the i-th tensor Then the first n of them are not nan H×W×L The tensor of is input into the temporal relationship model to obtain the completed tensor, and the completed tensors are compared with the sequence T one by one. r Merge and arrange them in chronological order to obtain a complete space-time sequence T".

Citation Information

Cited By

  • Construction method, system and device of sea surface temperature multi-source data completion fusion model based on SwinGAN

    CN120256844A

  • CTD section data interpolation reconstruction method based on deep learning

    CN122176095A