Motor production line defect detection and diagnosis method and device and storage medium

By constructing a motor vibration detection and diagnosis model based on Transformer Encoder, the problem of insufficient motor vibration fault diagnosis accuracy and real-time performance in the existing technology is solved, more efficient and accurate motor vibration detection is achieved, and the quality control of the motor manufacturing production line is improved.

CN118730282APending Publication Date: 2024-10-01山东浪潮智能生产技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410994627.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology has low diagnosis accuracy and poor real-time performance in motor vibration fault diagnosis, and the Transformer model has limitations in processing vibration signals in complex industrial production processes, making it difficult to capture the complex relationships in motor vibration signals.

Method used

Construct a motor vibration detection and diagnosis model based on Transformer Encoder. By stacking three layers of Transformer Encoder modules, add a self-attention mechanism and a feedforward neural network, introduce residual connections, and combine fully connected layer networks and random deactivation networks to build feature extraction. module to improve diagnostic accuracy.

Benefits of technology

It achieves more efficient and accurate diagnosis of qualified products in motor vibration detection, improves the quality control level of the motor manufacturing production line, and can effectively distinguish qualified products from unqualified products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730282A_ABST
    Figure CN118730282A_ABST
Patent Text Reader

Abstract

The invention relates to a motor production line defect detection and diagnosis method and device and a storage medium. The method comprises the following steps: constructing a motor vibration detection data set; constructing a motor vibration detection diagnosis model; training the vibration detection diagnosis model by using the motor vibration detection data set; acquiring a motor vibration signal on the motor production line; and inputting the motor vibration signal into the vibration detection and diagnosis model and outputting a detection and diagnosis result. According to the motor production line defect detection and diagnosis method and device and the storage medium provided by the invention, the motor quality can be diagnosed more efficiently and accurately, and the quality control level of a motor manufacturing production line is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor defect detection and diagnosis, and in particular to a motor production line defect detection and diagnosis method, device and storage medium. Background Art

[0002] With the continuous development of modern industry, technology, and economy, the motor manufacturing industry has become an important standard for measuring a country's manufacturing level. In the motor manufacturing production line, the motor is the core output product, and its quality is directly related to the efficiency and reputation of the entire production line. The motor needs to go through multiple processes during the manufacturing process, and vibration detection is an important link to ensure the quality of the motor. Initially manufactured motors usually have good performance, but in complex production environments and constantly changing process conditions, some motors may experience abnormal vibration, resulting in a decline in performance or even becoming unqualified products.

[0003] Effective management and maintenance of motor manufacturing production lines are basic requirements for ensuring product quality. Timely detection and diagnosis of motor vibration problems can significantly reduce defective products on the production line and avoid potential economic losses and reputation risks. Therefore, the demand for motor vibration detection and qualified product diagnosis and analysis technology is becoming increasingly urgent, which is of great significance for improving production efficiency, ensuring product quality and reducing manufacturing costs.

[0004] At present, motor vibration fault diagnosis mainly relies on traditional methods such as vibration testers and spectrum analysis. Although these methods can realize the diagnosis of motor faults to a certain extent, they have problems such as low diagnostic accuracy and poor real-time performance. With the continuous development of deep learning technology, fault diagnosis methods based on convolutional neural networks and recurrent neural networks have been applied to a certain extent, but they still have certain limitations in vibration detection of motor manufacturing production lines. Recurrent neural networks may encounter long-term dependency problems when processing long sequence data, while convolutional neural networks need to obtain global information by stacking multiple convolutional layers, which may increase the amount of calculation and make it difficult to capture the complex relationship in the motor vibration signal.

[0005] The application of Transformer models in the field of motor vibration testing is still in its infancy. Most of the models mentioned are not pure Transformer models. Patent CN202210072731.1 also introduces a Transformer-based model combined with a recursive model of the attention layer for mechanical equipment fault diagnosis. In the vibration test of the motor production line, the testing process faces many challenges because multiple factors must be considered as input variables to predict and analyze vibration characteristics. In order to meet these challenges, patent CN202211494298.7 proposed a model combining deformable convolution and Transformer for rolling bearing fault diagnosis, which achieved remarkable results. In addition, patent CN202210827340.6 also introduced a Transformer-based model to effectively avoid the problem of long-term memory loss of recurrent neural networks to achieve long-term prediction of the health status of the equipment. Patent CN202311042804.3 proposes a fault detection method based on feature extraction and Transformer model, which effectively solves the linear and nonlinear relationships existing in complex industrial production processes, as well as the local information loss and slow convergence speed of the Transformer model. However, the above method still has shortcomings, so a more efficient and accurate motor vibration detection qualified product diagnosis and analysis method is needed to overcome the shortcomings of the existing technology. Summary of the invention

[0006] In view of this, the present invention provides a method, device and storage medium for detecting and diagnosing defects in a motor production line.

[0007] Specifically, the present invention is achieved through the following technical solutions:

[0008] According to a first aspect of the present invention, a method for detecting and diagnosing defects in a motor production line is provided, the method comprising the steps of:

[0009] Construct a motor vibration detection dataset;

[0010] Construct a motor vibration detection and diagnosis model;

[0011] Using the motor vibration detection data set to train the vibration detection diagnostic model;

[0012] Obtain motor vibration signals on the motor production line;

[0013] The motor vibration signal is input into the vibration detection and diagnosis model and a detection and diagnosis result is output.

[0014] Optionally, the step of constructing a motor vibration detection data set comprises the following steps:

[0015] Obtain qualified products from vibration testing on the motor production line;

[0016] Acquire a first vibration signal of the vibration test qualified product;

[0017] Obtain unqualified products in vibration test on motor production line;

[0018] Acquire a second vibration signal of the vibration detection unqualified product;

[0019] The first vibration signal and the second vibration signal are aggregated to obtain a motor vibration detection data set.

[0020] Optionally, the step of constructing a motor vibration detection and diagnosis model comprises the following steps:

[0021] Build feature extraction module;

[0022] Get the fully connected layer network, random dropout network and classifier;

[0023] A motor vibration detection and diagnosis model is built using the feature extraction module, the fully connected layer network, the random inactivation network and the classifier.

[0024] Optionally, the building of the feature extraction module comprises the steps of:

[0025] The Encoder module of the stacked Transformer model;

[0026] Adding a residual connection to the Encoder module;

[0027] Details of implementing the residual connection;

[0028] The features of the Encoder module are integrated.

[0029] Optionally, the Encoder module of the stacked Transformer model comprises the steps of:

[0030] Stack three layers of Transformer Encoder modules;

[0031] Add self-attention mechanism and feed-forward neural network to each layer of Encoder module;

[0032] The original vibration signal of the motor or the output of the previous Encoder module is used as the input of each Encoder module in the next layer.

[0033] Optionally, adding a residual connection to the Encoder module comprises the steps of:

[0034] Introduce residual connections between each layer of Encoder modules;

[0035] The output of the previous layer of Encoder modules is used as the input of each layer of Encoder modules in the next layer.

[0036] Optionally, the details of implementing the residual connection include the steps of:

[0037] Get the current vibration signal of the motor and the output of the previous Encoder module;

[0038] Concatenate the current vibration signal of the motor and the output of the previous Encoder module to form a feature set;

[0039] The feature set is input into each Encoder module of the next layer.

[0040] Optionally, the integration of the features of the Encoder module comprises the steps of:

[0041] Get the output of the Encoder module in the last layer;

[0042] Performing dimensionality reduction on the output using a first pooling operation;

[0043] The outputs are fused using a second pooling operation.

[0044] According to a second aspect of the present invention, there is provided a motor production line defect detection and diagnosis device, comprising:

[0045] A data set construction module is used to construct a motor vibration detection data set;

[0046] A diagnostic model building module is used to build a motor vibration detection diagnostic model;

[0047] A diagnostic model training module, used for training the vibration detection diagnostic model using the motor vibration detection data set;

[0048] A signal acquisition module is used to acquire the motor vibration signal on the motor production line;

[0049] The diagnosis result output module is used to input the motor vibration signal into the vibration detection diagnosis model and output the detection diagnosis result.

[0050] According to a third aspect of the present invention, there is provided a storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps of any one of the aforementioned methods.

[0051] The technical solution provided by the present invention brings at least the following beneficial effects:

[0052] The present application provides a motor production line defect detection and diagnosis method, device and storage medium that can more efficiently and accurately diagnose motor quality and improve the quality control level of the motor manufacturing production line. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0055] Figure 1 A schematic diagram of a flow chart of a method for detecting and diagnosing defects in a motor production line provided by an embodiment of the present invention;

[0056] Figure 2 A schematic diagram of the structure of a motor production line defect detection and diagnosis device provided by an embodiment of the present invention;

[0057] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;

[0058] Figure 4 A schematic diagram of the structure of a storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Figure 1 A flow chart of a motor production line defect detection and diagnosis method applicable to an embodiment of the present invention is schematically shown.

[0061] See also Figure 1 The embodiment of the present invention provides a method for detecting and diagnosing defects in a motor production line. The method can be applied to electronic devices such as PCs, servers, terminals, etc. The method may include the following steps:

[0062] S1: Construct motor vibration detection dataset;

[0063] Exemplarily, the step of constructing a motor vibration detection data set includes the following steps:

[0064] Obtain qualified products from vibration testing on the motor production line;

[0065] Acquire a first vibration signal of the vibration test qualified product;

[0066] Obtain unqualified products in vibration test on motor production line;

[0067] Acquire a second vibration signal of the vibration detection unqualified product;

[0068] The first vibration signal and the second vibration signal are aggregated to obtain a motor vibration detection data set.

[0069] In an embodiment of the present application, vibration signals of qualified and unqualified products detected on multiple motor manufacturing production lines are obtained as a data set.

[0070] S2: Construct motor vibration detection and diagnosis model;

[0071] Exemplarily, the step of constructing a motor vibration detection and diagnosis model includes the following steps:

[0072] Build feature extraction module;

[0073] Get the fully connected layer network, random dropout network and classifier;

[0074] A motor vibration detection and diagnosis model is built using the feature extraction module, the fully connected layer network, the random inactivation network and the classifier.

[0075] In an embodiment of the present application, the Encoder module of the Transformer model is used to build a feature extraction module, which is specifically used to capture key features in the motor vibration signal; a motor vibration detection and diagnosis model is built by combining the feature extraction module, a fully connected layer network, a two-layer random inactivation network and an appropriate classifier. Through these steps, a vibration signal fault detection model based on the Transformer Encoder can be constructed to extract and analyze fault features in vibration signals and improve the accuracy and efficiency of fault detection. In this way, the model can integrate the features extracted by each layer of the Encoder module to improve the accuracy of vibration detection qualified product diagnosis.

[0076] Exemplarily, the step of building a feature extraction module includes the following steps:

[0077] The Encoder module of the stacked Transformer model;

[0078] Adding a residual connection to the Encoder module;

[0079] Details of implementing the residual connection;

[0080] The features of the Encoder module are integrated.

[0081] In the embodiment of the present application, the Transformer Encoder modules are stacked, residual connections are added to the Encoder modules, the details of the residual connections are implemented, and then the features of the Encoder modules are fused.

[0082] Exemplarily, the Encoder module of the stacked Transformer model includes the steps of:

[0083] Stack three layers of Transformer Encoder modules;

[0084] Add self-attention mechanism and feed-forward neural network to each layer of Encoder module;

[0085] The original vibration signal of the motor or the output of the previous Encoder module is used as the input of each Encoder module in the next layer.

[0086] In the embodiment of the present application, three layers of Transformer Encoder modules are stacked, and each layer of Encoder modules includes a self-attention mechanism and a feedforward neural network to extract deep features in the vibration signal. The input of each layer of Encoder modules can be the original vibration signal or the output of the previous layer of Encoder modules.

[0087] Exemplarily, the adding of a residual connection to the Encoder module comprises the steps of:

[0088] Introduce residual connections between each layer of Encoder modules;

[0089] The output of the previous layer of Encoder modules is used as the input of each layer of Encoder modules in the next layer.

[0090] In the embodiment of the present application, a Dense connection (also called a residual connection or a skip connection) is introduced between each layer of Encoder modules. This connection allows the output from the previous layer to be directly passed to the subsequent layer, which helps to retain the original input information and prevent the gradient from disappearing.

[0091] Exemplarily, the details of implementing the residual connection include the steps of:

[0092] Get the current vibration signal of the motor and the output of the previous Encoder module;

[0093] Concatenate the current vibration signal of the motor and the output of the previous Encoder module to form a feature set;

[0094] The feature set is input into each Encoder module of the next layer.

[0095] In the embodiment of the present application, for the Encoder module of the mth layer, its input includes not only the current vibration signal segment, but also the output of the Encoder module of the previous m-1 layers. A feature concatenation function (such as concatenate) is used to splice these inputs together to form a richer feature set. The spliced ​​feature set is used as the input of the Encoder module of the mth layer, and after being processed by the self-attention mechanism and the feedforward neural network, the output of this layer is obtained.

[0096] Exemplarily, the integration of the features of the Encoder module includes the steps of:

[0097] Get the output of the Encoder module in the last layer;

[0098] Performing dimensionality reduction on the output using a first pooling operation;

[0099] The outputs are fused using a second pooling operation.

[0100] In the embodiment of the present application, the output of the last layer of Encoder module contains feature information extracted by the multi-layer network, which needs to be fused for abnormal motor detection. Pooling operations (such as average pooling or maximum pooling) can be used to reduce the dimension and fuse the output of the last layer of Encoder. The output of the last layer of Encoder can also be directly used as a feature vector for subsequent classification or regression tasks.

[0101] S3: Using the motor vibration detection data set to train the vibration detection diagnosis model;

[0102] In an embodiment of the present application, the motor vibration signal in the data set is used to train the diagnostic model so that the model can distinguish between qualified products and unqualified products.

[0103] S4: Acquire the motor vibration signal on the motor production line;

[0104] In an embodiment of the present application, a signal acquisition device is used to acquire motor vibration signals on a motor production line.

[0105] S5: Input the motor vibration signal into the vibration detection and diagnosis model and output the detection and diagnosis result.

[0106] In an embodiment of the present application, the vibration signal of the motor on the production line is input into the trained diagnostic model in real time to obtain the classification result of the motor, and it is determined whether the motor is a qualified product in vibration detection based on the classification result.

[0107] A motor production line defect detection and diagnosis method according to an embodiment of the present invention comprises the following steps:

[0108] A1: Obtain vibration signals of qualified and unqualified products from vibration test on multiple motor manufacturing production lines as a data set;

[0109] A2: Use Transformer Encoder to build a feature extraction network specifically for capturing key features in motor vibration signals;

[0110] A3: Combine the feature extraction module, the fully connected layer network, the two-layer Dropout network and the appropriate classifier to build a vibration detection qualified product diagnosis model;

[0111] A4: Use the motor vibration signals in the data set to train the diagnostic model so that the model can distinguish between qualified and unqualified products;

[0112] A5: Input the motor vibration signal on the production line into the trained diagnostic model in real time to obtain the classification result of the motor, and determine whether the motor is a qualified product in vibration detection based on the classification result.

[0113] B: The steps to build a 3-layer stacked feature extraction module using Transformer Encoder are:

[0114] B1: Stacked Transformer Encoder:

[0115] B11: Stacked three layers of Transformer Encoder modules. Each layer of Encoder contains a self-attention mechanism and a feedforward neural network to extract deep features from vibration signals.

[0116] B12: The input of each layer of Encoder can be the original vibration signal or the output of the previous layer of Encoder.

[0117] B2: Add Dense connection:

[0118] B21: Introduce Dense connections (also called residual connections or skip connections) between each layer of Encoder modules.

[0119] B22: This connection allows the output from the previous layer to be passed directly to the later layer, helping to preserve the original input information and prevent gradient disappearance.

[0120] B3: Details of implementing Dense connection:

[0121] B31: For the Encoder module of the mth layer, its input includes not only the current vibration signal segment, but also the output of the previous m-1 layer Encoder.

[0122] B32: Use a feature concatenation function (such as concatenate) to concatenate these inputs together to form a richer set of features.

[0123] The concatenated feature set is used as the input of the m-th layer Encoder, and after being processed by the self-attention mechanism and feedforward neural network, the output of this layer is obtained.

[0124] B4: Feature Fusion:

[0125] B41: The output of the last layer of Encoder contains the feature information extracted by the multi-layer network, which needs to be fused for abnormal motor detection.

[0126] B42: Pooling operations (such as average pooling or maximum pooling) can be used to reduce the dimension and fuse the output of the last layer of Encoder.

[0127] B43: You can also directly use the output of the last layer of Encoder as a feature vector for subsequent classification or regression tasks.

[0128] C: The steps to build the Encoder module include:

[0129] C1: Construct Multi-HeadAttention. Multi-HeadAttention is composed of multiple Self-Attentions.

[0130] C11: Calculating Self-Attention

[0131] Use the following formula to calculate Self-Attention:

[0132]

[0133] Among them, Q is the Query vector, K is the Key vector, and V is the Value vector; K T is the transpose of the K vector; d k It is a scaling factor used to prevent the dot product result from being too large, causing the softmax function to enter the gradient saturation region.

[0134] C12: Constructing multiple Self-Attention heads

[0135] Perform linear transformation on the input Q, K, V to obtain the Q of each head i , Ki 、V i :

[0136]

[0137] Among them, Q i , K i 、V i They are the weight matrices of Query, Key, and Value respectively.

[0138] C2: Stacked sublayers

[0139] C21: Stack Multi-Head Attention and Feed Forward Network (FFN) as sublayers.

[0140] C22: Add residual connections and layer normalization between stacked sublayers to improve information flow and model training stability.

[0141] D: The steps of building a vibration detection qualified product diagnosis model for a motor manufacturing production line using a feature extraction module, an embedding layer, a two-layer attention network, and a multi-layer MLPs network include:

[0142] D1: Embedding stage: The input vibration signal is converted into an embedding vector that the model can process through an embedding layer (such as position embedding or time embedding).

[0143] D2: Attention stage: Use the self-attention mechanism in Transformer Encoder as the second layer network to perform attention weighting on the embedding vector to capture the key information in the vibration signal.

[0144] D3: Feature extraction module (based on Transformer Encoder): As the third layer of the network, it continues to use the deep structure of Transformer Encoder to extract high-level features from vibration signals.

[0145] D4: MLPs stage: Multi-layer perceptrons (MLPs) are used as the fourth layer of the network to further process the features output by the feature extraction module and provide a certain regularization effect (similar to the role of Dropout).

[0146] D5: attention stage (used again): As the fifth layer of the network, the self-attention mechanism is applied again to weight the features output by the MLPs stage to capture the dependencies between features.

[0147] D6: Fully connected layer network: As the sixth layer of the network, the fully connected layer is used to map the features obtained in the previous step to the final classification space to achieve the classification of qualified products in the vibration detection of the motor manufacturing production line.

[0148] D7: The number of rows and columns of the sample matrix is ​​determined by the number of channels and feature length of the first layer of the neural network.

[0149] E: Use the vibration signal dataset of the motor manufacturing production line to train the diagnostic model:

[0150] E1: Data preprocessing: Perform necessary preprocessing on vibration signals, such as denoising and standardization.

[0151] E2: Embedding stage: The preprocessed vibration signal is converted into an embedding vector through the embedding layer.

[0152] E3: Generate a sample matrix through the attention stage: Input the embedding vector into the attention stage to generate a sample matrix containing key information.

[0153] E4: Feature extraction: Use the feature extraction module to extract features from the sample matrix.

[0154] E5: MLPs stage processing: The features output by the feature extraction module are input into the MLPs stage for further processing.

[0155] E6: Feature fusion in the second attention stage: The features output by the MLPs stage are fused again through the attention stage to capture the dependencies between features.

[0156] E7: Fully connected layer classification: The fused features are input into the fully connected layer network to achieve the classification of qualified products in vibration detection of motor manufacturing production line.

[0157] E8: Model training and optimization: Use appropriate loss functions and optimizers to train the model, and update the model parameters through the back-propagation algorithm to improve the accuracy and generalization ability of the diagnostic model.

[0158] F: Model training and evaluation:

[0159] F1: The model is trained using a vibration signal dataset with fault labels.

[0160] F2: Optimize model performance through cross-validation, adjusting hyperparameters, etc.

[0161] F3: Use the test dataset to evaluate the fault detection accuracy and generalization ability of the model.

[0162] G: Interpretation and application of results:

[0163] G1: Analyze the model’s performance in fault detection tasks and understand how it extracts and identifies fault features in vibration signals.

[0164] In the embodiment of the present application, the number of rows and columns of the sample matrix will be determined by the setting of the embedding layer and the characteristics of the vibration signal. In practical applications, it may be necessary to adjust the hyperparameters of the model, such as the size of the embedding layer, the number of layers of the TransformerEncoder, the number of layers of the MLPs and the number of neurons, etc., to obtain the best performance.

[0165] like Figure 2 The present application provides a motor production line defect detection and diagnosis device, comprising:

[0166] A data set construction module 10 is used to construct a motor vibration detection data set;

[0167] A diagnostic model building module 20, used to build a motor vibration detection diagnostic model;

[0168] A diagnostic model training module 30, configured to train the vibration detection diagnostic model using the motor vibration detection data set;

[0169] A signal acquisition module 40 is used to acquire a motor vibration signal on a motor production line;

[0170] The diagnosis result output module 50 is used to input the motor vibration signal into the vibration detection diagnosis model and output the detection diagnosis result.

[0171] A motor production line defect detection and diagnosis device provided in the present application can execute a motor production line defect detection and diagnosis method provided in the above steps.

[0172] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.

[0173] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 100 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0174] like Figure 3 As shown, the electronic device 100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 102 or a program loaded from a storage device 108 to a random access memory (RAM) 103. In the RAM 103, various programs and data required for the operation of the electronic device 100 are also stored. The processing device 101, the ROM 102, and the RAM 103 are connected to each other via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.

[0175] Typically, the following devices may be connected to the I / O interface 105: an input device 106 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 109. The communication device 109 may allow the electronic device 100 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 100 having various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.

[0176] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 109, or installed from the storage device 108, or installed from the ROM 102. When the computer program is executed by the processing device 101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0177] Reference below Figure 4 , which shows a structural schematic diagram of a computer-readable storage medium suitable for implementing an embodiment of the present disclosure, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it can implement a motor production line defect detection and diagnosis method as described in any of the above.

[0178] The present application also provides a computer program product, which includes a computer program / computer executable instructions, and when the computer program / computer executable instructions are executed by a processor of an electronic device, the steps of any of the above-mentioned motor production line defect detection and diagnosis methods are implemented.

[0179] The present application provides a motor production line defect detection and diagnosis method, device and storage medium that can more efficiently and accurately diagnose motor quality and improve the quality control level of the motor manufacturing production line.

[0180] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0181] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for detecting and diagnosing defects in a motor production line, characterized in that: The method comprises the steps of: Construct a motor vibration detection dataset; Construct a motor vibration detection and diagnosis model; Using the motor vibration detection data set to train the vibration detection diagnostic model; Obtain motor vibration signals on the motor production line; The motor vibration signal is input into the vibration detection and diagnosis model and a detection and diagnosis result is output.

2. The motor production line defect detection and diagnosis method according to claim 1, characterized in that: The construction of the motor vibration detection data set comprises the steps of: Obtain qualified products from vibration testing on the motor production line; Acquire a first vibration signal of the vibration test qualified product; Obtain unqualified products in vibration test on motor production line; Acquire a second vibration signal of the vibration detection unqualified product; The first vibration signal and the second vibration signal are aggregated to obtain a motor vibration detection data set.

3. The motor production line defect detection and diagnosis method according to claim 1, characterized in that: The construction of the motor vibration detection diagnosis model comprises the following steps: Build feature extraction module; Get the fully connected layer network, random dropout network and classifier; A motor vibration detection and diagnosis model is built using the feature extraction module, the fully connected layer network, the random inactivation network and the classifier.

4. The motor production line defect detection and diagnosis method according to claim 3, characterized in that: The construction of the feature extraction module comprises the steps of: The Encoder module of the stacked Transformer model; Adding a residual connection to the Encoder module; Details of implementing the residual connection; The features of the Encoder module are integrated.

5. The motor production line defect detection and diagnosis method according to claim 4, characterized in that: The Encoder module of the stacked Transformer model includes the following steps: Stack three layers of Transformer Encoder modules; Add self-attention mechanism and feed-forward neural network to each layer of Encoder module; The original vibration signal of the motor or the output of the previous Encoder module is used as the input of each Encoder module in the next layer.

6. The motor production line defect detection and diagnosis method according to claim 4, characterized in that: Adding a residual connection to the Encoder module includes the following steps: Introduce residual connections between each layer of Encoder modules; The output of the previous layer of Encoder modules is used as the input of each layer of Encoder modules in the next layer.

7. The motor production line defect detection and diagnosis method according to claim 4, characterized in that: The details of implementing the residual connection include the steps of: Get the current vibration signal of the motor and the output of the previous Encoder module; Concatenate the current vibration signal of the motor and the output of the previous Encoder module to form a feature set; The feature set is input into each Encoder module of the next layer.

8. The motor production line defect detection and diagnosis method according to claim 4, characterized in that: The fusion of the features of the Encoder module comprises the steps of: Get the output of the Encoder module in the last layer; Performing dimensionality reduction on the output using a first pooling operation; The outputs are fused using a second pooling operation.

9. A motor production line defect detection and diagnosis device, characterized in that: include: A data set construction module is used to construct a motor vibration detection data set; A diagnostic model building module is used to build a motor vibration detection diagnostic model; A diagnostic model training module, used for training the vibration detection diagnostic model using the motor vibration detection data set; A signal acquisition module is used to acquire the motor vibration signal on the motor production line; The diagnosis result output module is used to input the motor vibration signal into the vibration detection diagnosis model and output the detection diagnosis result.

10. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.