Unsupervised adaptive fault diagnosis method for building air conditioning system based on multi-source domain

Through the multi-source domain unsupervised adaptive fault diagnosis method, the domain-specific batch normalization layer and the distribution difference between domains are used to solve the diagnosis problem of the building air conditioning system under the data distribution difference and lack of label information, and achieve high accuracy. and stable fault diagnosis, reducing the need for label data.

CN118535977BActive Publication Date: 2024-10-15SHENZHEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411001344.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-15
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Existing building air conditioning fault diagnosis technology has poor model generalization performance due to differences in data distribution and lack of label information, resulting in low diagnostic accuracy and high requirements for label data, making it difficult to apply to unlabeled data environments.

Method used

A multi-source domain unsupervised adaptive fault diagnosis method is adopted. By obtaining source domain data of unlabeled target domain data and label information, a multi-source domain unsupervised adaptive diagnosis model is constructed, using domain-specific batch normalization layers and inter-domain Distribution difference distance, trains models to reduce data distribution differences and integrate multi-source data resources.

Benefits of technology

It achieves effective fault diagnosis in an unlabeled data environment, reduces the demand for labeled data, improves the generalization performance and diagnostic accuracy of the model, adapts to different application scenarios, and lowers the practical threshold of data-driven technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535977B_ABST
    Figure CN118535977B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for fault diagnosis of building air conditioning system based on multi-source domain unsupervised adaptive type, the method comprising: obtaining a target domain data set and a source domain candidate data set, screening the source domain data set according to the target domain data set and the source domain candidate data set; constructing a multi-source domain unsupervised adaptive diagnostic model according to the characteristics of the target domain data set and the source domain data set; training the multi-source domain unsupervised adaptive diagnostic model according to the target domain data set and the source domain data set; inputting the target domain data set into the trained multi-source domain unsupervised adaptive diagnostic model, and outputting the diagnostic result of the building air conditioning system to be diagnosed. The present invention has lower requirements on target building label data, can alleviate data distribution differences, and can effectively integrate multi-source, diversified and rich diagnostic information in actual scenarios, alleviate the problem of poor model generalization performance caused by data distribution differences, and realize effective fault diagnosis under unlabeled data of target domain air conditioning system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fault diagnosis, and in particular to a method, system, terminal and computer-readable storage medium for fault diagnosis of a building air-conditioning system based on multi-source domain unsupervised adaptive fault diagnosis. Background Art

[0002] Building air conditioning systems account for a large proportion of the total energy consumption of buildings. Their correct operation not only helps to ensure the thermal comfort of indoor occupants, but also helps to implement energy conservation and emission reduction strategies. With the development of big data and artificial intelligence technologies, data-driven air conditioning system fault diagnosis methods theoretically have the advantages of high accuracy and strong automated data, and are expected to achieve intelligent building operation and maintenance management. However, this technology currently faces the problems of narrow application scope and difficulty in promotion. The fundamental reason is that the relevant technologies are proposed based on the assumption that data is uniformly distributed or label information is sufficient, which is inconsistent with the actual situation.

[0003] In response to the practical problem of missing label information, a large number of studies have proposed a variety of learning paradigms to improve the effectiveness of building air conditioning fault diagnosis tasks under incomplete data conditions. For example, semi-supervised, transfer learning, and generative learning paradigms. However, these learning paradigms still require the target building to have a certain amount of labeled data. This is difficult for buildings without historical operating labeled data. In addition, most of the existing data-driven methods are based on the same distribution of training data and test data. In actual projects, the operating conditions of the air-conditioning system will be affected by factors such as outdoor climate, indoor heating and cooling loads, and control strategies, resulting in a certain distribution deviation of the collected data, thereby reducing the diagnostic performance of the model.

[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0005] The main purpose of the present invention is to provide a multi-source domain unsupervised adaptive building air-conditioning system fault diagnosis method, system, terminal and computer-readable storage medium, aiming to solve the problem of low accuracy of building air-conditioning fault diagnosis in the prior art due to the deviation of collected data and poor model generalization performance caused by data distribution differences.

[0006] To achieve the above object, the present invention provides a building air conditioning system fault diagnosis method based on multi-source domain unsupervised adaptive method, the building air conditioning system fault diagnosis method based on multi-source domain unsupervised adaptive method comprises the following steps:

[0007] Acquire the operating data of the building air conditioning system to be diagnosed as an unlabeled target domain data set, acquire multiple operating data sets related to the task of the building air conditioning system to be diagnosed and having label information as a source domain candidate data set, and obtain the source domain data set by screening the target domain data set and the source domain candidate data set;

[0008] Constructing a multi-source domain unsupervised adaptive diagnosis model according to the characteristics of the target domain data set and the source domain data set;

[0009] Training the multi-source domain unsupervised adaptive diagnosis model according to the target domain data set and the source domain data set to obtain a trained multi-source domain unsupervised adaptive diagnosis model;

[0010] The target domain data set is input into a trained multi-source domain unsupervised adaptive diagnosis model, and a diagnosis result of the building air conditioning system to be diagnosed is output.

[0011] In addition, to achieve the above-mentioned purpose, the present invention also provides a building air conditioning system fault diagnosis system based on multi-source domain unsupervised adaptive type, wherein the building air conditioning system fault diagnosis system based on multi-source domain unsupervised adaptive type includes:

[0012] A data acquisition module is used to acquire the operating data of the building air conditioning system to be diagnosed as an unlabeled target domain data set, acquire multiple operating data sets related to the task of the building air conditioning system to be diagnosed and having label information as a source domain candidate data set, and filter the source domain data set according to the target domain data set and the source domain candidate data set;

[0013] A model building module, used to build a multi-source domain unsupervised adaptive diagnosis model according to the characteristics of the target domain data set and the source domain data set;

[0014] A model training module, which trains the multi-source domain unsupervised adaptive diagnosis model according to the target domain data set and the source domain data set to obtain a trained multi-source domain unsupervised adaptive diagnosis model;

[0015] The fault diagnosis module is used to input the target domain data set into the trained multi-source domain unsupervised adaptive diagnosis model and output the diagnosis result of the building air conditioning system to be diagnosed.

[0016] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive type stored in the memory and executable on the processor, wherein the building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive type is implemented when the building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive type is executed by the processor as described above. The steps of the building air-conditioning system fault diagnosis method based on multi-source domain unsupervised adaptive type are implemented.

[0017] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive method, and when the building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive method is executed by a processor, the steps of the building air-conditioning system fault diagnosis method based on multi-source domain unsupervised adaptive method are implemented as described above.

[0018] In the present invention, the operating data of the air-conditioning system of the building to be diagnosed is obtained as an unlabeled target domain data set, and multiple operating data sets related to the task of the air-conditioning system of the building to be diagnosed and having label information are obtained as a source domain candidate data set. The source domain data set is obtained by screening according to the target domain data set and the source domain candidate data set; a multi-source domain unsupervised adaptive diagnostic model is constructed according to the characteristics of the target domain data set and the source domain data set; the multi-source domain unsupervised adaptive diagnostic model is trained according to the target domain data set and the source domain data set to obtain a trained multi-source domain unsupervised adaptive diagnostic model; the target domain data set is input into the trained multi-source domain unsupervised adaptive diagnostic model, and the diagnostic result of the air-conditioning system of the building to be diagnosed is output. The present invention has lower requirements for target building label data, can alleviate data distribution differences, and can effectively integrate multi-source, diversified and rich diagnostic information in actual scenarios, alleviate the problem of poor model generalization performance caused by data distribution differences, and realize effective fault diagnosis under unlabeled data of the target domain air-conditioning system. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flow chart of a preferred embodiment of the multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method of the present invention;

[0020] Figure 2 It is a structural schematic diagram of a multi-source domain unsupervised adaptive fault diagnosis model for a building air conditioning system in a preferred embodiment of the multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method of the present invention;

[0021] Figure 3It is a schematic diagram of a feature extractor structure based on a domain-specific batch normalization layer in a preferred embodiment of the multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method of the present invention;

[0022] Figure 4 It is a schematic diagram of the diagnostic flow of a multi-source domain unsupervised adaptive fault diagnosis model for a building air conditioning system in a preferred embodiment of the present invention based on a multi-source domain unsupervised adaptive fault diagnosis method for a building air conditioning system;

[0023] Figure 5 It is a structural diagram of a preferred embodiment of the multi-source domain unsupervised adaptive building air conditioning system fault diagnosis system of the present invention;

[0024] Figure 6 It is a structural diagram of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0026] In order to further reduce the practical threshold of the existing data-driven building air conditioning fault diagnosis method, and at the same time improve the adaptability of the diagnostic model to data distribution differences and the integration ability of multi-source data resources. The present invention discloses a multi-source domain unsupervised domain adaptive building air conditioning system fault diagnosis method and system. The method first obtains the air conditioning operation data of the target building to be diagnosed and the source domain building, and then uses a common feature extractor module with a domain-specific normalization layer to perform preliminary feature extraction on the multi-source data. Combined with multiple groups of adaptive subnet modules, the preliminary extracted features are mined for domain characteristics and aligned with the inter-domain feature distribution, and the classification results of each subnet module for the target domain are given. The method further establishes a domain difference weight adjustment mechanism through the inter-domain distribution difference distance to guide the training process of the adaptive framework, and finally integrates the prediction results of the multi-subnet classifier for the target domain through the weighted integrated multi-subnet joint decision module. The method and system can effectively integrate multi-source data resources, alleviate the problem of poor model generalization performance caused by data distribution differences, realize effective fault diagnosis under unlabeled data of the target domain air conditioning system, and further reduce the practical threshold of data-driven technology in related fields.

[0027] The preferred embodiment of the present invention is based on a multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method, such as Figure 1 As shown, the multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method includes the following steps:

[0028] Step S10: obtain the operating data of the air-conditioning system of the building to be diagnosed as an unlabeled target domain data set, obtain multiple operating data sets related to the task of the air-conditioning system of the building to be diagnosed and having label information as a source domain candidate data set, and obtain the source domain data set by filtering according to the target domain data set and the source domain candidate data set.

[0029] Specifically, the operating data of the air conditioning system of the building to be diagnosed is obtained as the unlabeled target domain dataset. , this part of data has no label information; get A building air conditioning operation dataset with label information related to the building air conditioning system task to be diagnosed is used as a candidate source domain data set ; For the target domain dataset and the source domain candidate data set Standardization is performed respectively to eliminate the influence of the dimensions between variables; the target domain data set is calculated using the EMD distance and the source domain candidate data set The distribution distance between each source domain candidate dataset in the , that is, the EMD distance is used to calculate the two building air conditioning system operation datasets ( ) (The calculation process of EMD distance is intended to transform the distance solving problem into an optimal transmission problem):

[0030] ; (1)

[0031] in, Represents the distribution distance ( ), represents a parameter that controls the transmission loss weight and is set to 0.1. and Respectively and The and samples, and Respectively and The number of samples in Represents the first samples to the target distribution The quality of sample transmission, Represents the first samples to the target distribution The transmission cost of each sample is Represents the traffic matrix, which is used to describe the distribution from the source To target distribution The optimal transmission plan is obtained by minimizing the objective function:

[0032] ; (2)

[0033] in, represents the set of all possible transmission schemes, called transmission plans, Represents the cost matrix, which is obtained by calculating the Euclidean distance between corresponding sample points.

[0034] The distribution distance measurement method of the present invention can use Earth Mover's Distance (EMD) or KL divergence (Kullback-Leibler Divergence) to calculate the distribution distance between the target domain data set and the source domain data set.

[0035] Sort multiple source domain data sets in ascending order according to the distribution distance, and select the first one with the smallest distance in the sequence. indivual( ) Source domain dataset as source domain data set , express source domain , Indicates that from indivual source domain Dataset; similarly, In express target domain , Indicates belonging to target domain In order to control the complexity of the model and avoid the negative migration effect caused by irrelevant source domains, the present invention , it can be seen that the source domain data set contains multiple source domain data sets.

[0036] The building air conditioning system consists of a single duct variable air volume system and a chiller system. The variables included in the collected operation data set are supply air temperature, return air temperature, outdoor dry bulb temperature, mixed air temperature, supply air duct flow, return air duct flow, fresh air flow, supply fan control signal, supply fan power, supply air duct static pressure, return air valve control signal, outdoor air valve control signal, chilled water return water temperature, chilled water supply water temperature, chilled water flow and chilled water valve control signal.

[0037] Step S20: construct a multi-source domain unsupervised adaptive diagnosis model according to the characteristics of the target domain data set and the source domain data set.

[0038] Specifically, Figure 2 As shown, the multi-source domain unsupervised adaptive diagnosis model includes: Common feature extractors with partial parameter sharing (Right now Figure 2, Figure 3 and Figure 4 Common feature extractors in )、 Domain-specific feature extractors (Right now Figure 2 and Figure 4 Domain-specific extractors in , Figure 3 Domain-specific feature extractors in )and Domain-specific classifiers (Right now Figure 2 and Figure 4 Domain-specific classifiers in );like Figure 3 As shown, the common feature extractor It includes two fully connected neural network layers and two domain-specific batch normalization layers, and the domain-specific feature extractor It only includes one fully connected neural network layer. The activation function uses the Tanh function. After the original data is input into the common feature extractor, it first passes through the fully connected layer, then through the activation function transformation, and finally enters the corresponding domain-specific batch normalization layer for processing.

[0039] Furthermore, the common feature extractor The structures and parameters of all neural network node layers are shared in different domains. All normalization layers in are domain-private, and different data domain sources have their own normalization layers. Common feature extractors with partial parameter sharing Ordinary fully connected neural network layers, fully connected neural network layers with attention mechanisms, or other deep learning structures suitable for extracting features from tabular data can be used. The normalization layer can select a batch normalization layer or a layer normalization layer suitable for tabular data according to the characteristics of the input data.

[0040] Step S30: training the multi-source domain unsupervised adaptive diagnosis model according to the target domain data set and the source domain data set to obtain a trained multi-source domain unsupervised adaptive diagnosis model.

[0041] Specifically, the training process of the multi-source domain unsupervised adaptive diagnosis model is as follows: Figure 2 As shown, the multi-source domain unsupervised adaptive diagnosis model adopts a batch training method, and the specific training process is as follows:

[0042] Calculate the target domain dataset according to the distribution distance With the selected The domain difference weight between the source domain datasets is denoted as .

[0043] The target domain dataset and The source domain datasets are input into the common feature extractor of the multi-source domain unsupervised adaptive diagnosis model. During the feature extraction process, each data source passes through its corresponding batch normalization layer to ensure that the feature extraction results adapt to the respective data distribution and obtain all domains ( The initial embedding vector , Represents the source domain dataset The corresponding The initial embedding vector after feature extraction by a common feature extractor, ) represents the target domain dataset The corresponding The initial embedding vector after feature extraction by the common feature extractor is The initial embedding vector and the initial embedding vector of the target domain Pairing to form The pairing rule is data concatenation and pairing. Specifically, the initial embedding vector of the target domain dataset is The initial embedding vectors of different source domains are Perform data splicing and pairing to form New large datasets, such as , … .

[0044] Among them, the unlabeled target domain dataset has two uses in the training stage. One is to calculate the domain adaptation loss with the source domain data. This loss does not involve the label information of the target domain data. This loss measures the difference in the feature distribution of the source domain and the target domain, so that the feature extractor can extract features that are effective for both. The second is to calculate the entropy loss of the classifier on the target domain data. This loss also does not involve the label information of the target domain data. Minimizing the entropy loss can guide the classifier to output clearer prediction results in the target domain, that is, the predicted probability distribution is closer to 0 or 1, rather than close to 0.5.

[0045] Will The paired data sets are input into the corresponding domain adaptive subnets for secondary feature extraction and classification (i.e., domain-specific feature extraction and classification prediction) to obtain the secondary feature extraction results. A single domain adaptive subnet includes 1 domain-private feature extractor and 1 domain specific classifier , the domain adaptation loss of each paired dataset is calculated according to the secondary feature extraction results, and the classification cross entropy loss from the source domain data and the entropy loss of the target domain data in each paired dataset are calculated according to the results of the domain-specific classifier output. The domain adaptation loss, classification cross entropy loss and entropy loss of the target domain data are summed to obtain the total loss of the subnetwork.

[0046] The total loss of the subnetwork is weighted and summed according to the domain difference weight value to obtain the total loss of the model. Batch training is adopted. Based on the principle of minimizing the total loss of the model, the parameters of the model are updated using back propagation and gradient descent algorithms until the optimization training of the multi-source domain unsupervised adaptive diagnosis model is completed to obtain a trained multi-source domain unsupervised adaptive diagnosis model.

[0047] The above The paired data sets are input into their respective Domain-specific feature extractors Perform secondary feature extraction in group-specific embedding vector, , … , Represents the source domain dataset The initial embedding vector The corresponding A specific embedding vector after feature extraction by a domain-specific feature extractor, Represents the target domain dataset The initial embedding vector The corresponding A domain-specific feature extractor generates a specific embedding vector after feature extraction.

[0048] For example, for Group-specific embedding vectors ( belong ), calculate the The distribution difference between the source domain and the target domain in the group-specific embedding vector in the current batch is used to obtain the domain adaptation loss. ; Domain-specific classifiers corresponding to group-specific embedding vector inputs The classification results are obtained in ,in, It is the classification prediction result of the data from the source domain. This part of the result is used to calculate the classification cross entropy loss. It is the classification prediction result of the data from the target domain. This part of the result is used to calculate the entropy loss. Classification results With its tag set Calculate the source domain The classification cross entropy loss , according to the classification results Calculate the target domain The entropy loss ; Based on domain adaptation loss , classification cross entropy loss and entropy loss After weighted summation, the total loss of the corresponding domain adaptive subnet is obtained After repeating the above calculation, we get Loss set of group domain adaptive subnet .

[0049] Among them, the domain adaptation loss Using EMD distance calculation, that is, domain adaptive loss The formula for calculating the distribution distance using formula (1) shows that the greater the distance, the greater the loss value. The purpose of the present invention is to train the loss to be smaller, that is, to make the distance closer. That is, the domain adaptive loss can be calculated using the Earth Mover's Distance (EMD) or the Multi-kernel - Maximum Mean Discrepancy (MK-MMD) algorithm.

[0050] Among them, the source domain The classification cross entropy loss The calculation is:

[0051] ; (3)

[0052] in, Indicates the number of samples; Indicates the number of category label types contained in the sample set. Indicates samples belong to the category The true probability of The true label of the sample is equal to hour, , otherwise it is equal to zero, Indicates The sample is predicted to be The probability of the class.

[0053] The target domain The entropy loss The calculation is:

[0054] ; (4)

[0055] in, is a symbolic function, when samples belong to the category The predicted probability is greater than hour, Otherwise, it is zero. To prevent an error message when the predicted probability value is 0, Set to 0.000001.

[0056] Therefore, the total loss of the adaptive subnetwork is The calculation is:

[0057] ; (5)

[0058] ; (6)

[0059] in, Represents the adaptive weight parameter, which is used to dynamically adjust the weight of the domain adaptation loss to guide the feature alignment process of the source domain and the target domain. Represents the adjustment factor, which is used to control the speed of change. Represents the current number of training iterations. In the present invention, is set to 10.

[0060] Furthermore, the domain difference weight value is calculated based on a Gaussian kernel similarity calculation method and a weight normalization strategy;

[0061] The calculation formula of the similarity calculation method based on Gaussian kernel is as follows:

[0062] ; (7)

[0063] in, Indicates The similarity between the source domain dataset and the target domain dataset, represents the exponential function, Indicates The distribution distance between the source domain dataset and the target domain dataset, represents the bandwidth parameter of the Gaussian kernel function. In the present invention, is set to 1.

[0064] Based on the Gaussian kernel similarity calculation, a set of similarity values ​​between the target domain dataset and the source domain dataset is obtained. ;

[0065] The domain difference weight value calculated based on the similarity value is:

[0066] ; (8)

[0067] Indicates The domain difference weight values ​​of the source domain data sets are calculated based on the similarity values ​​to obtain a set of The domain difference weight value vector of elements , Indicates Source domain datasets In the whole multi-source domain adaptive learning process, the domain difference weight value, the difference weight value The larger the value, the more likely it is that the source domain With the target domain The more similar the data distribution is, the greater the impact will be on the model training process.

[0068] According to the domain difference weight value, weights are assigned to the loss values ​​from different domain adaptive subnetworks, and the total model loss is obtained by weighted summation. The model adopts batch training, and based on the principle of minimizing the total loss, the back propagation and gradient descent algorithms are used to update the model parameters, and the above steps are repeated until the joint optimization training of the multi-source domain framework is completed. The total loss of the model is calculated as:

[0069] ; (9)

[0070] in, , … Represents the domain difference weight value of different source domain datasets.

[0071] In the present invention, the multi-source domain unsupervised adaptive diagnosis model updates model parameters through the Adam algorithm, with a learning rate of 0.001 and an L2 regularization coefficient of 1e-4.

[0072] Step S40: input the target domain data set into the trained multi-source domain unsupervised adaptive diagnosis model, and output the diagnosis result of the building air conditioning system to be diagnosed.

[0073] Specifically, the diagnosis process of the multi-source domain unsupervised adaptive diagnosis model is as follows: Figure 4 As shown, the target domain dataset Input into the trained multi-source domain unsupervised adaptive diagnosis model, and get The classification results of the group domain-specific classifiers; according to the domain difference weight value vector Classification output from different domain adaptive subnetworks Perform weighted average integration to obtain the final diagnosis result ,by Middle Taking samples as an example, the calculation formula of the diagnosis result of the multi-source domain unsupervised adaptive diagnosis model is as follows:

[0074] ; (10)

[0075] in, Indicates The diagnostic results of samples Indicates The domain-specific classifier The prediction results of samples are Indicates The domain difference weight value of the source domain dataset.

[0076] Compared with the known building air conditioning system fault diagnosis scheme under incomplete data, the present invention has two key differences:

[0077] (1) Reliable fault diagnosis in the target domain without label information is achieved through domain adaptation technology. Known related schemes mainly use transfer learning methods with parameter fine-tuning, semi-supervised learning methods with self-training strategies, or generative learning methods with virtual sample generation to improve the accuracy of building air-conditioning system fault diagnosis models under incomplete data conditions. The above-mentioned known methods all require that the target domain data have a certain amount of label information for model learning, which still has a certain application threshold. The method proposed in the present invention transfers useful knowledge in the source domain by bringing the feature distributions of the two domains closer, thereby achieving efficient fault diagnosis in the unlabeled target domain. The core idea of ​​this method is to establish a feature mapping between the source domain and the target domain, so that the rich label data in the source domain can effectively guide the fault diagnosis in the target domain.

[0078] (2) The diagnostic effect of the multi-source domain unsupervised adaptive model in the building air conditioning system domain is improved through the domain-specific batch normalization layer strategy. Although the batch normalization layer helps to accelerate and stabilize the training process of the neural network model. However, during the domain adaptive training process, the source domain and target domain data have different statistical characteristics. If the data of these two domains are normalized using the same set of batch normalization parameters, inaccurate normalization results will result, thereby affecting the performance of the model. Therefore, the domain-specific batch normalization layer strategy for building air conditioning system operation data proposed in the present invention helps to ensure that the features of each domain are not affected by other domain data during the normalization process, and can better retain domain-specific information.

[0079] Beneficial effects of the present invention:

[0080] (1) Through the domain adaptation mechanism, the negative impact of data distribution differences on the diagnostic performance of data-driven models is reduced, and the performance degradation and insufficient generalization ability of data-driven methods in engineering applications are alleviated, so that the model can maintain high accuracy and stability in different application scenarios. At the same time, as a kind of transfer learning technology, the unsupervised domain adaptation mechanism can reduce the demand for labeled data for the target task by migrating useful information from other data sources, thereby effectively lowering the practical threshold of data-driven models.

[0081] (2) Through the domain-specific batch normalization training strategy, the domain-specific information is separated from the domain-invariant information, so that the model has better generalization ability. In addition, the addition of batch normalization layers helps to accelerate the training process of the diagnostic model and improve the training stability of the neural network.

[0082] (3) Through the multi-source domain integration framework, the existing air-conditioning system operation information in different working conditions can be effectively utilized, overcoming the problem of limited information utilization of the single-source domain adaptive method in the air-conditioning system fault diagnosis task, thereby improving the accuracy and reliability of fault diagnosis.

[0083] (4) An L2 regularization term is added to the multi-source domain framework. This regularization term helps prevent model overfitting, smooth weight distribution, improve robustness, and better share and separate information, significantly improving the generalization performance of the model in the multi-source domain framework.

[0084] (5) A domain difference weight adjustment module is introduced into the multi-source domain framework. This module adjusts the weights of different source domains in the multi-source domain framework according to the distribution distance between different source domains and the target domain. This module helps guide the framework to learn the information most relevant to the target task, thereby further improving the accuracy of the diagnostic model.

[0085] Furthermore, if Figure 5 As shown, based on the above-mentioned multi-source domain unsupervised adaptive building air-conditioning system fault diagnosis method, the present invention also provides a multi-source domain unsupervised adaptive building air-conditioning system fault diagnosis system, wherein the multi-source domain unsupervised adaptive building air-conditioning system fault diagnosis system includes:

[0086] The data acquisition module 51 is used to acquire the operating data of the building air conditioning system to be diagnosed as an unlabeled target domain data set, acquire multiple operating data sets related to the task of the building air conditioning system to be diagnosed and having label information as a source domain candidate data set, and filter the source domain data set according to the target domain data set and the source domain candidate data set;

[0087] A model building module 52, used to build a multi-source domain unsupervised adaptive diagnosis model according to the characteristics of the target domain data set and the source domain data set;

[0088] A model training module 53 is used to train the multi-source domain unsupervised adaptive diagnosis model according to the target domain data set and the source domain data set to obtain a trained multi-source domain unsupervised adaptive diagnosis model;

[0089] The fault diagnosis module 54 is used to input the target domain data set into the trained multi-source domain unsupervised adaptive diagnosis model, and output the diagnosis result of the building air conditioning system to be diagnosed.

[0090] The present invention aims to improve the accuracy and reliability of the fault diagnosis model by effectively utilizing the existing labeled data in different working conditions. The multi-source domain unsupervised adaptive diagnosis model improves the generalization ability and reliability of the fault diagnosis model without target domain label information through a domain adaptation mechanism, a domain-specific batch normalization training strategy, an L2 norm regularization strategy and a domain difference weight adjustment mechanism.

[0091] Furthermore, if Figure 6 As shown, based on the above-mentioned multi-source domain-based unsupervised adaptive building air-conditioning system fault diagnosis method and system, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 6 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0092] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a building air conditioning system fault diagnosis program 40 based on multi-source domain unsupervised adaptive type is stored on the memory 20, and the building air conditioning system fault diagnosis program 40 based on multi-source domain unsupervised adaptive type can be executed by the processor 10, thereby realizing the building air conditioning system fault diagnosis method based on multi-source domain unsupervised adaptive type in the present application.

[0093] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the multi-source domain-based unsupervised adaptive building air conditioning system fault diagnosis method.

[0094] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.

[0095] In one embodiment, when the processor 10 executes the multi-source domain unsupervised adaptive building air conditioning system fault diagnosis program 40 in the memory 20, the steps of the multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method as described above are implemented.

[0096] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive method, and when the building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive method is executed by a processor, the steps of the building air-conditioning system fault diagnosis method based on multi-source domain unsupervised adaptive method are implemented as described above.

[0097] In summary, the present invention provides a method, system, terminal and storage medium for fault diagnosis of a building air-conditioning system based on multi-source domain unsupervised adaptive type. The method comprises: obtaining operation data of the building air-conditioning system to be diagnosed as an unlabeled target domain data set, obtaining multiple operation data sets related to the task of the building air-conditioning system to be diagnosed and having label information as a source domain candidate data set, and obtaining a source domain data set by screening according to the target domain data set and the source domain candidate data set; constructing a multi-source domain unsupervised adaptive diagnostic model according to the characteristics of the target domain data set and the source domain data set; training the multi-source domain unsupervised adaptive diagnostic model according to the target domain data set and the source domain data set to obtain a trained multi-source domain unsupervised adaptive diagnostic model; inputting the target domain data set into the trained multi-source domain unsupervised adaptive diagnostic model, and outputting the diagnostic result of the building air-conditioning system to be diagnosed. The present invention has lower requirements for target building label data, can alleviate data distribution differences, and can effectively integrate multi-source and diverse rich diagnostic information in actual scenarios, alleviate the problem of poor model generalization performance caused by data distribution differences, and realize effective fault diagnosis of target domain air-conditioning systems under unlabeled data, aiming to improve the accuracy and reliability of building air-conditioning system fault diagnosis.

[0098] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or terminal including the element.

[0099] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.

[0100] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method, characterized in that: The multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method comprises: Acquire the operating data of the building air conditioning system to be diagnosed as an unlabeled target domain data set, acquire multiple operating data sets related to the task of the building air conditioning system to be diagnosed and having label information as a source domain candidate data set, and obtain the source domain data set by screening the target domain data set and the source domain candidate data set; Constructing a multi-source domain unsupervised adaptive diagnosis model according to the characteristics of the target domain data set and the source domain data set; Training the multi-source domain unsupervised adaptive diagnosis model according to the target domain data set and the source domain data set to obtain a trained multi-source domain unsupervised adaptive diagnosis model; Inputting the target domain data set into the trained multi-source domain unsupervised adaptive diagnosis model, and outputting the diagnosis result of the building air conditioning system to be diagnosed; The step of obtaining the operating data of the building air conditioning system to be diagnosed as an unlabeled target domain data set, obtaining multiple operating data sets related to the building air conditioning system task to be diagnosed and having label information as a source domain candidate data set, and filtering the source domain data set according to the target domain data set and the source domain candidate data set to obtain the source domain data set specifically includes: Obtain the operating data of the building air conditioning system to be diagnosed as an unlabeled target domain dataset ; Get A building air conditioning operation dataset with label information related to the building air conditioning system task to be diagnosed is used as a candidate source domain data set ; For the target domain dataset and the source domain candidate data set Standardized processing is performed separately. represents the first source domain dataset in the source domain candidate dataset. Represents the second source domain dataset in the source domain candidate dataset. Indicates the total number of source domain data sets; Calculate the target domain dataset and the source domain candidate data set Middle Source domain datasets The distribution distance between: ;(1) in, , Indicates less than or equal to The number of source domain selected data sets, represents the distribution distance, represents a parameter that controls the transmission loss weight, and Respectively and The and samples, and Respectively and The number of samples in Indicates the first samples to the target domain dataset The quality of sample transmission, Indicates the first samples to the target domain dataset The transmission cost of each sample is Represents the traffic matrix, which is used to describe the data from the source domain To the target domain dataset The optimal transmission plan is obtained by minimizing the objective function: ;(2) in, represents the set of all possible transmission schemes, called transmission plans, represents the cost matrix, which is obtained by calculating the Euclidean distance between corresponding sample points; Sort multiple source domain data sets in ascending order according to the distribution distance, and select the first one with the smallest distance in the sequence. A source domain data set is selected as the source domain data set , ; The multi-source domain unsupervised adaptive diagnosis model includes: Common feature extractors with partial parameter sharing , Domain-specific feature extractors and Domain-specific classifiers ; The common feature extractor It includes two fully connected neural network layers and two domain-specific batch normalization layers; The domain-specific feature extractor Includes a fully connected neural network layer.

2. The multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method according to claim 1 is characterized in that: The step of training the multi-source domain unsupervised adaptive diagnosis model according to the target domain data set and the source domain data set to obtain a trained multi-source domain unsupervised adaptive diagnosis model specifically includes: Calculate the target domain dataset according to the distribution distance With the selected The domain difference weight between the source domain datasets is denoted as , Represents the target domain dataset The domain difference weight between the selected source domain dataset and the Represents the target domain dataset The domain difference weight between the selected two source domain datasets, Represents the target domain dataset With the selected The domain difference weights between the source domain datasets; The target domain dataset and The source domain datasets are input into the common feature extractor of the multi-source domain unsupervised adaptive diagnosis model. In the above example, we get the initial embedding vectors for all domains. , the previous The initial embedding vector and the initial embedding vector of the target domain Pairing to form Paired datasets, express The initial embedding vector of express The initial embedding vector of express The initial embedding vector of Will The paired data sets are input into the corresponding domain adaptive subnets for secondary feature extraction and classification to obtain the secondary feature extraction results. A single domain adaptive subnet includes a domain-private feature extractor and a domain-specific classifier , calculate the domain adaptation loss of each paired dataset based on the secondary feature extraction results, calculate the classification cross entropy loss from the source domain data and the entropy loss of the target domain data in each paired dataset based on the results of the domain-specific classifier output, and sum the domain adaptation loss, classification cross entropy loss and entropy loss of the target domain data to get the total loss of the subnetwork; The total loss of the subnetwork is weighted and summed according to the domain difference weight value to obtain the total loss of the model. Batch training is adopted. Based on the principle of minimizing the total loss of the model, the parameters of the model are updated using back propagation and gradient descent algorithms until the optimization training of the multi-source domain unsupervised adaptive diagnosis model is completed to obtain a trained multi-source domain unsupervised adaptive diagnosis model.

3. The multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method according to claim 2 is characterized in that: The domain adaptation loss of each paired data set is calculated according to the secondary feature extraction result, and the classification cross entropy loss from the source domain data and the entropy loss of the target domain data in each paired data set are calculated according to the result output by the domain-specific classifier. The domain adaptation loss, the classification cross entropy loss and the entropy loss of the target domain data are summed to obtain the total loss of the subnetwork, which specifically includes: For Group-specific embedding vectors , calculate the The distribution difference between the source domain and the target domain in the group-specific embedding vector in the current batch is used to obtain the domain adaptation loss. ; and Indicates Group preliminary embedding vector The two components of a particular embedding vector are Domain-specific feature extractors After processing, calculate the specific embedding vector The distribution difference between the source domain and the target domain in the group-specific embedding vector in the current batch is used to obtain the domain adaptation loss. ; The first Domain-specific classifiers corresponding to group-specific embedding vector inputs The classification results are obtained in ,in accordance with Classification results With label collection Calculate the source domain The classification cross entropy loss , according to the classification results Calculate the target domain The entropy loss ; According to the domain adaptation loss , classification cross entropy loss and entropy loss After weighted summation, the total loss of the corresponding domain adaptive subnet is obtained , after repeated calculations, we get Loss set of group domain adaptive subnet , represents the loss of a group of domain adaptive subnets, represents the loss of two groups of domain adaptive subnets, express Loss of group domain adaptive subnet; source domain The classification cross entropy loss The calculation is: ;(3) in, Indicates the number of samples; Indicates the number of category label types contained in the sample set. Indicates samples belong to the category The true probability of Indicates The sample is predicted to be Probability of class; Target domain The entropy loss The calculation is: ;(4) in, is a symbolic function; Total loss of adaptive subnet The calculation is: ;(5) ;(6) in, Represents the adaptive weight parameter, which is used to dynamically adjust the weight of the domain adaptation loss to guide the feature alignment process of the source domain and the target domain. Represents the adjustment factor, which is used to control the speed of change. Indicates the current number of training iterations, domain adaptation loss is equal to the distribution distance.

4. The multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method according to claim 3 is characterized in that: The domain difference weight value is calculated based on the Gaussian kernel similarity calculation method and weight normalization strategy; The calculation formula of the similarity calculation method based on Gaussian kernel is as follows: ;(7) in, Indicates The similarity between the source domain dataset and the target domain dataset, represents the exponential function, Indicates The distribution distance between the source domain dataset and the target domain dataset, represents the bandwidth parameter of the Gaussian kernel function; Based on the Gaussian kernel similarity calculation, a set of similarity values ​​between the target domain dataset and the source domain dataset is obtained. , Represents the similarity between the first source domain dataset and the target domain dataset, Represents the similarity between the second source domain dataset and the target domain dataset, Indicates The similarity between the source domain dataset and the target domain dataset; The domain difference weight value calculated based on the similarity value is: ;(8) Indicates The domain difference weight value of the source domain dataset, Indicates The similarity between the source domain dataset and the target domain dataset is calculated based on the similarity value to obtain a set of The domain difference weight value vector of elements ; The total loss of the model is calculated as: ;(9) in, , … Represents the domain difference weight value of different source domain datasets.

5. The multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method according to claim 4 is characterized in that: The step of inputting the target domain data set into the trained multi-source domain unsupervised adaptive diagnosis model and outputting the diagnosis result of the building air conditioning system to be diagnosed specifically includes: The target domain dataset Input into the trained multi-source domain unsupervised adaptive diagnosis model, and get Classification results of group domain-specific classifiers; According to the domain difference weight value vector Classification output from different domain adaptive subnetworks Perform weighted average integration to obtain the final diagnosis result : ;(10) in, Indicates The diagnostic results of samples Indicates The domain-specific classifier The prediction results of samples.

6. A building air conditioning system fault diagnosis system based on multi-source domain unsupervised adaptive method, characterized in that: The multi-source domain unsupervised adaptive building air conditioning system fault diagnosis system is applied to the multi-source domain unsupervised adaptive building air conditioning system fault diagnosis method according to any one of claims 1 to 5, and the multi-source domain unsupervised adaptive building air conditioning system fault diagnosis system comprises: A data acquisition module is used to acquire the operating data of the building air conditioning system to be diagnosed as an unlabeled target domain data set, acquire multiple operating data sets related to the task of the building air conditioning system to be diagnosed and having label information as a source domain candidate data set, and filter the source domain data set according to the target domain data set and the source domain candidate data set; A model building module, used to build a multi-source domain unsupervised adaptive diagnosis model according to the characteristics of the target domain data set and the source domain data set; A model training module, which trains the multi-source domain unsupervised adaptive diagnosis model according to the target domain data set and the source domain data set to obtain a trained multi-source domain unsupervised adaptive diagnosis model; The fault diagnosis module is used to input the target domain data set into the trained multi-source domain unsupervised adaptive diagnosis model and output the diagnosis result of the building air conditioning system to be diagnosed.

7. A terminal, characterized in that: The terminal includes: a memory, a processor, and a building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive method stored in the memory and executable on the processor. When the building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive method is executed by the processor, the steps of the building air-conditioning system fault diagnosis method based on multi-source domain unsupervised adaptive method are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive method. When the building air-conditioning system fault diagnosis program based on multi-source domain unsupervised adaptive method is executed by a processor, the steps of the building air-conditioning system fault diagnosis method based on multi-source domain unsupervised adaptive method are implemented as described in any one of claims 1 to 5.