A sea fog level intelligent forecasting method and system
By combining methods such as partial correlation analysis, nonlinear analysis and time-delay correlation analysis, as well as integrated learning and machine learning algorithms, an intelligent sea fog level forecasting system is constructed, which solves the limitations of sea fog forecasting in the existing technology and achieves low-level sea fog forecasting. Accurate forecasting of visibility levels and improvements in forecasting skills.
Patent Information
- Application Number
- CN202111590828.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-23
AI Technical Summary
Existing sea fog forecasting methods have limitations in complex ocean processes, especially the imperfect physical parameterization scheme and limited resolution of numerical model forecasting methods, which results in low credibility of short-term forecasting results and the characteristics of machine learning. It is difficult for the selection method to accurately reflect the complex interactions among multiple variables in the atmosphere and ocean field.
Feature screening using methods such as partial correlation analysis, nonlinear analysis and time-delay correlation analysis, combined with integrated learning and machine learning algorithms, is used to build an intelligent sea fog level forecasting system, including a data layer, a feature analysis layer, an intelligent correction layer, and model training. Layer and forecast verification layer, through data fusion, outlier detection, key meteorological element extraction and correction, build and optimize the sea fog intelligent forecast model.
It achieves accurate forecasting of low visibility levels, improves forecasting skills, meets the refined needs of the marine environment, and improves forecast accuracy and credibility.
Smart Images

Figure CN114280696B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of atmospheric and marine science and technology, and in particular to a method and system for intelligently forecasting sea fog levels. Background Art
[0002] Sea fog is a condensation phenomenon that occurs in the lower atmosphere at sea or in coastal areas under the influence of the ocean. It is a weather phenomenon in which a large number of water droplets or ice crystals suspended in the atmospheric boundary layer make the atmospheric horizontal visibility less than 1 km. With the development of society and economy, maritime, road and air traffic are becoming increasingly busy. The low visibility caused by the frequent occurrence of sea fog directly threatens the economic activities and the safety of people's lives and property in coastal areas. Due to the variability and local characteristics of fog, fog forecasting has always been one of the difficulties in weather forecasting. In business applications, fog forecasting faces more difficulties. The credibility of short-term forecasting is low, and forecasts and warnings can generally be made only when the weather is close.
[0003] Traditional forecasting methods mainly include statistical forecasting methods and numerical forecasting methods. The statistical forecasting method forecasts sea fog by establishing a statistical model between sea fog and forecasting factors through statistical analysis of historical data. This method mostly relies on the quality and quantity of historical observation data or numerical forecasting data, and simple statistical models are not enough to reflect the complex physical laws of ocean processes. In recent years, numerical models have gradually become an important method for sea fog forecasting. However, due to the imperfection of the physical parameterization scheme of the numerical model and limited resolution, the numerical model forecasting method has certain limitations in business use. The present invention adopts artificial intelligence technology with machine learning as the core. Compared with dynamic and traditional statistical methods, it has the characteristics of strong nonlinear fitting ability and high efficiency, which can make up for the shortcomings of numerical model forecasting.
[0004] At present, the feature selection method in machine learning is generally based on bivariate correlation analysis, which cannot accurately reflect the complex interactions between multiple variables in the atmosphere and ocean. The present invention fully considers the interactions between multiple meteorological elements and each meteorological element at different times, and uses a combination of partial correlation analysis, nonlinear analysis, and time-lag correlation analysis to perform feature screening. In view of the contradiction between the machine learning classification algorithm usually assuming that the data category distribution is balanced and the misclassification cost is equal and the visibility data distribution is extremely unbalanced, the present invention adopts an integrated learning method to solve the problem of uneven sample distribution. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] In view of the shortcomings of the prior art, the present invention provides a method and system for intelligent forecasting of sea fog level, which fully explores the key meteorological influencing factors of low visibility, constructs a nonlinear correlation mapping between key factors and visibility level, and improves the forecasting skills of low visibility level.
[0007] (II) Technical solution
[0008] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: an intelligent forecasting system for sea fog level, comprising a data layer, a feature analysis layer, an intelligent correction layer, a model training layer, and a forecast verification layer;
[0009] The data layer includes a data access module, a data fusion module, an outlier detection module, and a sample module. The data access module accesses the site observation data and the numerical model forecast result data. The data layer is used for data fusion and quality control.
[0010] The feature analysis layer includes a sample input module, a feature analysis module, a related feature module, and an analysis result module; the feature analysis layer is used to extract key meteorological elements that affect visibility;
[0011] The intelligent correction layer includes a data access module, a data fusion module, a correction model module, an evaluation index module, and a correction result module; the data access module is used to access the key meteorological element data and site observation data obtained by the analysis result module in the feature analysis layer; the intelligent correction layer is used to correct the key meteorological elements in the model forecast results;
[0012] The model training layer includes a data access module, a sample generation module, a model training module, and a model optimization module; the data access module is used to access the numerical model forecast output data and visibility observation data in the correction result module in the intelligent correction layer, and the model training layer is used to train and obtain the optimal visibility forecast model;
[0013] The forecast verification layer is used to forecast and verify the sea fog level.
[0014] An intelligent forecasting system and method for sea fog level, S1, collection of numerical model forecast results and conventional observation data from meteorological stations, and fusion and quality control of collected data;
[0015] S2. Using the characteristic analysis methods of Pearson correlation coefficient test, causal association test and time lag analysis, the key meteorological elements affecting visibility are extracted as forecasting factors. At the same time, the visibility observations and geographical time factors before the model starts reporting are used as auxiliary forecasting factors.
[0016] S3. Based on a large number of station observation data, the machine learning correction method is used to correct the key meteorological elements in the numerical model forecast results;
[0017] S4. Use machine learning algorithms, automatic hyperparameter tuning, and integrated learning technology to build and optimize the sea fog intelligent forecasting model;
[0018] S5. Use the sea fog intelligent forecast model to forecast visibility levels, realize site forecast and grid forecast of visibility, and test the forecast accuracy.
[0019] Preferably, S101, prepare conventional observation data A1 of meteorological stations in the previous five years, the elements of which include: sea level pressure, wind speed, temperature, dew point, visibility, 1-hour precipitation, 3-hour precipitation, 6-hour precipitation, and 24-hour precipitation;
[0020] S102. Prepare the numerical model forecast data A2 for the previous five years. The elements are divided into ground field and high-altitude field. The ground field elements include: sea level pressure, pressure change, temperature, humidity, wind direction and wind speed; the high-altitude field elements include: 500hPa, 700hPa, 850hPa, 925hPa, 1000hPa pressure surface potential height, temperature, dew point temperature, wind direction and wind speed and sea surface temperature field;
[0021] S103, fusing the meteorological station observation data A1 with the numerical model forecast data A2, firstly matching them in time, and then using an interpolation algorithm to interpolate the gridded numerical model forecast data to the observation station to obtain a fused data set A1A2;
[0022] S104. Use traditional statistical methods and machine learning methods to detect outliers in the fused data set A1A2 and remove abnormal records.
[0023] Preferably, S201, setting the maximum lag time to 6 hours, selecting the visibility at time t-0 and the meteorological and hydrological element sets B11 at time t-1, t-2, t-3, ..., t-6 as the time lag feature analysis sample set;
[0024] S202, using the Pearson correlation coefficient to test the correlation between the meteorological and hydrological element set B11 and the visibility at time t-0, eliminating the elements with a correlation coefficient r of 0 and those that do not meet the significance test, where the significance level of the significance test is set to 0.05, and obtaining the feature set B12 with correlation, the calculation formula is as follows:
[0025]
[0026] Among them, X and Y are two variables whose correlation is to be evaluated, representing the elements to be analyzed and visibility, respectively, with the purpose of analyzing the relationship between different elements and visibility;
[0027] S203, using partial correlation coefficient to test the causal relationship between feature set B12 and visibility at time t-0, using correlation matrix inversion method to obtain partial correlation coefficients between two variables, that is, first calculate the covariance matrix Ω of all variables, and then find its inverse matrix P = Ω -1, the partial correlation coefficient between variable i and variable j Where (pij) = P; a significance test is performed at the same time, and the significance level is set to 0.05; factors with a partial correlation coefficient of 0 and factors that do not meet the significance test are removed to obtain the meteorological and hydrological feature set B13;
[0028] S204, collect the visibility observation sequence B2 and the latitude and longitude, month, and time geographical time factors B3 6 hours before the start of the mode reporting, and combine them with the meteorological and hydrological feature set B13 to obtain the forecast factor set B4;
[0029] S205. For the prediction factor set B4, the embedding method in feature engineering is used in combination with a machine learning algorithm such as random forest to further select the optimal factor combination B5 of the visibility prediction model.
[0030] Preferably, S301, for the model prediction elements C1 in the key prediction factors B4 extracted in step S2, use the root mean square error to evaluate the error between the model prediction and the actual observation for each element C1;
[0031] S302, for each element C1, use the Pearson correlation coefficient to analyze the correlation between other forecast elements and the element, and use the forecast elements with correlation coefficients not equal to zero and the key forecast elements that need to be corrected as input features C2 of the correction model;
[0032] S303, using the feature C2 selected in step S302 and taking the actual observations corresponding to the key forecasting elements as labels, a sample set is established, the sample set including a training set, a validation set and a test set;
[0033] S304, using the training set to train the machine learning models of random forest, XGBoost, and LightGBM algorithms, as well as the MLP and RNN neural network models, and the validation set to check the degree of model convergence during the training process to prevent overfitting;
[0034] S305. For the trained model, use the test set to test it, and use the Pearson correlation coefficient, root mean square error, and standard deviation indicators to evaluate the error and correlation between the model prediction and the actual observation. The higher the correlation coefficient, the smaller the root mean square error and standard deviation, and the closer the result after model correction is to the actual observation result; based on these indicators, select the model with the best correction effect as the final correction model.
[0035] Preferably, S401, using the correction model selected in step S305, correcting the key meteorological elements in the model forecast result;
[0036] S402, classifying the continuous visibility values into two levels: a visibility value ≤ 1 km is classified as dense fog, which is recorded as 1; a visibility value > 1 km is classified as others, which is recorded as 0;
[0037] S403, using key meteorological elements predicted by the model, station longitude and latitude, month, time, and forecast timeliness as features, and using visibility levels observed at the station as labels, to construct a sample set, which includes a training set, a validation set, and a test set;
[0038] S404. Use the training set to train the LightGBM machine learning model. The validation set is used to check the degree of model convergence during the training process to prevent overfitting. The focus loss function is used as the objective function, where the focus parameter γ is set to 2 and the positive and negative sample weight parameters α are set to 0. t Set to 0.5, the loss function formula is as follows:
[0039] FL(p t )=-α(1-p t ) γ log(p t );
[0040] S405. Aiming at the imbalance problem of dense fog category and non-dense fog samples, ensemble learning combined with sample resampling strategy is used to improve the prediction performance of the model for dense fog. First, the training set and the validation set are randomly divided into M parts, where the training set is sample balanced by random downsampling, so that the number of samples of dense fog category and non-dense fog category is the same, and M pairs of training sets and validation sets are obtained. A LightGBM model is trained for each pair of training set and validation set, and finally M prediction models are obtained;
[0041] S406. For the M prediction models, respectively optimize the models using a hyperparameter search strategy based on Bayesian optimization to obtain M optimal prediction models.
[0042] Preferably, S501, using M trained models to realize intelligent forecasting of visibility levels, including grid forecasting and site forecasting;
[0043] S502, the process of gridded forecasting is as follows: first, access the gridded forecast results of the numerical model in real time and perform intelligent correction, construct a forecast sample using the key factors obtained by feature analysis, use M trained models to perform forecasting, obtain M forecast results, calculate their average value as the final forecast result, and obtain the visibility gridded level forecast result;
[0044] S503, the implementation process of site forecast is as follows: first, access the grid forecast results of the numerical model in real time and perform intelligent correction, then interpolate the grid forecast field to the site through the interpolation method, construct a forecast sample using the key factors obtained by feature analysis, use M trained models to perform forecasting, obtain M forecast results, calculate their average value as the final forecast result, and obtain the visibility level forecast result of the site;
[0045] S504. Use multiple evaluation indicators to perform accuracy inspection, including: POD, FAR, ETS, CSI;
[0046] S505. Based on the ETS and CSI indicators, the classification probability threshold is optimized and the optimal classification threshold is selected to further improve the prediction accuracy of dense fog.
[0047] (III) Beneficial effects
[0048] Compared with the prior art, the present invention provides a method and system for intelligent forecasting of sea fog level, which has the following beneficial effects:
[0049] In order to improve the forecasting skills of low visibility levels and meet the needs of refined forecasting of marine environment, an intelligent sea fog forecasting method and system based on numerical forecast results and site observations was invented. The key meteorological influencing factors of low visibility (dense fog) were fully explored, and a nonlinear correlation mapping between key factors and visibility levels was constructed to improve the forecasting skills of low visibility levels. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of an intelligent forecasting method for sea fog level and a system structure proposed by the present invention;
[0051] Figure 2 A sea fog level intelligent forecasting method and system proposed by the present invention Figure 1 Middle data layer flow chart;
[0052] Figure 3 A sea fog level intelligent forecasting method and system proposed by the present invention Figure 1 Flowchart of the middle feature analysis layer;
[0053] Figure 4 A sea fog level intelligent forecasting method and system proposed by the present invention Figure 1 Flowchart of the intelligent correction layer in the middle;
[0054] Figure 5 A sea fog level intelligent forecasting method and system proposed by the present invention Figure 1 Flowchart of the model training layer;
[0055] Figure 6This is an integrated learning flow chart of a method and system for intelligent forecasting of sea fog levels proposed by the present invention;
[0056] Figure 7 A flow chart of the forecast verification layer of a sea fog grade intelligent forecast method and system proposed by the present invention;
[0057] Figure 8 This is a diagram of average forecast effects of different forecast time effectiveness of stations in the Yangtze River Estuary area of a method and system for intelligent forecasting of sea fog levels proposed by the present invention;
[0058] Fig. 9 A forecast effect diagram of different forecast time effectiveness of all stations in the Yangtze River Estuary area of a method and system for intelligent forecasting of sea fog level proposed by the present invention;
[0059] Fig.10 The present invention provides a classification threshold fluctuation diagram of a method and system for intelligent forecasting of sea fog levels. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] Embodiment 1:
[0062] Reference Figure 1-10 , a sea fog level intelligent forecasting system and method, comprising the following steps:
[0063] S1. Collection of numerical model forecast results and conventional observation data from meteorological stations, as well as fusion and quality control of collected data;
[0064] S101. Prepare routine observation data A1 of meteorological stations from 2016 to 2020. The elements include: sea level pressure, wind speed, temperature, dew point, visibility, 1-hour precipitation, 3-hour precipitation, 6-hour precipitation, and 24-hour precipitation;
[0065] S102. Prepare numerical model forecast data A2 from 2016 to 2020. The elements are divided into ground field and high-altitude field. The ground field elements include: sea level pressure, pressure change, temperature, humidity, wind direction and wind speed; the high-altitude field elements include: geopotential height of 500hPa, 700hPa, 850hPa, 925hPa, 1000hPa isobaric surfaces, temperature, dew point temperature, wind direction and wind speed, and sea surface temperature field;
[0066] S103, fusing the meteorological station observation data A1 with the numerical model forecast data A2, firstly matching them in time, and then using an interpolation algorithm to interpolate the gridded numerical model forecast data to the observation station to obtain a fused data set A1A2;
[0067] S104, using traditional statistical methods and machine learning methods to detect outliers on the fused data set A1A2 and remove abnormal records;
[0068] S2. Using the characteristic analysis methods of Pearson correlation coefficient test, causal association test and time lag analysis, the key meteorological elements affecting visibility are extracted as forecasting factors. At the same time, the visibility observations and geographical time factors before the model starts reporting are used as auxiliary forecasting factors.
[0069] S201, setting the maximum lag time to 6 hours, selecting the visibility at time t-0 and the meteorological and hydrological element set B11 at time t-1, t-2, t-3, ..., t-6 as the time lag feature analysis sample set;
[0070] S202, using the Pearson correlation coefficient, test the correlation between the meteorological and hydrological element set B11 and the visibility at time t-0, remove the elements with a correlation coefficient r of 0 and those that do not meet the significance test, where the significance level of the significance test is set to 0.05, and obtain the feature set B12 with correlation. The calculation formula is as follows:
[0071]
[0072] Among them, X and Y are two variables whose correlation is to be evaluated, representing the elements to be analyzed and visibility, respectively, with the purpose of analyzing the relationship between different elements and visibility;
[0073] S203, using partial correlation coefficient to test the causal relationship between feature set B12 and visibility at time t-0. The partial correlation coefficient between two variables is obtained by using the correlation matrix inversion method, that is, firstly calculating the covariance matrix Ω of all variables, and then finding its inverse matrix P = Ω -1 , the partial correlation coefficient between variable i and variable j Where (pij) = P; a significance test is performed at the same time, and the significance level is set to 0.05. Factors with partial correlation coefficients of 0 and factors that do not meet the significance test are removed to obtain the meteorological and hydrological feature set B13;
[0074] S204, collect the visibility observation sequence B2 and geographical time factors B3 such as longitude and latitude, month, and time of day 6 hours before the start of the mode reporting, and combine them with the meteorological and hydrological feature set B13 to obtain the forecast factor set B4;
[0075] S205, for the forecast factor set B4, using the embedding method in feature engineering combined with a machine learning algorithm such as random forest to further select the optimal factor combination B5 of the visibility forecast model;
[0076] S3. Based on a large number of station observation data, the machine learning correction method is used to correct the key meteorological elements in the numerical model forecast results;
[0077] S301, for the model prediction elements C1 in the key prediction factors B4 extracted in step S2, respectively, for each element C1, use the root mean square error to evaluate the error between the model prediction and the actual observation;
[0078] S302, for each element C1, use the Pearson correlation coefficient to analyze the correlation between other forecast elements and the element, and use the forecast elements with correlation coefficients not equal to zero and the key forecast elements that need to be corrected as input features C2 of the correction model;
[0079] S303, using the feature C2 selected in step S302, and taking the actual observations corresponding to the key forecast elements as labels, a sample set is established, wherein 2016 to 2018 is used as a training set, 2019 is used as a validation set, and 2020 is used as a test set;
[0080] S304, using the training set to train machine learning models such as random forest, XGBoost, LightGBM algorithms, and MLP, RNN neural network models, and the validation set is used to check the degree of model convergence during the training process to prevent overfitting;
[0081] S305. The trained model is tested using a test set, and the Pearson correlation coefficient, root mean square error, standard deviation and other indicators are used to evaluate the error and correlation between the model prediction and the actual observation. The higher the correlation coefficient, the smaller the root mean square error and standard deviation, and the closer the result after model correction is to the actual observation result. Based on these indicators, the model with the best correction effect is selected as the final correction model;
[0082] S4. Use machine learning algorithms, automatic hyperparameter tuning, and ensemble learning to build and optimize the sea fog intelligent forecasting model;
[0083] S401, using the correction model selected in step S305, correcting the key meteorological elements in the model forecast result;
[0084] S402, classifying the continuous visibility values into two levels: a visibility value ≤ 1 km is classified as dense fog, which is recorded as 1; a visibility value > 1 km is classified as others, which is recorded as 0;
[0085] S403, using the key meteorological elements predicted by the model, the longitude and latitude of the station, the month, the time, and the forecast timeliness as features, and the visibility level observed at the station as a label, to construct a sample set, of which 2016 to 2018 is used as a training set, 2019 is used as a validation set, and 2020 is used as a test set;
[0086] S404. Use the training set to train the LightGBM machine learning model. The validation set is used to check the degree of model convergence during the training process to prevent overfitting. The focus loss function is used as the objective function. The loss function formula is as follows, where the focus parameter γ is set to 2 and the positive and negative sample weight parameters α are t Set to 0.5, the loss function formula is as follows:
[0087] FL(p t )=-α(1-p t ) γ log(p t );
[0088] S405. Aiming at the imbalance problem of dense fog category and non-dense fog samples, ensemble learning combined with sample resampling strategy is used to improve the prediction performance of the model for dense fog. First, the training set and the validation set are randomly divided into M parts, where the training set is sample balanced by random downsampling, so that the number of samples of dense fog category and non-dense fog category is the same, and M pairs of training sets and validation sets are obtained. A LightGBM model is trained for each pair of training set and validation set, and finally M prediction models are obtained;
[0089] S406, for the M prediction models, respectively tune the models using a hyperparameter search strategy based on Bayesian optimization to obtain M optimal prediction models;
[0090] S5. Use the sea fog intelligent forecast model to forecast visibility levels, realize site forecast and grid forecast of visibility, and test the forecast accuracy;
[0091] S501, using M trained models to realize intelligent forecasting of visibility levels, including grid forecasting and site forecasting;
[0092] S502, the process of gridded forecasting is as follows: first, access the gridded forecast results of the numerical model in real time and perform intelligent correction, construct a forecast sample using the key factors obtained by feature analysis, use M trained models to perform forecasting, obtain M forecast results, calculate their average value as the final forecast result, and obtain the visibility gridded level forecast result;
[0093] S503, the implementation process of site forecast is as follows: first, access the grid forecast results of the numerical model in real time and perform intelligent correction, then interpolate the grid forecast field to the site through the interpolation method, construct a forecast sample using the key factors obtained by feature analysis, use M trained models to perform forecasting, obtain M forecast results, calculate their average value as the final forecast result, and obtain the visibility level forecast result of the site;
[0094] S504. Use multiple evaluation indicators to perform accuracy inspection, including: POD, FAR, ETS, CSI;
[0095] S505. Based on the ETS and CSI indicators, the classification probability threshold is optimized and the optimal classification threshold is selected to further improve the prediction accuracy of dense fog.
[0096] like Fig.10 As shown in the figure, the general classification probability threshold is 0.5. If it is greater than 0.5, it is dense fog, and if it is less than 0.5, it is non-dense fog. The horizontal axis x in the above figure is probability. It can be seen that when x=0.19, the corresponding ETS and CSI are the largest, so 0.19 is better than 0.5, so the classification threshold is adjusted to 0.19.
[0097] Embodiment 2:
[0098] The system solution is as follows Figure 1 As shown, it includes five modules: data layer, feature analysis, intelligent correction, model training, and forecast verification; the main invention point is the organic integration of the five modules to form a sea fog grade intelligent forecast method and system; the first data layer is responsible for the collection of numerical model forecast results and site observation data, as well as the fusion and quality control of collected data; the feature analysis layer is mainly used to extract key meteorological elements affecting visibility, and the feature analysis method at least includes Pearson correlation coefficient test, causal association test, time lag correlation analysis, etc.; the intelligent correction layer is responsible for correcting the key meteorological elements in the numerical model forecast results based on a large amount of site observation data using machine learning correction methods; the model training layer at least includes machine learning model construction, hyperparameter automatic tuning, and integrated learning; the forecast verification layer includes using the sea fog intelligent forecast model to forecast visibility levels, realize site forecasts of visibility and grid forecasts, and verify forecast precision and accuracy; the specific contents of the invention module are as follows:
[0099] (1) Data Layer
[0100] like Figure 2As shown in the figure, the numerical model forecast includes multiple meteorological and hydrological elements; the specific elements include the following variables, ground field: sea level pressure, pressure change, temperature, humidity, wind direction and speed; high-altitude field: 500hPa, 700hPa, 850hPa, 925hPa, 1000hPa isobaric surface potential height, height change, temperature, dew point temperature, wind direction and speed and sea surface temperature field; the elements contained in the meteorological station observation data include sea level pressure, ground 3-hour pressure change, ground wind speed, ground temperature, ground dew point, 1-hour precipitation, 3-hour precipitation, 6-hour precipitation, 24-hour precipitation, etc.; In order to achieve effective integration of station data and grid data, time matching is first performed, and then the gridded numerical forecast data is interpolated to the observation site using a spatial interpolation algorithm. The methods that can be used include but are not limited to inverse distance weighted interpolation, spline function interpolation, Kriging interpolation, etc.; Then, outlier detection is performed on the collected and processed data. The methods used include traditional statistical methods and machine learning methods. Traditional statistical methods include the 3σ criterion and box plot method. Machine learning methods include but are not limited to isolation forest, DBSCAN, local anomaly factor, etc.
[0101] (2) Feature Analysis Layer
[0102] like Figure 3 As shown in the figure, firstly, various meteorological elements are integrated with multiple correlation analysis methods to analyze, including but not limited to: Pearson correlation coefficient, Spearman correlation coefficient, Kendall correlation coefficient, partial correlation analysis, etc., to obtain the influence of different meteorological and hydrological elements on visibility level forecast; in the time dimension, time lag cross-correlation analysis and cross-lag correlation coefficient and other methods are used to analyze and test the time lag influence of various elements on sea fog; based on the above analysis, the optimal factors for sea fog forecast and the optimal time interval of their lag influence are selected; finally, the embedding method in the feature process is combined with a machine learning algorithm such as random forest to further select the optimal factor combination for sea fog forecast;
[0103] (3) Intelligent correction layer of meteorological elements
[0104] like Figure 4 As shown in the figure, based on a large amount of station observation data, the numerical forecast hydrological and meteorological elements are optimized and corrected using machine learning methods. The machine learning correction methods used include at least a machine learning algorithm based on a decision tree and a neural network algorithm. The evaluation indicators in model training are Pearson correlation coefficient, root mean square error, standard deviation, etc. The higher the correlation coefficient, the smaller the root mean square error and standard deviation, and it is believed that the results after model correction are closer to the actual observation results.
[0105] (4) Model training layer, visibility intelligent forecasting model construction
[0106] like Figure 5As shown, the hydrometeorological elements that have been corrected, selected through feature analysis and interpolated to the observation site are used as feature inputs, and the site observations of visibility are used as labels, and a machine learning classification model is constructed to learn the nonlinear mapping relationship between numerical forecast hydrometeorological elements and visibility, so as to forecast the visibility level; in order to further improve the accuracy of visibility level classification, the present invention designs and selects the loss function of the machine learning algorithm, and the loss function used includes at least one of the cross entropy loss function, the focal loss function, and the Gradient Harmonizing Mechanism; in view of the sample imbalance problem, the present invention adopts a training scheme based on ensemble learning to improve the classification performance of the model for a small number of samples, and the ensemble learning scheme includes one of a Boosting-based method, a Bagging-based method, and a Boosting and Bagging hybrid ensemble method; in view of the hyperparameter tuning problem of the machine learning model, the present invention adopts a hyperparameter search strategy based on Bayesian optimization for tuning, so as to obtain the optimal visibility forecast model;
[0107] (5) Forecast verification layer, construction of visibility intelligent forecast model
[0108] like Figure 7 As shown, based on the above four modules, intelligent forecasting of visibility levels can be achieved, including gridded forecasting and site forecasting; the implementation process of gridded forecasting is: first, real-time access to the gridded forecasting results of the numerical model and intelligent correction, the key factors obtained by feature analysis are used to construct prediction samples, and the level of sea fog is predicted through the visibility intelligent forecast model to obtain gridded visibility forecast results. The implementation process of site forecasting is: first, real-time access to the gridded forecasting results of the numerical model and intelligent correction, and then the gridded forecasting field is interpolated to the site through the interpolation method, the key factors obtained by feature analysis are used to construct prediction samples, and the level of sea fog is predicted through the machine learning prediction model to obtain the visibility level forecast results of the site; the module of the present invention uses a variety of evaluation indicators for accuracy inspection, and specific indicators include: POD, FAR, ETS, CSI, etc. Finally, the probability threshold can be tuned to select the optimal probability threshold to further improve the forecast accuracy;
[0109] Embodiment 3:
[0110] like Figure 8-9As shown, taking the visibility level forecast of 27 meteorological observation stations in the Yangtze River Estuary as an example, the effect of the invention is explained; wherein, the model forecast is the visibility diagnosis result of the operational operation of the WRF model, and the intelligent forecast is the visibility intelligent forecast result based on the LightGBM algorithm. Through the comparison of ETS scores of different forecast time periods, it can be seen that for different forecast time periods, the visibility level intelligent forecasting technique of the present invention is better than the general numerical forecast diagnosis method; compared with the operational visibility level numerical forecasting method, the average ETS score of the visibility level forecast is increased by more than 1.5 times.
[0111] It should be noted that the term "comprises" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article, or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article, or device that includes the element.
[0112] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for intelligent forecasting of sea fog level, characterized in that: The steps include: S1. Collection of numerical model forecast results and conventional observation data from meteorological stations, as well as fusion and quality control of collected data; S2. Using the characteristic analysis methods of Pearson correlation coefficient test, causal association test and time lag analysis, the key meteorological elements affecting visibility are extracted as forecasting factors. At the same time, the visibility observations and geographical time factors before the model starts reporting are used as auxiliary forecasting factors. S201, setting the maximum lag time to 6 hours, selecting the visibility at time t-0 and the meteorological and hydrological element set B11 at time t-1, t-2, t-3, ..., t-6 as the time lag feature analysis sample set; S202, using the Pearson correlation coefficient to test the correlation between the meteorological and hydrological element set B11 and the visibility at time t-0, eliminating the elements with a correlation coefficient r of 0 and those that do not meet the significance test, where the significance level of the significance test is set to 0.05, and obtaining the feature set B12 with correlation, the calculation formula is as follows: ; Among them, X and Y are two variables whose correlation is to be evaluated, representing the elements to be analyzed and visibility, respectively, with the purpose of analyzing the relationship between different elements and visibility; S203, using partial correlation coefficient to test the causal relationship between feature set B12 and visibility at time t-0, using correlation matrix inversion method to obtain partial correlation coefficients between two variables, that is, first calculate the covariance matrix of all variables , and then find its inverse matrix , the partial correlation coefficient between variable i and variable j ,in ; Simultaneously, a significance test was performed, and the significance level was set to 0.05; factors with a partial correlation coefficient of 0 and factors that did not meet the significance test were removed to obtain the meteorological and hydrological feature set B13; S204, collect the visibility observation sequence B2 and the latitude and longitude, month, and time geographical time factors B3 6 hours before the start of the mode reporting, and combine them with the meteorological and hydrological feature set B13 to obtain the forecast factor set B4; S205, for the forecast factor set B4, using the embedding method in feature engineering combined with a machine learning algorithm such as random forest to further select the optimal factor combination B5 of the visibility forecast model; S3. Based on a large number of station observation data, the machine learning correction method is used to correct the key meteorological elements in the numerical model forecast results; S301, for the model prediction elements C1 in the key prediction factors B4 extracted in step S2, respectively, for each element C1, use the root mean square error to evaluate the error between the model prediction and the actual observation; S302, for each element C1, using the Pearson correlation coefficient to analyze the correlation between other model forecast elements C1 in the key forecast factor B4 and the current model forecast element C1, and taking the forecast elements with non-zero correlation coefficients and the key forecast elements that need to be corrected as input features C2 of the correction model; S303, using the feature C2 selected in step S302 and taking the actual observations corresponding to the key forecasting elements as labels, a sample set is established, the sample set including a training set, a validation set and a test set; S304, using the training set to train the machine learning models of random forest, XGBoost, and LightGBM algorithms, as well as the MLP and RNN neural network models, and the validation set to check the degree of model convergence during the training process to prevent overfitting; S305. For the trained model, the test set is used for testing, and the Pearson correlation coefficient, root mean square error, and standard deviation are used to evaluate the error and correlation between the model prediction and the actual observation. The higher the correlation coefficient, the smaller the root mean square error and standard deviation, and the closer the result after model correction is to the actual observation result. According to these indicators, the model with the best correction effect is selected as the final correction model. S4. Use machine learning algorithms, automatic hyperparameter tuning, and integrated learning technology to build and optimize the sea fog intelligent forecasting model; S401, using the correction model selected in step S305, correcting the key meteorological elements in the model forecast result; S402, dividing the continuous visibility values into two levels: visibility value Visibility of 1 km is classified as dense fog and recorded as 1; visibility > 1 km is classified as other and recorded as 0; S403, using key meteorological elements predicted by the model, station longitude and latitude, month, time, and forecast timeliness as features, and using visibility levels observed at the station as labels, to construct a sample set, which includes a training set, a validation set, and a test set; S404. Use the training set to train the LightGBM machine learning model. The validation set is used to check the degree of model convergence during the training process to prevent overfitting. The focus loss function is used as the objective function, where the focus parameter Set to 2, positive and negative sample weight parameters Set to 0.5, the loss function formula is as follows: ; S405. Aiming at the imbalance problem of dense fog category and non-dense fog samples, ensemble learning combined with sample resampling strategy is used to improve the prediction performance of the model for dense fog. First, the training set and the validation set are randomly divided into M parts, where the training set is sample balanced by random downsampling, so that the number of samples of dense fog category and non-dense fog category is the same, and M pairs of training sets and validation sets are obtained. A LightGBM model is trained for each pair of training set and validation set, and finally M prediction models are obtained; S406, for the M prediction models, respectively tune the models using a hyperparameter search strategy based on Bayesian optimization to obtain M optimal prediction models; S5. Use the sea fog intelligent forecast model to forecast visibility levels, realize site forecast and grid forecast of visibility, and test the forecast accuracy.
2. The method for intelligent forecasting of sea fog level according to claim 1, characterized in that: Step S1 specifically includes: S101. Prepare routine observation data of meteorological stations in the previous five years A1, including sea level pressure, wind speed, temperature, dew point, visibility, 1-hour precipitation, 3-hour precipitation, 6-hour precipitation, and 24-hour precipitation; S102. Prepare the numerical model forecast data A2 for the previous five years. The elements are divided into ground field and high-altitude field. The ground field elements include: sea level pressure, pressure change, temperature, humidity, wind direction and wind speed; the high-altitude field elements include: 500hPa, 700hPa, 850hPa, 925hPa, 1000hPa pressure surface potential height, temperature, dew point temperature, wind direction and wind speed and sea surface temperature field; S103, fusing the meteorological station observation data A1 with the numerical model forecast data A2, firstly matching them in time, and then using an interpolation algorithm to interpolate the gridded numerical model forecast data to the observation station to obtain a fused data set A1A2; S104. Use traditional statistical methods and machine learning methods to detect outliers in the fused data set A1A2 and remove abnormal records.
3. The method for intelligent forecasting of sea fog level according to claim 1, characterized in that: Step S5 specifically includes: S501, using M trained models to realize intelligent forecasting of visibility levels, including grid forecasting and site forecasting; S502, the process of gridded forecasting is as follows: first, access the gridded forecast results of the numerical model in real time and perform intelligent correction, construct a forecast sample using the key factors obtained by feature analysis, use M trained models to perform forecasting, obtain M forecast results, calculate their average value as the final forecast result, and obtain the visibility gridded level forecast result; S503, the implementation process of site forecast is as follows: first, access the grid forecast results of the numerical model in real time and perform intelligent correction, then interpolate the grid forecast field to the site through the interpolation method, construct a forecast sample using the key factors obtained by feature analysis, use M trained models to perform forecasting, obtain M forecast results, calculate their average value as the final forecast result, and obtain the visibility level forecast result of the site; S504. Use multiple evaluation indicators to perform accuracy inspection, including: POD, FAR, ETS, CSI; S505. Based on the ETS and CSI indicators, the classification probability threshold is optimized and the optimal classification threshold is selected to further improve the prediction accuracy of dense fog.
4. An intelligent forecasting system for sea fog level applied to the forecasting method according to any one of claims 1 to 3, characterized in that: It includes data layer, feature analysis layer, intelligent correction layer, model training layer, and forecast verification layer; The data layer includes a data access module, a data fusion module, an outlier detection module, and a sample module. The data access module accesses the site observation data and the numerical model forecast result data. The data layer is used for data fusion and quality control. The feature analysis layer includes a sample input module, a feature analysis module, a related feature module, and an analysis result module; the feature analysis layer is used to extract key meteorological elements that affect visibility; The intelligent correction layer includes a data access module, a data fusion module, a correction model module, an evaluation index module, and a correction result module; the data access module is used to access the key meteorological element data and site observation data obtained by the analysis result module in the feature analysis layer; the intelligent correction layer is used to correct the key meteorological elements in the model forecast results; Model training layer, including data access module, sample generation module, model training module, and model optimization module; The data access module is used to access the numerical model forecast output data and visibility observation data in the correction result module in the intelligent correction layer, and the model training layer is used to train the optimal visibility forecast model; The forecast verification layer is used to forecast and verify the sea fog level.
Citation Information
Patent Citations
NRIET fog forecasting method based on machine learning
CN108375808A
Low-visibility forecasting method based on multi-neural network successive approximation method
CN108734278A
TDNN-based prediction method for NDVI in the grassland area of northern China
CN109190810A
A local numerical weather prediction product revision method based on depth learning
CN109447260A
Temperature intelligent grid optimal integrated forecasting method
CN110068878A
Cited By
Sea fog quantitative forecasting method and device based on period enhanced Transform
CN120871298A
