Atmospheric visibility prediction method, computer equipment and medium integrating multiple factors
By combining meteorological and aerosol characteristic data and using the extreme gradient boosting algorithm to construct an atmospheric visibility prediction model, the problem of insufficient atmospheric visibility prediction accuracy in the existing technology is solved, and more efficient and accurate visibility predictions are achieved, especially in low visibility and It has guiding significance in air pollution warning.
Patent Information
- Application Number
- CN202410078804.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-01-19
AI Technical Summary
Existing atmospheric visibility prediction methods still have room for improvement in accuracy when dealing with complex meteorological factors, especially since the interaction of factors such as temperature, humidity, wind speed and air pollutants increases the complexity of predictions.
A multi-factor atmospheric visibility prediction method is adopted. By obtaining meteorological characteristic data and aerosol characteristic data, a trained atmospheric visibility prediction model is used for prediction. The model is trained based on sample characteristic data and visibility measured values, and through the grid search method Adjust network parameters and build a prediction model using extreme gradient boosting algorithms.
It achieves more accurate atmospheric visibility prediction, can more comprehensively consider influencing factors, and improves the accuracy and efficiency of prediction. It is especially important in the prediction of low visibility weather and the prevention of air pollution events.
Smart Images

Figure CN117609738B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of atmospheric environment technology, and in particular to an atmospheric visibility prediction method integrating multiple factors, a computer device and a medium. Background Art
[0002] Researchers at home and abroad have conducted a lot of research on the prediction of atmospheric visibility. In the early stage, researchers mainly relied on traditional methods such as statistical regression, empirical formulas and numerical forecasting. With the rapid development of machine learning technology after 2007, neural networks, support vector machines, genetic algorithms and other methods have been widely used in visibility prediction, greatly improving the accuracy and efficiency of prediction.
[0003] However, the prediction of atmospheric visibility is affected by many complex meteorological factors, such as temperature, humidity, wind speed, air pollutants, etc. The interaction between these factors increases the complexity of the prediction. Therefore, although the current prediction method has made progress in some aspects, its accuracy still needs to be further improved. Summary of the invention
[0004] The purpose of the present invention is to provide an atmospheric visibility prediction method, computer equipment and medium that integrate multiple factors, which can accurately predict atmospheric visibility.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] In a first aspect, the present invention provides an atmospheric visibility prediction method integrating multiple factors, comprising:
[0007] Acquire meteorological characteristic data and aerosol characteristic data at a target meteorological observation site; the meteorological characteristic data include wind speed, temperature, humidity, air pressure and planetary boundary layer height; the aerosol characteristic data include aerosol mass concentration data and aerosol hygroscopicity parameter data.
[0008] The meteorological characteristic data and aerosol characteristic data in the target meteorological observation site are input into the trained atmospheric visibility prediction model to obtain the visibility prediction data at the location of the target meteorological observation site; the trained atmospheric visibility prediction model is a model obtained by label training with sample characteristic data as input and the visibility measured value corresponding to the sample characteristic data as label; the sample characteristic data includes the meteorological characteristic data and aerosol characteristic data in the sample meteorological observation site.
[0009] Optionally, the determination process of the trained atmospheric visibility prediction model is:
[0010] A sample data set is obtained; the sample data set includes a plurality of sample feature data and a visibility measurement value corresponding to each sample feature data.
[0011] The sample data set is input into the atmospheric visibility prediction model, and each network parameter in the atmospheric visibility prediction model is adjusted based on the grid search method to obtain the optimal network parameter combination; the network parameters include the number of training iterations, the maximum depth of each decision tree, the minimum sample weight of each leaf node, the minimum loss reduction value required for leaf node splitting, the proportion of samples randomly extracted each time the model is trained, the proportion of feature columns randomly extracted each time the model is trained, the proportion of feature columns randomly extracted when the nodes of each layer of the tree are split, the strength of L1 regularization, the strength of L2 regularization and the learning rate.
[0012] According to the optimal network parameter combination, a trained atmospheric visibility prediction model is obtained.
[0013] Optionally, the sample data set is input into the atmospheric visibility prediction model, and each network parameter in the atmospheric visibility prediction model is adjusted based on a grid search method to obtain an optimal network parameter combination, specifically including:
[0014] According to the value range of each network parameter in the atmospheric visibility prediction model, each network parameter is randomly selected to obtain multiple groups of network parameter combinations.
[0015] For each of the network parameter combinations, an atmospheric visibility prediction model is constructed, and sample characteristic data is input into the atmospheric visibility prediction model to calculate the visibility prediction value of the atmospheric visibility prediction model under the parameter combination.
[0016] For each of the visibility prediction values, the score of each group of the parameter combinations is determined according to the visibility measured value corresponding to the sample feature data in the sample data set.
[0017] The parameter combination with the highest score is selected as the optimal parameter combination.
[0018] Optionally, the atmospheric visibility prediction model is an extreme gradient boosting model constructed based on an extreme gradient boosting algorithm.
[0019] Optionally, the method for acquiring the aerosol hygroscopicity parameter data specifically includes:
[0020] Acquire aerosol chemical composition data; the aerosol chemical composition data includes mass concentrations of various inorganic salt ions and mass concentrations of various organic carbons.
[0021] For each type of the inorganic salt ions, the amount of the substance of the inorganic chemical component corresponding to the inorganic salt ions is determined based on the ion pairing scheme according to the mass concentration of the inorganic salt ions.
[0022] For each type of the inorganic chemical components, the volume of the inorganic chemical components is determined according to the amount of the substance of the inorganic chemical components.
[0023] For each type of organic carbon, the volume of the organic chemical component corresponding to the organic carbon is determined according to the mass concentration of the organic carbon.
[0024] The aerosol hygroscopicity parameter data is determined according to the volume of each of the inorganic chemical components and the volume of each of the organic chemical components.
[0025] Optionally, determining the aerosol hygroscopicity parameter data according to the volume of each of the inorganic chemical components and the volume of each of the organic chemical components specifically includes:
[0026] According to the formula Determine the aerosol hygroscopicity parameter data.
[0027] in, is the volume fraction of the ith chemical component, is the hygroscopicity parameter of the i-th chemical component, Aerosol hygroscopicity parameter data.
[0028] Optionally, the ion pairing scheme is specifically:
[0029] .
[0030] .
[0031] .
[0032] .
[0033] in, is the amount of substance of NH4NO3, for The amount of substance, is the amount of substance of NH4HSO4, for The amount of substance, for The amount of substance, is the amount of substance of (NH4)2SO4, is the amount of substance of H2SO4.
[0034] Optionally, the aerosol mass concentration data is PM2.5 mass concentration.
[0035] In a second aspect, the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes any step of the atmospheric visibility prediction method.
[0036] In a third aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by a processor and executing any one of the atmospheric visibility prediction methods.
[0037] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0038] The present invention provides a method, computer equipment and medium for predicting atmospheric visibility that integrates multiple factors. The method includes: obtaining meteorological characteristic data and aerosol characteristic data in a target meteorological observation site; the meteorological characteristic data include wind speed, temperature, humidity, air pressure and planetary boundary layer height; the aerosol characteristic data include aerosol mass concentration data and aerosol hygroscopic parameter data; the meteorological characteristic data and aerosol characteristic data in the target meteorological observation site are input into a trained atmospheric visibility prediction model to obtain visibility prediction data at the target meteorological observation site; the trained atmospheric visibility prediction model is a model obtained by label training with sample characteristic data as input and visibility measured values corresponding to the sample characteristic data as labels; the sample characteristic data include meteorological characteristic data and aerosol characteristic data in a sample meteorological observation site. When predicting atmospheric visibility, the present invention more comprehensively considers various factors affecting visibility, and trains an atmospheric visibility prediction model based on sample meteorological characteristic data and sample aerosol characteristic data of multiple meteorological characteristics. Based on the trained model, the present invention can more accurately predict atmospheric visibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0040] Figure 1 A flow chart of an atmospheric visibility prediction method integrating multiple factors provided in Example 1 of the present invention.
[0041] Figure 2 A flow chart of an atmospheric visibility prediction method based on a combination of multiple factors and an XGBoost algorithm is provided in Example 1 of the present invention.
[0042] Figure 3A flow logic diagram of an atmospheric visibility prediction method based on a combination of multiple factors and an XGBoost algorithm provided in Example 1 of the present invention.
[0043] Figure 4 A comparison chart of visibility prediction values and actual observed values provided in Example 1 of the present invention.
[0044] Figure 5 A schematic diagram of the structure of a computer device provided by the present invention. DETAILED DESCRIPTION
[0045] 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.
[0046] In recent years, with the significant decline in data collection and storage costs, coupled with the rapid development of machine learning technology, various types of meteorological data in most areas can be accurately observed and stored. This progress provides a rich data resource and algorithm research foundation for scientific research in the field of meteorology. Among the many branches of machine learning, ensemble learning has shown significant advantages in the field of atmospheric visibility prediction: it not only has accurate predictions and fast calculation speed, but also effectively prevents overfitting. In addition, ensemble learning has great advantages in solving the complex nonlinear relationship between visibility and meteorological elements. Especially in the case of low visibility data, compared with the small amount of data under normal weather conditions, the various algorithms in ensemble learning can effectively solve the problem of sample imbalance. Among the many ensemble learning algorithms, extreme gradient boosting (eXtreme Gradient Boosting, XGBoost) is a widely used algorithm that represents a typical application of the ensemble learning framework of boosting. The efficiency and accuracy of XGBoost make it an ideal choice for atmospheric visibility prediction, showing the great potential of ensemble learning in modern meteorological prediction.
[0047] Therefore, the influencing factor analysis of multidimensional meteorological and aerosol physical and chemical characteristic factor time series data based on the XGBoost algorithm can reveal the potential connection between atmospheric visibility and other influencing factors. The accurate prediction of atmospheric visibility can ensure traffic safety. In particular, the prediction of low-visibility weather information can enable people to control and prevent the occurrence of air pollution incidents in a targeted manner and reduce the various losses caused by polluted weather. This has positive significance for transportation operation management departments, the majority of traveling citizens and maintaining a good air environment.
[0048] The purpose of the present invention is to provide an atmospheric visibility prediction method, computer equipment and medium that integrates multiple factors, which can accurately predict atmospheric visibility. At the same time, it can provide a theoretical basis for the formulation of policies to improve visibility in the governance of large and medium-sized cities, and provide scientific support for my country's atmospheric pollution prevention and control and the formulation of reasonable emission reduction measures.
[0049] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0050] Embodiment 1
[0051] like Figure 1 As shown, this embodiment provides an atmospheric visibility prediction method integrating multiple factors, including:
[0052] Step 101: Acquire meteorological characteristic data and aerosol characteristic data at a target meteorological observation site; the meteorological characteristic data include wind speed, temperature, humidity, air pressure and planetary boundary layer height; the aerosol characteristic data include aerosol mass concentration data and aerosol hygroscopicity parameter data.
[0053] Step 102: input the meteorological characteristic data and aerosol characteristic data in the target meteorological observation site into the trained atmospheric visibility prediction model to obtain the visibility prediction data at the location of the target meteorological observation site; the trained atmospheric visibility prediction model is a model obtained by label training with sample characteristic data as input and the visibility measured value corresponding to the sample characteristic data as label; the sample characteristic data includes the meteorological characteristic data and aerosol characteristic data in the sample meteorological observation site.
[0054] Among them, the meteorological characteristic data in the target meteorological observation station mainly include the daily meteorological characteristic data such as wind direction, wind speed, temperature, humidity, air pressure, planetary boundary layer height, visibility, etc. of the meteorological observation station year by year.
[0055] Specifically, the planetary boundary layer height data comes from the ERA5 reanalysis dataset.
[0056] Specifically, meteorological data and visibility data mainly come from NOAA. However, the meteorological data provided by NOAA does not include relative humidity data, which needs to be further converted through the formula. The specific formula is as follows:
[0057] .
[0058] Wherein, T is temperature, Td is dew point temperature, both in °C, and RH is relative humidity data.
[0059] Among them, the aerosol mass concentration data in the aerosol characteristic data are PM2.5 mass concentration and aerosol hygroscopicity parameter data.
[0060] Specifically, PM2.5 mass concentration comes from the Tracking Air Pollution (TAP) dataset in near real time. Since the aerosol chemical composition data provided by the TAP dataset and the boundary layer height data provided by ERA5 are grid data, and the meteorological data provided by NOAA are station data, it is necessary to filter the chemical composition and boundary layer height data of the corresponding grid points according to the longitude and latitude of the observation site to obtain a set of matching complete data. The content of each piece of data is time information, site longitude, site latitude, visibility, wind speed, temperature, humidity, air pressure, boundary layer height, PM2.5 mass concentration, and aerosol hygroscopicity parameters.
[0061] Specifically, the method for obtaining aerosol hygroscopicity parameter data includes:
[0062] The aerosol chemical composition data in the target meteorological observation site is obtained; the aerosol chemical composition data includes the mass concentration of various inorganic salt ions and the mass concentration of various organic carbon. Aerosol chemical components may include the mass concentration of sulfate, nitrate, ammonium salt, black carbon and organic carbon. For each type of inorganic salt ion, the amount of the inorganic chemical component corresponding to the inorganic salt ion is determined based on the ion pairing scheme according to the mass concentration of the inorganic salt ion.
[0063] For each type of the inorganic chemical components, the volume of the inorganic chemical components is determined according to the amount of the substance of the inorganic chemical components.
[0064] For each type of organic carbon, the volume of the organic chemical component corresponding to the organic carbon is determined according to the mass concentration of the organic carbon.
[0065] The aerosol hygroscopicity parameter data is determined according to the volume of each of the inorganic chemical components and the volume of each of the organic chemical components.
[0066] Specifically, when calculating the aerosol hygroscopicity parameters, the amount of each type of inorganic salt ion can be calculated from the measured mass concentration of the inorganic salt ions combined with the relative molecular mass of each type of ion, and then the amount of the main inorganic chemical components can be obtained according to the ion pairing scheme given by Gysel et al., and then the volume of each type of inorganic chemical component can be obtained based on the molecular weight and density of the inorganic chemical components.
[0067] Wherein, the ion pairing scheme is specifically as follows:
[0068] .
[0069] .
[0070] .
[0071] .
[0072] in, is the amount of substance of NH4NO3, for The amount of substance, is the amount of substance of NH4HSO4, for The amount of substance, for The amount of substance, is the amount of substance of (NH4)2SO4, is the amount of substance of H2SO4.
[0073] Wherein, determining the aerosol hygroscopicity parameter data according to the volume of each of the inorganic chemical components and the volume of each of the organic chemical components specifically includes:
[0074] According to the formula Determine the aerosol hygroscopicity parameter data.
[0075] in, is the volume fraction of the ith chemical component, is the hygroscopicity parameter of the i-th chemical component, Aerosol hygroscopicity parameter data.
[0076] In some implementations provided in this embodiment, before executing step 102, the method further includes training the atmospheric visibility prediction model, wherein the determination process of the trained atmospheric visibility prediction model is as follows:
[0077] A sample data set is obtained; the sample data set includes a plurality of sample feature data and a visibility measurement value corresponding to each sample feature data.
[0078] The sample data set is input into the atmospheric visibility prediction model, and each network parameter in the atmospheric visibility prediction model is adjusted based on the grid search method to obtain the optimal network parameter combination; the network parameters include the number of training iterations, the maximum depth of each decision tree, the minimum sample weight of each leaf node, the minimum loss reduction value required for leaf node splitting, the proportion of samples randomly extracted each time the model is trained, the proportion of feature columns randomly extracted each time the model is trained, the proportion of feature columns randomly extracted when the nodes of each layer of the tree are split, the strength of L1 regularization, the strength of L2 regularization and the learning rate.
[0079] According to the optimal network parameter combination, a trained atmospheric visibility prediction model is obtained.
[0080] The sample data set is obtained as follows:
[0081] In this embodiment, based on the meteorological data collected by the meteorological monitoring stations from 364 observation stations across the country between January 1, 2013 and December 31, 2019, each meteorological and aerosol variable of each year is extracted to form a new sample data set. The sample data set for each year has a total of 132,860 data (364 stations 365 days), with a time resolution of 1 day. Missing and erroneous data and precipitation days were eliminated, and seven characteristic variables, including wind speed, temperature, humidity, air pressure, PM2.5 mass concentration, aerosol hygroscopicity parameters, and boundary layer height, were selected as input variables. Visibility was used as the dependent variable. The names and meanings of the variables in the sample data are shown in Table 1.
[0082] Table 1 Sample data variable description
[0083]
[0084] Specifically, after obtaining the sample data set, it also includes:
[0085] 1) Model training.
[0086] The sample data set is divided into a training set and a test set in a ratio of 5:1. The training set has 22,143 data items and the test set has 110,717 data items. Using the xgboost package in Python, the basic model of each observation station is established based on the extreme gradient boosting algorithm, and the training set is input for training.
[0087] 2) Parameter tuning.
[0088] According to the value range of each network parameter in the atmospheric visibility prediction model, each network parameter is randomly selected to obtain multiple groups of network parameter combinations.
[0089] For each of the network parameter combinations, an atmospheric visibility prediction model is constructed, and sample characteristic data is input into the atmospheric visibility prediction model to calculate the visibility prediction value of the atmospheric visibility prediction model under the parameter combination.
[0090] For each of the visibility prediction values, the score of each group of the parameter combinations is determined according to the visibility measured value corresponding to the sample feature data in the sample data set.
[0091] The parameter combination with the highest score is selected as the optimal parameter combination.
[0092] Specifically, grid search is used to adjust parameters to reduce the generalization error of the model. The following operations are performed for each site's data loop: GridSearchCV is used to search for parameters to find the best XGBoost model parameter combination. The search parameters include n_estimators, max_depth, min_child_weight, gamma, subsample, colsample_bytree, colsample_bylevel, reg_alpha, reg_lambda, and learning_rate.
[0093] In the above parameters, n_estimators indicates the number of training iterations, that is, the number of weak learners (decision trees). max_depth indicates the maximum depth of each decision tree. It controls the complexity of the tree. min_child_weight indicates the minimum sample weight of each leaf node, which is used to control the splitting of leaf nodes. gamma indicates the minimum loss reduction required for leaf node splitting, which controls the growth of the tree. subsample indicates the proportion of samples randomly selected each time the model is trained, ranging from (0, 1]. colsample_bytree indicates the proportion of feature columns randomly selected each time the model is trained, ranging from (0, 1]. colsample_bylevel indicates the proportion of feature columns randomly selected when the nodes of each layer of the tree are split, ranging from (0, 1]. reg_alpha indicates the strength of L1 regularization, which is used to control the complexity of the model. reg_lambda indicates the strength of L2 regularization, which is used to control the complexity of the model. learning_rate indicates the learning rate, which controls the step size of each update of the model parameters.
[0094] The XGBoost regression model is trained using the best parameter combination. R is calculated for each set of parameters. 2 Score, select the parameter combination with the highest score as the optimal parameter combination of the extreme gradient boosting model, and finally obtain the optimal extreme gradient boosting model. Taking the prediction of ZHAOTONG site in 2013 as an example, the optimal parameter combination is: learning_rate=0.1,n_estimators=200,max_depth=6,min_child_weight=5,subsample=1,colsample_bytree=1,colsample_bylevel=1,gamma=0,reg_alpha=0.1,reg_lambda=0.1, and the rest of the parameters are the default values.
[0095] Among them, R 2The score is an evaluation indicator of the model, which indicates how well the model fits the data. 2 The closer the value is to 1, the better the model fit is. When training an XGBoost regression model, using the best parameter combination can improve the performance of the model. 2 To calculate the score, you need to train a model with a set of parameters, then use the model to predict the data and calculate the sum of squared errors between the predicted values and the actual values. Finally, subtract half of the ratio of the sum of squared errors to the total sum of squares to get R. 2 Fraction.
[0096] 3) Output visibility prediction data.
[0097] Each observation site has its own optimal model, which is used to predict the training data. According to the prediction time and location requirements, the multi-feature factor data is input into the trained optimal XGBoost model to obtain the visibility prediction data based on the model and save the results.
[0098] In some embodiments provided in this embodiment, it also includes:
[0099] The predicted values output by the atmospheric visibility prediction model are compared with the actual observed values, and the accuracy of the visibility prediction is evaluated based on the prediction performance indicators.
[0100] Taking the 2013 forecast as an example, the daily forecast results and actual observation results of the national stations are compared. Figure 3 Calculate model performance indicators to quantify the accuracy of the model, such as R 2 Score, slope, root mean square error (RMSE), mean absolute error (MAE) and mean relative error (MRE), etc. In this case, the prediction performance indicator R 2 The national distribution of Figure 4 As shown, it shows that the predicted results and the observed results are highly correlated, indicating that the predicted results are trustworthy.
[0101] Embodiment 2
[0102] This embodiment also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned atmospheric visibility prediction method.
[0103] See also Figure 5 , Figure 5 Schematic diagram of the structure of a computer device provided by this application. Figure 5As shown, the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Figure 5 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0104] exist Figure 5 In the computer device 1000 shown, the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to implement the atmospheric visibility prediction method described in the above embodiment, which will not be repeated here.
[0105] Embodiment 3
[0106] This embodiment also provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded by a processor and executing the atmospheric visibility prediction method described in the above embodiment, which will not be described in detail here.
[0107] The above program can be deployed on a computer device for execution, or deployed on multiple computer devices located in one location for execution, or, executed on multiple computer devices distributed in multiple locations and interconnected through a communication network. Multiple computer devices distributed in multiple locations and interconnected through a communication network can form a blockchain network.
[0108] The computer-readable storage medium may be an internal storage unit of the computer device, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the computer-readable storage medium may include both an internal storage unit and an external storage device of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0109] In summary, the present invention has the following technical effects:
[0110] 1) The present invention integrates multiple characteristic factors, including meteorological characteristic data and aerosol characteristic data, and establishes an atmospheric visibility prediction model for the observation site through the extreme gradient boosting algorithm in ensemble learning. Based on the trained model, the present invention can predict atmospheric visibility more accurately.
[0111] 2) Based on the advantages of XGBoost's high prediction accuracy, fast calculation speed, and strong nonlinear prediction ability, the present invention can establish different prediction models at different observation sites at the same time, realizing the refined prediction of visibility, which has certain guiding significance for carrying out early warning and forecast of low visibility in the atmosphere.
[0112] 3) The present invention utilizes historical meteorological observation data (sample meteorological characteristic data) of meteorological stations and aerosol data sets (sample aerosol characteristic data) for training, and the operation is simple and convenient.
[0113] 4) The present invention can realize the atmospheric visibility prediction based on multiple factors at a larger prediction time and space scale, realize the long-term and large-scale prediction of atmospheric visibility, and is committed to combining meteorological and aerosol characteristic factors for visibility simulation, which is expected to realize the accurate prediction of atmospheric visibility in complex pollution areas.
[0114] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0115] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for predicting atmospheric visibility that integrates multiple factors. It is characterized in that include: Acquiring meteorological characteristic data and aerosol characteristic data at a target meteorological observation site; the meteorological characteristic data include wind speed, temperature, humidity, air pressure and planetary boundary layer height; the aerosol characteristic data include aerosol mass concentration data and aerosol hygroscopicity parameter data; The meteorological characteristic data and aerosol characteristic data at the target meteorological observation site are input into a trained atmospheric visibility prediction model to obtain visibility prediction data at the location of the target meteorological observation site; the trained atmospheric visibility prediction model is a model obtained by label training using sample characteristic data as input and visibility measured values corresponding to the sample characteristic data as labels; the sample characteristic data includes meteorological characteristic data and aerosol characteristic data at a sample meteorological observation site; The determination process of the trained atmospheric visibility prediction model is as follows: Acquire a sample data set; the sample data set includes a plurality of sample feature data and a visibility measured value corresponding to each sample feature data; The sample data set is input into the atmospheric visibility prediction model, and each network parameter in the atmospheric visibility prediction model is adjusted based on a grid search method to obtain an optimal network parameter combination; the network parameters include the number of training iterations, the maximum depth of each decision tree, the minimum sample weight of each leaf node, the minimum loss reduction value required for leaf node splitting, the proportion of samples randomly extracted each time the model is trained, the proportion of feature columns randomly extracted each time the model is trained, the proportion of feature columns randomly extracted when the nodes of each layer of the tree are split, the strength of L1 regularization, the strength of L2 regularization, and the learning rate; According to the optimal network parameter combination, a trained atmospheric visibility prediction model is obtained; The method for obtaining aerosol hygroscopicity parameter data specifically comprises: Acquiring aerosol chemical composition data; the aerosol chemical composition data includes mass concentrations of various inorganic salt ions and mass concentrations of various organic carbons; wherein the aerosol chemical components and boundary layer height data of corresponding grid points are screened according to the latitude and longitude of the target meteorological observation point; For each type of the inorganic salt ions, according to the mass concentration of the inorganic salt ions, the amount of the substance of the inorganic chemical component corresponding to the inorganic salt ions is determined based on an ion pairing scheme; For each type of the inorganic chemical components, determining the volume of the inorganic chemical components according to the amount of the substance of the inorganic chemical components; For each type of organic carbon, determine the volume of the organic chemical component corresponding to the organic carbon according to the mass concentration of the organic carbon; Determining the aerosol hygroscopicity parameter data according to the volume of each of the inorganic chemical components and the volume of each of the organic chemical components includes: According to the formula κ chem =Σ i ε i κ i Determining the aerosol hygroscopicity parameter data; Among them, ε i is the volume fraction of the i-th chemical component, κ i is the hygroscopicity parameter of the i-th chemical component, κ chem It is the aerosol hygroscopicity parameter data; The sample data set is input into the atmospheric visibility prediction model, and each network parameter in the atmospheric visibility prediction model is adjusted based on the grid search method to obtain the optimal network parameter combination, specifically including: According to the value range of each network parameter in the atmospheric visibility prediction model, each network parameter is randomly selected to obtain multiple groups of network parameter combinations; For each of the network parameter combinations, an atmospheric visibility prediction model is constructed, and the sample characteristic data is input into the atmospheric visibility prediction model, and the visibility prediction value of the atmospheric visibility prediction model under the network parameter combination is calculated; For each of the visibility prediction values, determining a score for each group of the network parameter combinations according to the visibility measured values corresponding to the sample feature data in the sample data set; The network parameter combination with the highest score is selected as the optimal network parameter combination.
2. The atmospheric visibility prediction method integrating multiple factors according to claim 1, It is characterized in that The atmospheric visibility prediction model is an extreme gradient boosting model constructed based on an extreme gradient boosting algorithm.
3. The atmospheric visibility prediction method integrating multiple factors according to claim 1, It is characterized in that The ion pairing scheme is specifically as follows: in, For NH 4 NO 3 The amount of substance, for The amount of substance, For NH 4 HSO 4 The amount of substance, for The amount of substance, for The amount of substance, for (NH 4 ) 2 SO 4 The amount of substance, H 2 SO 4 The amount of substance.
4. The atmospheric visibility prediction method integrating multiple factors according to claim 1, It is characterized in that The aerosol mass concentration data is PM2.5 mass concentration.
5. A computer device, It is characterized in that It comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the atmospheric visibility prediction method according to any one of claims 1 to 4.
6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the atmospheric visibility prediction method according to any one of claims 1 to 4.
