Research Article Temperature Control Algorithm of Underground Air Conditioning in Station

Aiming at the air-conditioning temperature control of underground station, the air-conditioning temperature controller of underground station is designed based on proportional-integral-differential neural network, the bat algorithm is used to select the initial weights, the radial basis function neural network prediction model is used to optimize the design of the predictor, and the designed control system is simulated on the MATLAB simulation platform. The simulation results show that the dynamic characteristics and steady-state characteristics of the PID controller optimized by bat algorithm are better than those of the PID controller tuned by conventional methods. After optimization by radial basis function neural network prediction model, the rapidity and stability of controller are effectively improved.


Introduction
At present, in most underground station air-conditioning control systems, direct open-loop control or closed-loop control with PID is the most common control strategy. When the process model of the controlled object can be obtained by mechanism derivation or easily identi ed, the controller parameters can be obtained by direct pole-zero assignment or frequency domain analysis, and the conventional control algorithm is e ective. However, the air-conditioning control system is a complex nonlinear system, and the PID parameters obtained through empirical tuning are often only suitable for a certain working environment. When the object parameters drift, the parameters of the PID regulator will not change correspondingly, resulting in the decline of control quality. e di culties in air-conditioning system control are as follows: (1) it is di cult to accurately determine the mathematical model of air-conditioning system under di erent working conditions; (2) the random interference of people ow and external environment on the controlled indoor environment is hard to predict; (3) the controlled area is large, and there are large inertia characteristics and pure lag links that are di cult to eliminate in control [1,2].
Over the years, many researchers have done a lot of research work in the direction of stability analysis, parameter tuning, and parameter self-adaptation of PID controller, but few research results have really been extended to engineering projects. According to the development stages, PID parameter tuning can be divided into classical tuning method represented by frequency domain analysis, empirical tuning method represented by Ziegler-Nichols, and intelligent tuning method which is currently popular in research. According to the application form, it can be divided into online setting and o ine setting methods. O ine setting method is often to adjust the parameters before the PID controller is put into operation. When the controller is dealing with various working modes, it is necessary to write multiple groups of parameter combinations in the controller and switch according to di erent external states, so its working mode is limited, and the undisturbed switching problem in di erent modes needs to be considered. Online tuning method is to introduce the performance index evaluation function into the PID controller during operation, calculate the correction amount according to the performance index function in each control cycle or each speci c control cycle, and adjust the parameters of the PID controller in real time, so that better control effect can be achieved. With the development of science and technology, machine learning technology including the neural network model has been widely used in many fields, such as subway passenger flow optimization [3,4], taxi demand forecast [5], bicycle station planning [6], and fetal ultrasound standard plane recognition [7]. e main contribution of this paper is to design an adaptive PID controller with excellent performance by combining the characteristics of underground station air conditioning system and neural network related algorithms. Compared with the conventional PID controller, the designed controller can greatly improve the dynamic quality of the controlled object, adapt to the time-varying characteristics of the process, ensure the temperature control system to run in the best state, make the air-conditioning system control more accurate, and achieve the effect of energy saving. At the same time, the system is easy to realize in engineering, debug and put into operation, and has the value of engineering popularization.

System Structure of Air Conditioning Cold Station.
e research object of this paper is the air-conditioning cold station system of underground station. As shown in Figure 1, the air-conditioning cold station system of underground station is composed of cooling tower, cooling water pump, refrigerating units, air-conditioning terminal, etc., which is mainly used to cool the air in the station. e water source of the cooling tower sends the cooled air to the public area through the cooling water pump and refrigerating unit to adjust the temperature in the station.

Neuron Controller Structure.
Neural network has the characteristics of large-scale parallel processing, high fault tolerance and robustness, self-organizing learning, and realtime processing, and can construct effective intelligent controllers for nonlinear and time-varying systems.
Single neuron controller inherits the advantages of conventional PID controller, such as simplicity, practicality, and easy realization through programming in the PLC control system. It has fewer adjustable parameters, easy debugging, and better control quality than conventional PID controller [8]. A classic neuron intelligent controller algorithm is shown in Figure 2: e target function is e neuron characteristics are as follows: where i � 1, 2, 3; 取0 < λ < 1. x 1 (k) represents the first-order difference, x 2 (k) represents the system error, and x 3 (k) represents the error accumulation.

Optimization Mechanism of Bat Algorithm.
Bat algorithm is a kind of swarm intelligence optimization algorithm proposed by Xin-She Yang in 2010. In nature, the woven bat emits ultrasonic pulses, and the information of prey is determined by analyzing the ultrasonic waves reflected by objects. Bats randomly change the speed, position, and frequency of ultrasonic waves to search for food in this way. In the process of approaching the prey continuously, the woven bat will weaken the loudness and increase the frequency of ultrasonic pulses, thus confirming that the distance between the woven bat and the prey is decreasing [9]. A large number of studies have shown that compared with particle swarm optimization, genetic algorithm, and other optimization algorithms, the bat algorithm has fewer iterative steps and higher optimization accuracy. erefore, under ideal circumstances, applying the bat algorithm to offline optimization of PID can often obtain a set of better initial values of PID parameters. In this paper, the bat algorithm is used to determine the initial weights of single neuron, that is, the selection process of initial PID parameters, learning rate, magnification, and other parameters. e optimization mechanism of the bat algorithm is shown in Figure 3. e ITAE function of the controlled variable is selected as the objective function; according to the object model obtained by the identification algorithm, a set of PID parameters that minimize the ITAE index are obtained through iterative algorithm optimization and then applied to PID control. [9].

Bat Algorithm Optimizes the Calculation Flow of PID.
e PID parameter tuning process based on the bat algorithm is shown in Figure 4. Following the foraging process of bats, the frequency, speed, and position of bats are updated as follows: where β ∈[0, 1] is a random number; f min , f max are the range of frequency f. According to the specific application, it is determined that x gbest is the global optimal solution at the t time [10].
For local optimization, once the current global optimal solution is determined, each bat will make a random movement according to the following formula, thus generating a new set of solutions [11].
where β ∈[− 1, 1] is a random number; A t is the average loudness of all bats at time t.

Neural Network Prediction
Model. Generally speaking, the control object and control process in industry can be described by the first-order or second-order time-delay model, and the feedback control can be realized by using the method of combining MFAP with PID. e parameters of the autoregressive model based on time series are estimated by the Levinson algorithm in MFAP predictor. MFAP without model predictor can form a local prediction model based on historical data of length m. After giving one of the most advanced prediction values, the predicted value is used to replace the process value at the future sampling time. By linking iterative processes, the optimal P-step advanced prediction value is obtained and assigned to the process value of PID. Neural network has strong nonlinear mapping ability, and neural network has been widely studied and applied in model identification. Relevant literature shows cooling tower chilled water pump refrigerating unit chilled water pump air conditioning terminal Cold station system that compared with the autoregressive (AR) model, the neural network has better accuracy in regression prediction.
In this paper, radial basis function (RBF) neural network is selected to identify the controlled process, and the process value of the object is assigned to the process value feedback end of PID, which will make the controller act in advance and the output value change in advance, so that the object can track the set value more quickly and stably, and improve the stability and robustness of the system [12].
Neural network has strong nonlinear mapping ability, and neural network has been widely studied and applied in model identification. Relevant literature shows that compared with the autoregressive model (AR), the neural network has better accuracy in regression prediction. e essence of system identification based on the neural network is to choose a suitable neural network model to approach the actual controlled system and to approach the dynamic system through continuous sample learning. In the design of the identifier, the main factors that affect its identification accuracy and generalization ability are as follows: (1) Structural complexity and sample complexity. e dimension of neural network equivalent model should be greater than or equal to that of the sample. (2) Sample quality. e accuracy and scale of sample data are particularly important to the accuracy of identification network, and the processing of pretraining dataset and the design of filtering algorithm are important contents to be paid attention to.
(3) A priori knowledge. By using prior knowledge, the range of parameters such as order and time delay of the model is limited so as to improve the accuracy of the model and reduce the workload in the pretraining process. (4) Initial weight. Neural network is sensitive to the setting of initial weights. At the initial stage, it uses smaller random weights for training, and after many trainings, it gets ideal weights. (5) Study time. By optimizing the calculation process of the neural network, the learning time of the neural network is limited to meet the real-time requirements in the control system.

Design of Predictor Based on RBF Neural Network.
In this paper, RBF is selected to identify the controlled process, and the process value of the object is assigned to the process value feedback end of PID, which will make the controller act in advance and the output value change in advance, so that the object can track the set value more quickly and stably, and improve the stability and robustness of the system. In the application of neural network for system identification, multilayer feedforward neural network (MFN) and radial basis function (RBF) neural network are two common types. Compared with MFN, RBF has faster convergence speed and approximation accuracy because of its simpler network structure and more effective learning algorithm. We select the serial-parallel identification structure [13], and the established multiinput single-output RBF identification model is shown in Figure 5.
RBF neural network has a three-layer network structure, which consists of input layer, hidden layer, and output layer [14]. e input u(k) and output y(k) of the identified system are used as the input of the identification model. e input layer of the network is e forecast output is expressed as − 1), . . . , y k − n y , u(k − 1), . . . , u k − n u , w .
We adopt performance indicators: Weight adjustment: where i � 1, 2, 3; 0 < λ < 1. zy(k)/zu(k) is the Jacobian information of the controlled process, which is obtained according to the online identification output of RBF, that is, .

(10)
A nonlinear transformation weighted relation is used to modify Ku online;

Comparison of Prediction Effects between RBF Neural
Network and AR Model. At present, many literature studies show that the accuracy of the neural network is far greater Mathematical Problems in Engineering than that of the regression model in nonlinear system identification and prediction [15]. e figure below shows the comparison result of the accuracy of the AR model regression model obtained by using the RBF neural network and AR model in process model identification. As shown in Figure 6, blue is the prediction result of AR model and red is the prediction result of RBF model. According to the comparison results, it can be seen that the result error based on RBF identification is far less than that of the recursive AR model, which proves that it is reasonable to use RBF as the identification of this process. e RBF identification algorithm designed in the figure adjusts the weight based on the current error, which can be used for local model identification or global identification. When the network scale is the same, the local model has better accuracy, but the generalization ability is poor, the global model has stronger generalization ability, and the prediction accuracy decreases slightly. e loss of accuracy can be compensated by increasing the size of training set and the number of hidden layers [16].

Simulation Study
In order to preliminarily verify the effectiveness and superiority of the proposed control algorithm, the algorithm is simulated by MATLAB software. e typical second-order time-delay link sys(s) � e − 2s /0.7s 2 + 0.8s 2 + 0.5 is selected as the controlled model, the step signal is used as the excitation of the control closed loop, and the white noise signal and the step signal are used for disturbance test, respectively. e experimental results and conclusions are as follows:

Bat Algorithm Tuning + PID Conventional Method.
According to the bat algorithm, the number of iterations is 50, the initial population is 20, and the optimization space is: e input signal is a step signal with amplitude of 1. In order to obtain good dynamic performance and flawless tracking of the signal, the minimum absolute error integral criterion is adopted as the objective function, and the square term of the control quantity is added to the objective function to prevent the control energy from being too large: where e(k) is the current time error; U(k) is the controller output; w 1 , w 2 , w 3 are weights, w 1 � 0.999, w 2 � 0.001, when say, the overshoot is used as the penalty index for the optimization process to prevent the overshoot of the system from being too large. e number of iterations is 50, and the PID tuning results are K P � 1.376, K I � 0.271, K D � 0.051. e setting process is shown in Figures 7 and 8. 10% step interference is added in the 8th simulation, and the result is shown in Figure 9. It can be seen that the performance of the controller optimized by the bat algorithm for PID parameters is far better than that tuned by the conventional method, with shorter rise time and smaller overshoot, and it can be stabilized in a shorter time after disturbance, and its dynamic and steady-state characteristics are better than those of PID tuned by conventional method.

Bat Algorithm Tuning + Proportional-Integral-Differential Neural Network + Prediction Model Second-Order Time-
Delay Model. As shown in Figure 10, the initial weights of single neuron PID use the PID parameters optimized by the bat algorithm as the initial values of w1, 2, and 3, the magnification Ku is set to 1, and the learning rates of Kp, Kd, and Ki are 0.3, 0.35, and 0.33, respectively. Use step signal for excitation, and apply 10% step interference at 80 s. e response curve record is shown in Figure 11. e control effect of the control system optimized by using proportional-integral-differential neural network (PIDNN) and RBF prediction model is better than that adjusted by conventional methods. e step curve rises faster and there is no overshoot. rough the step interference test, it can be seen that the optimized PID controller has better anti-interference ability, and the controlled quantity can still be quickly restored to a stable state. Compared with traditional methods, the neural network adaptive predictive controller used has the outstanding advantages of less tuning    parameters, easy convergence, short transition process, difficult oscillation and divergence, and easy realization of engineering configuration.

Conclusions
In this paper, the air-conditioning temperature controller of underground station is designed based on PIDNN, the bat algorithm is used to select the initial weights, the RBF neural network prediction model is used to optimize the design of the predictor, and the designed control system is simulated. e performance of the controller optimized by the bat algorithm for PID parameters is far better than that of the conventional method, and its dynamic characteristics and steady-state characteristics are better than those of the conventional method. e control method proposed in this paper combines RBF neural network controller with PICNN, making full use of the strong adaptive learning characteristics of the neural network. After optimization of PIDNN and RBF predictive model, the control scheme solves the problems of large overshoot and long response time in the air-conditioning temperature control system, eliminates static errors, improves the rapidity and stability, and achieves remarkable application effect.
Data Availability e dataset used in this paper are available from the corresponding author upon request. Mathematical Problems in Engineering 9