A real-time air quality monitoring and early warning system based on data crawling

Through a real-time air quality monitoring and early warning system based on data crawling, a correlation map of monitoring sites and sub-regions is established, and a downscaling model is trained, which solves the problem of low prediction efficiency and accuracy of traditional air quality monitoring systems in areas outside the coverage area, and achieves Provides more efficient and accurate air quality monitoring and early warning.

CN118245656BActive Publication Date: 2024-09-10新兴县生态环境监测站
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410488491.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-09-10
Estimated Expiration
2044-04-23

AI Technical Summary

Technical Problem

The existing air quality monitoring system cannot accurately reflect the actual air quality conditions in areas outside the sensor coverage, resulting in low air quality prediction efficiency and accuracy.

Method used

Adopt a real-time air quality monitoring and early warning system based on data crawling, obtain historical data and map information of air quality monitoring sites through the data crawling module, divide sub-regions, establish monitoring site correlation maps, sub-region and monitoring site correlation maps, and train The downscaling model generates the initial and second downscaling models of the sub-region for prediction and correction of real-time air quality index.

Benefits of technology

It improves the sorting out of the correlation between air quality monitoring sites and sub-regions, enhances the prediction accuracy of sub-region air quality index, improves the efficiency and accuracy of real-time air quality monitoring and early warning, and implicitly learns non-linear mapping relationship, able to find appropriate prediction parameters in the parameter space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118245656B
    Figure CN118245656B
Patent Text Reader

Abstract

The present invention provides a real-time air quality monitoring and early warning system based on data crawling, which relates to the field of data processing and comprises: a data crawling module, which is used to crawl historical data and map information of air quality monitoring sites in a target area; a region division module, which is used to divide sub-areas based on map information; a sample acquisition module, which is used to obtain historical air quality indexes of sub-areas; a map establishment module, which is used to establish a monitoring site association map, a sub-area and monitoring site association map, and a sub-area association map; an air quality monitoring and early warning module, which is used to generate an initial air quality index corresponding to each sub-area based on the real-time data of the air quality monitoring sites in the target area, the monitoring site association map, and the sub-area and monitoring site association map through a first downscaling model and a second downscaling model corresponding to the sub-area, and determine the real-time air quality index, and has the advantages of improving the efficiency and accuracy of real-time air quality monitoring and early warning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a real-time air quality monitoring and early warning system based on data crawling. Background Art

[0002] Due to the adverse effects of urban air pollution on human health, it has attracted much attention in recent years, so it is crucial to accurately know the exact air quality of a certain area. At present, the use of neural networks to predict the future air quality of cities is very mature and accurate, but most of the research only processes (predictions, real-time display, analysis, etc.) the spatial areas where sensors have been deployed for monitoring. Due to the limitations of actual deployment, the sensor coverage granularity is usually coarse, which is better for its adjacent areas, but it cannot truly reflect the actual situation of areas far away from the deployment site.

[0003] Therefore, it is necessary to provide a real-time air quality monitoring and early warning system based on data crawling to improve the efficiency and accuracy of real-time air quality monitoring and early warning. Summary of the invention

[0004] The present invention provides a real-time air quality monitoring and early warning system based on data crawling, comprising: a data crawling module, used to crawl historical data of air quality monitoring sites in a target area, wherein the historical data include meteorological data and air quality index, and also used to crawl map information of the target area; a region division module, used to divide a plurality of sub-areas based on the map information of the target area; a sample acquisition module, used to acquire the historical air quality indexes of the plurality of sub-areas; a map establishment module, used to establish a monitoring site association map based on the historical data of the air quality monitoring sites in the target area, and also used to establish a sub-area and monitoring site association map based on the historical data of the air quality monitoring sites in the target area and the historical air quality indexes of the plurality of sub-areas, and also used to establish a sub-area association map based on the historical data of the plurality of sub-areas; a model establishment module, used to establish an initial first downscaling model and an initial second downscaling model corresponding to each of the sub-areas; a model training module, used to train a plurality of models, and to train a plurality of models; A training module is used to train the initial first downscaling model and the initial second downscaling model corresponding to each sub-region based on the historical data of the air quality monitoring stations in the target area, the monitoring station association map, the sub-region and monitoring station association map, and the sub-region association map, so as to generate the first downscaling model and the second downscaling model corresponding to each sub-region; the data crawling module is also used to regularly crawl the real-time data of the air quality monitoring stations in the target area; the air quality monitoring and early warning module is used to generate the initial air quality index corresponding to each sub-region based on the real-time data of the air quality monitoring stations in the target area, the monitoring station association map, and the sub-region and monitoring station association map through the first downscaling model corresponding to each sub-region, and is also used to determine the real-time air quality index corresponding to each sub-region based on the initial air quality index corresponding to each sub-region and the sub-region association map through the second downscaling model corresponding to each sub-region.

[0005] Furthermore, the map establishment module establishes the monitoring site association map based on the historical data of the air quality monitoring sites in the target area, including: for any two air quality monitoring sites in the target area, based on the historical data of the two air quality monitoring sites, calculating the monitoring site correlation coefficients of the two air quality monitoring sites; establishing the monitoring site association map based on the monitoring site correlation coefficients of any two air quality monitoring sites; the map establishment module establishes the sub-area and monitoring site association map based on the historical data of the air quality monitoring sites in the target area and the historical air quality indexes of the multiple sub-areas, including: for any one air quality monitoring site in the target area and any one of the The sub-region, based on the historical air quality index of the air quality monitoring site and the historical air quality index of the sub-region, determines the correlation coefficient between the air quality monitoring site and the monitoring site and sub-region of the sub-region; based on the correlation coefficient between any one of the air quality monitoring sites and any one of the sub-regions, establishes the sub-region and monitoring site association map; the map establishment module establishes the sub-region association map based on the historical data of the multiple sub-regions, including: for any two sub-regions of the target area, based on the historical data of the two sub-regions, calculate the monitoring site correlation coefficient of the two sub-regions; based on the monitoring site correlation coefficient of any two sub-regions, establish the sub-region association map.

[0006] Furthermore, the model training module trains an initial first downscaling model and an initial second downscaling model corresponding to each of the sub-regions based on the historical data of the air quality monitoring sites in the target area, the monitoring site association map, the sub-region and monitoring site association map, and the sub-region association map, and generates a first downscaling model and a second downscaling model corresponding to each of the sub-regions, including: for each of the sub-regions, based on the sub-region and monitoring site association map, determining at least one first monitoring site associated with the sub-region, based on the monitoring site association map, determining at least one second monitoring site associated with each of the first monitoring sites, generating multiple first training samples corresponding to the sub-region based on the historical air quality index of the sub-region, the historical data of each of the first monitoring sites, and the historical data of each of the second monitoring sites, using the multiple first training samples corresponding to the sub-region to train the initial first downscaling model corresponding to the sub-region, and generating the first downscaling model corresponding to the sub-region.

[0007] Further, the initial first downscaling model at least includes a downscaling generation unit and an upscaling generation unit; the model training module uses a plurality of first training samples corresponding to the sub-region to train the initial first downscaling model corresponding to the sub-region to generate the first downscaling model corresponding to the sub-region, including: the downscaling generation unit generates a predicted regional air quality index based on the meteorological data and air quality index of each first monitoring station included in the first training sample and the meteorological data and air quality index of each second monitoring station; the upscaling generation unit generates a predicted regional air quality index based on the regional air quality index generated by the downscaling generation unit and the meteorological data of each first monitoring station included in the first training sample and the meteorological data of each second monitoring station, Generate a predicted site air quality index for each of the first monitoring sites and a predicted site air quality index for each of the second monitoring sites; calculate a downscaling loss based on the predicted area air quality index and the air quality index of the sub-area included in the first training sample; calculate an upscaling loss based on the predicted site air quality index for each of the first monitoring sites, the predicted site air quality index for each of the second monitoring sites, the air quality index of each of the first monitoring sites, and the air quality index of each of the second monitoring sites; optimize the downscaling generation unit and the upscaling generation unit based on the downscaling loss and the upscaling loss; extract the downscaling generation unit of the trained initial first downscaling model as the first downscaling model corresponding to the sub-area.

[0008] Furthermore, the model training module trains an initial first downscaling model and an initial second downscaling model corresponding to each of the sub-regions based on the historical data of the air quality monitoring sites in the target area, the monitoring site association map, the sub-region and monitoring site association map, and the sub-region association map, and generates a first downscaling model and a second downscaling model corresponding to each of the sub-regions, including: for each of the sub-regions, based on the sub-region association map, determining at least one associated sub-region corresponding to the sub-region, based on the historical air quality index of the sub-region and the historical air quality index of each of the associated sub-regions, generating multiple second training samples corresponding to the sub-region, using the multiple second training samples corresponding to the sub-region to train the initial second downscaling model corresponding to the sub-region, and generating a second downscaling model corresponding to the sub-region.

[0009] Furthermore, the model training module generates multiple second training samples corresponding to the sub-area based on the historical air quality index of the sub-area and the historical air quality index of each of the associated sub-areas, including: obtaining the historical air quality index of the sub-area at multiple consecutive historical time points; for each of the associated sub-areas, based on the historical air quality index of the associated sub-area at the multiple consecutive historical time points, generating a historical air quality index change curve corresponding to the associated sub-area; based on the historical air quality index change curve corresponding to each of the associated sub-areas and the historical air quality index of the sub-area at multiple consecutive historical time points, generating a second training sample corresponding to the sub-area.

[0010] Furthermore, the model training module uses multiple second training samples corresponding to the sub-region to train the initial second downscaling model corresponding to the sub-region, including: for each historical air quality index change curve included in the second training sample, performing empirical mode decomposition on the historical air quality index change curve to generate multiple intrinsic modal components and residuals corresponding to the historical air quality index change curve; inputting the historical air quality index of the sub-region at multiple consecutive historical time points and the multiple intrinsic modal components and residuals corresponding to each of the historical air quality index change curves into the initial second downscaling model corresponding to the sub-region for training.

[0011] Furthermore, the air quality monitoring and early warning module generates an initial air quality index corresponding to each sub-region based on the real-time data of the air quality monitoring station in the target area, the monitoring station association map and the sub-region and monitoring station association map through the first downscaling model corresponding to each sub-region, including: for each sub-region, the initial air quality index corresponding to the sub-region is generated based on the real-time data of each first monitoring station and the real-time data of each second monitoring station through the first downscaling model corresponding to the sub-region.

[0012] Furthermore, the air quality monitoring and early warning module determines the real-time air quality index corresponding to each sub-region based on the initial air quality index corresponding to each sub-region and the sub-region association map through the second downscaling model corresponding to each sub-region, including: for each sub-region, obtaining the corresponding initial air quality index of the associated sub-region of the sub-region at multiple real-time monitoring points, generating a real-time air quality index change curve corresponding to the associated sub-region, performing empirical mode decomposition on the real-time air quality index change curve, generating multiple connotation modal components and residuals corresponding to the real-time air quality index change curve, determining the predicted real-time air quality index corresponding to the sub-region based on the multiple connotation modal components and residuals corresponding to each real-time air quality index change curve through the second downscaling model corresponding to the sub-region; determining the global optimal solution based on the predicted real-time air quality index corresponding to each sub-region through an iterative optimization algorithm, and generating the real-time air quality index corresponding to each sub-region.

[0013] Furthermore, the area division module divides the target area into multiple sub-areas based on the map information of the target area, including: determining multiple downscaled areas of the target area based on the map information of the target area; obtaining building information and historical traffic information of each of the downscaled areas; and fusing the multiple downscaled areas based on the building information and historical traffic information of each of the downscaled areas to determine multiple sub-areas.

[0014] Compared with the prior art, the real-time air quality monitoring and early warning system based on data crawling provided by the present invention has at least the following beneficial effects:

[0015] 1. By establishing the association map of monitoring sites, the association map of sub-regions and monitoring sites, and the association map of sub-regions, the air quality association relationship between air quality monitoring sites and sub-regions can be sorted out. On this basis, the first downscaling model corresponding to each sub-region is used based on the real-time data of the air quality monitoring sites in the target area, the association map of monitoring sites, and the association map of sub-regions and monitoring sites to generate a relatively accurate initial air quality index corresponding to each sub-region. The second downscaling model corresponding to each sub-region is used based on the sub-region association map to make a secondary correction to the initial air quality index corresponding to the sub-region, further improving the accuracy of the predicted real-time air quality index corresponding to the sub-region, and improving the efficiency and accuracy of real-time air quality monitoring and early warning in the downscaling scenario.

[0016] 2. By establishing a downscaling generation unit and an upscaling generation unit, the downscaling generation unit and the upscaling generation unit are optimized based on the downscaling loss and the upscaling loss, and the complex nonlinear mapping relationship between the air quality index of the sub-region, the meteorological data and air quality index of the first monitoring station and the meteorological data and air quality index of the second monitoring station is implicitly learned, so that the second downscaling model can find an initialization parameter in the parameter space that can better predict the air quality index of the sub-region.

[0017] 3. Based on the building information and historical traffic information of each downscaled area, multiple downscaled areas are fused to quickly determine multiple sub-areas. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] 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:

[0019] Figure 1 It is a module schematic diagram of a real-time air quality monitoring and early warning system based on data crawling according to some embodiments of this specification;

[0020] Figure 2 is a schematic diagram of a process of training an initial first downscaling model corresponding to a sub-region according to some embodiments of this specification;

[0021] Figure 3 It is a structural schematic diagram of a downscaling generation unit according to some embodiments of this specification. DETAILED DESCRIPTION

[0022] 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.

[0023] Figure 1 is a module diagram of a real-time air quality monitoring and early warning system based on data crawling according to some embodiments of this specification, such as Figure 1 As shown, a real-time air quality monitoring and early warning system based on data crawling may include a data crawling module, a region division module, a sample acquisition module, a graph building module, a model building module, a model training module and an air quality monitoring and early warning module.

[0024] The data crawling module can be used to crawl historical data of air quality monitoring stations in the target area.

[0025] Among them, historical data includes meteorological data and air quality index (AirQualityIndex, AQI), and is also used to crawl map information of the target area. Meteorological data can be data on meteorological factors that can affect air quality. For example, air pressure, temperature, humidity, wind direction, wind speed, cloud conditions, visibility, etc.

[0026] The data crawling module can use Tasker provided by the Android platform to crawl the historical data of the air quality monitoring stations in the target area. Specifically, the data crawling module can use Tasker to trigger a task at a fixed time, and use Intent in the task to start an Activity, which contains the logic of crawling the historical data of the air quality monitoring stations in the target area.

[0027] The area division module can be used to divide the target area into multiple sub-areas based on the map information of the target area.

[0028] The data crawling module can also be used to crawl map information of the target area.

[0029] In some embodiments, the area division module divides the target area into multiple sub-areas based on the map information of the target area, including:

[0030] Based on the map information of the target area, multiple downscaling areas of the target area are determined;

[0031] Obtain building information and historical traffic information for each downscaled area;

[0032] Based on the building information and historical traffic information of each downscaled area, multiple downscaled areas are fused to determine multiple sub-areas.

[0033] Specifically, the region division module may divide the target area into a plurality of downscaling areas based on the map information of the target area according to the preset downscaling area size.

[0034] For each downscaled area, the area division module may determine the target building density of the downscaled area based on the building information of the downscaled area, wherein the target building may be a building that affects the air quality, such as a factory, etc. For each downscaled area, the area division module may determine the traffic flow of the downscaled area based on the historical traffic information of the downscaled area.

[0035] For each downscaling region, a regional adjustment parameter of the downscaling region may be determined based on the target building density and traffic flow of the downscaling region, and the size of the downscaling region may be adjusted based on the regional adjustment parameter.

[0036] For example, the size of the downscaled region can be adjusted based on the following formula:

[0037] S i =S0*P i

[0038]

[0039] Among them, S i is the size of the i-th adjusted downscaling area, S0 is the preset downscaling area size, P i is the regional adjustment parameter corresponding to the i-th downscaling area, a1 and a2 are preset weights, a1+a2=1, D i is the target building density corresponding to the i-th downscaling area, F i is the traffic flow corresponding to the i-th downscaling area, M1 and M2 are preset normalization parameters, M1>0 and M2>0.

[0040] Furthermore, after the size adjustment of each downscaled area is completed, the overlapping downscaled areas can be merged into one sub-area. In addition, if the density difference of the target building density of two downscaled areas is less than the preset density difference threshold, the traffic flow difference is less than the preset traffic flow difference threshold, and the distance between the centers of the downscaled areas is less than the preset distance threshold, the two downscaled areas can be merged into the same sub-area.

[0041] The sample acquisition module can be used to obtain historical air quality indexes of multiple sub-areas.

[0042] Specifically, air quality equipment may be provided in each sub-area to obtain a historical air quality index of the sub-area.

[0043] The map establishment module can be used to establish a monitoring site association map based on the historical data of the air quality monitoring sites in the target area, and can also be used to establish a sub-region and monitoring site association map based on the historical data of the air quality monitoring sites in the target area and the historical air quality indexes of multiple sub-regions, and can also be used to establish a sub-region association map based on the historical data of multiple sub-regions.

[0044] In some embodiments, the map building module builds a monitoring site association map based on historical data of air quality monitoring sites in the target area, including:

[0045] For any two air quality monitoring stations in the target area, the monitoring station correlation coefficients of the two air quality monitoring stations are calculated based on the historical data of the two air quality monitoring stations;

[0046] Based on the monitoring site correlation coefficients of any two air quality monitoring sites, a monitoring site association map is established.

[0047] Specifically, the monitoring site correlation coefficient of two air quality monitoring sites can be calculated based on the historical data of the two air quality monitoring sites according to the following formula:

[0048]

[0049] Among them, ρ (i,j) represents the correlation coefficient between the i-th air quality monitoring station and the j-th air quality monitoring station, D() represents variance calculation, cov() represents covariance calculation, X i represents the historical data of the ith air quality monitoring station, X j Represents the historical data of the jth air quality monitoring station.

[0050] When the monitoring site correlation coefficient of any two air quality monitoring sites is greater than a preset monitoring site correlation coefficient threshold, there is an association relationship between the two air quality monitoring sites, and the nodes representing the air quality monitoring sites in the monitoring site association map can be connected by edges.

[0051] In some embodiments, the map creation module creates a map of associations between sub-regions and monitoring sites based on historical data of air quality monitoring sites in the target region and historical air quality indexes of multiple sub-regions, including:

[0052] For any air quality monitoring site and any sub-region of the target area, the correlation coefficient between the air quality monitoring site and the sub-region is determined based on the historical air quality index of the air quality monitoring site and the historical air quality index of the sub-region;

[0053] Based on the correlation coefficient between any air quality monitoring station and any sub-region’s monitoring station, a sub-region and monitoring station association map is established.

[0054] The method of establishing the association map between sub-regions and monitoring sites is similar to that of establishing the association map between monitoring sites, which will not be repeated here.

[0055] In some embodiments, the map building module builds a sub-region association map based on historical data of multiple sub-regions, including:

[0056] For any two sub-areas of the target area, the correlation coefficient of the monitoring sites in the two sub-areas is calculated based on the historical data of the two sub-areas;

[0057] Based on the correlation coefficient of monitoring stations in any two sub-regions, a sub-region association map is established.

[0058] The method of establishing a sub-region association map is similar to that of establishing a monitoring site association map, which will not be repeated here.

[0059] The model building module can be used to build an initial first downscaling model and an initial second downscaling model corresponding to each sub-region.

[0060] The initial first downscaling model may be a generative adversarial network (GAN).

[0061] In some embodiments, the initial first downscaling model includes at least a downscaling generation unit and an upscaling generation unit. Figure 3 is a schematic diagram of the structure of the downscaling generation unit according to some embodiments of the present specification. As an example only, the structure of the downscaling generation unit can be as follows Figure 3 shown.

[0062] The initial second downscaling model may be a long short-term memory (LSTM) model.

[0063] The model training module can be used to train the initial first downscaling model and the initial second downscaling model corresponding to each sub-region based on the historical data of the air quality monitoring stations in the target area, the monitoring station association map, the sub-region and monitoring station association map, and the sub-region association map, and generate the first downscaling model and the second downscaling model corresponding to each sub-region.

[0064] In some embodiments, the model training module trains an initial first downscaling model and an initial second downscaling model corresponding to each sub-region based on historical data of air quality monitoring sites in the target area, a monitoring site association map, a sub-region and monitoring site association map, and a sub-region association map, and generates a first downscaling model and a second downscaling model corresponding to each sub-region, including:

[0065] For each sub-region, based on the association map between the sub-region and the monitoring sites, at least one first monitoring site associated with the sub-region is determined; based on the monitoring site association map, at least one second monitoring site associated with each first monitoring site is determined; based on the historical air quality index of the sub-region, the historical data of each first monitoring site and the historical data of each second monitoring site, a plurality of first training samples corresponding to the sub-region are generated; the initial first downscaling model corresponding to the sub-region is trained using the plurality of first training samples corresponding to the sub-region, and a first downscaling model corresponding to the sub-region is generated.

[0066] Specifically, the first training sample may include the meteorological data and air quality index of each first monitoring site at a certain historical time point and the meteorological data and air quality index of each second monitoring site at the historical time point, and the label of the first training sample is the historical air quality index of the sub-area at the historical time point.

[0067] Figure 2 is a schematic diagram of a process of training an initial first downscaling model corresponding to a sub-region according to some embodiments of this specification, such as Figure 2 As shown, in some embodiments, the model training module uses a plurality of first training samples corresponding to the sub-region to train the initial first downscaling model corresponding to the sub-region to generate the first downscaling model corresponding to the sub-region, including:

[0068] The downscaling generation unit generates a predicted regional air quality index based on the meteorological data and air quality index of each first monitoring site and the meteorological data and air quality index of each second monitoring site included in the first training sample;

[0069] The upscaling generation unit generates a predicted site air quality index of each first monitoring site and a predicted site air quality index of each second monitoring site based on the regional air quality index generated by the downscaling generation unit and the meteorological data of each first monitoring site and the meteorological data of each second monitoring site included in the first training sample;

[0070] The downscaling loss is calculated based on the air quality index of the predicted area and the air quality index of the sub-area included in the first training sample. Specifically, the downscaling loss can be calculated based on the difference between the air quality index of the predicted area and the air quality index of the sub-area included in the first training sample;

[0071] Based on the predicted site air quality index of each first monitoring site, the predicted site air quality index of each second monitoring site, the air quality index of each first monitoring site and the air quality index of each second monitoring site, the upscaling loss is calculated. Specifically, the upscaling loss can be calculated based on the difference between the predicted site air quality index and the air quality index of each first monitoring site and the difference between the predicted site air quality index and the air quality index of each second monitoring site;

[0072] Based on the downscaling loss and upscaling loss, the downscaling generation unit and the upscaling generation unit are optimized;

[0073] The downscaling generation unit of the trained initial first downscaling model is extracted as the first downscaling model corresponding to the sub-region.

[0074] The data crawling module can also be used to periodically crawl real-time data from air quality monitoring stations in the target area.

[0075] In some embodiments, the model training module trains an initial first downscaling model and an initial second downscaling model corresponding to each sub-region based on historical data of air quality monitoring sites in the target area, a monitoring site association map, a sub-region and monitoring site association map, and a sub-region association map, and generates a first downscaling model and a second downscaling model corresponding to each sub-region, including:

[0076] For each sub-region, based on the sub-region association map, at least one associated sub-region corresponding to the sub-region is determined, and based on the historical air quality index of the sub-region and the historical air quality index of each associated sub-region, a plurality of second training samples corresponding to the sub-region are generated, and an initial second downscaling model corresponding to the sub-region is trained using the plurality of second training samples corresponding to the sub-region to generate a second downscaling model corresponding to the sub-region.

[0077] In some embodiments, the model training module generates a plurality of second training samples corresponding to the sub-region based on the historical air quality index of the sub-region and the historical air quality index of each associated sub-region, including:

[0078] Obtain the historical air quality index of the sub-region at multiple consecutive historical time points;

[0079] For each associated sub-region, based on the historical air quality index of the associated sub-region at multiple consecutive historical time points, a historical air quality index change curve corresponding to the associated sub-region is generated;

[0080] Based on the historical air quality index change curve corresponding to each associated sub-region and the historical air quality index of the sub-region at multiple consecutive historical time points, a second training sample corresponding to the sub-region is generated.

[0081] Specifically, the second training sample may include a historical air quality index change curve corresponding to each associated sub-region, and the label of the second training sample may be the historical air quality index of the sub-region at the multiple consecutive historical time points.

[0082] In some embodiments, the model training module uses a plurality of second training samples corresponding to the sub-regions to train the initial second downscaling model corresponding to the sub-regions, including:

[0083] For each historical air quality index change curve included in the second training sample, performing empirical mode decomposition on the historical air quality index change curve to generate multiple connotation mode components and residuals corresponding to the historical air quality index change curve;

[0084] The historical air quality index of the sub-region at multiple consecutive historical time points and the multiple intrinsic modal components and residuals corresponding to each historical air quality index change curve are input into the initial second downscaling model corresponding to the sub-region for training.

[0085] Specifically, the empirical mode decomposition of the historical air quality index change curve can be performed through the following process:

[0086] Find all extreme points of the historical air quality index change curve;

[0087] Fit the envelope of the extreme points, that is, for all the maximum points, fit the upper envelope through the cubic spline function; similarly, fit the lower envelope for all the minimum points;

[0088] Calculate the mean envelope, which is the mean of the upper and lower envelopes;

[0089] The historical air quality index change curve is subtracted from the mean envelope to obtain an intermediate signal;

[0090] Determine whether the intermediate signal satisfies two constraints. If it does, it is an intrinsic modal component. If it does not, it returns to repeated iterations. The constraints include: 1. In the entire data segment, the number of extreme points and the number of zero-crossing points must be equal or the difference cannot exceed one at most; 2. At any time, the average value of the upper envelope formed by the local maximum point and the lower envelope formed by the local minimum point is zero, that is, the upper and lower envelopes are locally symmetrical with respect to the time axis;

[0091] Assuming that the intermediate signal is the first high-frequency component decomposed and recorded as intrinsic modal component 1, the mean envelope is a low-frequency component relative to intrinsic modal component 1. Then the mean envelope is treated as the original signal to continue decomposing the next intrinsic modal component until the residual component is a monotonic function or a constant, and the decomposition is stopped.

[0092] The air quality monitoring and early warning module can be used to generate an initial air quality index corresponding to each sub-region based on the real-time data of the air quality monitoring stations in the target area, the monitoring station association map, and the sub-region and monitoring station association map through the first downscaling model corresponding to each sub-region, and is also used to determine the real-time air quality index corresponding to each sub-region based on the initial air quality index corresponding to each sub-region and the sub-region association map through the second downscaling model corresponding to each sub-region.

[0093] In some embodiments, the air quality monitoring and early warning module generates an initial air quality index corresponding to each sub-region based on the real-time data of the air quality monitoring station of the target area, the monitoring station association map, and the sub-region and monitoring station association map through the first downscaling model corresponding to each sub-region, including:

[0094] For each sub-region, an initial air quality index corresponding to the sub-region is generated based on the real-time data of each first monitoring station and the real-time data of each second monitoring station through the first downscaling model corresponding to the sub-region.

[0095] In some embodiments, the air quality monitoring and early warning module determines the real-time air quality index corresponding to each sub-region based on the initial air quality index corresponding to each sub-region and the sub-region association map through the second downscaling model corresponding to each sub-region, including:

[0096] For each sub-region, the corresponding initial air quality index of the associated sub-region at multiple real-time monitoring points is obtained, a real-time air quality index change curve corresponding to the associated sub-region is generated, and the real-time air quality index change curve is subjected to empirical mode decomposition to generate multiple connotation modal components and residuals corresponding to the real-time air quality index change curve, and the predicted real-time air quality index corresponding to the sub-region is determined based on the multiple connotation modal components and residuals corresponding to each real-time air quality index change curve through the second downscaling model corresponding to the sub-region;

[0097] The global optimal solution is determined based on the predicted real-time air quality index corresponding to each sub-area through an iterative optimization algorithm, and the real-time air quality index corresponding to each sub-area is generated, wherein the iterative optimization algorithm can be a gradient descent method.

[0098] In some embodiments, the air quality monitoring and early warning module may also push the determined real-time air quality index corresponding to each sub-area to the user end.

[0099] 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 real-time air quality monitoring and early warning system based on data crawling, characterized in that: include: A data crawling module, used to crawl historical data of air quality monitoring stations in a target area, wherein the historical data includes meteorological data and air quality index, and is also used to crawl map information of the target area; A region division module, used for dividing the target region into a plurality of sub-regions based on the map information of the target region; A sample acquisition module, used to obtain the historical air quality indexes of the multiple sub-areas; A map establishment module, used to establish a monitoring site association map based on the historical data of the air quality monitoring site in the target area, and also used to establish a sub-area and monitoring site association map based on the historical data of the air quality monitoring site in the target area and the historical air quality indexes of the multiple sub-areas, and also used to establish a sub-area association map based on the historical data of the multiple sub-areas; A model building module, used for building an initial first downscaling model and an initial second downscaling model corresponding to each of the sub-regions; A model training module is used to train an initial first downscaling model and an initial second downscaling model corresponding to each sub-region based on historical data of air quality monitoring sites in the target area, monitoring site association maps, sub-region and monitoring site association maps, and sub-region association maps, and generate a first downscaling model and a second downscaling model corresponding to each sub-region; The data crawling module is also used to regularly crawl the real-time data of the air quality monitoring stations in the target area; The air quality monitoring and early warning module is used to generate an initial air quality index corresponding to each sub-region based on the real-time data of the air quality monitoring station in the target area, the monitoring station association map and the sub-region and monitoring station association map through the first downscaling model corresponding to each sub-region, and is also used to determine the real-time air quality index corresponding to each sub-region based on the initial air quality index corresponding to each sub-region and the sub-region association map through the second downscaling model corresponding to each sub-region; The model training module trains an initial first downscaling model and an initial second downscaling model corresponding to each sub-region based on historical data of the air quality monitoring sites in the target area, a monitoring site association map, a sub-region and monitoring site association map, and a sub-region association map, and generates a first downscaling model and a second downscaling model corresponding to each sub-region, including: For each of the sub-regions, based on a map of associations between the sub-region and monitoring sites, determining at least one first monitoring site associated with the sub-region, based on the map of associations between the monitoring sites, determining at least one second monitoring site associated with each of the first monitoring sites, generating a plurality of first training samples corresponding to the sub-region based on a historical air quality index of the sub-region, historical data of each of the first monitoring sites, and historical data of each of the second monitoring sites, training an initial first downscaling model corresponding to the sub-region using the plurality of first training samples corresponding to the sub-region, and generating a first downscaling model corresponding to the sub-region; The initial first downscaling model at least includes a downscaling generation unit and an upscaling generation unit; The model training module trains the initial first downscaling model corresponding to the sub-region using the plurality of first training samples corresponding to the sub-region to generate the first downscaling model corresponding to the sub-region, including: The downscaling generation unit generates a predicted regional air quality index based on the meteorological data and air quality index of each first monitoring site and the meteorological data and air quality index of each second monitoring site included in the first training sample; The upscaling generation unit generates a predicted site air quality index of each first monitoring site and a predicted site air quality index of each second monitoring site based on the regional air quality index generated by the downscaling generation unit and the meteorological data of each first monitoring site and the meteorological data of each second monitoring site included in the first training sample; Calculating a downscaling loss based on the air quality index of the predicted area and the air quality index of the sub-area included in the first training sample; calculating upscaling losses based on the predicted site air quality index of each first monitoring site, the predicted site air quality index of each second monitoring site, the air quality index of each first monitoring site, and the air quality index of each second monitoring site; Based on the downscaling loss and the upscaling loss, optimizing the downscaling generation unit and the upscaling generation unit; The downscaling generation unit of the trained initial first downscaling model is extracted as the first downscaling model corresponding to the sub-region.

2. A real-time air quality monitoring and early warning system based on data crawling according to claim 1, characterized in that: The map establishment module establishes the monitoring site association map based on the historical data of the air quality monitoring sites in the target area, including: For any two air quality monitoring sites in the target area, calculating the monitoring site correlation coefficients of the two air quality monitoring sites based on historical data of the two air quality monitoring sites; Establishing a correlation map of the monitoring sites based on the monitoring site correlation coefficients of any two of the air quality monitoring sites; The map establishment module establishes a map of association between the sub-regions and the monitoring sites based on the historical data of the air quality monitoring site in the target area and the historical air quality indexes of the multiple sub-regions, including: For any air quality monitoring site and any sub-area of ​​the target area, determining a monitoring site-sub-area correlation coefficient between the air quality monitoring site and the sub-area based on a historical air quality index of the air quality monitoring site and a historical air quality index of the sub-area; Based on the correlation coefficient between any one of the air quality monitoring sites and any one of the sub-areas' monitoring sites and sub-areas, establishing a correlation map between the sub-areas and the monitoring sites; The map establishment module establishes the sub-region association map based on the historical data of the multiple sub-regions, including: For any two sub-areas of the target area, based on the historical data of the two sub-areas, calculating the correlation coefficient of the monitoring sites of the two sub-areas; Based on the correlation coefficients of the monitoring sites in any two of the sub-areas, a correlation map of the sub-areas is established.

3. A real-time air quality monitoring and early warning system based on data crawling according to claim 1, characterized in that: The model training module trains an initial first downscaling model and an initial second downscaling model corresponding to each sub-region based on historical data of the air quality monitoring site in the target area, a monitoring site association map, a sub-region and monitoring site association map, and a sub-region association map, and generates a first downscaling model and a second downscaling model corresponding to each sub-region, including: For each of the sub-regions, based on the sub-region association map, at least one associated sub-region corresponding to the sub-region is determined, based on the historical air quality index of the sub-region and the historical air quality index of each of the associated sub-regions, a plurality of second training samples corresponding to the sub-region are generated, and an initial second downscaling model corresponding to the sub-region is trained using the plurality of second training samples corresponding to the sub-region to generate a second downscaling model corresponding to the sub-region.

4. A real-time air quality monitoring and early warning system based on data crawling according to claim 3, characterized in that: The model training module generates a plurality of second training samples corresponding to the sub-region based on the historical air quality index of the sub-region and the historical air quality index of each of the associated sub-regions, including: Obtaining a historical air quality index of the sub-region at a plurality of consecutive historical time points; For each of the associated sub-areas, generating a historical air quality index change curve corresponding to the associated sub-area based on the historical air quality index of the associated sub-area at the plurality of consecutive historical time points; Based on the historical air quality index change curve corresponding to each associated sub-region and the historical air quality index of the sub-region at multiple consecutive historical time points, a second training sample corresponding to the sub-region is generated.

5. A real-time air quality monitoring and early warning system based on data crawling according to claim 4, characterized in that: The model training module uses a plurality of second training samples corresponding to the sub-region to train the initial second downscaling model corresponding to the sub-region, including: For each historical air quality index change curve included in the second training sample, performing empirical mode decomposition on the historical air quality index change curve to generate a plurality of connotation mode components and residuals corresponding to the historical air quality index change curve; The historical air quality index of the sub-region at multiple consecutive historical time points and multiple connotation modal components and residuals corresponding to each historical air quality index change curve are input into the initial second downscaling model corresponding to the sub-region for training.

6. A real-time air quality monitoring and early warning system based on data crawling according to claim 5, characterized in that: The air quality monitoring and early warning module generates an initial air quality index corresponding to each sub-region based on the real-time data of the air quality monitoring station in the target area, the monitoring station association map, and the sub-region and monitoring station association map through the first downscaling model corresponding to each sub-region, including: For each of the sub-regions, an initial air quality index corresponding to the sub-region is generated based on the real-time data of each of the first monitoring sites and the real-time data of each of the second monitoring sites through a first downscaling model corresponding to the sub-region.

7. A real-time air quality monitoring and early warning system based on data crawling according to claim 6, characterized in that: The air quality monitoring and early warning module determines the real-time air quality index corresponding to each sub-region based on the initial air quality index corresponding to each sub-region and the sub-region association map through the second downscaling model corresponding to each sub-region, including: For each of the sub-regions, obtaining the initial air quality index corresponding to the associated sub-region of the sub-region at multiple real-time monitoring points, generating a real-time air quality index change curve corresponding to the associated sub-region, performing empirical mode decomposition on the real-time air quality index change curve, generating multiple connotation modal components and residuals corresponding to the real-time air quality index change curve, and determining the predicted real-time air quality index corresponding to the sub-region based on the multiple connotation modal components and residuals corresponding to each real-time air quality index change curve through a second downscaling model corresponding to the sub-region; The global optimal solution is determined based on the predicted real-time air quality index corresponding to each sub-area through an iterative optimization algorithm, and the real-time air quality index corresponding to each sub-area is generated.

8. A real-time air quality monitoring and early warning system based on data crawling according to any one of claims 1 to 7, characterized in that: The area division module divides the target area into a plurality of sub-areas based on the map information of the target area, including: Based on the map information of the target area, determining a plurality of downscaling areas of the target area; Obtaining building information and historical traffic information of each downscaled area; Based on the building information and historical traffic information of each of the downscaled regions, the multiple downscaled regions are fused to determine a plurality of sub-regions.