Uneingeschränkter Zugang

Research on automatic diagnosis and optimal control of faults in housing heating systems

  
05. Feb. 2025

Zitieren
COVER HERUNTERLADEN

Introduction

With the rapid development of society, people’s living standards are also improving. In the northern and cold regions, winter heating is a livelihood issue involving thousands of households, and the quality of heating directly affects the quality of life of the general public [1-2]. For the acceptance of the heating system, with the system running for a long time, the “running, bubbling, dripping, leaking” phenomenon will still occur, as pipeline aging, valve corrosion, poor insulation, end equipment, such as weakening the performance of heat dissipation will become a potential problem [3-4]. For different forms of heating systems and the problems that may occur or already exist, it can provide professional solutions for customers by formulating corresponding testing programs and using professional instruments and equipment to test and analyze [5].

China’s centralized heating area is increasing year by year, and CO2 emissions due to heating account for about 17.4% of the national building carbon emissions. There are various abnormal and faulty working conditions on the user side of the hot water heating system, which mainly include sensor failures, blockage and valve jamming in the hot water system, as well as abnormal working conditions caused by user behaviors, such as malicious opening windows, heat theft by users, and interference with sensors [6-7]. Current research on indoor window state recognition mainly uses image-based deep learning methods, which are mainly oriented to the air conditioning system and inevitably lead to privacy issues; in the secondary piping system fault diagnosis, methods such as Isolated Forests, Gaussian Mixture Models, and SVMs have been explored and applied, but the current research is unable to determine the type of anomalies and ignores the common pipeline blockage conditions, so there is a need for further optimization of the heating Therefore, it is necessary to further optimize the diagnostic methods for heating [8-9].

On the other hand, in the northern region of China, building energy consumption accounts for about 40% of the total local energy consumption, of which winter heating accounts for about 50% to 60%, which is caused by the fact that in China’s urban areas, centralized heating in boiler rooms is mainly used, and in the rural areas, electric heaters or coal stoves are used, which have certain defects in all three heating methods. Boiler room centralized heating and coal furnace heating have serious problems of secondary pollution because both heating methods use coal as fuel, and coal combustion will produce carbon dioxide, sulfur dioxide, and other gases. Sulfur dioxide and atmospheric water vapor reactions will lead to the formation of acid rain, seriously endangering human health and the atmospheric environment [10-12]. Electric heaters and other electric heating equipment through resistance wires and other electrical energy into heat for heating, so the use of the area can not be too large, and the conversion of electrical energy to heat can only reach a maximum of 100%, reducing the utilization rate of energy. Therefore, the development of new heating technologies that utilize solar energy, geothermal energy and other clean energy for heating and changing the type of energy consumed for heating is a major effective way to change China’s energy structure [13-15].

The heating system will have some problems during long-term operation, which need to be diagnosed and analyzed according to the actual situation and develop corresponding solutions. Sun, C et al. designed a hierarchical classification as well as a two-step training method for abnormal temperature detection and heating system obstacle diagnosis, and in the simulation practice, the temperature was caused by four situations: sensor offline, sensor reverse connection, abnormal heat source operation, and heat station downtime anomalies were accurately diagnosed [16]. Li, M et al. aimed to improve fault detection in heating systems and conceptualized a two-stage fault detection and isolation strategy with the convolutional neural network as the core logic. Based on the results of the performance experiments, it was learned that the proposed detection scheme for the heating system can provide real-time and accurate monitoring of the heating system [17]. Østergaard, D. S et al. examined a method for monitoring and identification of heating systems in apartments, noting that the method utilizes return data from self-heating cost allocators in order to identify radiators with consistently high return temperatures, which in turn localizes the hydraulic balance of the heating system, and suggesting that the method can be further optimized for heating fault identification accuracy [18]. Li, G et al. conceived a strategy for HVAC fault diagnosis and interpretation using deep learning algorithms as the core logic and combined it with an absolute gradient-weighted class-activation mapping approach to visualize heating system faults, which was tested on a simulated dataset, and the proposed fault diagnosis methodology had an identification accuracy of up to 98.5% [19]. Guo, Y et al. proposed a building energy efficiency fault diagnosis approach called deep belief network based on the deep learning method and tested the effect of this diagnosis approach with four fault types under the heating model of variable flow refrigeration system, which corroborated the feasibility of the proposed building energy efficiency diagnosis approach [20]. Xue, P et al. explored the performance of descriptive data mining techniques in district heating (DH) systems and tested and evaluated them with two substation-related datasets in the DH system in Changchun, China. The test results showed that descriptive data mining techniques could uncover effective knowledge to assist the training of practitioners in the heating system and improve their corresponding professional knowledge, and also provide an important reference for the district heating system’s substation fault diagnosis provides an important reference [21]. Rogers, A. P et al. systematically summarized relevant research and cutting-edge methods for fault monitoring in air-conditioning systems while also looking at future developments in the field of air-conditioning, refrigeration, and heating troubleshooting, including more cost-effective methods of troubleshooting and research on sensors for simplified troubleshooting [22].

The optimal control problem of a heating system refers to, based on the end-user load prediction results, adjusting the valve openings of the heat medium into the end building and the number of openings and speeds of parallel circulating water pumps in the district heat exchange station; thus, realizing the system’s on-demand heat supply, hydronic balancing, and energy saving and consumption reduction, in order to solve the problems of “far-cooling and near-heating,” hydraulic imbalance, and uneven transmission and distribution. Lu, M et al. conceived a control method targeting real-time indoor temperature in order to solve the operation regulation problem of the district heating system (DHS) due to the strong coupling relationship between the plumbing conditions of each building. Based on the example analysis method, it was pointed out that the proposed heating operation optimization strategy can effectively reduce the heating operation cost [23]. Sameti, M et al. used the mathematical planning program tool, explored a four-generation district heating system, and tested and examined the four-generation heating system model with residential and office complexes in multiple scenarios, pointing out that the operating cost of the four-generation district heating system decreased by a quarter, and the operating emissions were improved to some extent [24]. Ling, J et al. compared the intermittent heating strategy under non-operating conditions with the operating. The results showed that low water temperature and early start-up were more energy efficient under thermal comfort-oriented heating demand conditions [25]. Fang C et al. attempted to analyze and optimize the equipment model of a heating system based on heat loads using genetic algorithms and finally attempted to optimize the design of the return temperature as well as the circulation flow rate in order to reduce the cost of the composite heating system [26]. Chen, Q et al. built a state-space model of variable flow radiant heating system, carried out the corresponding analysis and evaluation, and concluded that the state-space model has high simulation efficiency, and the simulation effect is suitable for the simulation of large-scale building heating systems. The controller has better performance in reducing energy consumption and improving COP [27]. Wang, G et al. considered an energy management scheme that integrates solar energy and electromagnetic heating technologies as well as time-of-day pricing as the underlying logic, and the multi-attribute index evaluation of real cases confirmed the proposed time-of-day pricing energy management strategy, which effectively reduces the system’s operating cost and life-cycle cost [28].

In this paper, the study of optimal control of housing heating system, based on the Smith-fuzzy PID control strategy, constructed an optimal control system consisting of acquisition control and host computer monitoring. For the identification of system faults, a method of automatic diagnosis of heating system faults (LSTM-DT) based on recurrent neural network (LSTM) and dynamic threshold algorithm (DT) is proposed. The method uses recurrent neural networks to construct a prediction model for the observed values of various target sensors at the heat station. The error between the predicted values of the model and the actual observed values of the sensors is calculated, and the anomaly threshold is adaptively determined based on the error vector using the dynamic threshold algorithm. Taking the actual heat station of the heating system as the research object, the proposed method is applied to realise the fault diagnosis of the sensors of water supply pressure, return pressure, water supply temperature and return temperature of the heating system.

Optimal control design programme for heating systems
Housing heating systems

The central heating system for urban housing is generally composed of three parts: the heat source, the heat network, and the end-users. Heat source refers to the place where heat energy is generated, which is mainly a heat company that generates heat media that meets certain parameters through a boiler or a thermoelectric power plant. [29]. The heat network refers to the collective name for the piping system that delivers heat to a city or region. Of course, the heat network is the channel that connects the heat source to the user, playing an important role in transport and connection. The end user generally refers to the heat user, which is the equipment that directly consumes heat energy, such as heating equipment such as heaters in residential homes.

The overall structure of the system is shown in Figure 1. The entire heating process is actually a cycle of heat energy generation, delivery, and consumption. Thermal energy is generated by the low-temperature heat medium (such as coal, gas, etc.) after heating or treatment to absorb heat into a high-temperature heat medium (such as high-temperature hot water or high-temperature steam). Then, it is transported out through a certain pressure and reaches the user according to a predetermined route, and the heat dissipation equipment in the user’s room radiates the heat into the air, making the indoor temperature rise. However, the temperature of the heat medium is lowered after heat dissipation, and then it is sent back to the heat distance through the return pipe to be heated and utilised again. By repeating this cycle, a long-term heat supply is achieved.

Figure 1.

Overall structure of the system

Control strategy selection

The control of temperature is important for the heating system. Nowadays, in the control system, there must be a regulator method first. The actual temperature value and the set temperature are compared to determine the control amount needed to make the temperature reach the set value, both to establish the control model of the heating system. Familiarity with the regulator is the core of the computer control system. The most commonly used control methods are four [30]:

Direct digital control

Digital controller based on the discretised data model and sampling of the theoretical design.

PID control

The output of the controller is a common action of proportional, integral, and differential operations on the input quantities. This type of control is an empirical approach and can be controlled without knowing the mathematical model of the system, so it is widely used in engineering practice.

Optimal control

As the name suggests, it is a method that has the best effect on a certain index or several indexes. Engineering is often considered the shortest time, the lowest cost, the least energy consumption and so on. This control method, however, requires the establishment of an accurate mathematical model.

Fuzzy control

Fuzzy control belongs to intelligent control, which does not require the establishment of a digital model, imitates the fuzzy data reasoning of the human mind, and has a low memory footprint and simple control. The control model of this system is difficult to determine due to the nonlinearity of the control object, hysteresis, and uncertain environmental factors.

So, in order to get the precise control effect, this system chooses the control strategy of fuzzy self-tuning PID (Smith-Fuzzy PID), comparing the difference between the set temperature and the actual temperature, and then doing the processing of the change of this difference to get the output regulation, and adjust the inlet valve to control the room temperature to reach the set range.

Overall design of the control system

The heating system consists of three main parts, including the heat source, heat medium transport piping, and heat dissipation equipment.

The heat source of a heating system generally refers to the equipment that generates steam or hot water, and the steam or hot water has parameters such as pressure and temperature that meet the requirements.

Heat transfer piping refers to the piping system that can transfer the heat produced by the heat source from the heat source to the user.

Heat dissipation equipment refers to equipment that can transfer heat to all corners of the room, such as heat sinks.

The optimisation scheme of the housing heating control system proposed in this paper is shown in Fig. 2, and the system as a whole is divided into two parts: the collection and control system, and the upper computer monitoring system.

Collection and control system

The primary and secondary sides of the pipeline are installed with temperature transmitters and pressure transmitters for measuring the temperature and pressure of the supply and return water. The primary side of the water supply pipeline is also installed with a flowmeter to detect the primary water supply flow rate, which is used to calculate the difference between the primary supply and return water temperatures to obtain the heat supply. Solenoid valves are installed on the primary water supply pipeline to control the primary water supply flow, thus regulating the heat. Therefore, the control system consists of detection sensors, data collectors, PLC controllers and so on. Through the data collector to collect on-site pressure, flow, temperature and other data, after the programmable controller control strategy and algorithm, adjust the heat supply parameters to ensure that the system works safely and stably.

Upper computer monitoring system

The operation of the heating system is closely related to the hot water flow pressure and other parameters in the pipeline, and the management of the control system requires a monitoring centre to monitor the supply and return water temperature, pressure, flow, circulating pumps and make-up pumps of the primary and secondary pipelines, and to take appropriate control measures according to the changes in parameters. Each parameter related to the hot water condition and operation flow of the heat exchange station is displayed on the upper computer system in real-time. The upper computer monitoring system is convenient for management and operators to view and coordinate heating parameters to ensure quality heating.

Figure 2.

The optimal scheme of housing heating control system

Automated diagnostic modelling of heating system faults

Sensors in each place of the heating system can monitor the temperature, pressure, flow rate and other heating operation parameters in real time, realising a comprehensive perception of the heating system operation process, thus providing massive data resources for intelligent operation decision-making of the heating system. As the scale of the heating system becomes larger and larger, there are usually dozens or even thousands of heat stations distributed in various locations of the heating pipe network. Most of the heat station sensors work in harsh environments and are prone to erosion and damage, which reduces their accuracy, stability and reliability, causes wrong perception of the heating system operation state, and leads to the system giving wrong control strategies. For this reason, this chapter proposes an automatic heating system fault diagnosis (LSTM-DT) method based on recurrent neural network (LSTM) and dynamic threshold algorithm (DT).

Recurrent Neural Networks
Model structure

Recurrent neural networks (LSTM) are a class of neural networks with short-term memory that are very suitable for sequence data analysis and modelling. In order to process sequence data and utilise its historical information, the hidden layer of a recurrent neural network employs neurons with self-feedback, which can receive not only the output information of other neurons, but also their output information, thus forming a network structure with loops. Figure 3 shows the structure of a simple recurrent neural network, which contains an input layer, a hidden layer and an output layer. In the figure, vector xR,tNR$${x_{R,t}} \in {\mathbb{R}^{{N_R}}}$$ represents the input at the moment of t, variable NR represents the number of input variables, vector hR,tDR$${h_{R,t}} \in {\mathbb{R}^{{D_R}}}$$ represents the state of the hidden layer at the moment of t (referred to as the hidden state), variable DR represents the number of neurons in the hidden layer, and variable y^t$${\hat y_t} \in \mathbb{R}$$ represents the output at the moment of t. The expression of the simple recurrent neural network is given by. hR,t=fact(WRxR,t+URhR,t1+bR)$${h_{R,t}} = {f_{act}}\left( {{W_R}{x_{R,t}} + {U_R}{h_{R,t - 1}} + {b_R}} \right)$$ y^t=VRThR,t$${\hat y_t} = V_R^T{h_{R,t}}$$

Figure 3.

Architecture of recurrent neural network

Where, fact()$${f_{act}}\left( \cdot \right)$$ - nonlinear activation function, usually Logistic or Tanh function.

WRDR×NR$${W_R} \in {\mathbb{R}^{{D_R} \times {N_R}}}$$ - State-input weight matrix of the recurrent neural network, learnable parameters.

URDR×DR$${U_R} \in {\mathbb{R}^{{D_R} \times {D_R}}}$$ - State-state weight matrix of the recurrent neural network, learnable parameters.

bRDR$${b_R} \in {\mathbb{R}^{{D_R}}}$$ - Bias vector of the recurrent neural network, learnable parameters.

VRDR$${V_R} \in {\mathbb{R}^{{D_R}}}$$ - Linear transformation weight vector of the recurrent neural network, learnable parameter.

Model training

A recurrent neural network (LSTM) based fault prediction model is trained using the small batch gradient descent algorithm and the Adam optimisation algorithm to minimise the loss function of the model. The loss function of the model L()$$\mathcal{L}\left( \cdot \right)$$ is the mean square error between the predicted and true values of the target time series, calculated as: L(θ)=1Ki=tt+K1(yiy^i)2$$\mathcal{L}\left( \theta \right) = \frac{1}{K}\sum\limits_{i = t}^{t + K - 1} {{{\left( {{y_i} - {{\hat y}_i}} \right)}^2}}$$

Where: θ - all learnable parameters in the predictive model.

K - batch size, i.e., the number of training samples used to calculate the gradient and update the model parameters in one iteration of training.

Dynamic Thresholding Algorithm

The operating conditions of the heating system are dynamically changing, and the boundary between normal and abnormal modes may also be dynamic and fuzzy under different operating conditions. Therefore, in this paper, the dynamic threshold algorithm is used for the fault diagnosis of heating system sensors. The dynamic threshold algorithm finds the abnormality threshold of the current moment based on the current moment, as well as the error values of the past Ne moments, so as to judge whether the observation value of the target time series at the current moment is abnormal or not. Specifically, it can be divided into three steps: error smoothing, threshold selection and anomaly pruning.

Error Smoothing

Due to the dynamic characteristics of the heating system operating conditions, it is difficult for the prediction results of the prediction model to match the real change curves exactly for some normal fluctuations of larger magnitude of the observed values in the time series. Therefore, the spike fluctuations in the error vector are first filtered out by error smoothing. Specifically, the exponentially weighted moving average (EWMA) algorithm is used to smooth the error, and the following formula can express the smoothing process: eS,t={ett=1wcet+(1wc)eS,t1t>1$${e_{S,t}} = \left\{ {\begin{array}{*{20}{l}} {{e_t}}&{t = 1} \\ {{w_c}{e_t} + \left( {1 - {w_c}} \right){e_{S,t - 1}}}&{t > 1} \end{array}} \right.$$

Where, eS, t - smoothing error at moment t.

we - weight decay coefficient, calculated as: we=2/(WEWMA+1)$${w_e} = {2 /{\left( {{W_{EWMA}} + 1} \right)}}$$

Where, WEWMA - the window size of the exponentially weighted moving average.

Threshold selection

At moment t, the smoothed error values of the current moment and the past Ne moments are selected to form an error vector eS=(eS,tNe,eS,tNc+1,,eS,t)T$${e_S} = {\left( {{e_{S,t - {N_e}}},{e_{S,t - {N_c} + 1}}, \ldots ,{e_{S,t}}} \right)^T}$$, and the inter-anomaly values are determined based on the error vector.

Given the scalar vector z=(2.5,3,3.5,,10)T$$z = {\left( {2.5,3,3.5, \ldots ,10} \right)^T}$$, calculate the candidate anomaly threshold as: ε=μ(es)+zσsd(eS)$$\varepsilon = \mu \left( {{e_s}} \right) + z{\sigma _{sd}}\left( {{e_S}} \right)$$

Where: ε - the set of all candidate anomaly thresholds.

μ()$$\mu \left( \cdot \right)$$ - A function to calculate the mean.

σsd()$${\sigma _{sd}}\left( \cdot \right)$$ - A function to calculate the standard deviation.

The optimal anomaly threshold is determined by maximising the objective function equation: ε*=argmaxεε[μ(eS)μ(eN)]/μ(eS)+[σsd(eS)σsd(eN)]/σsd(eS)|eA|+|eseq|2{}$$\begin{array}{l} {\varepsilon ^*} = \mathop {\arg \max }\limits_{\varepsilon \in \varepsilon } \\ \frac{{{{\left[ {\mu \left( {{e_S}} \right) - \mu \left( {{e_N}} \right)} \right]} / {\mu \left( {{e_S}} \right)}} + {{\left[ {{\sigma _{sd}}\left( {{e_S}} \right) - {\sigma _{sd}}\left( {{e_N}} \right)} \right]} / {{\sigma _{sd}}\left( {{e_S}} \right)}}}}{{\left| {{e_A}} \right| + {{\left| {{e_{seq}}} \right|}^2}}}\left\{ {} \right\} \\ \end{array} $$

Where, eN - set of normal error values eN={eSeS|eS<ε}$${e_N} = \left\{ {{e_S} \in {e_S}\left| {{e_S}} \right. < \varepsilon } \right\}$$.

eA - set of candidate abnormal error values eA={eSeS|eSε}$${e_A} = \left\{ {{e_S} \in {e_S}\left| {{e_S}} \right. \ge \varepsilon } \right\}$$.

eseq - a set of continuous error vectors eseq={eseq}$${e_{seq}} = \left\{ {{e_{seq}}} \right\}$$, and a continuous error vector eseq is a vector of candidate anomaly error values eAeA at successive time steps. In particular, an isolated candidate anomaly error value is also considered as a continuous error vector.

|eA|$$\left| {{e_A}} \right|$$ - A total number of candidate anomaly error values.

|eseq|$$\left| {{e_{seq}}} \right|$$ - The total number of continuous error vectors.

If the smoothed error value eS,tε*$${e_{S,t}} \ge {\varepsilon ^*}$$ at moment t, then the error value at that moment is a candidate anomaly error value and the corresponding sensor observation is a candidate anomaly value.

Abnormal pruning

By anomaly pruning, candidate anomalies that are unreliable and less suspicious are excluded. This step aims to reduce the false alarm rate of system fault diagnosis.

The maximum values in the set of normal error values eN and the maximum values of each successive error vector eseq in the set of successive error vectors eseq are selected and arranged in descending order to form a new error vector emax. Obviously, the length of this vector is |eseq|+1$$\left| {{e_{seq}}} \right| + 1$$. Iterate over the error vector emax and compute the rate of descent of each element in the vector with respect to the latter element Δe: Δei=emax,iemax,i+1emax,ii=1,2,,|eseq|$$\Delta {e_i} = \frac{{{e_{\max ,i}} - {e_{\max ,i + 1}}}}{{{e_{\max ,i}}}}i = 1,2, \ldots ,\left| {{e_{seq}}} \right|$$

Given a minimum descent rate Δe*, if the i rd element emax,iemax of vector emax has a descent rate Δei ≥ Δe*. Then all the continuous error vectors eseq corresponding to the first i elements {emax ,jemax |ji}$$\left\{ {{e_{{\text{max }},j}} \in {{\mathbf{e}}_{{\text{max }}}}|j \le i} \right\}$$ in vector emax are still diagnosed as anomalies.

After pruning, the smoothing error values in those continuous error vectors that are still diagnosed as anomalies are the final anomalies. If the smoothed error value eS,t at moment t is finally detected as an anomaly, it means that the heating system is in a faulty condition at moment t, and the algorithm will immediately send a fault alert to the operation manager.

Analysis of the effectiveness of control and troubleshooting of housing heating systems
Fuzzy PID heating temperature optimisation control

Embedding the optimal control strategy based on fuzzy self-tuning PID in a housing heating system, a table of fuzzy control PID input and output affiliation and affiliation values is obtained, and a matrix table of parameter fuzzy tuning can be obtained by fuzzy reasoning under the premise that there are also relevant fuzzy rules. In order to facilitate the use of the matrix table, the matrix table can be stored in the computer programme memory. The fuzzy PID is able to detect its output at all times through the computer, and the two inputs of the fuzzy PID control can be calculated in real time. The two inputs are then fuzzyed, and since the fuzzy matrix table has been stored in the computer, the amount of adjustment needed for the PID parameters can be obtained from this table.

System parameterisation

The adjustment of the system parameters is mainly to consider the speed of response, the accuracy value in steady state conditions, the size of the overshooting amount, and whether the system control has stability. The specific rules of adjustment need to be considered in conjunction with the system output response curve. PID three parameter adjustment needs to achieve the fuzzy PID control under different circumstances of the input to the control parameters of the requirements of the specific circumstances are as follows:

When the absolute value of error e is large, in order to avoid the phenomenon of calculus saturation in the heating system control, in order to make the system have good tracking performance, the value of proportional parameter Kp is taken as a larger value, the value of differential parameter Kd is taken as a smaller value, and the value of integral parameter Ki is taken as 0.

When the absolute value of error e takes the middle value between larger and smaller, if you want to minimise the value of the overshooting amount, you need to take the value of the P and D parameters of the PID to smaller values, and the I parameter to the appropriate middle value as far as possible.

When the absolute value of error e is taken as a small value, in order to prevent the system from fluctuations and reduce the stability and resistance to external environmental disturbances, it is necessary to take the P, I parameters of the PID to a larger value, the D parameter is taken to the appropriate value, which will depend on the absolute value of the rate of change of the size of the error. When the absolute value is small, the PID D parameter is taken as the middle value. On the contrary, if the absolute value is large, it is relatively small.

Fig. 4 shows the relationship between Kp, Ki, and Kd of the temperature control of the heating system and the error (e) and the rate of change of the error following the change of the error (ec). The specific analyses are as follows:

Fig. 4(A) shows the relationship between the scale parameter Kp and e and ec. It can be seen that Kp increases with e and the two are positively correlated. In the interval ec ∈ [1,-1], Kp achieves the minimum value when ec=0.

Fig. 4(B) shows the relationship between the integration parameter Ki and e and ec. It can be seen that Ki increases with e and ec, and Ki is positively correlated with e and ec.

Fig. 4(C) shows the relationship between differential parameter Kd and e and ec, with Kd decreasing with e and varying irregularly with ec. The differential parameter Kd obtains a maximum value of 3.97 at ec=-0.5, e=-2. Ki is negatively related to e and ec.

Figure 4.

The relationship between PID parameter setting and error and error change rate

Optimising control effects

Under the environment of housing heating system, the three control methods of PID, fuzzy PID, and fuzzy self-tuning PID (Smith-fuzzy PID) proposed in this paper are simulated and compared and analysed. When the housing heating system is at primary load, the simulation comparison results of the three temperature control methods are shown in Fig. 5. It can be seen that the maximum value of PID is 26.9°C, and the time to reach stability from the coordinates reaches stability (23°C) after 0.813 × 104 s, with an oscillation of 16.96%. The fuzzy PID has a maximum value of 24.6°C and reaches a steady state in 0.572 × 104 s with an oscillation of 6.96%. The Smith-fuzzy PID has a maximum temperature value of 23.6, a minimum time required to reach a steady state of 0.332 × 104 s and a minimum oscillation of 2.61%. In the whole temperature control process, Smith-fuzzy PID is obviously better than PID and fuzzy PID. PID has higher overshooting and a longer time to reach a steady state. Fuzzy PID has the second-best effect, with less overshooting and a relatively smaller stabilisation time. While Smith-Fuzzy PID has a high adaptive ability, low overshooting, short time to reach stabilisation, less time consuming, better stability and robustness. Compared with the other two control methods, it is more indicative that the selection of the Smith-Fuzzy PID control method is more suitable to be applied in this system.

Figure 5.

Simulation results of three temperature control methods

In order to verify whether the Smith-Fuzzy PID control method is better than the other two control methods when the heating system is in fault conditions. Under the same conditions, the effect of factors such as opening and closing the door back and forth on the temperature is considered, and the sensor fault signal is added, and the simulation results are shown in Fig. 6. It can be seen that under the condition of adding the fault signal for 2 × 104 s, from the perspective of oscillation amplitude, stabilisation time and the speed of achieving stability after the disturbance, by comparing and analysing the effects of the three control methods, it can be concluded that the Smith-fuzzy PID is able to restore stability in the case of a fault disturbance in a shorter period of time of only 0.240 × 104 s. This shows that the optimized control strategy proposed in this paper is able to restore stability faster in the case of a system fault compared to the other two control methods. Two control methods, it is able to carry out coordinated control faster, which further indicates that this method is the preferred method for the control of the housing heating system.

Figure 6.

Comparison of simulation results of heating system with fault signal

Analysis of the effectiveness of system fault diagnosis
Feature selection for sample data

In order to validate the automatic diagnosis of heating system faults (LSTM-DT) method based on recurrent neural network (LSTM) and dynamic threshold algorithm (DT) proposed in this paper, intelligent classification and diagnosis research is carried out for the user’s behaviour of window opening, pipe blockage, actuator failure, and measurement of coarse error conditions in the indoor heating system. The sample data obtained through simulation is large, and nine feature quantities of indoor temperature difference, return water temperature difference, and indoor/outdoor temperature difference between the user and four neighbouring users are considered for classification and diagnosis. The simulation model is used to collect the initial data, and the corresponding sample data is obtained after a brief calculation to create a sample data set that includes data from the four operating conditions.

Since the features of the data are not independent of each other, according to Occam’s razor principle, it is hoped to use as few dimensions as possible for calculation. At the same time, reducing the dimension of the computation also reduces computational efficiency and reduces the possibility of overfitting phenomena in the classification diagnostic model.

As it is desired to use a smaller amount of features for diagnostic analysis, minimising the dimensionality of the sample data but not overly eliminating the amount of information contained in the samples, correlation analysis between 9-dimensional data is performed by plotting a correlation matrix (i.e., heatmap). The correlation between two or two feature measures of the sample data can be analysed using a heat map, the metric of which is the Pearson correlation coefficient, which is the quotient of the covariance and standard deviation between two feature measures, as in Eq: ρX,Y=cov(X,Y)σXσY=E(XY)E(X)E(Y)E(X)2E(Y)2E(Y)2E(X)2$${\rho _{X,Y}} = \frac{{\operatorname{cov} (X,Y)}}{{{\sigma _X}{\sigma _Y}}} = \frac{{E(XY) - E(X) - E(Y)}}{{\sqrt {E{{(X)}^2} - E{{(Y)}^2}} \sqrt {E{{(Y)}^2} - E{{(X)}^2}} }}$$

Where: ρX,Y - Pearson’s correlation coefficient.

cov(X, Y) - Covariance of variables X and Y.

σX, σY - Standard deviation of variables X and Y.

E() - Mathematical expectation of a parameter.

Fig. 7 shows the heat map of the correlation analysis of the eigenvalues of the sample data, and the values in the cells indicate the correlation coefficients between the two eigenvalues. Among them, A1~A5 is the temperature difference between indoor and outdoor, with the upstairs household, with the downstairs household, with the left-neighbouring household and with the right-neighbouring household, respectively. B1~B4 is the return water temperature difference with the upstairs household, with the downstairs household, with the left-neighbouring household and with the right-neighbouring household, respectively. As can be seen from the figure, the correlation coefficients between the four-room temperature difference parameters of the heating system and the four return water temperature difference parameters are all between 0.82 and 0.95, which is an extremely strong correlation, so there is no need for all of them to be used as the data feature quantity. Combined with the actual after comprehensive consideration, this paper selects the user indoor and outdoor temperature difference, upstairs room temperature difference, and downstairs room temperature difference, and upstairs return water temperature difference, and downstairs return water temperature difference five parameters composed of characteristic parameters, composed of indoor heating system working condition diagnostic data.

Figure 7.

Sample data characteristic quantity correlation analysis heat map

The eigenparameters can be expressed as: K=(tntw,tn(i,j)tn(i+1,j),tn(i,j)tn(i1,j),th(i,j)th(i+1,j),th(i,j)tn(i1,j))$$\begin{array}{l} K = ({t_n} - {t_w},{t_{n(i,j)}} - {t_{n(i + 1,j)}},{t_{n(i,j)}} - {t_{n(i - 1,j)}}, \\ {t_{h(i,j)}} - {t_{h(i + 1,j)}}, {t_{h(i,j)}} - {t_{n(i - 1,j)}}) \\ \end{array}$$

Where, tn - user indoor temperature, ℃.

tw - Outdoor temperature, ℃.

th -Heating system return water temperature, ℃.

i - User’s floor.

j - User number.

It is worth noting that the sample data of users located on the bottom and top floors are incomplete, so the data of neighbouring users on the same floor are used to replace the data of upstairs or downstairs users for constructing the sample dataset.

In addition, in the actual uploaded data, there are far more normal working condition data than faulty working condition and abnormal behavioral working condition data. The possibility of a large number of abnormal data is small, so this paper randomly selects some data from the various types of data in the sample data set, including the user’s indoor and outdoor temperature difference, the indoor temperature difference with the upstairs and downstairs users, and the return temperature difference, and the experimental data set used for the verification of intelligent diagnostic methods is shown in Table 1. Among them, it includes 1892 data for normal working conditions and 900 data for fault conditions.

All kinds of sample data sets after random screening

Type of working condition Quantity (item)
Normal working condition 1892
Window opening condition 988
Clogging condition 1205
Actuator fault condition 900
Gross measurement error 161
System fault diagnostic analysis

This subsection is designed to validate the suitability of LSTM-DT as a first-class classifier for a two-tier fault identification and localisation scheme. The experiments in this subsection focus on the variation of the accuracy and robustness of the LSTM-DT when a component failure occurs in the heating system. In this section, the effects of different data sampling window lengths, as well as noise intensity, on system fault identification are considered.

The following types of experiments are performed regarding the identification of system faults:

Classification performance of the LSTM-DT model for identifying system faults, including the identification performance of LSTM-DT for different window lengths and different signal-to-noise ratios.

Figure 8 shows the recognition effect of LSTM-DT for nine types of system faults under different data window lengths and different signal-to-noise ratios. The recognition effectiveness is measured by the average F1 value, which is the average of the F1 values of the 900 heating system fault diagnosis, and is a comprehensive reflection of the recognition accuracy of the classifier. The data window lengths are 5, 10, 20, and 40 sampling points in order, and the sampling frequency is 1 sample/second. The signal-to-noise ratios are 20dB, 40dB, 60dB, 80dB, and 100dB in order, where 100dB means no noise is added. In the case of the same sample signal-to-noise ratio, it can be seen from the figure that the average F1 value is increased when the window length is changed from 5 to 40, indicating that the longer the data window length, the better the LSTM-DT recognition effect.

Figure 8.

LSTM-DT recognition effect with different window length and signal-to-noise ratio

With a constant data window length, it can be seen that the LSTM-DT remains essentially unchanged and stable for system fault identification F1 values when the signal-to-noise ratio is varied from 40dB to 100dB. When stronger noise (20dB) is added, the average F1 decreases, but both remain above 90%. It can be learnt that LSTM-DT is less affected by noise and can identify various sub-faults stably. From the overall point of view, the average F1 values of LSTM-DT are all above 90%, so it can be concluded that LSTM-DT has high accuracy and robustness for the identification of heating system faults.

A comparative study of LSTM-DT with KNN, RF, and BPNN for identifying system faults, comparing the identification performance of the four methods at different window lengths and different signal-to-noise ratios.

Fig. 9 shows the recognition results of system faults under different data window lengths and different noise intensities. Where (A)~(D) are the identification results of LSTM-DT with KNN, RF and BPNN for system faults, respectively, and the measure in the matrix is the average F1 value, which is the average of the F1 values of 900 system faults. It can be seen that the flat F1 value of LSTM-DT is greater than that of KNN, RF and BPNN in the vast majority of cases. Moreover, LSTM-DT also performs more reliably when affected by noise compared to other methods. KNN also performs relatively well for the identification of system faults, while RF and BPNN perform relatively poorly.

Figure 9.

Comparison diagram of four methods to identify system faults

Overall, from the four subgraphs, the window length affects the recognition accuracy of various classification methods, so it is important to adopt the appropriate window length. In terms of method accuracy, LSTM-DT and KNN perform better, while RF and BPNN perform average. Taken together, the LSTM-DT model proposed in this paper has good accuracy and robustness for fault diagnosis in heating systems.

Conclusion

In this paper, an automatic diagnostic method is studied for the abnormal working conditions of the heating system in housing, a method based on the Smith-fuzzy PID algorithm for optimal control of the temperature of the heating system is proposed, and an automatic diagnosis of faults of the heating system (LSTM-DT) method based on recurrent neural network (LSTM) and dynamic threshold algorithm (DT) is constructed. The effectiveness of the two methods was tested in the final experimental stage. The conclusions of the experimental stage are summarized as follows:

Comparing the traditional PID and fuzzy PID control methods, the Smith-fuzzy PID optimal control strategy proposed in this paper achieves the best results in terms of oscillation amplitude, stabilisation time, and stabilisation recovery time after a heating system failure.

Comparing the KNN, RF, and BPNN methods, the LSTM-DT automatic diagnosis method proposed in this paper achieves an average F1 value of more than 0.9, which is significantly higher than that of the three methods of KNN, RF, and BPNN, when diagnosing 900 fault data of the heating system. Meanwhile, the method in this paper still achieves a good average F1 value under strong noise conditions, which is accurate and robust for fault diagnosis of the heating system.

Of course, there are many shortcomings in this design. Due to their limited technical level, some requirements did not meet the goal. Future research on the control and diagnosis of the heating system can be improved by incorporating the following points:

With the ever-changing technology of the Internet of Things (IoT) and the increasing demands of users, the establishment of the Internet of Things (IoT) of the heating system can be considered and can be flexibly controlled with mobile terminals such as mobile phones.

Subsequently, the fault-tolerant control corresponding to the relevant fault diagnosis should be added to make the operation of the heating system more stable and also more intelligent.

Sprache:
Englisch
Zeitrahmen der Veröffentlichung:
1 Hefte pro Jahr
Fachgebiete der Zeitschrift:
Biologie, Biologie, andere, Mathematik, Angewandte Mathematik, Mathematik, Allgemeines, Physik, Physik, andere