A method for rapid prediction of urban temperature by fusing weather simulation and neural network

By integrating meteorological simulation and neural network methods, and using WRF models and TFT networks to optimize parameters, the problem of high computational resource consumption and long time consumption in urban temperature distribution was solved, enabling fast and accurate temperature prediction and supporting the formulation of urban environmental strategies.

CN117829368BActive Publication Date: 2026-11-27SOUTHEAST UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410014455.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-04
Publication Date
2026-11-27
Estimated Expiration
2044-01-04

AI Technical Summary

Technical Problem

Existing technologies consume large amounts of computational resources, take long time to compute, and have low data accuracy when acquiring temperature distribution in urban areas, making them difficult to use for urban regulation and the formulation of thermal environment mitigation strategies.

Method used

We employ a method that integrates meteorological simulation and neural networks. We optimize model parameters by combining a WRF model and a temporal transform fusion neural network (TFT) with an adaptive differential evolution algorithm. We construct a three-layer nested grid for high-precision meteorological data simulation, and use random forest interpolation to supplement missing data. We also combine a multi-element attention mechanism for temperature prediction.

Benefits of technology

It enables rapid and accurate prediction of temperature distribution in urban areas, saves computing resources, improves prediction accuracy, and supports the formulation of measures for sustainable urban climate and environmental development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117829368B_ABST
    Figure CN117829368B_ABST
Patent Text Reader

Abstract

The application discloses a kind of city temperature fast prediction methods of fusing meteorological simulation and neural network, comprising the following steps: first, obtain the historical monitoring data of each monitoring station of target city of city by meteorological website;Three-layer nested WRF prediction model grid is constructed;Different global reanalysis data are obtained;Reanalysis data is used for WRF simulation;Meteorological data obtained by WRF simulation is extracted, and according to data characteristics, the basic database for time series transformation fusion neural network is constructed;Further, the model parameter optimization is carried out using the obtained local monitoring station data combined with adaptive differential evolution algorithm;The meteorological dynamics database based on WRF model is used to predict the temperature of urban area.The application solves the problems of large calculation resource consumption, long calculation time and low data precision when obtaining the temperature of urban area, and aims to provide scientific support for future urban climate and environmental sustainable development measures and the formulation of carbon emission policy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of urban area temperature distribution prediction technology, specifically to a rapid urban temperature prediction method that integrates meteorological simulation and neural networks. Background Technology

[0002] The distribution of urban temperature can visually demonstrate the impact of the urban heat island effect. Understanding the urban thermal environment distribution mechanism through urban temperature distribution data allows for the development of corresponding thermal environment mitigation strategies, which is a prerequisite for effectively formulating urban heat island mitigation measures. Currently, urban temperature distribution is mainly obtained through monitoring and simulation. Monitoring data cannot reflect the global thermal environment of an urban area and is difficult to use for urban regulation. Simulation methods can obtain urban temperature distribution data, but they are too time-consuming and consume a large amount of computational resources. Summary of the Invention

[0003] To address the shortcomings mentioned in the background technology, the present invention aims to propose a rapid urban temperature prediction method that integrates meteorological simulation and neural networks. By combining the breadth of the meteorological prediction model with the speed of the neural network through time-series transformation, it achieves rapid prediction of urban temperature distribution. This solves the problems of high computational resource consumption, long computation time, and low data accuracy when obtaining urban temperature data, and aims to provide scientific support for the formulation of future urban climate and environmental sustainable development measures and carbon emission policies.

[0004] This invention is achieved through the following technical solution: a method for rapid urban temperature prediction that integrates meteorological simulation and neural networks, comprising the following steps:

[0005] Step 1: First, obtain historical monitoring data from various monitoring stations in the target city through meteorological websites, including meteorological data such as temperature, humidity, wind speed, and air pressure. Since the monitoring data may be incomplete and difficult to use in the subsequent time-series transformation fusion neural network model optimization, the missing values ​​of the monitoring data will be supplemented by random forest interpolation to construct complete and continuous meteorological monitoring data.

[0006] Step 2: Construct a three-layer nested WRF prediction model grid. The outermost coarse grid covers the province where the simulated urban area is located. The middle grid covers the city where the simulated area is located. The innermost grid covers the city area where the simulated area is located. The three-layer nested grid ensures a sufficiently wide simulation domain, guaranteeing the accuracy of the meteorological simulation, while also enabling the acquisition of high-resolution meteorological data.

[0007] Step 3: Next, acquire different global reanalysis data, including ERA5, FNL, MERRA2, and GEOS-FP data. Simulate the accuracy of the reanalysis data using a single-layer 5km*5km WRF model, and extract meteorological data from monitoring stations to validate the WRF simulation results. Use RMSE (Real-Time Sequence of Analysis) to determine the optimal reanalysis data for the target city. Then, use the optimal reanalysis data for the next WRF simulation to obtain long-term, city-wide simulation results.

[0008] Step 4: Use the reanalysis data for WRF simulation. Perform hourly simulations of the meteorological data from the previous ten years for the current date to obtain hourly meteorological data for the urban area from the previous ten years.

[0009] Step 5: Extract meteorological data obtained from WRF simulation, including temperature, humidity, wind speed, and air pressure. Based on the data characteristics, construct a foundational database for time-series transformation fusion neural networks.

[0010] Step Six: Before using the time-series transformation fusion neural network for prediction, in order to further improve the prediction accuracy of the time-series transformation fusion neural network and make its prediction model settings more closely match the meteorological prediction results of the target city, the model parameters will be further optimized by combining the acquired local monitoring station data with the adaptive differential evolution algorithm to make the prediction results more accurate.

[0011] Step 7: Once the prediction parameters of the time-series transformation fusion neural network are adjusted, temperature prediction for the urban area is performed using a meteorological dynamics database built based on the WRF model. The main prediction parameter is temperature, and auxiliary prediction parameters include humidity, air pressure, and wind speed. The accuracy of the prediction results is evaluated using model evaluation metrics such as RMSE, MAE, and Cor.

[0012] Step 8: After validating the model data using evaluation metrics, the trained WRF-TFT model can be used to predict urban area temperatures, up to 30 years from now.

[0013] Further, in step one, the random forest interpolation method is used to supplement data integrity, specifically including: Let the temperature values ​​X = (X1, X2, ..., Xp) be an n×p dimensional data matrix. First, the average estimation method is used to initially estimate the missing values ​​in X. Then, starting from the variable with the fewest missing values, the variables Xs, s = 1, ..., p, are sorted. For each variable Xs, the response variable is first used... and predictors Fit a random forest model, and then use the trained random forest model to handle missing values. Make a prediction and obtain the predicted value. This estimation process is repeated until all missing values ​​are filled in.

[0014] Furthermore, in step three, time-period verification simulations are performed on different analytical data, the simulation results corresponding to the monitoring station locations are extracted, and the simulated temperature, humidity, air pressure, and wind speed results are compared with the monitoring data for verification using RMSE. The RMSE verification equation is shown below:

[0015]

[0016] Where i represents the number of regions; m is the total number of regions; O is the meteorological data obtained from WRF simulation of the reanalysis data; and M is the meteorological data from the meteorological monitoring station. and These are the average values ​​of meteorological data from WRF and meteorological monitoring stations, respectively.

[0017] Furthermore, in step six, the acquired local monitoring station data is used in conjunction with an adaptive differential evolution algorithm to optimize the numerical model parameters of the temporal transformation fusion neural network, including the number of time steps, batch size, learning rate, number of hidden layers, number of attention heads, and number of hidden layer neurons, thereby making the prediction results more accurate. The formula for the adaptive differential evolution algorithm is shown below:

[0018]

[0019]

[0020]

[0021]

[0022] Where L is the population size and N is the genetic dimension. The range of gene values ​​is given by: U = maximum iteration count, O = mutation operator (range 0-1), CR = crossover probability (range 0-1), and h = current iteration count. Individuals are selected randomly.

[0023] The required optimization parameters are input into the ADE algorithm, which uses a differential evolution strategy to obtain the optimal parameters that satisfy the minimum loss threshold, and these parameters are used to configure the TFT model. The TFT model configured with the optimal parameters is evaluated on an independent test set to ensure good performance on unseen data. The fitness of each individual, i.e., the value of the objective function, is calculated by running the TFT model and evaluating its performance on monitoring station data. This yields the optimal parameters for the time-series transform fusion neural network model.

[0024] Further, in step seven, after determining the optimal parameters of the TFT model, it is combined with a meteorological database constructed using the WRF model. The TFT model is then trained and validated using the meteorological database. The TFT model generates a prediction interval based on the WRF temperature prediction input. Simultaneously, by performing a linear transformation on the output of the spatiotemporal fusion decoder and combining a multi-element attention mechanism to comprehensively consider the influence of humidity, wind speed, and air pressure on temperature, estimated values ​​for the upper and lower temperature limits are obtained. Finally, training is performed by jointly minimizing the quantization loss to find the optimal prediction, thereby ensuring that the predicted percentiles are as close as possible to the actual observed values. Finally, all percentile prediction results are merged to obtain the final temperature prediction result. The main calculation formulas are as follows:

[0025]

[0026]

[0027] Where Ω is the training data domain containing M samples. Here, W is the output size set, W is the weight of the time-varying fusion neural network model, and (.)+ is the maximum value (0, x) (if x>0, the result is x, otherwise the result is zero; this is used to ensure prediction error). (The non-negativity of the predicted value and the non-negativity of the difference between the predicted and actual values).

[0028] To evaluate the performance of the WRF-TFT prediction model, mean absolute error (MAE), root mean square error (RMSE), and Pearson correlation coefficient (Cor) were used. The formulas for calculating MAE and Cor are as follows:

[0029]

[0030]

[0031] Where i represents the number of regions; m is the total number of regions; O is the WRF simulated temperature; and M is the predicted temperature of the prediction model. and The average temperatures are those simulated by WRF and WRF-TFT, respectively.

[0032] The beneficial effects of this invention are:

[0033] 1. The meteorological simulation and neural network model code used in this invention are both open source, and different solution methods can be customized according to different urban environments to make the calculation results closer to the actual temperature of urban areas.

[0034] 2. The prediction method of the WRF-TFT hybrid model adopted in this invention can effectively reduce the prediction time of regional temperature and save computing resources.

[0035] 3. The WRF-TFT hybrid model used in this invention considers multiple environmental factors (humidity, air pressure, wind speed) for urban area temperature prediction, and comprehensively considers the influence between different factors, which greatly improves the accuracy of prediction.

[0036] 4. The prediction results of this study are for urban areas, not for single points. They can be used to guide urban design and planning, and can also reflect the temperature change trend of urban areas, which is helpful for the formulation of urban risk early warning and control policies. Attached Figure Description

[0037] Figure 1 This is a map showing the research area, WRF multi-layer nested model settings, and meteorological monitoring station distribution in this embodiment of the invention.

[0038] Figure 2 This is a verification diagram of supplementary monitoring data using the random forest interpolation method in an embodiment of the present invention;

[0039] Figure 3 This is a WRF simulation result diagram using ERA5 data from an embodiment of the present invention;

[0040] Figure 4 This is a verification diagram of WRF simulation results and meteorological station data from an embodiment of the present invention;

[0041] Figure 5 These are verification graphs of RMSE, MAE, and Cor from the WRF-TFT simulation results of this invention embodiment;

[0042] Figure 6 This is a thermal map of the WRF-TFT model used in this invention to predict future regional temperature values.

[0043] Figure 7 It is a flowchart of the overall steps of the invention calculation process. Detailed Implementation

[0044] The present invention will be further described below with reference to specific embodiments and accompanying drawings:

[0045] like Figure 1-7 As shown, a method for rapid urban temperature prediction that integrates meteorological simulation and neural networks includes the following steps:

[0046] 1. The implementation scope of this example scheme covers four areas in Guangzhou City, Guangdong Province: Liwan District, Haizhu District, Tianhe District, and Yuexiu District. First, monitoring data from urban meteorological monitoring stations were acquired, specifically for the following stations: Liwan District (113°14′27.301″E, 23°8′19.2083″N), Haizhu District (113°16′2.046″E, 23°6′8.3952″N), Tianhe District (113°18′48.7116″E, 23°8′45.8772″N), and Yuexiu District (113°16′54.4008″E, 23°9′3.5604″N). Considering the possibility of missing meteorological parameters, a random forest interpolation method was used to supplement the data to ensure completeness. Let the temperature values ​​X = (X1, X2, ..., Xp) be an n×p dimensional data matrix. First, the missing values ​​in X are initially estimated using the average estimation method. Then, starting with the variable with the fewest missing values, the variables Xs, s = 1, ..., p, are sorted. For each variable Xs, the response variable is first used... and predictors Fit a random forest model, and then use the trained random forest model to handle missing values. Make a prediction and obtain the predicted value. This estimation process is repeated until all missing values ​​are filled in.

[0047] 2. Different in-process analysis data were acquired for the study area. The ERA5 data had a spatiotemporal resolution of 0.25°×0.25° and an interval of 1 hour. The MERRA2 data had a spatiotemporal resolution of 0.5°×0.625° and an interval of 1 hour. The GEOS-FP data had a temporal resolution of 0.3125°×0.25° and an interval of 3 hours. The FNL data had a resolution of 1°×1° and an interval of 6 hours. A three-layer nested WRF grid was set up. The outermost coarse grid, D03, was 12.5km*12.5km, covering the province where the simulated city area was located. The middle grid, D02, was 2.5km*2.5km, covering the city where the simulated area was located. The inner grid, D01, was 0.5*0.5km, covering the city area where the simulated area was located. Simulations were then performed on different analysis data over different time periods. Simulation results corresponding to the monitoring station locations were extracted, and the simulated temperature, humidity, air pressure, and wind speed results were compared with the monitored data and validated using RMSE (Real-Time Sequence of Analysis). The RMSE verification equation is shown below:

[0048]

[0049] Where i represents the number of regions; m is the total number of regions; O is the meteorological data obtained from WRF simulation of the reanalysis data; and M is the meteorological data from the meteorological monitoring station. and These are the average values ​​of meteorological data from WRF and meteorological monitoring stations, respectively.

[0050] 3. Optimal reanalysis data suitable for the study area was established. In this case study, the optimal reanalysis data was determined to be ERA5 data after evaluation of the four types of reanalysis data. ERA5 data from the previous ten years were obtained, and meteorological simulations were performed using a WRF model to obtain simulated meteorological data such as temperature, humidity, wind speed, and air pressure. Simultaneously, feature processing was performed on the above data based on different time-series characteristics and data types to construct a meteorological database.

[0051] 4. To further improve the prediction accuracy of the Temporal Transform Fusion Neural Network (TFT) and make its prediction model settings more closely match the meteorological forecast results of the target city, we will further utilize the acquired local monitoring station data and combine it with an adaptive differential evolution algorithm to optimize the numerical model parameters of the TFT, including the number of time steps, batch size, learning rate, number of hidden layers, number of attention heads, and hidden layer neurons, making the prediction results more accurate. The formula for the adaptive differential evolution algorithm is shown below:

[0052]

[0053]

[0054]

[0055]

[0056] Where L is the population size and N is the genetic dimension. The range of gene values ​​is given by: U = maximum iteration count, O = mutation operator (range 0-1), CR = crossover probability (range 0-1), and h = current iteration count. Individuals are selected randomly.

[0057] The required optimization parameters are input into the ADE algorithm, which uses a differential evolution strategy to obtain the optimal parameters that satisfy the minimum loss threshold, and these parameters are used to configure the TFT model. The TFT model configured with the optimal parameters is evaluated on an independent test set to ensure good performance on unseen data. The fitness of each individual, i.e., the value of the objective function, is calculated by running the TFT model and evaluating its performance on monitoring station data. This yields the optimal parameters for the time-series transform fusion neural network model.

[0058] 5. After determining the optimal parameters of the TFT model, it is combined with a meteorological database constructed using the WRF model. The TFT model is then trained and validated using this meteorological database. The TFT model generates a prediction interval based on the WRF temperature prediction input. Simultaneously, by performing a linear transformation on the output of the spatiotemporal fusion decoder and incorporating a multi-element attention mechanism to comprehensively consider the influence of humidity, wind speed, and air pressure on temperature, estimates of the upper and lower temperature limits are obtained. Finally, training is performed by jointly minimizing the quantization loss to find the optimal prediction, ensuring that the predicted percentiles are as close as possible to the actual observed values. Finally, all percentile prediction results are merged to obtain the final temperature prediction result. The main calculation formulas are as follows:

[0059]

[0060]

[0061] Where Ω is the training data domain containing M samples. Here, W is the output size set, W is the weight of the time-transformed fusion neural network model, and (.)+ is the maximum value (0, x) (if x>0, the result is x, otherwise the result is zero; this is used to ensure prediction error). (The non-negativity of the predicted value and the non-negativity of the difference between the predicted and actual values).

[0062] 6. To evaluate the performance of the WRF-TFT prediction model, mean absolute error (MAE), root mean square error (RMSE), and Pearson correlation coefficient (Cor) were used. The formulas for calculating the mean absolute error (MAE) and Pearson correlation coefficient (Cor) are as follows:

[0063]

[0064]

[0065] Where i represents the number of regions; m is the total number of regions; O is the WRF simulated temperature; and M is the predicted temperature of the prediction model. and The values ​​represent the average temperatures simulated by WRF and WRF-TFT, respectively. Furthermore, the trained model is used to predict future urban temperatures in the study area.

[0066] The above description outlines the basic principles, main features, and advantages of this invention. Those skilled in the art should understand that this invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to this invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the invention as claimed.

Claims

1. A method for rapid urban temperature prediction that integrates meteorological simulation and neural networks, characterized in that: Includes the following steps: Step 1: First, obtain historical monitoring data from various monitoring stations in the target city through meteorological websites, including meteorological data such as temperature, humidity, wind speed, and air pressure. Since the monitoring data may be incomplete and difficult to use in the subsequent time-series transformation fusion neural network model optimization, the missing values ​​of the monitoring data will be supplemented by random forest interpolation to construct complete and continuous meteorological monitoring data. Step 2: Construct a three-layer nested WRF prediction model grid. The outermost coarse grid covers the province where the simulated city area is located; the middle grid covers the city where the simulated area is located; and the inner grid covers the city area where the simulated area is located. The three-layer nested grid makes the simulation domain sufficiently wide, ensuring the accuracy of meteorological simulation, while also acquiring high-resolution meteorological data. Step 3: Next, acquire different global reanalysis data, including ERA5 data, FNL data, MERRA2 data, and GEOS-FP data; simulate the accuracy of the reanalysis data using a single-layer grid 5km*5km WRF model, and extract meteorological data from monitoring stations to verify the WRF simulation results of the above reanalysis data; use RMSE to determine the optimal reanalysis data for the target city; and use the optimal reanalysis data to conduct the next WRF simulation to obtain long-term city-wide simulation results. Step 4: Use the reanalysis data for WRF simulation, perform hourly simulations of the meteorological data from the previous ten years for the current date, and obtain hourly meteorological data for the urban area from the previous ten years. Step 5: Extract meteorological data obtained from WRF simulation, including temperature, humidity, wind speed, and air pressure; and construct a basic database for time-series transformation fusion neural networks based on data characteristics. Step Six: Before using the time-series transformation fusion neural network for prediction, in order to further improve the prediction accuracy of the time-series transformation fusion neural network and make its prediction model settings more closely match the meteorological prediction results of the target city, the model parameters will be further optimized by combining the acquired local monitoring station data with the adaptive differential evolution algorithm to make the prediction results more accurate. Step 7: Once the prediction parameters of the time-series transformation fusion neural network are adjusted, the temperature of the urban area is predicted using the meteorological dynamics database built based on the WRF model. The main prediction parameter is temperature, and the auxiliary prediction parameters are humidity, air pressure, and wind speed. The accuracy of the prediction results is evaluated using RMSE, MAE, and Cor model evaluation indicators. Step 8: After validating the model data using evaluation metrics, the trained WRF-TFT model can be used to predict urban area temperatures, up to 30 years from now.

2. The method for rapid urban temperature prediction integrating meteorological simulation and neural networks according to claim 1, characterized in that: In step one, the random forest interpolation method is used to supplement data integrity. Specifically, this includes: Let the temperature values ​​X = (X1, X2, ..., Xp) be an n×p dimensional data matrix; first, the average estimation method is used to initially estimate the missing values ​​in X; then, starting with the variable with the fewest missing values, the variables Xs, s = 1, ..., p, are sorted; for each variable Xs, the response variable is first used... and predictors Fit a random forest model, and then use the trained random forest model to handle missing values. Make a prediction and obtain the predicted value. This estimation process is repeated until all missing values ​​are filled in.

3. The method for rapid urban temperature prediction integrating meteorological simulation and neural networks according to claim 2, characterized in that: In step three, time-period verification simulations are performed on different analytical data, the simulation results corresponding to the monitoring station locations are extracted, and the simulated temperature, humidity, air pressure, and wind speed results are compared with the monitoring data for verification using RMSE. The RMSE verification equation is shown below: Where i represents the number of regions; m is the total number of regions; O is the meteorological data obtained from WRF simulation of the reanalysis data; and M is the meteorological data from the meteorological monitoring station. and These are the average values ​​of meteorological data from WRF and meteorological monitoring stations, respectively.

4. The method for rapid urban temperature prediction integrating meteorological simulation and neural networks according to claim 3, characterized in that: In step six, the acquired local monitoring station data is used in conjunction with the adaptive differential evolution algorithm to optimize the numerical model parameters of the temporal transformation fusion neural network, such as the number of time steps, batch size, learning rate, number of hidden layers, number of attention heads, and number of hidden layer neurons, so as to make the prediction results more accurate. The formula for the adaptive differential evolution algorithm is shown below: Where L is the population size and N is the genetic dimension. The range of gene values ​​is given by U, the maximum number of iterations is given by O, the mutation operator is given by CR, the crossover probability is given by h, and the current iteration number is given by h. To randomly select individuals; The required optimization parameters are input into the ADE algorithm, and the differential evolution strategy is used to obtain the optimal parameters that meet the minimum loss threshold for configuring the TFT model. The TFT model configured with the optimal parameters is evaluated on an independent test set to ensure that it performs well on unseen data. The fitness of each individual, i.e., the value of the objective function, is calculated by running the TFT model and evaluating its performance on monitoring station data. Thus, the optimal parameters of the time-series transformation fusion neural network model are obtained.

5. The method for rapid urban temperature prediction integrating meteorological simulation and neural networks according to claim 4, characterized in that: In step seven, after determining the optimal parameters of the TFT model, it is combined with a meteorological database constructed using the WRF model. The TFT model is then trained and validated using the meteorological database. The TFT model generates a prediction interval based on the WRF temperature prediction input. Simultaneously, by performing a linear transformation on the output of the spatiotemporal fusion decoder and combining a multi-element attention mechanism to comprehensively consider the influence of humidity, wind speed, and air pressure on temperature, estimated values ​​for the upper and lower temperature limits are obtained. Finally, training is performed by jointly minimizing the quantization loss to find the best prediction, thereby making the predicted percentiles as close as possible to the actual observed values. Finally, all percentile prediction results are merged to obtain the final temperature prediction result. The main calculation formulas are as follows: Where Ω is the training data domain containing M samples. is the output size set, W is the weight of the time-transformed fusion neural network model, and (.)+ is the maximum value (0, x); To evaluate the performance of the WRF-TFT prediction model, mean absolute error, root mean square error, and Pearson correlation coefficient were used; the formulas for calculating mean absolute error and Pearson correlation coefficient are as follows: Where i represents the number of regions; m is the total number of regions; O is the WRF simulated temperature; and M is the predicted temperature of the prediction model. and The average temperatures are those simulated by WRF and WRF-TFT, respectively.

Citation Information

Patent Citations

  • Wind resource prediction method based on WRF and CNN convolutional neural network

    CN112100922A

  • Mountain area air temperature refined forecasting method combining power and statistical downscaling

    CN116068672A