Short-term black current flow prediction method and device based on deep learning
By combining deep learning with physical knowledge, the LSTM network is used to train the BLACK model, which solves the shortcomings of existing technologies in black current flow prediction, achieves better prediction results, fills the gap of deep learning in this field, and is flexible The ability to adjust prediction frequency and regional scale has important application value in marine economy and disaster prevention and reduction.
Patent Information
- Application Number
- CN202210467625.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-04-29
AI Technical Summary
The existing technology has problems such as high theoretical requirements, limited physical parameterization and resolution, and high demand for computing resources in black current flow prediction, making it difficult to achieve accurate predictions.
Using a method based on deep learning, combined with prior physical knowledge, the BLACK model is trained through the LSTM network, historical flow velocity and wind stress data are used to predict short-term black current flow, and the model is optimized to improve prediction accuracy.
It has achieved better prediction results of Kuroshitsuji flow, filled the gap of deep learning in this field, significantly improved the prediction accuracy, and has the ability to flexibly adjust the prediction frequency and regional scale. It has important applications in marine economy and disaster prevention and reduction. value.
Smart Images

Figure CN114912672B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method and device for predicting short-term black current flow based on deep learning, and relates to the technical field of artificial intelligence and marine meteorological service industry. Background Art
[0002] The Kuroshio is the western boundary current of the North Pacific subtropical gyre and the northern branch of the North Equatorial Current (NEC). It starts from the east of the Philippines and flows northeast along the continental slope at the western boundary. The branch Kuroshio has the characteristics of strong flow velocity, large flow, high temperature, and high salinity, which transports high temperature and high salt water from low-latitude waters to mid-latitude areas. The Kuroshio will have a great impact on the marine environment and climate of the North Pacific. Understanding the changes in the Kuroshio flow is the basis of all this, so it is very important to forecast the flow of the Kuroshio.
[0003] At present, the prediction of black current flow is mainly based on numerical models, but numerical models have high theoretical requirements, limited physical parameterization and resolution, and large computing resource requirements. The present invention adopts a physical enhanced deep learning method, combined with prior physical knowledge, which can speed up the training speed, improve the accuracy of the standard deep learning method, and make up for the shortcomings of the numerical model. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a short-term black current flow prediction method and device based on deep learning, so as to fill the gap in the field of black current flow prediction and achieve better prediction effect.
[0005] To achieve the above object, the present invention is implemented by adopting the following technical solutions:
[0006] In a first aspect, the present invention provides a short-term black current flow prediction method based on deep learning, comprising:
[0007] Acquire historical data of the section to be predicted; the historical data includes flow velocity data and wind stress data of the past years;
[0008] Calculate flow data based on flow velocity data of the section to be predicted;
[0009] The flow data and wind stress data of the section to be predicted in the past years are interpolated to a unified time and space scale, and input into the BLACK model for training to obtain the optimized BLACK model of the section to be predicted;
[0010] Extract recent data from historical data; the recent data includes flow data and wind stress data for the current day and multiple periods in the past; (the period of recent data can be daily, weekly, monthly or any frequency period).
[0011] The flow data and wind stress data of the section to be predicted on the current day and in the past multiple periods are input into the optimized BLACK model of the section to be predicted to obtain the prediction result; the BLACK model is trained based on the LSTM network, with flow and wind stress data as input and future flow data as output.
[0012] Furthermore, the training method of the BLACK model includes the following steps:
[0013] Interpolate the flow data and wind stress data of the section to be predicted for many years in the past to a unified time and space scale;
[0014] Construct the cross-section data set to be predicted based on the flow data and wind stress data of unified temporal and spatial scales;
[0015] The training set data of the section to be predicted is input into the BLACK model, and the optimized weights are obtained through the optimizer and the loss function, that is, the optimized BLACK model of the section to be predicted is obtained.
[0016] Furthermore, a data set of the section to be predicted is constructed based on the historical flow and wind stress data of the section to be predicted, and then the data set of the section to be predicted is divided into a training set and a test set according to a ratio of 8:2;
[0017] The data set of the section to be predicted also includes flow data and wind stress data of all sections upstream of the section to be predicted and east of Taiwan, China.
[0018] Furthermore, the section data set to be predicted is input into the BLACK model, and the optimized weights are obtained through the optimizer and the loss function, that is, the optimized BLACK model of the section to be predicted is obtained, including:
[0019] According to the method of using historical data to predict future data, the section data to be predicted is input into the BLACK model for training. The model is trained according to different prediction days. The optimized weights are obtained through the optimizer and loss function. The optimized weights are selected to obtain the optimized BLACK model.
[0020] The optimizer is "Adam" and the loss function is "MAE".
[0021] Furthermore, the sections to be predicted include, from low latitude to high latitude:
[0022] LST: 18°27'N, 120°30'E in the south, 21°57'N, 120°30'E in the north;
[0023] PCM-1: from 24°32'N, 121°51'E northwest to 24°N, 123°0'E southeast;
[0024] PN: 29°N, 126°E in the northwest, 27°30'N, 128°15'E in the southeast;
[0025] TK: 28°35'N, 129°45'E in the southwest, 30°15'N, 130°50'E in the northeast;
[0026] According to the historical data of each section to be predicted, the BLACK model is trained to be the black model of each section to be predicted.
[0027] Furthermore, the method of obtaining the flow velocity and wind stress data of the section to be predicted for many years in the past includes:
[0028] The historical flow velocity and wind stress data of the section to be predicted are obtained from the European Weather Forecast Centre and AVISO.
[0029] Furthermore, the flow data is calculated according to the flow velocity data of the section to be predicted, including:
[0030] Perform bilinear interpolation on the longitudinal and latitudinal velocities of each layer of the historical velocity data of the predicted section, and then project the longitudinal and latitudinal velocities to the direction perpendicular to the position of the section;
[0031] The Kuroshio flow KVT of the section to be predicted with a daily cycle is calculated by the following formula to obtain the historical flow data of the section to be predicted:
[0032] KVT=∑ i,j [[Δh i Δw j ]V i,j ]
[0033] Where i and j are the grid numbers in the horizontal and vertical directions of the cross section respectively; Δh i ,Δw j is the height and width of the (i,j)th grid.
[0034] Furthermore, the data time range of the historical data of the section to be predicted is all days before the current event.
[0035] In a second aspect, the present invention provides a short-term black current flow prediction device based on deep learning, comprising:
[0036] Acquisition module: used to obtain historical data of the section to be predicted; the historical data includes flow velocity data and wind stress data of the past years;
[0037] Flow conversion module: used to calculate flow data based on the flow velocity data of the section to be predicted;
[0038] Training module: used to interpolate the flow data and wind stress data of the section to be predicted for the past years into a unified spatiotemporal scale, input them into the BLACK model for training, and obtain the optimized BLACK model of the section to be predicted;
[0039] Extraction module: used to extract recent data from historical data; the recent data includes flow data and wind stress data of the current day and the past multiple periods;
[0040] Prediction output module: used to input the flow data and wind stress data of the section to be predicted on the current day and in the past multiple periods into the optimized BLACK model of the section to be predicted to obtain the prediction result; the BLACK model is trained based on the LSTM network, with flow and wind stress data as input and future flow data as output.
[0041] In a third aspect, the present invention provides a short-term black current flow prediction device based on deep learning, comprising a processor and a storage medium;
[0042] The storage medium is used to store instructions;
[0043] The processor is used to operate according to the instructions to execute the steps of the method according to the first aspect.
[0044] Compared with the prior art, the present invention has the following excellent effects:
[0045] 1. This method is the first to use deep learning technology to predict the flow of the Kuroshio Current, filling the gap in the field of Kuroshio Current flow prediction and achieving good prediction results;
[0046] 2. Deep learning technology is limited by the amount of data and data factors. If the amount of data is not enough, it cannot achieve good prediction results. This method improves the existing deep learning technology and proposes a BLACK model combined with physical knowledge. By using prior physical knowledge, variables related to the cross-section black current flow (upstream and downstream flow are added to the training) and wind stress data have been significantly improved compared to the standard LSTM neural network model.
[0047] 3. This method can also adjust the download frequency of the target area and change the prediction frequency as needed to meet the needs of black current flow prediction at different scales.
[0048] 4. The present invention has important application value and practical significance for marine economy and disaster prevention and mitigation. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of a short-term Kuroshio flow prediction method based on deep learning of the present invention;
[0050] Figure 2This is the prediction output diagram of the short-term black current flow prediction method based on deep learning used in the present invention. DETAILED DESCRIPTION
[0051] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0052] Embodiment 1:
[0053] like Figure 1 As shown, Embodiment 1 of the present invention provides a short-term black current flow prediction method based on deep learning, comprising:
[0054] S101: Obtain flow velocity data from different channels and calculate the actual value of black current flow in the target area;
[0055] S102: constructing a real data set of black current flow according to the physical enhancement method;
[0056] S103: Construct BLACK model;
[0057] S104: training the BLACK model to obtain an optimized BLACK model;
[0058] S105: Input the real-time data into the optimized BLACK model to obtain the prediction results
[0059] In step S101, velocity and wind stress data are obtained from the European Center for Medium-Range Weather Forecasts, AVISO and other places (such as Https: / / resources.marine.copernicus.eu / ?option=com_csw&task=results), and the specific locations of the four sections of the Kuroshio flow are predicted from low latitude to high latitude, namely LST (specific location from 18°27'N, 120°30'E in the south to 21°57'N, 120°30'E in the north), PCM-1 (specific location from 24°32'N, 121°51'E in the northwest to 24°N, 123°0'E in the southeast), PN (Specific location is 29°N, 126°E from northwest to 27°30'N, 128°15'E from southeast), TK (Specific location is 28°35'N, 129°45'E from southwest to 30°15'N, 130°50'E from northeast); The resolution and grid position of the downloaded data are different, so the longitudinal and latitudinal flow velocities of each layer must be interpolated, and then the longitudinal and latitudinal flow velocities are projected to the direction perpendicular to the location of the section, and bilinear interpolation is used to obtain the flow velocity V in the direction perpendicular to the location of the section;
[0060] Through the formula KVT = ∫ sVdS calculates the black current flow of each section with a daily cycle, where S is the selected section area and dS is the integration unit. The specific calculation method is the sum of V and the product of the area of each grid unit, ∑ i,j [[Δh i Δw j ]V i,j ], i, j are the grid numbers in the horizontal and vertical directions of the cross section respectively; Δh i ,Δw j is the height and width of the (i,j)th grid. The actual flow data sets of four sections are obtained;
[0061] In step S102, the actual black current flow data set is constructed according to the physical enhancement method. For the current section prediction, the current section flow, wind stress and all upstream section flow data are selected, and then the section data set to be predicted is normalized and divided into a training set and a test set according to 8:2.
[0062] In step S103, a BLACK model is pre-built, and the BLACK model includes a forget gate, an input gate, an output gate, and a cell state;
[0063] In step S104, according to the use of different days to predict different days, the flow data of the section to be predicted and the section upstream of the current section are put into the BLACK model for training. Through the optimizer and the loss function, the optimizer is "Adam" and the loss function is "MAE", the optimized weights are obtained, the optimal weights are selected, and the models are trained separately according to the prediction of different days to obtain the optimized BLACK model.
[0064] In step S105, the real-time data is downloaded according to S101, and the real-time data is input into the optimized BLACK model, and the output is the current cross-sectional flow. The predicted flow of four cross-sections can be obtained in sequence.
[0065] like Figure 2 As shown in the figure, it is a forecast chart for 7, 14, 21 and 30 days. The dotted line is the predicted value and the solid line is the true value. With the correlation coefficient of 0.5 as the boundary, the model with physical factors can predict four more days, which is a great improvement.
[0066] The mode evaluation method described in the embodiment combines two indicators: Pearson correlation coefficient and root mean square error.
[0067] Embodiment 2:
[0068] This embodiment provides a short-term black current flow prediction device based on deep learning, including:
[0069] Acquisition module: used to obtain historical data of the section to be predicted; the historical data includes flow velocity and wind stress data of the past years;
[0070] Flow calculation module: calculates the flow velocity of the section to be predicted as flow data;
[0071] Training module: used for interpolating the historical flow and wind stress data of the section to be predicted into a unified spatiotemporal scale, and inputting the data into the BLACK model to be trained, so as to obtain the optimized BLACK model of the section to be predicted;
[0072] Prediction output module: The flow and wind stress data of the past 10 days are input into the optimized BLACK model to obtain the prediction results; the BLACK model is trained based on the LSTM network, with flow and wind stress data as input and future flow data as output.
[0073] The device of this embodiment can be used to implement the method described in the first embodiment.
[0074] Embodiment three:
[0075] This embodiment provides a short-term black current flow prediction device based on deep learning, including a processor and a storage medium;
[0076] The storage medium is used to store instructions;
[0077] The processor is used to operate according to the instructions to execute the steps of the method according to the first embodiment.
[0078] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0079] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0080] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0082] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A short-term Kuroshio flow prediction method based on deep learning, characterized in that: include: Acquire historical data of the section to be predicted; the historical data includes flow velocity data and wind stress data of the past years; Calculate flow data based on flow velocity data of the section to be predicted; The flow data and wind stress data of the section to be predicted in the past years are interpolated to a unified time and space scale, and input into the BLACK model for training to obtain the optimized BLACK model of the section to be predicted; Extracting recent data from historical data; the recent data includes flow data and wind stress data for the current day and multiple periods in the past; Input the flow data and wind stress data of the current day and the past multiple periods of the section to be predicted into the optimized BLACK model of the section to be predicted to obtain the prediction result; The BLACK model is trained based on the LSTM network, with flow and wind stress data as input and future flow data as output; The training method of the BLACK model comprises the following steps: Interpolate the flow data and wind stress data of the section to be predicted for many years in the past to a unified time and space scale; Construct the cross-section data set to be predicted based on the flow data and wind stress data of unified temporal and spatial scales; Inputting the training set data of the section to be predicted into the BLACK model, and obtaining the optimized weights through the optimizer and the loss function, that is, obtaining the optimized BLACK model of the section to be predicted; According to the historical flow and wind stress data of the section to be predicted, a data set of the section to be predicted is constructed in days, and then the data set of the section to be predicted is divided into a training set and a test set according to the ratio of 8:2; The data set of the section to be predicted also includes flow data and wind stress data of all sections upstream of the section to be predicted and east of Taiwan, China.
2. The short-term black current flow prediction method based on deep learning according to claim 1 is characterized in that: The section data set to be predicted is input into the BLACK model, and the optimized weights are obtained through the optimizer and the loss function, that is, the optimized BLACK model of the section to be predicted is obtained, including: According to the method of using historical data to predict future data, the section data to be predicted is input into the BLACK model for training. The model is trained according to different prediction days. The optimized weights are obtained through the optimizer and loss function. The optimized weights are selected to obtain the optimized BLACK model. The optimizer is "Adam" and the loss function is "MAE".
3. The short-term black current flow prediction method based on deep learning according to claim 1 is characterized in that: The sections to be predicted include, from low latitude to high latitude: LST: 18°27'N, 120°30'E in the south, 21°57'N, 120°30'E in the north; PCM-1: from 24°32'N, 121°51'E northwest to 24°N, 123°0'E southeast; PN: 29°N, 126°E in the northwest, 27°30'N, 128°15'E in the southeast; TK: 28°35'N, 129°45'E in the southwest, 30°15'N, 130°50'E in the northeast; According to the historical data of each section to be predicted, the BLACK model is trained to be the black model of each section to be predicted.
4. The short-term black current flow prediction method based on deep learning according to claim 3 is characterized in that: Methods for obtaining the flow velocity and wind stress data of the predicted section over the past years include: The historical flow velocity and wind stress data of the section to be predicted are obtained from the European Weather Forecast Centre and AVISO.
5. The short-term black current flow prediction method based on deep learning according to claim 1 is characterized in that: Calculate the flow data based on the flow velocity data of the section to be predicted, including: Perform bilinear interpolation on the longitudinal and latitudinal velocities of each layer of the historical velocity data of the predicted section, and then project the longitudinal and latitudinal velocities to the direction perpendicular to the position of the section; The Kuroshio flow KVT of the section to be predicted with a daily cycle is calculated by the following formula to obtain the historical flow data of the section to be predicted: KVT=2[[ΔhiΔwj]V] Where i and j are the grid numbers in the horizontal and vertical directions of the cross section respectively; Δhi, Δw j is the height and width of the (i,j)th grid.
6. The short-term black current flow prediction method based on deep learning according to claim 1 is characterized in that: The data time range of the historical data of the section to be predicted is all days before the current event.
7. A short-term black current flow prediction device based on deep learning, characterized in that: include: Acquisition module: used to obtain historical data of the section to be predicted; the historical data includes flow velocity data and wind stress data of the past years; Flow conversion module: used to calculate flow data based on the flow velocity data of the section to be predicted; Training module: used to interpolate the flow data and wind stress data of the section to be predicted for the past years into a unified spatiotemporal scale, input them into the BLACK model for training, and obtain the optimized BLACK model of the section to be predicted; Extraction module: used to extract recent data from historical data; the recent data includes flow data and wind stress data of the current day and the past multiple periods; Prediction output module: used to input the flow data and wind stress data of the current day and the past multiple periods of the section to be predicted into the optimized BLACK model of the section to be predicted to obtain the prediction results; The BLACK model is trained based on the LSTM network, with flow and wind stress data as input and future flow data as output; The training method of the BLACK model comprises the following steps: Interpolate the flow data and wind stress data of the section to be predicted for many years in the past to a unified time and space scale; Construct the cross-section data set to be predicted based on the flow data and wind stress data of unified temporal and spatial scales; Inputting the training set data of the section to be predicted into the BLACK model, and obtaining the optimized weights through the optimizer and the loss function, that is, obtaining the optimized BLACK model of the section to be predicted; According to the historical flow and wind stress data of the section to be predicted, a data set of the section to be predicted is constructed in days, and then the data set of the section to be predicted is divided into a training set and a test set according to the ratio of 8:2; The data set of the section to be predicted also includes flow data and wind stress data of all sections upstream of the section to be predicted and east of Taiwan, China.
8. A short-term black current flow prediction device based on deep learning, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-6.
Citation Information
Patent Citations
Flow rate prediction device and flow rate prediction method
JP2020111892A
