A motor data cleaning method and system

By analyzing the multi-dimensional operating data of the two-dimensional oscillating mirror turntable, quantifying the degree of control and response dimensions, dividing the stages and constructing a connected graph, it solves the poor cleaning effect caused by the differences in data changes under different working processes in the traditional motor data cleaning method. problem, achieving more accurate identification and removal of abnormal data.

CN118410284BActive Publication Date: 2024-09-13XIAN GAOSHANG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410881958.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-13
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

Traditional motor data cleaning methods have poor cleaning effects due to differences in data changes under the same working state during different working processes, leading to errors in abnormal data analysis.

Method used

By acquiring multi-dimensional operating data of the two-dimensional mirror turntable, analyzing the change trend of each dimension, obtaining the initial cutoff point and data segment, quantifying the degree of control and response dimensions, performing cluster analysis and stage division, and constructing a connected graph to identify Abnormal data.

Benefits of technology

It effectively avoids the problem of poor cleaning results caused by differences in the same working status data under different working processes, and improves the accuracy and effect of motor data cleaning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410284B
    Figure CN118410284B
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and proposes a motor data cleaning method and system, including: obtaining operation data of multiple dimensions during the operation of a motor of a two-dimensional swing mirror turntable; obtaining the degree of control of each dimension; obtaining several response dimensions of each controlled dimension; obtaining several stages of each controlled dimension; obtaining the stage information degree of each initial data segment of each controlled dimension; obtaining several data segment combinations of each controlled dimension under each stage combination length; obtaining the optimal stage combination length; obtaining several processes of each controlled dimension; constructing a connectivity graph for all operation data of the same dimension and the same process, obtaining the comprehensive abnormality degree of each operation data of each dimension, and then completing the cleaning of the operation data of each dimension. The present invention aims to solve the problem that the data cleaning effect is poor due to the difference in data changes of motors under the same working state in different working processes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a motor data cleaning method and system. Background Art

[0002] The motor is one of the key components of the turntable system, which directly affects the realization of the system performance indicators. The torque motor is a special motor developed by combining a servo motor and a drive motor. Its working principle, basic structure and basic characteristics are basically the same as those of a servo motor. It is used directly to drive the load, and the speed of the load is directly adjusted by the input control voltage signal.

[0003] In traditional motor data cleaning methods, since abnormal data has characteristics different from normal data, the cleaning process is often achieved by identifying abnormal data, so clustering methods are often used to identify abnormal data. The dynamic split clustering algorithm based on the connected graph constructs a connected graph for the data and sets a threshold for dynamic splitting, thereby obtaining several connected subgraphs to identify abnormal data. However, the two-dimensional swing mirror turntable contains a series of pitch and rotation operations, so the same working state may be in different working processes. Different working processes will lead to different data change trends under the same working state. If data abnormality analysis is performed based on the same working state, it will lead to errors in the construction of the connected graph, which will lead to errors in the analysis of abnormal data, thereby reducing the cleaning effect of the motor data. Summary of the invention

[0004] The present invention provides a motor data cleaning method and system to solve the problem that the motor under the same working state has different data changes in different working processes, resulting in poor data cleaning effect. The technical solution adopted is as follows:

[0005] The present invention proposes a motor data cleaning method, which comprises the following steps:

[0006] Obtaining the operation data of multiple dimensions during the operation of the motor of the two-dimensional oscillating mirror turntable;

[0007] According to the change trend of the operating data of each dimension, several initial truncation points and several initial data segments of each dimension are obtained; according to the difference between the change trends of different initial data segments of the same dimension, the control degree of each dimension is obtained, and then the controlled dimension and the uncontrolled dimension are obtained; based on the similarity relationship of the operating data between the controlled dimension and the uncontrolled dimension, several response dimensions of each controlled dimension and several truncated data segments of each response dimension under the corresponding controlled dimension are obtained; the initial data segments of each controlled dimension are clustered and analyzed respectively to obtain several stages of each controlled dimension;

[0008] According to the change of the running data in each initial data segment of each controlled dimension and the difference of the change of the running data in the truncated data segment of the response dimension, the stage information degree of each initial data segment of each controlled dimension is obtained; based on different stage combination lengths, all the initial data segments of each controlled dimension are divided to obtain several data segment combinations of each controlled dimension under each stage combination length;

[0009] According to the stage information degree of the initial data segment in each data segment combination under the same stage combination length, as well as the controlled dimension and the response dimension, the preferred degree of each stage combination length is obtained, and then the optimal stage combination length is obtained; based on several data segment combinations under the optimal stage combination length, several processes of each controlled dimension are obtained;

[0010] A connectivity graph is constructed for all operating data of the same process in the same dimension. Based on the similarity of node distribution in the connectivity graph of different processes in the same dimension, the comprehensive abnormality degree of each operating data in each dimension is obtained, and then the operating data in each dimension is cleaned.

[0011] Optionally, the method of obtaining the degree of control of each dimension includes:

[0012] For any dimension, the DTW distance is calculated for any two initial data segments in the dimension, and the inverse proportional value of the mean DTW distance of all any two initial data segments in the dimension is used as the controlled factor of the dimension;

[0013] The controlled factors of all dimensions are linearly normalized, and the results are used as the control degree of each dimension.

[0014] Optionally, the obtaining of several response dimensions of each controlled dimension includes a specific method as follows:

[0015] For the operation data of any dimension, the operation data is arranged in chronological order, and the operation data curve of the dimension is obtained;

[0016] For any controlled dimension, the cosine similarity between the operating data curve of the controlled dimension and the operating data curve of each uncontrolled dimension is calculated as the response degree of each uncontrolled dimension to the controlled dimension; if the response degree of any uncontrolled dimension to the controlled dimension is greater than the response threshold, the uncontrolled dimension is taken as the response dimension of the controlled dimension.

[0017] Optionally, the step of obtaining the stage information degree of each initial data segment of each controlled dimension includes the following specific methods:

[0018] For any controlled dimension, calculate the slope of each data point in the running data curve of the controlled dimension; for any initial data segment of the controlled dimension, calculate the slope variance of all data points in the initial data segment, and record it as the degree of change fluctuation of the initial data segment of the controlled dimension;

[0019] Linearly normalize the change fluctuation degree of all the initial data segments of the controlled dimension and the change fluctuation degree of all the truncated data segments in all the response dimensions of the controlled dimension, and use the result as the change fluctuation factor of each initial data segment or truncated data segment; for any initial data segment and truncated data segments with the same order value in each response dimension, count the number of truncated data segments whose change fluctuation factor is greater than the change fluctuation threshold, and use the ratio of the number to the number of response dimensions of the controlled dimension as the change information factor of the initial data segment of the controlled dimension;

[0020] The product of the change fluctuation factor of the initial data segment and the change information factor of the initial data segment is used as the stage information degree of the initial data segment of the controlled dimension.

[0021] Optionally, the obtaining of a plurality of data segment combinations of each controlled dimension at each stage combination length includes the following specific methods:

[0022] For all initial data segments of any controlled dimension, starting from the first initial data segment with a step size of 1, any number of initial data segments of a stage combination length constitute a data segment combination, and so on, until the last initial data segment in the obtained data segment combination is the last initial data segment of all initial data segments, and several data segment combinations of the controlled dimension at the stage combination length are obtained.

[0023] Optionally, the step of obtaining the preferred degree of the combined length of each stage includes the following specific methods:

[0024] According to the initial data segments of the controlled dimension and the truncated data segments of the response dimension, the response fluctuation degree of each data segment combination at each stage combination length of each controlled dimension is obtained;

[0025]

[0026] in, Indicates The degree of preference of the combined length of each stage, represents the number of controlled dimensions, Indicates The controlled dimension is The number of data segment combinations under the stage combination length, Indicates The controlled dimension is The length of the combination of stages The mean of the stage information of all initial data segments in the data segment combination, Indicates The controlled dimension is The length of the combination of stages The response fluctuation degree of the combination of data segments, Represents an exponential function with a natural constant as its base.

[0027] Optionally, the response fluctuation degree of each data segment combination of each controlled dimension at each stage combination length is specifically obtained by:

[0028] For any initial data segment in any data segment combination of any controlled dimension at any stage combination length, calculate the cosine similarity between the initial data segment and the corresponding truncated data segment in each response dimension of the controlled dimension, record the mean of all cosine similarities as the response factor of the initial data segment, and take the variance of the response factors of all initial data segments in the data segment combination as the response fluctuation degree of the data segment combination.

[0029] Optionally, the several processes for obtaining each controlled dimension include the following specific methods:

[0030] For any controlled dimension, all initial data segments of the controlled dimension are divided non-overlappingly according to the optimal stage combination length to obtain several segmentation combinations, each of which contains several continuous initial data segments, and each segmentation combination is regarded as a process of the controlled dimension.

[0031] Optionally, the obtaining of the comprehensive abnormality degree of each operating data in each dimension includes the following specific methods:

[0032] For any process connectivity graph of any controlled dimension, obtain the The number of neighbor nodes closest to the node, combined with the The nodes constitute The local connected subgraph of nodes;

[0033] Take any other process of the controlled dimension as the reference process, and add the first process in the connectivity graph of the process The stage corresponding to the initial data segment to which the running data corresponding to each node belongs is taken as the target stage;

[0034] If the reference process includes the target stage, the initial data segment corresponding to the target stage in the reference process is recorded as the reference data segment, and the initial data segment corresponding to the first The node corresponding to the running data with the smallest difference between the running data corresponding to the nodes is taken as the node in the connectivity graph of the process. The comparison node of each node in the reference process;

[0035] If the reference process does not include the target stage, The node with the smallest difference between the running data corresponding to the nodes is taken as the first node in the connectivity graph of the process. The comparison node of each node in the reference process;

[0036] Get the local connected subgraph of each comparison node; calculate the The MCS value of the local connected subgraph of the node and the local connected subgraph of each comparison node, and the average of all MCS values ​​is taken as the first The comprehensive abnormality degree of the running data corresponding to each node.

[0037] The present invention also proposes a motor data cleaning system, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the steps of the above method when executing the computer program.

[0038] The beneficial effects of the present invention are as follows: the present invention quantifies the degree of control of each dimension through the change analysis of the operating data of each dimension, obtains the controlled dimension and its response dimension, and then completes the stage division; then quantifies the stage information degree of the initial data segment, and obtains the data segment combination, and then combines the change of the response relationship between the initial data segments to obtain the optimal stage combination length, completes the process division, and constructs a connectivity graph based on the process, and finally completes the data cleaning; the operating data of each dimension is preliminarily divided into data segments by extracting extreme points, and the degree of control is quantified based on the difference between the data segments to reflect whether the change of the operating data is regular, and then the controlled dimension and the uncontrolled dimension are obtained, and then the similarity relationship of the change trend between the uncontrolled dimension and the controlled dimension is analyzed to obtain the response dimension, which reflects the possibility that the uncontrolled dimension is affected by the change of the controlled dimension, and the controlled dimension is divided into stages to provide a basis for the subsequent process of obtaining the controlled dimension; by The change fluctuations of the initial data segments in the controlled dimension and the change fluctuations of the truncated data segments in the response dimension of the same order value are analyzed to quantify the stage information degree of the initial data segments, reflecting the amount of stage information contained in each initial data segment; at the same time, the stage combination length is preset to obtain the data segment combination under different stage combination lengths for each controlled dimension, providing a basis for the subsequent acquisition of the optimal stage combination length; by analyzing the stage information degree of the data segment combination under the same stage combination length and the changes in the response relationship between the initial data segment and the truncated data segment, the preferred length of the stage combination length is quantified and the optimal stage combination length is obtained, so that the stages corresponding to each data segment in the optimal stage combination length are more inclined to an overall working process, thereby distinguishing the stages in different working processes; avoiding the problem of poor motor data cleaning effect caused by differences in operating data corresponding to the same working state under different working processes. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be 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 labor.

[0040] Figure 1 A schematic flow chart of a motor data cleaning method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] See also Figure 1 , which shows a flow chart of a motor data cleaning method provided by an embodiment of the present invention, the method comprising the following steps:

[0043] Step S001, obtaining operation data of multiple dimensions during the operation of a motor of a two-dimensional oscillating mirror turntable.

[0044] The purpose of this embodiment is to clean the data generated by the motor during the operation of the two-dimensional swing mirror turntable to identify and remove abnormal data. Therefore, this embodiment first needs to collect the data during the operation of the motor and use it as operation data for subsequent processing.

[0045] Specifically, the two-dimensional oscillating mirror turntable is mainly composed of three parts: a mechanical table body, a turntable control cabinet, and control software. The laser reflection oscillating mirror table body has a common vertical turntable structure, including two frames for pitch and azimuth, a bottom and an axis system. This embodiment collects data in 9 dimensions, including current, voltage, power, speed, torque, shaft power, temperature, vibration and encoder. The collection time interval is set to 1 second. The collected time range is the data during the operation of the motor. The data of each dimension is obtained through the corresponding sensor or directly from the turntable system. The data of the same dimension is digitized, that is, the data of the same dimension is normalized, and the results are obtained as some operating data of each dimension.

[0046] It should be noted that there are several working states in the operation process of the two-dimensional oscillating mirror turntable. The same working state corresponds to the same stage, and there are multiple working processes for the two-dimensional oscillating mirror turntable. The same working process requires the same stage order. For example, in the pitch process, it will rotate first and then pitch, etc., then there is a certain connection between the corresponding stages; therefore, in order to obtain the changes between the connected graphs through the changes between the stages, it is first necessary to obtain the combination of the stages to obtain different processes; and in obtaining the combination of the stages, it is necessary to determine the combination length, and then divide the stages into processes; then, abnormal data analysis is performed based on the data changes in each process.

[0047] Step S002: according to the change trend of the operating data of each dimension, several initial truncation points and several initial data segments of each dimension are obtained; according to the difference between the change trends of different initial data segments of the same dimension, the control degree of each dimension is obtained, and then the controlled dimension and the uncontrolled dimension are obtained; based on the similarity relationship of the operating data between the controlled dimension and the uncontrolled dimension, several response dimensions of each controlled dimension and several truncated data segments of each response dimension under the corresponding controlled dimension are obtained; the initial data segments of each controlled dimension are clustered and analyzed respectively to obtain several stages of each controlled dimension.

[0048] Preferably, in one embodiment of the present invention, a number of initial truncation points and a number of initial data segments of each dimension are obtained according to the change trend of the operating data of each dimension, and the specific method includes:

[0049] For the operating data of any dimension, the operating data are arranged in chronological order, and the operating data curve of the dimension is obtained, wherein the horizontal axis is time and the vertical axis is the value of the operating data; several extreme points of the operating data curve are obtained and recorded as initial truncation points; the first operating data of the dimension is also taken as the initial truncation point, and all the operating data of the dimension are divided into data segments according to the initial truncation point to obtain several initial data segments of the dimension, wherein the initial truncation point is taken as the first operating data in each data segment; several initial truncation points and several initial data segments of each dimension are obtained according to the above method.

[0050] Preferably, in one embodiment of the present invention, the degree of control of each dimension is obtained according to the difference between the change trends of different initial data segments of the same dimension, and then the controlled dimension and the uncontrolled dimension are obtained, including the specific method of:

[0051] For any dimension, the DTW distance is calculated between any two initial data segments in the dimension, and the inverse proportional value of the mean of the DTW distance between all any two initial data segments in the dimension is used as the controlled factor of the dimension. The model shows an inverse proportional relationship. is the input of the model. The implementer can set the inverse proportional function according to the actual situation. The controlled factor of each dimension is obtained according to the above method, and a controlled threshold is preset. The controlled threshold in this embodiment is described as 0.75. The controlled factors of all dimensions are linearly normalized, and the obtained results are used as the control degree of each dimension. If the control degree of any dimension is greater than the controlled threshold, the dimension is regarded as a controlled dimension. If the control degree of any dimension is less than or equal to the controlled threshold, the dimension is regarded as an uncontrolled dimension. Then, several controlled dimensions and uncontrolled dimensions are obtained.

[0052] It should be noted that by analyzing the DTW distance of the initial data segments in the same dimension, if the DTW distance mean is smaller, the change trends between the initial data segments are more similar, the corresponding change regularity of the dimension is greater, and the corresponding degree of control is greater.

[0053] Preferably, in one embodiment of the present invention, based on the similarity relationship between the running data of the controlled dimension and the uncontrolled dimension, a plurality of response dimensions of each controlled dimension and a plurality of truncated data segments of each response dimension under the corresponding controlled dimension are obtained, and the specific method includes:

[0054] For any controlled dimension, the cosine similarity between the operating data curve of the controlled dimension and the operating data curve of each uncontrolled dimension is calculated as the response degree of each uncontrolled dimension to the controlled dimension; a response threshold is preset, and the response threshold in this embodiment is described as 0.65. If the response degree of any uncontrolled dimension to the controlled dimension is greater than the response threshold, the uncontrolled dimension is used as the response dimension of the controlled dimension. If the response degree is less than or equal to the response threshold, it is not used as the response dimension, and several response dimensions of the controlled dimension are obtained; several response dimensions of each controlled dimension are obtained according to the above method.

[0055] It should be noted that for the uncontrolled dimension, by analyzing the similarity between its change trend and that of the controlled dimension, the more similar it is, the more likely it is to be affected by the change of the controlled dimension, and the greater the degree of response, thus obtaining the response dimension.

[0056] Furthermore, for any response dimension of any controlled dimension, all the running data of the response dimension are re-divided into data segments using all the initial truncation points of the controlled dimension, and the obtained data segments are recorded as several truncated data segments of the response dimension under the controlled dimension.

[0057] Preferably, in one embodiment of the present invention, cluster analysis is performed on the initial data segments of each controlled dimension to obtain several stages of each controlled dimension, including the following specific methods:

[0058] Perform DBSCAN clustering on all initial data segments in any controlled dimension, and use the DTW distance between the initial data segments as the distance metric to obtain several clusters. Take all initial data segments in the same cluster as one stage, and obtain several stages of the controlled dimension. Obtain several stages of each controlled dimension using the above method.

[0059] At this point, the operating data of each dimension is preliminarily divided into data segments by extracting extreme points, and the degree of control is quantified based on the differences between the data segments to reflect whether the changes in the operating data are regular, and then the controlled dimensions and uncontrolled dimensions are obtained. The similarity relationship between the changing trends of the uncontrolled dimensions and the controlled dimensions is analyzed to obtain the response dimensions, which reflects the possibility that the uncontrolled dimensions are affected by the changes in the controlled dimensions, and the controlled dimensions are divided into stages to provide a basis for the subsequent process of obtaining the controlled dimensions.

[0060] Step S003: According to the change of the operating data in each initial data segment of each controlled dimension and the difference of the change of the operating data in the truncated data segment of the response dimension, the stage information degree of each initial data segment of each controlled dimension is obtained; based on different stage combination lengths, all the initial data segments of each controlled dimension are divided to obtain several data segment combinations of each controlled dimension under each stage combination length.

[0061] Preferably, in one embodiment of the present invention, the stage information degree of each initial data segment of each controlled dimension is obtained according to the change of the operating data in each initial data segment of each controlled dimension and the change difference of the operating data in the truncated data segment of the response dimension, and the specific method includes:

[0062] For any controlled dimension, the slope of each data point in the operating data curve of the controlled dimension is calculated. It should be noted that the slope calculation is a well-known technology and will not be repeated in this embodiment. The slope of the first data point in the operating data curve is set to the slope of the second data point; for any initial data segment of the controlled dimension, the slope variance of all data points in the initial data segment is calculated, and recorded as the degree of change fluctuation of the initial data segment of the controlled dimension; the slope of each data point in the operating data curve of each response dimension of the controlled dimension is obtained according to the above method, and the degree of change fluctuation of each truncated data segment of each response dimension of the controlled dimension is obtained.

[0063] Furthermore, the change fluctuation degree of all the initial data segments of the controlled dimension and the change fluctuation degree of all the truncated data segments in all the response dimensions of the controlled dimension are linearly normalized, and the result obtained is used as the change fluctuation factor of each initial data segment (truncated data segment); a change fluctuation threshold is preset, and the change fluctuation threshold in this embodiment is described as 0.65. For any initial data segment and truncated data segments with the same order value in each response dimension, the number of truncated data segments whose change fluctuation factor is greater than the change fluctuation threshold is counted, and the ratio of the obtained number to the number of response dimensions of the controlled dimension is used as the change information factor of the initial data segment of the controlled dimension.

[0064] Furthermore, for any initial data segment of the controlled dimension, the product of the change fluctuation factor of the initial data segment and the change information factor of the initial data segment is used as the stage information degree of the initial data segment of the controlled dimension; the stage information degree of each initial data segment of each controlled dimension is obtained according to the above method.

[0065] What needs to be explained is that, for the initial data segment of the controlled dimension, the greater the change in the slope of the data point, the greater the corresponding variance, that is, the degree of fluctuation, the more change information of the corresponding stage contained in the initial data segment, and the greater the stage information degree; at the same time, for several response dimensions, if the truncated data segment of the corresponding order value also has a large degree of fluctuation, and the change in the truncated data segment is affected by the change of the initial data segment of the controlled dimension, by setting the change fluctuation threshold, the truncated data segment with a larger change fluctuation factor is quantified, then the more truncated data segments that meet the threshold condition, the more stage change information is contained in the initial data segment, and the greater the stage information degree.

[0066] Preferably, in one embodiment of the present invention, based on different stage combination lengths, all initial data segments of each controlled dimension are divided to obtain several data segment combinations of each controlled dimension at each stage combination length, including the specific method of:

[0067] For several stages of any controlled dimension, the initial data segments in each stage are numbered in the order of their first appearance, and the numbers of the corresponding stages of all the initial data segments of the controlled dimension are arranged in the order of the initial data segments to obtain the stage number sequence of the controlled dimension.

[0068] Furthermore, several stage combination lengths are preset, and the stage combination lengths in this embodiment are 3, 4, 5 and 6 respectively; for all initial data segments of any controlled dimension, with a step size of 1, starting from the first initial data segment, initial data segments of any stage combination length constitute a data segment combination, and so on, until the last initial data segment in the obtained data segment combination is the last initial data segment among all the initial data segments, then several data segment combinations of the controlled dimension under the stage combination length are obtained; it should be noted that a step size of 1 means that each initial data segment is used as the first data segment in the data segment combination, and there are overlapping parts between the data segment combinations; for example, if the stage number sequence is 1231435 and the stage combination length is 3, the stage numbers corresponding to each data segment combination are 123, 231, 314, 143 and 435 respectively; several data segment combinations of each controlled dimension under each stage combination length are obtained according to the above method.

[0069] So far, by analyzing the change fluctuations of the initial data segments in the controlled dimension and the change fluctuations of the truncated data segments in the response dimension of the same order value, the stage information degree of the initial data segments is quantified, reflecting the amount of stage information contained in each initial data segment; at the same time, the stage combination length is preset, and the data segment combination is obtained for each controlled dimension under different stage combination lengths, providing a basis for subsequently obtaining the optimal stage combination length.

[0070] Step S004: According to the stage information degree of the initial data segment in each data segment combination under the same stage combination length, as well as the controlled dimension and the response dimension, the preferred degree of each stage combination length is obtained, and then the optimal stage combination length is obtained; based on several data segment combinations under the optimal stage combination length, several processes of each controlled dimension are obtained.

[0071] Preferably, in one embodiment of the present invention, according to the stage information degree of the initial data segment in each data segment combination under the same stage combination length, as well as the controlled dimension and the response dimension, the preferred degree of each stage combination length is obtained, and then the optimal stage combination length is obtained, including the specific method of:

[0072] For any initial data segment in any data segment combination at any stage combination length of any controlled dimension, calculate the cosine similarity between the initial data segment and the corresponding truncated data segment in each response dimension of the controlled dimension (the initial data segment and the corresponding truncated data segment with the same order value), record the mean of all cosine similarities as the response factor of the initial data segment, and take the variance of the response factors of all initial data segments in the data segment combination as the response fluctuation degree of the data segment combination; obtain the response fluctuation degree of each data segment combination at each stage combination length of each controlled dimension according to the above method.

[0073] First As an example, the length of the stage combination The calculation method of the optimal degree of the combined length of each stage is:

[0074]

[0075] in, Indicates The degree of preference of the combined length of each stage, represents the number of controlled dimensions, Indicates The controlled dimension is The number of data segment combinations under the stage combination length, Indicates The controlled dimension is The length of the combination of stages The mean of the stage information of all initial data segments in the data segment combination, Indicates The controlled dimension is The length of the combination of stages The response fluctuation degree of the combination of data segments, represents an exponential function with a natural constant as the base. In this embodiment, The model shows an inverse proportional relationship. As the input of the model, the implementer can set the inverse proportional function according to the actual situation.

[0076] It should be noted that by analyzing the response fluctuation degree of the data segment combination, the change of the response relationship between the controlled dimension and the response dimension between the initial data segments is reflected. The smaller the response fluctuation degree, the closer the relationship between the initial data segments between the data segment combinations, and the more reasonable the division of the data segment combinations. At the same time, the stage information degree of the data segment combination is used as the weight. The larger the mean value of the stage information degree, the greater the reference value of the corresponding data segment combination. Then, the average of all data segment combinations of the same dimension is calculated, and then the average of different controlled dimensions is calculated, and finally the degree of optimization is obtained.

[0077] Furthermore, the priority of each stage combination length is obtained according to the above method, and the stage combination length corresponding to the maximum priority is taken as the optimal stage combination length.

[0078] Preferably, in one embodiment of the present invention, based on a combination of a plurality of data segments under an optimal stage combination length, a plurality of processes for each controlled dimension are obtained, including the specific method of:

[0079] For any controlled dimension, all initial data segments of the controlled dimension are divided non-overlappingly according to the optimal stage combination length to obtain several segmentation combinations, each segmentation combination contains several continuous initial data segments, and each segmentation combination is regarded as a process of the controlled dimension, then several processes of the controlled dimension are obtained; several processes of each controlled dimension are obtained according to the above method.

[0080] At this point, by analyzing the stage information degree of the data segment combination under the same stage combination length and the change in the response relationship between the initial data segment and the truncated data segment, the preferred length of the stage combination length is quantified and the optimal stage combination length is obtained, so that the stages corresponding to each data segment in the optimal stage combination length are more inclined to an overall working process, thereby distinguishing the stages in different working processes.

[0081] Step S005: construct a connectivity graph for all operating data of the same process in the same dimension, and obtain the comprehensive abnormality degree of each operating data in each dimension based on the similarity relationship of the node distribution in the connectivity graph of different processes in the same dimension, and then complete the cleaning of the operating data in each dimension.

[0082] It should be noted that after completing the process division for each controlled dimension, it is necessary to construct a connectivity graph for the operating data in the same dimension and the same process, and then analyze the similarity between the node distributions in the connectivity graphs of different processes, that is, the nodes corresponding to the operating data at the same stage of different processes, to quantify the comprehensive abnormality of the operating data and complete the cleaning.

[0083] Specifically, for any process in any controlled dimension, a connectivity graph is constructed for all the operation data in the process, each operation data is taken as a node, and the number of neighboring nodes is preset. In this embodiment, the number of neighboring nodes is 6. Take the node as an example, get the The six nearest neighbor nodes of the node, combined with the The nodes constitute The local connected subgraph of the nodes of the controlled dimension is constructed; any other process except this process of the controlled dimension is used as the reference process, and a connected graph is constructed for all the running data in the reference process according to the above method, and the connected graph of the process is constructed. The stage corresponding to the initial data segment to which the running data corresponding to the node belongs is taken as the target stage; if the reference process includes the target stage, the initial data segment corresponding to the target stage in the reference process is recorded as the reference data segment, and the initial data segment corresponding to the first node in the reference data segment is recorded as the reference data segment. The node corresponding to the running data with the smallest difference (absolute value of the difference) between the running data corresponding to the nodes is taken as the node in the connectivity graph of the process. The comparison node of the node in the reference process; if the reference process does not include the target stage, the connection graph of the reference process is compared with the first The node with the smallest difference between the running data corresponding to the nodes is taken as the first node in the connectivity graph of the process. The comparison node of the node in the reference process; get the first node in the connectivity graph of the process The nodes are compared with each other process, and the local connected subgraph of each comparison node is obtained; calculate the The MCS value of the local connected subgraph of the node and the local connected subgraph of each comparison node, and the average of all MCS values ​​is taken as the first The comprehensive abnormality degree of the operating data corresponding to each node; it is particularly noted that if there are multiple nodes with the smallest differences in the connectivity graph of the reference process, all of them are used as comparison nodes; the MCS value is a parameter for quantifying the similarity between graph structures, which is an existing method and will not be repeated in this embodiment; according to the above method, the connectivity graph of each process of each controlled dimension is obtained to obtain the comprehensive abnormality degree of each operating data in each process of each controlled dimension.

[0084] Furthermore, for any uncontrolled dimension, several processes of the controlled dimension corresponding to the maximum value of the response degree of the uncontrolled dimension to each controlled dimension are taken as several processes of the uncontrolled dimension, and a connectivity graph is constructed for each process of the uncontrolled dimension according to the above method to obtain the comprehensive abnormality degree of each operating data in each process of the uncontrolled dimension.

[0085] Furthermore, a cleaning threshold is preset. In this embodiment, the cleaning threshold is described as 0.75. If the comprehensive abnormality degree of any operating data in any dimension is greater than the cleaning threshold, the operating data is abnormal data, and the numerical mean of the operating data of the two non-abnormal data adjacent to the left and right of the operating data is used as the correction data of the operating data. Then, an abnormal judgment is made for each operating data in the dimension, and the abnormal data is cleaned; the operating data of each dimension is cleaned according to the above method.

[0086] At this point, through the change analysis of the operating data of each dimension, the control degree of each dimension is quantified, the controlled dimension and its response dimension are obtained, and then the stage division is completed; then the stage information degree of the initial data segment is quantified, and the data segment combination is obtained, and then combined with the change of the response relationship between the initial data segments, the optimal stage combination length is obtained to complete the process division, and a connectivity graph is constructed based on the process, and finally data cleaning is completed to avoid the problem of poor motor data cleaning effect caused by differences in operating data corresponding to the same working state under different working processes.

[0087] Another embodiment of the present invention provides a motor data cleaning system, which includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the above method steps S001 to S005 are implemented.

[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A motor data cleaning method, It is characterized in that The method comprises the following steps: Obtaining the operation data of multiple dimensions during the operation of the motor of the two-dimensional oscillating mirror turntable; According to the change trend of the operating data of each dimension, several initial truncation points and several initial data segments of each dimension are obtained; according to the difference between the change trends of different initial data segments of the same dimension, the control degree of each dimension is obtained, and then the controlled dimension and the uncontrolled dimension are obtained; based on the similarity relationship of the operating data between the controlled dimension and the uncontrolled dimension, several response dimensions of each controlled dimension and several truncated data segments of each response dimension under the corresponding controlled dimension are obtained; the initial data segments of each controlled dimension are clustered and analyzed respectively to obtain several stages of each controlled dimension; According to the change of the running data in each initial data segment of each controlled dimension and the difference of the change of the running data in the truncated data segment of the response dimension, the stage information degree of each initial data segment of each controlled dimension is obtained; based on different stage combination lengths, all the initial data segments of each controlled dimension are divided to obtain several data segment combinations of each controlled dimension under each stage combination length; According to the stage information degree of the initial data segment in each data segment combination under the same stage combination length, as well as the controlled dimension and the response dimension, the preferred degree of each stage combination length is obtained, and then the optimal stage combination length is obtained; based on several data segment combinations under the optimal stage combination length, several processes of each controlled dimension are obtained; A connectivity graph is constructed for all operation data of the same process in the same dimension. Based on the similarity of node distribution in the connectivity graph of different processes in the same dimension, the comprehensive abnormality degree of each operation data in each dimension is obtained, and then the operation data in each dimension is cleaned. The specific method for obtaining the optimal degree of the combined length of each stage is as follows: According to the initial data segments of the controlled dimension and the truncated data segments of the response dimension, the response fluctuation degree of each data segment combination at each stage combination length of each controlled dimension is obtained; in, Indicates The degree of preference of the combined length of each stage, represents the number of controlled dimensions, Indicates The controlled dimension is The number of data segment combinations under the stage combination length, Indicates The controlled dimension is The length of the combination of stages The mean of the stage information of all initial data segments in the data segment combination, Indicates The controlled dimension is The length of the combination of stages The response fluctuation degree of the combination of data segments, represents an exponential function with a natural constant as base; The response fluctuation degree of each data segment combination of each controlled dimension under each stage combination length is specifically obtained by: For any initial data segment in any data segment combination of any controlled dimension at any stage combination length, calculate the cosine similarity between the initial data segment and the corresponding truncated data segment in each response dimension of the controlled dimension, record the mean of all cosine similarities as the response factor of the initial data segment, and take the variance of the response factors of all initial data segments in the data segment combination as the response fluctuation degree of the data segment combination.

2. A motor data cleaning method according to claim 1, It is characterized in that The specific method for obtaining the degree of control of each dimension is as follows: For any dimension, the DTW distance is calculated for any two initial data segments in the dimension, and the inverse proportional value of the mean DTW distance of all any two initial data segments in the dimension is used as the controlled factor of the dimension; The controlled factors of all dimensions are linearly normalized, and the results are used as the control degree of each dimension.

3. A motor data cleaning method according to claim 1, It is characterized in that The specific method of obtaining the plurality of response dimensions of each controlled dimension includes: For the operation data of any dimension, the operation data is arranged in chronological order, and the operation data curve of the dimension is obtained; For any controlled dimension, the cosine similarity between the operating data curve of the controlled dimension and the operating data curve of each uncontrolled dimension is calculated as the response degree of each uncontrolled dimension to the controlled dimension; If the response degree of any uncontrolled dimension to the controlled dimension is greater than the response threshold, the uncontrolled dimension is used as the response dimension of the controlled dimension.

4. A motor data cleaning method according to claim 3, It is characterized in that The specific method of obtaining the stage information degree of each initial data segment of each controlled dimension includes: For any controlled dimension, calculate the slope of each data point in the running data curve of the controlled dimension; for any initial data segment of the controlled dimension, calculate the slope variance of all data points in the initial data segment, and record it as the degree of change fluctuation of the initial data segment of the controlled dimension; Linearly normalize the change fluctuation degree of all the initial data segments of the controlled dimension and the change fluctuation degree of all the truncated data segments in all the response dimensions of the controlled dimension, and use the result as the change fluctuation factor of each initial data segment or truncated data segment; for any initial data segment and truncated data segments with the same order value in each response dimension, count the number of truncated data segments whose change fluctuation factor is greater than the change fluctuation threshold, and use the ratio of the number to the number of response dimensions of the controlled dimension as the change information factor of the initial data segment of the controlled dimension; The product of the change fluctuation factor of the initial data segment and the change information factor of the initial data segment is used as the stage information degree of the initial data segment of the controlled dimension.

5. A motor data cleaning method according to claim 1, It is characterized in that The specific method of obtaining a plurality of data segment combinations of each controlled dimension at each stage combination length includes: For all initial data segments of any controlled dimension, starting from the first initial data segment with a step size of 1, any number of initial data segments of a stage combination length constitute a data segment combination, and so on, until the last initial data segment in the obtained data segment combination is the last initial data segment of all initial data segments, and several data segment combinations of the controlled dimension at the stage combination length are obtained.

6. A motor data cleaning method according to claim 1, It is characterized in that The several processes for obtaining each controlled dimension include the following specific methods: For any controlled dimension, all initial data segments of the controlled dimension are divided non-overlappingly according to the optimal stage combination length to obtain several segmentation combinations, each of which contains several continuous initial data segments, and each segmentation combination is regarded as a process of the controlled dimension.

7. A motor data cleaning method according to claim 1, It is characterized in that The specific method for obtaining the comprehensive abnormality degree of each running data in each dimension includes: For any process connectivity graph of any controlled dimension, obtain the The number of neighbor nodes closest to the node, combined with the The nodes constitute The local connected subgraph of nodes; Take any other process of the controlled dimension as the reference process, and add the first process in the connectivity graph of the process The stage corresponding to the initial data segment to which the running data corresponding to each node belongs is taken as the target stage; If the reference process includes the target stage, the initial data segment corresponding to the target stage in the reference process is recorded as the reference data segment, and the initial data segment corresponding to the first The node corresponding to the running data with the smallest difference between the running data corresponding to the nodes is taken as the node in the connectivity graph of the process. The comparison node of each node in the reference process; If the reference process does not include the target stage, The node with the smallest difference between the running data corresponding to the nodes is taken as the first node in the connectivity graph of the process. The comparison node of each node in the reference process; Get the local connected subgraph of each comparison node; calculate the The MCS value of the local connected subgraph of the node and the local connected subgraph of each comparison node, and the average of all MCS values ​​is taken as the first The comprehensive abnormality degree of the running data corresponding to each node.

8. A motor data cleaning system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, It is characterized in that When the processor executes the computer program, the steps of the motor data cleaning method as described in any one of claims 1-7 are implemented.