Air conditioning sensor fault detection method and system

Through the combination of KPCA kernel principal component analysis and DL-BiLSTM network, the problem of low accuracy of air conditioning sensor fault detection in nonlinear systems is solved, and high accuracy and timeliness detection of air conditioning sensor faults are achieved, especially in drift. In terms of fault detection, the detection effect is significantly improved.

CN112381141BActive Publication Date: 2024-09-27XI'AN UNIVERSITY OF ARCHITECTURE AND TECHNOLOGY
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202011270534.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-13
Publication Date
2024-09-27
Estimated Expiration
2040-11-13

AI Technical Summary

Technical Problem

Existing air conditioning sensor fault detection methods have low accuracy in nonlinear systems, especially for drift fault detection.

Method used

KPCA kernel principal component analysis is used to reduce data dimensionality, and combined with the DL-BiLSTM network, the data is converted into a sequence with time functions through a time sliding window, and a bidirectional LSTM model is trained for fault detection.

Benefits of technology

It improves the accuracy and timeliness of air-conditioning sensor fault detection, reduces the complexity of model input data, enhances the ability to detect minor faults, avoids misjudgments, and improves the accuracy rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112381141B
    Figure CN112381141B
Patent Text Reader

Abstract

The present invention provides an air-conditioning sensor fault detection method and system. First, a plurality of sensor data groups of an air-conditioning system are obtained, and training samples and test samples are constructed; standardization processing is performed to obtain standardized training samples and standardized test samples; KPCA kernel principal component analysis is used to reduce dimensions to obtain reduced-dimensional training samples and reduced-dimensional test samples, and the reduced-dimensional training sample data is used as the input of a DL-BiLSTM network for training to obtain a trained DL-BiLSTM network; the reduced-dimensional test sample data is used as the output of the trained DL-BiLSTM network to obtain an air-conditioning system sensor fault detection result; the present invention eliminates the differences between sensors with different characteristics by performing standardization processing on sample data, and uses KPCA dimensionality reduction processing to effectively reduce the complexity of input data, and uses the DL-BiLSTM network to fully extract the time characteristics of the fault, so that the detection model has high precision and the fault detection result has high accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of air conditioning, and in particular relates to a method and system for detecting faults of air conditioning sensors. Background Art

[0002] As a detection component of the air-conditioning system, the sensor's measurement signal is the basis for the normal operation of the system. Therefore, it is very necessary to detect the fault of the air-conditioning sensor in a timely and accurate manner. The fault of the air-conditioning sensor includes two categories: soft fault and hard fault. Among them, deviation, drift and degradation of accuracy level are soft faults, which are performance degradation or partial failure caused by fatigue, corrosion or wear during use, which are more harmful to the air-conditioning system. Complete failure is a hard fault and is generally not studied.

[0003] At present, fault detection methods are divided into two categories of analysis methods: qualitative and quantitative, based on whether system modeling is needed. The so-called qualitative analysis method refers to analyzing the system based on the principles of the system and the experience and knowledge of experts, but such methods do not have adaptive and self-learning capabilities and cannot adapt to complex and changing production environments. Quantitative analysis methods include analytical model-based methods and data-driven methods. The analytical model-based method requires the establishment of an accurate mathematical model of the system. A model can only be used for a specific system and has low scalability. In addition, this method is only applicable to linear systems. It is difficult to establish an appropriate mathematical model for systems with high time variation, strong coupling, and strong nonlinearity such as air-conditioning systems. Using the above methods for system modeling will lead to reduced fault detection efficiency. Data-driven methods are current research hotspots, mainly including principal component analysis methods and neural network methods.

[0004] The principal component analysis method was formally proposed in 1901. It is a multivariate statistical method. The principal component analysis method constructs T in the principal component subspace and the residual subspace respectively. 2 and Q statistics to detect faults; however, this method is only applicable to linear problems, and the fault detection effect is not ideal for air-conditioning systems with nonlinear systems; in order to address the shortcomings of the principal component analysis method, the kernel principal component analysis method was proposed, which maps sample data from the input space to a high-dimensional feature space through nonlinear transformation, and then uses the principal component analysis method to extract features in the high-dimensional feature space; however, in actual sensor detection applications, it was found that it is not universal, especially for drift fault detection, the accuracy is low.

[0005] A neural network is an algorithm that mimics the behavioral characteristics of animal neural networks. It does not require precise mathematical models, non-mapping capabilities, or nonlinear characteristics, making it very suitable for studying nonlinear systems such as air-conditioning systems. A BP neural network is a classic neural network, but it does not have a memory function. A recurrent neural network uses internal memory to process arbitrary input time series data, and its self-looping structure allows data to be transmitted on the network layer for a long time, but it has problems such as gradient vanishing and gradient exploding, and insufficient long-term memory capacity. To solve this problem, a long short-term memory network was proposed, which adds three gating mechanisms to the recurrent neural network, namely the input gate, the forget gate, and the output gate, so that problems such as gradient vanishing and gradient exploding can be well handled. At the same time, the unit state is used to preserve the long-term state. Compared with the above method, this method slightly improves the fault detection rate for air-conditioning sensors, but overall the detection accuracy is still low. Summary of the Invention

[0006] In response to the technical problems existing in the prior art, the present invention provides an air conditioning sensor fault detection method and system to solve the technical problem of low accuracy in the existing air conditioning sensor fault detection.

[0007] In order to achieve the above object, the technical solution adopted by the present invention is:

[0008] The present invention provides a method for detecting air conditioner sensor failure, comprising the following steps:

[0009] Step 1: Obtain several sensor data sets of the air conditioning system and construct training samples and test samples;

[0010] Step 2: Standardize the training sample data and the test sample data to obtain standardized training samples and standardized test samples;

[0011] Step 3: Use KPCA kernel principal component analysis to reduce the dimension of the standardized training sample data and the standardized test sample data to obtain the reduced-dimensional training samples and the reduced-dimensional test samples;

[0012] Step 4: Use the dimensionality-reduced training samples as the input of the DL-BiLSTM network to train the DL-BiLSTM network to obtain a trained DL-BiLSTM network.

[0013] Step 5: Use the reduced-dimensional test samples as the input of the trained DL-BiLSTM network to obtain the air conditioning system sensor fault detection results.

[0014] Furthermore, in step 1, a part of the sensor data groups is used as training samples, and the remaining sensor data groups are used as test samples; each sensor data group includes input feature data and output feature data; wherein, the input feature data includes the opening of the chilled water valve, the supply air humidity, the fresh air temperature, the fresh air humidity, the return air temperature and the return air humidity; the output feature data includes the supply air temperature.

[0015] Furthermore, in step 2, the training sample data and the test sample data are subjected to zero-mean normalization;

[0016]

[0017] Among them, x * is the standardized sensor data; x is the original data of the sensor; μ is the mean of the training sample data of each type of sensor; σ is the standard deviation of the training sample data of each type of sensor.

[0018] Furthermore, in step 3, when principal component extraction is performed on the standardized training sample data and test sample data, the following steps are specifically included:

[0019] Step 31: Use the Gaussian radial kernel function to map the standardized training sample data or test sample data to a high-dimensional space to obtain a kernel matrix;

[0020] Step 32: Centralize the kernel matrix to obtain a centralized kernel matrix;

[0021] Step 33: Determine the eigenvalues ​​and eigenvectors of the centralized kernel matrix, and sort the eigenvectors in descending order of the corresponding eigenvalues;

[0022] Step 34: Set the threshold of the cumulative variance contribution rate to 85% and determine the number of principal components p; take the first p rows of eigenvectors, normalize them and construct a matrix to obtain the reduced-dimensionality training samples and the reduced-dimensionality test samples.

[0023] Furthermore, in step 4, a time sliding window is first used to convert the dimension-reduced training sample data into a sensor data sequence with a time function to obtain an input training sample, and the input training sample is used as the input of the DL-BiLSTM network.

[0024] Furthermore, in step 4, when training the DL-BiLSTM network, the following steps are specifically included:

[0025] The input training sample is input into the DL-BiLSTM network to obtain the predicted value of the output data; the mean square error is used as the loss function to calculate the sum of the loss values ​​of the loss function of the input training sample; the Adam algorithm is used to update and optimize the gradient of the DL-BiLSTM network until the iteration is completed to obtain the trained DL-BiLSTM network.

[0026] Furthermore, the DL-BiLSTM network adopts a two-layer bidirectional LSTM network model; the DL-BiLSTM network includes a sequence input layer, a first bidirectional LSTM network layer, a first dropout layer, a second bidirectional LSTM network layer, a first fully connected layer, a second dropout layer, a second fully connected layer and a regression prediction layer;

[0027] The output of the sequence input layer is connected to the input of the first bidirectional LSTM network, the output of the first bidirectional LSTM network is connected to the input of the first dropout layer, the output of the first dropout layer is connected to the input of the second bidirectional LSTM network, the output of the second bidirectional LSTM network is connected to the input of the first fully connected layer, the output of the first fully connected layer is connected to the input of the second dropout layer, the output of the second dropout layer is connected to the input of the second fully connected layer, and the output of the second fully connected layer is connected to the input of the regression prediction layer.

[0028] Furthermore, in step 4, the expression of the mean square error E is:

[0029]

[0030] Among them, t i is the true value of the output feature data in the training sample, y i is the predicted value of the output feature data in the training sample.

[0031] Furthermore, in step 5, a time sliding window is first used to convert the dimensionality-reduced training and test data into a sequence with a time function to obtain an input test sample, and the input test sample is input into the trained DL-BiLSTM network; the predicted output is obtained, and the difference between the predicted output and the actual output is used to obtain the residual; then the residual is compared with the preset fault threshold to obtain the fault detection result of the air-conditioning system sensor.

[0032] The present invention also provides an air conditioning sensor fault detection system, comprising an acquisition module, a standardization processing module, a principal component extraction module, a model training module and a prediction and determination module;

[0033] The data acquisition module acquires several sensor data sets of the air conditioning system and constructs training samples and test samples;

[0034] The standardization processing module performs standardization processing on the training sample data and the test sample data to obtain standardized training samples and standardized test samples;

[0035] The principal component extraction module uses KPCA kernel principal component analysis to reduce the dimension of the standardized training sample data and the standardized test sample to obtain the reduced-dimensional training sample and the reduced-dimensional test sample;

[0036] The model training module uses the reduced-dimensional training sample data as the input of the DL-BiLSTM network to train the DL-BiLSTM network and obtain the trained DL-BiLSTM network.

[0037] The prediction and judgment module uses the reduced-dimensional test sample data as the input of the trained DL-BiLSTM network to obtain the air-conditioning system sensor fault detection results.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] The present invention provides an air conditioning sensor fault detection method and system. By standardizing sample data, the differences between sensors with different characteristics are eliminated. KPCA kernel principal component analysis is used for dimensionality reduction, which is well adapted to nonlinear air conditioning systems. KPCA kernel principal component analysis is used for dimensionality reduction processing, which effectively reduces the complexity of DL-BiLSTM network input data and reduces the difficulty of collecting sensor data groups. The DL-BiLSTM network can fully extract the temporal characteristics of the fault, resulting in a high precision detection model and a high accuracy rate for minor fault detection results.

[0040] Furthermore, by making full use of the contribution rate diagram of KPCA, there is no need to use professional knowledge to analyze the correlation of variables. The importance of features can be judged based on the size of the contribution rate. The data collection process does not require a lot of prior knowledge. Even non-professional personnel can obtain relevant data, which is highly practical.

[0041] Furthermore, by adopting KPCA kernel principal component analysis, the dimension of the network model input data is reduced, which effectively reduces the running time of the model detection and achieves the timeliness of fault detection.

[0042] Furthermore, the data without time function after KPCA dimensionality reduction is converted into a sequence, so that the fault judgment not only depends on the changes at the current moment, but is also related to the status of the previous moments. This avoids misjudgment to a certain extent, makes the precision rate higher, and makes fault detection more accurate.

[0043] In summary, the present invention uses DL-BiLSTM to fully extract the temporal characteristics of faults. At the same time, the two-layer bidirectional LSTM structure makes the model training accuracy higher than the standard LSTM. Combining it with KPCA to reduce the dimensionality of the data reduces the complexity of the DL-BiLSTM model input data. Compared with the traditional PCA method, KPCA is more suitable for the nonlinear system of air conditioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 Schematic diagram of the flow of the air conditioner sensor fault detection method according to the present invention;

[0045] Figure 2 A detection result curve graph of a 10% drift fault is set for the air conditioning sensor fault detection method described in this embodiment;

[0046] Figure 3 A detection result curve diagram of a 20% drift fault is set for the air-conditioning sensor fault detection method described in this embodiment. DETAILED DESCRIPTION

[0047] In order to make the technical problems, technical solutions and beneficial effects solved by the present invention more clearly understood, the present invention is further described in detail in the following specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0048] As attached Figure 1 As shown, the present invention provides an air conditioning sensor fault detection method, comprising the following steps:

[0049] Step 1: Obtain several sensor data sets of the air conditioning system and construct training samples and test samples.

[0050] In step 1 of the present invention, the sensor data group obtained is all the collectable sensor data in the entire loop of the air-conditioning system. The sensor data acquisition process does not need to pay too much attention to the relationship between the various sensors in the air-conditioning system, and does not need to use too much professional knowledge to determine the data collection scope, which effectively reduces the professional and technical background requirements for the operator.

[0051] In step 1 of the present invention, a portion of the sensor data groups is used as training samples, and the remaining sensor data groups are used as test samples; each sensor data group includes input feature data and output feature data; wherein the input feature data includes the opening of the chilled water valve, the supply air humidity, the fresh air temperature, the fresh air humidity, the return air temperature and the return air humidity; and the output feature data includes the supply air temperature.

[0052] Step 2: Standardize the input feature data in the training samples and the test samples respectively to obtain standardized training samples and standardized test samples; the present invention eliminates the differences in sensor data types by performing data standardization on the input feature data to obtain standardized input feature data.

[0053] In step 2 of the present invention, the input feature data in the training samples and the test samples are subjected to zero-mean normalization, and the normalization formula is:

[0054]

[0055] Among them, x * is the standardized sensor data; x is the original data of the sensor; μ is the mean of the training sample data of each type of sensor; σ is the standard deviation of the training sample data of each type of sensor.

[0056] Among them, when standardizing the input feature data in the training samples, first, the mean and standard deviation of each category of sensor data of the input feature data in the training samples are calculated, and then the mean and standard deviation of each category of sensor data are used to perform zero-mean standardization on the corresponding category sensor data in the training samples using the standardization formula to obtain the standardized training samples.

[0057] When standardizing the input feature data in the test sample, the mean and standard deviation of the sensor data of the corresponding category of the input feature data in the training sample are used, and the standardization formula is used to perform zero-mean standardization on the sensor data of the corresponding category in the test sample to obtain the standardized test sample.

[0058] Step 3: Use KPCA kernel principal component analysis to reduce the dimensionality of the input feature data in the standardized training samples and the input feature data in the standardized test samples to obtain the reduced dimensionality training samples and the reduced dimensionality test samples.

[0059] Taking the dimensionality reduction of the input feature data in the standardized training sample as an example, the specific steps include:

[0060] Step 31: Use the Gaussian radial kernel function to map the input feature data in the standardized training samples to a high-dimensional space to obtain a training sample kernel matrix K; wherein the dimension of the high-dimensional space is infinite.

[0061] Step 32: Use the centralization formula to centralize the training sample kernel matrix K to obtain the centralized training sample kernel matrix K c ;

[0062] The centralization formula is:

[0063] K c =(Kl N K-Kl N +l N Kl N )

[0064] Among them, l N To express the coefficient An N×N matrix, where N is the dimension of the training sample kernel matrix.

[0065] Step 33: Determine the centralized training sample kernel matrix K c The eigenvalue λ and the corresponding eigenvector v are sorted in descending order, that is, they are sorted from large to small by eigenvalue. The larger the eigenvalue, the more useful information its corresponding eigenvector contains.

[0066] Step 34: Set the centralized training sample kernel matrix K c The threshold of the cumulative variance contribution rate of the principal component in is 85%, and the number of principal components p is determined; the first p rows of eigenvectors are taken and normalized to construct a matrix to obtain the training samples after dimensionality reduction;

[0067] The threshold calculation formula for the principal component cumulative variance contribution rate is:

[0068]

[0069] Among them, λ k is the centralized training sample kernel matrix K c The kth eigenvalues ​​are obtained in descending order, and p is the number of principal components.

[0070] In the present invention, the dimensionality reduction process of the input feature data in the standardized test sample is consistent with the dimensionality reduction process of the input feature data in the standardized training sample.

[0071] Step 4: Use a time sliding window to convert the input feature data in the training sample after dimensionality reduction into a sequence with a time function to obtain an input training sample; use a time sliding window to convert the input feature data in the test sample after dimensionality reduction into a sequence with a time function to obtain an input test sample.

[0072] In step 4 of the present invention, to ensure that the input and output of the DL-BiLSTM network are at the same level, since the KPCA principal component analysis reduces the dimensionality of the sample, only the input feature data is reduced in dimensionality, and no operation is performed on the output feature data; therefore, the input feature data and the output feature data are necessarily not at the same level, and the difference between the two needs to be eliminated to avoid affecting the detection results.

[0073] The specific process is as follows:

[0074] The training samples after dimensionality reduction are recorded as:

[0075]

[0076] Among them, x tj is the j-th sensor data at the t-th moment in the training sample after dimensionality reduction, where t is 1, 2, ..., or n; each row of the training sample after dimensionality reduction contains the data of the j-th sensor at a certain moment;

[0077] For example, the sensor data at time t is X t =(x t,1 x t,2 …x t,j )

[0078] Set the time step to T, determine the basis for sequence division, and convert data without time functions into data with time series characteristics. In the application process of the DL-BiLSTM network, it is necessary to convert it into data with time series characteristics. Then, the data input at each moment is no longer just the current moment, but should include the entire sequence.

[0079] The expression of the reduced-dimensional data as the input of DL-BiLSTM at a certain moment should be:

[0080]

[0081] Where T<t<n; the input training samples and input test samples after time sliding window conversion are both cell array types

[0082] Step 5: Use the input training sample in step 4 as the input of the DL-BiLSTM network, train the DL-BiLSTM network, and obtain a trained DL-BiLSTM network. The trained DL-BiLSTM network is used as a fault detection model.

[0083] The specific steps include:

[0084] Establish a DL-BiLSTM network, set DL-BiLSTM network parameters, and define the DL-BiLSTM network architecture;

[0085] Set the DL-BiLSTM network model parameters: Set the number of input neurons, number of output neurons, maximum number of training rounds, minimum batch size, initial learning rate, and number of hidden units in each BiLSTM layer according to the actual network model.

[0086] Defining the DL-BiLSTM network architecture: The DL-BiLSTM network of the present invention adopts a two-layer bidirectional LSTM model. Compared with the standard LSTM model, the DL-BiLSTM network of the present invention sets two layers of bidirectional LSTM superposition, that is, the output of the upper layer of bidirectional LSTM after the dropout layer is used as the input of the lower layer of bidirectional LSTM, making the result more accurate. The purpose of designing the dropout layer is to prevent overfitting in the training process.

[0087] The DL-BiLSTM network includes a sequence input layer, a first bidirectional LSTM network, a first dropout layer, a second bidirectional LSTM network, a first fully connected layer, a second dropout layer, a second fully connected layer, and a regression prediction layer; the output of the sequence input layer is connected to the input of the first bidirectional LSTM network, the output of the first bidirectional LSTM network is connected to the input of the first dropout layer, the output of the first dropout layer is connected to the input of the second bidirectional LSTM network, the output of the second bidirectional LSTM network is connected to the input of the first fully connected layer, the output of the first fully connected layer is connected to the input of the second dropout layer, the output of the second dropout layer is connected to the input of the second fully connected layer, and the output of the second fully connected layer is connected to the input of the regression prediction layer; the dropout rates of the first dropout layer and the second dropout layer are both 0.5.

[0088] Input feature data in the input training sample is input into the DL-BiLSTM network to obtain the predicted value of the output feature data; the mean square error is used as the loss function to calculate the sum of the loss values ​​of the loss function of the input feature data of the training sample; the gradient of the DL-BiLSTM network is updated and optimized using the adaptive learning rate algorithm Adam until the iteration is completed to obtain the trained DL-BiLSTM network, and the trained DL-BiLSTM network is used as the fault detection model; in order to prevent the gradient explosion of the DL-BiLSTM network, the present invention sets the gradient threshold of the DL-BiLSTM network to 1; wherein, the expression of the mean square error is:

[0089]

[0090] Among them, t i is the true value of the output feature data in the training sample, y i is the predicted value of the output feature data in the training sample.

[0091] Step 6: Using the input test sample in step 4 as the input of the fault detection model to obtain the air conditioning system sensor fault detection result; specifically, the following steps are included:

[0092] First, a time sliding window is used to convert the input feature data in the test sample after dimensionality reduction into a sequence with a time function to obtain the input test sample; the input test sample is input into the fault detection model to obtain the predicted output feature data, and the predicted output feature data is subtracted from the actual output feature data in the test sample to obtain the residual; then the residual is compared with the preset fault threshold to obtain the fault detection result of the air-conditioning system sensor; among them, when the residual is greater than the preset fault threshold, the air-conditioning system sensor is faulty; when the residual is less than or equal to the preset fault threshold, the air-conditioning system sensor is normal.

[0093] Step 7: Introduce the accuracy, precision, and recall rates commonly used in machine learning as evaluation indicators to determine the quality of fault detection performance. Specifically, the number of samples that are actually faulty but determined to be faulty is recorded as TP; the number of samples that are actually normal but determined to be normal is recorded as TN; the number of samples that are actually normal but determined to be faulty is recorded as FP; and the number of samples that are actually faulty but determined to be normal is recorded as FN.

[0094] Among them, the expression of the accuracy evaluation index is:

[0095]

[0096] The expression of the precision evaluation index is:

[0097]

[0098] The expression of the recall evaluation index is:

[0099]

[0100] The present invention also provides an air conditioning sensor fault detection system, comprising an acquisition module, a standardization processing module, a principal component extraction module, a model training module and a prediction and determination module;

[0101] The data acquisition module acquires several sensor data sets of the air conditioning system and constructs training samples and test samples;

[0102] The standardization processing module performs standardization processing on the training sample data and the test sample data to obtain standardized training samples and standardized test samples;

[0103] The principal component extraction module uses KPCA kernel principal component analysis to reduce the dimension of the standardized training sample data and the standardized test sample to obtain the reduced-dimensional training sample and the reduced-dimensional test sample;

[0104] The model training module uses the reduced-dimensional training sample data as the input of the DL-BiLSTM network to train the DL-BiLSTM network and obtain the trained DL-BiLSTM network.

[0105] The prediction and judgment module uses the reduced-dimensional test sample data as the output of the trained DL-BiLSTM network to obtain the air conditioning system sensor fault detection results.

[0106] Example

[0107] This embodiment provides a method for detecting air conditioner sensor failure, including the following steps:

[0108] Step 1: Acquire sensor data of the air conditioning system. In this embodiment, 1000 sensor data sets are selected when the air conditioning sensors in a certain air conditioning system are operating normally. Each sensor data set includes input feature data and output feature data. The input feature data includes chilled water valve opening, supply air humidity, fresh air temperature, fresh air humidity, return air temperature, and return air humidity. The output feature data includes supply air temperature. The first 700 sensor data sets are used as training samples, and the last 300 sensor data sets are used as test samples.

[0109] Step 2: Standardize the input feature data in the training samples and the test samples respectively to obtain standardized training samples and standardized test samples. This embodiment eliminates the differences in sensor data types by performing data standardization on the input feature data to obtain standardized input feature data.

[0110] In step 2, the input feature data in the training samples and test samples are subjected to zero-mean normalization. The normalization formula is:

[0111]

[0112] Among them, x * is the standardized sensor data; x is the original data of the sensor; μ is the mean of the training sample data of each type of sensor; σ is the standard deviation of the training sample data of each type of sensor.

[0113] Among them, when standardizing the input feature data in the training samples, first, the mean and standard deviation of each category of sensor data in the training samples are calculated, and then the mean and standard deviation of each category of sensor data are used to perform zero-mean standardization on the corresponding category sensor data in the training samples using the standardization formula to obtain the standardized training samples.

[0114] When standardizing the input feature data in the test sample, the mean and standard deviation of the sensor data of the corresponding category of the input feature data in the training sample are used, and the standardization formula is used to perform zero-mean standardization on the sensor data of the corresponding category in the test sample to obtain the standardized test sample.

[0115] KPCA kernel principal component analysis is used to reduce the dimensionality of the input feature data in the standardized training samples and the input feature data in the standardized test samples to obtain the reduced dimensionality training samples and the reduced dimensionality test samples.

[0116] Taking the dimensionality reduction of the input feature data in the standardized training sample as an example, the specific steps include:

[0117] Step 31: Use the Gaussian radial kernel function to map the input feature data in the standardized training samples to a high-dimensional space to obtain a training sample kernel matrix K; wherein the dimension of the high-dimensional space is infinite.

[0118] Step 32: Use the centralization formula to centralize the training sample kernel matrix K to obtain the centralized training sample kernel matrix K c ;

[0119] The centralization formula is:

[0120] K c =(Kl N K-Kl N +l N Kl N )

[0121] Among them, l N To express the coefficient An N×N matrix, where N is the dimension of the training sample kernel matrix.

[0122] Step 33: Determine the centralized training sample kernel matrix K c The eigenvalue λ and the corresponding eigenvector v, that is, K c =λv; and sort the eigenvectors and eigenvalues ​​in descending order, that is, sort them from large to small by eigenvalue. The larger the eigenvalue, the more useful information its corresponding eigenvector contains.

[0123] Step 34: Set the centralized training sample kernel matrix K c The threshold of the cumulative variance contribution rate of the principal component in is 85%, and the number of principal components p is determined; the first p rows of eigenvectors are taken and normalized to construct a matrix to obtain the training samples after dimensionality reduction;

[0124] In this embodiment, the dimensionality reduction process of the input feature data in the standardized test sample is consistent with the dimensionality reduction process of the input feature data in the standardized training sample.

[0125] Step 4: Use a time sliding window to convert the input feature data in the training sample after dimensionality reduction into a sequence with a time function to obtain an input training sample; use a time sliding window to convert the input feature data in the test sample after dimensionality reduction into a sequence with a time function to obtain an input test sample.

[0126] In step 4, to ensure that the input and output of the DL-BiLSTM network are at the same level, the KPCA principal component analysis performs dimensionality reduction on the samples, only reducing the dimensionality of the input features, while no operation is performed on the output feature data. Therefore, the input feature data and the output feature data are inevitably not at the same level, and the difference between the two needs to be eliminated to avoid affecting the detection results.

[0127] The specific process is as follows:

[0128] The training samples after dimensionality reduction are recorded as:

[0129]

[0130] Set the time step to 3, determine the basis for sequence division, and convert data without time functions into data with time series characteristics. In the application process of the DL-BiLSTM network, it is necessary to convert it into data with time series characteristics. The data input at each moment is no longer just the current moment, but should include the entire sequence.

[0131] The expression of the reduced-dimensional data as the input of DL-BiLSTM at a certain moment should be:

[0132]

[0133] Among them, 3<t<n; the input training samples and input test samples after time sliding window conversion are both cell array types

[0134] Step 5: Use the input training sample in step 4 as the input of the DL-BiLSTM network, train the DL-BiLSTM network, and obtain a trained DL-BiLSTM network. The trained DL-BiLSTM network is used as a fault detection model.

[0135] The specific steps include:

[0136] Establish a DL-BiLSTM network, set DL-BiLSTM network parameters, and define the DL-BiLSTM network architecture;

[0137] Set the DL-BiLSTM network model parameters: According to the actual network model, set the number of input neurons to 5, the number of output neurons to 1, the maximum number of training rounds to 50, the minimum batch size to 20, the initial learning rate to 200, and the number of hidden units in each BiLSTM layer to 100.

[0138] Define the DL-BiLSTM network architecture: The DL-BiLSTM network in this embodiment adopts a two-layer bidirectional LSTM model. Compared with the standard LSTM model, the DL-BiLSTM network in this embodiment sets two layers of bidirectional LSTM superposition. That is, the output of the previous bidirectional LSTM layer after the dropout layer is used as the input of the next bidirectional LSTM layer, making the result more accurate. The purpose of designing the dropout layer is to prevent overfitting in the training process.

[0139] The DL-BiLSTM network includes a sequence input layer, a first bidirectional LSTM network, a first dropout layer, a second bidirectional LSTM network, a first fully connected layer, a second dropout layer, a second fully connected layer, and a regression prediction layer.

[0140] The output of the sequence input layer is connected to the input of the first bidirectional LSTM network, the output of the first bidirectional LSTM network is connected to the input of the first dropout layer, the output of the first dropout layer is connected to the input of the second bidirectional LSTM network, the output of the second bidirectional LSTM network is connected to the input of the first fully connected layer, the output of the first fully connected layer is connected to the input of the second dropout layer, the output of the second dropout layer is connected to the input of the second fully connected layer, and the output of the second fully connected layer is connected to the input of the regression prediction layer. The dropout rate of the first and second dropout layers is 0.5.

[0141] Input feature data in the input training sample is input into the DL-BiLSTM network to obtain the predicted value of the output feature data; the mean square error is used as the loss function to calculate the sum of the loss values ​​of the loss function of the input feature data of the input training sample; the adaptive learning rate algorithm Adam is used to update and optimize the gradient of the DL-BiLSTM network until the iteration is completed, thereby obtaining a trained DL-BiLSTM network, which is used as a fault detection model; in order to prevent the gradient explosion of the DL-BiLSTM network, this embodiment sets the gradient threshold of the DL-BiLSTM network to 1; wherein, the expression of the mean square error is:

[0142]

[0143] Among them, t i is the true value of the output feature data in the training sample, y i is the predicted value of the output feature data in the training sample.

[0144] Step 6: Using the input test sample in step 4 as the input of the fault detection model to obtain the air conditioning system sensor fault detection result; specifically, the following steps are included:

[0145] Firstly, a time sliding window is used to convert the input feature data in the test sample after dimensionality reduction into a sequence with time function to obtain the input test sample; the input test sample is then input into the fault detection model to obtain the predicted output feature data, and the predicted output feature data is subtracted from the actual output feature data in the test sample to obtain the residual; then the residual is compared with the preset fault threshold to obtain the fault detection result of the air-conditioning system sensor.

[0146] Step 7: Introduce the accuracy, precision, and recall rates commonly used in machine learning as evaluation indicators to determine the quality of fault detection performance. Specifically, the number of samples that are actually faulty but determined to be faulty is recorded as TP; the number of samples that are actually normal but determined to be normal is recorded as TN; the number of samples that are actually normal but determined to be faulty is recorded as FP; and the number of samples that are actually faulty but determined to be normal is recorded as FN.

[0147] Among them, the expression of the accuracy evaluation index is:

[0148]

[0149] The expression of the precision evaluation index is:

[0150]

[0151] The expression of the recall evaluation index is:

[0152]

[0153] Starting from the 101th group of test data, drift faults are set. In this embodiment, the fault detection effects under 10% and 20% drift deviations are tested and compared with the fault detection effects of KPCA and standard LSTM.

[0154] As shown in Table 1 below, a comparison of the detection results of this embodiment, KPCA, and the standard LSTM fault detection method is shown when 10% and 20% drift faults are set for air conditioning system sensor data. Table 1 shows that although the KPCA method takes into account the nonlinear characteristics of the air conditioning system, it is not effective in detecting minor drift faults. For 10% and 20% drift faults, the accuracy is 54.33% and 56.33%, respectively, while the recall is only 32.50% and 35.50%. Although the standard LSTM method considers the temporal characteristics of faults, the model has only one LSTM layer, resulting in low accuracy and room for improvement in fault detection rate. The KPCA-DL-BiLSTM method proposed in this embodiment fully considers the temporal characteristics of faults and uses a two-layer bidirectional LSTM to establish an accurate fault detection model. It also combines the advantage of KPCA in reducing the dimensionality of nonlinear system features, reducing the model complexity. It can be seen that the KPCA-DL-BiLSTM method has certain practical significance for detecting minor faults in air conditioning sensors.

[0155] Table 1 Comparison of fault detection results when setting 10% and 20% drift faults for sensor data of air conditioning system

[0156]

[0157] As attached Figure 2 and attached Figure 3 As shown, attached Figure 2 and attached Figure 3 The detection result curves of the air conditioner sensor fault detection method according to this embodiment with 10% and 20% drift faults are respectively given in FIG. Figure 2 、 3 It can be seen from the figure that the residual curve of the KPCA-DL-BiLSTM in this embodiment is smoother than that of the LSTM, indicating that the KPCA-DL-BiLSTM fault detection model is also more stable. In this embodiment, the residual values ​​of the KPCA-DL-BiLSTM in the fault-free stage are basically below the fault threshold baseline, and in the fault stage, the residual values ​​are basically above the fault threshold baseline, indicating that its fault detection accuracy is high.

[0158] The fault detection method and system described in this embodiment have a higher fault detection accuracy rate than KPCA and standard LSTM, are more stable, and are more convenient to implement. They fully utilize the contribution rate graph of KPCA kernel principal component analysis. This part does not require professional knowledge to analyze the correlation of variables, and the importance of features can be determined based on the size of the contribution rate. Therefore, the sensor data collection process does not require a large amount of prior knowledge, and even non-professionals can obtain relevant sensor data, which is highly practical. The complexity of deep learning often leads to excessively long training and prediction times. The detection method of this embodiment is combined with KPCA to reduce the dimensionality of the input data, which to a certain extent shortens the running time and achieves the timeliness of fault detection. The data without time function after KPCA dimensionality reduction is converted into a sequence, so that the fault determination depends not only on the changes at the current moment, but is also associated with the states at previous moments, which to a certain extent avoids misjudgments and achieves a higher precision rate, that is, more accurate fault detection. A two-layer bidirectional LSTM model is used to establish a prediction model. Compared with the standard LSTM model, the parameters involved are more detailed, making the prediction model more accurate, thereby achieving higher fault detection accuracy.

[0159] The above embodiment is only one of the implementation methods that can realize the technical solution of the present invention. The scope of protection claimed by the present invention is not limited only to this embodiment, but also includes changes, replacements and other implementation methods that can be easily thought of by any technician familiar with this technical field within the technical scope disclosed by the present invention.

Claims

1. A method for detecting air conditioner sensor failure, characterized in that: The following steps are involved: Step 1: Obtain several sensor data sets of the air conditioning system and construct training samples and test samples; Step 2: Standardize the training sample data and the test sample data to obtain standardized training samples and standardized test samples; Step 3: Use KPCA kernel principal component analysis to reduce the dimension of the standardized training sample data and the standardized test sample data to obtain the reduced-dimensional training samples and the reduced-dimensional test samples; Step 4: Use the dimension-reduced training samples as the input of the DL-BiLSTM network, train the DL-BiLSTM network, and obtain a trained DL-BiLSTM network; Step 5: Use the reduced-dimensional test samples as the input of the trained DL-BiLSTM network to obtain the air conditioning system sensor fault detection results; In step 4, the time sliding window is first used to convert the dimension-reduced training sample data into a sensor data sequence with a time function to obtain the input training sample, and the input training sample is used as the input of the DL-BiLSTM network; When training the DL-BiLSTM network, the following steps are specifically included: Input the input training sample into the DL-BiLSTM network to obtain the predicted value of the output data; use the mean square error as the loss function to calculate the sum of the loss values ​​of the loss function of the input training sample; use the Adam algorithm to update and optimize the gradient of the DL-BiLSTM network until the iteration is completed to obtain the trained DL-BiLSTM network; The DL-BiLSTM network adopts a two-layer bidirectional LSTM network model; the DL-BiLSTM network includes a sequence input layer, a first-layer bidirectional LSTM network, a first drop layer, a second-layer bidirectional LSTM network, a first fully connected layer, a second drop layer, a second fully connected layer, and a regression prediction layer; The output of the sequence input layer is connected to the input of the first bidirectional LSTM network, the output of the first bidirectional LSTM network is connected to the input of the first dropout layer, the output of the first dropout layer is connected to the input of the second bidirectional LSTM network, the output of the second bidirectional LSTM network is connected to the input of the first fully connected layer, the output of the first fully connected layer is connected to the input of the second dropout layer, the output of the second dropout layer is connected to the input of the second fully connected layer, and the output of the second fully connected layer is connected to the input of the regression prediction layer; In step 5, firstly, a time sliding window is used to convert the dimension-reduced training test data into a sequence with a time function to obtain an input test sample, and the input test sample is input into the trained DL-BiLSTM network; the predicted output is obtained, and the predicted output is subtracted from the actual output to obtain the residual; then, the residual is compared with the preset fault threshold to obtain the fault detection result of the air-conditioning system sensor.

2. The air conditioning sensor fault detection method according to claim 1, characterized in that: In step 1, a part of the sensor data groups are used as training samples, and the remaining sensor data groups are used as test samples; each sensor data group includes input feature data and output feature data; wherein the input feature data includes the opening of the chilled water valve, the supply air humidity, the fresh air temperature, the fresh air humidity, the return air temperature and the return air humidity; and the output feature data includes the supply air temperature.

3. The air conditioning sensor fault detection method according to claim 1, characterized in that: In step 2, the training sample data and the test sample data are subjected to zero-mean normalization; Among them, x * is the standardized sensor data; x is the original data of the sensor; μ is the mean of the training sample data of each type of sensor; σ is the standard deviation of the training sample data of each type of sensor.

4. The air conditioning sensor fault detection method according to claim 1, characterized in that: In step 3, when the principal components are extracted from the standardized training sample data and the test sample data, the following steps are specifically included: Step 31: Use a Gaussian radial kernel function to map the standardized training sample data or test sample data to a high-dimensional space to obtain a kernel matrix; Step 32: Centralize the kernel matrix to obtain a centralized kernel matrix; Step 33, determine the eigenvalues ​​and eigenvectors of the centralized kernel matrix, and sort the eigenvectors in descending order according to the corresponding eigenvalues; Step 34, set the threshold of the cumulative variance contribution rate to 85%, determine the number of principal components p; take the first p rows of eigenvectors, and construct a matrix after normalization to obtain the reduced-dimensional training samples and the reduced-dimensional test samples.

5. The air conditioning sensor fault detection method according to claim 1, characterized in that: In step 4, the expression of mean square error E is: Among them, t i is the true value of the output feature data in the training sample, y i is the predicted value of the output feature data in the training sample.

6. An air conditioning sensor fault detection system, characterized in that: It includes an acquisition module, a standardization processing module, a principal component extraction module, a model training module and a prediction and determination module; A data acquisition module acquires several sensor data sets of the air conditioning system and constructs training samples and test samples; A standardization processing module performs standardization processing on the training sample data and the test sample data to obtain a standardized training sample and a standardized test sample; The principal component extraction module uses KPCA kernel principal component analysis to reduce the dimension of the standardized training sample data and the standardized test sample to obtain the reduced-dimensional training sample and the reduced-dimensional test sample; The model training module uses the dimension-reduced training sample data as the input of the DL-BiLSTM network, trains the DL-BiLSTM network, and obtains the trained DL-BiLSTM network; firstly, a time sliding window is used to convert the dimension-reduced training sample data into a sensor data sequence with a time function, obtains an input training sample, and uses the input training sample as the input of the DL-BiLSTM network; When training the DL-BiLSTM network, the following steps are specifically included: Input the input training sample into the DL-BiLSTM network to obtain the predicted value of the output data; use the mean square error as the loss function to calculate the sum of the loss values ​​of the loss function of the input training sample; use the Adam algorithm to update and optimize the gradient of the DL-BiLSTM network until the iteration is completed to obtain the trained DL-BiLSTM network; The DL-BiLSTM network adopts a two-layer bidirectional LSTM network model; the DL-BiLSTM network includes a sequence input layer, a first-layer bidirectional LSTM network, a first drop layer, a second-layer bidirectional LSTM network, a first fully connected layer, a second drop layer, a second fully connected layer, and a regression prediction layer; The output of the sequence input layer is connected to the input of the first bidirectional LSTM network, the output of the first bidirectional LSTM network is connected to the input of the first dropout layer, the output of the first dropout layer is connected to the input of the second bidirectional LSTM network, the output of the second bidirectional LSTM network is connected to the input of the first fully connected layer, the output of the first fully connected layer is connected to the input of the second dropout layer, the output of the second dropout layer is connected to the input of the second fully connected layer, and the output of the second fully connected layer is connected to the input of the regression prediction layer; The prediction and judgment module uses the reduced-dimensional test sample data as the input of the trained DL-BiLSTM network to obtain the fault detection results of the air-conditioning system sensor; first, a time sliding window is used to convert the reduced-dimensional training test data into a sequence with a time function to obtain an input test sample, and the input test sample is input into the trained DL-BiLSTM network; the predicted output is obtained, and the predicted output is subtracted from the actual output to obtain the residual; then the residual is compared with the preset fault threshold to obtain the fault detection result of the air-conditioning system sensor.

Citation Information

Patent Citations

  • Fault diagnosing method based on class mean kernel principal component analysis and a BP (Back Propagation) neural network

    CN108921230A

  • Fault data matching method based on convolutional neural network

    CN109188198A

  • Real-time fault detection and real-time fault isolation of multi-dimensional signals

    CN109472317A

  • Wastewater treatment intelligent monitoring method based on PCA-LSTM network

    CN110824914A

  • Gas pressure regulator fault diagnosis method and system based on PSO-KPCA-LVQ, terminal and computer storage medium

    CN111191727A