Construction method of TBM cutter fault diagnosis model based on federated learning

By adopting the federated learning method in TBM fault detection and using gradient information for model iteration and aggregation, the problem of imbalanced fault data types and data islands is solved, the reliability and efficiency of fault diagnosis are improved, and high-precision fault detection is achieved .

CN114254700BActive Publication Date: 2024-10-22OCEAN UNIV OF CHINA
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202111511532.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2024-10-22
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

There are problems such as imbalance of fault data types and data islands in TBM fault detection, which results in low reliability of fault diagnosis and waste of information. It is difficult for existing technology to effectively utilize construction data for high-precision fault detection.

Method used

Using a method based on federated learning, a fault diagnosis model is established on the server side, and data preprocessing and model training are performed on the client side. Gradient information is used for model iteration and aggregation to break data islands and improve the robustness and efficiency of the model.

Benefits of technology

It improves the reliability and practicality of TBM fault diagnosis, reduces communication time, improves the convergence speed and robustness of the model, and solves the problem of data islands while ensuring that the privacy protocol is not broken.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114254700B_ABST
    Figure CN114254700B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for constructing a TBM fault diagnosis model based on federated learning, which establishes a fault diagnosis model located at a central server and a client located at each customer. When training the model, the client receives the fault diagnosis model from the server, trains the model with local data, and feeds back the gradient information to the server. The server receives the gradient information and selects a set of gradient information that makes the model more versatile to update the model, completes an update iteration of the model, and repeats the iteration process to finally obtain the optimal model. On the basis of ensuring that the privacy protocol is not broken, the present invention solves the problem of small fault data and difficult fault diagnosis in each TBM operation and maintenance organization, breaks the data island, and has the characteristics of high reliability and strong practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of TBM fault diagnosis, and in particular to a method for constructing a TBM fault diagnosis model based on federated learning. Background Art

[0002] TBM is a key equipment for tunnel excavation. It achieves excavation by rotating the cutterhead to squeeze the rock and make it crack. There are many rollers installed on the cutterhead. When the cutterhead rotates, the rollers move on the rock wall along concentric circles of different radii. Different rollers are subjected to different stress conditions, and their failure forms and times are also different. In the complex underground excavation environment, it is difficult to install a large number of sensors to directly detect the rollers. Therefore, fault detection of the rollers is a complex and difficult process.

[0003] A common fault detection method is to install a pressure sensor on the front of the cutterhead, and estimate the wear degree of the cutter and whether a fault may occur based on the results obtained by the pressure sensor. The pressure sensor is easily damaged during the construction process, and the diagnosis of the fault needs to rely on the experience of experienced professionals to make judgments, and only a simple estimate can be made for the fault type. This method has the disadvantages of low reliability and poor stability, so it is unreliable to rely solely on sensors to detect TBM faults. At the same time, a large amount of construction data will be generated during the TBM construction process, and the construction data contains a lot of key information. This hidden information will guide the fault detection of TBM. If it is not used, it will lead to a waste of information. Therefore, the data-driven TBM fault detection method needs to mine the hidden information inside the data to perform fault detection with higher accuracy and speed.

[0004] In the actual construction process, failures often occur in a minority of cases. Therefore, the normal operating status data in the TBM's operating history data will be far more than the failure data. If these data are directly used for machine learning, the trained model often cannot achieve high prediction accuracy due to the imbalance of the training data categories. In different tunnel excavation processes, the types of failures are often different. Therefore, it can be assumed that different types of failures will appear in the historical data of every few tunnel constructions. Due to factors such as privacy protection, each company will not open this data to the outside world. As a result, each company has its own data, and the data between companies are stored and defined separately. The data are like isolated islands that are difficult to connect and interact with each other. The faults that can be diagnosed using their own data are also different. This problem is also called the data island problem. Summary of the invention

[0005] In view of the problem of unbalanced data types and data islands in TBM faults, the present invention proposes a TBM fault diagnosis method based on federated learning, which is implemented by the following technical scheme: A method for constructing a TBM fault diagnosis model based on federated learning, characterized by comprising:

[0006] A. Establish a fault diagnosis model on the server side;

[0007] B. Collect TBM operation construction data from each client, and perform data preprocessing to remove empty data, remove noise, normalize, and aggregate the data, and then pre-train the data;

[0008] C. Divide the pre-processed training data into a training set and a test set in a ratio of 9:1, use the training set to train the model, use the test set to test the performance of the model and evaluate it, obtain the model's intermediate training information after one round of iteration, and use the local test set to evaluate the iterated model, and upload the model gradient information, the number of training data and its evaluation results to the server;

[0009] D. In the first round of iteration, the server counts the time consumed by each client and divides it into two parts according to the ratio. The first part is the client set with faster training speed, and the second part is the client set with slower training speed. Then, the set of model gradient information with the worst evaluation results is removed from the gradient information sets uploaded by the clients in the first and second parts respectively, and the other sets of gradients are used to construct new global gradient information to obtain new model data.

[0010] E. The server sends the newly acquired model data to each client and repeats the above iterative steps until the pre-designed maximum number of iterations is reached. At the end of the iteration, the model at the client is the global optimal model.

[0011] Furthermore, in the repeated iterations in step E, the server removes a group of model gradient information with the worst evaluation results from the first part of clients and the second part of clients in each iteration, uses other groups of gradient information to build a new global gradient, and assigns an additional weight to the gradient information of the second part of clients during aggregation to obtain new model data.

[0012] Furthermore, in step C, before uploading the model gradient information to the server, a compression ratio A% is selected in the gradient information according to the numerical distribution, and the (100-A)% gradient information with a larger absolute value is uploaded, and the A% gradient information is retained locally.

[0013] Furthermore, in step C, the cross entropy loss function is used to evaluate each gradient information. The larger the score, the greater the estimation error and the worse the evaluation. The cross entropy loss function is as follows: Where M is the number of categories, y ic When the true category of sample i is c, it is 1, otherwise it is 0. ic is the probability that sample i belongs to category c.

[0014] Furthermore, in step D, the method for generating global gradient information is as follows: each client evaluates the result after one round of iteration, the server receives the calculation results of all cross entropy loss functions, and discards a set of gradient information with the largest calculation result, and uses the remaining n-1 sets of gradient information to construct a new global gradient by weighted average method:

[0015] Among them, N i is the number of data used by the i-th client to train the model, N is the total number of all data, The gradient information uploaded by the i-th client.

[0016] Furthermore, in step B, the construction data of the TBM operation includes cutter head torque, rotation speed, propulsion force, and propulsion rate.

[0017] Compared with the prior art, the advantages and positive effects of the present invention are:

[0018] 1. The present invention establishes a fault diagnosis model located at a central server and a client located at each customer, and trains the model using a decentralized training mode. Data is not transmitted directly, but rather transmitted through gradient information. On the basis of ensuring that the privacy protocol is not violated, the present invention solves the problem of insufficient fault data and difficult fault diagnosis in each TBM operation and maintenance organization, breaks the data island, and has the characteristics of high reliability and strong practicality.

[0019] 2. Since TBM construction data is large in scale, low in information density, and full of noise, in order to improve the quality of source data and improve the accuracy of the model, the present invention performs data preprocessing to remove empty data, remove noise, normalize, and aggregate the data on the original TBM construction data.

[0020] 3. The amount of TBM data is huge, the deep neural network structure is complex and has many parameters, and it takes multiple iterations of the model to reach convergence. The communication time will far exceed the training time. In order to improve the speed of establishing the global model, the present invention adopts the communication process in which each client only sends the more important gradients to the server, and the unimportant gradients are accumulated locally. The server collects the sparse uploaded gradients and aggregates them. This method can compress the gradients in large quantities and reduce the communication time.

[0021] 4. Since TBM construction is widely distributed in geographical locations and geological conditions vary greatly, the problem of non-independent and identically distributed data is brought about. The present invention uses a pre-training method to reduce the impact of the non-independent and identically distributed data problem, thereby improving the convergence speed of the model.

[0022] 5. In the process of integrating the global gradient, not all the gradient information is used. Instead, the evaluation information of the gradient information uploaded after the client trains the model is received at the same time, and the gradient information with poor evaluation is ignored to improve the robustness of the model.

[0023] 6. TBM has different working schedules in different regions, and different sensors bring about different data volumes and equipment differences, which lead to large differences in the training speed and communication speed of each client. The present invention uses an asynchronous aggregation method to solve the wooden barrel effect and reduce the impact of the overall speed slowdown caused by the slowest client. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic diagram of a process for constructing a TBM fault diagnosis model based on federated learning in the present invention;

[0025] Figure 2 This is a data preprocessing flow chart of the present invention;

[0026] Figure 3 Integrate intermediate training parameter flow chart for the present invention;

[0027] Figure 4 This is a schematic diagram of gradient sparse uploading of the present invention. DETAILED DESCRIPTION

[0028] The present invention is further described in detail below with reference to the accompanying drawings and specific implementation modes.

[0029] This embodiment proposes a TBM cutter fault diagnosis model based on federated learning, including:

[0030] Establish a fault detection model: The server establishes a TBM fault diagnosis model, initializes it before the first iteration, sets parameters such as the maximum number of iterations and the total number of clients, establishes a deep neural network, and sends the model to each client before each iteration. At the end of the last iteration, after confirming that the joint loss function has converged, each client can use it for fault analysis.

[0031] Data preprocessing: In actual use, different construction tunnels often use different TBMs and different sensor types, so the types of data collected are also different. At the same time, considering that a major problem in the application of federated learning is the modeling speed, the time consumed by federated learning is greatly increased compared to traditional local modeling. Therefore, in order to accelerate training, an appropriate number of features with obvious effects should be reasonably selected for modeling. Common TBM indicators such as penetration, advancement rate, cutterhead torque, cutterhead speed, and thrust should be retained. Other features can be extracted through the PCA dimensionality reduction algorithm, or retained or discarded according to actual needs. In order to improve the quality of the source data, and considering the stepping characteristics of the TBM, the preprocessing should remove the data of the TBM empty push part, and noise reduction should be performed to further improve the data quality. The training data directly reads the data on the local storage medium that has undergone the same preprocessing method, and extracts the common part of the TBM operation data according to the fault characteristics, and divides the training set and the test set.

[0032] Local model training: The client receives the neural network model from the server locally. The training parameters and model parameters of each local model are set according to the traditional neural network, and one round of iteration is performed. The iteration results are tested with the test set.

[0033] Parameter transfer: After a round of iteration of the local model is completed, the intermediate training parameters are uploaded to the server. After the server receives the intermediate parameters uploaded by all clients, it ignores the set of intermediate parameters with the worst test results among all clients, integrates the intermediate training parameters to generate a new global gradient and returns the global gradient to the client for the next round of iteration until the maximum number of iterations is reached.

[0034] refer to Figure 1 In each round of training, this embodiment follows the following steps:

[0035] 1. The central server sends the TBM fault diagnosis model to each client. There are n clients that receive the model θ i (i=1,2,…,n), each client divides the local preprocessed data into training set and test set according to 9:1, and uses the training set to train the model independently. After one round of iteration, the intermediate training information of the model is obtained, and the local test set is used to evaluate the iterated model, calculate its cross entropy loss function, and upload the model gradient information, the number of training data and its evaluation results to the server. The server then obtains the model gradient set The number of training data used and its evaluation results.

[0036] Since TBM construction data is large in scale, low in information density, and full of noise, in order to improve learning efficiency, such as Figure 2As shown, this embodiment preprocesses the TBM original construction data as follows.

[0037] Remove empty push data: TBM has a significant stepping characteristic, and a large amount of empty push data will be generated during the construction process. That is, it can be considered that the TBM is not excavating and the cutter is not in working condition. This embodiment removes this part of the data and retains all the data of the TBM in the excavation state. Since faults may occur in the initial stage and stable stage of TBM excavation, and faults are more likely to occur in the initial stage when the working condition is unstable, the conventional practice of only retaining stable stage data is not adopted. When one of the main working parameters of the TBM, namely the cutter head torque, cutter head speed, propulsion force, and propulsion rate, is zero, it is considered that the current TBM is not excavating, and this data should be removed.

[0038] Noise removal: In order to remove high-frequency noise in TBM construction data and further improve data quality, this embodiment further performs noise reduction on the construction data. Wavelet transform has the characteristic of energy concentration. After wavelet transform, the energy of the noise is concentrated in the high-frequency part and distributed on the wavelet coefficients with smaller amplitudes, while the energy of the original signal is distributed on the wavelet coefficients with larger amplitudes. After wavelet reconstruction, a large amount of high-frequency noise is removed.

[0039] Data normalization: In order to improve training efficiency, this embodiment performs proportional transformation based on actual data and unifies them into the same dimension. Common methods based on data statistical characteristics, such as the maximum-minimum method and maximum value scaling, are easily affected by abnormal maximum and minimum values, and it is time-consuming to statistically analyze the characteristics of massive TBM construction data. Therefore, proportional scaling is adopted, and the scaling coefficients of different working parameters should be selected according to actual conditions.

[0040] Data aggregation: Considering that the modeling speed of federated learning is very low, an acceleration solution must be considered. TBM construction data is usually collected at a frequency of 1Hz, that is, a set of information is collected every 1s, and the time resolution is 1s. In most cases, the TBM runs smoothly and the trend changes are not obvious. Therefore, the time resolution is set to 15s, which can better grasp the short-term and long-term trends of working parameters while reducing the amount of data. In order to avoid or reduce the impact of possible outliers, the method of modifying the time resolution is to calculate the average value of the working parameters within 15s as the new working parameters.

[0041] The size and distribution of the data set owned by each client are inconsistent, and convergence can only be achieved through multiple federated learning trainings. Therefore, the communication consumption in federated learning exceeds the computing consumption. How to reduce the communication consumption is an important issue to improve the training speed. In the process of a round of training, a large number of gradients close to zero will appear. In order to reduce frequent and unnecessary communications, the present invention adopts each client to send only more important gradients to the server, and the unimportant gradients are accumulated locally. The server collects sparse uploaded gradients and aggregates them. This method can compress a large number of gradients. Specifically as follows: In the gradient information, a compression ratio is selected according to the distribution of numerical values. For example, a threshold is set in advance. All gradients with absolute values ​​less than the threshold in this gradient information account for about 90%. Then, a compression ratio of 90% is selected, and 10% of the gradient information with larger absolute values ​​is uploaded, and 90% of the gradient information is kept locally; in order to reduce the impact of missing some gradient information with smaller absolute values ​​but still more important, the learning rate of the smallest 90% of the gradient information is increased at the same time, so as to better learn their information in the next round of iteration. The small absolute value of the gradient information indicates that less knowledge has been learned. This can be considered to be due to the small amount of such data. The fault data in this problem is the data we are more concerned about. This processing method increases the communication speed while increasing the importance of fault data in the training data, which helps to better learn the characteristics of fault data in the next round of iteration. In this way, the number of uploaded gradients in each round is reduced, and more attention can be paid to learning the knowledge of fault data in the next round of iteration, which not only saves the time consumed by the uncritical gradient information that has not been uploaded, but also speeds up the learning speed.

[0042] TBM works in many different regions. Data under different geological conditions often have different correlations. The data is arranged in chronological order and does not meet the independent and identically distributed conditions. Therefore, it is unrealistic to assume that the data of each server maintains the independent and identically distributed conditions. It is also unrealistic to ask each client to provide a small amount of data to pre-build a global data set that meets the independent and identically distributed conditions. It is necessary to increase the correlation between clients as much as possible. The higher the correlation, the smaller the difference in model parameters of each client, and the better the algorithm performance will be. Non-independent and identically distributed data causes the features learned by the model to be incomplete or have large differences. DCGAN (deep convolutional generative adversarial network) is now used to pre-train the data of each client, fully extract features and put them into federated learning for training. After feature learning, each client can train better local parameters in its own local area, which is conducive to faster aggregation of global gradients on the server side.

[0043] 2. Due to the differences in data quality, equipment, transmission, etc. of each client, the time it takes for different clients to complete a round of iteration will vary greatly. If each round of iteration waits for the slowest client to complete uploading to the server before aggregation, a lot of time will be wasted, greatly prolonging the process of federated learning. The present invention first counts the time consumed by each client in a round of iteration, and divides it into two parts according to the proportion. The first part is a set of clients with faster training speed, and the second part is a set of clients with slower training speed (try to divide it into two to three rounds of training for the first part and one round of training for the second part). The number of training times for the two parts of clients in subsequent iterations is determined according to the time consumed by the slowest clients in the two parts; Figure 4 As shown, for example, for client A with the slowest training speed in the first part and client B with the slowest training speed in the second part, A consumed 10 minutes and B consumed 35 minutes in the first round of iterations, which means that A can complete multiple rounds of iterations in the time when B completes one round of iterations, and it also means that the first part of the client can complete multiple rounds of iterations in the time when all the second part of the client iterations are completed. According to the ratio of the time consumption, it is rounded down, and it is stipulated that the first part of the client will upload the gradient information after completing three rounds of iterations, and the second part of the client will upload the gradient information after completing one round of iterations. At this time, since the first part of the client has two more rounds of iterations and has learned more knowledge, the gradient information uploaded by the first part of the client is more important, so the gradient information of the second part of the client is given a smaller weight when aggregating the gradient information. For example, the first part is trained for three rounds and the second part is trained for one round. At this time, the weight is selected as 0.3. If the first part is trained for five rounds and the second part is trained for one round, the weight is selected as 0.2. This approach not only reduces the time waste caused by the difference in the time consumed by each client, but also the client with a fast training speed can perform more iterations locally, reducing the number of communications and improving the learning efficiency as a whole.

[0044] After the server obtains the model gradient set, the number of corresponding model training data and the evaluation results, it removes the model gradient information with the worst evaluation results from the gradient information sets uploaded by the client in the first part and the second part, and uses other groups of gradients with better evaluation results to construct new global gradient information. Use it to obtain new model data. Figure 3 As shown, the method for generating the global gradient follows the following steps:

[0045] Each client obtains gradient information after completing each round of iteration and uses the local test set to test the iteration results. The cross entropy loss function is used in classification problems. Since the cross entropy involves the calculated probability of each category, it almost always appears with the Sigmoid or Softmax function. The cross entropy loss function in multi-classification problems is as follows: Where M is the number of categories, yic When the true category of sample i is c, it is 1, otherwise it is 0. ic is the probability that sample i belongs to category c.

[0046] The conventional method of establishing a global gradient will use the intermediate information uploaded by all clients. The global gradient constructed in this way will be affected by the low-quality intermediate information brought by the low-quality data of some clients, resulting in a poor effect of the constructed global gradient. To avoid the above situation, each client in this embodiment evaluates the result after one round of iteration, and the server receives the calculation results of all cross entropy loss functions. The larger the calculation result, the less suitable the gradient information is for testing. Therefore, the set of gradient information with the largest calculation result is discarded, and the remaining n-1 sets of gradient information are used to construct a new global gradient. The global gradient constructed in this way is less affected by the low-quality data of some clients, so the model finally trained will have stronger robustness.

[0047] The new global gradient is constructed using the weighted average method: Among them, N i is the number of data used by the i-th client to train the model, N is the total number of all data, The gradient information uploaded by the i-th client.

[0048] 3. The server sends the newly acquired model data to each client, repeating the above iteration steps until the pre-designed maximum number of iterations is reached, and the iteration ends. At this point, the model construction ends, and the model at the client is the global optimal model, which can be used for various types of fault diagnosis.

[0049] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A method for constructing a TBM fault diagnosis model based on federated learning, characterized in that include: A. Establish a fault diagnosis model on the server side; B. Collect TBM operation construction data from each client, and perform data preprocessing to remove empty data, remove noise, normalize, and aggregate the data, and then pre-train the data; C. Divide the pre-processed training data into a training set and a test set in a ratio of 9:1, use the training set to train the model, use the test set to test the performance of the model and evaluate it, obtain the model's intermediate training information after one round of iteration, and use the local test set to evaluate the iterated model, and upload the model gradient information, the number of training data and its evaluation results to the server; Before uploading the model gradient information to the server, select the compression ratio A% in the gradient information according to the value distribution, upload the (100-A)% gradient information with a larger absolute value, and keep the A% gradient information locally; D. In the first round of iteration, the server counts the time consumed by each client and divides it into two parts according to the ratio. The first part is the client set with faster training speed, and the second part is the client set with slower training speed. Then, the set of model gradient information with the worst evaluation results is removed from the gradient information sets uploaded by the clients in the first and second parts respectively, and the other sets of gradients are used to construct new global gradient information to obtain new model data. The method for generating global gradient information is as follows: each client evaluates the result after one round of iteration, the server receives the calculation results of all cross entropy loss functions, discards the set of gradient information with the largest calculation result, and uses the remaining n-1 sets of gradient information to construct a new global gradient by weighted average method: Among them, N i is the number of data used by the i-th client to train the model, N is the total number of all data, Gradient information uploaded by the i-th client; E. The server sends the newly acquired model data to each client and repeats the above iterative steps until the pre-designed maximum number of iterations is reached. At the end of the iteration, the model at the client is the global optimal model.

2. The method for constructing a TBM fault diagnosis model based on federated learning according to claim 1, characterized in that: During repeated iterations in step E, the server removes a group of model gradient information with the worst evaluation results from the first part of clients and the second part of clients in each iteration, uses other groups of gradient information to build a new global gradient, and assigns an additional weight to the gradient information of the second part of clients during aggregation to obtain new model data.

3. The method for constructing a TBM fault diagnosis model based on federated learning according to claim 1, characterized in that: In step C, the cross entropy loss function is used to evaluate each gradient information. The larger the score, the greater the estimation error and the worse the evaluation. The cross entropy loss function is as follows: Where M is the number of categories, y ic When the true category of sample i is c, it is 1, otherwise it is 0. ic is the probability that sample i belongs to category c.

4. The method for constructing a TBM fault diagnosis model based on federated learning according to claim 1, characterized in that: In step B, the construction data of the TBM operation includes the cutter head torque, rotation speed, propulsion force, and propulsion rate.

Citation Information

Cited By

  • Semi-supervised abnormal state diagnosis method based on TBM gripper shoe vibration

    CN122332899A