# Application of Improved PSO-BP Neural Network in Cold Load Forecasting of Mall Air-Conditioning

Authors: JunQi Yu; WenQiang Jing; AnJun Zhao; YanHuan Ren; Meng Zhou
Journal: Journal of Control Science and Engineering
 (2019)

---

## Abstract

A combination of JMP, PSO-BP neural network, and Markov chain which aims at the low correlation between input and output data and the error of prediction model in the PSO-BP neural network prediction model is proposed. First, the JMP data processing software is used to process the input data and eliminate the samples with low coupling degree. Then, obtaining the cooling load prediction results relies on the training from the PSO-BP neural network. Finally, the final prediction results will be generated by eliminating the random errors using the Markov chain. The results show that the combination of the prediction methods has higher prediction accuracy and conforms to the change rule of the cooling load in shopping malls. Besides, the combination fits the actual application requirements as well.


---

## Body

## 1. Introduction

At present, the energy consumption of air-conditioning occupies an increasing proportion of whole building energy consumption [1]. Its huge power consumption has increased the pressure on the grid. Some researchers have used ice storage air-conditioning to solve this problem [2]. The operation of ice storage air-conditioning requires a reasonable matching with the cooling capacity of the internal cooler and the ice trough in the peaks and troughs of the electricity price. Firstly, the cooling capacity of the building at every moment in the next day is predicted, and then the cooling capacity should be divided on the basis of the predicted results. Therefore, the dynamic prediction of the cooling load is the core of ice storage air-conditioning.For the air-conditioning cooling load prediction, most researchers use the data-driven method [3], mainly including support vector machine (SVM), statistical regression, decision tree, genetic algorithm, and neural network algorithm. SVM is a common artificial intelligence method [4], which has the ability to transform nonlinear relations, but it takes too long to deal with data [5, 6]. Statistical regression is a simple and feasible prediction method, but its predictive power is lower than SVM, and it is difficult to choose the predictors of this method [7]. The decision tree method is a technique which is easy to understand and divides data into groups using a tree diagram, but its prediction results often deviate significantly from the actual situations [8], and it cannot address time series and nonlinear data very well [9]. Genetic algorithm is a powerful optimization algorithm for processing complex model problems [10]. When the input data is large and complex, the algorithm can obtain appropriate solutions according to objective functions or subjective judgments, but it also has disadvantages, such as nonunique results and the long calculating time [11, 12]. As a kind of prediction algorithms, neural network is widely used in various fields [13]. One of the neural networks BP (back propagation) is widely used for its powerful nonlinear mapping, self-learning, generalization, and fault tolerance, but the weaknesses of this method are localized minimization and slow convergence. Some researchers have used PSO (particle swarm optimization) [14] to optimize the initial threshold and weight of the BP neural network and to improve the convergence speed and accuracy of BP. However, due to the low matching degree between the input data and the output data and the errors under the process of combining model, the prediction results cannot meet the ideal requirements.Based on the traditional artificial neural network, this paper shows the results from JMP data analysis software, which analyzes the correlation between input variables and output variables and eliminates irrelevant data. In addition, we used the Markov chain to correct the errors of the artificial neural network. The research shows that the improved model has higher prediction accuracy and convergence speed than those of the traditional artificial neural network prediction method, which is more suitable for the practical application of the project.


## 2. Thoughts on Dynamic Prediction Method of Air-Conditioning Cooling Load

The key and difficult point of the cooling load forecasting is to improve the prediction accuracy and timeliness. The traditional prediction of the air-conditioning cooling load in shopping malls does not consider the market-running characteristic points, and it cannot distinguish the differences between weekends and business days [15]. Therefore, based on the characteristics of the mall, the data should be reanalyzed and integrated before forecasting. This specific prediction idea is shown in Figure 1.Figure 1
Flow of dynamic prediction method for cooling load.According to the content above, JMP data analysis software is used to analyze the input data correlation to improve the neural network. The characteristic of the analysis of correlation can eliminate the input and output variables with low coupling degree. It can also fix the problems about slow training speed, and low-precision vulnerability results from the low correlation between input and output variables. Therefore, the prediction accuracy of the neural network can be improved, and it can be applied to the dynamic prediction of cooling load of air-conditioning in shopping mall buildings. In consideration of some relative errors in the predicted results of the combined model, the Markov chain is adopted to further modify the prediction results so that the accuracy can be improved.


## 3. Construction of Dynamic Prediction Model for Cooling Load of PSO-BP Large Shopping Mall

### 3.1. The Prediction Model of the PSO-BP Neural Network

The PSO-BP neural network is used to predict the cooling load of air-conditioning in shopping malls. In fact, the PSO algorithm is used to iteratively optimize the weight and threshold of the BP neural network, and then the weight and threshold with the best fitness are obtained for the prediction of the BP neural network.In order to predict the cooling load of air-conditioning in shopping malls, this paper adopts a three-layer network architecture. The commonly used input data for cold storage air-conditioning cold load prediction include the outdoor dry bulb temperaturesT and T−1 at the current and previous moments, respectively, and the solar radiation doses R, R-1, and R-2 at the current, previous, and the first two moments. At the current time, the outdoor humidity is H, the outdoor wind speed is W, and the previous time, the first two times, and the first four times of the cold load are C-1, C-2, and C-4, respectively, with the current time cold load C as the output. In the input layer, the number of neurons is 10 and the output layer is the cold load at time T. The empirical formula (1) can be obtained for nodes of hidden layer of the neural network as 21:(1)A=2∗B+1,where A is the number of neurons in the hidden layer and B is the number of neurons in the input layer.(1)
To figure out the fitness of the particles. The fitness value of the particles is determined by the prediction-related data and the data obtained by the PSO algorithm, as shown in the following formula:(2)f=∑i=1Nyi−yi¯,whereN is the number of samples, yi is the observed value of sample i, and yi¯ is the predicted value of sample i.(2)
The fitness of the current particle is selected as the best fitnessPsee of the current particle and the best fitness Pbest of the historical optimum. The best historical fitness of the current particle and the best global fitness gbest are selected as the historical optimal fitness of the current particle.(3)
The velocities and positions of the particles are updated using formulas (3) and (4), respectively:(3)Vabt+1=Vabt+l1∗r1∗Pabt−Xabt+l2∗r1∗Pgbt−Xabt,(4)Xabt+1=Xabt+Vabt+1,wherea=1,2,…,n, b=1,2,…,n, l1 is the optimal step size of the individual particles, l2 is the optimal step size of the particles, r1 and r2 are random numbers between 0 and 1, Xab is the position of the particle a, and Vab is the speed of the particle a.Setting the maximum particle velocity interval as0,Vmax, when the particle velocity is higher than Vmax, the particle’s velocity is back to Vmax at this time.
(4)
Comparing the current iteration numberCurIte with the maximum number of iterations MaxIte: if CurIte≥MaxIte, stop iterating; if CurIte<MaxIte, return to step (1).


### 3.2. The Improvement of the PSO-BP Neural Network Based on JMP and Markov Chain

Although the prediction accuracy of the PSO-BP neural network is better than that of some previous neural networks, it still cannot reach the actual ideal state of engineering, mainly because there are some deviations in the complexity of input data and combined prediction. Therefore, it is necessary to use the JMP data processing software [16] to process the input data and correct the prediction errors by the Markov chain.Considering that some of the above data have low correlation between input data and output data, JMP data analysis software is used for correlation analysis and Pearson’s correlation significance test is conducted. [0, 0.3] is considered as weak correlation, [0.3, 0.5] as medium correlation, [0.5, 0.7] as strong correlation, and [0.7, 1.0] as strong correlation. The results of correlation analysis are shown in Table1.Table 1
Correlation between input parameters and cooling load at timeT.
The input parameters
Data correlation
T
0.7513
T-1
0.7948
R
0.7983
R-1
0.8232
R-2
0.6923
H
0.8963
W
0.0176
C-1
0.9342
C-2
0.8753
C-4
0.6097Combining with the analysis results of the foregoing and Table1, we use the three input parameters R-2, W, and C-4 and good seven variables T, T-1, H-1, R, R-1, 1, and C-C-2 as the input variables of the PSO and BP network prediction models and the parameter C as the output variable; combined with formula (1) for large public buildings, the cooling load prediction model structure is 7-15-1, i.e., 7 input layer nodes, 15 hidden layer nodes, and 1 output layer node.The Markov chain is a random process with no aftereffects [17]. It can derive the probability distribution of the next moment according to the time condition of a certain condition and obtain the state of the next moment regardless of other moments. The Markov chain is suitable for the correction of prediction problems with fluctuation [18].The steps of Markov error correction for the predicted value of the above neural network model are as follows:(1)
The error value matrixA¯t is calculated according to the predicted value matrix A^t and the measured value matrix At obtained by the PSO-BP neural network, and the mean value X¯ and the standard deviation S of A¯t obtained by formulas (5) and (6) are used to obtain the error state interval:(5)X¯=1n∑t=1nA¯t,(6)S=1n−1∑t=1nA¯t−X¯.(2)
According to formula (7) and statistical method, the transition probability matrix is obtained according to the error state interval obtained in step (1):(7)Pijt=nijtNi,wherePijt is the probability transition matrix, Ni is the error of state in which i is the total number of occurrences, and nijt is the error of state with i being the number of transitions from state t to state j.(3)
The state vector at stept is obtained by using formula (8) to judge the state interval at step t:(8)Pt=P0×Pt=P0×P1t,whereP0 is the probability distribution under the initial condition and P1 is the one-step probability transfer matrix, as shown in equation (6):(9)P1=P11P12⋯P1xp21p22⋯p2x⋮⋮⋮⋮py1py2⋯pyx.


## 3.1. The Prediction Model of the PSO-BP Neural Network

The PSO-BP neural network is used to predict the cooling load of air-conditioning in shopping malls. In fact, the PSO algorithm is used to iteratively optimize the weight and threshold of the BP neural network, and then the weight and threshold with the best fitness are obtained for the prediction of the BP neural network.In order to predict the cooling load of air-conditioning in shopping malls, this paper adopts a three-layer network architecture. The commonly used input data for cold storage air-conditioning cold load prediction include the outdoor dry bulb temperaturesT and T−1 at the current and previous moments, respectively, and the solar radiation doses R, R-1, and R-2 at the current, previous, and the first two moments. At the current time, the outdoor humidity is H, the outdoor wind speed is W, and the previous time, the first two times, and the first four times of the cold load are C-1, C-2, and C-4, respectively, with the current time cold load C as the output. In the input layer, the number of neurons is 10 and the output layer is the cold load at time T. The empirical formula (1) can be obtained for nodes of hidden layer of the neural network as 21:(1)A=2∗B+1,where A is the number of neurons in the hidden layer and B is the number of neurons in the input layer.(1)
To figure out the fitness of the particles. The fitness value of the particles is determined by the prediction-related data and the data obtained by the PSO algorithm, as shown in the following formula:(2)f=∑i=1Nyi−yi¯,whereN is the number of samples, yi is the observed value of sample i, and yi¯ is the predicted value of sample i.(2)
The fitness of the current particle is selected as the best fitnessPsee of the current particle and the best fitness Pbest of the historical optimum. The best historical fitness of the current particle and the best global fitness gbest are selected as the historical optimal fitness of the current particle.(3)
The velocities and positions of the particles are updated using formulas (3) and (4), respectively:(3)Vabt+1=Vabt+l1∗r1∗Pabt−Xabt+l2∗r1∗Pgbt−Xabt,(4)Xabt+1=Xabt+Vabt+1,wherea=1,2,…,n, b=1,2,…,n, l1 is the optimal step size of the individual particles, l2 is the optimal step size of the particles, r1 and r2 are random numbers between 0 and 1, Xab is the position of the particle a, and Vab is the speed of the particle a.Setting the maximum particle velocity interval as0,Vmax, when the particle velocity is higher than Vmax, the particle’s velocity is back to Vmax at this time.
(4)
Comparing the current iteration numberCurIte with the maximum number of iterations MaxIte: if CurIte≥MaxIte, stop iterating; if CurIte<MaxIte, return to step (1).


## 3.2. The Improvement of the PSO-BP Neural Network Based on JMP and Markov Chain

Although the prediction accuracy of the PSO-BP neural network is better than that of some previous neural networks, it still cannot reach the actual ideal state of engineering, mainly because there are some deviations in the complexity of input data and combined prediction. Therefore, it is necessary to use the JMP data processing software [16] to process the input data and correct the prediction errors by the Markov chain.Considering that some of the above data have low correlation between input data and output data, JMP data analysis software is used for correlation analysis and Pearson’s correlation significance test is conducted. [0, 0.3] is considered as weak correlation, [0.3, 0.5] as medium correlation, [0.5, 0.7] as strong correlation, and [0.7, 1.0] as strong correlation. The results of correlation analysis are shown in Table1.Table 1
Correlation between input parameters and cooling load at timeT.
The input parameters
Data correlation
T
0.7513
T-1
0.7948
R
0.7983
R-1
0.8232
R-2
0.6923
H
0.8963
W
0.0176
C-1
0.9342
C-2
0.8753
C-4
0.6097Combining with the analysis results of the foregoing and Table1, we use the three input parameters R-2, W, and C-4 and good seven variables T, T-1, H-1, R, R-1, 1, and C-C-2 as the input variables of the PSO and BP network prediction models and the parameter C as the output variable; combined with formula (1) for large public buildings, the cooling load prediction model structure is 7-15-1, i.e., 7 input layer nodes, 15 hidden layer nodes, and 1 output layer node.The Markov chain is a random process with no aftereffects [17]. It can derive the probability distribution of the next moment according to the time condition of a certain condition and obtain the state of the next moment regardless of other moments. The Markov chain is suitable for the correction of prediction problems with fluctuation [18].The steps of Markov error correction for the predicted value of the above neural network model are as follows:(1)
The error value matrixA¯t is calculated according to the predicted value matrix A^t and the measured value matrix At obtained by the PSO-BP neural network, and the mean value X¯ and the standard deviation S of A¯t obtained by formulas (5) and (6) are used to obtain the error state interval:(5)X¯=1n∑t=1nA¯t,(6)S=1n−1∑t=1nA¯t−X¯.(2)
According to formula (7) and statistical method, the transition probability matrix is obtained according to the error state interval obtained in step (1):(7)Pijt=nijtNi,wherePijt is the probability transition matrix, Ni is the error of state in which i is the total number of occurrences, and nijt is the error of state with i being the number of transitions from state t to state j.(3)
The state vector at stept is obtained by using formula (8) to judge the state interval at step t:(8)Pt=P0×Pt=P0×P1t,whereP0 is the probability distribution under the initial condition and P1 is the one-step probability transfer matrix, as shown in equation (6):(9)P1=P11P12⋯P1xp21p22⋯p2x⋮⋮⋮⋮py1py2⋯pyx.


## 4. Simulation Analysis of Cooling Load Forecasting in Shopping Mall Buildings

### 4.1. Research and Analysis on the Mechanism of Cooling Load Change

According to the periodicity and similarity of the changing trend of cooling load, it is speculated that the changing law of cooling load in shopping malls should have similar characteristics. Therefore, taking a commercial center in Xi’an city as an example, the data of cooling load in a week and on a weekend are analyzed, respectively. According to the survey, the cooling load information from Monday to Friday in a week is similar, but it is not quite the same as that on weekends. To take the commercial center as the sample object, the cooling load variation chart, as shown in Figure2, can be obtained to analyze the cooling load variation during the week and on weekends, and then use the line chart to represent it. It can be shown from Figure 3 that there is a difference in the variation of cooling load within a week and on a weekend. Therefore, in the subsequent experimental simulation, experiments are conducted on analyzing a weekday and a weekend, respectively.Figure 2
Cooling load variation diagram.Figure 3
Comparison of prediction results.


### 4.2. Case Validation Analysis

According to the previous analysis, this experiment uses the actual data of a commercial center in Xi’an. The commercial center has ten floors, with a height of 40.6 meters and an area of 250,000 square meters. The building air-conditioning area occupies about 187,600 square meters. The mall uses ice storage air-conditioning for cooling in summer.In this experiment, seven variables of outdoor dry bulb temperaturesT and t − 1 at the current moment and the previous moment, solar radiation quantities R and r − 1 at the current moment and the previous moment, outdoor humidity H at the current moment, and cooling loads c − 1 and c − 2 at the previous moment and the first two moments are adopted as input variables of the PSO-BP neural network, and cooling load C at the current moment is taken as the output variable of the neural network. Because of the characteristics of the commercial center, the experiment uses the input variables from 8:00 am to 10:00 pm in the first 50 days of the mall in June and July as training data and the data from July 26th to July 29th as the verification analysis data.The test data is used for simulation to verify the prediction ability of the network. Figure3 shows the predicted values of each model, where model 1 is the prediction of the weekday data without any distinctions, model 2 is the prediction of the weekly data but does not eliminate the input data with low correlation, and model 3 distinguishes and predicts the data on weekends and weekdays after eliminating the low correlation of input data. Figure 4 shows the prediction errors among the three models. According to Figures 3 and 4, eliminating the low correlation of input data could cause a better prediction.Figure 4
Comparison of prediction errors.It can be found from Figure4 that the prediction error of model 3 is better than that of models 1 and 2, but it still has a peak error. Therefore, the Markov chain should be used to modify it and to improve the prediction accuracy of the model.


### 4.3. The Correction of the Markov Chain

The modeling process of the PSO-BP neural network based on the Markov chain modification firstly divides the interval of the range according to the relative error obtained above. The method of interval division is the mean-variance method [19, 20]. Furthermore, the error is classified according to the divided interval, and the probability transition matrix is constructed according to the classification results to determine the state of the initial vector and the state of the predicted time period, and the modified value of the predicted time period is calculated according to the state of the predicted time period.According to the relative error of the above analysis, the weekly error mean valueX¯1=5.937 and mean variance S1=6.352 are obtained. The mean value of error over the weekend is X¯2=−0.694, and the mean variance is going to be S2=10.421. After calculation, the state interval of Markov chain within a week and on the weekend is shown in Table 2.Table 2
State interval of the Markov chain.
The state interval of a Markov chain within a week
The state interval of the Markov chain on the weekend
E
1
=
−
24.112
,
−
11.111
E
1
=
−
5.475
,
−
3.206
E
2
=
−
11.111
,
−
5.900
E
2
=
−
3.206
,
1.895
E
3
=
−
5.900
,
4.521
E
3
=
1.895
,
9.113
E
4
=
4.521
,
9.370
E
4
=
9.113
,
12.289
E
5
=
9.370
,
33.799
E
5
=
12.289
,
19.687According to the divided state interval, the error values of the PSO-BP model within the prediction week and on the weekend are divided in turn, and the results are shown in Table3.Table 3
PSO-BP neural network prediction error classification results.
Time
7–26 (weekend)
Time
7–27 (weekend)
Time
7–28 (weeks)
Time
7–29 (weeks)
Errors (%)
Status
Errors (%)
Status
Errors (%)
Status
Errors (%)
Status
8
15.843
E
5
8
10.132
E
5
8
16.218
E
2
8
19.687
E
5
9
33.799
E
5
9
−17.486
E
1
9
−2.426
E
4
9
7.364
E
3
10
−12.314
E
1
10
−7.983
E
2
10
8.938
E
4
10
13.364
E
4
11
14.492
E
5
11
−2.809
E
3
11
12.275
E
4
11
14.016
E
4
12
7.951
E
4
12
0.116
E
3
12
8.062
E
4
12
14.018
E
3
13
−8.171
E
2
13
0.167
E
3
13
5.157
E
3
13
0.849
E
3
14
3.333
E
3
14
−0.860
E
3
14
−0.432
E
4
14
2.841
E
3
15
−2.819
E
3
15
−0.966
E
3
15
6.032
E
4
15
5.103
E
4
16
−1.233
E
3
16
−0.352
E
3
16
7.031
E
3
16
6.302
E
3
17
1.223
E
3
17
−1.222
E
3
17
3.094
E
3
17
−0.318
E
3
18
−1.015
E
3
18
−2.479
E
3
18
5.896
E
3
18
10.296
E
3
19
−1.018
E
3
19
−7.976
E
3
19
−5.473
E
3
19
0.853
E
3
20
−4.204
E
3
20
−6.261
E
2
20
0.420
E
1
20
−4.835
E
1
21
−4.323
E
3
21
−4.817
E
3
21
12.708
E
1
21
2.865
E
1
22
−24.112
E
1
22
4.557
E
4
22
9.335
E
2
22
−1.122
E
2According to the error state of Table2, it is determined that the Markov chain one-step transition probability matrices P1 and P2 in the week and on the weekend are as follows:(10)P1=0130023001001181185181180012001212001414,P2=12120000130131321308133130004959000100.According to the error state of Table2, the state vector of each time period is determined, and the predicted value of the PSO-BP neural network prediction model corrected by the Markov chain is solved according to the state transition vector and the probability transition matrix.The corrected predicted value (model 4) is predicted by the aforementioned undivided weekly data (model 1), and the weekly data is divided, but the input data is not processed to perform prediction (model 2), which means the weekly data is distinguished and the weekend data is processed by comparing the input data to predict the predicted results (model 3). The results are shown in Figure5.Figure 5
Comparison of results.
(a)
(b)
(c)
(d)RMSPE (root mean square percentage error) was used to evaluate the errors of the four prediction models, and the processing results are shown in Table4:Table 4
Prediction model root mean square error.
Using methods
RMSPE (%)
Prediction model 1
26.14
Prediction model 2
20.15
Prediction model 3
9.15
Prediction model 4
3.06The experimental results show that when the improved prediction of the PSO-BP neural network combined with the Markov chain is performed, the maximum number of iterations is set to 2000 times, and the prediction model achieves a prediction accuracy of only 409 steps, which improves the validity of the prediction results. From the results of Figure5 and Table 4, it can be seen that using the Markov chain to modify the PSO-BP neural network figures out a higher prediction accuracy, and it can meet the requirements of practical engineering applications.


## 4.1. Research and Analysis on the Mechanism of Cooling Load Change

According to the periodicity and similarity of the changing trend of cooling load, it is speculated that the changing law of cooling load in shopping malls should have similar characteristics. Therefore, taking a commercial center in Xi’an city as an example, the data of cooling load in a week and on a weekend are analyzed, respectively. According to the survey, the cooling load information from Monday to Friday in a week is similar, but it is not quite the same as that on weekends. To take the commercial center as the sample object, the cooling load variation chart, as shown in Figure2, can be obtained to analyze the cooling load variation during the week and on weekends, and then use the line chart to represent it. It can be shown from Figure 3 that there is a difference in the variation of cooling load within a week and on a weekend. Therefore, in the subsequent experimental simulation, experiments are conducted on analyzing a weekday and a weekend, respectively.Figure 2
Cooling load variation diagram.Figure 3
Comparison of prediction results.


## 4.2. Case Validation Analysis

According to the previous analysis, this experiment uses the actual data of a commercial center in Xi’an. The commercial center has ten floors, with a height of 40.6 meters and an area of 250,000 square meters. The building air-conditioning area occupies about 187,600 square meters. The mall uses ice storage air-conditioning for cooling in summer.In this experiment, seven variables of outdoor dry bulb temperaturesT and t − 1 at the current moment and the previous moment, solar radiation quantities R and r − 1 at the current moment and the previous moment, outdoor humidity H at the current moment, and cooling loads c − 1 and c − 2 at the previous moment and the first two moments are adopted as input variables of the PSO-BP neural network, and cooling load C at the current moment is taken as the output variable of the neural network. Because of the characteristics of the commercial center, the experiment uses the input variables from 8:00 am to 10:00 pm in the first 50 days of the mall in June and July as training data and the data from July 26th to July 29th as the verification analysis data.The test data is used for simulation to verify the prediction ability of the network. Figure3 shows the predicted values of each model, where model 1 is the prediction of the weekday data without any distinctions, model 2 is the prediction of the weekly data but does not eliminate the input data with low correlation, and model 3 distinguishes and predicts the data on weekends and weekdays after eliminating the low correlation of input data. Figure 4 shows the prediction errors among the three models. According to Figures 3 and 4, eliminating the low correlation of input data could cause a better prediction.Figure 4
Comparison of prediction errors.It can be found from Figure4 that the prediction error of model 3 is better than that of models 1 and 2, but it still has a peak error. Therefore, the Markov chain should be used to modify it and to improve the prediction accuracy of the model.


## 4.3. The Correction of the Markov Chain

The modeling process of the PSO-BP neural network based on the Markov chain modification firstly divides the interval of the range according to the relative error obtained above. The method of interval division is the mean-variance method [19, 20]. Furthermore, the error is classified according to the divided interval, and the probability transition matrix is constructed according to the classification results to determine the state of the initial vector and the state of the predicted time period, and the modified value of the predicted time period is calculated according to the state of the predicted time period.According to the relative error of the above analysis, the weekly error mean valueX¯1=5.937 and mean variance S1=6.352 are obtained. The mean value of error over the weekend is X¯2=−0.694, and the mean variance is going to be S2=10.421. After calculation, the state interval of Markov chain within a week and on the weekend is shown in Table 2.Table 2
State interval of the Markov chain.
The state interval of a Markov chain within a week
The state interval of the Markov chain on the weekend
E
1
=
−
24.112
,
−
11.111
E
1
=
−
5.475
,
−
3.206
E
2
=
−
11.111
,
−
5.900
E
2
=
−
3.206
,
1.895
E
3
=
−
5.900
,
4.521
E
3
=
1.895
,
9.113
E
4
=
4.521
,
9.370
E
4
=
9.113
,
12.289
E
5
=
9.370
,
33.799
E
5
=
12.289
,
19.687According to the divided state interval, the error values of the PSO-BP model within the prediction week and on the weekend are divided in turn, and the results are shown in Table3.Table 3
PSO-BP neural network prediction error classification results.
Time
7–26 (weekend)
Time
7–27 (weekend)
Time
7–28 (weeks)
Time
7–29 (weeks)
Errors (%)
Status
Errors (%)
Status
Errors (%)
Status
Errors (%)
Status
8
15.843
E
5
8
10.132
E
5
8
16.218
E
2
8
19.687
E
5
9
33.799
E
5
9
−17.486
E
1
9
−2.426
E
4
9
7.364
E
3
10
−12.314
E
1
10
−7.983
E
2
10
8.938
E
4
10
13.364
E
4
11
14.492
E
5
11
−2.809
E
3
11
12.275
E
4
11
14.016
E
4
12
7.951
E
4
12
0.116
E
3
12
8.062
E
4
12
14.018
E
3
13
−8.171
E
2
13
0.167
E
3
13
5.157
E
3
13
0.849
E
3
14
3.333
E
3
14
−0.860
E
3
14
−0.432
E
4
14
2.841
E
3
15
−2.819
E
3
15
−0.966
E
3
15
6.032
E
4
15
5.103
E
4
16
−1.233
E
3
16
−0.352
E
3
16
7.031
E
3
16
6.302
E
3
17
1.223
E
3
17
−1.222
E
3
17
3.094
E
3
17
−0.318
E
3
18
−1.015
E
3
18
−2.479
E
3
18
5.896
E
3
18
10.296
E
3
19
−1.018
E
3
19
−7.976
E
3
19
−5.473
E
3
19
0.853
E
3
20
−4.204
E
3
20
−6.261
E
2
20
0.420
E
1
20
−4.835
E
1
21
−4.323
E
3
21
−4.817
E
3
21
12.708
E
1
21
2.865
E
1
22
−24.112
E
1
22
4.557
E
4
22
9.335
E
2
22
−1.122
E
2According to the error state of Table2, it is determined that the Markov chain one-step transition probability matrices P1 and P2 in the week and on the weekend are as follows:(10)P1=0130023001001181185181180012001212001414,P2=12120000130131321308133130004959000100.According to the error state of Table2, the state vector of each time period is determined, and the predicted value of the PSO-BP neural network prediction model corrected by the Markov chain is solved according to the state transition vector and the probability transition matrix.The corrected predicted value (model 4) is predicted by the aforementioned undivided weekly data (model 1), and the weekly data is divided, but the input data is not processed to perform prediction (model 2), which means the weekly data is distinguished and the weekend data is processed by comparing the input data to predict the predicted results (model 3). The results are shown in Figure5.Figure 5
Comparison of results.
(a)
(b)
(c)
(d)RMSPE (root mean square percentage error) was used to evaluate the errors of the four prediction models, and the processing results are shown in Table4:Table 4
Prediction model root mean square error.
Using methods
RMSPE (%)
Prediction model 1
26.14
Prediction model 2
20.15
Prediction model 3
9.15
Prediction model 4
3.06The experimental results show that when the improved prediction of the PSO-BP neural network combined with the Markov chain is performed, the maximum number of iterations is set to 2000 times, and the prediction model achieves a prediction accuracy of only 409 steps, which improves the validity of the prediction results. From the results of Figure5 and Table 4, it can be seen that using the Markov chain to modify the PSO-BP neural network figures out a higher prediction accuracy, and it can meet the requirements of practical engineering applications.


## 5. Conclusion

Aiming at the problem of cooling load prediction from ice storage air-conditioning in malls, the paper proposes a prediction model to improve the PSO-BP neural network and the method which uses the Markov chain to correct the error. The JMP data analysis software is used to analyze the correlation between input and output data. The PSO-BP neural network is used to predict the cooling load of ice storage air-conditioning, and the Markov chain is used to correct the prediction results. Applying the predictive model to the actual mall leads to the following conclusions:(1)
The output cooling load of the ice storage air-conditioning system in the shopping mall at timeT is highly correlated with the 7 inputs as follows: the outdoor temperature at time T, the outdoor temperature at time t-1, the solar radiation at time T, the solar radiation at time t-1, the relative humidity at time T, the cooling load at time t-1, and the cooling load at time t-2.(2)
The maximum relative error between the improved model and the unimproved model was reduced from 33.799% to 10.967%, and the root mean square error of the prediction modelRMSPE was reduced from 26.14% to 3.06%.(3)
The prediction results show that the method we use can improve the prediction accuracy. Besides, it is more suitable for practical engineering application.



---

*Source: 2428176-2019-09-22.xml*