Sensor-based early warning method for fog formation
Through the sensor-based cluster fog generation early warning method, sensors and forecast models are used to predict cluster fog occurrence areas and generate information, which solves the problem that automatic cluster fog early warning is difficult to achieve in the existing technology, improves the accuracy and real-time nature of early warning, and ensures improve traffic safety.
Patent Information
- Application Number
- CN202410466731.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-04-18
AI Technical Summary
In the existing technology, it is difficult to realize automatic early warning of cloud fog, resulting in frequent traffic accidents under adverse weather conditions, especially in the early morning or evening hours when visibility is low. Manual monitoring is inefficient and it is difficult to detect and warn of cloud fog in a timely manner.
Using a sensor-based fog generation early warning method, by obtaining historical fog information, weather forecast information and pollutant forecast information in the target area, a fog monitoring site and an edge computing site are established to predict the fog generation area and generation information in real time. Adjust warning information, use weather and pollutant forecast models for prediction and verification, and improve the accuracy and real-time nature of warnings.
It achieves high-accuracy and high-real-time early warning of cloud fog, reduces invalid data processing, improves the efficiency of traffic control, and ensures road safety.
Smart Images

Figure CN118298636B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of traffic control, and in particular to a sensor-based fog generation early warning method. Background Art
[0002] Fog is essentially fog, which is formed due to ground radiation cooling. The air close to the ground becomes colder, the saturated specific humidity decreases, and water vapor condenses. It is different from ordinary fog and its range of influence is smaller. The visibility outside the fog is good, but it is hazy inside the fog. The high road surface temperature during the day and the large temperature difference between day and night on highways are more conducive to the formation of fog. Every year, one-quarter of the traffic accidents on highways are caused by bad weather conditions, among which special meteorological reasons such as fog are the biggest obstacle and threat to highway safety.
[0003] In the existing technology, the monitoring and early warning of road weather conditions within the coverage area of video surveillance are mainly carried out manually by video patrol. The efficiency of manual analysis is low, and abnormal weather such as fog usually occurs in the early morning or evening. The visibility in these two periods is low, and the naked eye cannot effectively detect fog information and issue warnings and control in time.
[0004] Therefore, it is necessary to provide a sensor-based fog formation warning method to achieve automatic warning of fog formation. Summary of the invention
[0005] The present invention provides a sensor-based fog formation early warning method, comprising: obtaining historical fog information of a target area, and determining a plurality of locations to be monitored in the target area based on the historical fog information; establishing a plurality of fog monitoring sites and a plurality of edge computing sites based on the plurality of locations to be monitored; obtaining weather forecast information of the target area, and determining weather forecast information of the plurality of locations to be monitored based on the weather forecast information of the target area; obtaining pollutant forecast information of the target area, and determining pollutant forecast information of the plurality of locations to be monitored based on the pollutant forecast information of the target area; predicting fog occurrence areas and fog formation information based on the weather forecast information and pollutant forecast information of the plurality of locations to be monitored; Based on the fog cluster occurrence area and fog cluster generation information, fog cluster warning information is generated and issued; based on the fog cluster occurrence area and fog cluster generation information, a target fog cluster monitoring station and the optimal image acquisition posture corresponding to the target fog cluster monitoring station are determined from the multiple fog cluster monitoring stations, and a target edge computing station is determined from the multiple edge computing stations, wherein the target fog cluster monitoring station is used to collect a fog cluster image based on the optimal image acquisition posture, and the target edge computing station is used to determine the real-time status of the fog cluster based on the fog cluster image, and the fog cluster occurrence area and fog cluster generation information are updated based on the real-time status of the fog cluster; based on the updated fog cluster occurrence area and fog cluster generation information, the fog cluster warning information is adjusted and issued.
[0006] Further, determining the weather forecast information of the multiple locations to be monitored based on the weather forecast information of the target area includes: dividing the target area into multiple sub-areas according to the terrain information of the target area; obtaining historical weather information of the multiple sub-areas, and confirming the weather correlation between any two of the sub-areas based on the historical weather information of the multiple sub-areas; obtaining historical weather information of the multiple locations to be monitored, and confirming the weather correlation between any two of the locations to be monitored based on the historical weather information of the multiple locations to be monitored; establishing a weather forecast model; training the weather forecast model based on the historical weather information of the multiple sub-areas, the weather correlation between any two of the sub-areas, the historical weather information of the multiple locations to be monitored, and the weather correlation between any two of the locations to be monitored; and determining the weather forecast information of the multiple locations to be monitored based on the weather forecast information of the target area through the trained weather forecast model.
[0007] Furthermore, the weather forecast model includes a sub-region weather forecast unit, a sub-region weather forecast verification unit, a location weather forecast unit and a location weather forecast verification unit; based on the historical weather information of the multiple sub-regions, the weather correlation between any two of the sub-regions, the historical weather information of the multiple locations to be monitored and the weather correlation between any two of the locations to be monitored, the weather forecast model is trained, including: based on the historical weather information of the target area and the historical weather information of the multiple sub-regions, a plurality of first training samples are established, wherein the first training samples include the historical weather information of the target area at a first historical time point and the historical weather information of the multiple sub-regions at the first historical time point; based on the historical weather information of the multiple sub-regions and the historical weather information of the multiple locations to be monitored Based on the historical weather information of the target area, the historical weather information of the multiple sub-areas and the historical weather information of the multiple monitored locations, a plurality of third training samples are established, wherein the third training samples include the historical weather information of the target area at a third historical time point, the historical weather information of the multiple sub-areas at the third historical time point and the historical weather information of the multiple monitored locations at the third historical time point; based on the multiple first training samples, the multiple second training samples and the multiple third training samples, the weather forecast model is trained.
[0008] Furthermore, based on the multiple first training samples, the multiple second training samples and the multiple third training samples, the weather forecast model is trained, including: inputting historical weather information of the target area included in the first training sample at a first historical time point and the weather correlation degree of any two of the sub-areas into the sub-area weather forecast unit, and the sub-area weather forecast unit outputs the predicted first historical weather forecast information of the multiple sub-areas; calculating the first loss prediction model based on the first historical weather forecast information of the multiple sub-areas predicted by the sub-area weather forecast unit and the historical weather information of the multiple sub-areas included in the first training sample at the first historical time point. loss value; inputting the historical weather information of the multiple sub-regions included in the first training sample at the first historical time point and the weather correlation between any two of the sub-regions into the sub-region weather forecast verification unit, and the sub-region weather forecast verification unit outputs the predicted historical weather forecast information of the target region; calculating a second loss value based on the historical weather forecast information of the target region predicted by the sub-region weather forecast verification unit and the historical weather information of the target region included in the first training sample at a first historical time point; performing a first round of verification of the sub-region weather forecast unit and the sub-region weather forecast verification unit based on the first loss value and the second loss value Parameter optimization; after the sub-region weather forecast unit and the sub-region weather forecast verification unit complete the first round of parameter optimization, the historical weather information of the multiple sub-regions included in the second training sample at a second historical time point and the weather correlation between any two of the locations to be monitored are input into the location weather forecast unit, and the location weather forecast unit outputs the predicted first historical weather forecast information of the multiple locations to be monitored; based on the first historical weather forecast information of the multiple locations to be monitored predicted by the location weather forecast unit and the historical weather information of the multiple locations to be monitored included in the second training sample at the second historical time point, a third loss value is calculated; the third loss value is converted into the second historical weather forecast information of the multiple sub-regions included in the second training sample ... third historical weather forecast information of the multiple sub-regions included in the second training sample; the third loss value is converted into the third historical weather forecast information of the multiple sub-regions included in the second training sample; the third loss value is converted into the third The historical weather information of the multiple monitored locations at the second historical time point included in the second training sample and the weather correlation between any two of the monitored locations are input into the location weather forecast verification unit, and the location weather forecast verification unit outputs the predicted historical weather forecast information of the multiple sub-areas; based on the historical weather forecast information of the multiple sub-areas predicted by the location weather forecast verification unit and the historical weather information of the multiple sub-areas included in the second training sample at a second historical time point, a fourth loss value is calculated; based on the third loss value and the fourth loss value, a second round of parameter optimization is performed on the location weather forecast unit and the location weather forecast verification unit;After the location weather forecast unit and the location weather forecast verification unit complete parameter optimization, the historical weather information of the target area at a third historical time point included in the third training sample and the weather correlation between any two of the sub-areas are input to the sub-area weather forecast unit, and the sub-area weather forecast unit outputs the predicted second historical weather forecast information of the multiple sub-areas; based on the second historical weather forecast information of the multiple sub-areas predicted by the sub-area weather forecast unit and the historical weather information of the multiple sub-areas included in the third training sample at the third historical time point, a fifth loss value is calculated; the second historical weather forecast information of the multiple sub-areas predicted by the sub-area weather forecast unit is output. and the weather correlation degree of any two of the locations to be monitored is input to the location weather forecast unit, and the location weather forecast unit outputs the predicted second historical weather forecast information of the multiple locations to be monitored; based on the second historical weather forecast information of the multiple locations to be monitored predicted by the location weather forecast unit and the historical weather information of the multiple locations to be monitored included in the third training sample at the third historical time point, a sixth loss value is calculated; based on the fifth loss value and the sixth loss value, a third round of parameter optimization is performed on the sub-area weather forecast unit and the location weather forecast unit; the trained weather forecast model includes the sub-area weather forecast unit and the location weather forecast unit after the third round of parameter optimization is completed. ;
[0009] Furthermore, the first loss value is calculated based on the following first loss function:
[0010]
[0011] Among them, L1 is the first loss value, V ((k,forecast),i) is the value of the kth meteorological factor of the ith sub-region predicted by the sub-region weather forecast unit, V ((k,real),i) is the value of the kth meteorological factor of the ith sub-region included in the first training sample, K is the total number of meteorological factors, I is the total number of sub-regions, P1 is a preset parameter, and P1>0;
[0012] The third loss value is calculated based on the following third loss function:
[0013]
[0014] Among them, L3 is the third loss value, V ((k,forecast),j) is the value of the kth meteorological factor of the jth monitored location predicted by the location weather forecast unit, V ((k,real),j) is the value of the kth meteorological factor of the jth to-be-monitored location included in the second training sample, J is the total number of to-be-monitored locations, P2 is a preset parameter, and P2>0.
[0015] Furthermore, the pollutant forecast information of the multiple locations to be monitored is determined based on the pollutant forecast information of the target area, including: obtaining historical pollutant information of the multiple sub-areas, and confirming the pollutant correlation between any two of the sub-areas based on the historical pollutant information of the multiple sub-areas; obtaining historical pollutant information of the multiple locations to be monitored, and confirming the pollutant correlation between any two of the locations to be monitored based on the historical pollutant information of the multiple locations to be monitored; establishing a pollutant forecast model; training the pollutant forecast model based on the historical pollutant information of the multiple sub-areas, the pollutant correlation between any two of the sub-areas, the historical pollutant information of the multiple locations to be monitored, and the pollutant correlation between any two of the locations to be monitored; and determining the pollutant forecast information of the multiple locations to be monitored based on the pollutant forecast information of the target area through the trained pollutant forecast model.
[0016] Furthermore, based on the weather forecast information and pollutant forecast information of the multiple locations to be monitored, the fog cluster occurrence area and fog cluster generation information are predicted, including: obtaining historical fog cluster information of the multiple locations to be monitored, and confirming the fog cluster correlation between any two locations to be monitored based on the historical fog cluster information of the multiple locations to be monitored; for each location to be monitored, determining the initial fog cluster occurrence area and initial fog cluster generation information of the location to be monitored based on the weather forecast information and pollutant forecast information of the location to be monitored by a local fog cluster prediction model; determining the fog cluster occurrence area and fog cluster generation information based on the initial fog cluster occurrence area and initial fog cluster generation information of each location to be monitored and the fog cluster correlation between any two locations to be monitored by a global fog cluster prediction model.
[0017] Furthermore, based on the fog cluster occurrence area and the fog cluster generation information, fog cluster warning information is generated, including: determining a traffic warning road based on the fog cluster occurrence area; and determining traffic control measures for the traffic warning road based on the fog cluster generation information.
[0018] Furthermore, the target edge computing site determines the real-time status of the fog group based on the fog group image, including: using a convolutional neural network model to identify the fog group image and determine the real-time status of the fog group.
[0019] Furthermore, the fog cluster occurrence area and fog cluster generation information are updated based on the real-time status of the fog cluster, including: generating real-time adjusted fog cluster occurrence area and fog cluster generation information based on the real-time status of the fog cluster at multiple historical time points and the predicted fog cluster occurrence area and fog cluster generation information through a long short-term memory network model.
[0020] Compared with the prior art, the sensor-based fog formation early warning method provided by the present invention has at least the following beneficial effects:
[0021] 1. Through multiple monitoring locations in the target area, focused fog group warning is achieved, avoiding the processing of a large amount of invalid data and fog group monitoring. By predicting the weather forecast information and pollutant forecast information of multiple monitoring locations, accurate and comprehensive data support is provided for the prediction of subsequent fog group occurrence areas and fog group generation information. On this basis, through the target fog group monitoring station and the target edge computing station, the real-time status monitoring of the generated fog group is realized, so as to adjust the fog group warning information in real time, and provide more real-time and accurate fog group warning information for traffic control.
[0022] 2. First use the first training sample to perform the first round of parameter optimization on the sub-regional weather forecast unit and the sub-regional weather forecast verification unit based on the first loss value and the second loss value, and use the second training sample to perform the second round of parameter optimization on the location weather forecast unit and the location weather forecast verification unit based on the third loss value and the fourth loss value, so as to realize independent training of the sub-regional weather forecast unit and the sub-regional weather forecast verification unit, the location weather forecast unit and the location weather forecast verification unit, and through the loss of first prediction and then verification, the weather forecast model can implicitly learn the complex nonlinear mapping relationship between different sub-regions, different monitored locations, and different meteorological variables. After the independent training is completed, the regional weather forecast unit and the location weather forecast unit after the independent training are extracted for joint training. By means of independent training first and then joint training, the prediction accuracy of the trained weather forecast model is guaranteed while the efficiency of model training is improved.
[0023] 3. By confirming the weather correlation between any two sub-areas and the weather correlation between any two locations to be monitored, more dimensional information is provided for the weather forecast model, guiding the weather forecast model to generate more accurate weather forecast information for multiple locations to be monitored. By confirming the pollutant correlation between any two sub-areas and the pollutant correlation between any two locations to be monitored, more dimensional information is provided for the pollutant forecast model, guiding the pollutant forecast model to generate more accurate pollutant forecast information for multiple locations to be monitored. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0025] Figure 1 It is a flow chart of a method for early warning of fog formation based on a sensor according to some embodiments of this specification;
[0026] Figure 2is a schematic diagram of a process for determining weather forecast information for multiple locations to be monitored according to some embodiments of this specification;
[0027] Figure 3a is a schematic diagram of a process of first round parameter optimization according to some embodiments of this specification;
[0028] Figure 3b is a schematic diagram of a process of second round parameter optimization according to some embodiments of this specification;
[0029] Figure 3c is a schematic diagram of a process of the third round of parameter optimization according to some embodiments of this specification;
[0030] Figure 4 It is a schematic diagram of a process for determining pollutant forecast information of multiple locations to be monitored according to some embodiments of this specification. DETAILED DESCRIPTION
[0031] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0032] Figure 1 is a flow chart of a method for early warning of fog formation based on sensors according to some embodiments of this specification, such as Figure 1 As shown, the sensor-based fog formation early warning method may include the following steps.
[0033] Step 110, obtaining historical fog group information of the target area, and determining a plurality of locations to be monitored in the target area based on the historical fog group information.
[0034] The historical fog cluster information of the target area may include the location and fog cluster generation information of the target area where fog clusters occurred within a period of time in the past (for example, 3 years, 1 year, etc.), wherein the fog cluster generation information may include the fog cluster size, visibility, etc. of the same fog cluster at multiple historical time points.
[0035] The location to be monitored may be a location in the target area where fog may occur.
[0036] Step 120, based on multiple locations to be monitored, establish multiple fog monitoring sites and multiple edge computing sites.
[0037] The fog monitoring station is used to obtain image information of fog in the space where it is located. The edge computing station can be used to determine the fog occurrence area and fog generation information based on the image information of fog obtained by the fog monitoring station.
[0038] As an example only, multiple fog monitoring sites and multiple edge computing sites can be established near the location to be monitored.
[0039] Step 130, obtaining weather forecast information of the target area, and determining weather forecast information of multiple locations to be monitored based on the weather forecast information of the target area.
[0040] Weather forecast information may include at least forecast information of meteorological factors such as temperature, humidity, wind speed, wind direction, etc.
[0041] Figure 2 is a schematic diagram of a process for determining weather forecast information for multiple locations to be monitored according to some embodiments of this specification, such as Figure 2 As shown, in some embodiments, determining weather forecast information of multiple locations to be monitored based on weather forecast information of a target area includes:
[0042] According to the terrain information of the target area, the target area is divided into multiple sub-areas, and specifically, there are differences in terrain between two adjacent sub-areas;
[0043] Obtain historical weather information of multiple sub-regions, and based on the historical weather information of multiple sub-regions, confirm the weather correlation between any two sub-regions;
[0044] Acquire historical weather information of multiple locations to be monitored, and confirm the weather correlation between any two locations to be monitored based on the historical weather information of the multiple locations to be monitored;
[0045] Establish a weather forecast model. Specifically, a weather forecast model can be established based on a generative adversarial network;
[0046] Training a weather forecast model based on historical weather information of multiple sub-regions, weather correlation between any two sub-regions, historical weather information of multiple locations to be monitored, and weather correlation between any two locations to be monitored;
[0047] The weather forecast information of multiple locations to be monitored is determined based on the weather forecast information of the target area through the trained weather forecast model.
[0048] Specifically, the weather correlation between two sub-areas can be calculated based on the following formula:
[0049]
[0050] Among them, C ((e,f),1)is the weather correlation between the e-th sub-region and the f-th sub-region, V ((k,e),t) is the value of the kth meteorological factor in the eth sub-region at the tth historical time point, V ((k,f),t) is the value of the kth meteorological factor in the fth sub-area at the tth time point, T is the total number of historical time points sampled, P5 is a preset parameter, and P5>0.
[0051] The method of calculating the weather correlation between two locations to be monitored is similar to the method of calculating the weather correlation between two sub-areas, which will not be repeated here.
[0052] It can be understood that by confirming the weather correlation between any two sub-areas and the weather correlation between any two locations to be monitored, more dimensional information is provided to the weather forecast model, guiding the weather forecast model to generate more accurate weather forecast information for multiple locations to be monitored.
[0053] In some embodiments, the weather forecast model includes a sub-region weather forecast unit, a sub-region weather forecast verification unit, a location weather forecast unit, and a location weather forecast verification unit;
[0054] Based on the historical weather information of multiple sub-regions, the weather correlation between any two sub-regions, the historical weather information of multiple locations to be monitored, and the weather correlation between any two locations to be monitored, a weather forecast model is trained, including:
[0055] Based on the historical weather information of the target area and the historical weather information of the multiple sub-areas, establishing multiple first training samples, wherein the first training sample includes the historical weather information of the target area at a first historical time point and the historical weather information of the multiple sub-areas at the first historical time point;
[0056] Based on the historical weather information of the multiple sub-regions and the historical weather information of the multiple locations to be monitored, establishing multiple second training samples, wherein the second training samples include the historical weather information of the multiple sub-regions at a second historical time point and the historical weather information of the multiple locations to be monitored at the second historical time point;
[0057] Based on the historical weather information of the target area, the historical weather information of the multiple sub-areas, and the historical weather information of the multiple locations to be monitored, establishing multiple third training samples, wherein the third training samples include the historical weather information of the target area at a third historical time point, the historical weather information of the multiple sub-areas at the third historical time point, and the historical weather information of the multiple locations to be monitored at the third historical time point;
[0058] A weather forecast model is trained based on a plurality of first training samples, a plurality of second training samples, and a plurality of third training samples.
[0059] like Figure 3a to Figure 3cAs shown, in some embodiments, based on a plurality of first training samples, a plurality of second training samples, and a plurality of third training samples, training a weather forecast model includes:
[0060] Inputting historical weather information of the target area at a first historical time point and the weather correlation between any two sub-areas included in the first training sample into the sub-area weather forecast unit, the sub-area weather forecast unit outputting the predicted first historical weather forecast information of the multiple sub-areas;
[0061] Calculate a first loss value based on first historical weather forecast information of multiple sub-regions predicted by the sub-region weather forecast unit and historical weather information of multiple sub-regions included in the first training sample at a first historical time point;
[0062] Inputting historical weather information of multiple sub-regions included in the first training sample at the first historical time point and the weather correlation between any two sub-regions into a sub-region weather forecast verification unit, and the sub-region weather forecast verification unit outputs the predicted historical weather forecast information of the target region;
[0063] Calculating a second loss value based on historical weather forecast information of the target area predicted by the sub-region weather forecast verification unit and historical weather information of the target area included in the first training sample at a first historical time point;
[0064] Performing a first round of parameter optimization on the sub-region weather forecast unit and the sub-region weather forecast verification unit based on the first loss value and the second loss value by using a gradient descent method;
[0065] After the sub-region weather forecast unit and the sub-region weather forecast verification unit complete the first round of parameter optimization, the historical weather information of the multiple sub-regions included in the second training sample at a second historical time point and the weather correlation between any two locations to be monitored are input into the location weather forecast unit, and the location weather forecast unit outputs the predicted first historical weather forecast information of the multiple locations to be monitored;
[0066] Calculate a third loss value based on first historical weather forecast information of multiple locations to be monitored predicted by the location weather forecast unit and historical weather information of multiple locations to be monitored included in the second training sample at a second historical time point;
[0067] Inputting historical weather information of multiple locations to be monitored at a second historical time point included in the second training sample and the weather correlation between any two locations to be monitored into a location weather forecast verification unit, and the location weather forecast verification unit outputs predicted historical weather forecast information of multiple sub-areas;
[0068] Calculate a fourth loss value based on historical weather forecast information of multiple sub-areas predicted by the location weather forecast verification unit and historical weather information of multiple sub-areas included in the second training sample at a second historical time point;
[0069] Performing a second round of parameter optimization on the location weather forecast unit and the location weather forecast verification unit based on the third loss value and the fourth loss value by using a gradient descent method;
[0070] After the location weather forecast unit and the location weather forecast verification unit complete parameter optimization, the historical weather information of the target area at a third historical time point and the weather correlation between any two sub-areas included in the third training sample are input into the sub-area weather forecast unit, and the sub-area weather forecast unit outputs the predicted second historical weather forecast information of the multiple sub-areas;
[0071] Calculating a fifth loss value based on the second historical weather forecast information of the plurality of sub-regions predicted by the sub-region weather forecast unit and the historical weather information of the plurality of sub-regions included in the third training sample at a third historical time point;
[0072] The second historical weather forecast information of the multiple sub-regions predicted by the sub-region weather forecast unit and the weather correlation between any two locations to be monitored are input into the location weather forecast unit, and the location weather forecast unit outputs the predicted second historical weather forecast information of the multiple locations to be monitored;
[0073] Calculating a sixth loss value based on second historical weather forecast information of multiple locations to be monitored predicted by the location weather forecast unit and historical weather information of multiple locations to be monitored at a third historical time point included in the third training sample;
[0074] Performing a third round of parameter optimization on the sub-region weather forecast unit and the location weather forecast unit based on the fifth loss value and the sixth loss value by using a gradient descent method;
[0075] The trained weather forecast model includes the sub-region weather forecast unit and the location weather forecast unit after completing the third round of parameter optimization.
[0076] In some embodiments, the first loss value is calculated based on the following first loss function:
[0077]
[0078] Among them, L1 is the first loss value, V ((k,forecast),i) is the value of the kth meteorological factor of the ith sub-region predicted by the sub-region weather forecast unit, V ((k,real),i) is the value of the kth meteorological factor of the i-th sub-region included in the first training sample, K is the total number of meteorological factors, I is the total number of sub-regions, P1 is a preset parameter, and P1>0;
[0079] The second loss value is calculated based on the following second loss function:
[0080]
[0081] Where L2 is the second loss value, V (k,forecast) is the value of the kth meteorological factor of the target area predicted by the sub-regional weather forecast verification unit, V (k,real) is the value of the kth meteorological factor of the target area included in the first training sample, P3 is a preset parameter, and P3>0;
[0082] The third loss value is calculated based on the following third loss function:
[0083]
[0084] Among them, L3 is the third loss value, V ((k,forecast),j) is the value of the kth meteorological factor of the jth monitored location predicted by the location weather forecast unit, V ((k,real),j) is the value of the kth meteorological factor of the jth to-be-monitored location included in the second training sample, J is the total number of the to-be-monitored locations, P2 is a preset parameter, and P2>0.
[0085] The calculation method of the fourth loss value and the fifth loss value is similar to the calculation method of the first loss value, and the calculation method of the sixth loss value is similar to the calculation method of the third loss value, which will not be repeated here.
[0086] It can be understood that the first training sample is first used to perform a first round of parameter optimization on the sub-regional weather forecast unit and the sub-regional weather forecast verification unit based on the first loss value and the second loss value, and the second training sample is used to perform a second round of parameter optimization on the location weather forecast unit and the location weather forecast verification unit based on the third loss value and the fourth loss value, so as to realize independent training of the sub-regional weather forecast unit and the sub-regional weather forecast verification unit, the location weather forecast unit and the location weather forecast verification unit, and through the loss of first prediction and then verification, the weather forecast model can implicitly learn the complex nonlinear mapping relationship between different sub-regions, different locations to be monitored, and different meteorological variables. After the independent training is completed, the regional weather forecast unit and the location weather forecast unit after the independent training are extracted for joint training. By means of independent training first and then joint training, the prediction accuracy of the trained weather forecast model is guaranteed while the efficiency of model training is improved.
[0087] Step 140: Acquire pollutant forecast information of the target area, and determine pollutant forecast information of multiple locations to be monitored based on the pollutant forecast information of the target area.
[0088] Figure 4is a schematic diagram of a process for determining pollutant forecast information of multiple locations to be monitored according to some embodiments of this specification, such as Figure 4 As shown, in some embodiments, determining pollutant forecast information of multiple locations to be monitored based on pollutant forecast information of a target area includes:
[0089] Acquire historical pollutant information of multiple sub-areas, and confirm the pollutant correlation between any two sub-areas based on the historical pollutant information of the multiple sub-areas, wherein the historical pollutant information may include the concentration of coarse particulate matter PM10 and the concentration of fine particulate matter PM2.5 at multiple historical time points;
[0090] Acquire historical pollutant information of multiple locations to be monitored, and confirm the pollutant correlation between any two locations to be monitored based on the historical pollutant information of the multiple locations to be monitored;
[0091] Establishing a pollutant prediction model, wherein the pollutant prediction model may be a Generative Adversarial Networks model;
[0092] Based on the historical pollutant information of multiple sub-regions, the pollutant correlation between any two sub-regions, the historical pollutant information of multiple locations to be monitored, and the pollutant correlation between any two locations to be monitored, a pollutant prediction model is trained;
[0093] The pollutant forecast information of multiple locations to be monitored is determined based on the pollutant forecast information of the target area through the trained pollutant forecast model.
[0094] Specifically, the pollutant correlation between two sub-areas can be calculated based on the following formula:
[0095]
[0096] Among them, C ((e,f),2) is the pollutant correlation between the e-th sub-area and the f-th sub-area, V ((y,e),t) is the concentration of the yth type of particle in the eth sub-area at the tth historical time point, V ((y,f),t) is the concentration of the yth type of particle in the fth sub-area at the tth historical time point, Y is the total number of types of particles, P6 is a preset parameter, and P6>0.
[0097] The method of calculating the pollutant correlation between two locations to be monitored is similar to the method of calculating the pollutant correlation between two sub-areas, which will not be repeated here.
[0098] It can be understood that by confirming the pollutant correlation between any two sub-areas and the pollutant correlation between any two locations to be monitored, more dimensional information is provided to the pollutant forecasting model, guiding the pollutant forecasting model to generate more accurate pollutant forecasting information for multiple locations to be monitored.
[0099] In some embodiments, the structure and training method of the pollutant forecast model may be similar to the structure and training method of the weather forecast model. For more descriptions of the structure and training method of the pollutant forecast model, please refer to the relevant descriptions of the structure and training method of the weather forecast model, which will not be repeated here.
[0100] Step 150, based on the weather forecast information and pollutant forecast information of multiple locations to be monitored, predict the fog cluster occurrence area and fog cluster generation information.
[0101] Specifically include:
[0102] Obtain historical fog group information of multiple locations to be monitored, and based on the historical fog group information of multiple locations to be monitored, determine the fog group correlation between any two locations to be monitored;
[0103] For each location to be monitored, the local fog cluster prediction model is used to determine the initial fog cluster occurrence area and initial fog cluster generation information of the location to be monitored based on the weather forecast information and pollutant forecast information of the location to be monitored;
[0104] The global fog cluster prediction model is used to determine the fog cluster occurrence area and fog cluster generation information based on the initial fog cluster occurrence area and initial fog cluster generation information of each monitored location and the fog cluster correlation between any two monitored locations, wherein the local fog cluster prediction model and the global fog cluster prediction model can be a recurrent neural network (RNN) model.
[0105] Step 160, based on the fog cluster occurrence area and fog cluster generation information, generate and issue fog cluster warning information.
[0106] Specifically include:
[0107] Determine the traffic warning roads based on the area where the fog occurs;
[0108] Based on the fog formation information, determine the traffic control measures for the traffic warning roads.
[0109] The traffic warning road may be a road passing through an area where fog occurs.
[0110] The traffic control measures corresponding to fog with different visibility may be different. For example, when the visibility is greater than 200 meters and less than or equal to 500 meters, the corresponding traffic control measures are information board prompts; when the visibility is greater than 100 meters and less than or equal to 200 meters, the corresponding traffic control measures are speed limit release; when the visibility is greater than 50 meters and less than or equal to 100 meters, the corresponding traffic control measures are road closures, etc.
[0111] Step 170, based on the fog cluster occurrence area and fog cluster generation information, determine the target fog cluster monitoring station and the optimal image acquisition posture corresponding to the target fog cluster monitoring station from multiple fog cluster monitoring stations, and determine the target edge computing station from multiple edge computing stations.
[0112] The target group fog monitoring station is used to collect group fog images based on the optimal image acquisition posture.
[0113] The target edge computing site is used to determine the real-time status of the fog cluster based on the fog cluster image, and to update the fog cluster occurrence area and fog cluster generation information based on the real-time status of the fog cluster.
[0114] In some embodiments, the target edge computing site determines the real-time status of the fog cluster based on the fog cluster image, including:
[0115] The convolutional neural network model is used to identify fog images and determine the real-time status of fog.
[0116] Specifically, the core of the convolutional neural network model is to use a large number of accurately annotated road image sets for training. The convolutional neural network realizes the extraction of image features (for example, visibility, road surface conditions) and realizes image classification through classifiers. The architecture of the convolutional neural network model can be roughly divided into three types of layers, including input layer, hidden layer and output layer. The main purpose of the input layer is to receive the annotated input image and pass it to the subsequent hidden layer. Most of the calculations occur in the hidden layer, which can be divided into three types of layers, including convolution layer (Convolution, excitation layer (ReLU), pooling layer (Pooling). The output layer is usually composed of two types of layers: fully connected layer and softmax layer.
[0117] The total number of validation samples is 7280 images, involving 27 cameras, and the samples cover all levels of foggy conditions. The validation results are shown in Table 1. It is verified that the classification of the convolutional neural network model in 6880 images is consistent with visual judgment, and the qualified rate of classification reaches 94.5%; under the low visibility condition of 200m, 2670 out of 2880 images are qualified, and the qualified rate reaches 92.7%.
[0118] Table 1
[0119]
[0120]
[0121] Step 180, based on the updated fog cluster occurrence area and fog cluster generation information, adjust and issue fog cluster warning information.
[0122] Specifically include:
[0123] The long short-term memory network model is used to generate real-time adjusted fog cluster occurrence area and fog cluster generation information based on the real-time status of fog clusters at multiple historical time points and the predicted fog cluster occurrence area and fog cluster generation information.
[0124] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.
Claims
1. A sensor-based fog formation early warning method, characterized in that: include: Acquire historical fog group information of a target area, and determine a plurality of locations to be monitored within the target area based on the historical fog group information; Based on the multiple locations to be monitored, establish multiple fog monitoring sites and multiple edge computing sites; Acquire weather forecast information of the target area, and determine weather forecast information of the plurality of locations to be monitored based on the weather forecast information of the target area; Acquire pollutant forecast information of the target area, and determine pollutant forecast information of the plurality of locations to be monitored based on the pollutant forecast information of the target area; Based on the weather forecast information and pollutant forecast information of the plurality of locations to be monitored, predicting the fog cluster occurrence area and fog cluster generation information; Based on the fog cluster occurrence area and fog cluster generation information, generate and issue fog cluster warning information; Based on the fog cluster occurrence area and fog cluster generation information, determine a target fog cluster monitoring site and an optimal image acquisition posture corresponding to the target fog cluster monitoring site from the multiple fog cluster monitoring sites, and determine a target edge computing site from the multiple edge computing sites, wherein the target fog cluster monitoring site is used to collect a fog cluster image based on the optimal image acquisition posture, and the target edge computing site is used to determine the real-time state of the fog cluster based on the fog cluster image, and update the fog cluster occurrence area and fog cluster generation information based on the real-time state of the fog cluster; Adjust and issue fog group warning information based on the updated fog group occurrence area and fog group generation information; Determining weather forecast information of the plurality of locations to be monitored based on the weather forecast information of the target area includes: Dividing the target area into a plurality of sub-areas according to the terrain information of the target area; Acquire historical weather information of the multiple sub-areas, and determine the weather correlation between any two of the sub-areas based on the historical weather information of the multiple sub-areas; Acquire historical weather information of the plurality of locations to be monitored, and determine the weather correlation between any two of the locations to be monitored based on the historical weather information of the plurality of locations to be monitored; Building weather forecast models; Training the weather forecast model based on the historical weather information of the multiple sub-areas, the weather correlation between any two of the sub-areas, the historical weather information of the multiple locations to be monitored, and the weather correlation between any two of the locations to be monitored; Determining weather forecast information of the plurality of locations to be monitored based on the weather forecast information of the target area through a trained weather forecast model; The weather forecast model includes a sub-region weather forecast unit, a sub-region weather forecast verification unit, a location weather forecast unit and a location weather forecast verification unit; Based on the historical weather information of the multiple sub-areas, the weather correlation between any two of the sub-areas, the historical weather information of the multiple locations to be monitored, and the weather correlation between any two of the locations to be monitored, training the weather forecast model includes: Based on the historical weather information of the target area and the historical weather information of the multiple sub-areas, establishing multiple first training samples, wherein the first training samples include the historical weather information of the target area at a first historical time point and the historical weather information of the multiple sub-areas at the first historical time point; Based on the historical weather information of the multiple sub-areas and the historical weather information of the multiple locations to be monitored, establish multiple second training samples, wherein the second training samples include the historical weather information of the multiple sub-areas at a second historical time point and the historical weather information of the multiple locations to be monitored at the second historical time point; Based on the historical weather information of the target area, the historical weather information of the multiple sub-areas and the historical weather information of the multiple locations to be monitored, a plurality of third training samples are established, wherein the third training samples include the historical weather information of the target area at a third historical time point, the historical weather information of the multiple sub-areas at the third historical time point and the historical weather information of the multiple locations to be monitored at the third historical time point; Training the weather forecast model based on the plurality of first training samples, the plurality of second training samples, and the plurality of third training samples; Training the weather forecast model based on the plurality of first training samples, the plurality of second training samples, and the plurality of third training samples includes: Inputting the historical weather information of the target area at a first historical time point and the weather correlation between any two of the sub-areas included in the first training sample into the sub-area weather forecast unit, and the sub-area weather forecast unit outputs the predicted first historical weather forecast information of the multiple sub-areas; Calculating a first loss value based on first historical weather forecast information of the plurality of sub-regions predicted by the sub-region weather forecast unit and historical weather information of the plurality of sub-regions at the first historical time point included in the first training sample; Inputting the historical weather information of the multiple sub-regions at the first historical time point included in the first training sample and the weather correlation between any two of the sub-regions into the sub-region weather forecast verification unit, and the sub-region weather forecast verification unit outputs the predicted historical weather forecast information of the target region; Calculating a second loss value based on historical weather forecast information of the target area predicted by the sub-region weather forecast verification unit and historical weather information of the target area at a first historical time point included in the first training sample; performing a first round of parameter optimization on the sub-region weather forecast unit and the sub-region weather forecast verification unit based on the first loss value and the second loss value; After the sub-region weather forecast unit and the sub-region weather forecast verification unit complete the first round of parameter optimization, the historical weather information of the multiple sub-regions included in the second training sample at a second historical time point and the weather correlation between any two of the locations to be monitored are input into the location weather forecast unit, and the location weather forecast unit outputs the predicted first historical weather forecast information of the multiple locations to be monitored; Calculating a third loss value based on first historical weather forecast information of the plurality of locations to be monitored predicted by the location weather forecast unit and historical weather information of the plurality of locations to be monitored at the second historical time point included in the second training sample; Inputting the historical weather information of the plurality of locations to be monitored at the second historical time point included in the second training sample and the weather correlation between any two of the locations to be monitored into the location weather forecast verification unit, and the location weather forecast verification unit outputs the predicted historical weather forecast information of the plurality of sub-areas; Calculating a fourth loss value based on historical weather forecast information of the multiple sub-areas predicted by the location weather forecast verification unit and historical weather information of the multiple sub-areas included in the second training sample at a second historical time point; performing a second round of parameter optimization on the location weather forecast unit and the location weather forecast verification unit based on the third loss value and the fourth loss value; After the location weather forecast unit and the location weather forecast verification unit complete parameter optimization, the historical weather information of the target area at a third historical time point included in the third training sample and the weather correlation between any two of the sub-areas are input to the sub-area weather forecast unit, and the sub-area weather forecast unit outputs the predicted second historical weather forecast information of the multiple sub-areas; Calculating a fifth loss value based on the second historical weather forecast information of the plurality of sub-regions predicted by the sub-region weather forecast unit and the historical weather information of the plurality of sub-regions included in the third training sample at the third historical time point; Inputting the second historical weather forecast information of the multiple sub-regions predicted by the sub-region weather forecast unit into the location weather forecast unit and the weather correlation between any two of the locations to be monitored, and the location weather forecast unit outputs the predicted second historical weather forecast information of the multiple locations to be monitored; Calculating a sixth loss value based on the second historical weather forecast information of the plurality of locations to be monitored predicted by the location weather forecast unit and the historical weather information of the plurality of locations to be monitored included in the third training sample at the third historical time point; performing a third round of parameter optimization on the sub-region weather forecast unit and the location weather forecast unit based on the fifth loss value and the sixth loss value; The trained weather forecast model includes a sub-region weather forecast unit and a location weather forecast unit after completing the third round of parameter optimization; The first loss value is calculated based on the following first loss function: , in, is the first loss value, The sub-region weather forecast unit predicts the The sub-region The value of the meteorological factor, The first training sample includes The sub-region The value of the meteorological factor, is the total number of meteorological factors, is the total number of sub-regions, is the preset parameter, and ; The third loss value is calculated based on the following third loss function: , in, is the third loss value, The first The first position to be monitored The value of the meteorological factor, The second training sample includes The first position to be monitored The value of the meteorological factor, is the total number of locations to be monitored, is the preset parameter, and .
2. The sensor-based fog formation early warning method according to any one of claim 1, characterized in that: Determining the pollutant forecast information of the plurality of locations to be monitored based on the pollutant forecast information of the target area includes: Acquire historical pollutant information of the plurality of sub-regions, and determine the pollutant correlation between any two of the sub-regions based on the historical pollutant information of the plurality of sub-regions; Acquire historical pollutant information of the plurality of locations to be monitored, and determine the pollutant correlation between any two of the locations to be monitored based on the historical pollutant information of the plurality of locations to be monitored; Establish pollutant forecasting models; Training the pollutant prediction model based on the historical pollutant information of the multiple sub-areas, the pollutant correlation between any two of the sub-areas, the historical pollutant information of the multiple locations to be monitored, and the pollutant correlation between any two of the locations to be monitored; The pollutant forecast information of the plurality of locations to be monitored is determined based on the pollutant forecast information of the target area through the trained pollutant forecast model.
3. The sensor-based fog formation early warning method according to any one of claim 1, characterized in that: Based on the weather forecast information and pollutant forecast information of the plurality of locations to be monitored, the fog cluster occurrence area and fog cluster generation information are predicted, including: Acquire historical fog group information of the plurality of locations to be monitored, and confirm the fog group correlation between any two locations to be monitored based on the historical fog group information of the plurality of locations to be monitored; For each of the locations to be monitored, the initial fog cluster occurrence area and initial fog cluster generation information of the location to be monitored are determined by a local fog cluster prediction model based on the weather forecast information and pollutant forecast information of the location to be monitored; The global fog cluster prediction model is used to determine the fog cluster occurrence area and the initial fog cluster generation information of each of the locations to be monitored and the fog cluster correlation between any two locations to be monitored.
4. The sensor-based fog formation early warning method according to any one of claim 1, characterized in that: Based on the fog cluster occurrence area and fog cluster generation information, fog cluster warning information is generated, including: Determine a traffic warning road based on the fog occurrence area; Based on the fog cluster generation information, traffic control measures for the traffic warning road are determined.
5. The sensor-based fog formation early warning method according to any one of claim 1, characterized in that: The target edge computing site determines the real-time state of the fog cluster based on the fog cluster image, including: The convolutional neural network model is used to identify the fog group image and determine the real-time status of the fog group.
6. The sensor-based fog formation early warning method according to claim 5, characterized in that: The fog cluster generation area and fog cluster generation information are updated based on the real-time status of the fog cluster, including: The long short-term memory network model is used to generate real-time adjusted fog cluster occurrence area and fog cluster generation information based on the real-time status of fog clusters at multiple historical time points and the predicted fog cluster occurrence area and fog cluster generation information.
