Electromechanical system edge end fault diagnosis method based on improved fuzzy width learning
By improving the fuzzy width learning method and subtractive clustering technology, the problem of deploying and updating edge-side fault diagnosis models is solved, efficient fault diagnosis and real-time response are achieved, and it is suitable for edge-side electromechanical equipment.
Patent Information
- Application Number
- CN202410669290.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-05-28
AI Technical Summary
It is difficult to implement the deployment and online update of electromechanical equipment fault diagnosis models at the edge with existing technology. Limited by the limited computing resources at the edge, traditional methods cannot achieve real-time fault diagnosis and incremental model update on embedded microcontrollers.
Using a method based on improved fuzzy width learning, the Takagi-Sugeno fuzzy model and enhanced node layer are introduced, combined with subtractive clustering to improve fuzzy C-means clustering, to achieve automatic selection and online update of the model's hyperparameters, and use the Matlab Coder toolbox in STM32 Deploy inference operations on the microcontroller.
It improves the accuracy and real-time performance of fault diagnosis, simplifies the hyperparameter selection process, and realizes online model updating and edge-end inference operations, making it suitable for industrial applications.
Smart Images

Figure CN118760918A_ABST
Abstract
Description
[0001] Field
[0002] The present invention relates to the field of fault diagnosis, and more specifically to the application field of fault diagnosis of edge electromechanical equipment. Background Art
[0003] Fault diagnosis is a crucial step in ensuring the safe and reliable operation of industrial processes. Timely, accurate, and efficient identification of abnormal faults is crucial for the efficient and safe operation of industrial processes. Implementing electromechanical equipment fault diagnosis at the edge can reduce IoT bandwidth pressure and cloud computing load, detect faults promptly, improve the real-time nature of fault diagnosis, and avoid significant losses. However, traditional data-driven fault diagnosis methods require large amounts of historical data and high computing power, posing challenges to their implementation due to limited computing resources at the edge. Therefore, implementing model migration and deployment and online training updates at the edge is of great engineering significance and application value.
[0004] A literature review reveals that research on deploying machine learning methods at the edge is still in its infancy. Limited by the limited computing resources at the edge, current edge machine learning deployment methods primarily focus on embedded microprocessors (MPUs) such as the Cortex-A9 and Raspberry Pi. Furthermore, these methods are limited to deploying the computationally less demanding inference phase of intelligent fault diagnosis on embedded MPUs, making it impossible to implement training at the edge. For example, in "Design of an Embedded Bearing Health Monitoring System Based on ARM," Shang Shuyang et al. implemented bearing health monitoring using the S3C2440A main control chip based on the ARM9 core, the Linux operating system, and Qt graphical development software. However, this research still involved completing machine learning training on a PC, failing to achieve real-time fault diagnosis and incapable of incremental updates to the fault diagnosis model, making it difficult to apply in practical engineering.
[0005] Embedded microcontroller units (MCUs) are smaller and consume less power than MPUs. They are often used in sensor data acquisition scenarios. Using MCUs as edge devices and deploying fault diagnosis algorithms allows for closer proximity to the device, further improving the real-time nature of health monitoring and the speed of fault diagnosis. However, compared to MPUs, MCUs' more limited computing resources restrict the porting and deployment of fault diagnosis algorithms. Model porting and deployment are more challenging. Currently, there is a lack of research on real-time fault diagnosis based on MCUs, and proposed porting methods rely primarily on tools provided by MCU manufacturers. For example, Crocioni et al. (2016) developed a lithium-ion battery health monitoring method based on artificial neural networks (ANNs) in "Li-ion batteries parameter estimation with tiny neural networks embedded on intelligent IoT microcontrollers." They deployed a pre-trained ANN model onto an STM32 microcontroller using the STM32Cube.AI tool. However, the porting and deployment were limited by the tools used, making it difficult to adapt to newly proposed machine learning algorithms. Furthermore, the ported trained models could not be incrementally updated at the edge.
[0006] In 2018, Chen et al. proposed a highly efficient incremental learning system (BLS) that does not require a deep architecture in their paper "Broad learning system: An effective and efficient incremental learning system without the need for deep architecture." This system addresses these challenges in deep learning and edge computing. BLS not only offers the advantages of simple structure, fast training, and high accuracy, but also leverages the strengths of incremental learning, providing a new approach for edge fault diagnosis. In 2021, Ren Chang'e et al. summarized the challenges and research hotspots of BLS in their paper "Research Progress on BLS." Hyperparameter setting methods and deployment applications on the cloud and embedded devices have become research hotspots.
[0007] In summary, deploying intelligent fault diagnosis algorithms at the edge has significant industrial application value. Optimizing fault diagnosis algorithms and implementing online updates for edge-based fault diagnosis algorithms are both crucial research topics. Therefore, a method for edge-based fault diagnosis in electromechanical systems is urgently needed to address these challenges. Summary of the Invention
[0008] The purpose of the present invention is to address the deficiencies of the existing technology and propose an edge-end fault diagnosis method for electromechanical systems based on improved fuzzy width learning. Based on the limited computing resources at the edge, the method enables the fault diagnosis model to perform reasoning diagnosis and online model training and updating at the edge. To address the problem of low model fault diagnosis accuracy, the mapping node layer adopts the Takagi-Sugeno fuzzy model, introduces expert experience into width learning, and implements incremental learning of enhanced nodes at the edge, thereby improving the diagnosis accuracy and enabling online model training and updating. To address the complex problem of model hyperparameter selection, fuzzy width learning is improved using fuzzy C-means clustering improved by subtractive clustering. Improved fuzzy width learning enables automatic selection of hyperparameters. To address the model increment problem, an enhanced node increment method is proposed to enable online model updates and further improve diagnostic accuracy. To address the difficulty of deploying machine learning models at the edge, an edge-end transplantation and deployment solution is proposed based on the Matlab Coder toolbox to implement width learning reasoning operations on the STM32 microcontroller.
[0009] The technical solution of the present invention is: Figure 1 A fault diagnosis method for electromechanical systems at the edge based on improved fuzzy width learning is proposed. The method includes the following six steps: data processing, model establishment, model improvement, model increment, model transplantation, and fault diagnosis. The specific process is as follows:
[0010] Step 1: Data Processing
[0011] The collected fault diagnosis data is processed in the following sub-steps:
[0012] Sub-step 1: Data cleaning. Due to factors such as environmental interference and sensor anomalies, the data in the dataset may contain default values or outliers. The present invention preferably uses the neighboring value filling method to process the problem value, that is, the average of the previous and next data is used to replace the problem value.
[0013] Sub-step 2: Data normalization: Use the Z-score normalization method to process the dataset and eliminate the differences between dimensions.
[0014] Sub-step 3: Data division: Based on the data set, determine the fault type, select feature parameters, and divide the data into training and test sets.
[0015] Step 2: Model building
[0016] Sub-step 1: Build the mapping layer model
[0017] In the Takagi-Sugeno fuzzy system, let X=(x1,x2,......,x n ), xs =(x s1 ,x s2 ,......,x sm ), s=1,2,...,n, assuming that the i-th fuzzy subsystem has K i rules, then there is an IF-Then rule, that is, IF x s1 is andx s 2 is ...and x sm is Then k=1,2,...,K i ,So
[0018]
[0019] in, is the coefficient, f is the function, then the training sample x s The i-th fuzzy subsystem is expressed as
[0020]
[0021] in, Here, Take 1, It is directly obtained by the k-means algorithm; the output vector of the i-th fuzzy subsystem for all samples is expressed as
[0022] Z i =[Z 1i ,Z 2i ,…Z ni ] (3)
[0023] Then the output of n fuzzy subsystems, that is, the mapping layer model is
[0024] Z n =[Z1,Z2,…,Z n ] (4)
[0025] Sub-step 2: Build the enhancement layer model
[0026] The output of the fuzzy rules generated by each fuzzy subsystem is not immediately summarized into one value, but all are sent to the enhancement layer for further nonlinear transformation, and the model of the j-th enhancement layer node is obtained as
[0027] H j =ξ j (Z n W hj +βhj ) (5)
[0028] where ξ j represents random mapping, W hj , β hj represents random weights. Then the output of the mth enhancement layer node, that is, the enhancement layer model is
[0029] H m =[H1,H2,…,H m ] (6)
[0030] Sub-step 3: Defuzzification of the Mapping Layer Model
[0031] In order to preserve the input characteristics, the defuzzified output of the fuzzy subsystem is
[0032]
[0033] in, is the coefficient, then the defuzzified output of the i-th fuzzy subsystem is (8), and the mapping layer can be expressed as (9)
[0034]
[0035] F n =(F1,F2,......,F n ) (9)
[0036] Sub-step 4: Build the output layer model
[0037] The defuzzification of the mapping layer model and the enhancement layer model are combined to obtain the final model
[0038] Y=F n +H m W e (10)
[0039] make get
[0040]
[0041] where Ω i Depend on composition,
[0042] Sub-step 5: Solving the output layer model weights
[0043] Using the pseudo-inverse solution technique of ridge regression, the weight is obtained
[0044] W=(DΩ,H m ) + Y (12)
[0045] Among them, (DΩ,H m ) + =((DΩ,H m ) T (DΩ,H m )) -1 (DΩ,H m ) T ;
[0046] Step 3: Model Improvement
[0047] Improved FCM is used to replace K-means clustering and improve FBLS. FBLS can automatically select the hyperparameter of the number of cluster centers. Specifically, the optimal number of cluster centers is obtained through subtractive clustering to determine the number of cluster centers of FCM. The cluster centers obtained by subtractive clustering are used as the initial cluster centers of FCM. The following substeps are included:
[0048] Sub-step 1: Determine the number of clusters by subtractive clustering
[0049] In subtractive clustering, each data point may be a cluster center. Let the data point x j The probability of becoming a cluster center is P j
[0050]
[0051] where r a Represents the neighborhood radius of the data point, which is a positive constant, where x i Represents a data point, i = 1, 2, ..., n, the possibility of a data point becoming a cluster center is inversely proportional to its distance from other points; the point with the highest possibility is taken as the first cluster center, and the first cluster center point is set to The possibility is Data point x j The probability of becoming a cluster center is updated to
[0052]
[0053] where r b It is also a positive constant, which actually defines the neighborhood radius where the probability of a data point becoming a cluster center is significantly reduced, and the point with the highest probability is selected as the second cluster center. Continue to correct the possibility of each data point becoming a cluster center, repeat k times, and get k cluster centers. The judgment standard for stopping subtractive clustering is: define ε r and ε a , indicating the upper and lower limits of the cluster center. hour
[0054]
[0055] where d min is a parameter, when λ≥1, it is the cluster center; the cluster center obtained by subtractive clustering As the initial w i , here the cluster centers obtained by subtractive clustering must be added with a small amount, because the cluster centers obtained by subtractive clustering on the original data set will be divided by zero when directly brought into the following text;
[0056] Sub-step 2: Improve the clustering method to determine the cluster center
[0057] The objective function of fuzzy C-means clustering is
[0058]
[0059] Among them, x j (j=1,2,…,N) is the required sample space data, μ ji Represents x j to w i The membership degree of m represents the fuzzy index, and in this paper, m=2, w i (i=1,2,…,c) is the cluster center. In fuzzy C-means clustering, w i The initial value is generated by random initialization.
[0060] The clustering objective of the improved fuzzy C-means clustering is to minimize J m , first calculate μ ji ;
[0061]
[0062] According to μ ji , corrected cluster center w i ;
[0063]
[0064] Calculation error
[0065]
[0066] Setting the tolerance E max , when e<E max , the algorithm ends, otherwise repeat the above process from formula (17);
[0067] Step 4: Model Increment
[0068] When the improved fuzzy width learning training fails to achieve the desired performance, new enhancement nodes are added to reduce the loss function. Suppose p enhancement nodes are added, A m =(DΩ,H m ) and W m A is the enhancement layer and weight before adding the enhancement node. m+1 =[A m |ξ(Z n W hm+1 +β hm+1 )] and W m+1 To increase the enhancement layer and weight after the enhancement node, W hm+1 is the weight of the newly added p enhanced nodes, then there is
[0069]
[0070] in When c = 0, b T =(1+d T d) -1 d T A + , when c≠0, b T =(c) + ; Then, the updated weight is
[0071]
[0072] Step 5: Model migration
[0073] The present invention proposes a deployment scheme for transplanting an improved fuzzy width learning model to the edge end, and implements intelligent fault diagnosis based on fuzzy width learning reasoning operations on the STM32 single-chip microcomputer. The steps required for transplantation are as follows.
[0074] Sub-step 1: Function Encapsulation. Because the model inference process is performed on the edge, the computational process required for model inference is encapsulated into a function. The input is the training dataset, model weights, and parameters, and the output is the fault diagnosis result.
[0075] Sub-step 2: Model generation. Use the MATLAB Coder toolbox to generate a library from the encapsulated functions. It is recommended to generate a mex file, execute the mex file to verify the translation results, and then generate the library.
[0076] Sub-step 3: Program migration. Use Keil uVision5 to create a project file, migrate the lib library into the project file and declare it, and copy the Matlab header function into the project file and declare it.
[0077] Sub-step 4: Programming. Complete header file declarations, initialization, and main program configuration in the project file main.c. Add other functions or project modules as needed. Compile and program the program and verify it on the STM32.
[0078] Step 6: Troubleshooting
[0079] The test data is sent to STM32 through the serial port, and the improved fuzzy width learning fault diagnosis method is run on STM32 to perform fault diagnosis.
[0080] The beneficial effects of the present invention are as follows: the edge-end electromechanical equipment fault diagnosis method of the improved fuzzy width learning realizes fault diagnosis model reasoning diagnosis and model online training update at the edge. In view of the problem that the model fault diagnosis accuracy is not high, the fuzzy width learning fault diagnosis method is used to improve the diagnosis accuracy; in view of the problem that the model hyperparameter selection is complex, the fuzzy C-means clustering improved by subtraction clustering is used to improve the fuzzy width learning, while retaining the advantages of the simple structure and fast training speed of the traditional BLS, it effectively reduces the time cost required for the discussion of hyperparameters; an incremental learning method for improving the fuzzy width learning enhancement node is proposed to further improve the model accuracy and realize the incremental update of the model; an STM32 model deployment method is proposed to realize the reasoning operation of the improved fuzzy width learning at the edge, which can further improve the real-time performance and fault response speed of the monitoring system, and has high practical significance and engineering application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 It is an implementation framework diagram of the present invention.
[0082] Figure 2 This is a schematic diagram of improved fuzzy width learning.
[0083] Figure 3 FIG. 4 is a schematic diagram of an electromechanical actuator data set in an embodiment.
[0084] Figure 4 This is a graph showing the effect of improved fuzzy width learning hyperparameter selection on fault diagnosis accuracy in the embodiment.
[0085] Figure 5 3 is a relationship diagram between the improved fuzzy width learning fault diagnosis accuracy and the distance parameter in the embodiment.
[0086] Figure 6 This is a physical diagram of the improved fuzzy width learning fault diagnosis in the embodiment. DETAILED DESCRIPTION
[0087] The effect of the present invention is demonstrated and verified by the NASA electromechanical actuator data set. NASA has developed an aviation electromechanical actuator (FLEA) experimental platform to conduct experiments, reproduce FLEA faults and monitor data. The experimental platform mainly consists of two test electromechanical actuators and a load electromechanical actuator. One test electromechanical actuator works normally, and the other test electromechanical actuator simulates the experimental process of the fault. The load electromechanical actuator is used to simulate the dynamic load conditions during the actual flight of the aircraft. The FLEA experimental platform measures acceleration, temperature, current, voltage, etc. through the deployed sensors. The data set contains 17 dimensions such as expected position, A test actuator position, B test actuator position, load actuator position, A test actuator current, B test actuator current, load actuator current, A test actuator voltage, B test actuator voltage, etc. Figure 3 shown.
[0088] The experiments in this embodiment were all tested under the MATLAB R2022a software platform. The computer was equipped with an Intel (R) Xeon (R) W-2133 CPU @ 3.60GHz and 64GB memory. The specific process of the electromechanical system edge fault diagnosis method based on improved fuzzy width learning in this embodiment is as follows:
[0089] Step 1: Data processing. The process is the same as the invention content. In this case, six features are selected for subsequent experiments, including the Y-axis acceleration of the A test actuator, the X-axis acceleration of the A test actuator, the Z-axis acceleration of the A test actuator, the temperature of the A test actuator, the X-axis acceleration of the B test actuator, and the Y-axis acceleration of the B test actuator. Four conditions, including normal operation (Include Normal, Normal), blocking fault (Ball Screw Jam Fault, Jam), spalling fault (Ball Screw Spalling Fault, Spall) and motor fault (Motor Winding Short Circuit Fault, Motor), are used as research objects. The selected experimental data set contains a total of 600 sets of original data sets, which are divided into four conditions: normal operation, blocking fault, spalling fault and motor fault. The six features mentioned above are selected for each set of data. During the experiment, the data set is divided into two parts, the training set and the test set, at a ratio of 80% and 20%.
[0090] Step 2: Model establishment. The process is the same as that of the invention. The experimental results are analyzed. As shown in Table 1, the network structures of FBLS and BLS are unified as 3-6-20, that is, Nf is 3, Nm is 6, and Ne is 20. The SVM is determined using the libsvm Matlab toolbox. In the NASA electromechanical actuator dataset, the fuzzy broad learning system (FBLS) has a higher fault diagnosis accuracy than the broad learning system (BLS) and support vector machines (SVM).
[0091] Table 1 Comparison of fault diagnosis accuracy between fuzzy width learning and other methods
[0092]
[0093] Step 3: Model Improvement. The process is the same as that in the invention. Analyze the experimental results.
[0094] Sub-step 1: Verify the feasibility of improved fuzzy width learning. Different clustering methods used in FBLS are discussed, as shown in Table 2. FBLS uses the k-means clustering method, FCM-BLS is FBLS using FCM clustering, and IFBLS is the improved method proposed in this paper. For ease of comparison, all three methods are trained with the same hyperparameters: Nf = 3, Nm = 6, and Ne = 20.
[0095] Table 2 Effects of different clustering methods on the accuracy of fault diagnosis using fuzzy set width learning
[0096]
[0097] The table shows that IFBLS achieves the highest fault diagnosis accuracy. While training time is somewhat longer than other methods, it eliminates the need for grid search for hyperparameters and directly determines a reasonable network structure, resulting in lower time costs in practice. During inference, testing time is nearly identical across the three methods.
[0098] Sub-step 2: Verify the effectiveness of the improved fuzzy width learning. The improved model IFBLS is compared with FBLS, BLS, and SVM, as shown in Table 3. For ease of comparison, the network structures of IFBLS, FBLS, and BLS are unified to 3-6-20, that is, Nf is 3, Nm is 6, and Ne is 20. SVM is determined using the libsvm Matlab toolbox.
[0099] Table 3 Comparison of fault diagnosis accuracy between improved fuzzy width learning and other methods
[0100]
[0101] The following conclusions can be drawn from the table:
[0102] ① IFBLS and FBLS can achieve high fault diagnosis accuracy within a relatively short runtime. IFBLS achieves the highest accuracy, especially on the test set, reaching 97.98%, which further demonstrates the advantages of the proposed IFBLS method.
[0103] ② In terms of time cost, IFBLS is close to BLS. In particular, compared with SVM, although the training time of IFBLS and FBLS is slightly increased, it is still at a lower level. This proves that the IFBLS proposed in this paper retains the fast computation speed of BLS.
[0104] ③ Compared to width learning, IFBLS and FBLS have simpler network structures but higher fault diagnosis accuracy. This shows that IFBLS only requires a small number of fuzzy rules to achieve a higher fault diagnosis accuracy, which can alleviate the rule explosion problem in fuzzy systems.
[0105] Sub-step 3: Discuss the influence of hyperparameters on the performance of the model of the present invention. First, discuss the influence of the selection of Nf, Nm, and Ne hyperparameters on the accuracy of FBLS fault diagnosis, such as Figure 4 As shown. The following conclusions can be drawn from the figure:
[0106] ① As the hyperparameters increase, the fault diagnosis accuracy gradually increases. After experiencing rapid growth, fluctuating growth, and near-stabilization, a relatively satisfactory diagnosis accuracy is achieved, while the training time also increases.
[0107] ②The impact of changes in the mapping node layer on the model fault diagnosis accuracy is more significant. When Nf and Nm increase, the diagnosis accuracy fluctuates significantly, while when Ne increases, the diagnosis accuracy tends to be more stable.
[0108] Further analysis of the hyperparameter selection results are as follows Figure 5 As shown. In traditional methods, the grid search method is usually used, which requires a lot of time and cost. For example, if the three hyperparameters are all in the range of [0, 10], the grid search needs 1000 times to determine. Therefore, the present invention proposes a more intuitive Nf selection method. By discussing the distance between cluster centers, the value of Nf, that is, the optimal number of cluster centers, can be determined more quickly. This is also one of the advantages of the improved model of the present invention. The following conclusions can be drawn from the figure:
[0109] ① As the distance parameter increases, the number of cluster centers decreases, the time cost decreases, and the fault diagnosis accuracy decreases. This is in line with expectations and also proves the rationality of the improved method proposed in the present invention.
[0110] ② Taking into account the distance parameter, a value between [0.2 and 0.7] is more appropriate. In the initial stage, as the parameter increases, the decrease in training time is more obvious than the decrease in diagnostic accuracy, so a comprehensive consideration can be used to select an appropriate parameter value.
[0111] Step 4: Model Increment. The process is the same as in the invention. Experimental results were analyzed to verify the effectiveness of the proposed model in increasing node increments. The initial network structure was set to 2-6-20, and the number of enhanced nodes was dynamically increased by 20 each time, resulting in a final structure of 2-6-30. The results are shown in Table 4.
[0112] Table 4 Improved fuzzy width learning to enhance the accuracy of node incremental fault diagnosis
[0113]
[0114] The table shows that the model accuracy improves with the addition of enhancement nodes, demonstrating the effectiveness of the proposed incremental enhancement node method. When the improved fuzzy width learning method proposed in this paper fails to achieve ideal performance after training, the model's diagnostic accuracy can be improved by adding new enhancement nodes.
[0115] Step 5: Model migration. The process is the same as in the disclosure. Using the migration method, IFBLS was ported to an STM32 microcontroller, and IFBLS reasoning operations were implemented on the STM32 microcontroller using an Anfulai STM32-V7 development board (MCU: STM32H750XBH6, Flash: 2MB).
[0116] Step 6: Fault diagnosis. The process is the same as in the invention. While performing fault diagnosis, the performance of the IFBLS edge end is mainly verified, with the main indicators being diagnosis accuracy and diagnosis time.
[0117] Sub-step 1: Verify the validity. Set Nf to 3, Nm to 6, and Ne to 20, where Nf is not set directly but obtained through the distance parameter. The results are shown in Table 5. The test time in the table is the time required for the calculated device to complete the entire reasoning process, not the time required to perform a single reasoning operation, and includes the time required to perform both data reception and reasoning diagnosis. If the time required to perform a single reasoning calculation is used, the fault diagnosis response speed can reach milliseconds, meeting the requirements for real-time fault diagnosis response rate in actual industrial application scenarios. Figure 6 shown.
[0118] Table 5 Comparison of STM32 fault diagnosis results based on IFBLS
[0119]
[0120] The table shows that the fault diagnosis accuracy of IFBLS on the edge is almost the same as that on the PC. However, due to limited computing power, the calculation time is increased, which proves the feasibility of the deployment method described in this invention.
[0121] Substep 2: Verify Stability. Repeat the experiment five times on both the PC and edge devices to verify the stability of the IFBLS fault diagnosis model and the proposed migration and deployment method. Set Nf to 3, Nm to 6, and Ne to 20. The results are shown in Table 6.
[0122] Table 6 IFBLS fault diagnosis accuracy under repeated experiments
[0123]
[0124]
[0125] The table shows that the IFBLS fault diagnosis accuracy remained stable at 97.50% across repeated experiments, with PC-side fault diagnosis accuracy reaching 97.80% and edge-side fault diagnosis accuracy reaching 97.60%. This demonstrates the robustness of the improved fuzzy width learning method and its edge-side deployment.
[0126] Sub-step 3: Measure the power consumption required to perform fault diagnosis. Figure 6 , as shown in Table 7, Figure 6 The figure shows the actual test results of IFBLS fault diagnosis power consumption. The lower left corner is the power supply, which provides 12V power supply, and the upper left corner is the ammeter. The test circuit is in A. Table 7 shows the measurement results of the current and voltage required by the STM32 development board in the working state and standby state.
[0127] Table 7 Power consumption test results of improved fuzzy width learning fault diagnosis
[0128]
[0129] The following conclusions can be drawn from the chart:
[0130] ① Using the IFBLS fault diagnosis model, the power consumption of performing a fault diagnosis at the edge is approximately 0.048W (including peripherals such as the LCD screen). The current in the working state is 0.22917A, the current in the standby state is 0.22515A, the difference is 0.00398A, and the voltage is constant at 12V, so the calculated power consumption is approximately 0.048W.
[0131] ② Comprehensive analysis shows that the program consumes relatively low amounts of computing and storage resources for fault diagnosis, making it suitable for edge fault diagnosis. Analysis of the project files using Keil5 shows that the program occupies 24.3KB of Flash and 9.0KB of RAM. The development board comes with 2MB of Flash, so the required storage resources are far less than the board's rated memory, providing strong support for actual deployment and development.
[0132] The above experiments show that the improved fuzzy width learning method proposed in the present invention performs well in the fault diagnosis problem of the NASA actuator dataset, retains the learning speed of the BLS method, and can easily complete model training using a relatively short practice on an ordinary PC. The fault diagnosis accuracy is significantly improved compared to other methods. The fuzzy C-means clustering improved by subtractive clustering effectively reduces the time cost required for hyperparameter discussion. The incremental learning method of enhanced nodes can further improve the model diagnosis accuracy. At the same time, an IFBLS edge deployment solution based on STM32 is proposed. The model maintains a high fault diagnosis performance at the edge, and the required power consumption is also maintained at a low level. This shows that the method proposed in the present invention has the advantages of fast calculation speed, high diagnostic accuracy, and easy lightweight deployment.
Claims
1. A method for edge fault diagnosis of electromechanical systems based on improved fuzzy width learning, It is characterized in that The steps include: Step 1: Data processing: For the collected fault diagnosis data, the following sub-steps are taken for processing: Sub-step 1: Data cleaning; Sub-step 2: Data standardization; Sub-step 3: Data division: According to the data set, determine the fault type, select characteristic parameters, and divide the training set and test set; Step 2: Model establishment, including the following sub-steps: Sub-step 1: Establish the mapping layer model: In the Takagi-Sugeno fuzzy system, let X = (x 1 ,x 2 ,......,x n ), x s =(x s1 ,x s2 ,......,x sm ), s=1,2,...,n, assuming that the i-th fuzzy subsystem has K i rules, then there is an IF-Then rule, that is, IF x s1 is and x s2 is ...and x sm is Then k=1,2,…,K i ,So in, is the coefficient, f is the function, then, the training sample x s The i-th fuzzy subsystem of in, Here, Take 1, It is directly obtained by the k-means algorithm; the output vector of the i-th fuzzy subsystem for all samples is expressed as WITH i =[From 1i ,WITH 2i ,…WITH ni ] (3) Then the output of n fuzzy subsystems, that is, the mapping layer model is WITH n =[From 1 ,WITH 2 ,…,WITH n ] (4) Sub-step 2: Build the enhancement layer model: The output of the fuzzy rules generated by each fuzzy subsystem is not immediately summarized into one value, but all sent to the enhancement layer for further nonlinear transformation, and the model of the jth enhancement layer node is obtained as H j =ξ j (Z n W hj +b hj ) (5) where ξ j represents random mapping, W hj , β hj represents random weights. Then the output of the mth enhancement layer node, that is, the enhancement layer model is H m =[H 1 ,H 2 ,…,H m ] (6) Sub-step 3: Defuzzification of the mapping layer model: In order to preserve the input characteristics, the defuzzified output of the fuzzy subsystem is in, is the coefficient, then the defuzzified output of the i-th fuzzy subsystem is (8), and the mapping layer can be expressed as (9) F n =(F 1 ,F 2 ,......,F n ) (9) Sub-step 4: Build the output layer model: The mapping layer model defuzzification and enhancement layer model are combined to obtain the final model Y=F n +H m W e (10) make get Where Ω i Depend on composition, Sub-step 5: Solving the output layer model weights: Using the pseudo-inverse solution technique of ridge regression, the weight is W=(DΩ,H m ) + Y (12) Among them, (DΩ, H m ) + =((DΩ,H m ) T (DΩ,H m )) -1 (DΩ,H m ) T ; Step 3: Model Improvement: Improved FCM is used to replace K-means clustering to improve FBLS, so that FBLS can automatically select the hyperparameter of the number of cluster centers. Specifically, the number of cluster centers of FCM is determined by obtaining the optimal number of cluster centers through subtractive clustering, and the cluster centers obtained by subtractive clustering are used as the initial cluster centers of FCM. The following sub-steps are included: Sub-step 1: Determine the number of clusters by subtractive clustering: In subtractive clustering, each data point may be used as a cluster center. Let the data point x j The probability of becoming a cluster center is P j where r a Represents the neighborhood radius of the data point, which is a positive constant, where x i represents a data point, i = 1, 2, ..., n, the probability of a data point becoming a cluster center is inversely proportional to its distance from other points; the point with the highest probability is taken as the first cluster center, and the first cluster center point is set to The possibility is Data point x j The probability of becoming a cluster center is updated to where r b It is also a positive constant, which actually defines the neighborhood radius where the probability of a data point becoming a cluster center is significantly reduced, and the point with the highest probability is selected as the second cluster center. Continue to correct the possibility of each data point becoming a cluster center, repeat k times, and get k cluster centers. The judgment standard for stopping subtractive clustering is: define ε r and ε a , indicating the upper and lower limits of the cluster center. hour where d min is a parameter, when λ≥1, it is the cluster center; the cluster center obtained by subtractive clustering As the initial w i Here, a small amount must be added to the cluster center obtained by subtractive clustering, because the cluster center obtained by subtractive clustering on the original data set will be divided by zero if it is directly brought into the following text; Sub-step 2: Improve the clustering method to determine the cluster center: The objective function of fuzzy C-means clustering is Among them, x j (j=1,2,…,N) is the required sample space data, μ ji Represents x j For w i The membership degree of m represents the fuzzy index, and in this paper, m=2, w i (i=1,2,…,c) is the cluster center. In fuzzy C-means clustering, w i The initial value is generated by random initialization. The clustering objective of the improved fuzzy C-means clustering is to minimize J m , first calculate μ ji ; According to μ ji , corrected cluster center w i ; Calculation error Setting tolerance E max , when e<E max , the algorithm ends, otherwise repeat the above process from formula (17); Step 4: Model increment: When the improved fuzzy width learning training cannot achieve the ideal performance, new enhancement nodes are added to reduce the loss function. Suppose p enhancement nodes are added, A m =(DΩ,H m ) and W m A is the enhancement layer and weight before adding the enhancement node. m+1 =[A m |ξ(Z n W hm+1 +β hm+1 )] and W m+1 To increase the enhancement layer and weight after the enhancement node, W hm+1 is the weight of the newly added p enhanced nodes, then there is in When c = 0, b T =(1+d T d) -1 d T A + , when c≠0, b T =(c) + ; Then, the updated weight is Step 5: Model migration: Intelligent fault diagnosis based on fuzzy width learning reasoning operation is implemented on the STM32 microcontroller. The sub-steps required for migration are as follows: Sub-step 1: Function encapsulation: Since the model reasoning process is executed on the edge, the operation process required for model reasoning is encapsulated into a function, with the input being the training data set, model weights, and parameters, and the output being the fault diagnosis result; Sub-step 2: Model generation; Use the MATLAB Coder toolbox to generate the encapsulated functions into a lib library; It is recommended to generate a mex file, execute the mex file to verify the translation result, and then generate the lib library; Sub-step 3: Program migration; Use Keil uVision5 to create a project file, migrate the lib library into the project file and declare it, copy the Matlab header function into the project file and declare it; Sub-step 4: Program writing; complete the header file declaration, initialization, and configuration of the main program in the project file main.c. Add other functions or project modules according to actual needs; compile and burn the program and perform verification on the STM32; Step 6: Troubleshooting The test data is sent to STM32 through the serial port, and the improved fuzzy width learning fault diagnosis method is run on STM32 to perform fault diagnosis.
Citation Information
Patent Citations
Bearing fault diagnosis method based on fuzzy width learning model
CN115326398A
Mechanical equipment fault diagnosis method and system, electronic equipment and storage medium
CN116012636A
Bearing fault diagnosis method based on fuzzy broad learning model
US11928613B1
Cited By
Width learning electromechanical equipment fault diagnosis method based on graph regularization
CN119337185A
Incremental fuzzy width learning electromechanical equipment fault diagnosis method based on stream data
CN119377853A
An Incremental Fuzzy Width Learning Fault Diagnosis Method for Electromechanical Equipment Based on Streaming Data
CN119377853B
