Deep spatial-temporal similarity method for air quality prediction
11512864 · 2022-11-29
Assignee
Inventors
- Wei Fang (Wuxi, CN)
- Runsu Zhu (Wuxi, CN)
- Hengyang Lu (Wuxi, CN)
- Xin Zhang (Wuxi, CN)
- Jun Sun (Wuxi, CN)
- Xiaojun Wu (Wuxi, CN)
Cpc classification
F24F11/39
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
G06Q10/06
PHYSICS
G06F17/00
PHYSICS
G06F17/18
PHYSICS
F24F11/49
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F24F2110/65
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
G06Q10/04
PHYSICS
International classification
G06Q10/06
PHYSICS
G06Q10/04
PHYSICS
G06F17/00
PHYSICS
F24F11/39
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
Abstract
The present disclosure discloses a deep spatial-temporal similarity method for air quality prediction, and belongs to the technical field of environmental protection. When the method predicts air quality-related indexes of a target site, a temporal change of air pollution and a spatial diffusion relationship are effectively combined, and then spatial-temporal similarity sites of the target site are selected; air quality monitoring data collected by the target site, the spatial-temporal similarity site of the target site and geographical neighbour sites of the target site and meteorological data are respectively taken as inputs of a long short term memory network (LSTM) model to obtain uncorrelated output results, and then predicted values of air quality-related index data of the target site are obtained in a mode of support vector regression (SVR) integration. The present disclosure effectively combines the temporal change of air pollution with the spatial diffusion relationship, and namely proposes a more efficient way to select more highly relevant data to predict air quality so that a prediction result is more accurate.
Claims
1. A method for air quality prediction based on deep spatial-temporal similarity, wherein the method is for predicting air quality-related index data of a target site, and the method comprises: S1, acquiring air quality monitoring data collected by each air quality monitoring site and meteorological data, the air quality monitoring data comprising historical data of CO, NO.sub.2, SO.sub.2, O.sub.3, PM10 and PM2.5, and the meteorological data comprising historical data of temperature, humidity, wind speed and wind direction; S2, determining similarity coefficients between each monitoring target in air quality monitoring data collected by the target site and the meteorological data and predicted air quality-related indexes according to an improved Granger causality; S3, using a dynamic time folding method to calculate a similarity value between each monitoring target in the air quality monitoring data collected by each site and the meteorological data and a corresponding monitoring target collected by the target site; S4, determining spatial-temporal similarity between each air quality monitoring site and the target site according to the similarity coefficient determined in S2 and the similarity value determined in S3; S5, selecting a predetermined number of air quality monitoring sites as spatial-temporal similarity sites of the target site according to a magnitude of the spatial-temporal similarity between each air quality monitoring site and the target site determined in S4; and S6, taking the air quality monitoring data collected by the target site and the meteorological data, air quality monitoring data collected by the spatial-temporal similarity site of the target site and the meteorological data, and air quality monitoring data collected by geographical neighbour sites determined according to location information and the meteorological data as inputs of a long short term memory network (LSTM) model respectively to obtain corresponding output results, and then performing support vector regression (SVR) integration on each output result corresponding to the LSTM model to obtain predicted values of the air quality-related index data of the target site; wherein the air quality-related index is any monitoring target in the air quality monitoring data.
2. The method according to claim 1, wherein determining the similarity coefficients between each monitoring target in the air quality monitoring data collected by the target site and the meteorological data and the predicted air quality-related indexes according to the improved Granger causality comprises: determining the similarity coefficient between each monitoring target in the air quality monitoring data collected by the target site and the meteorological data and the predicted air quality-related index according to Formula (3), and constituting a weight vector W:
W=SGC(A,B) (1) wherein A represents the predicted air quality-related index, and B represents other monitoring targets other than the air quality-related index in the air quality monitoring data collected by the target site and the meteorological data.
3. The method according to claim 2, wherein determining the similarity coefficient between each monitoring target in the air quality monitoring data and the meteorological data and the predicted air quality-related index according to Formula (1) comprises: acquiring the air quality monitoring data collected by the target site and the meteorological data; performing linear regression processing on the air quality monitoring data collected by the target site and the meteorological data twice to obtain the similarity coefficient between each monitoring target and the predicted air quality-related index: S2.1, selecting m historical data in sequence according to time to constitute A and B;
A=[a.sub.1,a.sub.2, . . . ,a.sub.p, . . . ,a.sub.m-1,a.sub.m].sup.T
B=[b.sub.1,b.sub.2, . . . ,b.sub.q, . . . ,b.sub.m-1,b.sub.m].sup.T wherein a.sub.p represents the historical data of the air quality-related index in the air quality monitoring data collected by the target site; b.sub.q represents the historical data of the other monitoring targets other than the air quality-related index in the air quality monitoring data collected by the target site and the meteorological data; m represents a number of the historical data; S2.2, performing first-time linear regression operation: selecting i+1 to m.sub.th data in A to constitute A.sub.1,i=[a.sub.i+1,a.sub.i+2, . . . , a.sub.m].sup.T; generating a lag matrix Z.sub.1,i according to the data in A;
e.sub.1,i=f.sub.LR(A.sub.1,i|Z.sub.1,i) obtaining an error vector e.sub.1={e.sub.1,i}; f.sub.LR representing linear regression operation; taking a minimum error vector e.sub.1,s=min(e.sub.1), wherein s is lag time corresponding to a minimum value in the error vector e.sub.1; S2.3, performing second-time linear regression operation: selecting j+s+1 to m.sub.th data in A to constitute A.sub.2,j=[a.sub.j+s+1, a.sub.j+s+2, . . . , a.sub.m].sup.T; generating a lag matrix Z.sub.2,j according to the data in A and B:
e.sub.2,j=f.sub.LR(A.sub.2,j|Z.sub.2,j) obtaining an error vector e2={e.sub.2,j}; taking a smallest error vector e.sub.2,final=min(e.sub.2) in e2; S2.4, mapping e.sub.2,final into an interval of (0,1]:
4. The method according to claim 3, wherein determining the spatial-temporal similarity between each air quality monitoring site and the target site according to the similarity coefficient determined in S2 and the similarity value determined in S3 comprises: recording a vector composed of the similarity values between each monitoring target in the air quality monitoring data and the meteorological data and the corresponding monitoring target collected by the target site calculated in S3 as DTW.sub.R; recording a vector composed of the similarity coefficients between each monitoring target in the air quality monitoring data and the meteorological data and the predicted air quality-related index determined in S2 as a weight vector W; and multiplying the weight vector W by the distance vector DTW.sub.R to take a reciprocal to obtain the spatial-temporal similarity between each air quality monitoring site and the target site.
5. The method according to claim 4, wherein using the dynamic time folding method to calculate the similarity value between each monitoring target in the air quality monitoring data collected by each site and the meteorological data and the corresponding monitoring target collected by the target site comprises: taking the historical data of the same monitoring index collected by the target site and any site of other sites respectively as R and T:
R=r.sub.1,r.sub.2, . . . ,r.sub.p, . . . ,r.sub.m
T=t.sub.1,t.sub.2, . . . ,t.sub.q, . . . ,t.sub.m constructing to obtain a m×m matrix, matrix elements (p,q) representing a distance d(r.sub.p,t.sub.q) between two points of r.sub.p and t.sub.q; performing a DTW process on the constructed m×m matrix to obtain a DTW distance as a similarity value of the corresponding monitoring index.
6. The method according to claim 5, wherein the distance d(r.sub.p,t.sub.q) is an Euclidean distance between the two points of r.sub.p and t.sub.q.
7. The method according to claim 1, further comprising: after the S1 and before S2: pre-processing the air quality monitoring data collected by each air quality monitoring site and the meteorological data acquired in S1.
8. The method according to claim 7, wherein the pre-processing comprises: complementing missing data by using a method of interpolation or mean values.
9. The method according to claim 1, wherein taking the air quality monitoring data collected by the target site and the meteorological data, the air quality monitoring data collected by the spatial-temporal similarity site of the target site and the meteorological data, and the air quality monitoring data collected by the geographical neighbour sites determined according to the location information and the meteorological data as the inputs of the long short term memory network (LSTM) model respectively comprises: taking the historical data of the air quality-related indexes in the air quality monitoring data collected by the target site as input data of the LSTM model to obtain a first output result; taking the historical data of the monitoring targets other than the air quality-related indexes in the air quality monitoring data collected by the target site and the historical data of the meteorological data as input data of the LSTM model to obtain a second output result; taking the historical data of the air quality-related indexes in the air quality monitoring data collected by the spatial-temporal similarity site of the target site as input data of the LSTM model to obtain a third output result; taking the historical data of the monitoring target other than the air quality-related indexes in the air quality monitoring data collected by the spatial-temporal similarity site of the target site and the historical data of the meteorological data as input data of the LSTM model to obtain a fourth output result; and taking the air quality monitoring data collected by the geographical neighbour site determined according to the location information and the historical data of the meteorological data as input data of the LSTM model to obtain a fifth output result.
10. The method according to claim 9, wherein performing support vector regression (SVR) integration on each output result corresponding to the LSTM model to obtain the predicted values of the air quality-related index data of the target site comprises: performing support vector regression (SVR) integration on the first output result to the fifth output result of the LSTM model to obtain the predicted values of the air quality-related index data of the target site.
Description
BRIEF DESCRIPTION OF FIGURES
(1) In order to illustrate the technical solutions in the example of the present disclosure more clearly, the following will briefly introduce the accompanying drawings needing to be used in the description of the examples. Obviously, the accompanying drawings in the following description are only some examples of the present disclosure. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
DETAILED DESCRIPTION
(16) In order to make the objects, technical solutions and advantages of the present disclosure more clear, implementations of the present disclosure will be described below in detail with reference to the accompanying drawings.
Example 1
(17) This example provides a deep spatial-temporal similarity method for air quality prediction, the method is used for predicting air quality-related index data of a target site, and the method includes:
(18) S1 acquiring air quality monitoring data collected by each air quality monitoring site and meteorological data, the air quality monitoring data including historical data of CO, NO.sub.2, SO.sub.2, O.sub.3, PM10 and PM2.5, and the meteorological data including historical data of temperature, humidity, wind speed and wind direction;
(19) S2 determining similarity coefficients between each monitoring target in air quality monitoring data collected by the target site and the meteorological data and predicted air quality-related indexes according to an improved Granger causality;
(20) S3 using a dynamic time folding method to calculate a similarity value between each monitoring target in the air quality monitoring data collected by each site and the meteorological data and a corresponding monitoring target collected by the target site;
(21) S4 determining spatial-temporal similarity between each air quality monitoring site and the target site according to the similarity coefficient determined in S2 and the similarity value determined in S3;
(22) S5 selecting a predetermined number of air quality monitoring sites as spatial-temporal similarity sites of the target site according to a magnitude of the spatial-temporal similarity between each air quality monitoring site and the target site determined in S4; and
(23) S6 taking the air quality monitoring data collected by the target site and the meteorological data, air quality monitoring data collected by the spatial-temporal similarity site of the target site and the meteorological data, and air quality monitoring data collected by geographical neighbour sites determined according to location information and the meteorological data as inputs of a long short term memory network (LSTM) model respectively to obtain corresponding output results, and then performing support vector regression (SVR) integration on each output result corresponding to the LSTM model to obtain predicted values of the air quality-related index data of the target site;
(24) The air quality-related index is any monitoring target in the air quality monitoring data, for example, if PM2.5 is to be predicted, in the above-mentioned S2, the similarity coefficients between CO, NO.sub.2, SO.sub.2, O.sub.3, PM10 and PM2.5, and the meteorological data including the temperature, humidity, wind speed and wind direction and PM2.5 are determined; where the similarity coefficient between PM2.5 and itself is 1; the calculation process of the similarity coefficients between CO, NO.sub.2, SO.sub.2, O.sub.3, PM10 the temperature, the humidity, the wind speed and the wind direction and PM2.5 is as follows, and the calculation process of the similarity coefficient between PM10 and PM2.5 is described as an example:
(25) S2.1, selecting m historical data in sequence according to time to constitute A and B;
A=[a.sub.1,a.sub.2, . . . ,a.sub.p, . . . ,a.sub.m-1,a.sub.m].sup.T
B=[b.sub.1,b.sub.2, . . . ,b.sub.q, . . . ,b.sub.m-1,b.sub.m].sup.T
(26) where a.sub.p represents the historical data of PM2.5 collected by the target site; b.sub.q represents the historical data of PM10 collected by the target site; m represents a number of the historical data;
(27) S2.2, performing first-time linear regression operation:
(28) selecting i+1 to m.sub.th data in A to constitute A.sub.1,i=[a.sub.i+1, a.sub.i+2, . . . , a.sub.m].sup.T,
(29) generating a lag matrix Z.sub.1,i according to the data in A;
(30)
(31) where i is lag time in the first-time linear regression operation, i∈(0,L], and L is maximum lag time, showing a predicted value of PM2.5 after the predictable time L of the target site.
(32) Obtaining an error corresponding to the lag time i according to the following formula:
e.sub.1,i=f.sub.LR(A.sub.1,i|Z.sub.1,i)
(33) obtaining an error vector e.sub.1={e.sub.1,i}; f.sub.LR representing linear regression operation;
(34) taking a minimum error vector e.sub.1,s=min(e.sub.1), where s is lag time corresponding to a minimum value in the error vector e.sub.1;
(35) S2.3, performing second-time linear regression operation:
(36) selecting j+s+1 to m.sub.th data in A to constitute A.sub.2,j=[a.sub.j+s+1, a.sub.j+s+2, . . . , a.sub.m].sup.T;
(37) generating a lag matrix Z.sub.2,j according to the data in A and B:
(38)
(39) where j is lag time in the second-time linear regression operation, j∈(0,s];
(40) obtaining an error corresponding to the lag time j according to the following formula:
e.sub.2,j=f.sub.LR(A.sub.2,j|Z.sub.2,j)
(41) obtaining an error vector e2={e.sub.2,j};
(42) taking a smallest error vector e.sub.2,final=min(e.sub.2) in e2;
(43) S2.4, mapping e.sub.2,final into an interval of (0,1]:
(44)
(45) and using I as the similarity coefficient between corresponding PM10 and PM2.5.
(46) The calculation process of the similarity coefficients between CO, NO.sub.2, SO.sub.2, O.sub.3, the temperature, the humidity, the wind speed and the wind direction and PM2.5 refers to the above-mentioned calculation process of the similarity coefficient between PM10 and PM2.5.
Example 2
(47) This example provides a deep spatial-temporal similarity method for air quality prediction, this example takes 35 air quality monitoring sites in a certain city as an example for illustration, and the method includes:
(48) S1 acquiring air quality monitoring data collected by each air quality monitoring site and meteorological data, the air quality monitoring data including historical data of CO, NO.sub.2, SO.sub.2, O.sub.3, PM10 and PM2.5, and the meteorological data including historical data of temperature, humidity, wind speed and wind direction;
(49) S2 determining similarity coefficients between each monitoring target in air quality monitoring data collected by the target site and the meteorological data and predicted air quality-related indexes according to an improved Granger causality;
(50) S3 using a dynamic time folding method to calculate a similarity value between each monitoring target in the air quality monitoring data collected by each site and the meteorological data and a corresponding monitoring target collected by the target site;
(51) S4 determining spatial-temporal similarity between each air quality monitoring site and the target site according to the similarity coefficient determined in S2 and the similarity value determined in S3;
(52) S5 selecting a predetermined number of air quality monitoring sites as spatial-temporal similarity sites of the target site according to a magnitude of the spatial-temporal similarity between each air quality monitoring site and the target site determined in S4; and
(53) S6 taking the air quality monitoring data collected by the target site and the meteorological data, air quality monitoring data collected by the spatial-temporal similarity site of the target site and the meteorological data, and air quality monitoring data collected by geographical neighbour sites determined according to location information and the meteorological data as inputs of a long short term memory network (LSTM) model respectively to obtain corresponding output results, and then performing support vector regression (SVR) integration on each output result corresponding to the LSTM model to obtain predicted values of the air quality-related index data of the target site;
(54) the air quality-related index being any monitoring target in the air quality monitoring data.
(55) Specifically, please refer to
(56) Then determining the spatial-temporal similarity site of the target site through the above-mentioned steps S2-S5, and the air quality monitoring data collected by the spatial-temporal similarity site and the meteorological data are used as global spatial-temporal similarity (STS) data screened by an LS-DTW algorithm in
(57) Channels 1 to 5 in
(58) Specifically, taking the historical data of the air quality-related indexes in the air quality monitoring data collected by the target site as input data of the channel 1 of the LSTM model;
(59) taking the historical data of the monitoring targets other than the air quality-related indexes in the air quality monitoring data collected by the target site and the historical data of the meteorological data as input data of the channel 2 of the LSTM model;
(60) Taking the historical data of the air quality-related indexes in the air quality monitoring data collected by the spatial-temporal similarity site of the target site as input data of the channel 3 of the LSTM model;
(61) Taking the historical data of the monitoring target other than the air quality-related indexes in the air quality monitoring data collected by the spatial-temporal similarity site of the target site and the historical data of the meteorological data as input data of the channel 4 of the LSTM model; and
(62) taking the air quality monitoring data collected by the geographical neighbour site determined according to the location information and the historical data of the meteorological data as input data of the channel 5 of the LSTM model.
(63) The data input to the five channels are respectively used as the input of the LSTM model to obtain five corresponding output results, and each output result is subjected to support vector regression (SVR) integration to obtain the predicted value of the air quality-related index data of the target site.
(64) Introduction of the LSTM model can refer to “Greff K, Srivastava R K, Koutník J, et al. LSTM: A search space odyssey[J]. IEEE transactions on neural networks and learning systems, 2016, 28(10): 2222-2232”. This model is not changed in the present application, and will not be described again here.
(65) The support vector regression (SVR) integration process can refer to “Drucker H, Burges C J C, Kaufman L, et al. Support vector regression machines [J]. Advances in neural information processing systems, 1997, 9: 155-161”, and will not be described again in this application.
(66) In the process of determining the spatial-temporal similarity site of the target site through the steps S2-S5 in the present application, firstly, obtaining the similarity coefficient l between each monitoring target in the air quality monitoring data and the meteorological data and the predicted air quality-related index through the steps S2.1 to S2.4 in Example 1, and constituting a weight vector W.
(67) Taking the predicted air quality-related index being PM2.5 as an example, the weight vector W is a vector composed of the similarity coefficients between CO, NO.sub.2, SO.sub.2, O.sub.3, PM10, PM2.5, temperature, humidity, wind speed and wind direction, and PM2.5.
(68) Please refer to
(69) Secondly, using the dynamic time folding method to calculate the similarity value between each monitoring target in the air quality monitoring data collected by each site and the meteorological data and the corresponding monitoring target collected by the target site specifically includes:
(70) taking the historical data of the same monitoring index collected by the target site and any site of other sites respectively as R and T:
R=r.sub.1,r.sub.2, . . . ,r.sub.p, . . . ,r.sub.m
T=t.sub.1,t.sub.2, . . . ,t.sub.q, . . . ,t.sub.m
(71) constructing to obtain a m×m matrix, matrix elements (p,q) representing a distance d(r.sub.p,t.sub.q) between two points of r.sub.p and t.sub.q;
(72) performing a DTW process on the constructed m×m matrix to obtain a DTW distance as a similarity value of the corresponding monitoring index.
(73) In the DTW process, a constructed DTW path starts at the lower left corner of the matrix and ends at the upper right corner, and cannot achieves cross point matching or reverse matching, namely, for w.sub.k-1=(r′,t′), in the next step w.sub.k=(r,t), 0≤r−r′≤1 and 0≤t−t′≤1. In the present application, performing the DTW process on the same monitoring target of other sites and the target site so as to obtain the similarity value between each monitoring target of any site of the other sites and the monitoring target corresponding to the target site, and constituting a distance vector DTW.sub.R.
(74) For example, when calculating the distance vector DTW.sub.R of the site 17 and the site 33, taking historical data of the same monitoring target of the site 17 and the site 33 as R and T respectively to perform the above-mentioned DTW process to obtain the DTW distance, namely a similarity value corresponding to the monitoring target, and constituting the DTW distance of the monitoring target in all the air quality monitoring data and the meteorological data into the distance vector DTW.sub.R, namely: respectively calculating the DTW distance between CO, NO.sub.2, SO.sub.2, O.sub.3, PM10, PM2.5, temperature, humidity, wind speed and wind direction collected by the site 17 and the monitoring target corresponding to the site 33, and constituting the distance vector DTW.sub.R.
(75) Multiplying the weight vector W by the distance vector DTW.sub.R again to take a reciprocal to obtain the spatial-temporal similarity between each air quality monitoring site and the target site.
(76) For example, there are 35 monitoring sites in a certain city, taking the site 33 as the target site and PM2.5 of the site 33 after a period of time as the air quality-related index to be predicted, then in 34 other sites except the site 33, multiplying the distance vector DTW.sub.R between any site and the site 33 by the weight vector W composed of the similarity coefficients between CO, NO.sub.2, SO.sub.2, O.sub.3, PM10, PM2.5, temperature, humidity, wind speed and wind direction, and PM2.5 to take a reciprocal, namely, the spatial-temporal similarity between this site and the site 33.
(77) Ranking the spatial-temporal similarity between each site and the site 33, and selecting a predetermined number of sites according to the size as the spatial-temporal similarity sites of the site 33. In the subsequent simulation experiment of the present application, five sites with high ranking of the spatial-temporal similarity are selected for prediction. A number of the spatial-temporal similarity sites can be determined according to actual requirements.
(78) Please refer to
(79) For the selection of the geographic neighbor sites, the KNN algorithm can be used for screening. The KNN algorithm can refer to “Hastie T, Tibshirani R. Discriminant adaptive nearest neighbor classification [J]. IEEE transactions on pattern analysis and machine intelligence, 1996, 18 (6): 607-616”, and will not be described again in the present application.
(80) In the present application, when determining the similarity coefficient between each monitoring target in the air quality monitoring data collected by the target site and the meteorological data and the predicted air quality-related index, the similarity coefficient is determined according to the improved Granger causality, and it is well known that a Granger causality test is a statistical estimation, and as shown by the following formula, is used to test whether a factor X has a causality with a factor Y:
F=GC(Y,X)
(81) where F is an F-distribution value of the Granger causality test and GC represents the Granger causality test process.
(82) However, an original Granger causality test cannot obtain an indexity coefficient, and only can judge whether hypothesis verification is accepted or rejected. The present application quantifies the index along according to the idea of the Granger causality test so as to obtain an indexity data, obtains coefficients of other data of the same site to target data according to a degree of similarity, and obtains a new function:
W=SGC(Y,X)
(83) where SGC denotes the similarity coefficient of GC, and the similarity of the same site is as shown in
(84) For the air quality monitoring data P.sub.m, only the historical data can be acquired, and while for the meteorological data M.sub.n, predicted data can be acquired. Acquisition methods of these two data are different, which determines that lag parameters of a Granger causality coefficient are different, because a change trend of PM2.5 and other pollutants is more synchronous in time span, while the influence of atmospheric factors on pollutants normally have some lag effect. However, just as said above that the results of the Granger causality test can only be used as a reference, the causality between two time series cannot be completely determined, and since the Granger causality test uses a method of linear regression to analyze the correlation, it cannot work well for the analysis in some cases, so it is impossible to comprehensively judge the similarity between the sites using only improved SGC, and thus it is only used as a coefficient.
(85) In order to verify the effectiveness of the model proposed in the present application, the present application collects the air quality monitoring data from 35 sites in Beijing from May 1, 2014 to Apr. 30, 2018 and meteorological data, where the air quality data is sampled every hour, and the atmospheric data is updated every hour in units of administrative regions, including weather forecast data updated every 3 hours. Air quality data includes CO, NO.sub.2, SO.sub.2, O.sub.3, PM10, and PM2.5, and the meteorological data includes temperature, humidity, wind speed, and wind direction. Data are normalized prior to experiments.
(86) The present application finally uses a two-layer hidden layer network, where a former layer is an LSTM network layer, being traditional nodes, and a number of the nodes is 30, and a latter layer is a fully connected layer, with a number of nodes being 50, where for a structure selected by the LSTM, please refer to
(87) In the present application, a total of three indexes are used, namely, a mean absolute error (MAE), a root-mean squared error (RMSE) and accuracy (Acc.).
(88) MAE, RMSE, and Acc are defined as follows:
(89)
(90) In terms of experimental results, the present application makes a series of experiments to prove the superiority of the method of the present application.
(91) 1. In the present application, the prediction effects of the model when data selected by different data selection methods is used as input of a deep module are respectively compared, and table 1 summarizes all the experimental results, where L represents a model which does not use data of spatial-temporal related sites and only uses data of a local target site, L+N represents a model which uses data of the target site and spatially related sites, L+DTW represents a model of data of the target site and temporally related sites selected through the DTW algorithm, L+DTW+N represents a model which uses data of the target site and the spatial-temporal related site selected by the DTW algorithm, and finally, the Deep-STS method is a finally determined model using data of the target site and the spatial-temporal related site selected by a GCWDTW method in the present application.
(92) It can be seen from
(93) 2. The present application compares the performance of the classical algorithm models LR, RT, and ANN and the milestone FFA model in the art with the performance of the Deep-STS designed in the present application. It can be seen from the figures that FFA has a great improvement in performance compared with other classical models, while Deep-STS has a slight advantage over FFA in each index, and its accuracy rate is increases by 3.0%, 5.1% and 10.3% respectively compared with the FFA model under the prediction intervals of 6 h, 9 h and 12 h. The experiment demonstrates the superiority of the experimental model Deep-STS proposed in the present application, and also shows that a deep learning module has a good ability to solve practical problems.
(94) TABLE-US-00001 TABLE 1 All results of this paper MAE RMSE Acc. 6 h 9 h 12 h 6 h 9 h 12 h 6 h 9 h 12 h LR 33.45 35.32 38.33 42.02 45.23 49.31 0.4062 0.4014 0.3841 RT 30.19 30.36 31.89 41.09 40.81 44.46 0.4679 0.4901 0.4898 ANN 26.88 27.32 28.97 35.64 35.67 39.20 0.5207 0.5539 0.5354 FFA 23.53 26.23 27.13 32.57 34.48 38.00 0.5835 0.5568 0.5312 L 25.57 28.98 32.81 35.39 39.77 45.52 0.5670 0.5511 0.5457 L + N 23.81 27.06 31.97 33.31 37.72 45.43 0.5970 0.5819 0.5572 L + DTW 24.90 27.03 30.72 34.89 37.79 44.31 0.5798 0.5831 0.5743 L + DTW + N 24.17 26.47 30.33 33.94 37.38 43.95 0.5934 0.5901 0.5785 Deep-STS 23.03 24.99 26.07 32.23 34.31 37.17 0.6010 0.5850 0.5857
(95) It can be seen from the above table 1 that in all the comparison algorithms used in the present application, except that the Acc. index of 9 h is 0.51% lower than that of L+DTW+N, other indexes are the most superior in all the models. A highest 10.01% improvement in the aspects of MAE and Acc. is also achieved compared to the representative prediction model FFA.
(96) Some steps in the examples of the present disclosure can be implemented by software, and a corresponding software program can be stored in a readable storage medium, such as an optical disk or a hard disk.
(97) What is described above is only preferred examples of the present disclosure, and is not intended to limit the present disclosure, and any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present disclosure shall be included in the protection range of the present disclosure.