Semi-supervised small sample elevator fault diagnosis method and system with privacy protection function

By using a combination of Kalman-Filter and contrastive learning algorithms in elevator fault diagnosis, a personalized decentralized federated learning framework is established, which solves the subjectivity and high cost problems of traditional elevator fault diagnosis and achieves high-precision fault classification and privacy. protection, reducing the false alarm rate.

CN118690237APending Publication Date: 2024-09-24GUANGXI SPECIAL EQUIP SUPERVISION & INSPECTION INST P R CHINA
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410689321.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Traditional elevator fault diagnosis methods are highly subjective, have high technical thresholds, and have high maintenance costs. They are also difficult to detect potential faults in a timely manner, leading to the risk of long-term equipment downtime and accidents.

Method used

A semi-supervised small-sample elevator fault diagnosis method with privacy protection function is adopted to denoise the data through Kalman-Filter, use the contrastive learning algorithm to train the autoencoder, establish a prototype representation of the fault, and conduct it in a personalized decentralized federated learning framework. Diagnosis, using unlabeled data to improve model generalization capabilities and accuracy.

Benefits of technology

It achieves high-precision online fault classification in heterogeneous elevator fault diagnosis, reduces the diagnosis false alarm rate, and solves the problems of data heterogeneity and privacy leakage through the privacy protection function, improving diagnosis efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690237A
    Figure CN118690237A
Patent Text Reader

Abstract

The invention discloses a semi-supervised small sample elevator fault diagnosis method with a privacy protection function, which adopts Kalman-Filter to carry out data preprocessing so as to realize denoising of acquired data and improve the diagnosis efficiency and precision. Data set construction is carried out according to algorithm requirements; the method comprises the following steps of: performing data preprocessing on original data, performing a comparative learning pre-training stage, and training an automatic encoder by using positive and negative samples so as to construct a pre-training parameter model; data subjected to model pre-training can enter a prototype modeling module, characterization of different faults of elevator equipment is different, a measurement space is learned through a prototype network, and prototype representation of each type of faults is established in the measurement space; the above process is repeated to a distributed server, and an enhanced time-varying federated learning scheme is adopted, so that the convergence of the model is maintained, and meanwhile, the completely decentralized personalized model training is effectively realized. According to the method, method comparison and ablation experiments are carried out on actual elevator data, the effectiveness of a pre-training module and a prototype refinement method is proved, and excellent online diagnosis precision is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of elevator fault diagnosis, and in particular to a semi-supervised small sample elevator fault diagnosis method and system with a privacy protection function. Background Art

[0002] The elevator fault diagnosis industry refers to the manufacturing industry where manufacturers accept commissions from product users, use professional technical means and instruments to monitor the operating status of elevator equipment in real time or perform fault analysis on products, and issue fault detection reports for the equipment being diagnosed, thereby determining the cause of elevator equipment failure and its maintenance strategy. The elevator fault diagnosis industry is a highly specialized field, and elevator fault diagnosis requires professional knowledge, including elevator principles, material science, signal processing, etc. With the development of science and technology, especially the application of modern information technologies such as artificial intelligence, big data analysis, and cloud computing, the elevator fault diagnosis industry is undergoing rapid development and change.

[0003] Although traditional elevator fault diagnosis methods provide a basis for the maintenance and repair of industrial equipment, they have some limitations in practical applications. Traditional elevator fault diagnosis relies on the experience and intuition of elevator engineers to determine the damaged parts of the equipment, which is limited by the personal knowledge and skill level of engineers and is subjective. Secondly, to determine the faulty part of the elevator, the equipment needs to be shut down and disassembled, which requires a lot of time and labor costs, and is prone to secondary damage to the equipment. Finally, the occurrence of elevator equipment failures is delayed, and it is often difficult to detect fault signals in the early stages of the failure, and long-term equipment shutdowns and accidents cannot be avoided in time, and there is a lack of prevention and prediction of potential failures.

[0004] At present, the concept of intelligence has penetrated into various fields, and elevator equipment fault diagnosis is no exception, but intelligent elevator equipment diagnosis is still in its infancy; traditional elevator equipment diagnosis is highly subjective, has high technical barriers, and high equipment maintenance costs, requiring a lot of time and money costs.

[0005] Therefore, a semi-supervised small-sample elevator fault diagnosis method with privacy protection function is needed to solve the above problems. Summary of the invention

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0007] A semi-supervised small sample elevator fault diagnosis method with privacy protection function, comprising the following steps:

[0008] S1, collect data, use Kalman-Filter to denoise the collected data, and construct the data type used for training;

[0009] S2, train the autoencoder using contrastive learning algorithm to build a pre-trained parameter model;

[0010] S3, the prototype network learns a metric space and establishes a prototype representation of the fault in the metric space;

[0011] S4, repeating steps (S1)-(S3) to the distributed server, adopting an enhanced time-varying scheme to maintain the convergence of the model and establish a personalized decentralized federated learning framework with privacy protection function;

[0012] S5, uses a personalized decentralized federated learning framework with privacy protection to diagnose the dataset.

[0013] Furthermore, in step (S1), constructing the data type used for training includes the following steps:

[0014] S100, initializing the Kalman state estimation and covariance matrix, inputting data to predict the next value of the state using the model, and updating the covariance matrix of the state estimation, comparing the observation with the prediction to correct the state estimation and covariance matrix;

[0015] S200, repeating steps (S2) and (S3), continuously updating the state estimation and covariance matrix until denoised data is obtained;

[0016] S300, set the marked data to D labeled , whose labels are y∈{0,1,2,…N}, and the y values ​​represent different fault categories of the elevator; any two samples are used to form a sample pair for contrast learning pre-training, and if their y values ​​are consistent, they are positive sample pairs, otherwise they are negative sample pairs;

[0017] S400, all data are grouped into sample pairs to form a pre-training data set for contrastive learning; unlabeled data are trained semi-supervised to improve the diagnostic accuracy of the model;

[0018] S500, divides the data into three parts: support set, query set and unlabeled set according to task type.

[0019] Furthermore, the task type classification in step S500 includes the following steps:

[0020] S101, randomly sample N from the labeled data c ×N s samples as support set D s , where N c is the number of classes;

[0021] S102, randomly sample N from the remaining data c ×N ssamples as the query set D q .

[0022] Further, in step (S2), the ratio learning algorithm includes the following steps:

[0023] S210, the constructed sample pair {x i ,x j} is input into the improved autoencoder, and the encoder outputs a pair of embedded features {z i ,z j}; The feature data is mapped into a low-dimensional and high-semantic feature representation vector through the autoencoder to provide better initialization and feature expression for the diagnosis task; its calculation can be expressed as:

[0024] {z i ,z j}=F({x i ,x j})

[0025] Where F is the feature mapping function, which maps high-dimensional features into low-dimensional abstract semantic information;

[0026] S220, after obtaining the embedding features of the encoder, the metric function d(z i ,z j ), which is used to measure the distance between two samples in the feature space; its goal is to minimize the distance between positive sample pairs and maximize the distance between negative sample pairs, which is achieved by minimizing the Euclidean distance of the embedded features; the loss function of the positive and negative sample pairs is described as follows:

[0027] Loss + (X ij )={dF(x i ),F(x j ) / } 2

[0028] Loss - (X ij )=max.0,-d(F(x i ),F(x j )) /

[0029] Among them, Loss+ is used to measure the embedding feature distance between the same category or similar sample pairs. It is hoped that these distances will be minimized to ensure that similar samples are closer in the embedding space; Loss- is used to measure the embedding feature distance between different categories or dissimilar sample pairs. It is hoped that these distances will be maximized to ensure that dissimilar samples are farther apart in the embedding space; the final optimization goal of contrastive learning pre-training can be expressed as:

[0030]

[0031] Furthermore, in step (S3), establishing the prototype representation includes the following steps:

[0032] S310, using the contrastive learning pre-training model obtained in step (S2) to obtain a low-dimensional representation of the sample, and calculating the prototype center of the low-dimensional representation of each category according to the category, the expression is as follows:

[0033]

[0034] S320, the contribution of each category is calculated by embedding the unlabeled samples, and the importance of the unlabeled samples and the category contribution are combined to obtain The obtained prototype is fine-tuned, and the calculation process is expressed as:

[0035] loss rc = mse(x u ,Decoder(Encoder(x u )))

[0036]

[0037] S330, obtain sample x using the metric function s The category probability is expressed as follows:

[0038]

[0039] S340, repeat steps S310-S330, and continuously update the constraints with negative logarithmic probability to obtain the best prototype center representation; the final optimization goal can be expressed as:

[0040]

[0041] Furthermore, in step (S4), establishing a personalized decentralized federated learning framework with privacy protection function includes the following steps:

[0042] S410, select update strategy I, set the number of clients i∈[1…N], and set the hyperparameters: a m Update step size; g is a convex function; T is the total number of iterations; R is the number of local iterations; N is the number of clients. Initialization parameter w init ,θ i , μ i , w 0 Sent to each client;

[0043] S420, calculated separately It is used to update the parameter matrix of each client. The calculation process can be expressed as:

[0044]

[0045]

[0046] S430, update the parameter matrix w, and the update process can be expressed as:

[0047]

[0048] The prototype network of the present invention introduces unlabeled data to improve the generalization ability and accuracy of the prototype, and reduces the interference of abnormal data on the prototype calculation. The calculation of the prototype depends on the support set, but the support set cannot fully reflect the entire distribution of each type of fault, resulting in a deviation in the calculated prototype center and an inability to accurately reflect the category range. The introduction of unlabeled data greatly improves the expressive power of the prototype, avoids the occurrence of distribution drift, and reduces the diagnostic false alarm rate.

[0049] A semi-supervised small sample elevator fault diagnosis system with privacy protection function, applying the semi-supervised small sample elevator fault diagnosis method with privacy protection function, including a data preprocessing module, a contrast learning pre-training module, a prototype modeling module, a framework establishment module, and a fault diagnosis module;

[0050] The data preprocessing module is used to denoise the collected data using Kalman-Filter and construct the data type used for training;

[0051] The contrastive learning pre-training module is used to train the autoencoder using the contrastive learning algorithm and construct a pre-training parameter model;

[0052] The prototype modeling module is used to establish a prototype representation of the fault;

[0053] The framework building module is used to build a personalized decentralized federated learning framework with privacy protection function;

[0054] The fault diagnosis module is used to diagnose the elevator data set.

[0055] Due to the adoption of the above technical solution, the present invention has the following technical advances compared with the prior art:

[0056] Aiming at the problems of data heterogeneity, privacy protection, and data missing among elevator equipment manufacturers, a semi-supervised small sample elevator fault diagnosis method with privacy protection function is proposed. Based on Kalman filtering, the elevator data with high noise is denoised, and the training data is constructed based on small sample learning. The improved autoencoder is trained by contrastive learning to learn the discriminant feature information of elevator fault data and enhance the semantic information of elevator faults. The improved autoencoder after pre-training is deployed to multiple machines through federated learning, and the reduction of the performance of the localized model by the heterogeneous data features between elevators of different manufacturers is reduced through personalized decentralized federated learning. Finally, the improved autoencoder in the global model is trained to compress the high-dimensional data, and the low-dimensional representation of the compressed features is used to calculate the category prototype. Finally, the effectiveness and superiority of the present invention are proved in the small sample experiment of heterogeneous elevator fault diagnosis. Only a small number of labeled samples are used for offline training to achieve high-precision online fault classification. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0058] Figure 1 A flowchart of an embodiment of a semi-supervised small sample elevator fault diagnosis method with privacy protection function;

[0059] Figure 2 Schematic diagram of the structure of a semi-supervised small sample elevator fault diagnosis system with privacy protection function.

[0060] Figure 3 This is a comparison chart of the accuracy of the example of the present invention with other algorithms.

[0061] Figure 4 A comparison chart showing the impact of using different modules on accuracy in an example of the present invention;

[0062] The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0063] In order to make the technical staff of the technical field better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by the technical staff of the technical field of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0064] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0065] like Figure 1 As shown, a semi-supervised small sample elevator fault diagnosis method with privacy protection function includes the following steps:

[0066] S1, collect data, use Kalman-Filter to denoise the collected data, and construct the data type used for training;

[0067] S2, train the autoencoder using contrastive learning algorithm to build a pre-trained parameter model;

[0068] S3, the prototype network learns a metric space and establishes a prototype representation of the fault in the metric space;

[0069] S4, repeating steps (S1)-(S3) to the distributed server, adopting an enhanced time-varying scheme to maintain the convergence of the model and establish a personalized decentralized federated learning framework with privacy protection function;

[0070] S5, uses a personalized decentralized federated learning framework with privacy protection to diagnose the dataset.

[0071] Furthermore, in step (S1), constructing the data type used for training includes the following steps:

[0072] S100, initializing the Kalman state estimation and covariance matrix, inputting data to predict the next value of the state using the model, and updating the covariance matrix of the state estimation, comparing the observation with the prediction to correct the state estimation and covariance matrix;

[0073] S200, repeating steps (S2) and (S3), continuously updating the state estimation and covariance matrix until denoised data is obtained;

[0074] S300, set the marked data to D labeled , whose labels are y∈{0,1,2,…N}, and the y values ​​represent different fault categories of the elevator; any two samples are used to form a sample pair for contrast learning pre-training, and if their y values ​​are consistent, they are positive sample pairs, otherwise they are negative sample pairs;

[0075] S400, all data are grouped into sample pairs to form a pre-training data set for contrastive learning; unlabeled data are trained semi-supervised to improve the diagnostic accuracy of the model;

[0076] S500, divides the data into three parts: support set, query set and unlabeled set according to task type.

[0077] Furthermore, the task type classification in step S500 includes the following steps:

[0078] S101, randomly sample N from the labeled data c ×N s samples as support set D s , where N c is the number of classes;

[0079] S102, randomly sample N from the remaining data c ×N s samples as the query set D q .

[0080] Further, in step (S2), the ratio learning algorithm includes the following steps:

[0081] S210, the constructed sample pair {x i ,x j} is input into the improved autoencoder, and the encoder outputs a pair of embedded features {z i ,z j}; The feature data is mapped into a low-dimensional and high-semantic feature representation vector through the autoencoder to provide better initialization and feature expression for the diagnosis task; its calculation can be expressed as:

[0082] {z i ,z j}=F({x i ,x j})

[0083] Where F is the feature mapping function, which maps high-dimensional features into low-dimensional abstract semantic information;

[0084] S220, after obtaining the embedding features of the encoder, the metric function d(z i ,z j ), which is used to measure the distance between two samples in the feature space; its goal is to minimize the distance between positive sample pairs and maximize the distance between negative sample pairs, which is achieved by minimizing the Euclidean distance of the embedded features; the loss function of the positive and negative sample pairs is described as follows:

[0085] Loss + (X ij )={dF(x i ),F(x j ) / } 2

[0086] Loss - (X ij )=max.0,-d(F(x i ),F(x j )) /

[0087] Among them, Loss+ is used to measure the embedding feature distance between the same category or similar sample pairs. It is hoped that these distances will be minimized to ensure that similar samples are closer in the embedding space; Loss- is used to measure the embedding feature distance between different categories or dissimilar sample pairs. It is hoped that these distances will be maximized to ensure that dissimilar samples are farther apart in the embedding space; the final optimization goal of contrastive learning pre-training can be expressed as:

[0088]

[0089] Furthermore, in step (S3), establishing the prototype representation includes the following steps:

[0090] S310, using the contrastive learning pre-training model obtained in step (S2) to obtain a low-dimensional representation of the sample, and calculating the prototype center of the low-dimensional representation of each category according to the category, the expression is as follows:

[0091]

[0092] S320, the contribution of each category is calculated by embedding the unlabeled samples, and the importance of the unlabeled samples and the category contribution are combined to obtain The obtained prototype is fine-tuned, and the calculation process is expressed as:

[0093] lossrc = mse(x u ,Decoder(Encoder(x u )))

[0094]

[0095] S330, obtain sample x using the metric function s The category probability is expressed as follows:

[0096]

[0097] S340, repeat steps S310-S330, and continuously update the constraints with negative logarithmic probability to obtain the best prototype center representation; the final optimization goal can be expressed as:

[0098]

[0099] Furthermore, in step (S4), establishing a personalized decentralized federated learning framework with privacy protection function includes the following steps:

[0100] S410, select update strategy I, set the number of clients i∈[1…N], and set the hyperparameters: a m Update step size; g is a convex function; T is the total number of iterations; R is the number of local iterations; N is the number of clients. Initialization parameter w init ,θ i , μ i , w 0 Sent to each client;

[0101] S420, calculated separately It is used to update the parameter matrix of each client. The calculation process can be expressed as:

[0102]

[0103] S430, update the parameter matrix w, and the update process can be expressed as:

[0104]

[0105] Furthermore, the data in step S1 includes elevator monitoring data, equipment identifier ID number, car running direction data, car door machine vibration data, machine room traction machine current data, machine room brake coil current data, elevator health status data, inverter fault data, traction machine fault data, door machine fault data, safety circuit fault data. The sampling interval is 1s and the sampling time is 3 months.

[0106] The prototype network of the present invention introduces unlabeled data to improve the generalization ability and accuracy of the prototype, and reduces the interference of abnormal data on the prototype calculation. The calculation of the prototype depends on the support set, but the support set cannot fully reflect the entire distribution of each type of fault, resulting in a deviation in the calculated prototype center and an inability to accurately reflect the category range. The introduction of unlabeled data greatly improves the expressive power of the prototype, avoids the occurrence of distribution drift, and reduces the diagnostic false alarm rate.

[0107] Since process noise is usually unknown, the Kalman filter assumes that the process noise is Gaussian white noise, which means that its statistical characteristics are known. Through this process, the Kalman filter removes the influence of process noise in the prediction stage.

[0108] The mathematical expression of the prediction part is as follows:

[0109]

[0110] The denoising process data is expressed as follows:

[0111]

[0112]

[0113] In one embodiment of the present invention, in step S2, an improved autoencoder is used and a contrastive learning pre-training method is used to provide pre-training parameters. Contrastive learning focuses on learning the common features between similar instances and distinguishing the differences between non-similar instances. It can provide high-level semantic information for elevator fault classification in an abstract space. The improved autoencoder consists of two parts: an autoencoder and a hybrid attention module. This paper adds CBAM before the hidden layer output to enhance the feature screening capability. The encoder reduces the dimension of the original input data to obtain low-dimensional fault information, i.e., embedded features. The decoder consists of a three-layer deconvolution module to reconstruct the embedded features.

[0114] The improved autoencoder consists of two key parts: the autoencoder and the attention module. The channel attention mechanism compresses the feature map in the spatial dimension, obtains a one-dimensional vector, and sends it to a shared network to compress the spatial dimension of the input feature map, sums and merges each element to generate a channel attention map. Channel attention focuses on which content on this image is important. The channel attention mechanism can be expressed as:

[0115]

[0116] Where σ represents the activation function Sigmod, AvgPool and MaxPool represent average pooling and maximum pooling. The spatial attention module uses the output feature map of the spatial attention module as the input feature map. Based on this feature map, a global average pooling and a global maximum pooling are first performed to aggregate the mapping features of the spatial features. Then, they are spliced ​​and sent to a convolutional neural network for channel fusion. Finally, the spatial attention feature map is generated after the activation function Sigmod. Spatial attention can be expressed as:

[0117]

[0118] Where σ represents the activation function Sigmod, AvgPool and MaxPool represent average pooling and maximum pooling, f 7×7 The representative convolution kernel size is 7×7.

[0119] The improved autoencoder uses reconstruction loss to constrain the similarity between the reconstruction target and the input target, so that the autoencoder can extract high-level semantic information of features and provide rich category semantics for elevator classification. The reconstruction loss can be expressed as:

[0120]

[0121] The pre-training method is to construct the sample pairs {x i ,x j} is input into the improved autoencoder, and the encoder outputs a pair of embedded features {z i ,z j}. It helps to map feature data into low-dimensional and highly semantic feature representation vectors through the autoencoder, providing better initialization and feature expression for diagnostic tasks. Its calculation can be expressed as:

[0122] {z i ,z j}=F({x i ,x j})

[0123] For positive sample pairs, the goal is to minimize the difference between positive sample pairs, that is, the Euclidean distance of features. For negative sample pairs, the goal of contrastive training is to minimize feature similarity, that is, to maximize the Euclidean distance. Therefore, the loss function of the final contrastive learning pre-training is Loss ctr as follows:

[0124]

[0125] Among them, N + is the number of positive sample pairs, and N_ is the number of negative sample pairs.

[0126] In step S4, a decentralized federated learning algorithm is used to protect privacy. There are many elevator manufacturers, and elevator failures are their core data, so most manufacturers are unwilling to leak data. Classical federated learning can train machine learning models to protect privacy without sharing data, but the heterogeneous data characteristics between elevators from different manufacturers reduce the performance of localized models. Personalized FL (PFL) solves this problem by synthesizing a personalized model from a global model through training on local data. Such a global model may ignore the specific information of the client being sampled. We adopt a new scheme to inject the prior knowledge of elevator personalization into the global model of each client to alleviate the incomplete information problem introduced in PFL. That is, PFL with Bregman divergence, which decouples the personalized prior from the local objective function regularized by Bregman divergence, so that it has greater adaptability in personalized scenarios.

[0127] See also Figure 2 , a semi-supervised small sample elevator fault diagnosis system 600 with privacy protection function, applying the semi-supervised small sample elevator fault diagnosis method with privacy protection function, including a data preprocessing module 601, a contrast learning pre-training module 602, a prototype modeling module 603, a framework establishment module 604, and a fault diagnosis module 605;

[0128] The data preprocessing module 601 is used to use Kalman-Filter to remove noise from the collected data and construct the data type used for training;

[0129] The contrastive learning pre-training module 602 is used to train the autoencoder using a contrastive learning algorithm to construct a pre-training parameter model;

[0130] The prototype modeling module 603 is used to establish a prototype representation of the fault;

[0131] The framework establishment module 604 is used to establish a personalized decentralized federated learning framework with privacy protection function;

[0132] The fault diagnosis module 605 is used to diagnose the data set of the elevator.

[0133] Experimental example

[0134] In order to verify the effectiveness of the proposed invention, experiments were conducted on the datasets and compared with other related methods.

[0135] Experimental data set introduction: The experimental data set comes from the monitoring data of 105 elevators of different brands. The indicators include: device identifier ID number, timestamp, car running direction, car door machine vibration, machine room traction machine current, machine room brake coil current, elevator health status, inverter fault, traction machine fault, door machine fault, safety circuit fault. The sampling interval is 1s and the sampling time is 3 months.

[0136] Method comparison: In order to show the superiority of the method proposed in the present invention, the method of the present invention is compared with ten other methods under the same data set conditions. The other ten methods use support vector machine, decision tree, STFT-CNN, CNN-LSTM, CWT-CNN, CEEMD-1DCNN, RelativionNet, SiameseNet, MatchNet, ProtoNete10 network respectively. In order to maintain the fairness of the experiment, the other ten methods all use the same training method as the present invention. The accuracy results of the method of the present invention are compared with SSMAE-PN and other different methods as shown in the figure. Figure 3 As shown, the method proposed in the present invention performs best under multiple experimental conditions. Comparative experimental results verify the superiority of the method proposed in this paper in elevator fault diagnosis.

[0137] Ablation experiment: In order to discuss the impact of the personalized decentralized federated learning framework, MAE module and prototype optimization algorithm proposed in this paper on fault diagnosis performance. This experiment compares three network structures: 1) SSAE-PN: removing the hybrid attention module in MAE; 2) MAE-PN: prototype network without semi-supervised prototype optimization algorithm. 3) SSMAE-PN: feature extraction module is not pre-trained.

[0138] from Figure 4 It can be seen that the accuracy of SSMAE-PN (pre-training) in the present invention is about 1.9% higher than that of SSMAE-PN on average, indicating that pre-training based on contrastive learning can optimize feature mapping and improve model performance. The accuracy of SSMAE-PN (pre-training) is about 9% higher than that of SSAE-PN on average, proving the excellent feature extraction ability of the improved autoencoder of this method and the feature screening ability of the attention mechanism.

[0139] The above generally describes the present invention in detail, but it is obvious to a person skilled in the art that some modifications or improvements can be made to the present invention. Therefore, modifications or improvements that do not depart from the spirit of the present invention are within the scope of protection of the present invention.

Claims

1. A semi-supervised small sample elevator fault diagnosis method with privacy protection function, Features: The following steps are involved: S1, collect data, use Kalman-Filter to denoise the collected data, and construct the data type used for training; S2, train the autoencoder using contrastive learning algorithm to build a pre-trained parameter model; S3, the prototype network learns a metric space and establishes a prototype representation of the fault in the metric space; S4, repeating steps (S1)-(S3) to the distributed server, adopting an enhanced time-varying scheme to maintain the convergence of the model and establish a personalized decentralized federated learning framework with privacy protection function; S5, uses a personalized decentralized federated learning framework with privacy protection to diagnose the dataset.

2. The semi-supervised small sample elevator fault diagnosis method with privacy protection function as claimed in claim 1, Features: In step (S1), constructing the data type used for training includes the following steps: S100, initializing the Kalman state estimation and covariance matrix, inputting data to predict the next value of the state using the model, and updating the covariance matrix of the state estimation, comparing the observation with the prediction to correct the state estimation and covariance matrix; S200, repeating steps (S2) and (S3), continuously updating the state estimation and covariance matrix until denoised data is obtained; S300, set the marked data to D labeled , whose labels are y∈{0,1,2,…N}, and the y values ​​represent different fault categories of the elevator; any two samples are used to form a sample pair for contrast learning pre-training, and if their y values ​​are consistent, they are positive sample pairs, otherwise they are negative sample pairs; S400, all data are grouped into sample pairs to form a pre-training data set for contrastive learning; unlabeled data are trained semi-supervised to improve the diagnostic accuracy of the model; S500, divides the data into three parts: support set, query set and unlabeled set according to task type.

3. The semi-supervised small sample elevator fault diagnosis method with privacy protection function as claimed in claim 1, Features: In step (S2), the ratio learning algorithm includes the following steps: S210, the constructed sample pair {x i ,x j } is input into the improved autoencoder, and the encoder outputs a pair of embedded features {z i ,z j }; The feature data is mapped into a low-dimensional and high-semantic feature representation vector through the autoencoder to provide better initialization and feature expression for the diagnosis task; its calculation can be expressed as: {z i ,z j }=F({x i ,x j }) Where F is the feature mapping function, which maps high-dimensional features into low-dimensional abstract semantic information; S220, after obtaining the embedding features of the encoder, the metric function d(z i ,z j ), which is used to measure the distance between two samples in the feature space; its goal is to minimize the distance between positive sample pairs and maximize the distance between negative sample pairs, which is achieved by minimizing the Euclidean distance of the embedded features; the loss function of the positive and negative sample pairs is described as follows: Loss + (X ij )={d(F(x i ),F(x j ))} 2 Loss - (X ij )=max(0,-d(F(x i ),F(x j ))) Among them, Loss+ is used to measure the embedding feature distance between the same category or similar sample pairs, hoping to minimize these distances to ensure that similar samples are closer in the embedding space; Loss- is used to measure the embedding feature distance between different categories or dissimilar sample pairs; it is hoped to maximize these distances to ensure that dissimilar samples are farther apart in the embedding space; the final optimization goal of contrastive learning pre-training can be expressed as:

4. The semi-supervised small sample elevator fault diagnosis method with privacy protection function as claimed in claim 1, Features: In step (S3), establishing the prototype representation includes the following steps: S310, using the contrastive learning pre-training model obtained in step (S2) to obtain a low-dimensional representation of the sample, and calculating the prototype center of the low-dimensional representation of each category according to the category, the expression is as follows: S320, the contribution of each category is calculated by embedding the unlabeled samples, and the importance of the unlabeled samples and the category contribution are combined to obtain The obtained prototype is fine-tuned, and the calculation process is expressed as: loss rc =mse(x u ,Decoder(Encoder(x u ))) S330, obtain sample x using the metric function s The category probability is expressed as follows: S340, repeat steps S310-S330, and continuously update the constraints with negative logarithmic probability to obtain the best prototype center representation; the final optimization goal can be expressed as:

5. The semi-supervised small sample elevator fault diagnosis method with privacy protection function as claimed in claim 1, Features: The step (S4) of establishing a personalized decentralized federated learning framework with privacy protection function includes the following steps: S410, select update strategy I, set the number of clients i∈[1…N], and set the hyperparameters: a m Update step size; g is a convex function; T is the total number of iterations; R is the number of local iterations; N is the number of clients; initialization parameter w init ,θ i , μ i , w 0 Sent to each client; S420, calculated separately It is used to update the parameter matrix of each client. The calculation process can be expressed as: S430, update the parameter matrix w, and the update process can be expressed as:

6. The semi-supervised small sample elevator fault diagnosis method with privacy protection function as claimed in claim 2, Features: The task type classification in step S500 includes the following steps: S101, randomly sample N from the labeled data c ×N s samples as support set D s , where N c is the number of classes; S102, randomly sample N from the remaining data c ×N s samples as the query set D q .

7. The semi-supervised small sample elevator fault diagnosis method with privacy protection function as claimed in claim 1, Features: The mathematical expression of the prediction part of the Kalman filter in the prediction stage is as follows: The denoising process data is expressed as follows:

8. A semi-supervised small sample elevator fault diagnosis system with privacy protection function, applied to the semi-supervised small sample elevator fault diagnosis method with privacy protection function as claimed in any one of claims 1 to 7, It is characterized in that It includes data preprocessing module, contrast learning pre-training module, prototype modeling module, framework building module and fault diagnosis module; The data preprocessing module is used to denoise the collected data using Kalman-Filter and construct the data type used for training; The contrastive learning pre-training module is used to train the autoencoder using the contrastive learning algorithm and construct a pre-training parameter model; The prototype modeling module is used to establish a prototype representation of the fault; The framework building module is used to build a personalized decentralized federated learning framework with privacy protection function; The fault diagnosis module is used to diagnose the elevator data set.

Citation Information

Cited By

  • Elevator dangerous situation active identification and intelligent rescue system

    CN120097175A

  • Small sample cross-domain equipment fault diagnosis method based on mixed attention and meta learning

    CN120876451A

  • Intelligent key equipment diagnosis method and system for rotating machinery

    CN121092917A