An intelligent fault diagnosis method for open set domain generalization

Through the information bottleneck principle and β-VAE model, combined with the auxiliary classifier and inter-feature measurement loss, domain invariant features are extracted, which solves the generalization and identification problems of intelligent fault diagnosis under unknown working conditions and new fault types, and achieves high efficiency. fault diagnosis.

CN118503793BActive Publication Date: 2024-10-18BEIJING UNIV OF CHEM TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410948916.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-18
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

Existing intelligent fault diagnosis methods are difficult to perform effective domain generalization and open set identification when facing unknown working conditions and new fault types, resulting in a decrease in diagnostic accuracy.

Method used

The domain-invariant feature extraction model designed using the information bottleneck principle, combined with the β-VAE model and auxiliary classifier, extracts domain-invariant general features through inter-feature metric loss and hyperparameter optimization, and uses kernel techniques for open set recognition.

Benefits of technology

It effectively weakens irrelevant information, strengthens domain generalization capabilities, improves the accuracy and performance of fault diagnosis, and enables accurate judgment under unknown working conditions and new fault types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118503793B_ABST
    Figure CN118503793B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent fault diagnosis method for open set domain generalization, which relates to the technical field of intelligent fault diagnosis, and can effectively generalize the domain and distinguish unknown fault types. To achieve the above purpose, the technical scheme of the present invention includes the following steps: preprocessing the source domain vibration signal, the auxiliary domain vibration signal and the target domain vibration signal; constructing a domain invariant feature extraction model based on the information bottleneck principle, extracting feature latent variables and calculating feature latent variable prototypes; constructing inter-feature metric loss to optimize model hyperparameters; measuring the similarity of feature latent variables in feature space, dividing each category area with the category prototype as the center, and distinguishing known and unknown categories.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent fault diagnosis, and in particular to an intelligent fault diagnosis method oriented to open set field generalization. Background Art

[0002] Fault diagnosis is of great significance to ensure the safe and stable operation of mechanical equipment and maintain normal production and life. Intelligent fault diagnosis applies machine learning to the field of fault diagnosis. By adaptively learning diagnostic knowledge, it establishes an end-to-end connection between monitoring data and equipment health status, freeing itself from the limitations of manual experience and professional domain knowledge, and facilitating the automation and intelligent development of fault diagnosis.

[0003] However, existing methods based on the assumption that training data and test data come from the same distribution often make diagnostic errors and reduce generalization performance when faced with actual equipment collection data that has distribution drift due to changes in operating conditions, performance degradation, etc. At the same time, actual fault diagnosis usually occurs under unknown operating conditions, which means that the target data cannot be collected in advance. Therefore, in order to effectively maintain equipment safety and improve diagnostic accuracy, it is of practical significance to develop a generalized intelligent fault diagnosis method that can generalize the knowledge learned by the model to the field of unknown operating conditions.

[0004] The key to domain generalization lies in the learning of domain-invariant features. The domain fuzzy generalization network (DFGN) is an intelligent fault diagnosis method for domain generalization. It introduces a metric learning strategy and a domain discriminator entropy increase learning loss based on the classic domain adversarial model DANN to learn domain-invariant features. The model structure mainly includes a feature extractor F, a category classifier C, a domain discriminator D, and a feature-based metric learning strategy. The feature extractor F maps the data to high-dimensional features, the category classifier C helps F learn features about the classification category, and the domain discriminator D is used to determine which domain the data comes from. It will confuse F so that it cannot determine which working condition the data comes from. , , They are the parameters of feature extractor F, category classifier C, and domain discriminator D. The parameter training and updating method is as follows:

[0005] (1)

[0006] in is the category classifier loss function, is the domain discriminator loss function, calculated as follows:

[0007] (2)

[0008] in, is the source domain data category label, It is the source domain data field label.

[0009] is the feature extractor loss function, which is composed of domain loss , classification loss , batch Shannon entropy , field Shannon entropy and center loss The common components are calculated as follows:

[0010] (3)

[0011] in, is the Shannon entropy calculation function, is the number of samples in the source domain belonging to the kth class, is the batch size, is the k-th sample feature, is the feature center of the kth class.

[0012] The model first trains the category classifier C and the domain classifier D, fixes the parameters and then trains the feature extractor F, implements parameter updates in alternating maximum-minimum adversarial learning, and extracts features that distinguish data categories and blur data domains.

[0013] Existing domain generalization models such as DGDA and DFGN are dedicated to solving the problem of performance degradation when facing unknown working conditions, but they are all based on the assumption that the unknown domain data has the same label space as the training data, ignoring the open set recognition problem of new fault types in the test data. In actual situations, the models used not only need to face unknown operating conditions, but also need to face new fault types. Therefore, it is necessary to build a fault diagnosis model that can perform domain generalization and open set recognition. Summary of the invention

[0014] In view of this, the present invention provides an intelligent fault diagnosis method for open set domain generalization, which can effectively perform domain generalization and distinguish unknown fault types for intelligent fault diagnosis.

[0015] To achieve the above object, the technical solution of the present invention comprises the following steps:

[0016] The source domain vibration signal, the auxiliary domain vibration signal and the target domain vibration signal are preprocessed.

[0017] Based on the information bottleneck principle, a domain-invariant feature extraction model is constructed to extract feature latent variables and calculate the feature latent variable prototype.

[0018] Construct inter-feature metric loss for model hyperparameter optimization.

[0019] The similarity of the feature latent variables is measured in the feature space, and the category areas are divided with the category prototype as the center to distinguish known and unknown categories.

[0020] Furthermore, the preprocessing includes first performing equal-length segmentation on the collected original signal, converting the time domain signal into a frequency domain signal through fast Fourier transform FFT, and then performing Z-score normalization processing to obtain the preprocessed source domain vibration signal, auxiliary domain vibration signal and target domain vibration signal.

[0021] Furthermore, a domain-invariant feature extraction model is constructed based on the information bottleneck principle, specifically:

[0022] The information bottleneck principle is to compress data representation while retaining relevant information. For the data compression part, a compression model β-variational autoencoder, namely β-VAE model, is introduced. The loss function of the β-VAE model is derived from the variational to the automatic encoding target as follows:

[0023] (7)

[0024] in, are the parameters of the decoder D, are the parameters of encoder E, is the input data, is a hidden variable, At a given input In the case of encoder E output distributed, is given In the case of decoder D output distributed, is the isotropic unit Gaussian distribution introduced as the prior distribution of the latent variable, is the non-negative KL divergence between the prior distribution and the posterior distribution, is a hyperparameter; the first term of the function of the β-VAE model represents the reconstruction loss of the data, and the second term represents the constraint on the latent variable, which plays a regularization role.

[0025] By adjusting the hyperparameters Modifications, The term makes the latent variable distribution tend to Gaussian distribution.

[0026] Then, for the part that retains relevant information, the information bottleneck theory Rewrite it as follows:

[0027] (8)

[0028] in is the entropy of the label and is irrelevant to the optimization process; is the conditional entropy, which means that given back uncertainty; ;if Included with The more relevant information is, the less entropy there is.

[0029] Introduce an auxiliary classifier C with parameters , by giving The probability of the model output and the true label The cross entropy is used to estimate .

[0030] The loss function of the auxiliary classifier C is defined as follows:

[0031] (9)

[0032] in, is the number of source domain samples, is the device health status category, K is the total number of device health status categories, is the class weight of the kth class, is the source domain latent variable, is the true label of the source domain sample.

[0033] The setting of category weights is to adjust the network's attention to each known category, which is one of the objects to be optimized during subsequent model hyperparameter optimization.

[0034] The loss function of the β-VAE model And the loss function of the auxiliary classifier C Combine and retain the reconstruction loss term to increase the retention of data-related information.

[0035] The overall loss function of the domain-invariant feature extraction model is defined as follows:

[0036] (10)

[0037] in, is the weight assigned to the auxiliary classifier C; the loss function enables the model to have an implicit game state; after training, it will be able to extract category-universal features that weaken irrelevant information and domain differences, so that similar data features tend to be close in the public feature space.

[0038] Furthermore, characteristic latent variables and characteristic latent variable prototypes are extracted, specifically:

[0039] For data of known categories, a prototype under the corresponding category is selected to calculate the relevant feature distance metric. The prototype needs to comprehensively represent the data under the same category and is constructed using the mean method.

[0040] Perform FFT processing on the source domain labeled data to obtain spectrum data, input the frequency domain data into the domain invariant feature extraction model, obtain the data latent variable representation, and construct the latent variable prototype .

[0041] (11)

[0042] in, is the source domain time domain sample, represents the source frequency domain samples, represents the source domain latent variable, represents the encoder, is a random variable sampled from a Gaussian distribution, represents the reparameterization trick function, For the Known categories, For the The number of class samples, For the Class latent variable prototype.

[0043] Furthermore, we construct the inter-feature metric loss to optimize the model hyperparameters, specifically:

[0044] Based on TPE, a global optimization algorithm for sequence models, the model hyperparameters are optimized. The process is as follows:

[0045] Using a more computationally scalable proxy model To approximate the complex mapping relationship between hyperparameters and training losses , select the next hyperparameter combination through the acquisition function, and bring this value into the model for training to obtain the actual loss result , add new results to historical data and update the distribution model , iteratively search for the next hyperparameter combination The acquisition function is regarded as a scoring function for each sampled hyperparameter, which is used to select sampling points with higher scores to obtain the optimal solution of the objective function.

[0046] TPE performs classification modeling on the observed values ​​and constructs the following distributions:

[0047] (12)

[0048] in, is a hyperparameter of the model, It is a real loss result; Represents the observation result is less than The distribution of the hyperparameter combination constructed by , that is, the distribution of good results, It represents the distribution of other results, that is, the distribution of poor results. The distribution adopts the kernel density estimation method of Gaussian kernel, which can be approximately understood as establishing the Gaussian mixture model GMM of observations. is a threshold value based on the observed results, which is determined by the quantile Decision; maximize the acquisition function EI to determine the selection of the next hyperparameter.

[0049] (13)

[0050] According to Bayes' theorem:

[0051] (14)

[0052] Bring the built distribution into EI:

[0053] (15)

[0054] (16)

[0055] Once determined, maximizing EI is to find The maximum value of corresponds to the global optimal .

[0056] The source domain data samples are taken as anchor samples, the samples of the same category as the source domain in the auxiliary domain are taken as positive samples, and all other class samples are taken as negative samples; by calculating the cosine similarity ratio between the anchor samples and the positive and negative samples, the positive samples are brought closer to the anchor data, and the negative samples are forced to move away from the anchor data, so that the same type of features in different domains are close to each other, and the robustness of the model class boundary is strengthened; the designed inter-feature distance metric loss is defined as follows:

[0057] (17)

[0058] in, is the cosine similarity, The source domain belongs to Class sample, The auxiliary domain belongs to Class sample, are all samples in the auxiliary domain, The auxiliary domain belongs to The number of class samples, The source domain belongs to The number of class samples, is the temperature parameter.

[0059] This metric loss utilizes the label information of the source domain and the auxiliary domain, combining the advantages of supervised learning and contrastive learning; when minimizing this loss, the similarity between the anchor data and the positive sample increases, while the similarity with the negative sample decreases; optimizing the hyperparameters , , , , search space , , , ; It is the dimension of the latent variable used to control the capacity of the information bottleneck to compress the data representation; It is a trade-off parameter between model compression representation and information preservation; is the weight assigned to the auxiliary classifier C to balance classification and data decoupling reconstruction; is the weight of the kth category, which is used to adjust the network's attention to each known category.

[0060] Furthermore, the similarity of the feature latent variables is measured in the feature space, and the category areas are divided with the category prototype as the center to distinguish known and unknown categories. Specifically:

[0061] Set a boundary for each type that gradually weakens from the center, called the attenuation boundary, which is a non-negative finite square integrable continuous decreasing function and ; The sample features are passed through the Gaussian kernel function Mapped to the positive definite inner product space, it is a decaying kernel.

[0062] (18)

[0063] in, is the target domain sample hidden variable, is the target domain feature and Class center similarity score, the feature similarity score is between 0 and 1. The higher the score, the more similar the sample is to the class, and the higher the probability of the fault belonging to this class; is the scaling parameter of the Gaussian kernel, which is used to control the attenuation of the function.

[0064] For the discrimination of unknown classes, a boundary threshold is set ,When the maximum similarity of a sample is less than this value, the sample will be rejected and judged as a new fault type and will no longer participate in subsequent classification.

[0065] (19)

[0066] in, is the predicted target domain category; considering that the similarity score is close to the category probability, the sample features are embedded in the space compactly and with reserved space.

[0067] For the accepted known category data, it is discriminated to the nearest category, and the classification function is defined as follows:

[0068] (20)

[0069] Assign the category label of the data to its closest prototype with the maximum similarity.

[0070] After the equipment is repaired, the unknown category labels are supplemented and the sample latent variable prototypes and models are updated respectively. After the update, the number of initial latent variable prototypes increases to , the classification category will automatically change with the distance measure between the updated prototype and the latent variable;

[0071] (twenty one)

[0072] This process is iterative, leading to continuous improvement of the model.

[0073] Beneficial effects:

[0074] 1. The present invention provides an intelligent fault diagnosis method for open set domain generalization. The model designed based on the information bottleneck principle effectively extracts domain-invariant universal features. The designed loss function makes a trade-off between compressing features and retaining information (similar to adversarial learning), which is conducive to reducing redundant and irrelevant features, retaining only the most relevant features, weakening the differences between working conditions, and enhancing domain generalization capabilities.

[0075] 2. The present invention provides an intelligent fault diagnosis method for open set field generalization. The model hyperparameter learning method based on the designed inter-feature metric loss effectively improves the model performance. It strengthens the separation between classes and the aggregation within classes. The compressed feature space is conducive to the subsequent open set recognition. At the same time, the selection of hyperparameters also partially assists the model in extracting sample features and improves the fault diagnosis accuracy. This point does not seem to have been widely considered in fault diagnosis methods.

[0076] 3. The present invention provides an intelligent fault diagnosis method for open set domain generalization, which uses kernel techniques to perform open set recognition and adaptively classifies known categories by similarity scores. It does not need to build a classifier, which saves calculations to a certain extent and facilitates model increment. The proposed method can effectively address a more practical and complex problem such as open set domain generalization. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 A flow chart of an intelligent fault diagnosis method for open set field generalization provided by the present invention;

[0078] Figure 2 This is a schematic diagram of the information bottleneck principle;

[0079] Figure 3 It is the structure diagram of β-VAE model;

[0080] Figure 4 Training structure diagram for the model;

[0081] Figure 5 Diagram for unknown discrimination and known classification process. DETAILED DESCRIPTION

[0082] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0083] The present invention provides a method for open sets and having certain generalization performance, which focuses on the extraction of universal domain invariant features. Its main process is as follows Figure 1 As shown. Under the guidance of the information bottleneck principle, a feature extraction model is constructed to alleviate the distribution differences of data under different working conditions, and an auxiliary classifier is introduced to increase the association between categories and latent variables. By using the distance measurement between auxiliary domain data features, the data domain invariant feature extraction capability is further enhanced from the two aspects of model training loss and model hyperparameter optimization. When the source domain labeled data categories are incomplete and are a subset of the target domain, relevant category data prototypes and indicators are constructed to distinguish known and unknown categories. For the identified unknown faults, the model can also be updated using its subsequent maintenance results to gradually expand the model fault recognition range. The main steps of this method are as follows:

[0084] S1. Data preprocessing of the original vibration signal.

[0085] The collected original signal is first divided into equal lengths, and the time domain signal is converted into a frequency domain signal through fast Fourier transform (FFT). Then, these data are subjected to Z-score standardization, which is conducive to the convergence of model parameters. The Z-score calculation formula is as follows:

[0086] (4)

[0087] in, is the sample mean, is the sample standard deviation.

[0088] S2. Construct a domain-invariant feature extraction model based on the information bottleneck principle.

[0089] The information bottleneck principle is an extension of the rate-distortion theory in information theory. By compressing the data as much as possible and retaining the information that can represent the relevant needs, noise and irrelevant redundancy can be removed to obtain the features most relevant to the general concept. With output The joint distribution between , the relevant information between them is defined as mutual information:

[0090] (5)

[0091] in, yes The conditional distribution of yes The prior distribution of . The characteristics of The more information there is, the greater the mutual information is, which means that get The lower the uncertainty, the smaller the entropy between the two.

[0092] The information bottleneck principle is to retain as much Neutralization The relevant parts and remove any irrelevant parts that may exist to compress the implementation The effective representation of is, and its objective function is:

[0093] (6)

[0094] in, represent potential representation of represents the Lagrange multiplier, represents the mutual information function. Minimize This means reconstructing with the least number of bits while allowing for distortion. , significantly compressing it and maximizing This means preserving the maximum amount of expression possible. meaningful information, It is a trade-off between compressing the representation and preserving the meaning.

[0095] Figure 2 A more intuitive diagram is given. Represents compressed finite source domain data Get the fault label The general representation of is the feature representation model, is the classifier model associated with the fault category.

[0096] The key to the information bottleneck principle is to compress data representation while retaining relevant information. Therefore, for the data compression part, the present invention first introduces a compression model β-variational autoencoder (β-VAE) model, which is closely related to the information bottleneck principle and can be derived from variational to automatic encoding targets. The structure is as follows Figure 3 Its loss function is as follows:

[0097] (7)

[0098] in, are the parameters of the decoder D, are the parameters of encoder E, is the input data, is a hidden variable. At a given input In the case of encoder E output distributed, is given In the case of decoder D output distributed, is the isotropic unit Gaussian distribution introduced as the prior distribution of the latent variable, is the non-negative KL divergence between the prior distribution and the posterior distribution. The first term of this function represents the reconstruction loss of the data, and the second term represents the constraint on the latent variable, which plays a regularization role.

[0099] Figure 3 . β-VAE model structure diagram

[0100] The first term of this function represents the reconstruction loss of the data. The second term represents the constraint on the latent variable, which plays a role in feature compression. Generally, by adjusting the hyperparameters ( ), The term can force the latent variable distribution to tend towards Gaussian distribution, reduce feature complexity, enhance decoupling, and achieve the purpose of reduction.

[0101] Then, for the relevant information part to be retained, the present invention applies the information bottleneck principle Rewrite it as follows:

[0102] (8)

[0103] in is the entropy of the label, which is irrelevant to the optimization process and can be ignored. is the conditional entropy, which means that given back If Included with If the information about It is relatively difficult, so the present invention introduces an auxiliary classifier C, whose parameters are , by giving The probability of the model output and the true label The cross entropy of is used to estimate this value. The loss function of the auxiliary classifier C is defined as follows:

[0104] (9)

[0105] in, is the number of source domain samples, is the device health status category, is the weight of the kth class, is the source domain latent variable, is the true label of the source domain sample. The setting of category weight is to adjust the network's attention to each known category, which is one of the objects to be optimized in the subsequent model hyperparameter optimization.

[0106] Combining them and retaining the reconstruction loss term increases the retention of data-related information. The overall loss function of the data domain invariant representation model is defined as follows:

[0107] (10)

[0108] in, is the weight assigned to the auxiliary classifier C to balance classification and data decoupling and reconstruction. The loss function makes the model have an implicit game state. After training, it will be able to extract category-general features that weaken irrelevant information and domain differences, so that similar data features tend to be close in the public feature space. The overall model structure is as follows Figure 4 shown.

[0109] The details of the network structure are shown in Table 1.

[0110] Table 1 Network structure details

[0111]

[0112] in, is the dimension of the latent variable, the encoder output size is 2 , divided into mean and variance, used to reparameterize the skill to obtain the posterior samples. M is the sample batch size for a single training, and K is the number of known categories in the source domain.

[0113] The corresponding category latent variable prototype is constructed.

[0114] For data of known categories, it is necessary to select a prototype under the corresponding category to calculate the relevant feature distance metric. The prototype needs to comprehensively represent the data under the same category. This paper adopts the mean method to construct it.

[0115] Perform FFT processing on the source domain labeled data to obtain spectrum data, input the frequency domain data into the domain invariant feature extraction model, obtain the data latent variable representation, and construct the latent variable prototype .

[0116] (11)

[0117] in, is the source domain time domain sample, represents the source frequency domain samples, represents the source domain latent variable, represents the encoder, is a random variable sampled from a Gaussian distribution, represents the reparameterization trick function, For the Known categories, For the The number of class samples, For the Class latent variable prototype.

[0118] S3. Construct inter-feature metric loss to optimize model hyperparameters.

[0119] Based on TPE (Tree-structured Parzen Estimator), a global optimization algorithm for sequence models, it optimizes model hyperparameters. Its main process is to use a more computationally efficient proxy model To approximate the complex mapping relationship between hyperparameters and training losses , select the next hyperparameter combination through the acquisition function, and bring this value into the model for training to obtain the actual loss result , add new results to historical data and update the distribution model , iteratively search for the next hyperparameter combination The acquisition function can be regarded as a scoring function for each sampled hyperparameter, which will select sampling points with higher scores because it is more likely to obtain the optimal solution of the objective function.

[0120] TPE performs classification modeling on the observed values ​​and constructs the following distributions:

[0121] (12)

[0122] in, is a hyperparameter of the model, It is a real loss result. Represents the observation result is less than The distribution of the hyperparameter combination constructed by , that is, the distribution of good results, It represents the distribution of other results, that is, the distribution of poor results. The distribution adopts the kernel density estimation method of Gaussian kernel, which can be approximately understood as establishing a Gaussian mixture model (GMM) of observations. is a threshold value based on the observed results, which is determined by the quantile Decision. Maximize the acquisition function Expected Improvement (EI) to determine the next hyperparameter selection.

[0123] (13)

[0124] According to Bayes' theorem, we know

[0125] (14)

[0126] Bringing the built distribution into EI

[0127] (15)

[0128] (16)

[0129] Once determined, maximizing EI is to find Intuitively, this is to obtain the maximum value of The value with the largest ratio of the probability of a better result to the probability of a worse result is the global optimal value. .

[0130] The source domain data samples are used as anchor samples, the samples in the auxiliary domain with the same category as the source domain are used as positive samples, and all other class samples are used as negative samples. By calculating the cosine similarity ratio between the anchor sample and the positive and negative samples, the positive sample is brought closer to the anchor data, and the negative sample is forced to move away from the anchor data, so that the same type of features in different domains are close to each other, and the robustness of the model class boundary is strengthened. The designed feature distance metric loss is defined as follows:

[0131] (17)

[0132] in, is the cosine similarity, The source domain belongs to Class sample, The auxiliary domain belongs to Class sample, are all samples in the auxiliary domain, The auxiliary domain belongs to The number of class samples, The source domain belongs to The number of class samples, is the temperature parameter.

[0133] This metric loss utilizes the label information of the source domain and the auxiliary domain, combining the advantages of supervised learning and contrastive learning. When minimizing this loss, the similarity between the anchor data and the positive sample increases, while the similarity with the negative sample decreases. This will prompt the model to optimize and find a better combination of hyperparameters for feature intra-class similarity and inter-class difference, so that the latent variables are embedded more compactly in the feature space, so as to better meet the needs of subsequent open set recognition. , , , , search space , , , . It is the dimension of the latent variable used to control the capacity of the information bottleneck to compress the data representation. It is a trade-off parameter between model compression representation and information preservation. is the weight assigned to the auxiliary classifier C to balance classification and data decoupling reconstruction. is the weight of the kth category, which is used to adjust the network's attention to each known category.

[0134] S4. Measure the similarity of feature latent variables in feature space, divide each category area around the category prototype, and distinguish known and unknown categories.

[0135] The latent variables obtained by the above method are similarly measured in the feature space, and the regions of each category are divided with the category prototype as the center to distinguish known / unknown categories. A boundary that gradually weakens from the center is set for each category, which can be called the attenuation boundary. It is a non-negative finite square integrable continuous decreasing function and . The sample features are passed through the Gaussian kernel function Mapped to the positive definite inner product space, it is a decaying kernel.

[0136] (18)

[0137] in, is the target domain sample hidden variable, is the target domain feature and Class center similarity score, the feature similarity score is between 0 and 1. The higher the score, the more similar the sample is to the class, and the higher the probability of belonging to this class of faults. is the scaling parameter of the Gaussian kernel, which is used to control the attenuation of the function. In this paper, the default value is .

[0138] For the discrimination of unknown classes, a boundary threshold is set ,When the maximum similarity of a sample is less than this value, the sample will be rejected and judged as a new fault type and will no longer participate in subsequent classification.

[0139] (19)

[0140] in, is the predicted target domain category. Considering that the similarity score is close to the category probability, the compactness of the sample features in the spatial embedding and the reserved space, this paper sets the threshold .

[0141] For the known category data accepted, in order to adapt to the expansion requirements of the model, this paper no longer sets up additional classifiers, but classifies it into the nearest category. The classification function is defined as follows:

[0142] (20)

[0143] The data is assigned the category label with the closest prototype based on the maximum similarity. After the unknown category label is determined after the repair, the sample latent variable prototype and model are updated respectively. After the update, the number of initial latent variable prototypes increases to , the classification category will automatically change with the distance measure between the updated prototype and the latent variable.

[0144] (twenty one)

[0145] This process can be repeated over and over again to improve the model. Figure 5 shown.

[0146] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An intelligent fault diagnosis method for open set domain generalization, characterized in that: The steps include: Preprocessing the source domain vibration signal, the auxiliary domain vibration signal and the target domain vibration signal; Based on the information bottleneck principle, a domain-invariant feature extraction model is constructed to extract feature latent variables and calculate the prototype of feature latent variables; Construct inter-feature metric loss to guide model hyperparameter optimization; The similarity of the feature latent variables is measured in the feature space, and each category area is divided with the category prototype as the center to distinguish known and unknown categories; The domain invariant feature extraction model is constructed based on the information bottleneck principle, specifically: The information bottleneck principle is to compress data representation while retaining relevant information. For the data compression part, a compression model β-variational autoencoder, namely β-VAE model, is introduced. The loss function of the β-VAE model is derived from the variational to the automatic encoding target as follows: (7) in, are the parameters of the decoder D, are the parameters of encoder E, is the input data, is a hidden variable, At a given input In the case of encoder E output distributed, is given In the case of decoder D output distributed, is the isotropic unit Gaussian distribution introduced as the prior distribution of the latent variable, is the non-negative KL divergence between the prior distribution and the posterior distribution, is a hyperparameter; the first term of the function of the β-VAE model represents the reconstruction loss of the data, and the second term represents the constraint on the latent variable, which plays a regularization role; By adjusting the hyperparameters Modifications, The term makes the latent variable distribution tend to Gaussian distribution; Then, for the part that retains relevant information, the information bottleneck principle Rewrite it as follows: (8) in is the entropy of the label and is irrelevant to the optimization process; is the conditional entropy, which means that given back uncertainty; ;if Included with If the information related to the data is large, the entropy value decreases; Introduce an auxiliary classifier C with parameters , by giving The probability of the model output and the true label The cross entropy is used to estimate ; The loss function of the auxiliary classifier C is defined as follows: (9) in, is the number of source domain samples, is the device health status category, K is the total number of device health status categories, is the class weight of the kth class, is the source domain latent variable, is the true label of the source domain sample; The setting of category weights is to adjust the network's attention to each known category, which is one of the objects to be optimized in subsequent model hyperparameter optimization; The loss function of the β-VAE model And the loss function of the auxiliary classifier C Combine and retain the reconstruction loss term to increase the retention of data related information; The overall loss function of the domain-invariant feature extraction model is defined as follows: (10) in, is the weight assigned to the auxiliary classifier C; the loss function enables the model to have an implicit game state; after training, it will be able to extract category-universal features that weaken irrelevant information and domain differences, so that similar data features tend to be close in the public feature space.

2. The intelligent fault diagnosis method for open set domain generalization according to claim 1, characterized in that: The preprocessing includes first performing equal-length segmentation on the collected original signal, converting the time domain signal into a frequency domain signal through fast Fourier transform FFT, and then performing Z-score normalization processing to obtain the preprocessed source domain vibration signal, auxiliary domain vibration signal and target domain vibration signal.

3. The intelligent fault diagnosis method for open set domain generalization according to claim 1, characterized in that: The extraction obtains the characteristic latent variables and calculates the characteristic latent variable prototype, specifically: For known category data, a prototype under the corresponding category is selected to calculate the relevant feature distance metric. The prototype needs to comprehensively represent the data under the same category and is constructed using the mean method; Perform FFT processing on the source domain labeled data to obtain spectrum data, input the frequency domain data into the domain invariant feature extraction model, obtain the data latent variable representation, and construct the latent variable prototype ; (11) in, is the source domain time domain sample, represents the source frequency domain samples, represents the source domain latent variable, represents the encoder, is a random variable sampled from a Gaussian distribution, represents the reparameterization trick function, For the Known categories, For the The number of class samples, For the Class latent variable prototype.

4. The intelligent fault diagnosis method for open set domain generalization according to claim 3, characterized in that: The construction of inter-feature metric loss to optimize model hyperparameters is specifically as follows: Based on TPE, a global optimization algorithm for sequence models, the model hyperparameters are optimized; the process is: Using a more computationally scalable proxy model To approximate the complex mapping relationship between hyperparameters and training losses , select the next hyperparameter combination through the acquisition function, and bring this value into the model for training to obtain the actual loss result , add new results to historical data and update the distribution model , iteratively search for the next hyperparameter combination ; The acquisition function is regarded as a scoring function for each sampled hyperparameter, which is used to select sampling points with higher scores to obtain the optimal solution of the objective function; TPE performs classification modeling on the observed values ​​and constructs the following distributions: (12) in, is a hyperparameter of the model, It is a real loss result; Represents the observation result is less than The distribution of the hyperparameter combination constructed by , that is, the distribution of good results, It represents the distribution of other results, that is, the distribution of poor results. The distribution adopts the kernel density estimation method of Gaussian kernel, which can be approximately understood as establishing the Gaussian mixture model GMM of observations. is a threshold value based on the observed results, which is determined by the quantile Decision; maximize the acquisition function EI to determine the next hyperparameter selection; (13) According to Bayes' theorem: (14) Bring the built distribution into EI: (15) (16) Once determined, maximizing EI is to find The maximum value of corresponds to the global optimal ; The source domain data samples are taken as anchor samples, the samples of the same category as the source domain in the auxiliary domain are taken as positive samples, and all other class samples are taken as negative samples; by calculating the cosine similarity ratio between the anchor samples and the positive and negative samples, the positive samples are brought closer to the anchor data, and the negative samples are forced to move away from the anchor data, so that the same type of features in different domains are close to each other, and the robustness of the model class boundary is strengthened; the designed inter-feature distance metric loss is defined as follows: (17) in, is the cosine similarity, The source domain belongs to Class sample, The auxiliary domain belongs to Class sample, are all samples in the auxiliary domain, The auxiliary domain belongs to The number of class samples, The source domain belongs to The number of class samples, is the temperature parameter; This metric loss utilizes the label information of the source domain and the auxiliary domain, combining the advantages of supervised learning and contrastive learning; when minimizing this loss, the similarity between the anchor data and the positive sample increases, while the similarity with the negative sample decreases; optimizing the hyperparameters , , , , search space , , , ; It is the dimension of the latent variable used to control the capacity of the information bottleneck to compress the data representation; It is a trade-off parameter between model compression representation and information preservation; is the weight assigned to the auxiliary classifier C to balance classification and data decoupling reconstruction; is the weight of the kth category, which is used to adjust the network's attention to each known category.

5. The intelligent fault diagnosis method for open set domain generalization according to claim 1 or 4, characterized in that: The similarity measurement of the feature latent variables in the feature space is performed, and each category area is divided with the category prototype as the center to distinguish known and unknown categories. Specifically, Set a boundary for each type that gradually weakens from the center, called the attenuation boundary, which is a non-negative finite square integrable continuous decreasing function and ; The sample features are passed through the Gaussian kernel function Mapped to the positive definite inner product space, it is a decaying kernel; (18) in, is the target domain sample hidden variable, is the target domain feature and Class center similarity score, the feature similarity score is between 0 and 1. The higher the score, the more similar the sample is to the class, and the higher the probability of the fault belonging to this class; is the scaling parameter of the Gaussian kernel, which is used to control the attenuation of the function; For the discrimination of unknown classes, a boundary threshold is set ,When the maximum similarity of a sample is less than this value, the sample will be rejected and judged as a new fault type and will no longer participate in subsequent classification; (19) in, is the predicted target domain category; considering that the similarity score is close to the category probability, the compactness of the sample features in the spatial embedding and the reserved space; For the accepted known category data, it is discriminated to the nearest category, and the classification function is defined as follows: (20) Assign the category label of the data to its closest prototype with the maximum similarity; After the equipment is repaired, the unknown category labels are supplemented and the sample latent variable prototypes and models are updated respectively. After the update, the number of initial latent variable prototypes increases to , the classification category will automatically change with the updated distance measure between the prototype and the latent variable; (21) This process is iterative, leading to continuous improvement of the model.

Citation Information

Patent Citations

  • Method for training unknown intention detection model and unknown intention detection method and device

    CN116186255A

  • Self-adaptive deep migration fault diagnosis method, system and device and medium

    CN118094218A

  • Methods and Systems for Terahertz-Based Positioning

    US20190317315A1