ProNet model-based fault diagnosis method for stepless speed change tractor power system
Through the fault diagnosis method of the ProNet model, the problem of relying on manual work and insufficient sample size for fault diagnosis of the hydraulic mechanical continuously variable transmission is solved, and real-time and accurate fault identification of the hydraulic mechanical continuously variable transmission tractor power section changing system is realized, improving the accuracy of diagnosis. nature and degree of automation.
Patent Information
- Application Number
- CN202411052930.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Fault diagnosis of hydraulic mechanical continuously variable transmission relies on manual labor and lacks intelligence. The traditional deep learning model leads to overfitting due to insufficient sample size, which affects the accuracy of diagnosis.
Adopt the fault diagnosis method based on the ProNet model, collect fault data through sensors, extract features, use cross-validation to divide the training set and the test set, build a ProNet model for small sample learning, use the ProtoNet network and the euclidean_distance function to extract and classify data features, and calculate Accuracy to achieve fault detection.
Real-time, accurate, and automatic fault identification of the hydraulic mechanical continuously variable tractor power segment shifting system is achieved, which improves the normal operation and maintenance of the gearbox. The recognition rate of the algorithm under typical fault modes reaches over 96%.
Smart Images

Figure CN118568616A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of fault diagnosis of continuously variable speed power shifting systems, and in particular to a fault diagnosis method of a hydraulic mechanical continuously variable speed tractor power shifting system based on a ProNet model. Background Art
[0002] The hydraulic system of the continuously variable transmission clutch is prone to failure due to its good internal sealing, complex working conditions, and complex and variable loads. It is corroded by the oil for a long time. If some initial faults are not located and eliminated in time, they may cause adverse interference to the smooth operation of the hydraulic mechanical continuously variable transmission, and even cause dangerous hidden dangers. In order to ensure the reliability of its operating state, its operating state must be monitored and the fault mode must be identified, and the fault must be diagnosed and eliminated in time to ensure system stability and personal safety. In the transmission system of HMCVT, various components and hydraulic oils operate in a closed oil circuit, which is different from the intuitiveness of mechanical equipment or electrical equipment. Since it is impossible to directly and conveniently measure the relevant parameters through various test instruments, it can only rely on sensors such as pressure, flow and power to capture the working parameters of certain parts of the system.
[0003] Mechanical system fault diagnosis technology has made relatively in-depth progress, while hydraulic system fault diagnosis technology is still in continuous development. The fault diagnosis of traditional HMCVT mainly relies on rich practical experience and simple diagnostic equipment. With the rapid development of artificial intelligence technology, it has been integrated into hydraulic system fault diagnosis, while traditional deep learning networks often have overfitting problems due to the lack of sufficient sample size, affecting the accuracy of the model.
[0004] In actual engineering applications, the cost of collecting a large number of fault data samples of hydraulic mechanical continuously variable transmission clutches is high, resulting in a relatively small number of available labeled fault samples. Traditional deep learning networks often suffer from overfitting problems due to insufficient sample size, affecting the accuracy of the model. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a fault diagnosis method for a continuously variable transmission tractor power system based on the ProNet model in view of the above shortcomings, which solves the technical problem that the current fault diagnosis of a hydraulic mechanical continuously variable transmission (HMCVT) mostly relies on manual work and lacks intelligent fault diagnosis.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions: The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model includes the following steps: Step S1: using sensors to collect different types of fault data of a power shift system of a hydraulic mechanical continuously variable transmission; Step S2: Analyze the fault type and characteristics of the data samples, extract data sample segments with large characteristic differences, and attach corresponding labels to the extracted data samples; Step S3: Divide the data into training set and test set through cross-validation; Step S4: construct a ProNet model based on small sample learning, train the ProNet model with training data, test the model with test data samples, and finally obtain the ProNet model; Step S5: Utilize the model trained in step S4 to perform fault detection on the gearbox and evaluate its detection accuracy.
[0007] Furthermore, the ProNet model defines a ProtoNet network for extracting data features and two different functions, the euclidean_distance function and the compute_accuracy function.
[0008] Furthermore, the ProtoNet network defined in the ProNet model defines a fully connected layer to map the input data from the original input size dimension to a 64-dimensional space for extracting data features.
[0009] Furthermore, the euclidean_distance function defined in the ProNet model is used to calculate the square of the Euclidean distance between each point in the input data inputs and each point in the prototype data prototypes, and return a distance matrix; The Euclidean distance is used to measure the true distance between any two points in m-dimensional space. In n-dimensional Euclidean space, the point x(x 1 , x 2 , …, x n ) and y(y 1 ,y 2 , …, y n ) can be expressed by the following formula: ; We get an n*m matrix, where each element represents the square of the Euclidean distance between an input data point and a prototype.
[0010] Furthermore, the compute_accuracy function defined in the ProNet model is used to calculate the accuracy between the predicted label and the true label.
[0011] Furthermore, the number of output layers of the ProNet model is equal to the total number of operating condition categories collected by the hydraulic mechanical continuously variable speed tractor power shifting system.
[0012] Furthermore, the cross-validation ensures that each data point in the data set has an equal chance to be used as training data and validation data, and is a widely used model evaluation method.
[0013] Furthermore, the specific steps in step S3 are as follows: Stratified k-fold cross-validation is used to divide the data samples into two parts: training set Dtrain and test set Dtest. Each group of data in D consists of feature x extracted by the feature extractor and the corresponding category label y. The training set Dtrain contains a data set s={(x1, y1), (x2, y2), …, (xN, yN)} with a total of N labeled samples in 5 different states, where xj∈RD is a D-dimensional feature vector, yj∈{0, 1, …, 4} is the sample label, j=1,2,3…N, and sk represents the number of samples with label k. Each category of the test set Dtest contains only a small amount of training data.
[0014] 9. The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model according to claim 1 is characterized in that: the method of training the ProNet model includes the following aspects: During the training of the ProNet model, the model is initialized and set to evaluation mode, the prototype of each class is calculated using the training data, the calculated prototype is used to classify the test data based on the most recent prototype, and the accuracy of each iteration is calculated and stored.
[0015] Furthermore, the ProNet model training method specifically includes the following steps: During the training of the ProNet model, the model is initialized and set to evaluation mode. In the training phase, the training data set S is used, which contains multiple sample pairs (xi, yi), where xi is the input data and yi is the corresponding category label. For each category k, its prototype ck is calculated, where fϕ(xi) represents the output after the input xi is transformed by the model f (parameter ϕ), sk is the set of all samples in category k, and |p| is the number of samples in the set sk. These prototypes represent the center position of each category in the feature space. In the test phase, for each test sample x, the probability of it belonging to each category k is calculated, where d(fϕ(x),ck) represents the distance between the output of the test sample after the model transformation and the prototype of category k. The category with the highest probability is selected as the predicted category of the test sample. After each iteration, the classification accuracy is calculated and stored. , that is, the proportion of correctly predicted samples to the total number of test samples: ; ; .
[0016] The present invention adopts the above technical solution, and has the following technical effects compared with the prior art: The invention is applicable to the fault diagnosis method of the power shifting system of the hydraulic mechanical continuously variable transmission tractor, and can identify the current state of the power shifting system in real time, accurately and automatically, so as to effectively maintain the normal operation of the gearbox, and solve the technical problems of reliance on manual labor and low degree of automation in the prior art.
[0017] In the random sample test, the average recognition rates of the algorithm under normal and four typical fault modes were as high as 96.80%, 97.13%, 96.60%, 96.20% and 96.60% in five runs, respectively, showing very high accuracy, thus effectively maintaining the normal operation of the gearbox. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0019] Figure 1 It is a framework diagram of a fault diagnosis method of a hydraulic mechanical continuously variable speed tractor power shifting system based on a ProNet model according to an embodiment of the present invention; Figure 2 The present invention is a flowchart of a fault diagnosis method for a hydraulic mechanical continuously variable transmission tractor power shifting system based on a ProNet model according to a specific embodiment of the present invention. DETAILED DESCRIPTION
[0020] Embodiment 1, as Figure 1 and Figure 2 As shown, the fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model includes the following steps: Step S1: using sensors to collect different types of fault data of a hydraulic mechanical continuously variable transmission power shift system.
[0021] In this embodiment, in order to monitor the state of the hydraulic mechanical system during the test shift in real time, pressure sensors and flow sensors are installed in the main oil circuit and the branch oil circuit to measure the pressure and flow generated during the clutch engagement or disengagement process.
[0022] Step S2: Analyze the fault type and characteristics of the data samples, extract data sample segments with large characteristic differences, and attach corresponding labels to the extracted data samples.
[0023] In this embodiment, the possible faults in the power shifting system of the hydraulic mechanical continuously variable transmission tractor mainly include four types: spring failure, sealing ring damage, oil circuit blockage and cavitation seal failure. At the same time, a combination of these four types of faults may also occur.
[0024] Load the dataset from the Excel file, split the data into features (X) and labels (y); convert the labels from string representation to integer representation; convert the features and labels to PyTorch tensors Step S3: Split the data into training and testing sets through cross-validation.
[0025] In this embodiment, cross validation is used to divide the fault data samples of the hydraulic mechanical continuously variable transmission tractor power shift system into a training set and a test set. The specific steps include: The data samples are divided into two parts: training set Dtrain and test set Dtest by stratified k-fold cross validation. Each set of data in D consists of features x extracted by the feature extractor and the corresponding category label y. The training set Dtrain contains a total of N labeled samples in 5 different states. The data set s={(x1, y1), (x2, y2), ..., (xN, yN)}, where xj∈RD is a D-dimensional feature vector, yj∈{0, 1, ..., 4} is the sample label, j=1,2,3...N, sk represents the number of samples with label k; each category of the test set Dtest contains only a small amount of training data.
[0026] Step S4: Build a ProNet model based on small sample learning, train the model with training data, test the model with test data samples, and finally obtain the ProNet model. The ProNet model defines a ProtoNet network for extracting data features and two different functions, the euclidean_distance function and the compute_accuracy function.
[0027] The steps of constructing the ProNet model in this embodiment include: The constructed ProtoNet network defines a fully connected layer that maps the input data from the original input size dimension to a 64-dimensional space for extracting data features.
[0028] Construct the euclidean_distance function to calculate the square of the Euclidean distance between each point in the input data inputs and each point in the prototype data prototypes, and return a distance matrix; The Euclidean distance is used to measure the true distance between any two points in m-dimensional space. In n-dimensional Euclidean space, the point x(x 1 , x 2 , …, x n ) and y(y 1 ,y 2 , …, y n ) can be expressed by the following formula: ; This results in an n*m matrix, in which each element represents the square of the Euclidean distance between an input data point and a prototype.
[0029] Construct the compute_accuracy function to calculate the accuracy between the predicted labels (predictions) and the true labels (targets).
[0030] Step S5: Utilize the model trained in step S4 to perform fault detection on the gearbox and evaluate its detection accuracy.
[0031] Specifically, the method of training the ProNet model includes the following aspects: During the training of the ProNet model, the model is initialized and set to evaluation mode, the prototype of each class is calculated using the training data, the calculated prototype is used to classify the test data based on the most recent prototype, and the accuracy of each iteration is calculated and stored.
[0032] Initialize the model and set it to evaluation mode during the training of the ProNet model. In the training phase, a training dataset S is used, which contains multiple sample pairs (xi, yi), where xi is the input data and yi is the corresponding category label. For each category k, calculate its prototype ck, where fϕ(xi) represents the output after the input xi is transformed by the model f (with parameter ϕ), sk is the set of all samples in category k, and |p| is the number of samples in the set sk. These prototypes represent the center position of each category in the feature space. In the testing phase, for each test sample x, calculate its probability of belonging to each category k, where d(fϕ(x),ck) represents the distance between the output of the test sample after the model transformation and the prototype of category k. Select the category with the highest probability as the predicted category of the test sample. After each iteration, calculate and store the classification accuracy, that is, the proportion of correctly predicted samples to the total number of test samples: ; ; .
[0033] Data processing is loading the dataset from an Excel file; splitting the data into features (X) and labels (y); converting the labels from string representation to integer representation; converting features and labels to PyTorch tensors; The model definition is to build the ProNet model, define the neural network model (ProtoNet), define the function (euclidean_distance) to calculate the Euclidean distance between the embedded test sample and the prototype, and define the function (compute_accuracy) to calculate the accuracy of the model prediction.
[0034] Cross-validation is a widely used model evaluation method that ensures that each data point in the data set has an equal chance to be used as training data and validation data respectively. It uses stratified k-fold cross-validation to divide the data into training and test sets; initialize the model and set it to evaluation mode; use the training data to calculate the prototype of each class, and use the calculated prototype to classify the test data based on the most recent prototype; calculate and store the accuracy of each iteration.
[0035] Calculate the average accuracy of all iterations and print the average accuracy.
[0036] The present invention designs a new model for the intelligent fault diagnosis scenario of the hydraulic mechanical continuously variable transmission tractor power shift system. The fault diagnosis method of the hydraulic mechanical continuously variable transmission tractor power shift system based on the ProNet model has achieved excellent fault diagnosis results without using any data enhancement and transfer learning methods. The ProNet model is used for the oil pressure signal to map the samples to a new metric space. In this space, the average value of the embedded space feature vector of each type of label sample in the support set is used as the prototype of the category, and the distance between the embedded space feature vector of the sample in the query set and the prototype of each category is calculated to achieve sample classification.
[0037] The description of the present invention is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the invention to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for particular uses.
Claims
1. A fault diagnosis method for a continuously variable speed tractor power system based on the ProNet model is characterized by: The following steps are involved: Step S1: using sensors to collect different types of fault data of a power shift system of a hydraulic mechanical continuously variable transmission; Step S2: Analyze the fault type and characteristics of the data samples, extract data sample segments with large characteristic differences, and attach corresponding labels to the extracted data samples; Step S3: Divide the data into training set and test set through cross-validation; Step S4: construct a ProNet model based on small sample learning, train the ProNet model with training data, test the model with test data samples, and finally obtain the ProNet model; Step S5: Utilize the model trained in step S4 to perform fault detection on the gearbox and evaluate its detection accuracy.
2. The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model according to claim 1 is characterized in that: The ProNet model defines a ProtoNet network for extracting data features and two different functions, the euclidean_distance function and the compute_accuracy function.
3. The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model according to claim 1 is characterized in that: The ProtoNet network defined in the ProNet model defines a fully connected layer that maps the input data from the original input size dimension to a 64-dimensional space for extracting data features.
4. The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model according to claim 2 is characterized in that: The euclidean_distance function defined in the ProNet model is used to calculate the square of the Euclidean distance between each point in the input data inputs and each point in the prototype data prototypes, and return a distance matrix; The Euclidean distance is used to measure the true distance between any two points in the m-dimensional space. In the n-dimensional Euclidean space, the point x(x1, x2, ..., x n ) and y(y1, y2, …, y n ) can be expressed by the following formula: ; We get an n*m matrix, where each element represents the square of the Euclidean distance between an input data point and a prototype.
5. The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model according to claim 2 is characterized in that: The compute_accuracy function defined in the ProNet model is used to calculate the accuracy between the predicted label and the true label.
6. The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model according to claim 2 is characterized in that: The number of output layers of the ProNet model is equal to the total number of working condition categories collected by the power shifting system of the hydraulic mechanical continuously variable transmission tractor.
7. The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model according to claim 2 is characterized in that: The cross-validation ensures that each data point in the data set has an equal chance to be used as training data and validation data, and is a widely used model evaluation method.
8. The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model according to claim 1 is characterized in that: The specific steps in step S3 are as follows: Stratified k-fold cross-validation is used to divide the data samples into two parts: training set Dtrain and test set Dtest. Each group of data in D consists of feature x extracted by the feature extractor and the corresponding category label y. The training set Dtrain contains a data set s={(x1, y1), (x2, y2), …, (xN, yN)} with a total of N labeled samples in 5 different states, where xj∈RD is a D-dimensional feature vector, yj∈{0, 1, …, 4} is the sample label, j=1,2,3…N, and sk represents the number of samples with label k. Each category of the test set Dtest contains only a small amount of training data.
9. The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model according to claim 1 is characterized in that: The ProNet model training method includes the following aspects: During the training of the ProNet model, the model is initialized and set to evaluation mode, the prototype of each class is calculated using the training data, the calculated prototype is used to classify the test data based on the most recent prototype, and the accuracy of each iteration is calculated and stored.
10. The fault diagnosis method of the continuously variable speed tractor power system based on the ProNet model according to claim 9 is characterized in that: The method for training the ProNet model specifically includes the following steps: During the training of the ProNet model, the model is initialized and set to evaluation mode. In the training phase, the training data set S is used, which contains multiple sample pairs (xi, yi), where xi is the input data and yi is the corresponding category label. For each category k, its prototype ck is calculated, where fϕ(xi) represents the output after the input xi is transformed by the model f (with parameter ϕ), sk is the set of all samples in category k, and |p| is the number of samples in the set sk; These prototypes represent the center position of their respective categories in the feature space. In the test phase, for each test sample x, the probability of it belonging to each category k is calculated, where d(fϕ(x),ck) represents the distance between the output of the test sample after model transformation and the prototype of category k. The category with the highest probability is selected as the predicted category of the test sample. After each iteration, the classification accuracy is calculated and stored. , that is, the proportion of correctly predicted samples to the total number of test samples: ; ; 。
Citation Information
Patent Citations
Rolling bearing fault diagnosis method based on nonlinear measurement prototype network
CN114239384A
Fault diagnosis method of wind turbine generator gearbox
CN115541228A
Gearbox fault diagnosis method based on boundary enhanced prototype network
CN116010818A
Fault feature extraction and diagnosis method for power gear shifting system of unmanned tractor
CN118328143A
