Permanent magnet synchronous motor fault diagnosis method based on deep learning
Through the multi-source heterogeneous data fusion and sparse depth separable convolution of the SDS-YOLOv5s network, combined with the CBAM attention module, the multi-source heterogeneous data fusion and model complexity problems in the existing technology are solved, and the permanent magnet synchronous motor is realized Real-time and accurate fault diagnosis improves system reliability and safety.
Patent Information
- Application Number
- CN202410698946.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-23
AI Technical Summary
The existing deep learning-based permanent magnet synchronous motor fault diagnosis method is difficult to effectively integrate multi-source heterogeneous data. The model structure is complex and the calculation amount is large, which makes it difficult to meet the needs of real-time diagnosis. The diagnosis accuracy and stability are insufficient, and it is difficult to adapt to complex working conditions. Diversity of fault types and changes in modes.
Using the SDS-YOLOv5s network, through data collection and preprocessing, including multi-source heterogeneous data fusion of vibration signals, current signals and magnetic tile defect images, using sparse depth separable convolution and attention mechanisms, combined with end-to-end multi-tasking Learning strategy, constructing sparse convolution layers and depth-separable convolution layers, combined with CBAM attention module, to achieve fusion and enhancement of multi-scale features.
It achieves real-time, accurate and robust intelligent diagnosis of permanent magnet synchronous motor faults, improves the reliability and safety of the motor system, reduces the amount of calculation and model complexity, and adapts to the diversity of fault types and modes under complex working conditions. change.
Smart Images

Figure CN118535860A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor fault diagnosis, and in particular to a permanent magnet synchronous motor fault diagnosis method based on deep learning. Background Art
[0002] Permanent magnet synchronous motors have been widely used in industrial automation, electric vehicles, wind power generation and other fields due to their advantages such as high efficiency, high power density and wide speed regulation range. However, under complex working conditions, permanent magnet synchronous motors will inevitably suffer from various mechanical and electrical faults, such as stator winding short circuit, rotor magnet shedding, bearing wear, etc. These faults will lead to motor performance degradation, reduced efficiency, and even safety accidents, resulting in huge economic losses and social impacts.
[0003] Traditional permanent magnet synchronous motor fault diagnosis methods mainly rely on manual periodic inspection and empirical judgment, which have problems such as low diagnostic efficiency, poor accuracy, and low reliability. With the continuous increase in the scale and complexity of permanent magnet synchronous motor applications, it is urgent to develop an automated and intelligent fault diagnosis technology that can accurately identify the health status of the motor in real time, timely warn and diagnose potential faults, reduce downtime and maintenance costs, and improve the safety and reliability of the system.
[0004] In recent years, machine learning and deep learning technologies have made great progress in the fields of industrial big data analysis and intelligent diagnosis. In particular, convolutional neural networks have performed well in tasks such as image classification and target detection, providing new ideas and methods for motor fault diagnosis. However, the existing motor fault diagnosis methods based on deep learning still have the following shortcomings: First, there is a lack of effective fusion of multi-source heterogeneous data, making it difficult to fully explore the fault characteristics in signals such as vibration and current; second, the model structure is complex and the amount of calculation is large, making it difficult to meet the needs of real-time diagnosis; third, the diagnostic accuracy and stability need to be improved, making it difficult to adapt to the diversity of fault types and pattern changes under complex working conditions. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a permanent magnet synchronous motor fault diagnosis method based on deep learning, which can identify the health status of the motor in real time and accurately.
[0006] The purpose of the present invention is to provide a permanent magnet synchronous motor fault diagnosis method based on deep learning, comprising the following steps:
[0007] Step 1: Data collection and preprocessing:
[0008] An acceleration sensor is used to collect the vibration signal of the permanent magnet synchronous motor, and a current sensor is used to collect the three-phase current signal of the permanent magnet synchronous motor. A total of four types of faults are collected, including air gap eccentricity, turn-to-turn short circuit, bearing wear, and rotor bar breakage. Among them, air gap eccentricity and turn-to-turn short circuit are current characteristic faults, and bearing wear and rotor bar breakage are vibration characteristic faults. The magnetic induction thermal imaging method is used to collect the magnetic tile defect image on the surface of the permanent magnet synchronous motor, including five types of defects: perforation, fracture, unevenness, shadow and crack. The collected vibration signal and current signal are low-pass filtered, and the collected magnetic tile defect image is filtered by histogram equalization. The filtered vibration signal, current signal and magnetic tile defect image are respectively normalized to the maximum and minimum, and the data are mapped to the [0, 1] interval.
[0009] Step 2: Fusion of multi-source heterogeneous data:
[0010] The vibration signal and current signal are segmented according to a fixed time window size T, each segment corresponds to a fault diagnosis sample, and the signal of each segment is converted into a two-dimensional matrix with a matrix size of (L, M), where L is the number of signal sampling points and M is the number of signal channels. The magnetic tile defect image is time synchronized with the vibration and current signal matrix of the corresponding time period, and the image is scaled to a fixed size (F, G) to construct a multi-source heterogeneous data fusion sample with a sample size of (L, M, F, G).
[0011] Step 3: SDS (Sparse Depthwise Separable)-YOLOv5s network construction:
[0012] (3.1) Construct the backbone network of the SDS-YOLOv5s network: use a 3×3 standard convolution layer and a 2×2 maximum pooling layer at the front end; use S sparse convolution layers and depthwise separable convolution layers alternately in the middle, the sparsity of each sparse convolution layer is α, the convolution kernel size is 3×3, and the depthwise separable convolution decomposes the standard convolution into a 3×3 depthwise convolution and a 1×1 pointwise convolution; add an attention module after each downsampling layer, and use CBAM (Convolutional Block Attention Module) to simultaneously calculate spatial attention and channel attention;
[0013] (3.2) Construct the neck network of the SDS-YOLOv5s network: Use H feature fusion modules of different scales, each of which includes a 1×1 convolution layer, an upsampling layer, and a channel attention layer; fuse the three-scale feature maps output by the backbone network with the neck network layer by layer to obtain an enhanced multi-scale feature map;
[0014] (3.3) Construct the detection head of the SDS-YOLOv5s network: use a 3×3 convolutional layer and three parallel prediction branches to predict 9 fault categories, 4 bounding box coordinates and 1 confidence score respectively.
[0015] Step 4: SDS-YOLOv5s network training:
[0016] (4.1) Construct training and test sets of multi-source heterogeneous data fusion samples;
[0017] (4.2) Use the Adam optimizer to train the SDS-YOLOv5s network end-to-end;
[0018] (4.3) The fault diagnosis performance of the SDS-YOLOv5s network is evaluated on the test set. The mAP (mean Average Precision) indicator is used to measure the classification accuracy, and the IoU (Intersection over Union) indicator is used to measure the positioning accuracy.
[0019] Step 5: Deploy the trained SDS-YOLOv5s network to industrial computers or embedded devices to realize online fault diagnosis of permanent magnet synchronous motors.
[0020] Furthermore, the specific steps of the histogram equalization in step 1 are as follows:
[0021] (1.1) Calculate the grayscale histogram of the original image, that is, count the number of times different gray levels appear in the image. Assume that the input image is I and the output image is O. The filtering makes the number of pixels of each gray level in the output image approximately equal. Therefore, the grayscale histogram of the output image is hist O (k)≈H×W / 256, where W is the width of the input image; H is the height of the input image; hist O (k) represents the number of pixels in the output image whose grayscale value is equal to k, and the value range of k is 0-255.
[0022] (1.2) According to the grayscale histogram, the normalized cumulative distribution function (CDF) is calculated to map the grayscale level of the input image to the new grayscale level. For any grayscale value P, there is always a mapping value Q that satisfies the relationship of formula (1):
[0023]
[0024] Among them, the value range of P is 0-255; the value range of Q is 0-255; hist I (k) represents the number of pixels with grayscale value equal to k in the input image; and Cumulative histograms of I and O respectively.
[0025] (1.3) hist O Substitute (k)≈H×W / 256 into formula (1) and round down the grayscale value to get formulas (2) and (3):
[0026]
[0027]
[0028] Among them, P = I (r, c); Q = O (r, c); I (r, c) represents the grayscale value of row r and column c of the input image; O (r, c) represents the grayscale value of row r and column c of the output image.
[0029] Furthermore, the low-pass filtering in step 1 adopts a fifth-order Butterworth low-pass filter, and the filtering formula is as follows:
[0030]
[0031] Among them, H(jλ) is the transfer function of the filter, C is a constant parameter, N is the filter order, and λ is the cutoff frequency.
[0032] Furthermore, the specific steps of step 5 are as follows:
[0033] (5.1) Read the sensor signal through an industrial computer or embedded device, pre-process and fuse the collected vibration signal, current signal and magnetic tile defect image according to steps 1 and 2, and input them into the SDS-YOLOv5s network;
[0034] (5.2) For the categories, locations and severity of the nine faults in the network output training, the location is represented by the center coordinates (x, y) of the bounding box; the severity is represented by the confidence score, which ranges from [0, 1];
[0035] (5.3) Alarm signals and maintenance recommendations are issued based on the diagnosis results. When the confidence score is greater than the preset threshold, an alarm signal is triggered to prompt the operator to shut down the machine for maintenance; when the confidence score is less than the preset threshold but greater than 0, a maintenance recommendation is generated to prompt the operator to perform regular maintenance.
[0036] The beneficial effects of the present invention are as follows: the present invention realizes real-time, accurate and robust intelligent diagnosis of permanent magnet synchronous motor faults through adaptive multi-source heterogeneous data fusion, efficient sparse depth-separable convolution and attention mechanism, and end-to-end multi-task learning strategy, thereby improving the reliability and safety of the motor system. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1It is a flow chart of the permanent magnet synchronous motor fault diagnosis method of the present invention;
[0038] Figure 2 This is the structure diagram of the stator and rotor of the permanent magnet synchronous motor;
[0039] Figure 3 This is the connection diagram of the fault diagnosis device;
[0040] Figure 4 Schematic diagram of common permanent magnet defects in permanent magnet synchronous motors;
[0041] Figure 5 These are the characteristic diagrams of four common motor fault signals;
[0042] Figure 6 This is the principle diagram of the depth-separable convolution algorithm;
[0043] Figure 7 This is the structure diagram of the CBAM attention algorithm;
[0044] Figure 8 This is the model migration flow chart after training is completed.
[0045] Fig. 9 This is the accuracy image after SDS-YOLOv5s training. DETAILED DESCRIPTION
[0046] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further described below in conjunction with specific embodiments and diagrams.
[0047] like Figure 1 As shown, the present invention provides a permanent magnet synchronous motor fault diagnosis method based on a deep SDS-YOLOv5s network, comprising the following steps:
[0048] Step 1: Data collection and preprocessing:
[0049] (1.1) The stator and rotor structure of a permanent magnet synchronous motor is as follows Figure 2 As shown in the figure, the acceleration sensor is installed on the stator end cover to collect the vibration signal of the permanent magnet synchronous motor, and the current sensor is used to collect the three-phase current signal of the permanent magnet synchronous motor. The sampling frequency of the acceleration sensor is above 5kHz, and the range is dynamically adjusted according to the motor model and volume; the sampling frequency of the current sensor is above 5kHz, and the range is generally not less than ±100A.
[0050] (1.2) Use a magnetic induction thermal imaging system to image the magnetic tiles of a permanent magnet synchronous motor. The magnetic induction thermal imaging system includes a magnetic induction coil, an infrared thermal imager, and an image acquisition card, such as Figure 3As shown. The resolution of the infrared thermal imager is 640×640, the thermal sensitivity is 0.05℃, and the sampling frame rate is not less than 30fps; the resolution of the image acquisition card is 8 bits, and the sampling frequency is 30MHz. The magnetic field strength corresponds to the permanent magnet motor model.
[0051] (1.3) Data processing. The vibration signal and current signal are low-pass filtered using a fifth-order Butterworth low-pass filter with a cutoff frequency of 1kHz; the magnetic induction thermal image is median filtered with a filter window size of 5×5. Common types of magnetic tile defects include Figure 4 As shown in the figure, the collected magnetic tile defect image is subjected to histogram equalization filtering. First, the grayscale histogram of the original image is calculated, that is, the number of times different grayscale levels appear in the image is counted. Assuming that the input image is I and the output image is O, the filtering makes the number of pixels of each grayscale level of the output image approximately equal, so the grayscale histogram of the output image is hist O (k)≈H×W / 256, where W is the width of the input image; H is the height of the input image; hist O (k) represents the number of pixels in the output image whose grayscale value is equal to k, and the value range of k is 0-255.
[0052] The normalized cumulative distribution function (CDF) is calculated based on the grayscale histogram to map the grayscale level of the input image to the new grayscale level. For any grayscale value P, there is always a mapping value Q that satisfies the relationship of formula (1):
[0053]
[0054] Among them, the value range of P is 0-255; the value range of Q is 0-255; hist I (k) represents the number of pixels with grayscale value equal to k in the input image; and Cumulative histograms of I and O respectively.
[0055] Hist O Substitute (k)≈H×W / 256 into formula (1) and round down the grayscale value to get formulas (2) and (3):
[0056]
[0057] Among them, P = I (r, c); Q = O (r, c); I (r, c) represents the grayscale value of row r and column c of the input image; O (r, c) represents the grayscale value of row r and column c of the output image.
[0058] The current signal and the vibration signal are low-pass filtered using a fifth-order Butterworth low-pass filter with a cut-off frequency of 1kHz. The filtering formula is as follows:
[0059]
[0060] Among them, H(jλ) is the transfer function of the filter, C is a constant parameter, N is the filter order, and λ is the cutoff frequency.
[0061] Common types of electrical faults such as Figure 5 As shown in the figure, there are four main types of defects, including (a) air gap eccentricity, (b) inter-turn short circuit, (c) bearing wear, and (d) rotor bar breakage. Among them, air gap eccentricity and inter-turn short circuit defects have a greater impact on the current signal, while bearing wear and rotor bar breakage are obvious in the vibration signal.
[0062] (1.4) The filtered vibration signal, current signal and magnetic induction thermal image are respectively normalized to the maximum and minimum, and the data are mapped to the interval [0, 1].
[0063] Step 2: Fusion of multi-source heterogeneous data:
[0064] (2.1) The vibration signal and the current signal are segmented according to a fixed time window size T = 1s. Each segment corresponds to a fault diagnosis sample. The signal of each segment is converted into a two-dimensional matrix with a matrix size of (10000, 1) and (5000, 3).
[0065] (2.2) The magnetic induction thermal image sequence is segmented according to the time window T = 1s. Each segment corresponds to a fault diagnosis sample. Each segmented image sequence is converted into a three-dimensional matrix with a matrix size of (30, 640, 480).
[0066] (2.3) The vibration signal matrix, current signal matrix and magnetic induction thermal image matrix are aligned in the time dimension to construct multi-source heterogeneous data fusion samples with sample sizes of (10000, 1, 1), (5000, 3, 1) and (30, 640, 480).
[0067] Step 3: SDS-YOLOv5s network construction:
[0068] (3.1) Construct the backbone network of the SDS-YOLOv5s network: There are H modules in total. Each module uses a 3×3 standard convolution layer and a 2×2 maximum pooling layer at the front end. Eight sparse convolution layers and depthwise separable convolution layers are used in the middle, and the sparsity of each sparse convolution layer is 0.5, and the convolution kernel size is 3×3. The algorithm structure of depthwise separable convolution is as follows: Figure 6 As shown in Figure 2, the size of the deep convolution kernel is 3×3, and the size of the point-by-point convolution kernel is 1×1. A CBAM attention module is added after each downsampling layer. The algorithm structure is as follows: Figure 7 As shown in Figure 2, the CBAM attention mechanism is constructed by the following steps:
[0069] S1, spatial attention submodule:
[0070] S1.1 performs global maximum pooling and global average pooling on the input feature map F to obtain two two-dimensional feature maps F_max and F_avg;
[0071] S1.2 concatenates F_max and F_avg in the channel dimension to obtain a feature map F_c of size (H, W, 2C), where H and W are the height and width of the feature map, and C is the number of channels;
[0072] S1.3 performs a 7×7 convolution operation on F_c to obtain a spatial attention weight map M_s with a size of (H, W, 1);
[0073] S1.4 performs Sigmoid activation on M_s to obtain the spatial attention weight S;
[0074] S1.5 Multiply the input feature map X by the spatial attention weight S element by element to obtain the spatial enhanced feature map M s ;
[0075] S2, channel attention submodule:
[0076] S2.1 performs global maximum pooling and global average pooling on the input feature map X to obtain two one-dimensional feature vectors V_max and V_avg with a size of (1, 1, C);
[0077] S2.2 concatenates V_max and V_avg in the channel dimension and flattens them into a one-dimensional vector V_c with a size of (1, 1, 2C);
[0078] S2.3 performs two fully connected layers and a Sigmoid activation function on V_c to obtain the channel attention weight vector W, which is (1, 1, C);
[0079] S2.4 multiplies W by the input feature map X element by element to obtain the channel enhanced feature map X_c;
[0080] S3, add the spatial enhanced feature map X_s and the channel enhanced feature map X_c to obtain the output feature map M of the CBAM attention module c .
[0081] (3.2) Construct the neck network of the SDS-YOLOv5s network: use three feature fusion modules of different scales, each module includes a 1×1 convolution layer, an upsampling layer and a channel attention layer; fuse the three-scale feature maps output by the backbone network with the neck network layer by layer to obtain an enhanced multi-scale feature map.
[0082] (3.3) Construct the detection head of the SDS-YOLOv5s network: use a 3×3 convolutional layer and three parallel prediction branches to predict 9 fault categories, 4 bounding box coordinates and 1 confidence score respectively.
[0083] Step 4: SDS-YOLOv5s network training:
[0084] (4.1) Construct training and test sets of multi-source heterogeneous data fusion samples and randomly divide them in a ratio of 9:1.
[0085] (4.2) Define the loss function of the SDS-YOLOv5s network, which includes classification loss, regression loss and confidence loss. The classification loss uses Focal Loss, the regression loss uses GIoU Loss, and the confidence loss uses binary cross entropy loss. The weights of the three losses are 1:5:1 respectively.
[0086]
[0087] in, Indicates that the jth bounding box predictor in the i-th grid cell is responsible for prediction. If this predictor is responsible for prediction, then is 0.95, otherwise it is 0.05, In contrast, N×N is the partition of the image; b is the number of anchor boxes corresponding to each grid; c is the number of categories; λ noobj is a constant parameter, which is set to 0.5 in this study; P ij and are the true value and predicted value of the jth bounding box predictor in the i-th grid cell, respectively; C ij and are the true confidence and predicted confidence of the bounding box predictor respectively; x i ,y i , w i and h i They are the horizontal coordinate, vertical coordinate, width and height of the center point of the bounding box.
[0088] (4.3) The SDS-YOLOv5s network is trained end-to-end using the Adam optimizer, with an initial learning rate of 0.01, a batch size of 16, 100 training rounds, and a learning rate decay every 10 rounds with a decay factor of 0.1.
[0089] (4.4) The fault diagnosis performance of the SDS-YOLOv5s network is evaluated on the test set. The mAP indicator is used to measure the classification accuracy, the IoU indicator is used to measure the positioning accuracy, and the F1-score indicator is used to measure the comprehensive performance. mAP refers to the average AP value of all defect types.
[0090] The present invention uses mAP@0.5 as the most important indicator for evaluating the accuracy of the model. mAP@0.5 means the mAP value when IoU is 0.5. Compared with mAP@0.5:0.95 (the mAP value when IoU is between 0.5 and 0.95), mAP@0.5 only considers a single threshold, so the calculation is relatively simple and more suitable for rapid detection.
[0091]
[0092] The F1 score considers both the Precision and Recall of the model. The expression of F1 is shown in formula (9). The larger the F1 value, the better the detection performance of the model.
[0093]
[0094] IoU is a commonly used evaluation metric in object detection, which is used to measure the degree of overlap between the predicted bounding box and the true bounding box. The calculation formula of IoU is as follows:
[0095]
[0096] Step 5: Intelligent diagnosis of permanent magnet synchronous motor faults:
[0097] (5.1) Deploy the trained SDS-YOLOv5s network to industrial computers or embedded devices to realize online fault diagnosis of permanent magnet synchronous motors. The deployment process is as follows: Figure 8 As shown, the weight file is generally converted to a format supported by the corresponding platform. In some special devices, quantitative tuning can also be performed, such as CPU and GPU acceleration.
[0098] (5.2) Use a magnetic induction thermal imaging system to collect a thermal image sequence of the permanent magnet synchronous motor's magnetic bearings, use an acceleration sensor and a current sensor to collect the vibration signal and current signal of the permanent magnet synchronous motor, and perform data preprocessing and fusion according to steps 1 and 2.
[0099] (5.3) The fused multi-source heterogeneous data is input into the SDS-YOLOv5s network, and the network outputs the fault category, location, severity, and corresponding confidence score.
[0100] (5.4) Generate alarm signals and maintenance recommendations based on the diagnosis results: When the confidence score is greater than 0.8, an alarm signal is triggered to prompt the operator to shut down the machine for maintenance; when the confidence score is between 0.5 and 0.8, a maintenance recommendation is generated to prompt the operator to perform regular maintenance; when the confidence score is less than 0.5, it is considered that the motor is operating normally and no special treatment is required.
[0101] Fig. 9This is the accuracy image after SDS-YOLOv5s training is completed. The horizontal axis is the recall rate, the vertical axis is the recognition accuracy, and the area enclosed by the curve is the mAP of the corresponding category. The 9 types of faults trained by the SDS-YOLOv5s network have achieved high accuracy, especially the current and vibration faults, with recognition accuracy of 99.5%, which shows that the detection method proposed in the present invention effectively retains the characteristics of the signal sequence, and the overall mAP reaches 93.9%, indicating that the network has a strong multi-mode feature fusion capability. In addition, SDS-YOLOv5s is based on sparse separable convolution, which effectively controls the parameters and calculation amount of the model. Therefore, SDS-YOLOv5s is a high-performance and high-speed motor fault diagnosis network.
[0102] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A permanent magnet synchronous motor fault diagnosis method based on deep learning, characterized in that: The following steps are involved: Step 1: Data collection and preprocessing: An acceleration sensor is used to collect the vibration signal of the permanent magnet synchronous motor, and a current sensor is used to collect the three-phase current signal of the permanent magnet synchronous motor. A total of four types of faults are collected, including air gap eccentricity, turn-to-turn short circuit, bearing wear, and rotor bar breakage. Among them, air gap eccentricity and turn-to-turn short circuit are current characteristic faults, and bearing wear and rotor bar breakage are vibration characteristic faults; the magnetic tile defect image on the surface of the permanent magnet synchronous motor is collected using the magnetic induction thermal imaging method, including five types of defects: perforation, fracture, unevenness, shadow and crack; the collected vibration signal and current signal are low-pass filtered, the collected magnetic tile defect image is histogram equalized filtered, the filtered vibration signal, current signal and magnetic tile defect image are respectively normalized to the maximum and minimum, and the data is mapped to the [0, 1] interval; Step 2: Fusion of multi-source heterogeneous data: The vibration signal and current signal are segmented according to a fixed time window size T, each segment corresponds to a fault diagnosis sample, and the signal of each segment is converted into a two-dimensional matrix with a matrix size of (L, M), where L is the number of signal sampling points and M is the number of signal channels; the magnetic tile defect image is time-synchronized with the vibration and current signal matrix of the corresponding time period, and the image is scaled to a fixed size (F, G) to construct a multi-source heterogeneous data fusion sample with a sample size of (L, M, F, G); Step 3: SDS-YOLOv5s network construction: (3.1) Construct the backbone network of the SDS-YOLOv5s network: use a 3×3 standard convolution layer and a 2×2 maximum pooling layer at the front end; use S sparse convolution layers and depthwise separable convolution layers alternately in the middle, the sparsity of each sparse convolution layer is α, the convolution kernel size is 3×3, and the depthwise separable convolution decomposes the standard convolution into a 3×3 depthwise convolution and a 1×1 pointwise convolution; add an attention module after each downsampling layer, and use CBAM to simultaneously calculate spatial attention and channel attention; (3.2) Construct the neck network of the SDS-YOLOv5s network: Use H feature fusion modules of different scales, each of which includes a 1×1 convolution layer, an upsampling layer, and a channel attention layer; fuse the three-scale feature maps output by the backbone network with the neck network layer by layer to obtain an enhanced multi-scale feature map; (3.3) Construct the detection head of the SDS-YOLOv5s network: use a 3×3 convolutional layer and three parallel prediction branches to predict 9 fault categories, 4 bounding box coordinates and 1 confidence score respectively; Step 4: SDS-YOLOv5s network training: (4.1) Construct training and test sets of multi-source heterogeneous data fusion samples; (4.2) Use the Adam optimizer to train the SDS-YOLOv5s network end-to-end; (4.3) Evaluate the fault diagnosis performance of the SDS-YOLOv5s network on the test set, use the mAP indicator to measure the classification accuracy, and use the IoU indicator to measure the positioning accuracy; Step 5: Deploy the trained SDS-YOLOv5s network to industrial computers or embedded devices to realize online fault diagnosis of permanent magnet synchronous motors.
2. The permanent magnet synchronous motor fault diagnosis method based on deep learning according to claim 1 is characterized in that: The specific steps of histogram equalization described in step 1 are as follows: (1.1) Calculate the grayscale histogram of the original image, that is, count the number of times different gray levels appear in the image; assuming that the input image is I and the output image is O, the filtering makes the number of pixels of each gray level in the output image approximately equal, so the grayscale histogram of the output image is hist O (k)≈H×W / 256, where W is the width of the input image; H is the height of the input image; hist O (k) represents the number of pixels in the output image whose grayscale value is equal to k, and the value range of k is 0-255; (1.2) The normalized cumulative distribution function is calculated based on the grayscale histogram to map the grayscale level of the input image to the new grayscale level; for any grayscale value P, there is always a mapping value Q that satisfies the relationship of formula (1): Among them, the value range of P is 0-255; the value range of Q is 0-255; hist I (k) represents the number of pixels with grayscale value equal to k in the input image; and are the cumulative histograms of I and O respectively; (1.3) hist O Substitute (k)≈H×W / 256 into formula (1) and round down the grayscale value to get formulas (2) and (3): Among them, P = I (r, c); Q = O (r, c); I (r, c) represents the grayscale value of row r and column c of the input image; O (r, c) represents the grayscale value of row r and column c of the output image.
3. The permanent magnet synchronous motor fault diagnosis method based on deep learning according to claim 1 is characterized in that: The low-pass filtering described in step 1 uses a fifth-order Butterworth low-pass filter, and the filtering formula is as follows: Among them, H(jλ) is the transfer function of the filter, C is a constant parameter, N is the filter order, and λ is the cutoff frequency.
4. The permanent magnet synchronous motor fault diagnosis method based on deep learning according to claim 1 is characterized in that: The specific steps of step 5 are as follows: (5.1) Read the sensor signal through an industrial computer or embedded device, pre-process and fuse the collected vibration signal, current signal and magnetic tile defect image according to steps 1 and 2, and input them into the SDS-YOLOv5s network; (5.2) For the categories, locations and severity of the nine faults in the network output training, the location is represented by the center coordinates (x, y) of the bounding box; the severity is represented by the confidence score, which ranges from [0, 1]; (5.3) Alarm signals and maintenance recommendations are issued based on the diagnosis results. When the confidence score is greater than the preset threshold, an alarm signal is triggered to prompt the operator to shut down the machine for maintenance; when the confidence score is less than the preset threshold but greater than 0, a maintenance recommendation is generated to prompt the operator to perform regular maintenance.
Citation Information
Cited By
Intelligent fault diagnosis method and system for explosion-proof motor in natural gas industry
CN119004265A
An intelligent fault diagnosis method and system for explosion-proof motors in the natural gas industry
CN119004265B
Multi-fault intelligent diagnosis method and system for permanent magnet synchronous motor
CN119986363A
FC-EWMA-based permanent magnet synchronous motor case vibration multi-fault diagnosis method and system
CN121278566A
Automobile motor fault diagnosis method and device based on multiple models and electronic equipment
CN121365706A
