CN112684519B - Weather forecasting method and device, computer equipment and storage medium - Google Patents

Weather forecasting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112684519B
CN112684519B CN202011615078.6A CN202011615078A CN112684519B CN 112684519 B CN112684519 B CN 112684519B CN 202011615078 A CN202011615078 A CN 202011615078A CN 112684519 B CN112684519 B CN 112684519B
Authority
CN
China
Prior art keywords
latitude
longitude
predicted
data
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011615078.6A
Other languages
Chinese (zh)
Other versions
CN112684519A (en
Inventor
邵可佳
王怡
黄耀海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Moji Fengyun Technology Co ltd
Original Assignee
Beijing Moji Fengyun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Moji Fengyun Technology Co ltd filed Critical Beijing Moji Fengyun Technology Co ltd
Priority to CN202011615078.6A priority Critical patent/CN112684519B/en
Publication of CN112684519A publication Critical patent/CN112684519A/en
Application granted granted Critical
Publication of CN112684519B publication Critical patent/CN112684519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Abstract

The invention discloses a weather forecasting method, a weather forecasting device, computer equipment and a storage medium, belonging to the technical field of weather forecasting, wherein the method comprises the steps of receiving the forecasting time and the forecasting longitude and latitude input by a user, and calculating earth-day relationship information and earth-month related information according to the forecasting time and the forecasting longitude and latitude; searching corresponding topographic features according to the predicted longitude and latitude; sampling data according to the data distribution to be used as a training data set of the model; introducing the land-day relationship information, the land-month related information and the landform and landform characteristics into a weather forecast model as characteristic variables; carrying out model hyper-parameter search on the characteristic variables by using a parameter search tool to obtain optimal hyper-parameters; performing model training according to the optimal hyper-parameter and the training data set to obtain a prediction model; receiving real-time weather forecast information as prediction data; and using the prediction model and the prediction data to predict weather forecast.

Description

Weather forecasting method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of weather prediction, and in particular, to a method and an apparatus for weather prediction, a computer device, and a storage medium.
Background
The meteorological model correction refers to a process of correcting the existing medium-long term weather forecast data by mining the modes and rules in the historical observation data.
The current meteorological model correction method mainly comprises two methods:
1) correction using ANO method
ANO (historical data based model leveling integral correction) corrects meteorological data by taking into account the characteristics of atmospheric physical motion and using numerical methods to approximate solutions. The method comprehensively considers the internal power and process constraint of atmospheric motion, the forcing action of external sources such as surface (sea surface) power, thermal process, solar radiation and the like, and partially eliminates the mode system error by utilizing historical observation data and the idea of weather disturbance distance integral, so that the forecast field is closer to reality.
2) Correction using MOS method
Mos (model Output statistics) is widely used as an offline statistical correction method (Glahn and Lowry,1972), and the principle is to directly use the quality evaluation of a historical numerical forecast product to establish a statistical forecast relationship with the local weather element actual measurement values at the same time, and further use a real-time numerical forecast product and the statistical relationship to make local weather forecast. The error correction statistical model is a mode output statistical method, which is called MOS method for short. In the MOS method, the correctness of data needs to be confirmed, the forecasting factors and the number need to be adjusted, and the statistical forecasting equation is continuously checked and improved to improve the forecasting quality.
The first mode correction method is low in accuracy rate depending on massive data analysis and manual experience, and a formula generated by a mode needs to be corrected regularly;
the second machine learning method needs a large amount of historical data support, so that the demand of the model on computing resources is huge;
due to the constraint conditions, the correction of the high-resolution meteorological data at the grid level cannot be completed quickly and efficiently.
Disclosure of Invention
The embodiment of the invention provides a weather forecasting method, a weather forecasting device, computer equipment and a storage medium. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
According to an embodiment of the present invention, there is provided a weather forecast method including:
receiving the predicted time input by a user and the corresponding predicted longitude and latitude;
respectively calculating earth-day relationship information and earth-month related information according to the predicted time and the predicted longitude and latitude, and searching corresponding topographic features according to the predicted longitude and latitude;
performing data sampling on historical contemporaneous data according to data distribution to serve as a training data set;
taking the land-day relationship information, the land-month related information and the landform and landform characteristics as characteristic variables, and performing model hyper-parameter search on the characteristic variables by using a parameter search tool to obtain optimal hyper-parameters;
performing model training according to the optimal hyper-parameter and the training data set to obtain a prediction model;
receiving real-time weather forecast information as prediction data;
and predicting weather forecast by using the prediction model and the prediction data, and outputting the obtained weather forecast.
Further, the air conditioner is provided with a fan,
the calculating the earth-day relationship information according to the predicted time and the predicted longitude and latitude comprises calculating a solar azimuth angle, an earth-day distance and solar irradiance according to the predicted time and the predicted longitude and latitude respectively.
Further, the air conditioner is characterized in that,
and the step of calculating the earth-moon related information according to the predicted time and the predicted longitude and latitude comprises calculating a moon azimuth angle and calculating an earth-moon distance.
Further, the air conditioner is provided with a fan,
searching for corresponding topographic features according to the predicted longitude and latitude, wherein the steps of searching for the altitude of a preset grid point and the altitude of the preset grid point according to the current point peripheral distance of the longitude and latitude to obtain the topographic features are included; according to the topographic features, carrying out binarization to generate the negative/positive features of the current point; converting the topographic features into geomorphic features according to the national land classification.
Further, the peripheral distance ranges from 0.1 ° or 0.01 °.
And the step of inquiring the altitude of the preset grid point at the peripheral distance of the current point where the longitude and the latitude are located according to the longitude and the latitude comprises the step of inquiring the altitudes of 4 and 12 grid points at the periphery.
Further, the weather forecasting method is characterized in that,
the generating of the yin/yang characteristics of the current point comprises: judging the characteristics of the yin surface/the yang surface by inquiring the altitude of 4 grid points on the periphery, Af1<Af4Being the yin side, Af1>Af4Is a sunny side; by querying 12 grid points around the perimeterThe elevation of (A) determines the yin/yang characteristicst3<At10Being the yin side, At3>At10Is a sunny side;
wherein the content of the first and second substances,
Af1: in the method for inquiring the altitudes of 4 surrounding grid points, the altitudes of the point positions right above the current longitude and latitude;
Af4: in the method for inquiring the altitudes of 4 surrounding grid points, the altitudes of the point positions right below the current longitude and latitude;
At3: in the method for inquiring the altitude of 12 surrounding grid points, the altitude of a point position right above the current longitude and latitude is inquired;
At10: in the method for inquiring the altitude of 12 surrounding grid points, the altitude of the point position right below the current longitude and latitude is obtained.
Further, the air conditioner is provided with a fan,
the data sampling of the historical contemporaneous data according to the data distribution comprises the following steps: and selecting 1-3 months of historical contemporaneous forecast data as a training data set of the model by using a rejection sampling method for the data which obey normal distribution according to a proportion.
Furthermore, a parameter searching tool adopted by the model hyper-parameter searching is a tree-structure Parzen estimation method. Further, the model training method is to train the model by using a limit gradient lifting tree framework.
According to a second aspect of the present invention, there is provided a weather forecasting apparatus comprising,
the first receiving module is used for receiving the predicted time input by the user and the corresponding predicted longitude and latitude;
the historical data processing module is connected with the first receiving module and used for respectively calculating earth-day relationship information and earth-month related information according to the predicted time and the predicted longitude and latitude and searching corresponding topographic features according to the predicted longitude and latitude;
the sampling module is used for sampling data of historical contemporaneous data according to data distribution to serve as a training data set;
the super-parameter searching module is connected with the historical data processing module and is used for performing model super-parameter searching on the characteristic variables by using a parameter searching tool by taking the land-day relationship information, the land-month related information and the topographic features as characteristic variables to obtain optimal super-parameters;
the model training module is respectively connected with the sampling module and the hyper-parameter searching module and is used for carrying out model training according to the optimal hyper-parameter and the training data set to obtain a prediction model;
the second receiving module is used for receiving the real-time weather forecast message as prediction data;
and the prediction module is respectively connected with the model training module and the second receiving module and is used for predicting weather forecast by using the prediction model and the prediction data and outputting the obtained weather forecast.
According to a third aspect of the invention, there is provided a computer apparatus comprising: a processor and a memory, and a computer program stored in the memory and executable in the processor, the processor executing the program to implement the steps of the method as claimed in any one of the above.
According to a fourth aspect of the present invention, there is provided a computer readable storage medium comprising a computer program stored therein, the program being for implementing a method as claimed in any one of the preceding claims.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
according to the embodiment, the invention provides a weather forecasting method, which is characterized in that the geographical and daily relationship information and the geographical and monthly related information are calculated according to the predicted time and the predicted longitude and latitude, the topographic and geomorphic information corresponding to the predicted longitude and latitude is searched and input into a machine learning model for training, and the restriction of the model on the requirement of a large amount of historical data is relieved. Even if a small amount of historical data is used for training, the accuracy of the traditional machine learning model can be achieved or even exceeded. The new method combines the space and geophysical information with the machine learning model for the first time, so that the time and the cost of model training are greatly reduced, and a new thought and solution are developed for mode prediction.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of weather forecasting according to an exemplary embodiment;
FIG. 2 is a diagram illustrating a method of selecting four grid points on the perimeter, according to an exemplary embodiment;
FIG. 3 is a diagram illustrating a method for selecting twelve grid points on the periphery according to an exemplary embodiment
FIG. 4 is a flow diagram illustrating a method of model training in accordance with an exemplary embodiment;
FIG. 5 is a graphical illustration of a comparison of accuracy within 2 degrees of model training in three ways in accordance with an exemplary embodiment;
FIG. 6 is a diagram illustrating the impact of a physical environment on accuracy gain in accordance with an exemplary embodiment;
FIG. 7 is a graph illustrating a year 2020, month 8 temperature accuracy, according to an exemplary embodiment;
FIG. 8 is a graph illustrating a temperature accuracy of 9 months in 2020, according to an exemplary embodiment;
FIG. 9 is a graph showing a temperature accuracy of 10 months in 2020, according to an example embodiment;
fig. 10 is a graph illustrating the 11-month-2019 temperature accuracy, according to an exemplary embodiment.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of embodiments of the invention encompasses the full ambit of the claims, as well as all available equivalents of the claims. Embodiments may be referred to herein, individually or collectively, by the term "invention" merely for convenience and without intending to voluntarily limit the scope of this application to any single invention or inventive concept if more than one is in fact disclosed. Herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed. The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the structures, products and the like disclosed by the embodiments, the description is relatively simple because the structures, the products and the like correspond to the parts disclosed by the embodiments, and the relevant parts can be just described by referring to the method part.
It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken into multiple step executions, etc.
The invention is further described with reference to the following figures and examples:
in a first aspect of the present invention, a weather forecasting method as shown in fig. 1 includes:
s1: receiving the predicted time input by a user and the corresponding predicted longitude and latitude;
s2: respectively calculating earth-day relationship information and earth-month related information according to the predicted time and the predicted longitude and latitude, and searching corresponding topographic features according to the predicted longitude and latitude;
s3: performing data sampling on historical contemporaneous data according to data distribution to serve as a training data set;
s4: taking the land-day relationship information, the land-month related information and the topographic features as characteristic variables, and performing model hyper-parameter search on the characteristic variables by using a parameter search tool to obtain optimal hyper-parameters;
s5: performing model training according to the optimal hyper-parameters and the training data set to obtain a prediction model;
s6: receiving real-time weather forecast information as prediction data;
s7: and using the prediction model and the prediction data to predict weather forecast and outputting the obtained weather forecast.
According to the scheme, further, the calculating of the earth-day relationship information according to the predicted time and the predicted longitude and latitude comprises the steps of calculating a solar azimuth angle, calculating an earth-day distance and calculating solar irradiance;
the calculated solar azimuth angle is the sun azimuth angle,
Figure BDA0002876363990000061
wherein the content of the first and second substances,
φs: the solar azimuth angle;
θs: solar altitude;
h: calculating a time angle of time;
δ: declination of the sun;
phi: a geographic latitude;
the calculated distance between the earth and the day is,
D=(1-0.01672cos(0.9856(day-4)))×AU
wherein the content of the first and second substances,
d: the distance between the ground and the day;
day: the date to be calculated;
AU: 1 astronomical unit equal to the distance between the near-diurnal points of the earth;
the calculated solar irradiance is such that,
ID=SR×(R/D)2
wherein the content of the first and second substances,
ID: solar irradiance;
SR: solar surface radiation;
r: the radius of the sun;
d: distance between ground and day.
According to the above scheme, further, the calculating of the earth-moon related information according to the predicted time and the latitude and longitude includes calculating a moon azimuth angle and calculating an earth-moon distance.
According to the scheme, further, the step of acquiring the topographic and geomorphic characteristics according to the predicted longitude and latitude comprises the step of inquiring and calculating the peripheral distance and the self elevation according to the longitude and latitude so as to obtain the topographic characteristics; according to the topographic features, carrying out binarization to obtain the negative/positive features of the current point; as shown in table 1, the topographic features are converted into topographic features according to the national land classification.
TABLE 1 conversion of topographic features into geomorphic features according to national land classifications
Figure BDA0002876363990000062
Figure BDA0002876363990000071
According to the above aspect, further, the peripheral distance range may be equal to or greater than 0.01 ° and equal to or less than 0.1 °. In the present invention, the angle may be 0.1 ° or 0.01 °.
According to the above solution, further, as shown in fig. 2 and fig. 3, said calculating the peripheral distance and the altitude thereof according to the latitude and longitude query includes querying the altitudes of 4 and 12 grid points around the periphery.
According to the above scheme, further, the method for obtaining the yin/yang characteristics of the current point comprises the following steps: judging the characteristics of the yin surface/the yang surface by inquiring the altitude of 4 grid points on the periphery, wherein Af1< Af4 is the yin surface, and Af1> Af4 is the yang surface; judging the characteristics of the yin surface/the yang surface by inquiring the altitude of 12 grid points on the periphery, wherein At3< At10 is the yin surface, and At3> At10 is the yang surface;
wherein the content of the first and second substances,
af 1: in the method for inquiring the altitudes of 4 surrounding grid points, the altitudes of the point positions right above the current longitude and latitude;
af 4: in the method for inquiring the altitudes of 4 surrounding grid points, the altitudes of the point positions right below the current longitude and latitude;
at 3: in the method for inquiring the altitude of 12 surrounding grid points, the altitude of a point position right above the current longitude and latitude is inquired;
at 10: in the method for inquiring the altitude of 12 surrounding grid points, the altitude of the point position right below the current longitude and latitude is obtained.
According to the above solution, further, the method for sampling data according to data distribution includes: assuming that the data are proportional to the normal distribution, selecting 1-3 months of contemporaneous historical forecast data by using a rejection sampling method to serve as a training data set of the model.
The principle and process of the rejection sampling method are as follows:
TABLE 2 rejection sampling principle and procedure
Figure BDA0002876363990000081
According to the scheme, further, a parameter searching tool adopted by the model hyper-parameter searching is a tree-structure Parzen estimation method. The tree structure Parzen estimation method is a method for searching and optimizing hyper-parameters of a machine learning model, and is a sequential model-based optimization (SMBO). The SMBO method sequentially constructs a model from historical index data to estimate the performance of the hyper-parameters, and then selects new hyper-parameters based on this model.
The principle and process of the tree structure Parzen method are as follows:
TABLE 3 principle and procedure of the Parzen method for tree structure
Figure BDA0002876363990000082
According to the scheme, further, as shown in fig. 4, the model training method is to train the model by using a limit gradient lifting tree framework.
Training models using extreme gradient lifting tree (XGboost) framework
The principle and process of XGboost training are as follows:
XGboost is an abbreviation of Extreme Grander Boosting Tree, and is used for optimizing and improving Boosting Tree
TABLE 4 development Process of extreme gradient Lift Tree (XGboost) framework
Figure BDA0002876363990000083
Figure BDA0002876363990000091
According to the invention, the land-day relationship information and the land-month related information are calculated according to the prediction time and the prediction longitude and latitude, the terrain and landform information corresponding to the prediction longitude and latitude is searched and input to the machine learning model for training, the data according to the model training is enriched, the state of the terrain and landform can be depicted, and the relation of weather changing along with the terrain is reflected. The technical scheme can relieve the restriction of the model on the requirement of a large amount of historical data, and can achieve or even exceed the accuracy of the conventional machine learning model under the condition of using a small amount of historical data for training. The method provided by the invention combines the space and geophysical information with the machine learning model, so that the time and cost of model training are greatly reduced, the working efficiency is improved, and the accuracy of weather forecast is ensured.
Example 1
As shown in fig. 5, by correcting the air temperatures of a plurality of observation stations of 2 thousand in China using the EC data of three years of history in 2017, 2018 and 2019, it was found that using different amounts of altitude data around the stations resulted in different accuracy rates.
Selecting the temperature accuracy rate change within 2 degrees in 6 months in 2019;
12p is the training accuracy of the 12-point model around the station;
4p is the training accuracy of the nearest 4-point model around the station;
4pi is the model training accuracy after interpolation of the nearest 4 points around the site.
Geographic information should influence local weather phenomena, so that terrain and landform information is added for model training, and the accuracy and stability of result discovery are further improved.
As shown in fig. 6, the change of weather should be a result of the physical environment influence of the earth, and after the information about the earth-day relationship and the information about the earth-month relationship are added to the model, the accuracy of weather forecast is further improved.
The data of 2020-09-02 to 2020-09-08 for one week is used for verification,
alti is the gain of model training accuracy after interpolation of 4 nearest neighbors around a station compared with the EC original forecast;
sun is the accuracy gain after the sun azimuth angle, the earth-sun distance and the solar irradiance are increased;
the sun + moon is the accuracy gain after the lunar azimuth angle and the lunar distance are increased on the basis of the solar azimuth angle, the terrestrial distance and the solar irradiance.
As shown in fig. 7, 8, 9 and 10, the robustness of the model was further examined by using less data training, and it was found that the model can achieve more stable accuracy output even when only 3 months of historical data is used.
The model is trained by using data of 3 months at 8, 9 and 10 months in 2019, and verified by using data of 8, 9, 10 and 11 months in 2020,
wherein EC is the original accuracy;
model is the Model prediction accuracy.
According to the experimental result, a new model training method is obtained, the AI model is enabled to automatically simulate the meteorological physical process of the earth, the AI model is regarded as a black box simulator, and an end-to-end input and output design is adopted, so that the weather forecast result with high accuracy can be obtained quickly.
In a second aspect of the present invention, a weather forecasting apparatus includes,
a first receiving module 201, configured to receive a predicted time input by a user and a corresponding predicted longitude and latitude;
a historical data processing module 202, connected to the first receiving module 201, configured to respectively calculate information about a geographical-day relationship and information about a geographical-month relationship according to the predicted time and the predicted longitude and latitude, and search for corresponding topographic features according to the predicted longitude and latitude;
in the embodiment of the present invention, the historical data processing module 202 includes a ground-day data processing sub-module, a ground-month data processing sub-module, and a geomorphic data processing sub-module. Wherein the content of the first and second substances,
and the earth-day data processing submodule is used for calculating the solar azimuth angle, the earth-day distance and the solar irradiance according to the predicted time and the predicted longitude and latitude.
The method for calculating the solar azimuth angle comprises the following steps of calculating a solar altitude angle and a time angle of the predicted time according to the predicted time and the predicted longitude and latitude, and calculating the solar azimuth angle according to the solar altitude angle, the time angle of the predicted time, the solar declination and the geographical latitude, wherein the method comprises the following steps:
Figure BDA0002876363990000101
wherein phi iss: the sun azimuth; thetas: the solar altitude; h: predicting a time angle of time; δ: declination of the sun; Φ: a geographic latitude;
the method for calculating the distance between the earth and the day is that,
D=(1-0.01672cos(0.9856(day-4)))×AU
wherein, D: the distance between the ground and the day; day: a predicted date; AU: 1 astronomical unit equal to the distance between the near-diurnal points of the earth; the method for calculating the solar irradiance is that,
ID=SR×(R/D)2
wherein, ID: solar irradiance; SR: solar surface radiation; r: the solar radius; d: the distance between the ground and the day.
And the earth-moon data processing submodule is used for calculating the moon azimuth angle and calculating the earth-moon distance according to the prediction time and the longitude and latitude.
The landform data processing submodule is used for inquiring and predicting the elevation of the preset grid point of the peripheral distance of the longitude and the latitude and the self elevation according to the predicted longitude and latitude to obtain the landform characteristics; according to the topographic features, carrying out binarization to generate the negative/positive features of the current point; wherein the peripheral distance range may be equal to or greater than 0.01 ° and equal to or less than 0.1 °. A method for generating the features of the internal surface and external surface of current point includes such steps as inquiring the altitude of 4 lattice points around the current point to judge the features of internal surface and external surface, Af1<Af4Being the yin side, Af1>Af4Is a sunny side; judging the characteristics of the male surface and the female surface by inquiring the altitude of 12 grid points on the periphery, At3<At10Being the yin side, At3>At10Is a sunny side;
wherein, the first and the second end of the pipe are connected with each other,
Af1: in the method for inquiring the altitudes of 4 surrounding grid points, the altitudes of the point positions right above the current longitude and latitude;
Af4: in the method for inquiring the altitudes of 4 surrounding grid points, the altitudes of the point positions right below the current longitude and latitude;
At3: in the elevation method for inquiring the 12 surrounding grid points, the elevation of the point right above the current longitude and latitude is obtained;
At10: in the method for inquiring the altitude of 12 surrounding grid points, the altitude of the point position right below the current longitude and latitude is obtained.
The sampling module 203 is used for performing data sampling on historical contemporaneous data according to data distribution to serve as a training data set;
in the invention, the contemporaneous historical forecast data of 1-3 months is selected as a training data set of the model by proportionally using a rejection sampling method for the data which obey normal distribution.
The hyper-parameter searching module 204 is connected with the historical data processing module 202 and is used for performing model hyper-parameter searching on the characteristic variables by using a parameter searching tool by taking the earth-day relationship information, the earth-month related information and the topographic features as characteristic variables to obtain optimal hyper-parameters;
in the present invention, the hyper-parameter search module 204 is configured to perform model hyper-parameter search on the feature variables by using a tree structure Parzen estimation method with the information of the earth-day relationship, the information of the earth-month relationship, and the topographic features as the feature variables, so as to obtain the optimal hyper-parameters.
The model training module 205 is connected to the sampling module 203 and the hyper-parameter searching module 204, and configured to perform model training according to the optimal hyper-parameter and the training data set to obtain a prediction model;
in the present invention, the model training module 205 is configured to perform model training using an extreme gradient lifting tree framework training model according to the optimal hyper-parameter and the training data set, so as to obtain a prediction model.
A second receiving module 206, configured to receive the real-time weather forecast message as prediction data;
and the prediction module 207 is connected to the model training module 205 and the second receiving module 206, and configured to perform weather forecast prediction by using the prediction model and the prediction data, and output the obtained weather forecast.
According to a third aspect of the invention, a computer device comprises: a processor and a memory, and a computer program stored in the memory and executable in the processor, the processor executing the steps of the program enabling a weather forecasting method, wherein the weather forecasting method comprises,
receiving the predicted time input by a user and the corresponding predicted longitude and latitude;
respectively calculating earth-day relationship information and earth-month related information according to the predicted time and the predicted longitude and latitude, and searching corresponding topographic features according to the predicted longitude and latitude;
performing data sampling on historical contemporaneous data according to data distribution to serve as a training data set;
taking the land-day relationship information, the land-month related information and the landform and landform characteristics as characteristic variables, and performing model hyper-parameter search on the characteristic variables by using a parameter search tool to obtain optimal hyper-parameters;
performing model training according to the optimal hyper-parameter and the training data set to obtain a prediction model;
receiving real-time weather forecast information as prediction data;
and forecasting weather forecast by using the forecasting model and the forecasting data, and outputting the obtained weather forecast.
According to a fourth aspect of the present invention, a computer-readable storage medium includes a computer program stored therein for implementing a method of weather forecasting.
It is to be understood that the present invention is not limited to the procedures and structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A weather forecasting method, comprising:
receiving the predicted time input by a user and the corresponding predicted longitude and latitude;
respectively calculating earth-day relationship information and earth-month related information according to the predicted time and the predicted longitude and latitude, and searching corresponding topographic features according to the predicted longitude and latitude;
performing data sampling on historical contemporaneous data according to data distribution to serve as a training data set;
taking the land-day relationship information, the land-month related information and the landform and landform characteristics as characteristic variables, and performing model hyper-parameter search on the characteristic variables by using a parameter search tool to obtain optimal hyper-parameters;
performing model training according to the optimal hyper-parameter and the training data set to obtain a prediction model;
receiving real-time weather forecast information as prediction data;
and predicting weather forecast by using the prediction model and the prediction data, and outputting the obtained weather forecast.
2. Weather forecast method according to claim 1,
the calculating the earth-day relationship information according to the predicted time and the predicted longitude and latitude comprises calculating a solar azimuth angle, an earth-day distance and solar irradiance according to the predicted time and the predicted longitude and latitude respectively.
3. Weather forecast method according to claim 1,
and the step of calculating the earth-moon related information according to the predicted time and the predicted longitude and latitude comprises calculating a moon azimuth angle and calculating an earth-moon distance.
4. Weather forecast method according to claim 1,
searching for corresponding topographic features according to the predicted longitude and latitude, wherein the steps of searching for the altitude of a preset grid point and the altitude of the preset grid point according to the peripheral distance of the current point where the current point is located according to the predicted longitude and latitude are carried out to obtain the topographic features; according to the topographic features, carrying out binarization to generate the negative/positive features of the current point; converting the topographic features into geomorphic features according to the national land classification.
5. The weather forecasting method according to claim 4, wherein the peripheral distance range is 0.1 ° or less, and 0.01 ° or more.
6. Weather forecasting method according to claim 4,
and the step of inquiring the altitude of the preset grid point at the peripheral distance of the current point where the longitude and the latitude are located according to the longitude and the latitude comprises the step of inquiring the altitudes of 4 and 12 grid points at the periphery.
7. Weather forecasting method according to claim 6,
the generating of the yin/yang characteristics of the current point comprises: judging the characteristics of the male surface and the female surface by inquiring the altitude of 4 grid points around the female surface, Af1<Af4Being the yin side, Af1>Af4Is a sunny side; judging the characteristics of the male surface and the female surface by inquiring the altitude of 12 grid points on the periphery, At3<At10Being the yin side, At3>At10Is a sunny side;
wherein the content of the first and second substances,
Af1: in the method for inquiring the altitudes of 4 surrounding grid points, the altitudes of the point positions right above the current longitude and latitude;
Af4: in the method for inquiring the altitudes of 4 surrounding grid points, the altitudes of the point positions right below the current longitude and latitude;
At3: in the method for inquiring the altitude of 12 surrounding grid points, the altitude of a point position right above the current longitude and latitude is inquired;
At10: in the method for inquiring the altitude of 12 surrounding grid points, the altitude of the point position right below the current longitude and latitude is obtained.
8. A weather forecast apparatus, comprising,
the first receiving module is used for receiving the predicted time input by the user and the corresponding predicted longitude and latitude;
the historical data processing module is connected with the first receiving module and used for respectively calculating earth-day relationship information and earth-month related information according to the predicted time and the predicted longitude and latitude and searching corresponding topographic features according to the predicted longitude and latitude;
the sampling module is used for sampling data of historical contemporaneous data according to data distribution to serve as a training data set;
the super-parameter searching module is connected with the historical data processing module and is used for performing model super-parameter searching on the characteristic variables by using a parameter searching tool by taking the land-day relationship information, the land-month related information and the topographic features as characteristic variables to obtain optimal super-parameters;
the model training module is respectively connected with the sampling module and the hyper-parameter searching module and is used for carrying out model training according to the optimal hyper-parameter and the training data set to obtain a prediction model;
the second receiving module is used for receiving the real-time weather forecast message as prediction data;
and the prediction module is respectively connected with the model training module and the second receiving module and is used for predicting weather forecast by using the prediction model and the prediction data and outputting the obtained weather forecast.
9. A computer device, comprising: processor and memory, and a computer program stored in the memory and executable in the processor, wherein execution of the program by the processor enables implementation of the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, comprising a computer program stored in the computer-readable storage medium, the program being for implementing the method of any one of claims 1 to 7.
CN202011615078.6A 2020-12-30 2020-12-30 Weather forecasting method and device, computer equipment and storage medium Active CN112684519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011615078.6A CN112684519B (en) 2020-12-30 2020-12-30 Weather forecasting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011615078.6A CN112684519B (en) 2020-12-30 2020-12-30 Weather forecasting method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112684519A CN112684519A (en) 2021-04-20
CN112684519B true CN112684519B (en) 2022-07-05

Family

ID=75455407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011615078.6A Active CN112684519B (en) 2020-12-30 2020-12-30 Weather forecasting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112684519B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114545528B (en) * 2022-03-09 2024-02-06 北京墨迹风云科技股份有限公司 Machine learning-based correction method and device after meteorological numerical mode element forecast

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437732A (en) * 2000-04-18 2003-08-20 卡梅尔系统有限责任公司 Space weather prediction system and method
CN106709587A (en) * 2015-11-13 2017-05-24 中国电力科学研究院 Direct radiation prediction method based on conventional weather forecast
CN109239808A (en) * 2018-08-01 2019-01-18 平安科技(深圳)有限公司 Weather forecast method, device, computer equipment and storage medium
CN110298498A (en) * 2019-06-14 2019-10-01 水利部交通运输部国家能源局南京水利科学研究院 A kind of Flood of small drainage area forecasting procedure for establishing data-driven with support vector machines

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170131435A1 (en) * 2015-11-05 2017-05-11 Heriot-Watt University Localized weather prediction

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437732A (en) * 2000-04-18 2003-08-20 卡梅尔系统有限责任公司 Space weather prediction system and method
CN106709587A (en) * 2015-11-13 2017-05-24 中国电力科学研究院 Direct radiation prediction method based on conventional weather forecast
CN109239808A (en) * 2018-08-01 2019-01-18 平安科技(深圳)有限公司 Weather forecast method, device, computer equipment and storage medium
CN110298498A (en) * 2019-06-14 2019-10-01 水利部交通运输部国家能源局南京水利科学研究院 A kind of Flood of small drainage area forecasting procedure for establishing data-driven with support vector machines

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《空间天气研究的主要科学问题》;王水 等;《中国科学技术大学学报》;20070831;第37卷(第8期);第807-812页 *

Also Published As

Publication number Publication date
CN112684519A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
Suh et al. Solar farm suitability using geographic information system fuzzy sets and analytic hierarchy processes: Case study of Ulleung Island, Korea
Gómez et al. Optimal placement and sizing from standpoint of the investor of photovoltaics grid-connected systems using binary particle swarm optimization
US20170220708A1 (en) Operating a solar power generating system
CN115049171B (en) Photovoltaic power prediction method and system based on feature migration
Mezghani et al. Subsampling impact on the climate change signal over Poland based on simulations from statistical and dynamical downscaling
CN112580982A (en) Ecological protection red line implementation assessment based on multi-temporal remote sensing and CASA model
Isaksson et al. Solar power forecasting with machine learning techniques
CN113222019A (en) Meteorological forecast data processing method, device and equipment for power transmission line tower
CN115189356B (en) Wind and light power prediction correction method and device based on atmospheric circulation stable state
CN112862274A (en) WRF-LES and Deepar combined wind power prediction method
CN112684519B (en) Weather forecasting method and device, computer equipment and storage medium
CN115544889A (en) Numerical mode precipitation deviation correction method based on deep learning
CN113984198B (en) Shortwave radiation prediction method and system based on convolutional neural network
Guo et al. Wind power assessment based on a WRF wind simulation with developed power curve modeling methods
Gómez et al. Evaluation of a particle swarm optimization based method for optimal location of photovoltaic grid-connected systems
Hou et al. Improving the forecast accuracy of ECMWF 2-m air temperature using a historical dataset
Achbab et al. Developing and applying a GIS-Fuzzy AHP assisted approach to locating a hybrid renewable energy system with high potential: Case of Dakhla region–Morocco
Knight Assessing and mapping renewable energy resources
CN112001090A (en) Wind field numerical simulation method
Graabak et al. Developing a wind and solar power data model for Europe with high spatial-temporal resolution
CN115586591A (en) Automatic storm surge forecasting method and device
CN116029419A (en) Deep learning-based long-term new energy daily average generation power prediction method and system
Krantz et al. Memorandum on Evaluating Global Climate Models for Studying Regional Climate Change in California
CN110991083B (en) Photovoltaic power station model determining method, device, equipment and storage medium
Gartsman et al. Analysis of the structure of river systems and the prospects for modeling hydrological processes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Shao Kejia

Inventor after: Wang Tian

Inventor after: Huang Yaohai

Inventor before: Shao Kejia

Inventor before: Wang Yi

Inventor before: Huang Yaohai