Fault diagnosis method and device for permanent magnet synchronous motor used in mines
By analyzing the inflection points and fitting curves of the current data and optimizing the convolution layer parameters, the problem of inappropriate parameter settings of the convolutional neural network in fault diagnosis of mining permanent magnet synchronous motors was solved, and the accuracy and reliability of diagnosis were improved.
Patent Information
- Application Number
- CN202410797109.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-20
AI Technical Summary
The existing convolutional neural network's convolutional layer parameter settings are inappropriate for fault diagnosis of mining permanent magnet synchronous motors, resulting in increased training difficulty and reduced reliability of diagnosis results.
By obtaining the inflection point and fitting curve of current data, the fluctuation characteristics are analyzed to determine the appropriate convolution kernel and correction weight, the convolution layer parameters are optimized, and the neural network is trained to improve diagnostic accuracy.
It improves the convergence rate of the neural network and the understanding of the working status of the motor, and achieves accurate and reliable fault diagnosis of mining permanent magnet synchronous motors.
Smart Images

Figure CN118364415B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electrical fault detection, and in particular to a fault diagnosis method and device for a permanent magnet synchronous motor for mining. Background Art
[0002] Mining permanent magnet synchronous motors may cause serious hazards such as equipment damage, system damage, and massive energy waste in the event of a short circuit or short circuit. By monitoring the current of the motor and detecting whether there are circuit faults such as short circuits and open circuits, it is an important means to ensure the safe operation of the motor, optimize energy utilization, and improve production efficiency, which helps to improve the reliability, safety, and economy of the motor.
[0003] In the prior art, a convolutional neural network (CNN) has been used to monitor the current of a permanent magnet synchronous motor for mining in real time. However, the setting of the convolutional layer parameters affects the performance of the neural network model and also affects the accuracy of the neural network model in diagnosing faults of permanent magnet synchronous motors for mining in practical applications. Inappropriate setting of the convolutional layer parameters will increase the difficulty of training the neural network model and reduce the reliability of the fault diagnosis results of permanent magnet synchronous motors for mining. Summary of the invention
[0004] In order to solve the technical problem that the convolution layer parameters of the existing neural network are not properly set during the training process, which affects the fault diagnosis of the permanent magnet synchronous motor for mining, the purpose of the present invention is to provide a fault diagnosis method and device for the permanent magnet synchronous motor for mining. The technical scheme adopted is as follows:
[0005] A fault diagnosis method for a permanent magnet synchronous motor for mining, the method comprising:
[0006] Obtain a training set consisting of historical current data of a permanent magnet synchronous motor for mining; use any historical current data in the training set as target current data; the historical current data in the training set all contain current data of an acceleration process of the permanent magnet synchronous motor for mining;
[0007] According to the fluctuation characteristics of the target current data, obtaining the inflection point data point of the target current data; and obtaining the fitting curve of the target current data based on the inflection point data point;
[0008] According to the difference characteristics between the data points on the target current data and the corresponding fitting curve, combined with the preset convolution size parameters, a convolution kernel is obtained; in the process of the convolution kernel traversing the data points on the target current data, according to the difference characteristics between the current data contained in each convolved area and the corresponding fitting curve, a convolution correction weight of each convolved area is obtained; based on the convolution correction weight and the convolution kernel, the historical current data in the training set is used to train the neural network, and a trained neural network is obtained in combination with a preset verification set;
[0009] The real-time current data of the permanent magnet synchronous motor for mining collected in real time is input into the trained neural network to perform fault diagnosis on the permanent magnet synchronous motor for mining.
[0010] Furthermore, the method for obtaining the inflection point data point includes:
[0011] The inflection point data points of the target current data include a first inflection point and a second inflection point; the current of the first inflection point is greater than that of the second inflection point;
[0012] Obtaining the first inflection point possibility of each data point in the target current data according to the stationary characteristics of the current data on the left side and the stationary characteristics of the current data on the right side of each data point;
[0013] According to the violent fluctuation characteristics of the current data on the left side of each data point and the stable characteristics of the current data on the right side, the possibility of the second inflection point of each data point in the target current data is obtained;
[0014] The data point with the highest probability of being the first inflection point is taken as the first inflection point; the data point with the highest probability of being the second inflection point is taken as the second inflection point.
[0015] Furthermore, the method for obtaining the possibility of the first inflection point includes:
[0016] Select any maximum point as the first inflection point candidate;
[0017] According to the difference between the first inflection point candidate point and the connection angle of the current data in the first neighborhood preset on the left, a first left fluctuation parameter is obtained; according to the difference between the first inflection point candidate point and the connection angle of the current data in the first neighborhood preset on the right, a first right fluctuation parameter is obtained;
[0018] According to the first left fluctuation parameter and the first right fluctuation parameter of each of the first inflection point candidate points, the first inflection point possibility of each of the first inflection point candidate points is obtained; the first left fluctuation parameter and the first right fluctuation parameter are both negatively correlated with the first inflection point possibility.
[0019] Furthermore, the method for obtaining the possibility of the second inflection point includes:
[0020] Select any minimum point as the candidate for the second inflection point;
[0021] According to the difference characteristics between each current data and the second inflection point candidate point in the first neighborhood preset on the left side of the second inflection point candidate point, a second left fluctuation parameter is obtained; according to the similarity characteristics between each current data and the second inflection point candidate point in the first neighborhood preset on the right side of the second inflection point candidate point, a second right stationary parameter is obtained;
[0022] According to the second left fluctuation parameter and the second right stable parameter of each second inflection point alternative point, the second inflection point possibility of each second inflection point alternative point is obtained; the second left fluctuation parameter and the second right stable parameter are both positively correlated with the second inflection point possibility.
[0023] Furthermore, the method for obtaining the convolution kernel includes:
[0024] According to the difference characteristics between the data points on the target current data and the corresponding fitting curve, the error degree is obtained; according to the error degree, combined with the preset convolution size parameter, the correction size parameter of the convolution kernel is obtained; the error degree is positively correlated with the correction size parameter; the preset convolution size parameter is a positive odd number;
[0025] An all-one matrix is constructed according to the modified size parameters as a convolution kernel.
[0026] Furthermore, the method for obtaining the convolution correction weight includes:
[0027] Obtaining the initial convolution weight of each convolved area according to the difference characteristics between the current data contained in each convolved area and the corresponding fitting curve;
[0028] According to the minimum and average values of the initial convolution weights of all the convolution regions within the preset second neighborhood of each convolution region, combined with its own initial convolution weight, the convolution correction weight of each convolution region is obtained; the initial convolution weight of each convolution region itself is positively correlated with the convolution correction weight; within the preset second neighborhood of each convolution region, the minimum value of the initial convolution weights of all the convolution regions is negatively correlated with the convolution correction weight; within the preset second neighborhood of each convolution region, the average value of the initial convolution weights of all the convolution regions is positively correlated with the convolution correction weight.
[0029] Furthermore, the method for obtaining the initial convolution weights includes:
[0030] The absolute values of the differences between the current data contained in the convolved area and the simulated data values corresponding to the fitting curve are summed, negative correlation mapping is performed and normalized, and the obtained result is used as the initial convolution weight of each convolved area.
[0031] Furthermore, the method for calculating the convolution correction weight includes:
[0032] In a preset second neighborhood of each convolved area, the ratio of the minimum value to the average value of the initial convolution weights of all convolved areas is negatively correlated and normalized to obtain a correction factor; the product of the initial convolution weight of each convolved area and the correction factor is normalized and used as the convolution correction weight.
[0033] Furthermore, the method for obtaining the trained neural network includes:
[0034] Based on the convolution correction weight, the historical current data in the training set is used to train a neural network to obtain an initial training neural network; the preset verification set is used to detect the initial training neural network, and when the initial training neural network reaches a preset recognition accuracy, it is used as a trained neural network, otherwise other current data in the training set is reselected to obtain a new initial training neural network until it passes the preset verification set detection.
[0035] The present invention also proposes a fault diagnosis device for a permanent magnet synchronous motor for mining, the device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements any one of the steps of a fault diagnosis method for a permanent magnet synchronous motor for mining when executing the computer program.
[0036] The present invention has the following beneficial effects:
[0037] The present invention first obtains a training set consisting of historical current data of a permanent magnet synchronous motor for mining, and provides a training basis for a neural network model; in order to set more appropriate convolution layer parameters in a convolutional neural network, it is necessary to analyze the monitoring data characteristics in a real-time scenario, so any historical current data in the training set is used as the target current data; further, according to the fluctuation characteristics of the target current data, the inflection point data points of the target current data are obtained, and these inflection point data points can help the network model better understand the characteristics of the current data, and at the same time, a fitting curve of the target current data is obtained based on the inflection point data points, so as to prepare for the subsequent setting of appropriate convolution layer initialization parameters; further, a convolution layer that meets the data characteristics is obtained. The convolution kernel, as one of the initialization parameters of the convolution layer, ensures the performance of the convolution neural network model; further obtains the convolution correction weight of each convolution area, provides more basis for setting the initialization parameters of the convolution layer, and is conducive to obtaining a convolution neural network model with better performance, so as to accurately and reliably diagnose the faults of the permanent magnet synchronous motor for mining; further based on the convolution correction weight and the convolution kernel, the neural network is trained using the historical current data in the training set, and combined with the preset verification set, a neural network suitable for the diagnosis of the permanent magnet synchronous motor for mining is obtained; finally, the real-time current data of the permanent magnet synchronous motor for mining collected in real time is input into the trained neural network to diagnose the faults of the permanent magnet synchronous motor for mining. The present invention analyzes the fluctuation characteristics of the current data, sets the initialization convolution layer parameters that meet the change characteristics of the current data of the permanent magnet synchronous motor for mining, accelerates the convergence rate of the neural network, and is more conducive to the network model to better understand the working state of the motor and accurately diagnose the working state of the motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flowchart of a fault diagnosis method for a permanent magnet synchronous motor for mining provided by an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of a current curve of a mining permanent magnet synchronous motor starting from a stationary state provided by an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of an inaccurate fitting curve of current data of a permanent magnet synchronous motor for mining provided by an embodiment of the present invention;
[0042] Figure 4A schematic diagram of a fault diagnosis device for a permanent magnet synchronous motor for mining provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a fault diagnosis method and device for a permanent magnet synchronous motor for mining proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0044] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0045] The following is a detailed description of a method and device for fault diagnosis of a permanent magnet synchronous motor for mining provided by the present invention in conjunction with the accompanying drawings.
[0046] See also Figure 1 , which shows a flow chart of a fault diagnosis method for a permanent magnet synchronous motor for mining provided by an embodiment of the present invention, specifically comprising:
[0047] Step S1: obtaining a training set consisting of historical current data of a permanent magnet synchronous motor for mining; taking any historical current data in the training set as target current data; the historical current data in the training set all contain current data of the permanent magnet synchronous motor for mining during an acceleration process.
[0048] In order to train a neural network model suitable for fault diagnosis of permanent magnet synchronous motors used in mines, the historical current data of permanent magnet synchronous motors used in mines are first obtained to form a training set. In order to set more appropriate convolution layer parameters in the convolutional neural network, it is necessary to analyze the monitoring data characteristics in the real-time scene, so any historical current data in the training set is used as the target current data.
[0049] During the acceleration process of the motor, the permanent magnet synchronous motor for mining places a greater load on the circuit system and is more prone to failure. Therefore, the historical current data in the training set all contain the current data of the permanent magnet synchronous motor for mining during the acceleration process to ensure the training effect of the training set.
[0050] Step S2: obtaining inflection point data points of the target current data according to the fluctuation characteristics of the target current data; and obtaining a fitting curve of the target current data based on the inflection point data points.
[0051] See also Figure 2, which shows a current curve schematic diagram of a mining permanent magnet synchronous motor starting from a stationary state provided by an embodiment of the present invention, Figure 2 The horizontal axis is time, and the vertical axis is current data. The process of starting a permanent magnet synchronous motor from standstill is a special motor acceleration process. Figure 2 It can be seen that the current curve first rises sharply, then drops slightly, and finally remains stable. This is because the motor needs to overcome the inertia and friction of the transmission system during the startup or acceleration stage, and at the same time, the motor has a certain acceleration, which requires a higher power output. The current in the acceleration stage will be higher than the current in the stable operation stage, so there will be obvious inflection points in the target current data. When training the neural network, using these inflection point data points can help the network model better understand the characteristics of the current data, thereby making a more accurate diagnosis of the working state of the motor. Therefore, firstly, according to the fluctuation characteristics of the target current data, the inflection point data points of the target current data are obtained to facilitate the subsequent use of these inflection point data points.
[0052] It should be noted that Figure 2 This is a schematic diagram of the current curve under ideal conditions. The circuit system is intact and there is no noise interference. It is only used to illustrate the changing characteristics of the current during the acceleration process.
[0053] Preferably, in one embodiment of the present invention, the historical current data is as follows: Figure 2 The figure only includes one acceleration process. Since there are two inflection points in the current data corresponding to one acceleration, and the current data fluctuation characteristics in the local neighborhood of the inflection point are different, the inflection point data points of the target current data include the first inflection point and the second inflection point. Among the two inflection points corresponding to one acceleration process, the first inflection point has a smaller timing, such as Figure 2 The curve in the figure is convex, and the second inflection point is larger, such as Figure 2 The concave point of the curve in
[0054] from Figure 2 It can be seen that the current data on the left side of the first inflection point of the current data rises steadily, and the current data on the right side falls steadily, so according to the stable characteristics of the current data on the left side of each data point and the stable characteristics of the current data on the right side, the possibility of the first inflection point of each data point in the target current data is obtained;
[0055] from Figure 2 It can be seen that the current data on the right side of the second inflection point of the current data is stable and unchanged, while the current data on the left side fluctuates violently. Therefore, according to the violent fluctuation characteristics of the current data on the left side of each data point and the stable characteristics of the current data on the right side, the possibility of the second inflection point of each data point in the target current data is obtained;
[0056] The data point with the highest probability of being the first inflection point is taken as the first inflection point; the data point with the highest probability of being the second inflection point is taken as the second inflection point.
[0057] In other embodiments of the present invention, taking into account that there may be multiple acceleration processes in the historical current data of other implementation scenarios, the data can be segmented so that each data segment contains only one acceleration process; or by setting an inflection point possibility threshold, when the first inflection point possibility is greater than the inflection point possibility threshold, the corresponding data point is marked as an inflection point data point, and similarly, when the second inflection point possibility is greater than the inflection point possibility threshold, the corresponding data point is marked as an inflection point data point. It should be noted that the thresholds of the first inflection point possibility and the second inflection point possibility are not necessarily the same, and the current of the first inflection point of the same acceleration process is greater than the second inflection point.
[0058] It should be noted that, in one embodiment of the present invention, the frequency of collecting current data is 0.5 seconds per time. In other embodiments of the present invention, the implementer can adjust it by himself.
[0059] It should be noted that the left side mentioned in the embodiment of the present invention is the side with smaller time series, the right side is the side with larger time series, and the right direction of the time axis is the positive direction. In one embodiment of the present invention, when subsequently calculating the possibility of the first inflection point and the possibility of the second inflection point, , When the number of current data points on one side is less than 10, only the existing current data points are analyzed. When there are no current data points on one side, it is considered that it is not an inflection point and the possibility of the inflection point is 0. In other embodiments of the present invention, the implementer can adjust the length of the preset first neighborhood, or make the preset neighborhood lengths on the left and right sides inconsistent, or when calculating the first inflection point possibility and the second inflection point possibility, the neighborhood lengths are inconsistent.
[0060] Preferably, in one embodiment of the present invention, considering that the current on the left side of the first inflection point is rising and the current on the right side is falling, the first inflection point must be a maximum point, so the possibility of the first inflection point of the non-maximum point in the target current data is recorded as zero; any maximum point is selected as the first inflection point candidate point to narrow the data analysis range and improve the analysis efficiency;
[0061] Considering that the more stable the angle of the connection between the data points is, the more stable the data change is, the smaller the difference between the angle of the connection between the first inflection point candidate point and the current data point on one side is, the more obvious the stable feature is, and at the same time, the change of the current data on both sides of the first inflection point has a certain time range, and in order to better analyze the local characteristics of the inflection point data point, the preset first neighborhood is used to further limit the data analysis range;
[0062] Based on this, the first left fluctuation parameter is obtained according to the difference between the first inflection point candidate point and the current data connection angle in the first neighborhood preset on the left. The smaller the difference, the smaller the first left fluctuation parameter, the greater the possibility of the first inflection point, and the first left fluctuation parameter is negatively correlated with the possibility of the first inflection point.
[0063] According to the difference between the angle of the current data connection line in the first inflection point candidate point and the first neighborhood preset on the right, the first right fluctuation parameter preset first neighborhood is obtained. The smaller the difference, the smaller the first right fluctuation parameter, the greater the possibility of the first inflection point, and the first right fluctuation parameter is negatively correlated with the possibility of the first inflection point.
[0064] According to the first left fluctuation parameter and the first right fluctuation parameter of each first inflection point candidate point, the first inflection point possibility of each first inflection point candidate point is obtained.
[0065] In one embodiment of the present invention, considering that the slope can be converted into the angle of the line connecting two points through the inverse tangent trigonometric function, the difference between the angle of the line connecting the first inflection point candidate point and the current data in the first neighborhood preset on the left is analyzed by the inverse tangent trigonometric function, and the calculation formula of the possibility of the first inflection point includes:
[0066] ;
[0067] in, Indicates the serial number of the maximum point, which is also the serial number of the candidate point for the first inflection point; Indicates The first inflection point possibilities of the first inflection point alternatives; Expressed as a natural constant The exponential function with base ; Indicates the sequence number of the current data point in the preset first neighborhood to the left of the first inflection point candidate point; Indicates the number of current data points in the preset first neighborhood to the left of the first inflection point candidate point; represents the inverse tangent trigonometric function; Indicates The current value of the first inflection point candidate; Indicates The collection time of the first inflection point candidate points; Indicates In the first neighborhood preset on the left side of the first inflection point candidate point, The current value of each current data point; Indicates In the first neighborhood preset on the left side of the first inflection point candidate point, The collection time of each current data point; Indicates The average angle between the first inflection point candidate point and all the current data points in the first neighborhood preset on the left; Indicates the sequence number of the current data point in the preset first neighborhood to the right of the first inflection point candidate point; Indicates the number of current data points in the preset first neighborhood to the right of the first inflection point candidate point; Indicates In the preset first neighborhood on the right side of the first inflection point candidate point, The current value of each current data point; Indicates In the preset first neighborhood on the right side of the first inflection point candidate point, The collection time of each current data point; Indicates The average angle between the first inflection point candidate point and all current data points in the preset first neighborhood on the right; Indicates The first left fluctuation parameter of the first inflection point candidate; Indicates The first right fluctuation parameter of the first inflection point candidate point.
[0068] In the calculation formula of the first inflection point probability, The smaller it is, the smaller the difference between the angle between the first inflection point candidate point and the current data in the first preset neighborhood on the left and the average angle is, which means that the current data on the left side of the first inflection point candidate point has a larger and more stable change, the smaller the first left fluctuation parameter is, and the greater the possibility of the first inflection point is; similarly The smaller it is, the greater and more stable the current data change on the right side of the first inflection point candidate point is. The smaller the first right fluctuation parameter is, the greater the possibility of the first inflection point is.
[0069] It should be noted that the possibility of the first inflection point of the non-maximum point in the target current data is recorded as zero; in other embodiments of the present invention, the difference between the slope and the average slope between the first inflection point candidate point and the current data points in the first neighborhood preset on one side can be directly used to calculate the possibility of the first inflection point, and other basic mathematical operations or function mappings can also be used to achieve relevant mappings, which are technical means well known to those skilled in the art and will not be elaborated here.
[0070] Among them, a positive correlation means that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship can be a multiplication relationship, an addition relationship, or the power of an exponential function, which is determined by actual application; a negative correlation means that the dependent variable will decrease as the independent variable increases, and the dependent variable will increase as the independent variable decreases. It can be a subtraction relationship, a division relationship, etc., which is determined by actual application.
[0071] Preferably, in one embodiment of the present invention, considering that the current data on the left side of the second inflection point shows a downward trend, and the current data on the right side shows a stable trend, the second inflection point must be a minimum point, so the possibility of the second inflection point of the non-minimum point in the target current data is recorded as zero; any minimum point is selected as the candidate point of the second inflection point, the data analysis range is narrowed, and the analysis efficiency is improved;
[0072] Considering that the greater the difference between data points, the greater the data fluctuation, the second left fluctuation parameter is obtained according to the difference characteristics between each current data and the second inflection point candidate point in the first neighborhood preset on the left side of the second inflection point candidate point. The greater the difference, the greater the second left fluctuation parameter, the more consistent with the characteristics of the violent fluctuation of the data on the left side of the second inflection point, the greater the possibility of the second inflection point, and the second left fluctuation parameter is positively correlated with the possibility of the second inflection point.
[0073] According to the similarity characteristics between each current data and the second inflection point candidate point in the first neighborhood preset on the right side of the second inflection point candidate point, the second right stable parameter is obtained. The smaller the difference, the larger the second right stable parameter, the more consistent with the stable and unchanging characteristics of the data on the right side of the second inflection point, the greater the possibility of the second inflection point, and the second right stable parameter is positively correlated with the possibility of the second inflection point;
[0074] According to the second left fluctuation parameter and the second right stationary parameter of each second inflection point candidate point, the second inflection point possibility of each second inflection point candidate point is obtained; the second left fluctuation parameter and the second right stationary parameter are both positively correlated with the second inflection point possibility.
[0075] In one embodiment of the present invention, the calculation formula for the possibility of the second inflection point includes:
[0076] ;
[0077] in, Indicates the serial number of the minimum point, which is also the serial number of the candidate point for the second inflection point; Indicates The second inflection point possibilities of the second inflection point alternatives; Indicated by natural constant The exponential function with base ; Indicates the sequence number of the current data point in the preset first neighborhood to the left of the second inflection point candidate point; represents the number of current data points in the preset first neighborhood to the left of the second inflection point candidate point; Indicates The current value of the second inflection point candidate; Indicates In the first neighborhood on the left side of the second inflection point candidate point, The current value of each current data point; Indicates the sequence number of the current data point in the preset first neighborhood to the right of the second inflection point candidate point; represents the number of current data points in the preset first neighborhood to the right of the second inflection point candidate point; Indicates In the preset first neighborhood on the right side of the second inflection point candidate point, The current value of each current data point; Indicates The second left fluctuation parameter of the second inflection point candidate; Indicates The second right stationary parameter of the second inflection point candidate.
[0078] In the calculation formula of the possibility of the second inflection point, The larger the value is, the greater the difference between the candidate point of the second inflection point and the current data in the first neighborhood on the left is, the more consistent it is with the characteristics of the violent fluctuation of the data on the left side of the second inflection point, and the greater the possibility of the second inflection point. The smaller it is, the smaller the difference between the candidate point of the second inflection point and the current data in the preset first neighborhood on the right is, the more it conforms to the characteristic that the data on the right side of the second inflection point is stable and unchanged, and the greater the possibility of the second inflection point.
[0079] It should be noted that the possibility of the second inflection point of the non-minimum point in the target current data is recorded as zero; in other embodiments of the present invention, other basic mathematical operations or function mappings can also be used to implement relevant mappings, which are technical means well known to those skilled in the art and will not be elaborated here.
[0080] After obtaining the inflection point data point of the target current data, a fitting curve of the target current data can be obtained based on the inflection point data point to ensure that the fitting curve can better represent the target current data.
[0081] Preferably, in one embodiment of the present invention, a polynomial fitting method is used to obtain a fitting curve, and the fitting curve must pass through the inflection point data point, otherwise it may lead to the following Figure 3 The fitting results shown are compared Figure 2 It can be seen that the newly added fitting curve is inaccurate, does not pass through the inflection point that is very important for the change of motor current, and cannot represent the changing characteristics of the current data.
[0082] It should be noted that the polynomial fitting algorithm is a technical means well known to those skilled in the art and will not be described in detail here. In other embodiments of the present invention, other existing curve fitting methods such as Bezier curve fitting may also be used for curve fitting.
[0083] Step S3: According to the difference characteristics between the data points on the target current data and the corresponding fitting curve, combined with the preset convolution size parameters, a convolution kernel is obtained; in the process of the convolution kernel traversing the data points on the target current data, according to the difference characteristics between the current data contained in each convolved area and the corresponding fitting curve, a convolution correction weight of each convolved area is obtained; based on the convolution correction weight and the convolution kernel, the neural network is trained using the historical current data in the training set, and combined with the preset verification set to obtain a trained neural network.
[0084] After curve fitting of the target current data, the convolution kernel of the convolution layer in the convolutional neural network model can be determined based on the fitting effect: considering that the larger the curve fitting error, the more complex the current data changes, and the larger the convolution kernel is needed to make the receptive field larger and capture more feature information to ensure the performance of the convolutional neural network model, the convolution kernel is obtained based on the difference characteristics between the data points on the target current data and the corresponding fitting curve, combined with the preset convolution size parameters, to prepare for the optimization of the convolution layer parameter setting, which is conducive to obtaining a convolutional neural network model with better performance, thereby accurately and reliably diagnosing faults of permanent magnet synchronous motors for mining.
[0085] Preferably, in one embodiment of the present invention, in order to facilitate obtaining a convolution kernel of a suitable size with the help of a fitting effect, firstly, the error degree is obtained according to the difference characteristics between the data points on the target current data and the corresponding fitting curve, so as to characterize the responsibility degree of the current data; thus, according to the error degree, combined with the preset convolution size parameter, the correction size parameter of the convolution kernel is obtained; since the larger the error degree, the worse the curve fitting effect, reflecting that the greater the complexity of the current data, the larger the need for a convolution kernel, so the error degree is positively correlated with the correction size parameter;
[0086] Construct an all-one matrix according to the modified size parameters as the convolution kernel.
[0087] In one embodiment of the present invention, the average value of the absolute value of the difference between the data point on the target current data and the corresponding fitting curve is taken as the error degree, and the preset convolution size parameter is 3. In order to ensure the standardization of the correction size parameter, the error degree is rounded up to an even integer and then added to the preset convolution size parameter to obtain the correction size parameter of the convolution kernel; for example, the error degree is 1.5, which is rounded up to an even integer of 2, and the correction size parameter is 5, and the convolution kernel is In other embodiments of the present invention, the convolution kernel may be set to a unit matrix, and other preset convolution size parameters may be set. The preset convolution size parameters may also be set to positive even numbers, and the corresponding error degree may be rounded upward to an odd integer.
[0088] It should be noted that the convolution kernel obtained here is the parameter setting for the convolution layer of the neural network model training, and is one of the initialization parameters of the convolution layer, which is used to help the neural network model converge faster and achieve better performance.
[0089] Taking into account that in the process of the convolution kernel traversing the data points on the target current data, the degree of difference between different data points and the fitting curve is different, the convolution weights of the convolved area should be different. At the same time, the current mutation noise points will affect the fitting effect of the current data points in the surrounding area. Therefore, in the process of the convolution kernel traversing the data points on the target current data, the convolution correction weight of each convolved area is obtained according to the difference characteristics between the current data contained in each convolved area and the corresponding fitting curve, in order to prepare for the optimization of the convolution layer parameter setting, which is conducive to obtaining a convolutional neural network model with better performance, thereby accurately and reliably diagnosing the faults of mining permanent magnet synchronous motors.
[0090] It should be noted that before the convolution kernel traverses the data points on the target current data, a padding operation needs to be performed first. , fill the grid edge, set the stride to 1, establish a coordinate system, and thus determine all the convolved areas, which are all technical means well known to those skilled in the art. To correct the size parameters.
[0091] Preferably, in one embodiment of the present invention, considering that the smaller the difference between the current data contained in the convolved area and the corresponding fitting curve, the closer the current data is to the fitting curve, the more obvious the data features are, and the more stable the convolution weight should be, by considering the difference between the current data contained in the convolved area and the corresponding fitting curve, the network's ability to extract data features can be improved, so that the network pays more attention to the position close to the fitting curve, thereby more accurately capturing the law of the data, so according to the difference characteristics between the current data contained in each convolved area and the corresponding fitting curve, the convolution initial weight of each convolved area is obtained;
[0092] It is also considered that the current mutation noise point will affect the fitting effect of the current data points in the surrounding area and affect the reliability of the initial convolution weight. Therefore, according to the minimum and average values of the initial convolution weights of all the convolution areas in the preset second neighborhood of each convolution area, combined with its own initial convolution weight, the convolution correction weight of each convolution area is obtained to reduce the network's sensitivity to noise and useless information in the data and improve the robustness of the network. The initial convolution weight of each convolution area is positively correlated with the convolution correction weight; the minimum value of the initial convolution weights of all the convolution areas in the preset second neighborhood of each convolution area is negatively correlated with the convolution correction weight; the average value of the initial convolution weights of all the convolution areas in the preset second neighborhood of each convolution area is positively correlated with the convolution correction weight.
[0093] It should be noted that different convolved areas are distinguished according to the center position of the convolved area. Considering that the current data is time series data, a preset second neighborhood is established in the time series direction. In one embodiment of the present invention, the preset second neighborhood is set to 11, that is, with each convolved area as the center, 11 convolved areas are selected in the time series direction to form a preset second neighborhood; similar to taking a certain data as the center on a one-dimensional number axis, selecting 5 other data points forward and backward respectively to form a second neighborhood.
[0094] Preferably, in one embodiment of the present invention, considering that the larger the absolute value of the difference between the current data contained in the convolved area and the analog data value on the corresponding fitting curve, the farther the current data is from the simulation curve, the less obvious the data characteristics are, and the worse the stability is, the absolute value of the difference between the current data contained in the convolved area and the analog data value on the corresponding fitting curve is summed, negative correlation mapping is performed and normalized, and the result obtained is used as the initial convolution weight of each convolved area.
[0095] Preferably, in one embodiment of the present invention, considering that within the preset second neighborhood of the convolved area, the smaller the initial convolution weight is and the larger the average value is, the more it can be explained that there are current noise points, and the initial convolution weight needs to be corrected;
[0096] In the preset second neighborhood of each convolved area, the ratio of the minimum value to the average value of the initial convolution weights of all convolved areas is negatively correlated and normalized to obtain the correction factor; the product of the initial convolution weight of each convolved area and the correction factor is normalized and used as the convolution correction weight.
[0097] The calculation formula for the convolution correction weight includes:
[0098] ;
[0099] in, The horizontal coordinate representing the center position of the convolved area; The ordinate represents the center position of the convolved area; Indicates the center position is The convolution kernel correction weight of the convolved area; represents the standard normalization function; Indicated by natural constant The exponential function with base ; Indicates the center position is The initial weight of the convolution kernel in the convolved area; Indicates the sequence number of the convolved area in the preset second neighborhood; Indicates the center position is In the preset second neighborhood of the convolved area, The initial weight of the convolution kernel of the convolved area; Indicates the number of convolved areas in the preset second neighborhood; Indicates the center position is In the preset second neighborhood of the convolved area, The initial weight of the convolution kernel of the convolved area; Indicates the center position is In the preset second neighborhood of the convolved area, The initial weight of the convolution kernel of the convolved area; Indicates the center position is The set of initial weights of the convolution kernels of all convolution areas in the preset second neighborhood of the convolution area is composed of: Represents the minimum value in a collection.
[0100] In the calculation formula of the convolution correction weight, The smaller it is, the more the center position is The smaller the initial weight of a convolution region is, the greater the difference between the current data points contained in the convolution region corresponding to the minimum value and the fitting curve is. The larger the value, the more the center position is In the preset second neighborhood of the convolved area, the larger the initial convolution weight of all the convolved areas as a whole, the smaller the difference between the whole and the fitting curve, reflecting that the convolved area corresponding to the minimum value is more likely to contain current noise points, while the current data of other non-noise points are affected by the noise points, and the curve fitting effect becomes worse, resulting in a small initial convolution weight. The initial convolution weight needs to be corrected, so Correction is performed as a correction factor.
[0101] It should be noted that although the correction factor amplifies the initial convolution weight of the convolved area containing current noise points, since its initial convolution weight is small, the convolution correction weight after amplification is still small relative to other convolved areas containing only normal current data, and will not reduce the reliability of the convolution correction weight; in other embodiments of the present invention, other basic mathematical operations or function mappings can also be used to implement relevant mappings, which are technical means well known to those skilled in the art and will not be elaborated here.
[0102] In one embodiment of the present invention, the convolution kernel traverses the center position as The convolution of the convolved area is:
[0103] ;
[0104] in, The horizontal coordinate representing the center position of the convolved area; The ordinate represents the center position of the convolved area; Indicates the center position is The convolution result of the convolved area; Indicates the center position is The convolution kernel correction weight of the convolved area; Represents the dot multiplication operator; Represents the convolution symbol; Indicates the modified size parameter; The coordinates are The data value of The coordinates are The data value of The coordinates are The data value of The coordinates are The data value of .
[0105] After setting the initial convolution layer parameters by analyzing the current data characteristics, the neural network can be trained using the historical current data in the training set based on the convolution correction weights and convolution kernels, and combined with the preset validation set to obtain a trained neural network.
[0106] Preferably, in one embodiment of the present invention, based on the convolution correction weight and the convolution kernel, the neural network is trained using the historical current data in the training set, and the convolution kernel weight is updated by the back propagation algorithm, so that the model can learn the data features and perform classification processing to obtain the initial training neural network;
[0107] The initial training neural network is tested using a preset validation set. When the initial training neural network reaches a preset recognition accuracy, it is used as a trained neural network. Otherwise, other current data in the training set are reselected to obtain a new initial training neural network until it passes the preset validation set test.
[0108] It should be noted that, in one embodiment of the present invention, the loss function adopts the cross entropy loss function, the upper limit of the number of iterations is set to 50 times, ReLU is used as the activation function of the hidden layer, Sigmoid is used as the activation function of the output layer, and the Adam optimizer is used; the preset recognition accuracy is 95%. In other embodiments of the present invention, the implementer can also set other training parameters. The training process of convolutional neural networks is a technical means well known to those skilled in the art and will not be repeated here.
[0109] Step S4: input the real-time current data of the permanent magnet synchronous motor for mining collected in real time into the trained neural network to perform fault diagnosis on the permanent magnet synchronous motor for mining.
[0110] After obtaining a trained neural network model suitable for a permanent magnet synchronous motor for mining, the real-time current data of the permanent magnet synchronous motor for mining collected in real time can be input into the trained neural network to perform fault diagnosis on the permanent magnet synchronous motor for mining.
[0111] In one embodiment of the present invention, when fault data is detected to occur 10 times in succession, it is considered that the mining permanent magnet synchronous motor has a fault and needs to be powered off for maintenance in time.
[0112] One embodiment of the present invention also provides a fault diagnosis device for a permanent magnet synchronous motor for mining, see Figure 4 The device includes a memory 401, a processor 402 and a computer program 403, wherein the memory 401 is used to store the corresponding computer program, the processor 402 is used to run the corresponding computer program, and when the computer program 403 runs in the processor, it can implement a fault diagnosis method for a permanent magnet synchronous motor for mining described in steps S1-S4.
[0113] In summary, in view of the technical problem that the convolution layer parameters of the existing neural network are not properly set during the training process, which affects the fault diagnosis of the permanent magnet synchronous motor for mining, a fault diagnosis method and device for the permanent magnet synchronous motor for mining is proposed. The present invention first takes any historical current data in the training set as the target current data; further obtains the fitting curve of the target current data; further obtains the convolution kernel; further obtains the convolution correction weight of each convolved area; further based on the convolution correction weight and the convolution kernel, the historical current data in the training set is used to train the neural network, and the trained neural network is obtained in combination with the preset verification set; finally, the real-time current data of the permanent magnet synchronous motor for mining collected in real time is input into the trained neural network to perform fault diagnosis on the permanent magnet synchronous motor for mining. The present invention analyzes the fluctuation characteristics of the current data, sets the initialization convolution layer parameters that meet the change characteristics of the current data of the permanent magnet synchronous motor for mining, accelerates the convergence rate of the neural network, and is more conducive to the network model to better understand the working state of the motor and accurately diagnose the working state of the motor.
[0114] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0115] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A fault diagnosis method for permanent magnet synchronous motors used in mines, It is characterized in that The method comprises: Obtain a training set consisting of historical current data of a permanent magnet synchronous motor for mining; use any historical current data in the training set as target current data; the historical current data in the training set all contain current data of an acceleration process of the permanent magnet synchronous motor for mining; According to the fluctuation characteristics of the target current data, obtaining the inflection point data point of the target current data; and obtaining the fitting curve of the target current data based on the inflection point data point; According to the difference characteristics between the data points on the target current data and the corresponding fitting curve, combined with the preset convolution size parameters, a convolution kernel is obtained; in the process of the convolution kernel traversing the data points on the target current data, according to the difference characteristics between the current data contained in each convolved area and the corresponding fitting curve, a convolution correction weight of each convolved area is obtained; based on the convolution correction weight and the convolution kernel, the historical current data in the training set is used to train the neural network, and a trained neural network is obtained in combination with a preset verification set; The real-time current data of the permanent magnet synchronous motor for mining collected in real time is input into the trained neural network to perform fault diagnosis on the permanent magnet synchronous motor for mining; The method for obtaining the inflection point data point includes: The inflection point data points of the target current data include a first inflection point and a second inflection point; the current of the first inflection point is greater than that of the second inflection point; Obtaining the first inflection point possibility of each data point in the target current data according to the stationary characteristics of the current data on the left side and the stationary characteristics of the current data on the right side of each data point; According to the violent fluctuation characteristics of the current data on the left side of each data point and the stable characteristics of the current data on the right side, the possibility of the second inflection point of each data point in the target current data is obtained; The data point with the highest probability of the first inflection point is taken as the first inflection point; the data point with the highest probability of the second inflection point is taken as the second inflection point; The method for obtaining the convolution correction weight includes: Obtaining the initial convolution weight of each convolved area according to the difference characteristics between the current data contained in each convolved area and the corresponding fitting curve; According to the minimum and average values of the initial convolution weights of all the convolution regions in the preset second neighborhood of each convolution region, combined with the initial convolution weight of the region itself, the convolution correction weight of each convolution region is obtained; the initial convolution weight of each convolution region itself is positively correlated with the convolution correction weight; within the preset second neighborhood of each convolution region, the minimum value of the initial convolution weights of all the convolution regions is negatively correlated with the convolution correction weight; within the preset second neighborhood of each convolution region, the average value of the initial convolution weights of all the convolution regions is positively correlated with the convolution correction weight; The method for calculating the convolution correction weight includes: In a preset second neighborhood of each convolved area, the ratio of the minimum value to the average value of the initial convolution weights of all convolved areas is negatively correlated and normalized to obtain a correction factor; the product of the initial convolution weight of each convolved area and the correction factor is normalized and used as the convolution correction weight.
2. A fault diagnosis method for a permanent magnet synchronous motor for mining according to claim 1, It is characterized in that The method for obtaining the possibility of the first inflection point includes: Select any maximum point as the first inflection point candidate; According to the difference between the first inflection point candidate point and the connection angle of the current data in the first neighborhood preset on the left, a first left fluctuation parameter is obtained; according to the difference between the first inflection point candidate point and the connection angle of the current data in the first neighborhood preset on the right, a first right fluctuation parameter is obtained; According to the first left fluctuation parameter and the first right fluctuation parameter of each of the first inflection point candidate points, the first inflection point possibility of each of the first inflection point candidate points is obtained; the first left fluctuation parameter and the first right fluctuation parameter are both negatively correlated with the first inflection point possibility.
3. A fault diagnosis method for a permanent magnet synchronous motor for mining according to claim 1, It is characterized in that The method for obtaining the possibility of the second inflection point includes: Select any minimum point as the candidate for the second inflection point; According to the difference characteristics between each current data and the second inflection point candidate point in the first neighborhood preset on the left side of the second inflection point candidate point, a second left fluctuation parameter is obtained; according to the similarity characteristics between each current data and the second inflection point candidate point in the first neighborhood preset on the right side of the second inflection point candidate point, a second right stationary parameter is obtained; According to the second left fluctuation parameter and the second right stable parameter of each second inflection point alternative point, the second inflection point possibility of each second inflection point alternative point is obtained; the second left fluctuation parameter and the second right stable parameter are both positively correlated with the second inflection point possibility.
4. A fault diagnosis method for a permanent magnet synchronous motor for mining according to claim 1, It is characterized in that The method for obtaining the convolution kernel includes: According to the difference characteristics between the data points on the target current data and the corresponding fitting curve, the error degree is obtained; according to the error degree, combined with the preset convolution size parameter, the correction size parameter of the convolution kernel is obtained; the error degree is positively correlated with the correction size parameter; the preset convolution size parameter is a positive odd number; An all-one matrix is constructed according to the modified size parameters as a convolution kernel.
5. A fault diagnosis method for a permanent magnet synchronous motor for mining according to claim 1, It is characterized in that The method for obtaining the initial convolution weight includes: The absolute values of the differences between the current data contained in the convolved area and the simulated data values corresponding to the fitting curve are summed, negative correlation mapping is performed and normalized, and the obtained result is used as the initial convolution weight of each convolved area.
6. A fault diagnosis method for a permanent magnet synchronous motor for mining according to claim 1, It is characterized in that The method for obtaining the trained neural network includes: Based on the convolution correction weight, the historical current data in the training set is used to train a neural network to obtain an initial training neural network; the preset verification set is used to detect the initial training neural network, and when the initial training neural network reaches a preset recognition accuracy, it is used as a trained neural network, otherwise other current data in the training set is reselected to obtain a new initial training neural network until it passes the preset verification set detection.
7. A fault diagnosis device for a permanent magnet synchronous motor for mining, the device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of a fault diagnosis method for a mining permanent magnet synchronous motor as described in any one of claims 1 to 6 are implemented.
