Training method and operation status detection method of support vector data description model
Through the training method of the support vector data description model, the problem of detecting the operating status of the robotic arm under multi-speed working conditions is solved, and the comprehensive evaluation and accurate detection of the overall status of the robotic arm are achieved.
Patent Information
- Application Number
- CN202210653653.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-09
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-06-09
AI Technical Summary
It is difficult to comprehensively evaluate the overall operating status of the robotic arm under multi-speed working conditions with the existing technology, and is mainly limited to detection under single speed working conditions.
Using the support vector data description model training method, by obtaining the motion signals and status labels of the robotic arm at multiple rotational speeds, calculating the energy entropy ratio, constructing a motion feature matrix, performing principal component analysis feature fusion, generating a key parameter matrix, and constructing training Sample set, training target support vector data description model, used to detect the operating status of the robotic arm at multiple rotational speeds.
It achieves a comprehensive evaluation of the robotic arm under multi-speed working conditions, can effectively detect the overall operating status of the robotic arm, and improves the accuracy and efficiency of detection.
Smart Images

Figure CN115122311B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of robotic arm technology, and in particular to a training method for a support vector data description model and an operation status detection method. Background Art
[0002] The transmission system of the robot arm is responsible for the power transmission of each joint of the robot arm. Its operating status is directly related to the completion quality of the scheduled task. Therefore, in the production process of the robot arm, the vibration quality detection of the transmission system of the robot arm becomes an indispensable link.
[0003] At present, the operation status of the robot arm under a single speed condition is mainly detected. However, when the robot arm is working, it is necessary to set the appropriate speed according to different working conditions and work content. Therefore, how to comprehensively evaluate the overall operation status of the robot arm under multi-speed conditions is an urgent problem to be solved. Summary of the invention
[0004] The purpose of this application is to provide a training method and an operation status detection method for a support vector data description model to address the deficiencies in the above-mentioned prior art, which can comprehensively evaluate the overall operation status of a robotic arm under multi-speed conditions.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a training method for a support vector data description model, the method comprising:
[0007] Acquire motion signals corresponding to at least one sample mechanical arm at multiple rotational speeds, and state labels corresponding to each of the sample mechanical arms;
[0008] According to the motion signals corresponding to each of the sample manipulators at each rotational speed, the energy entropy ratios corresponding to each of the sample manipulators at each rotational speed are determined, and a motion feature matrix is constructed according to the energy entropy ratios corresponding to each of the sample manipulators at each rotational speed;
[0009] Performing feature fusion processing on the motion feature matrix based on a principal component analysis algorithm to obtain a key parameter matrix, wherein the number of feature vectors in the key parameter matrix meets a preset condition;
[0010] Constructing a training sample set according to the key parameter matrix;
[0011] A target support vector data description model is obtained based on the training sample set and the state labels corresponding to each training sample in the training sample set. The target support vector data description model is used to detect the operating state of the robotic arm to be tested based on the motion signals corresponding to the robotic arm to be tested at multiple rotation speeds.
[0012] Optionally, the training based on the training sample set and the state label corresponding to each training sample in the training sample set to obtain a target support vector data description model includes:
[0013] A grid search algorithm is used to determine the target Gaussian kernel parameters and target penalty parameters;
[0014] Based on the target Gaussian kernel parameter and the target penalty parameter, construct an initial support vector data description model;
[0015] The initial support vector data description model is trained based on the training sample set and the state label corresponding to each training sample in the training sample set to obtain the target support vector data description model.
[0016] Optionally, the motion feature matrix is subjected to feature fusion processing based on a principal component analysis algorithm to obtain a key parameter matrix, including:
[0017] Standardizing the motion feature matrix by columns to obtain an original feature matrix;
[0018] Performing feature fusion processing on the original feature matrix based on a principal component analysis algorithm to obtain a fused feature matrix;
[0019] Determine the cumulative variance contribution rate corresponding to each eigenvector in the fused feature matrix according to the eigenvalue corresponding to each eigenvector;
[0020] According to the cumulative variance contribution rate corresponding to each of the eigenvectors, a target eigenvector that meets the preset condition is selected from the eigenvectors of the fused feature matrix;
[0021] The key parameter matrix is constructed using the target feature vector.
[0022] Optionally, constructing a training sample set according to the key parameter matrix includes:
[0023] Dividing the key parameter matrix by rows to obtain multiple training samples;
[0024] A plurality of training samples are combined into the training sample set.
[0025] Optionally, determining the energy entropy ratio corresponding to each of the sample mechanical arms at each rotational speed according to the motion signal corresponding to each of the sample mechanical arms at each rotational speed includes:
[0026] Determine the root mean square and spectral permutation entropy corresponding to each of the sample mechanical arms at each rotational speed according to the motion signals corresponding to each of the sample mechanical arms at each rotational speed;
[0027] The ratio of the root mean square value corresponding to each of the sample mechanical arms at each rotation speed to the spectral arrangement entropy is used as the energy entropy ratio corresponding to each of the sample mechanical arms at each rotation speed.
[0028] Optionally, obtaining a motion signal corresponding to at least one sample mechanical arm at multiple rotation speeds includes:
[0029] Performing motion state segmentation processing on the acquired initial motion signal corresponding to at least one sample mechanical arm at multiple rotational speeds to obtain motion signals corresponding to multiple rotational speeds of each sample mechanical arm under the motion state;
[0030] According to the motion signals corresponding to the multiple rotational speeds of each sample robot arm in the motion state, the motion signals corresponding to each sample robot arm at the multiple rotational speeds are obtained.
[0031] In a second aspect, an embodiment of the present application further provides a method for detecting the operating state of a robotic arm, the method comprising:
[0032] Obtain motion signals corresponding to the robot arm under test at multiple rotation speeds;
[0033] Determine the energy entropy ratio corresponding to each rotation speed of the mechanical arm to be tested according to the motion signal corresponding to each rotation speed of the mechanical arm to be tested;
[0034] According to the energy entropy ratio corresponding to each rotation speed of the robot arm to be tested and the principal component analysis algorithm, a feature matrix to be input is constructed;
[0035] The feature matrix to be input is input into a target support vector data description model to obtain the operating state of the robot arm to be tested, wherein the target support vector data description model is constructed based on the training method of the support vector data description model described in the first aspect above.
[0036] Optionally, constructing a feature matrix to be input according to the energy entropy ratio corresponding to each rotation speed of the robot arm to be tested and a principal component analysis algorithm includes:
[0037] Standardizing the energy entropy ratios corresponding to the mechanical arm to be tested at each rotation speed to obtain a standard feature vector;
[0038] Performing feature fusion processing on the standard feature vector based on the principal component analysis algorithm to obtain a fusion feature matrix;
[0039] According to the eigenvalues corresponding to the eigenvectors in the fusion feature matrix, the cumulative variance contribution rate corresponding to each eigenvector is determined;
[0040] According to the cumulative variance contribution rate corresponding to each of the eigenvectors, a target eigenvector that meets the preset condition is selected from the eigenvectors of the fused feature matrix;
[0041] The target feature vector is used to construct the feature matrix to be input.
[0042] In a third aspect, an embodiment of the present application further provides a training device for a support vector data description model, the device comprising:
[0043] An acquisition module, used to acquire motion signals corresponding to at least one sample mechanical arm at multiple rotational speeds, and state labels corresponding to each of the sample mechanical arms;
[0044] A determination module, used to determine the energy entropy ratios corresponding to each of the sample manipulators at each rotational speed according to the motion signals corresponding to each of the sample manipulators at each rotational speed, and to construct a motion feature matrix according to the energy entropy ratios corresponding to each of the sample manipulators at each rotational speed;
[0045] A fusion processing module, used for performing feature fusion processing on the motion feature matrix based on a principal component analysis algorithm to obtain a key parameter matrix, wherein the number of feature vectors in the key parameter matrix meets a preset condition;
[0046] A construction module, used to construct a training sample set according to the key parameter matrix;
[0047] A training module is used to obtain a target support vector data description model based on the training sample set and the state labels corresponding to each training sample in the training sample set. The target support vector data description model is used to detect the operating state of the robotic arm to be tested based on the motion signals corresponding to the robotic arm to be tested at multiple rotation speeds.
[0048] Optionally, the training module is specifically used to determine the target Gaussian kernel parameters and the target penalty parameters using a grid search algorithm; construct an initial support vector data description model based on the target Gaussian kernel parameters and the target penalty parameters; train the initial support vector data description model based on the training sample set and the state labels corresponding to each training sample in the training sample set to obtain the target support vector data description model.
[0049] Optionally, the fusion processing module is specifically used to standardize the motion feature matrix by column to obtain an original feature matrix; perform feature fusion processing on the original feature matrix based on a principal component analysis algorithm to obtain a fused feature matrix; determine the cumulative variance contribution rate corresponding to each eigenvalue corresponding to each eigenvector in the fused feature matrix; screen out a target feature vector that meets the preset conditions from the eigenvectors of the fused feature matrix according to the cumulative variance contribution rate corresponding to each eigenvector; and construct the key parameter matrix using the target feature vector.
[0050] Optionally, the construction module is specifically used to divide the key parameter matrix by rows to obtain multiple training samples; and combine the multiple training samples into the training sample set.
[0051] Optionally, the determination module is specifically used to determine the root mean square and spectral permutation entropy corresponding to each of the sample robotic arms at each rotational speed based on the motion signals corresponding to each of the sample robotic arms at each rotational speed; and use the ratio of the root mean square and spectral permutation entropy corresponding to each of the sample robotic arms at each rotational speed as the energy entropy ratio corresponding to each of the sample robotic arms at each rotational speed.
[0052] Optionally, the acquisition module is specifically used to perform motion state segmentation processing on the initial motion signal corresponding to at least one sample robotic arm at multiple rotational speeds, and obtain motion signals corresponding to multiple rotational speeds of each sample robotic arm in the motion state; based on the motion signals corresponding to multiple rotational speeds of each sample robotic arm in the motion state, obtain motion signals corresponding to each sample robotic arm at multiple rotational speeds.
[0053] In a fourth aspect, an embodiment of the present application provides a device for detecting the operating state of a robotic arm, the device comprising:
[0054] An acquisition module is used to acquire motion signals corresponding to the mechanical arm to be tested at multiple rotation speeds;
[0055] A determination module, used to determine the energy entropy ratio corresponding to each rotation speed of the mechanical arm to be tested according to the motion signal corresponding to each rotation speed of the mechanical arm to be tested;
[0056] A construction module, used to construct a feature matrix to be input according to the energy entropy ratio corresponding to each rotation speed of the mechanical arm to be tested and the principal component analysis algorithm;
[0057] An input module is used to input the feature matrix to be input into a target support vector data description model to obtain the operating state of the robotic arm to be tested, wherein the target support vector data description model is constructed based on the training method of the support vector data description model described in the first aspect above.
[0058] Optionally, the construction module is specifically used to standardize the energy-entropy ratio corresponding to the tested robotic arm at each rotational speed to obtain a standard eigenvector; perform feature fusion processing on the standard eigenvector based on the principal component analysis algorithm to obtain a fused feature matrix; determine the cumulative variance contribution rate corresponding to each eigenvector in the fused feature matrix according to the eigenvalue corresponding to each eigenvector in the fused feature matrix; select the target eigenvector that meets the preset conditions from the eigenvector of the fused feature matrix according to the cumulative variance contribution rate corresponding to each eigenvector; and use the target eigenvector to construct the feature matrix to be input.
[0059] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute the steps of the training method of the support vector data description model of the first aspect or the steps of the operating status detection method of the robotic arm of the second aspect.
[0060] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the training method of the support vector data description model of the first aspect or the steps of the method for detecting the operating status of the robotic arm of the second aspect are executed.
[0061] The beneficial effects of this application are:
[0062] The embodiment of the present application provides a training method and an operating status detection method, device and medium for a support vector data description model, the method comprising: obtaining motion signals corresponding to at least one sample robotic arm at multiple rotational speeds, and a state label corresponding to each sample robotic arm; determining the energy entropy ratio corresponding to each sample robotic arm at each rotational speed according to the motion signals corresponding to each sample robotic arm at each rotational speed, and constructing a motion feature matrix according to the energy entropy ratio corresponding to each sample robotic arm at each rotational speed; performing feature fusion processing on the motion feature matrix based on a principal component analysis algorithm to obtain a key parameter matrix, and the number of feature vectors in the key parameter matrix meets a preset condition; constructing a training sample set based on the key parameter matrix; training based on the training sample set and the state labels corresponding to each training sample in the training sample set to obtain a target support vector data description model, the target support vector data description model being used to detect the operating status of the robotic arm to be tested based on the motion signals corresponding to the robotic arm to be tested at multiple rotational speeds.
[0063] By adopting the training method of the support vector data description model provided in the embodiment of the present application, the motion feature matrix containing the energy entropy ratio corresponding to each rotation speed of the robot arm can be subjected to feature fusion processing through the principal component analysis algorithm, so that the features in the key parameter matrix contain relevant information of the motion signal corresponding to the robot arm at multiple rotation speeds, and finally the target support vector data description model is obtained by training the training sample set constructed by the key parameter matrix, so that the target support vector data description model has the ability to analyze the vibration quality of the robot arm under multi-speed conditions. In other words, finally, the operating state of the robot arm to be tested is detected based on the target support vector data description model, and the overall operating state of the robot arm to be tested under multi-speed conditions can be comprehensively evaluated. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0065] Figure 1 A schematic diagram of a scenario of a robot arm operation status detection system provided in an embodiment of the present application;
[0066] Figure 2 A flowchart of a training method for a support vector data description model provided in an embodiment of the present application;
[0067] Figure 3 A flowchart of another method for training a support vector data description model provided in an embodiment of the present application;
[0068] Figure 4 A flowchart of another method for training a support vector data description model provided in an embodiment of the present application;
[0069] Figure 5 A flowchart of a training method for a support vector data description model provided in an embodiment of the present application;
[0070] Figure 6 A schematic diagram of a flow chart of a method for detecting the motion state of a robotic arm provided in an embodiment of the present application;
[0071] Figure 7 A schematic diagram of the structure of a training device for supporting a vector data description model provided in an embodiment of the present application;
[0072] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0074] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0075] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0076] Before explaining the embodiments of the present application in detail, the application scenario of the present application is first introduced. The application scenario can specifically be a scenario of detecting the operating state of a robotic arm, and the present application detects the operating state of the robotic arm to be tested by using the target support vector data description model obtained through training. Figure 1 A schematic diagram of a scenario of a robot arm operation status detection system provided in an embodiment of the present application, the system includes: an acquisition device 101 and a processing device 102, and the acquisition device 101 is in communication connection with the processing device 102. Side information is information that can reflect the operation status of the robot arm, and the side information may include operation vibration information, motion image information, operation sound information, etc. That is to say, the motion signal mentioned in the present application may specifically be a vibration signal, image signal, and sound signal that can represent the operation status of the robot arm. It should be noted that the present application does not limit it.
[0077] It is understandable that the vibration signals corresponding to the mechanical arm at multiple rotational speeds can be collected by an acceleration sensor. Specifically, the acceleration sensor can be a three-axis acceleration sensor, which can simultaneously collect acceleration signals of the mechanical arm in three directions; the image signals corresponding to the mechanical arm at multiple rotational speeds can be collected by an image acquisition device; and the sound signals corresponding to the mechanical arm at multiple rotational speeds can be collected by a sound sensor. This application is explained using an acceleration sensor as an example. First, the staff can install the acquisition device 101 as an acceleration sensor on the acquisition point of the mechanical arm, so that when the mechanical arm moves at multiple rotational speeds, the acquisition device 101 as an acceleration sensor can collect the vibration signals corresponding to each rotational speed, and send the vibration signals to the processing device 102 through the data acquisition box.
[0078] It should be understood that the acquisition device 101 can perform sampling according to a preset sampling frequency, that is, the robotic arm will correspond to multiple motion signals at each rotation speed. For the acceleration sensor, the robotic arm will correspond to multiple acceleration signals, i.e., vibration signals, at each rotation speed.
[0079] The processing device 102 can pre-process according to the following example of the present application to obtain the target support vector data description model, and pre-store the target support vector data description model in an associated memory. Based on this, after the processing device 102 obtains the motion signals corresponding to the robotic arm to be tested at multiple rotation speeds, it obtains the input feature matrix corresponding to the robotic arm to be tested according to the following example, and then inputs the input feature matrix into the target support vector data description model to obtain the operating state of the robotic arm to be tested, where the operating state may include two conditions: a normal state and an abnormal state.
[0080] The training method of the support vector data description model mentioned in this application is illustrated as follows with reference to the accompanying drawings. Figure 2 A flow chart of a training method for a support vector data description model provided in an embodiment of the present application. Figure 2 As shown, the method may include:
[0081] S201, obtaining motion signals corresponding to at least one sample robot arm at multiple rotation speeds, and state labels corresponding to each sample robot arm.
[0082] The sample robot arm is a robot arm with a known operating state. In an exemplary embodiment, motion signals corresponding to multiple sample robot arms at multiple speeds, such as vibration signals, can be screened out from a database storing historical data according to actual needs. Figure 1 The motion signals corresponding to the multiple sample manipulators at multiple rotation speeds are obtained in a manner. It should be noted that the sample manipulators are manipulators that move according to the same motion strategy.
[0083] Here, a sample robot arm is used as an example for explanation. The motion strategy of the sample robot arm is V1-V2-V3, that is, it moves with V1 first, then with V2, and finally with V3. It should be noted that this application does not limit the number of sample robots, nor the number of rotation speeds. The state label corresponding to the sample robot arm is the motion state corresponding to the sample robot arm mentioned above. 0 can be used to represent an abnormal state, and 1 can be used to represent a normal state.
[0084] The motion signals corresponding to each sample mechanical arm at each rotation speed and the state labels corresponding to each sample mechanical arm can be stored in association with each other in a key value storage manner. When the motion signal is a vibration signal, there can be multiple acceleration data corresponding to each rotation speed.
[0085] S202. Determine the energy entropy ratio corresponding to each sample robot arm at each rotational speed according to the motion signal corresponding to each sample robot arm at each rotational speed, and construct a motion feature matrix according to the energy entropy ratio corresponding to each sample robot arm at each rotational speed.
[0086] Take the motion signal corresponding to a sample robot arm at a rotation speed, such as acceleration data (x[i]) as an example for explanation. Assuming that there are N acceleration data (x[i]) corresponding to the rotation speed, then the energy entropy corresponding to the rotation speed can be obtained based on the N acceleration data (x[i]). Similarly, the energy entropy ratio corresponding to the sample robot arm at other rotation speeds can also be obtained. Finally, the energy entropy ratio corresponding to each sample robot arm at each rotation speed can be obtained. In an exemplary manner, each row of the motion feature matrix can be used to characterize the energy entropy ratio corresponding to each sample robot arm at each rotation speed, and each column can be used to characterize the energy entropy ratio corresponding to each sample robot arm at the same rotation speed. Conversely, the motion feature matrix can be constructed using the corresponding relationship between the rows and columns of the motion feature matrix and the energy entropy ratio corresponding to each sample robot arm at each rotation speed. The motion feature matrix v can be shown as follows:
[0087]
[0088] Among them, v a represents the ath sample robot, v ab It represents the energy entropy ratio of the a-th sample robot in the b-th speed range.
[0089] S203, performing feature fusion processing on the motion feature matrix based on the principal component analysis algorithm to obtain a key parameter matrix.
[0090] S204: Construct a training sample set according to the key parameter matrix.
[0091] Among them, the number of eigenvectors in the key parameter matrix meets the preset conditions. The principal component analysis (PCA) algorithm is a transformation combination of feature arrays, which converts a set of eigenvectors containing related characteristics into a set of eigenvectors that do not have a linear correlation. Usually, this new set of eigenvectors that do not have a linear correlation is called the principal component. In other words, the number of eigenvectors (principal components) in the key parameter matrix meets the preset conditions.
[0092] The feature fusion processing of the motion feature matrix can be understood as the mutual fusion of the energy entropy ratios corresponding to each sample robot at each rotation speed. The fusion process may include determining the covariance matrix v′ corresponding to the motion feature matrix v, determining the eigenvalues of the covariance matrix v′ and the eigenvectors corresponding to each eigenvalue, etc. For details, please refer to the relevant content of the principal component analysis algorithm, which will not be explained here.
[0093] Each column in the key parameter matrix is a eigenvector corresponding to an eigenvalue selected based on a preset condition, and the number of eigenvalues included in each eigenvector is consistent with the number of sample robotic arms.
[0094] After the key parameter matrix is determined, the features in the feature vector in the same row can be combined into a training sample according to the actual training requirements, and multiple training samples can be combined into a training sample set. It can be seen that a small number of features are finally used to represent the motion information of the sample robot at multiple speeds, that is, the amount of data is reduced, which can improve the efficiency of subsequent training models.
[0095] S205 , obtaining a target support vector data description model based on the training sample set and the state label corresponding to each training sample in the training sample set.
[0096] Among them, the target support vector data description model is used to detect the operating state of the robotic arm to be tested based on the motion signals corresponding to the robotic arm to be tested at multiple rotation speeds. In other words, the target support vector data description model can be used to evaluate the operating state of the robotic arm to be tested, and the evaluation result may be an abnormal state or a normal state.
[0097] According to the above description, the number of rows in the key parameter matrix is consistent with the number of rows in the motion feature matrix, that is, the key parameter matrix includes a rows, and the features corresponding to each row can constitute a training sample. At the same time, the state label corresponding to each sample robot arm corresponds to each row of the key parameter matrix, and then the state label corresponding to each training sample can be obtained.
[0098] Each training sample is used as the input of the initial support vector data description model, and the state label corresponding to each training sample is used as the output of the initial support vector data description model to train the initial support vector data description model. When the training conditions are met, the target support vector data description model is obtained through training.
[0099] In summary, in the training method of the support vector data description model provided in the present application, the motion feature matrix containing the energy entropy ratio corresponding to each rotational speed of the robot arm can be subjected to feature fusion processing through the principal component analysis algorithm, so that the features in the key parameter matrix contain relevant information of the motion signal corresponding to the robot arm at multiple rotational speeds, and finally the target support vector data description model is obtained by training the training sample set constructed by the key parameter matrix, so that the target support vector data description model has the ability to analyze the vibration quality of the robot arm under multi-speed conditions. In other words, finally, the operating state of the robot arm to be tested is detected based on the target support vector data description model, and the overall operating state of the robot arm to be tested under multi-speed conditions can be comprehensively evaluated.
[0100] Figure 3 A flowchart of another method for training a support vector data description model provided in an embodiment of the present application. Optionally, Figure 3 As shown, the target support vector data description model is obtained by training based on the training sample set and the state labels corresponding to each training sample in the training sample set, including:
[0101] S301, using a grid search algorithm to determine target Gaussian kernel parameters and target penalty parameters.
[0102] An exemplary method is to first set the search range and search step of the search variable of the grid search algorithm, wherein the search variable includes a Gaussian kernel parameter and a penalty parameter, and the Gaussian kernel parameter and the penalty parameter may correspond to a search range respectively, and the search step corresponding to the Gaussian kernel parameter and the penalty parameter may be, for example, 10. It should be noted that the present application does not limit the search range and search step. The training sample set is tested by a cross-validation method, the parameters in the training sample set are arranged and combined to generate a grid, and a search is performed according to the search compensation to obtain the combination with the highest accuracy, and the Gaussian kernel parameter and the penalty parameter in the combination are called the target Gaussian kernel parameter σ and the target penalty parameter C.
[0103] S302: construct an initial support vector data description model based on target Gaussian kernel parameters and target penalty parameters.
[0104] S303: Train the initial support vector data description model based on the training sample set and the state label corresponding to each training sample in the training sample set to obtain a target support vector data description model.
[0105] After the target Gaussian kernel parameter σ and the target penalty parameter C are determined, the target Gaussian kernel parameter σ and the target penalty parameter C can be configured into the parameters corresponding to the initial support vector data description model, thereby obtaining the initial support vector data description model. Each training sample in the training sample set is input into the initial support vector data description model respectively, and the state label corresponding to each training sample is used as the output of the initial support vector data description model to train the initial support vector data description model to obtain the target support vector data description model. The grid search algorithm is used to search and optimize the Gaussian kernel parameters and penalty parameters, which can improve the accuracy and efficiency of the target support vector data description model obtained by training.
[0106] Figure 4 A flowchart of another method for training a support vector data description model provided in an embodiment of the present application. Optionally, Figure 4 As shown, the motion feature matrix is subjected to feature fusion processing based on the principal component analysis algorithm to obtain a key parameter matrix, including:
[0107] S401, normalize the motion feature matrix by column to obtain an original feature matrix.
[0108] Among them, any row in the motion feature matrix is used as an example for explanation. According to the energy entropy ratio corresponding to each rotation speed in the row, the mean energy entropy ratio corresponding to the row is obtained. The energy entropy ratio corresponding to each rotation speed in the row minus the mean energy entropy ratio corresponding to the row is the normalization processing of the row. The normalization processing of other rows of the motion feature matrix can refer to the above description, and finally the original feature matrix can be obtained. The motion feature matrix is normalized, which can eliminate the problem of large differences in energy entropy ratios corresponding to different rotation speeds, so as to improve the stability of the target support vector data description model obtained by training.
[0109] S402: Perform feature fusion processing on the original feature matrix based on the principal component analysis algorithm to obtain a fused feature matrix.
[0110] Among them, the covariance matrix v' of the original feature matrix can be calculated first, and then the eigenvalues of the covariance matrix v' can be determined. The eigenvalues may include multiple eigenvalues, and the eigenvectors corresponding to each eigenvalue are determined. According to the order of eigenvalues from small to large, the corresponding eigenvectors are arranged in columns to form a fused feature matrix, that is, the first column in the fused feature matrix is the eigenvector corresponding to the smallest eigenvalue, and the last column in the fused feature matrix is the eigenvector corresponding to the largest eigenvalue.
[0111] S403. Determine the cumulative variance contribution rate corresponding to each eigenvector according to the eigenvalue corresponding to each eigenvector in the fused feature matrix.
[0112] Among them, the eigenvalue can be used i To express it, the eigenvalues λ′ are determined by i The corresponding cumulative variance contribution rate (CPV p ):
[0113]
[0114] Where m represents the number of eigenvalues corresponding to the fused feature matrix, and p represents the first p eigenvalues. CPV p Represents the cumulative variance contribution rate of the first p principal components (eigenvectors corresponding to eigenvalues).
[0115] According to the cumulative variance contribution rate (CPV p ) can be used to calculate the cumulative variance contribution rate corresponding to each eigenvector in the fusion feature matrix one by one.
[0116] S404: Filter out target feature vectors that meet preset conditions from the feature vectors of the fused feature matrix according to the cumulative variance contribution rate corresponding to each feature vector.
[0117] S405. Construct a key parameter matrix using the target feature vector.
[0118] Assuming that the fusion feature matrix includes eigenvectors corresponding to 5 eigenvalues, according to the cumulative variance contribution rate (CPV p The cumulative variance contribution rates obtained by the calculation methods of ) are shown in Table 1 below:
[0119] Table 1
[0120]
[0121] The preset condition is that the eigenvector whose cumulative variance contribution rate is greater than 90% for the first time and its previous eigenvectors are taken as target eigenvectors.
[0122] As can be seen from the above table, when P is equal to 3, the corresponding cumulative variance contribution rate is greater than 90%, so the eigenvectors corresponding to the first column, the second column, and the third column in the fused feature matrix are used as target eigenvectors. Then, the target eigenvectors are constructed into eigenvectors in the key parameter matrix in the order of the first column, the second column, and the third column. For example, the first column in the key parameter matrix is the first column in the fused feature matrix.
[0123] In this way, the eigenvectors in the key parameter matrix can cover most of the information of the original input data. On the basis of reducing the amount of data, it will not affect the accuracy of the target support vector data description model obtained by subsequent training.
[0124] Optionally, constructing a training sample set according to the key parameter matrix includes: dividing the key parameter matrix by rows to obtain a plurality of training samples; and combining the plurality of training samples into a training sample set.
[0125] Among them, each row in the key parameter matrix can be used as a training sample. According to the number requirements of training samples in the training sample set and the number requirements of test samples in the test sample set, the training samples can be divided into training samples in the training sample set and test samples in the test sample set. It should be noted that this application does not limit the number of training samples and the number of test samples.
[0126] Figure 5 A flowchart of a training method for a support vector data description model provided in an embodiment of the present application. Optionally, Figure 5 As shown, the above-mentioned method of determining the energy entropy ratio corresponding to each sample mechanical arm at each rotational speed according to the motion signal corresponding to each sample mechanical arm at each rotational speed includes:
[0127] S501 . Determine the root mean square and spectral permutation entropy corresponding to each sample robot arm at each rotational speed according to the motion signal corresponding to each sample robot arm at each rotational speed.
[0128] S502. The ratio of the root mean square value corresponding to each sample robot arm at each rotation speed to the spectral arrangement entropy is used as the energy entropy ratio corresponding to each sample robot arm at each rotation speed.
[0129] Here, the motion signal corresponding to a sample robot arm at a rotation speed is taken as an example for explanation. The motion signal corresponding to the sample robot arm at the rotation speed can be represented by (x[i]). The RMS corresponding to the sample robot arm at the rotation speed can be solved by the following formula:
[0130]
[0131] Spectrum Permutation Entropy (SPE) is the permutation entropy of the signal spectrum. For the vibration signal x[n], after fast Fourier transform, its spectrum Fs(k) is obtained, as shown in the following formula. Then, the permutation entropy of the signal spectrum is calculated using the permutation entropy calculation method to obtain the signal's spectral permutation entropy HSP:
[0132]
[0133] H SP =H P (F s (K))
[0134] Spectral permutation entropy can reflect the complexity and stability of the spectrum signal. When the spectral permutation entropy value is high, it means that the spectrum is highly complex and has a disorderly distribution; otherwise, it means that the spectrum is less complex and has an orderly distribution.
[0135] After the root mean square RMS and spectral permutation entropy HSP corresponding to the sample manipulator at the rotation speed are determined, the energy entropy ratio EER corresponding to the sample manipulator at the rotation speed can be obtained by the following formula:
[0136]
[0137] Similarly, the above description can be referred to to obtain the energy entropy ratio corresponding to each sample robot arm at each rotation speed.
[0138] Optionally, the above-mentioned acquisition of motion signals corresponding to at least one sample robotic arm at multiple rotational speeds includes: performing motion state segmentation processing on the initial motion signals corresponding to at least one sample robotic arm at multiple rotational speeds, to obtain motion signals corresponding to the multiple rotational speeds of each sample robotic arm in the motion state; and obtaining motion signals corresponding to each sample robotic arm at multiple rotational speeds based on the motion signals corresponding to the multiple rotational speeds of each sample robotic arm in the motion state.
[0139] In the process of collecting motion signals of the robot arm, a higher sampling rate is usually used to obtain more initial vibration signals, so the amount of initial vibration data collected is large, and it contains both motion state and static state. The motion state segmentation method can be understood as detecting and segmenting the motion state and static state of the initial vibration signal of the robot arm, so as to extract the vibration signal containing only the motion state.
[0140] Here, an initial motion signal corresponding to a sample robot arm at a rotation speed is used as an example for explanation. It can be understood that the sample robot arm has multiple initial motion signals corresponding to the rotation speed. In an achievable embodiment, the multiple initial motion signals corresponding to the rotation speed can be processed by removing the mean value to obtain multiple processed initial motion signals corresponding to the rotation speed;
[0141] The multiple processed initial motion signals corresponding to the rotation speed are framed and feature calculated, wherein the processed initial motion signal can be divided into several shorter frame segments through frame processing, which is convenient for subsequent segmented processing of the processed initial motion signal, and the initial motion signal after frame processing is processed by selecting short-time energy and short-time kurtosis as characteristic values, and then median filtering, threshold calculation, endpoint judgment, threshold update and other processing are performed, and finally the vibration signal of the sample manipulator at multiple rotation speeds in the motion state can be processed. The target support vector data description model obtained by training the vibration signal in the motion state in the later stage has high accuracy and can also improve the training efficiency.
[0142] The following is an explanation of the application process of the target support vector data description model.
[0143] Figure 6 The following is a flow chart of a method for detecting the motion state of a robotic arm provided in an embodiment of the present application. Figure 6 As shown, the method includes:
[0144] S601, obtaining motion signals corresponding to the robot arm to be tested at multiple rotation speeds.
[0145] S602. Determine the energy entropy ratio corresponding to each rotation speed of the robotic arm under test according to the motion signal corresponding to each rotation speed of the robotic arm under test.
[0146] Among them, based on Figure 1The acquisition environment obtains the initial motion signals corresponding to the robotic arm to be tested at multiple rotational speeds, and then performs motion state segmentation processing on the initial motion signals corresponding to the robotic arm to be tested at each rotational speed. The specific content of the motion state segmentation processing can be referred to the description of the relevant parts above and will not be explained here. That is to say, the motion signals corresponding to the robotic arm to be tested at each rotational speed can be understood as the motion signals corresponding to each rotational speed of the robotic arm to be tested in the motion state.
[0147] Taking the motion signal corresponding to a rotation speed of the mechanical arm under test as an example, the rotation speed may correspond to multiple vibration signals, and the energy entropy ratio corresponding to the rotation speed is obtained according to the root mean square and spectral arrangement entropy corresponding to the rotation speed determined by each vibration signal. Similarly, the energy entropy ratio corresponding to each rotation speed of the mechanical arm under test can be obtained.
[0148] S603: construct a feature matrix to be input according to the energy entropy ratio corresponding to each rotation speed of the robot arm to be tested and the principal component analysis algorithm.
[0149] Among them, a motion feature vector can be constructed according to the energy entropy ratio corresponding to the robot arm to be tested at each rotation speed, and the motion feature vector is subjected to feature fusion processing based on the principal component algorithm to obtain the feature matrix to be input. The process of feature fusion of the motion feature vector can refer to the process of feature fusion of the motion feature matrix mentioned above, which will not be explained here.
[0150] S604, inputting the feature matrix to be input into the target support vector data description model to obtain the operating state of the robot arm to be tested.
[0151] After constructing the input feature matrix, the input feature matrix can be input into the input layer of the target support vector data description model, and then the target support vector data description model processes the information in the input feature matrix, and finally outputs the detection result. If the detection result is 0, it means that the operating state of the robot arm to be tested is abnormal, and if the detection result is 1, it means that the operating state of the robot arm to be tested is normal. Among them, the target support vector data description model can be trained with reference to the above-mentioned relevant content, which will not be explained here.
[0152] It can be seen that the target support vector data description model with the ability to analyze the vibration quality of the robotic arm under multi-speed conditions is used to detect the operating status of the robotic arm to be tested. This can comprehensively evaluate the overall operating status of the robotic arm to be tested under multi-speed conditions, making the evaluation results more consistent with the actual vibration quality of the robotic arm to be tested.
[0153] Optionally, the above-mentioned constructing the feature matrix to be input according to the energy entropy ratio corresponding to the robotic arm to be tested at each rotational speed and the principal component analysis algorithm includes: standardizing the energy entropy ratio corresponding to the robotic arm to be tested at each rotational speed by column to obtain a standard feature vector; performing feature fusion processing on the standard feature vector based on the principal component analysis algorithm to obtain a fused feature matrix; determining the cumulative variance contribution rate corresponding to each feature vector in the fused feature matrix according to the eigenvalue corresponding to each feature vector in the fused feature matrix; screening out the target feature vector that meets the preset conditions from the feature vector of the fused feature matrix according to the cumulative variance contribution rate corresponding to each feature vector; and constructing the feature matrix to be input using the target feature vector.
[0154] According to the energy entropy ratio corresponding to each rotation speed of the robot arm to be tested, the mean value of the energy entropy ratio is obtained, and the energy entropy ratio corresponding to each rotation speed minus the mean value of the energy entropy ratio is standardized, and the energy entropy ratio after the standardized processing is constructed as a standard feature vector. For other contents, please refer to the above Figure 4 The relevant part description will not be explained here.
[0155] Figure 7 A schematic diagram of the structure of a training device for supporting a vector data description model provided in an embodiment of the present application. Figure 7 As shown, the device comprises:
[0156] An acquisition module 701 is used to acquire motion signals corresponding to at least one sample robot arm at multiple rotation speeds, and a state label corresponding to each sample robot arm;
[0157] A determination module 702 is used to determine the energy entropy ratios corresponding to each sample mechanical arm at each rotational speed according to the motion signals corresponding to each sample mechanical arm at each rotational speed, and to construct a motion feature matrix according to the energy entropy ratios corresponding to each sample mechanical arm at each rotational speed;
[0158] A fusion processing module 703 is used to perform feature fusion processing on the motion feature matrix based on a principal component analysis algorithm to obtain a key parameter matrix;
[0159] A construction module 704 is used to construct a training sample set according to the key parameter matrix;
[0160] The training module 705 is used to train a target support vector data description model based on a training sample set and a state label corresponding to each training sample in the training sample set.
[0161] Optionally, the training module 705 is specifically used to determine the target Gaussian kernel parameters and the target penalty parameters using a grid search algorithm; construct an initial support vector data description model based on the target Gaussian kernel parameters and the target penalty parameters; train the initial support vector data description model based on the training sample set and the state labels corresponding to each training sample in the training sample set to obtain the target support vector data description model.
[0162] Optionally, the fusion processing module 703 is specifically used to standardize the motion feature matrix by column to obtain the original feature matrix; perform feature fusion processing on the original feature matrix based on the principal component analysis algorithm to obtain a fused feature matrix; determine the cumulative variance contribution rate corresponding to each eigenvalue corresponding to each eigenvector in the fused feature matrix; screen out the target feature vector that meets the preset conditions from the eigenvector of the fused feature matrix according to the cumulative variance contribution rate corresponding to each eigenvector; and use the target feature vector to construct a key parameter matrix.
[0163] Optionally, the construction module 704 is specifically configured to divide the key parameter matrix by rows to obtain a plurality of training samples; and combine the plurality of training samples into a training sample set.
[0164] Optionally, determination module 702 is specifically used to determine the root mean square and spectral permutation entropy corresponding to each sample robotic arm at each rotational speed based on the motion signals corresponding to each sample robotic arm at each rotational speed; and use the ratio of the root mean square and spectral permutation entropy corresponding to each sample robotic arm at each rotational speed as the energy entropy ratio corresponding to each sample robotic arm at each rotational speed.
[0165] Optionally, the acquisition module 701 is specifically used to perform motion state segmentation processing on the initial motion signals corresponding to at least one sample robotic arm at multiple rotational speeds, and obtain motion signals corresponding to the multiple rotational speeds of each sample robotic arm under the motion state; based on the motion signals corresponding to the multiple rotational speeds of each sample robotic arm under the motion state, obtain the motion signals corresponding to each sample robotic arm at multiple rotational speeds.
[0166] The embodiment of the present application provides a device for detecting the operating state of a robotic arm, the device comprising:
[0167] An acquisition module 701 is used to acquire motion signals corresponding to the robot arm to be tested at multiple rotation speeds;
[0168] A determination module 702 is used to determine the energy entropy ratio corresponding to each rotation speed of the mechanical arm to be tested according to the motion signal corresponding to each rotation speed of the mechanical arm to be tested;
[0169] A construction module 704 is used to construct a feature matrix to be input according to the energy entropy ratio corresponding to each rotation speed of the robot arm to be tested and the principal component analysis algorithm;
[0170] An input module is used to input the feature matrix to be input into the target support vector data description model to obtain the operating state of the robot arm to be tested, wherein the target support vector data description model is constructed based on the training method of the above support vector data description model.
[0171] Optionally, construction module 704 is specifically used to standardize the energy-entropy ratio corresponding to each rotation speed of the robot arm to be tested to obtain a standard eigenvector; perform feature fusion processing on the standard eigenvector based on the principal component analysis algorithm to obtain a fused feature matrix; determine the cumulative variance contribution rate corresponding to each eigenvector in the fused feature matrix according to the eigenvalue corresponding to each eigenvector in the fused feature matrix; select the target eigenvector that meets the preset conditions from the eigenvector of the fused feature matrix according to the cumulative variance contribution rate corresponding to each eigenvector; and use the target eigenvector to construct the feature matrix to be input.
[0172] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0173] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0174] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device can be the processing device mentioned above. Figure 8 As shown, the electronic device may include: a processor 801, a storage medium 802 and a bus 803, the storage medium 802 stores machine-readable instructions executable by the processor 801, when the electronic device is running, the processor 801 communicates with the storage medium 802 via the bus 803, and the processor 801 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0175] Optionally, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiment are executed.
[0176] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0177] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0178] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0179] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[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 above description is only the preferred embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above description is only the preferred embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A training method for supporting vector data description models, It is characterized in that The method comprises: Acquire motion signals corresponding to at least one sample mechanical arm at multiple rotational speeds, and state labels corresponding to each of the sample mechanical arms; According to the motion signals corresponding to each of the sample manipulators at each rotational speed, the energy entropy ratios corresponding to each of the sample manipulators at each rotational speed are determined, and a motion feature matrix is constructed according to the energy entropy ratios corresponding to each of the sample manipulators at each rotational speed; Performing feature fusion processing on the motion feature matrix based on a principal component analysis algorithm to obtain a key parameter matrix, wherein the number of feature vectors in the key parameter matrix meets a preset condition; Constructing a training sample set according to the key parameter matrix; A target support vector data description model is obtained based on the training sample set and the state labels corresponding to each training sample in the training sample set, wherein the target support vector data description model is used to detect the operating state of the mechanical arm to be tested based on the motion signals corresponding to the mechanical arm to be tested at multiple rotation speeds; The target support vector data description model is obtained by training based on the training sample set and the state labels corresponding to each training sample in the training sample set, including: A grid search algorithm is used to determine the target Gaussian kernel parameters and target penalty parameters; Based on the target Gaussian kernel parameter and the target penalty parameter, construct an initial support vector data description model; Training the initial support vector data description model based on the training sample set and the state label corresponding to each training sample in the training sample set to obtain the target support vector data description model; The motion feature matrix is subjected to feature fusion processing based on the principal component analysis algorithm to obtain a key parameter matrix, including: Standardizing the motion feature matrix by columns to obtain an original feature matrix; Performing feature fusion processing on the original feature matrix based on a principal component analysis algorithm to obtain a fused feature matrix; Determine the cumulative variance contribution rate corresponding to each eigenvector in the fused feature matrix according to the eigenvalue corresponding to each eigenvector; According to the cumulative variance contribution rate corresponding to each of the eigenvectors, a target eigenvector that meets the preset condition is selected from the eigenvectors of the fused feature matrix; Using the target feature vector, construct the key parameter matrix; Determining the energy entropy ratio corresponding to each of the sample mechanical arms at each rotational speed according to the motion signals corresponding to each of the sample mechanical arms at each rotational speed includes: Determine the root mean square and spectral permutation entropy corresponding to each of the sample mechanical arms at each rotational speed according to the motion signals corresponding to each of the sample mechanical arms at each rotational speed; The ratio of the root mean square corresponding to each of the sample mechanical arms at each rotation speed to the spectral arrangement entropy is used as the energy entropy ratio corresponding to each of the sample mechanical arms at each rotation speed; The step of obtaining a motion signal corresponding to at least one sample mechanical arm at multiple rotation speeds includes: Performing motion state segmentation processing on the acquired initial motion signal corresponding to at least one sample mechanical arm at multiple rotational speeds to obtain motion signals corresponding to multiple rotational speeds of each sample mechanical arm under the motion state; According to the motion signals corresponding to the multiple rotational speeds of each sample robot arm in the motion state, the motion signals corresponding to each sample robot arm at the multiple rotational speeds are obtained.
2. The method according to claim 1, It is characterized in that The step of constructing a training sample set according to the key parameter matrix includes: Dividing the key parameter matrix by rows to obtain multiple training samples; A plurality of training samples are combined into the training sample set.
3. A method for detecting the operating status of a robotic arm, It is characterized in that The method comprises: Obtain motion signals corresponding to the robot arm under test at multiple rotation speeds; Determine the energy entropy ratio corresponding to each rotation speed of the mechanical arm to be tested according to the motion signal corresponding to each rotation speed of the mechanical arm to be tested; According to the energy entropy ratio corresponding to each rotation speed of the robot arm to be tested and the principal component analysis algorithm, a feature matrix to be input is constructed; The feature matrix to be input is input into a target support vector data description model to obtain the operating state of the robotic arm to be tested, wherein the target support vector data description model is constructed based on the training method of the support vector data description model described in any one of claims 1-2.
4. The method according to claim 3, It is characterized in that The step of constructing a feature matrix to be input according to the energy entropy ratio corresponding to each rotation speed of the robot arm to be tested and the principal component analysis algorithm comprises: Standardizing the energy entropy ratios corresponding to the mechanical arm to be tested at each rotation speed to obtain a standard feature vector; Performing feature fusion processing on the standard feature vector based on the principal component analysis algorithm to obtain a fusion feature matrix; According to the eigenvalues corresponding to the eigenvectors in the fusion feature matrix, the cumulative variance contribution rate corresponding to each eigenvector is determined; According to the cumulative variance contribution rate corresponding to each of the eigenvectors, a target eigenvector that meets the preset condition is selected from the eigenvectors of the fused feature matrix; The target feature vector is used to construct the feature matrix to be input.
5. An electronic device, It is characterized in that include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the training method of the support vector data description model as described in any one of claims 1-2 or the steps of the method for detecting the operating status of a robotic arm as described in any one of claims 3-4.
6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the computer program executes the steps of the training method of the support vector data description model as described in any one of claims 1-2 or the operating status detection method of the robotic arm as described in any one of claims 3-4.
Citation Information
Patent Citations
Method for extracting and classifying features of high-voltage circuit breaker based on combination of vibration and current
CN109188258A
State evaluation method for high-voltage circuit breaker based on short-time energy entropy ratio and DTW of vibration signals
CN110824344A
