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

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 predictionmodel in the PSO-BP neural network predictionmodel is proposed. First, the JMP data processing software is used to process the input data and eliminate the samples with low coupling degree. -en, 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. -e 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.


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].e 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.erefore, 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].e 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.
e 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.

Thoughts on Dynamic Prediction Method of Air-Conditioning Cooling Load
e key and difficult point of the cooling load forecasting is to improve the prediction accuracy and timeliness.e 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].erefore, based on the characteristics of the mall, the data should be reanalyzed and integrated before forecasting.is specific prediction idea is shown in Figure 1.
According to the content above, JMP data analysis software is used to analyze the input data correlation to improve the neural network.
e 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.erefore, the prediction accuracy of the neural network can be improved, and it can be applied to the dynamic prediction of cooling load of airconditioning 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.

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

e Prediction Model of the PSO-BP Neural Network.
e 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.
e commonly used input data for cold storage air-conditioning cold load prediction include the outdoor dry bulb temperatures T 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. e empirical formula (1) can be obtained for nodes of hidden layer of the neural network as 21: 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.e fitness value of the particles is determined by the predictionrelated data and the data obtained by the PSO algorithm, as shown in the following formula: where N is the number of samples, y i is the observed value of sample i, and y i is the predicted value of sample i.
(2) e fitness of the current particle is selected as the best fitness P see of the current particle and the best fitness P best of the historical optimum.e best historical fitness of the current particle and the best global fitness g best are selected as the historical optimal fitness of the current particle.
(3) e velocities and positions of the particles are updated using formulas (3) and ( 4), respectively: where a � 1, 2, . . ., n, b � 1, 2, . . ., n, l 1 is the optimal step size of the individual particles, l 2 is the optimal step size of the particles, r 1 and r 2 are random numbers between 0 and 1, X ab is the position of the particle a, and V ab is the speed of the particle a.
Setting the maximum particle velocity interval as [0, V max ], when the particle velocity is higher than V max , the particle's velocity is back to V max at this time.(4) Comparing the current iteration number CurIte with the maximum number of iterations MaxIte: if CurIte ≥ MaxIte, stop iterating; if CurIte < MaxIte, return to step (1).

e 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 2 Journal of Control Science and Engineering ideal state of engineering, mainly because there are some deviations in the complexity of input data and combined prediction.erefore, 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.
e results of correlation analysis are shown in Table 1.
Combining with the analysis results of the foregoing and Table 1, 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.
e 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.
e Markov chain is suitable for the correction of prediction problems with fluctuation [18].e steps of Markov error correction for the predicted value of the above neural network model are as follows: (1) e error value matrix A(t) is calculated according to the predicted value matrix  A(t) and the measured value matrix A(t) 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: (2) According to formula (7) and statistical method, the transition probability matrix is obtained according to the error state interval obtained in step (1): where P (t) ij is the probability transition matrix, N i is the error of state in which i is the total number of occurrences, and n (t)  ij is the error of state with i being the number of transitions from state t to state j.
(3) e state vector at step t is obtained by using formula (8) to judge the state interval at step t: where P 0 is the probability distribution under the initial condition and P (1) is the one-step probability transfer matrix, as shown in equation ( 6):

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.erefore, 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 Figure 2, 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.erefore, in the subsequent experimental simulation, experiments are conducted on analyzing a weekday and a weekend, respectively.

Case Validation Analysis.
According to the previous analysis, this experiment uses the actual data of a commercial center in Xi'an.
e commercial center has ten floors, with a height of 40.6 meters and an area of 250,000 square meters.e building air-conditioning area occupies about 187,600 square meters.e mall uses ice storage airconditioning for cooling in summer.
In this experiment, seven variables of outdoor dry bulb temperatures T 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 26 th to July 29 th as the verification analysis data.
e test data is used for simulation to verify the prediction ability of the network.Figure 3 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.
It can be found from Figure 4 that the prediction error of model 3 is better than that of models 1 and 2, but it still has a peak error.erefore, the Markov chain should be used to modify it and to improve the prediction accuracy of the model.

e Correction of the Markov Chain.
e 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.e 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 value X 1 � 5.937 and mean variance S 1 � 6.352 are obtained.
e mean value of error over the weekend is X 2 � − 0.694, and the mean variance is going to be S 2 � 10.421.After calculation, the state interval of Markov chain within a week and on the weekend is shown in Table 2.
According 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 Table 3.
According to the error state of Table 2, it is determined that the Markov chain one-step transition probability matrices P 1 and P 2 in the week and on the weekend are as follows: According to the error state of Table 2, 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.
e 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).
e results are shown in Figure 5.
RMSPE (root mean square percentage error) was used to evaluate the errors of the four prediction models, and the processing results are shown in Table 4: e 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 Figure 5 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.

Conclusion
Aiming at the problem of cooling load prediction from ice storage air-conditioning in malls, the paper proposes a (1) e output cooling load of the ice storage air-conditioning system in the shopping mall at time T 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) e 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  Outdoor temperature V: Particle velocity W: Outdoor wind speed H: Outdoor humidity f: Particle fitness X: Particle position SVM: Support-vector machine PSO-BP: Particle swarm optimization-back propagation BP: Back propagation PSO: Particle swarm optimization RMSPE: Root mean square percentage error.

Table 1 :
Figure 1: Flow of dynamic prediction method for cooling load.Correlation between input parameters and cooling load at time T.

Table 3 :
PSO-BP neural network prediction error classification results.
prediction model to improve the PSO-BP neural network and the method which uses the Markov chain to correct the error.e JMP data analysis software is used to analyze the correlation between input and output data.e 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:

Table 4 :
Prediction model root mean square error.theprediction model RMSPE was reduced from 26.14% to 3.06%.(3)e prediction results show that the method we use can improve the prediction accuracy.Besides, it is more suitable for practical engineering application. of