A fault diagnosis method and system for a multiphase permanent magnet motor across working modes
By constructing a sample library with dual labels for fault type and operating mode and a CNN model with a shared feature extraction layer, the problems of model redundancy and computational resource consumption in multiphase permanent magnet motor fault diagnosis are solved, realizing efficient and lightweight multi-condition fault diagnosis, which is suitable for high-reliability scenarios such as aerospace and new energy vehicles.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ANHUI UNIV
- Filing Date
- 2025-12-19
- Publication Date
- 2026-05-01
AI Technical Summary
Existing deep learning-based fault diagnosis methods for multiphase permanent magnet motors require building separate models for each operating mode, resulting in model redundancy, large computational load, long training time, and high storage space consumption, making them difficult to deploy on embedded platforms.
A fault diagnosis method for multiphase permanent magnet motors with cross-operating modes is adopted. By constructing a sample library with dual labels of fault type and operating mode, and using a CNN model with shared feature extraction layer and multiple output branches, the method can achieve cross-mode common feature extraction and dynamic fault classification, reduce parameter redundancy, and reduce computational resource consumption.
It achieves high diagnostic accuracy under multiple operating conditions while significantly reducing model complexity and computational resource consumption, and improves the ability to identify rare fault-tolerant modes, making it suitable for online intelligent diagnosis of high-reliability multiphase motor systems.
Smart Images

Figure CN121350893B_ABST
Abstract
Description
A method and system for fault diagnosis of multiphase permanent magnet motors with cross-operating modes Technical Field
[0001] This application relates to the field of motor fault diagnosis, and in particular to a method and system for diagnosing faults in a multiphase permanent magnet motor that operates across different modes. Background Technology
[0002] With the development of artificial intelligence, fault diagnosis methods for motor systems based on deep learning have received increasing attention. However, current deep learning-based fault diagnosis methods only apply to motor systems operating under normal working conditions. Multiphase permanent magnet motor systems, in addition to operating under normal conditions, also operate under fault-tolerant conditions. Following existing fault diagnosis approaches, separate fault identification models need to be built for each operating mode. Furthermore, deep learning-based fault diagnosis methods themselves require significant training time and computational resources, leading to redundancy in the fault identification models. The complexity and storage space occupied by these models will also be excessive. Summary of the Invention
[0003] This application provides a fault diagnosis method for multiphase permanent magnet motors that operates across different modes, solving the technical problems of existing fault diagnosis methods that require building separate deep learning models for each operating mode, resulting in model redundancy, high computational load, long training time, and high storage space consumption. This application also provides a fault diagnosis system for multiphase permanent magnet motors that operates across different modes.
[0004] To achieve the above objectives, this application adopts the following technical solution:
[0005] Firstly, a fault diagnosis method for multiphase permanent magnet motors operating across different modes is provided, including:
[0006] A sample library of single switch open-circuit faults of multiphase permanent magnet motor systems under various operating modes is constructed, and each sample is labeled; the labels include fault type labels and operating mode labels.
[0007] The labeled samples are grouped according to their labels and integrated into the training dataset of the CNN model. During training, the loss function of the CNN model is calculated. Based on the loss function, the global parameters of the CNN model are iteratively optimized through the backpropagation algorithm to complete the training of the CNN model. The CNN model includes a shared feature extraction layer and multiple output branches that correspond one-to-one with the working mode. Each output branch is used to classify multiple fault types in each working mode.
[0008] The system acquires the operating data and current operating mode of the multiphase permanent magnet motor system to be diagnosed. The operating data and operating mode labels are then input into the trained CNN model. The CNN model activates the corresponding output branch based on the operating mode label, and the output branch outputs the fault type label of an open circuit of a single switch in the current operating mode.
[0009] Based on the above technical solutions, in multiphase permanent magnet motor systems, the motor not only operates in normal mode but may also enter various fault-tolerant operating modes due to faults, such as one-phase loss or two-phase loss. The current harmonic distribution and fault characteristics differ significantly under different operating modes. If the traditional "single model unified diagnosis" strategy is adopted, the model cannot adequately account for the characteristic differences of various operating conditions, leading to a decrease in diagnostic accuracy. Conversely, if a separate deep learning diagnostic model is built for each operating mode, it will result in redundant model structure, a surge in parameters, long training time, high storage overhead, and difficulty in deployment on embedded platforms. To address this technical challenge, this solution proposes a lightweight multi-task diagnostic architecture of "shared feature extraction + multi-branch output": by constructing a dual-labeled sample library containing operating mode labels and fault type labels, the model learns the joint mapping relationship between modes and faults during the training phase; shared convolutional layers are used to extract common fault features across modes, significantly reducing parameter redundancy; simultaneously, output branches corresponding one-to-one with the operating mode are set, and the corresponding branches are dynamically activated during inference based on the input operating mode labels, achieving "on-demand diagnosis." This method, while maintaining high diagnostic accuracy across all fault-tolerant modes, significantly reduces model complexity and computational resource consumption. Furthermore, it alleviates the sample imbalance problem through a weighted loss function, effectively improving the ability to identify rare fault-tolerant modes. The overall solution achieves the goal of "one lightweight model covering all operating conditions and accurately identifying faults," solving key technical bottlenecks such as redundancy, poor generalization, and deployment difficulties in fault diagnosis models under multiple operating conditions. It provides an efficient and feasible solution for online intelligent diagnosis of high-reliability multiphase motor systems.
[0010] In conjunction with the first aspect above, in one possible implementation, the working mode includes a normal operating mode. A fault-tolerant working mode with one missing phase and A fault-tolerant operating mode for two-phase deficiency;
[0011] The normal operating mode label is operating mode 0;
[0012] The The fault-tolerant working mode with one missing phase is tagged as working mode. , , It is a positive integer;
[0013] The The fault-tolerant operating modes for missing two phases include two categories: missing two adjacent phases and missing two non-adjacent phases. Operating mode tags. , , It is a positive integer;
[0014] Each working mode corresponds to a system operating state under a single-phase open-circuit fault.
[0015] In conjunction with the first aspect above, in one possible implementation, the construction of a sample library of open-circuit faults of a single switch in a multiphase permanent magnet motor system under various operating modes includes:
[0016] Several multiphase current data points for each operating mode are obtained from historical data. The multiphase currents under each operating mode are transformed into α-β subspace current components i using Clark transformation. α i β and the current components in the xy subspace i x and i y ;
[0017] will i α i β i x and i y Perform normalization, and use i α The horizontal axis, i β Using i as the vertical axis, we construct the multi-harmonic plane current vector trajectory diagram of the α-β subspace, and... x The horizontal axis, i y Using the vertical axis, we construct the multi-harmonic plane current vector trajectory diagram of the xy subspace;
[0018] Each multi-harmonic plane current vector trajectory diagram is used as sample data, and each sample data is labeled with an operating mode label and a fault type label; based on all labeled sample data, a sample library of single switch open circuit faults of multiphase permanent magnet motor system is constructed.
[0019] In conjunction with the first aspect above, in one possible implementation, the time length of the multi-harmonic plane current vector trajectory diagram is not less than one complete electrical cycle, and the sampling frequency satisfies the Nyquist sampling theorem.
[0020] In conjunction with the first aspect above, in one possible implementation, the shared feature extraction layer is used to extract common features from the input data. The shared feature extraction layer includes an input layer, a convolutional layer, and a pooling layer. Each output branch corresponds to a specific working mode for performing fault classification tasks under each working mode. The output branch includes at least one fully connected layer, a global average pooling layer, or an output layer.
[0021] In conjunction with the first aspect above, in one possible implementation, the number of output branches is equal to the total number of operating modes of the multiphase permanent magnet motor system to be diagnosed, and the structure of each output branch can be adjusted according to the characteristics of its corresponding operating mode.
[0022] In conjunction with the first aspect above, in one possible implementation, the calculation of the loss function of the CNN model includes:
[0023] The feature vector output by the shared feature extraction layer With input working mode information The features are concatenated to obtain the fused feature vector. ;
[0024] ;
[0025] The output branch corresponding to working mode k outputs: ;in, For the working mode label, k=0,1, , The number of fault-tolerant operating modes that are missing one phase. The number of fault-tolerant operating modes with two phases missing. This is the weight matrix of the GAP layer corresponding to working mode k. The bias vector for working mode k;
[0026] Calculate the classification loss function under working mode k:
[0027] ;
[0028] in, Let k be the number of samples for working mode k. Let j be the j-th sample element of the mask vector, used to identify whether sample j belongs to working mode k; if yes, then... ;otherwise , Here, r is the indicator function; r is the fault type label in operating mode k. The total number of fault types under operating mode k. The label for the true fault type of sample j;
[0029] Classification loss function based on working mode k Through formula The loss function of the CNN model is calculated. .
[0030] In conjunction with the first aspect above, in one possible implementation, the working mode information is a one-dimensional one-hot encoded vector with a length of p1+p2+1; wherein, only one element in the encoded vector is 1, and the rest are 0, which is used to uniquely identify the working mode of the current sample.
[0031] In conjunction with the first aspect mentioned above, in one possible implementation, the CNN model further includes lightweight processing:
[0032] Replace fully connected layers with global average pooling layers to reduce the dimensionality of feature maps:
[0033] , ;
[0034] in, For the first The output of the global average pooling layer for each channel The number of eigenvalues for each channel, where f is the eigenvalue index. For the first The f-th feature value of each channel.
[0035] Secondly, this application provides a multiphase permanent magnet motor fault diagnosis system that operates across multiple modes, including a construction module, a model training module, and a diagnosis module. The construction module is used to build a sample library of single-switch open-circuit faults of the multiphase permanent magnet motor system under various operating modes, with each sample labeled. The model training module is used to group the labeled samples according to their labels and integrate them into a training dataset for a CNN model. During training, the loss function of the CNN model is calculated. Based on the loss function, the global parameters of the CNN model are iteratively optimized using a backpropagation algorithm to complete the CNN model training. The diagnosis module is used to acquire the operating data and current operating mode of the multiphase permanent magnet motor system to be diagnosed, input the operating data and operating mode labels into the trained CNN model, and activate the corresponding output branch according to the operating mode label. The output branch outputs the fault type label of a single-switch open circuit in the current operating mode.
[0036] This application provides a method and system for fault diagnosis of multiphase permanent magnet motors across operating modes. By constructing an image-based sample library with dual labels for fault type and operating mode, it achieves refined characterization of fault features under complex operating conditions. The designed multi-branch convolutional neural network adopts a shared feature extraction layer structure, which can automatically learn common fault features across modes from the input data, significantly reducing the number of model parameters and avoiding structural redundancy and resource waste caused by independently modeling each operating mode. Each output branch corresponds one-to-one with a specific operating mode. During the inference phase, the model dynamically activates the corresponding branch based on the input operating mode label. This branch completes the fault classification task within the mode based on the features extracted from the shared layer, balancing the universality of feature extraction and the specificity of classification decisions. This mechanism effectively improves the diagnostic accuracy and generalization ability of the model under various fault-tolerant operating conditions, especially suitable for fault identification under asymmetric conditions such as phase loss. A weighted loss function further alleviates the class imbalance problem and enhances the sensitivity to sparse patterns. The overall solution achieves high-accuracy diagnosis while reducing model complexity. It has advantages such as high computational efficiency, easy deployment, and strong robustness, providing an effective solution for intelligent and lightweight fault diagnosis of multiphase motor systems.
[0037] It should be understood that the descriptions of technical features, technical solutions, beneficial effects, or similar language in this application do not imply that all features and advantages can be achieved in any single embodiment. Rather, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution, or beneficial effect is included in at least one embodiment. Therefore, the descriptions of technical features, technical solutions, or beneficial effects in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions, and beneficial effects described in this embodiment can be combined in any suitable manner. Those skilled in the art will understand that embodiments can be implemented without one or more specific technical features, technical solutions, or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects may be identified in specific embodiments that do not embody all embodiments. Attached Figure Description
[0038] Figure 1 is a system architecture diagram of a multiphase permanent magnet motor fault diagnosis system with cross-operating modes provided in an embodiment of this application;
[0039] Figure 2 is a flowchart illustrating a method for diagnosing faults in a multiphase permanent magnet motor across operating modes, as provided in an embodiment of this application.
[0040] Figure 3 is a schematic diagram of a fault diagnosis device provided in an embodiment of this application;
[0041] Figure 4 is a schematic diagram of the hardware structure of a fault diagnosis device provided in an embodiment of this application. Detailed Implementation
[0042] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0043] The cross-operating-mode multiphase permanent magnet motor fault diagnosis method provided in this application embodiment can be applied to a cross-operating-mode multiphase permanent magnet motor fault diagnosis system, as shown in Figure 1. The system includes: a construction module, a model training module, and a diagnosis module.
[0044] The construction module is used to build a sample library of single switch open-circuit faults in a multiphase permanent magnet motor system under various operating modes, and each sample is labeled.
[0045] The model training module is used to group the labeled samples according to their labels and integrate them into the training dataset of the CNN model; during the training process, the loss function of the CNN model is calculated; based on the loss function, the global parameters of the CNN model are iteratively optimized through the backpropagation algorithm to complete the training of the CNN model.
[0046] The diagnostic module is used to acquire the operating data and current operating mode of the multiphase permanent magnet motor system to be diagnosed. The operating data and operating mode labels are input into the trained CNN model. The CNN model activates the corresponding output branch according to the operating mode label. The output branch outputs the fault type label of a single open circuit of a single switch in the current operating mode.
[0047] To address the technical problems of existing fault diagnosis methods requiring the separate construction of deep learning models for each operating mode, resulting in model redundancy, high computational load, long training time, and high storage space consumption, this application provides a cross-operating mode multiphase permanent magnet motor fault diagnosis method. This method includes: constructing a sample library of single switch open-circuit faults in a multiphase permanent magnet motor system under various operating modes, with each sample labeled; grouping the labeled samples according to their labels and integrating them into a training dataset for a CNN model; calculating the loss function of the CNN model during training; iteratively optimizing the global parameters of the CNN model using a backpropagation algorithm based on the loss function to complete the CNN model training; acquiring the operating data and current operating mode of the multiphase permanent magnet motor system to be diagnosed, inputting the operating data and operating mode labels into the trained CNN model, and having the CNN model activate the corresponding output branch according to the operating mode label, with the output branch outputting the fault type label for a single switch open circuit under the current operating mode. Based on this, by constructing a dual-label sample library of fault type and operating mode, accurate modeling of switch open-circuit faults under multiple operating conditions is achieved. A multi-branch CNN structure with shared feature extraction layers is adopted. Common features of each mode are extracted by sharing convolutional layers, which significantly reduces the number of parameters and avoids model redundancy. Each output branch corresponds one-to-one with the working mode. During inference, the corresponding branch is activated according to the mode label to realize fault classification within this mode, taking into account both feature universality and decision specificity.
[0048] As shown in Figure 2, an embodiment of this application provides a fault diagnosis method for a multiphase permanent magnet motor that operates across multiple modes, including:
[0049] S201. Construct a sample library of single switch open-circuit faults for multiphase permanent magnet motor systems under various operating modes, and assign a label to each sample.
[0050] The labels include fault type labels and operating mode labels. The operating mode labels are used to distinguish different system operating states, and the fault type labels are used to identify the location of the switch where an open-circuit fault occurred.
[0051] The working modes include one normal working mode, A fault-tolerant working mode with one missing phase and A fault-tolerant operating mode for two-phase deficiency;
[0052] The normal operating mode is labeled as operating mode 0;
[0053] The fault-tolerant working mode with one missing phase is tagged as working mode. , , For positive integers, each working mode This corresponds to the system operating state under a single-phase open-circuit fault.
[0054] The fault-tolerant operating modes for missing two phases include two categories: missing two adjacent phases and missing two non-adjacent phases. Operating mode tags. , , It is a positive integer.
[0055] For example, the operating modes of a five-phase permanent magnet motor system include one normal operating mode, five fault-tolerant operating modes with one phase missing, and ten fault-tolerant operating modes with two phases missing. The normal operating mode is labeled as operating mode 0. The five fault-tolerant operating modes with one phase missing are labeled as operating mode 1, operating mode 2, ..., operating mode 5. The ten fault-tolerant operating modes with two phases missing are divided into two categories: missing two adjacent phases and missing two non-adjacent phases, labeled as operating mode 6, operating mode 7, ..., operating mode 15.
[0056] S202. Group the labeled samples according to their labels and integrate them into the training dataset for the CNN model. During training, calculate the loss function of the CNN model. Based on the loss function, iteratively optimize the global parameters of the CNN model through the backpropagation algorithm to complete the training of the CNN model.
[0057] The CNN model includes a shared feature extraction layer and multiple output branches that correspond one-to-one with the operating modes. Each output branch is used to classify multiple fault types in each operating mode.
[0058] The shared feature extraction layer is used to extract common features from the input data. The shared feature extraction layer includes an input layer, a convolutional layer, and a pooling layer. Each output branch corresponds to a specific working mode and is used to perform the fault classification task under each working mode. The output branch includes at least one fully connected layer, a global average pooling layer, or an output layer.
[0059] In addition, to achieve lightweight CNN models, fully connected layers are replaced with global average pooling (GAP) layers to reduce the dimension of feature maps, thereby reducing computational cost and parameter count.
[0060] ;
[0061] in, For the first The output of the global average pooling layer for each channel The number of eigenvalues for each channel, where f is the eigenvalue index. For the first The f-th feature value of each channel.
[0062] Based on the above technical solutions, in multiphase permanent magnet motor systems, the current fault characteristics under different operating modes, such as normal, one-phase missing, and two-phase missing, differ significantly. Using a general-purpose CNN model with a single output head makes it difficult to meet the discrimination requirements of various operating conditions. Training a separate model for each mode leads to structural redundancy, parameter explosion, and high training costs, making deployment on resource-constrained embedded platforms difficult. Therefore, this solution adopts a lightweight multi-task architecture of "shared feature extraction layer + dedicated output branches for multiple operating modes": the shared layer extracts common fault features across modes through convolution and pooling, avoiding redundant learning; each output branch corresponds one-to-one with the operating mode, activating the corresponding branch only during inference based on the input mode label, achieving accurate and efficient fault classification. To further reduce model complexity, a global average pooling (GAP) layer replaces the traditional fully connected layer. By compressing the spatial dimension of each feature channel, class-discriminative features are directly generated, significantly reducing the number of parameters and computational overhead, while enhancing the model's generalization ability and suppressing overfitting. This design ensures high diagnostic accuracy under various operating conditions while significantly improving the model's lightweight nature and deployment efficiency, effectively solving key technical challenges such as model redundancy, computational complexity, and poor generalization in multi-mode fault diagnosis.
[0063] S203. Obtain the operating data and current working mode of the multiphase permanent magnet motor system to be diagnosed. Input the operating data and working mode label into the trained CNN model. The CNN model activates the corresponding output branch according to the working mode label. The output branch outputs the fault type label of a single open circuit of a single switch in the current working mode.
[0064] The number of output branches is equal to the total number of operating modes of the multiphase permanent magnet motor system to be diagnosed, and the structure of each output branch can be adjusted according to the characteristics of its corresponding operating mode.
[0065] Based on the above technical solutions, in a multiphase permanent magnet motor system, the motor not only operates in a normal state but may also switch to various fault-tolerant operating modes due to faults such as open circuits in switching transistors, such as asymmetrical operating states with one, two, or even more phases missing. The current waveforms, harmonic components, and fault characteristics under these different operating modes exhibit significant differences: in the normal mode, the current is symmetrical and the harmonic content is low, while in the fault-tolerant mode, the current is severely distorted, specific harmonics (such as the 5th and 7th harmonics) are significantly enhanced, and the fault characteristics caused by different combinations of phase loss are all different. If the traditional "single model unified diagnosis" method is adopted, that is, using a single output head to classify faults under all operating conditions, the model cannot adapt to such diverse feature distributions simultaneously, which can easily lead to a significant drop in diagnostic accuracy under certain fault-tolerant modes. Conversely, if an independent deep learning model is designed for each operating mode (such as 16 types), it will lead to a surge in the number of models, a huge total number of parameters, repetitive and redundant training processes, and excessive consumption of storage and computing resources, severely restricting its practical deployment in vehicle-mounted, shipborne, or industrial embedded control systems.
[0066] To address the aforementioned technical bottlenecks, this solution innovatively proposes a lightweight, multi-task fault diagnosis architecture based on "shared feature extraction + multi-branch output." First, a sample library with dual semantic labels is constructed—each sample is simultaneously labeled with its operating mode label (e.g., "missing C phase") and fault type label (e.g., "open circuit in upper arm of C phase"), enabling the model to establish a joint "mode-fault" mapping during training. Second, the network front-end employs shared convolutional and pooling layers to automatically extract common fault features across operating modes (e.g., harmonic trajectory shape, asymmetry, etc.) from the input current vector trajectory image, avoiding repeated learning of low-level features for each mode and significantly compressing model parameters. The back-end sets up multiple output branches corresponding one-to-one with the operating mode, each branch dedicated to fine-grained fault classification within that mode. During the inference phase, the system dynamically activates the corresponding output branch based on the real-time acquired operating mode labels, achieving "on-demand diagnosis," ensuring classification accuracy while avoiding the computational overhead of irrelevant branches. Furthermore, by introducing a weighted loss function based on the number of samples, the class imbalance problem caused by the fact that there are far more normal mode samples than fault-tolerant mode samples (especially the rare mode with two missing samples) is effectively alleviated, and the sensitivity and robustness of the model to small sample conditions are significantly improved.
[0067] In summary, this solution uses a single lightweight model to uniformly cover all operating conditions. While significantly reducing model complexity, memory usage, and inference latency, it achieves high-precision and highly adaptable open-circuit fault diagnosis of switching transistors. It effectively solves core problems such as redundancy, weak generalization ability, and deployment difficulties in fault diagnosis models under multiple operating conditions, and provides a practical and feasible technical path for intelligent operation and maintenance of multiphase permanent magnet motor systems in high-reliability scenarios such as aerospace, new energy vehicles, and ship propulsion.
[0068] Furthermore, in this embodiment, a sample library with dual labels for fault type and operating mode is constructed, which can comprehensively characterize the fault characteristics of multiphase permanent magnet motors under different fault-tolerant operating states, breaking through the limitation of traditional methods that only model a single normal mode. By simultaneously labeling each sample with both "fault type" and "operating mode" labels, a refined description of complex fault scenarios such as phase loss and open circuit of switching transistors is achieved, enabling the model to learn the differences and evolution patterns of fault characteristics under different operating modes during the training phase. This dual-label mechanism not only enhances the information integrity of the sample data, but also provides key prior information for the subsequent multi-branch network structure to achieve collaborative decision-making of "pattern recognition-fault classification," supporting the model to dynamically match the optimal diagnostic path based on the current operating state during inference. Especially after the motor enters a fault-tolerant operating mode with one or two phases missing, traditional methods are prone to misjudgment due to feature shift, while this solution, guided by pattern labels, significantly improves the adaptability and accuracy of fault diagnosis, providing a reliable data foundation for intelligent diagnosis under complex multi-conditions.
[0069] In one possible implementation of this application embodiment, the above-mentioned S201 can be specifically implemented by the following S301, S302 and S303, which are described in detail below:
[0070] S301. Obtain several multiphase current data points for each operating mode from historical data, and convert the multiphase currents under each operating mode into α-β subspace current components i using Clark transformation. α i β and the current components in the xy subspace i x and i y ;
[0071] will i α i β i x and i y Perform normalization, and use i α The horizontal axis, i β Using i as the vertical axis, we construct the multi-harmonic plane current vector trajectory diagram of the α-β subspace, and... x The horizontal axis, i y Using the vertical axis, we construct the multi-harmonic plane current vector trajectory diagram of the xy subspace;
[0072] Normalization refers to normalizing the amplitude of each current component according to its peak or effective value under normal operating mode, so that the current amplitude of all samples is within the range of [0,1] or [-1,1].
[0073] It should be noted that the time length of the multi-harmonic plane current vector trajectory diagram is no less than one complete electrical cycle, and the sampling frequency satisfies the Nyquist sampling theorem. Furthermore, the current vector trajectory diagram is stored as a grayscale image or a pseudo-color image with a resolution of no less than 64×64 pixels, and is used as input for training subsequent convolutional neural network models.
[0074] S303. Each multi-harmonic plane current vector trajectory diagram is used as sample data, and each sample data is labeled with a working mode label and a fault type label; based on all labeled sample data, a sample library of single switch open circuit faults of multiphase permanent magnet motor system is constructed.
[0075] For example, current data of a five-phase permanent magnet motor (A, B, C, D, E) under specific operating modes and fault conditions are extracted from historical data, respectively. , , , , For example, within a complete electrical cycle, such as 20ms corresponding to a 50Hz frequency, the current time series of each phase is collected.
[0076] For a five-phase permanent magnet motor, the Clark transformation matrix is typically used to convert the current in the five-phase coordinate system to a two-phase stationary coordinate system (α-β coordinate system) and two other harmonic component coordinate systems (xy coordinate system). The Clark transformation formula is as follows:
[0077] ;
[0078] in, This is the Clark transformation matrix, which varies depending on the specific structure of the five-phase system. Applying this transformation yields four new current components. , , ,and .
[0079] For the obtained current components , , ,and Normalization is performed so that the current amplitude of all samples falls within the range of [0,1] or [-1,1]. Typically, the maximum or effective value of the current component under normal operating conditions is used as a reference for scaling.
[0080] Using the normalized current components, we construct multiharmonic plane current vector trajectory diagrams for the α-β subspace and xy subspace, respectively. This means we need to plot... For the horizontal axis, A graph with the vertical axis as the ordinate, and with... For the horizontal axis, The graph is plotted on the vertical axis. These two graphs reflect the operating characteristics of the motor in different subspaces.
[0081] Each generated trajectory image is assigned a corresponding operating mode label and fault type label. For example, "Operating Mode 3" can represent a specific fault-tolerant operating state, while "Fault Type 3" may refer to a specific situation where a switch is open-circuited.
[0082] Based on the above annotation information, all samples are integrated into a sample library of single-switch open-circuit faults in multiphase permanent magnet motor systems. This sample library can be used to train convolutional neural network models to identify different operating modes and fault types.
[0083] Based on the above technical solutions, traditional fault diagnosis methods for multiphase permanent magnet motors mostly rely on the time-domain or frequency-domain characteristics of the original current signal, making it difficult to effectively capture the complex harmonic coupling and trajectory distortion characteristics caused by faults under different operating modes, such as normal operation, one-phase loss, and two-phase loss. Especially under fault-tolerant operating conditions, the current waveform is highly asymmetrical, and traditional features are easily affected by operating conditions, resulting in poor diagnostic robustness. To address this, this solution proposes a technical approach based on Clark transform to construct a multi-harmonic plane current vector trajectory map: by decoupling the five-phase (or multi-phase) current into two orthogonal subspaces, α-β (fundamental wave dominant) and xy (harmonic dominant), and visualizing the dynamic evolution of the current vector within a complete electrical cycle in the form of a trajectory map, this approach not only fully preserves the phase, amplitude, and harmonic distribution characteristics caused by the fault, but also transforms the one-dimensional time-series signal into a two-dimensional image with spatial structure information, naturally adapting to the feature extraction mechanism of convolutional neural networks. Furthermore, normalization is used to eliminate the impact of amplitude fluctuations caused by changes in operating conditions such as motor load and speed, ensuring comparability between samples. Simultaneously, the trajectory map duration is set to be no less than one electrical cycle, sampling must meet the Nyquist criterion, and the resolution must be no less than 64×64 pixels, balancing signal integrity and model input standardization. Finally, by combining dual-label annotation of operating mode and fault type, a clearly structured and semantically explicit image-based fault sample library is constructed, providing high-quality, highly discriminative training data for subsequent multi-branch lightweight CNN models. This method fundamentally solves key problems in traditional diagnostics such as weak feature representation ability, poor adaptability to operating conditions, and insufficient model generalization ability, significantly improving the accuracy and reliability of identifying single switch open-circuit faults under multiple operating conditions.
[0084] In one possible implementation of this application embodiment, the above-mentioned S202 can be specifically implemented by the following S401, S402 and S403, which are described in detail below:
[0085] S401. The feature vector output by the shared feature extraction layer With input working mode information The features are concatenated to obtain the fused feature vector. ;
[0086] ;
[0087] The output branch corresponding to working mode k outputs: ;in, For the working mode label, k=0,1, , The number of fault-tolerant operating modes that are missing one phase. The number of fault-tolerant operating modes with two phases missing. This is the weight matrix of the GAP layer corresponding to working mode k. The bias vector for working mode k;
[0088] It should be noted that the working mode information is a one-dimensional one-hot encoded vector with a length of p1+p2+1; wherein, there is only one element in the encoded vector that is 1, and the rest are all 0, which is used to uniquely identify the working mode of the current sample.
[0089] S402. Calculate the classification loss function under working mode k:
[0090] ;
[0091] in, Let k be the number of samples for working mode k. Let j be the j-th sample element of the mask vector, used to identify whether sample j belongs to working mode k; if yes, then... ;otherwise , Here, r is the indicator function; r is the fault type label in operating mode k. The total number of fault types under operating mode k. The label for the true fault type of sample j;
[0092] S403, Classification Loss Function Based on Working Mode k Through formula The loss function of the CNN model is calculated. .
[0093] For example, the motor type is a five-phase permanent magnet synchronous motor, and the total number of working modes is as follows: normal mode: 1 type, fault-tolerant mode for missing one phase: 5 types (missing A, B, C, D, E), fault-tolerant mode for missing two phases: 10 types (such as missing AB, AC, AD...DE), and the total number of working modes is 16, i.e., k=0,1,...,15;
[0094] The types of faults to be diagnosed in each operating mode: for example, 5 types (corresponding to 5 open circuits of switching transistors), therefore ;
[0095] Suppose that the current training batch contains samples from multiple working modes; some of them belong to the "C-phase missing" mode (let k=3).
[0096] S401: Feature concatenation and branch output;
[0097] Shared feature extraction takes an α-β or xy plane trajectory image (64×64 grayscale image) as input, passes it through a CNN shared layer (convolution + GAP), and outputs a feature vector. Assume d = 128;
[0098] Working mode information encoding: The current sample belongs to "C phase missing" → corresponding working mode label k=3, construct a one-hot vector. , ;
[0099] fused feature vector ;
[0100] Output branch for working mode k=3 .
[0101] S402: Calculate the loss function for working mode k=3;
[0102] Suppose there are 100 samples in the current batch; of which 20 belong to k=3 (i.e., ... For each sample j, check if it belongs to pattern 3; if yes, then... ;otherwise ;
[0103] Assuming sample j=50 belongs to operating mode k=3, its actual fault is "C-phase upper arm open circuit" → Then the loss function for sample j=50 with working mode k+3 is:
[0104] ;
[0105] S403: Calculate the total loss;
[0106] The loss functions corresponding to each working mode are as follows: , , , ... Therefore, the loss function of the CNN model .
[0107] Based on the above technical solutions, in multiphase permanent magnet motor systems, the fault manifestations under different operating modes, such as normal operation, one-phase loss, and two-phase loss, differ significantly. If a unified classification head is used for fault diagnosis, the model cannot simultaneously adapt to the vastly different feature distributions under various operating conditions, leading to a decrease in diagnostic accuracy. On the other hand, training an independent model for each mode would result in parameter redundancy, high training costs, and deployment difficulties. To address this challenge, this solution designs a collaborative training mechanism of "shared features + pattern-aware branch + weighted multi-task loss". First, the common feature vector output from the shared feature extraction layer is concatenated with the working mode encoding to form a fused feature vector, enabling each output branch to utilize common features while also being aware of its current operating state. Second, a masking mechanism ensures that each sample only participates in the loss calculation of the branch corresponding to its working mode, achieving task decoupling and precise supervision. Finally, a total loss function weighted by the number of samples is used to normalize and weight the losses of different modes, effectively mitigating the class imbalance problem caused by the fact that there are far more samples in the normal mode than in the fault-tolerant mode, preventing model training from being dominated by large-sample modes, and thus significantly improving the fault identification capability for rare but critical fault-tolerant operating conditions. This technology achieves high-precision and robust diagnosis under multiple operating conditions while maintaining a lightweight model, solving the core problems faced by traditional methods in multi-mode scenarios, such as poor generalization, model redundancy, and failure of small-sample mode diagnosis. It provides an efficient, scalable, and engineering-practical solution for intelligent fault diagnosis of complex multiphase motor systems.
[0108] The above primarily describes the solutions of the embodiments of this application from the perspective of device implementation. It is understood that each device, for example, a multi-phase permanent magnet motor fault diagnosis device spanning multiple operating modes, includes at least one of the hardware structures and software modules corresponding to each function in order to achieve the above-mentioned functions. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0109] This application embodiment can divide a multi-phase permanent magnet motor fault diagnosis device across operating modes into functional units based on the above method example. For example, each function can be divided into separate functional units, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents a logical functional division; other division methods may be used in actual implementation.
[0110] In the case of using integrated units, Figure 3 shows a possible structural schematic diagram of a multiphase permanent magnet motor fault diagnosis device (denoted as fault diagnosis device 50) involving cross-operating modes involved in the above embodiments. The fault diagnosis device 50 includes a processing unit 501 and a communication unit 502, and may also include a storage unit 503. The structural schematic diagram shown in Figure 3 can be used to illustrate the structure of a multiphase permanent magnet motor fault diagnosis device involving cross-operating modes involved in the above embodiments.
[0111] When the structural schematic diagram shown in Figure 3 is used to illustrate the structure of a multiphase permanent magnet motor fault diagnosis device that operates across multiple modes in the above embodiments, the processing unit 501 is used to control and manage the operation of the multiphase permanent magnet motor fault diagnosis device that operates across multiple modes, the communication unit 502 is used for the multiphase permanent magnet motor fault diagnosis device that operates across multiple modes to communicate with other devices, and the storage unit 503 is used to store the program code and data of the multiphase permanent magnet motor fault diagnosis device that operates across multiple modes.
[0112] For example, communication unit 502 is used to build a sample library of single switch open circuit faults of multiphase permanent magnet motor system in multiple operating modes, and each sample is labeled.
[0113] The processing unit 501 is used to group the labeled samples according to their labels and integrate them into the training dataset of the CNN model; during the training process, it calculates the loss function of the CNN model; based on the loss function, it iteratively optimizes the global parameters of the CNN model through the backpropagation algorithm to complete the training of the CNN model.
[0114] In one possible implementation, the processing unit 501 is further configured to acquire the operating data and current operating mode of the multiphase permanent magnet motor system to be diagnosed, input the operating data and operating mode label into the trained CNN model, and activate the corresponding output branch according to the operating mode label. The output branch outputs the fault type label of a single open circuit of a single switch in the current operating mode.
[0115] The processing unit 501 can be a processor or a controller, and the communication unit 502 can be a communication interface, transceiver, transceiver circuit, transceiver device, etc. The term "communication interface" is a general term and may include one or more interfaces. The storage unit 503 can be a memory. When the fault diagnosis device 50 is a chip, the processing unit 501 can be a processor or a controller, and the communication unit 502 can be an input interface and / or an output interface, pins, or circuits, etc. The storage unit 503 can be a storage unit within the chip (e.g., a register, cache, etc.) or a storage unit located outside the chip (e.g., read-only memory (ROM), random access memory (RAM, etc.).
[0116] The communication unit can also be called a transceiver unit. The antenna and control circuit with transceiver functions in the fault diagnosis device 50 can be considered as the communication unit 502 of the fault diagnosis device 50, and the processor with processing functions can be considered as the processing unit 501 of the fault diagnosis device 50. Optionally, the device in the communication unit 502 that implements the receiving function can be considered as a communication unit, which is used to execute the receiving steps in the embodiments of this application. The communication unit can be a receiver, a receiver circuit, etc. The device in the communication unit 502 that implements the transmitting function can be considered as a transmitting unit, which is used to execute the transmitting steps in the embodiments of this application. The transmitting unit can be a transmitter, a transmitter, a transmitting circuit, etc.
[0117] The integrated unit in Figure 3, if implemented as a software functional module and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods in various embodiments d of this application. Storage media for storing computer software products include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory, random access memory, magnetic disks, or optical disks.
[0118] The units in Figure 3 can also be called modules; for example, a processing unit can be called a processing module.
[0119] This application embodiment also provides a hardware structure diagram of a multiphase permanent magnet motor fault diagnosis device (referred to as fault diagnosis device 60) that spans multiple operating modes. Referring to Figure 4, the fault diagnosis device 60 includes a processor 601, and optionally, it also includes a memory 602 connected to the processor 601.
[0120] In a first possible implementation, referring to Figure 4, the fault diagnosis device 60 further includes a transceiver 603. The processor 601, memory 602, and transceiver 603 are connected via a bus. The transceiver 603 is used to communicate with other devices or communication networks. Optionally, the transceiver 603 may include a transmitter and a receiver. The device in the transceiver 603 that implements the receiving function can be considered as a receiver, which is used to perform the receiving steps in the embodiments of this application. The device in the transceiver 603 that implements the transmitting function can be considered as a transmitter, which is used to perform the transmitting steps in the embodiments of this application.
[0121] Based on the first possible implementation, the structural diagram shown in Figure 4 can be used to illustrate the structure of a multiphase permanent magnet motor fault diagnosis device that operates across multiple modes as described in the above embodiments.
[0122] Figure 4 can also illustrate a system chip in a multiphase permanent magnet motor fault diagnosis device that operates across multiple modes. In this case, the actions performed by the aforementioned multiphase permanent magnet motor fault diagnosis device can be implemented by this system chip. The specific actions performed can be found above and will not be repeated here.
[0123] Some of the data in the above formula are calculated by removing dimensions and taking their numerical values. The formula is the closest to the real situation obtained by software simulation of a large amount of collected data. The preset parameters and preset thresholds in the formula are set by those skilled in the art according to the actual situation or obtained through simulation of a large amount of data.
Claims
1. A fault diagnosis method for a multiphase permanent magnet motor operating across multiple modes, characterized in that, include: A sample library of single switch open-circuit faults of multiphase permanent magnet motor systems under various operating modes is constructed, and each sample is labeled; the labels include fault type labels and operating mode labels. The samples are grouped according to labels and integrated into a training dataset for the CNN model. The CNN model is then trained, and its loss function is calculated. Based on the loss function, the global parameters of the CNN model are iteratively optimized using the backpropagation algorithm to complete the CNN model training. The CNN model includes a shared feature extraction layer and multiple output branches corresponding to different operating modes. Each output branch is used to classify various fault types under different operating modes. The operating data and current operating mode of the multiphase permanent magnet motor system to be diagnosed are acquired. The operating data and operating mode labels are input into the trained CNN model. The CNN model activates the corresponding output branch according to the operating mode label, and the output branch outputs the fault type label for a single open-circuit switch under the current operating mode. The calculation of the CNN model's loss function includes: processing the feature vector output by the shared feature extraction layer... With input working mode information The features are concatenated to obtain the fused feature vector. ; The output branch corresponding to working mode k outputs: ;in, For work mode tags, , The number of fault-tolerant operating modes that are missing one phase. The number of fault-tolerant operating modes with two phases missing. This is the weight matrix of the GAP layer corresponding to working mode k. Let k be the bias vector for working mode k; calculate the classification loss function for working mode k: ;in, Let k be the number of samples for working mode k. Let j be the j-th sample element of the mask vector, used to identify whether sample j belongs to working mode k; if yes, then... ;otherwise , Here, r is the indicator function; r is the fault type label in operating mode k. The total number of fault types under operating mode k. The true fault type label for sample j; the classification loss function based on working mode k. Through formula The loss function of the CNN model is calculated. 。 2. The method for fault diagnosis of a multiphase permanent magnet motor across operating modes according to claim 1, characterized in that, The working modes include one normal operating mode. A fault-tolerant working mode with one missing phase and Two-phase fault-tolerant operating modes are missing; the normal operating mode is labeled as operating mode 0; the... The fault-tolerant working mode with one missing phase is tagged as working mode. , , It is a positive integer; The fault-tolerant operating modes for missing two phases include two categories: missing two adjacent phases and missing two non-adjacent phases. Operating mode tags. , , is a positive integer; where each working mode corresponds to a system operating state under a single-phase open-circuit fault.
3. The method for fault diagnosis of a multiphase permanent magnet motor across operating modes according to claim 1, characterized in that, The construction of the single-switch open-circuit fault sample library for a multiphase permanent magnet motor system under various operating modes includes: obtaining several multiphase current data for each operating mode from historical data, and converting the multiphase current under each operating mode into α-β subspace current components i using Clark transformation. α i β and the current components in the xy subspace i x and i y ;change i α i β i x and i y Perform normalization, and use i α The horizontal axis, i β Using i as the vertical axis, we construct the multi-harmonic plane current vector trajectory diagram of the α-β subspace, and... x The horizontal axis, i y Using the xy subspace as the vertical axis, a multi-harmonic plane current vector trajectory diagram is constructed; each multi-harmonic plane current vector trajectory diagram is used as sample data, and each sample data is labeled with an operating mode label and a fault type label; based on all labeled sample data, a sample library of single switch open circuit faults of multiphase permanent magnet motor system is constructed.
4. The method for fault diagnosis of a multiphase permanent magnet motor across operating modes according to claim 3, characterized in that, The time length of the multi-harmonic plane current vector trajectory diagram is not less than one complete electrical cycle, and the sampling frequency satisfies the Nyquist sampling theorem.
5. The method for fault diagnosis of a multiphase permanent magnet motor across operating modes according to claim 1, characterized in that, The shared feature extraction layer is used to extract common features from the input data. The shared feature extraction layer includes an input layer, a convolutional layer, and a pooling layer. Each output branch corresponds to a specific working mode and is used to perform fault classification tasks under each working mode. The output branch includes at least one fully connected layer, a global average pooling layer, or an output layer.
6. The method for fault diagnosis of a multiphase permanent magnet motor across operating modes according to claim 1, characterized in that, The number of output branches is equal to the total number of operating modes of the multiphase permanent magnet motor system to be diagnosed, and the structure of each output branch can be adjusted according to the characteristics of its corresponding operating mode.
7. The method for fault diagnosis of a multiphase permanent magnet motor across operating modes according to claim 1, characterized in that, The working mode information is a one-dimensional one-hot encoded vector with a length of p1+p2+1; wherein, there is only one element in the encoded vector that is 1, and the rest are all 0, which is used to uniquely identify the working mode of the current sample.
8. The method for fault diagnosis of a multiphase permanent magnet motor across operating modes according to claim 1, characterized in that, The CNN model also includes lightweight processing: replacing fully connected layers with global average pooling layers to reduce the dimensionality of feature maps. , ;in, For the first The output of the global average pooling layer for each channel The number of eigenvalues for each channel, where f is the eigenvalue index. For the first The f-th feature value of each channel.
9. A fault diagnosis system for a multiphase permanent magnet motor operating across operating modes, based on the fault diagnosis method for a multiphase permanent magnet motor operating across operating modes according to any one of claims 1-8, characterized in that, It includes a model training module, as well as a construction module and a diagnostic module connected to it; the construction module is used to build a sample library of single switch open circuit faults of multiphase permanent magnet motor system in various working modes, and each sample is labeled; the model training module is used to group the labeled samples according to the labels and integrate them into the training dataset of CNN model. During training, the loss function of the CNN model is calculated; based on the loss function, the global parameters of the CNN model are iteratively optimized through the backpropagation algorithm to complete the training of the CNN model; the diagnostic module is used to obtain the operating data and current working mode of the multiphase permanent magnet motor system to be diagnosed, input the operating data and working mode label into the trained CNN model, the CNN model activates the corresponding output branch according to the working mode label, and the output branch outputs the fault type label of a single switch open circuit in the current working mode.
Citation Information
Patent Citations
Mechanical equipment fault diagnosis method and device and storage medium
CN114925724A
Lightweight fault diagnosis method for multi-phase permanent magnet motor system in multiple working modes
CN120085220A