Detection system and method for sensitive component of angle measurement sensor
By designing an angle measurement sensor sensitive component detection system, using preset pulse time interval thresholds and pre-trained models to detect and correct pulse abnormalities in photoelectric angle sensors, it solves the difficulty in maintaining high measurement accuracy and reliability in dynamic environments in the prior art. The problem of sexual intercourse has achieved effective response to the impact of ambient temperature and electromagnetic noise.
Patent Information
- Application Number
- CN202411394858.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-10-08
AI Technical Summary
The prior art is difficult to effectively detect and correct pulse loss or repetition in photoelectric angular sensors in dynamic environments, resulting in a decrease in measurement accuracy and reliability, and it is impossible to cope with the nonlinear impact of ambient temperature and electromagnetic noise.
A detection system for sensitive components of the angle measurement sensor is designed, including a data acquisition module, a pulse detection module and a measurement correction module. The pulse abnormality is judged by the preset pulse time interval threshold, and the number of lost or repeated pulses is obtained using the pre-trained pulse abnormality detection model. , and enter an angle correction detection model to obtain the real rotation angle measurement value for accurate correction.
It can accurately detect pulse loss or repetition in a dynamic environment, correct the measurement results of the angular position sensor, ensure high measurement accuracy and high reliability, and avoid nonlinear effects caused by ambient temperature and electromagnetic noise.
Smart Images

Figure CN118936369A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sensor testing, and more specifically, to a system and method for detecting sensitive components of an angle measurement sensor. Background Art
[0002] Angular position sensors are key devices for measuring rotation angles and are widely used in various fields, such as industrial automation, automotive electronics, aerospace, and precision instruments. They can be divided into photoelectric angular position sensors, capacitive angular position sensors, inductive angular position sensors, and magnetic angular position sensors according to different sensitive components. Among them, photoelectric angular position sensors are widely sought after due to their advantages such as fast response and low power consumption. However, in actual applications, due to factors such as environmental changes, electromagnetic interference, and the sensor itself, the measurement accuracy and stability of photoelectric angular position sensors may deviate. If this deviation is not effectively detected and adjusted, it may lead to a decline in the performance of the application equipment and even cause system failure. Therefore, it is necessary to ensure the high measurement accuracy and reliability of the angular position sensor.
[0003] At present, the traditional angular position sensor test method usually focuses on the detection of overall performance, which is difficult to deeply detect the slight changes of sensitive components inside the sensor, and relies on static calibration to adjust the slight changes; however, static calibration cannot cope with dynamic environmental changes, which causes the angular position sensor to have cumulative errors; of course, there are also some related improved technical documents, such as the patent with authorization announcement number CN111256735B, which discloses a photoelectric encoder data processing method and device. Although the above method can solve the measurement error caused by water droplets or dust, it is found through research and practical application of the above method and the prior art that the above method and the prior art have at least the following defects: (1) There is a lack of anomaly detection mechanism, which makes it impossible to determine whether pulse loss or pulse duplication occurs during angular position sensor measurement. As a result, it is difficult to avoid the nonlinear effects caused by ambient temperature and electromagnetic noise as much as possible. (2) It is impossible to accurately and automatically obtain the number of pulse losses or repetitions based on the discovery of pulse anomalies. Furthermore, it is impossible to correct the measurement results of the angular position sensor based on the number of pulse losses or repetitions, making it difficult to continuously ensure that the angular position sensor has high measurement accuracy and high reliability under dynamic environmental changes. Summary of the invention
[0004] In order to overcome the above-mentioned defects in the prior art, an embodiment of the present invention provides a system and method for detecting a sensitive component of an angle measurement sensor.
[0005] To achieve the above object, the present invention provides the following technical solutions: A detection system for a sensitive component of an angle measurement sensor, the system comprising: A data acquisition module, used to acquire an original pulse signal set collected by the angle measurement sensor during the measurement time; the original pulse signal set includes M original measurement pulses collected during the measurement time, where M is an integer greater than zero; A pulse detection module, for obtaining pulse feature data when a pulse anomaly is determined to occur in the original pulse signal set according to a preset pulse time interval threshold, and inputting the pulse feature data into a pre-trained pulse anomaly detection model to obtain the number of lost pulses or repeated pulses occurring during the measurement time period, wherein the pulse anomaly includes pulse loss or pulse repetition; The measurement correction module is used to input the original measurement pulse number M, the lost pulse number and the repeated pulse number into a pre-trained angle correction detection model to obtain the real rotation angle measurement value of the angle measurement sensor.
[0006] Furthermore, before determining that a pulse anomaly occurs in the original pulse signal set, the method includes: Taking every two adjacent original measurement pulses in the original pulse signal set as a group of measurement pulse pairs, to obtain N groups of measurement pulse pairs, where N is an integer greater than zero; Using one original measurement pulse in each group of measurement pulse pairs as a first measurement pulse, and using the other original measurement pulse in each group of measurement pulse pairs as a second measurement pulse; Extracting the timestamps of the first measurement pulse and the second measurement pulse respectively, calculating the timestamp difference between the first measurement pulse and the second measurement pulse, and using the timestamp difference as the pulse time interval Ti; Compare the pulse time interval Ti with a preset pulse time interval threshold Td, where Td>0; If Ti>Td, it is determined that a pulse anomaly of pulse loss occurs in the original pulse signal set, and the corresponding measured pulse pair is marked as a pulse loss data pair; If Ti = Td, it is determined that there is no pulse anomaly in the original pulse signal set; If Ti<Td, it is determined that a pulse anomaly of pulse repetition appears in the original pulse signal set, and the corresponding measured pulse pair is marked as a pulse repetition data pair.
[0007] Furthermore, the pulse characteristic data includes the number G of pulse loss data pairs, the number H of pulse repetition data pairs, the pulse time interval ratio of each pulse loss data pair, and the pulse time interval ratio of each pulse time interval, and G and H are integers greater than zero.
[0008] Furthermore, the pulse characteristic data acquisition logic includes: a1: Count all pulse loss data pairs to obtain the number of pulse loss data pairs G; a2: extract the pulse time interval Ti of the g-th pulse loss data pair, where g is an integer greater than zero; a3: Calculate the ratio of the pulse time interval Ti of the g-th pulse loss data pair to the preset pulse time interval threshold Td to obtain the pulse time interval ratio of the g-th pulse loss data pair, set g=g+1, and return to step a2; a4: Repeat steps a2 to a3 above until G=g, then end the loop and obtain the pulse time interval ratio of each pulse loss data pair.
[0009] Furthermore, the pulse characteristic data acquisition logic further includes: b1: Count all pulse repetition data pairs to obtain the number of pulse repetition data pairs H; b2: extract the pulse time interval Ti of the h-th pulse repetition data pair, where h is an integer greater than zero; b3: Calculate the ratio of the pulse time interval Ti of the h-th pulse repetition data pair to the preset pulse time interval threshold Td to obtain the pulse time interval ratio of the h-th pulse repetition data pair, set h=h+1, and return to step b2; b4: Repeat steps b2 to b3 above until H=h, then end the loop and obtain the pulse time interval ratio of each pulse time interval.
[0010] Furthermore, the training logic of the pulse anomaly detection model is as follows: Acquire historical pulse anomaly training data, and divide the historical pulse anomaly training data into a pulse anomaly training set and a pulse anomaly test set, wherein the historical pulse anomaly training data includes pulse feature data and its corresponding number of lost pulses or repeated pulses; Constructing a first regression network, taking pulse feature data in the pulse anomaly training set as input data of the first regression network, taking the number of lost pulses or repeated pulses in the pulse anomaly training set as output data of the first regression network, training the first regression network, and obtaining an initial pulse anomaly detection network; The initial pulse anomaly detection network is model verified using the pulse anomaly test set, and the initial pulse anomaly detection network that is less than or equal to a preset first test error threshold is output as a pre-trained pulse anomaly detection model.
[0011] Furthermore, the training logic of the angle correction detection model is as follows: Acquire historical angle correction training data, and divide the historical angle correction training data into an angle correction training set and an angle correction test set, wherein the historical angle correction training data includes angle correction feature data and its corresponding real rotation angle measurement value; Wherein, the angle correction characteristic data includes the original measurement pulse number M, the number of lost pulses and the number of repeated pulses; The logic for generating the real rotation angle measurement value in the historical angle correction training data is as follows: Extracting the original measured pulse number M, the number of lost pulses and the number of repeated pulses in the angle correction characteristic data; The original measured pulse number M, the number of lost pulses and the number of repeated pulses are input into the pre-built mathematical calculation model to obtain the real rotation angle measurement value; The mathematical calculation model is expressed as follows: ; Where: is the actual rotation angle measurement value, is the original measured pulse number M, is the number of lost pulses, is the number of repetitive pulses, is the resolution, is the circular angle, the value is 360 degrees; Constructing a second regression network, taking the angle correction feature data in the angle correction training set as input data of the second regression network, and taking the real rotation angle measurement value in the angle correction training set as output data of the second regression network, training the second regression network, and obtaining an initial angle correction detection network; The initial angle correction detection network is model verified by using angle correction detection, and an initial angle correction detection network that is less than or equal to a second test error threshold is output as a trained angle correction detection model.
[0012] A method for detecting a sensitive component of an angle measurement sensor, the method comprising: During the measurement time, an original pulse signal set collected by the angle measurement sensor is obtained; the original pulse signal set includes M original measurement pulses collected during the measurement time, where M is an integer greater than zero; When a pulse anomaly is determined to occur in the original pulse signal set according to a preset pulse time interval threshold, pulse feature data is obtained and input into a pre-trained pulse anomaly detection model to obtain the number of lost pulses or repeated pulses occurring during the measurement time period, wherein the pulse anomaly includes pulse loss or pulse repetition; The original measured pulse number M, the number of lost pulses and the number of repeated pulses are input into the pre-trained angle correction detection model to obtain the real rotation angle measurement value of the angle measurement sensor.
[0013] Compared with the prior art, the present invention has the following beneficial effects: The present application discloses a detection system and method for sensitive components of an angular measurement sensor, comprising: obtaining an original pulse signal set collected by the angular measurement sensor; when a pulse anomaly is determined to occur in the original pulse signal set according to a preset pulse time interval threshold, pulse feature data is obtained, and the pulse feature data is input into a pre-trained pulse anomaly detection model to obtain the number of lost pulses or repeated pulses occurring during the measurement time period; the original measurement pulse number M, the number of lost pulses, and the number of repeated pulses are input into a pre-trained angle correction detection model to obtain the actual rotation angle measurement value occurring in the angular measurement sensor; based on the above content, the present invention can determine whether pulse loss or pulse repetition occurs during the measurement of the angular position sensor, and thus can avoid the nonlinear effects caused by ambient temperature and electromagnetic noise as much as possible; in addition, by accurately and automatically obtaining the number of pulse losses or repetitions based on the discovery of pulse anomalies, and further, correcting the measurement result of the angular position sensor according to the number of pulse losses or repetitions, it is beneficial to continuously ensure that the angular position sensor has high measurement accuracy and high reliability under dynamic environmental changes. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A module diagram of a sensitive component detection system of an angle measurement sensor provided by the present invention; Figure 2 A flow chart of a method for detecting a sensitive component of an angle measurement sensor provided by the present invention; Figure 3 A schematic diagram of the structure of an electronic device provided by the present invention; Figure 4 A schematic diagram of the structure of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0015] 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.
[0016] Example 1 See also Figure 1 As shown, this embodiment discloses a detection system for a sensitive component of an angle measurement sensor, including: The data acquisition module 110 is used to acquire an original pulse signal set collected by the angle measurement sensor during the measurement time; the original pulse signal set includes M original measurement pulses collected during the measurement time, where M is an integer greater than zero; It should be understood that: for angle measurement sensors (i.e., photoelectric angle sensors), in addition to the measurement errors caused by water droplets or dust, the measurement errors caused by ambient temperature and electromagnetic noise are more obvious, and angle measurement sensors (i.e., photoelectric angle sensors) are also more susceptible to the influence of ambient temperature and electromagnetic noise; but for this type of influence, most existing methods solve the measurement error problem caused by ambient temperature and electromagnetic noise by training a linear model with ambient temperature and electromagnetic noise as input and measurement error as output; but the problem is that such models are linear models, but the measurement errors caused by ambient temperature and electromagnetic noise are nonlinear problems. To further explain, the measurement errors caused by ambient temperature and electromagnetic noise do not present a linear development mode, which leads to inaccurate error detection results of the existing linear models mentioned above, and further, it is impossible to avoid the nonlinear influence caused by ambient temperature and electromagnetic noise as much as possible, and further, it is impossible to ensure that under the influence of ambient temperature and electromagnetic noise, the angle measurement sensor (i.e., photoelectric angle sensor) can still maintain a high measurement accuracy.
[0017] The pulse detection module 120 is used to obtain pulse feature data when it is determined that a pulse anomaly occurs in the original pulse signal set according to a preset pulse time interval threshold, and input the pulse feature data into a pre-trained pulse anomaly detection model to obtain the number of lost pulses or repeated pulses occurring during the measurement time period, wherein the pulse anomaly includes pulse loss or pulse repetition; In implementation, before determining that a pulse anomaly occurs in the original pulse signal set, the following steps are included: Taking every two adjacent original measurement pulses in the original pulse signal set as a group of measurement pulse pairs, to obtain N groups of measurement pulse pairs, where N is an integer greater than zero; It should be noted that: each group of measurement pulse pairs allows the existence of repeated original measurement pulses. An exemplary explanation is that, assuming that there are 4 original measurement pulses in the original pulse signal set, namely Z1, Z2, Z3 and Z4, therefore, when each pair of adjacent original measurement pulses in the original pulse signal set is taken as a group of measurement pulse pairs, measurement pulse pairs Y1, measurement pulse pairs Y2 and measurement pulse pairs Y3 are obtained, wherein Y1 includes Z1 and Z2, Y2 includes Z2 and Z3, and Y3 includes Z2 and Z3, thus obtaining 3 groups of measurement pulse pairs, wherein there are repeated original measurement pulses in every two adjacent groups of measurement pulse pairs; Using one original measurement pulse in each group of measurement pulse pairs as a first measurement pulse, and using the other original measurement pulse in each group of measurement pulse pairs as a second measurement pulse; Extracting the timestamps of the first measurement pulse and the second measurement pulse respectively, calculating the timestamp difference between the first measurement pulse and the second measurement pulse, and using the timestamp difference as the pulse time interval Ti; Compare the pulse time interval Ti with a preset pulse time interval threshold Td, where Td>0; If Ti>Td, it is determined that a pulse anomaly of pulse loss occurs in the original pulse signal set, and the corresponding measured pulse pair is marked as a pulse loss data pair; If Ti = Td, it is determined that there is no pulse anomaly in the original pulse signal set; If Ti<Td, it is determined that a pulse anomaly of pulse repetition appears in the original pulse signal set, and the corresponding measured pulse pair is marked as a pulse repetition data pair; The pulse characteristic data includes the number G of pulse loss data pairs, the number H of pulse repetition data pairs, the pulse time interval ratio of each pulse loss data pair, and the pulse time interval ratio of each pulse time interval, and G and H are integers greater than zero; In a specific implementation, the pulse characteristic data acquisition logic includes: a1: Count all pulse loss data pairs to obtain the number of pulse loss data pairs G; a2: extract the pulse time interval Ti of the g-th pulse loss data pair, where g is an integer greater than zero; a3: Calculate the ratio of the pulse time interval Ti of the g-th pulse loss data pair to the preset pulse time interval threshold Td to obtain the pulse time interval ratio of the g-th pulse loss data pair, set g=g+1, and return to step a2; Exemplarily, assuming that there is one pulse loss data pair, which is U1, wherein U1 includes a first measurement pulse and a second measurement pulse, and the timestamps of the first measurement pulse and the second measurement pulse are 0 seconds and 0.00010 seconds respectively, then the pulse time interval Ti of U1 is 0.00010 seconds, and if it is assumed that the preset pulse time interval threshold Td is 0.00005 seconds, then the pulse time interval ratio of U1 is 2, which means that the actual time interval is twice the preset value, so it can be inferred that a pulse may be lost in the measurement cycle, and it can be understood that by using the pulse time interval ratio as pulse characteristic data, it can provide important data support for accurately predicting the number of lost pulses or repeated pulses; a4: Repeat steps a2 to a3 until G=g, then end the loop and obtain the pulse time interval ratio of each pulse loss data pair; In another specific embodiment, the pulse characteristic data acquisition logic further includes: b1: Count all pulse repetition data pairs to obtain the number of pulse repetition data pairs H; b2: extract the pulse time interval Ti of the h-th pulse repetition data pair, where h is an integer greater than zero; b3: Calculate the ratio of the pulse time interval Ti of the h-th pulse repetition data pair to the preset pulse time interval threshold Td to obtain the pulse time interval ratio of the h-th pulse repetition data pair, set h=h+1, and return to step b2; b4: Repeat b2 to b3 above until H=h, then end the cycle and obtain the pulse time interval ratio of each pulse time interval; In implementation, the training logic of the pulse anomaly detection model is as follows: Acquire historical pulse anomaly training data, and divide the historical pulse anomaly training data into a pulse anomaly training set and a pulse anomaly test set, wherein the historical pulse anomaly training data includes pulse feature data and its corresponding number of lost pulses or repeated pulses; It should be noted that the pulse characteristic data, the number of lost pulses or the number of repeated pulses in the historical pulse abnormality training data are obtained by technicians based on actual collection and recording of experimental data or historical data; Constructing a first regression network, taking pulse feature data in the pulse anomaly training set as input data of the first regression network, taking the number of lost pulses or repeated pulses in the pulse anomaly training set as output data of the first regression network, training the first regression network, and obtaining an initial pulse anomaly detection network; Using the pulse anomaly test set to perform model verification on the initial pulse anomaly detection network, outputting an initial pulse anomaly detection network that is less than or equal to a preset first test error threshold as a pre-trained pulse anomaly detection model; It should be noted that: the first regression network is a specific one of algorithm models such as decision tree regression, random forest regression, support vector machine regression, polynomial regression, LSTM neural network or RNN neural network.
[0018] The measurement correction module 130 is used to input the original measurement pulse number M, the number of lost pulses and the number of repeated pulses into a pre-trained angle correction detection model to obtain a real rotation angle measurement value of the angle measurement sensor; Specifically, the training logic of the angle correction detection model is as follows: Acquire historical angle correction training data, and divide the historical angle correction training data into an angle correction training set and an angle correction test set, wherein the historical angle correction training data includes angle correction feature data and its corresponding real rotation angle measurement value; Wherein, the angle correction characteristic data includes the original measurement pulse number M, the number of lost pulses and the number of repeated pulses; It should be noted that the angle correction feature data in the historical angle correction training data is obtained by technicians based on actual collection and recording of experimental data or historical data; The logic for generating the real rotation angle measurement value in the historical angle correction training data is as follows: Extracting the original measured pulse number M, the number of lost pulses and the number of repeated pulses in the angle correction characteristic data; The original measured pulse number M, the number of lost pulses and the number of repeated pulses are input into the pre-built mathematical calculation model to obtain the real rotation angle measurement value; The mathematical calculation model is expressed as follows: ; Where: is the actual rotation angle measurement value, is the original measured pulse number M, is the number of lost pulses, is the number of repetitive pulses, is the resolution, is the circular angle, the value is 360 degrees; It should be noted that in the application of angular position sensors and encoders, resolution (PPR, Pulses Per Revolution) is a key parameter, which indicates the number of pulses output by the sensor per rotation; it determines the minimum angle change that the sensor can measure, affecting the accuracy and details of the measurement; therefore, the resolution The specific value of is determined according to the specific model and specifications of the angular position sensor; Constructing a second regression network, taking the angle correction feature data in the angle correction training set as input data of the second regression network, and taking the real rotation angle measurement value in the angle correction training set as output data of the second regression network, training the second regression network, and obtaining an initial angle correction detection network; Using angle correction detection to perform model verification on the initial angle correction detection network, and outputting an initial angle correction detection network that is less than or equal to a second test error threshold as a trained angle correction detection model; It should be noted that: like the first regression network, the second regression network is a specific one of the algorithm models such as decision tree regression, random forest regression, support vector machine regression, polynomial regression, LSTM neural network or RNN neural network; By analyzing and acquiring the number of lost pulses or repeated pulses of the angle measurement sensor, the present invention can deeply detect slight changes in sensitive components inside the angle measurement sensor, and predict the actual rotation angle measurement value based on the acquired slight changes. Compared with the prior art, the present invention can dig out the nonlinear effects caused by ambient temperature and electromagnetic noise. Furthermore, it can ensure that under the influence of ambient temperature and electromagnetic noise, the angle measurement sensor (i.e., the photoelectric angle position sensor) can still maintain a high measurement accuracy, and can continuously ensure that the angle position sensor has high measurement accuracy and high reliability under dynamic environmental changes.
[0019] Example 2 See also Figure 2 As shown, this embodiment discloses a method for detecting a sensitive component of an angle measurement sensor, the method comprising: S201: During a measurement period, an original pulse signal set collected by the angle measurement sensor is obtained; the original pulse signal set includes M original measurement pulses collected during the measurement period, where M is an integer greater than zero; It should be understood that: for angle measurement sensors (i.e., photoelectric angle sensors), in addition to the measurement errors caused by water droplets or dust, the measurement errors caused by ambient temperature and electromagnetic noise are more obvious, and angle measurement sensors (i.e., photoelectric angle sensors) are also more susceptible to the influence of ambient temperature and electromagnetic noise; but for this type of influence, most existing methods solve the measurement error problem caused by ambient temperature and electromagnetic noise by training a linear model with ambient temperature and electromagnetic noise as input and measurement error as output; but the problem is that such models are linear models, but the measurement errors caused by ambient temperature and electromagnetic noise are nonlinear problems. To further explain, the measurement errors caused by ambient temperature and electromagnetic noise do not present a linear development mode, which leads to inaccurate error detection results of the existing linear models mentioned above, and further, it is impossible to avoid the nonlinear influence caused by ambient temperature and electromagnetic noise as much as possible, and further, it is impossible to ensure that under the influence of ambient temperature and electromagnetic noise, the angle measurement sensor (i.e., photoelectric angle sensor) can still maintain a high measurement accuracy.
[0020] S202: When it is determined that a pulse anomaly occurs in the original pulse signal set according to a preset pulse time interval threshold, pulse feature data is obtained and input into a pre-trained pulse anomaly detection model to obtain the number of lost pulses or repeated pulses occurring during the measurement time period, wherein the pulse anomaly includes pulse loss or pulse repetition; In implementation, before determining that a pulse anomaly occurs in the original pulse signal set, the following steps are included: Taking every two adjacent original measurement pulses in the original pulse signal set as a group of measurement pulse pairs, to obtain N groups of measurement pulse pairs, where N is an integer greater than zero; It should be noted that: each group of measurement pulse pairs allows the existence of repeated original measurement pulses. An exemplary explanation is that, assuming that there are 4 original measurement pulses in the original pulse signal set, namely Z1, Z2, Z3 and Z4, therefore, when each pair of adjacent original measurement pulses in the original pulse signal set is taken as a group of measurement pulse pairs, measurement pulse pairs Y1, measurement pulse pairs Y2 and measurement pulse pairs Y3 are obtained, wherein Y1 includes Z1 and Z2, Y2 includes Z2 and Z3, and Y3 includes Z2 and Z3, thus obtaining 3 groups of measurement pulse pairs, wherein there are repeated original measurement pulses in every two adjacent groups of measurement pulse pairs; Using one original measurement pulse in each group of measurement pulse pairs as a first measurement pulse, and using the other original measurement pulse in each group of measurement pulse pairs as a second measurement pulse; Extracting the timestamps of the first measurement pulse and the second measurement pulse respectively, calculating the timestamp difference between the first measurement pulse and the second measurement pulse, and using the timestamp difference as the pulse time interval Ti; Compare the pulse time interval Ti with a preset pulse time interval threshold Td, where Td>0; If Ti>Td, it is determined that a pulse anomaly of pulse loss occurs in the original pulse signal set, and the corresponding measured pulse pair is marked as a pulse loss data pair; If Ti = Td, it is determined that there is no pulse anomaly in the original pulse signal set; If Ti<Td, it is determined that a pulse anomaly of pulse repetition appears in the original pulse signal set, and the corresponding measured pulse pair is marked as a pulse repetition data pair; The pulse characteristic data includes the number G of pulse loss data pairs, the number H of pulse repetition data pairs, the pulse time interval ratio of each pulse loss data pair, and the pulse time interval ratio of each pulse time interval, and G and H are integers greater than zero; In a specific implementation, the pulse characteristic data acquisition logic includes: a1: Count all pulse loss data pairs to obtain the number of pulse loss data pairs G; a2: extract the pulse time interval Ti of the g-th pulse loss data pair, where g is an integer greater than zero; a3: Calculate the ratio of the pulse time interval Ti of the g-th pulse loss data pair to the preset pulse time interval threshold Td to obtain the pulse time interval ratio of the g-th pulse loss data pair, set g=g+1, and return to step a2; Exemplarily, assuming that there is one pulse loss data pair, which is U1, wherein U1 includes a first measurement pulse and a second measurement pulse, and the timestamps of the first measurement pulse and the second measurement pulse are 0 seconds and 0.00010 seconds respectively, then the pulse time interval Ti of U1 is 0.00010 seconds, and if it is assumed that the preset pulse time interval threshold Td is 0.00005 seconds, then the pulse time interval ratio of U1 is 2, which means that the actual time interval is twice the preset value, so it can be inferred that a pulse may be lost in the measurement cycle, and it can be understood that by using the pulse time interval ratio as pulse characteristic data, it can provide important data support for accurately predicting the number of lost pulses or repeated pulses; a4: Repeat steps a2 to a3 until G=g, then end the loop and obtain the pulse time interval ratio of each pulse loss data pair; In another specific embodiment, the pulse characteristic data acquisition logic includes: b1: Count all pulse repetition data pairs to obtain the number of pulse repetition data pairs H; b2: extract the pulse time interval Ti of the h-th pulse repetition data pair, where h is an integer greater than zero; b3: Calculate the ratio of the pulse time interval Ti of the h-th pulse repetition data pair to the preset pulse time interval threshold Td to obtain the pulse time interval ratio of the h-th pulse repetition data pair, set h=h+1, and return to step b2; b4: Repeat b2 to b3 above until H=h, then end the cycle and obtain the pulse time interval ratio of each pulse time interval; In implementation, the training logic of the pulse anomaly detection model is as follows: Acquire historical pulse anomaly training data, and divide the historical pulse anomaly training data into a pulse anomaly training set and a pulse anomaly test set, wherein the historical pulse anomaly training data includes pulse feature data and its corresponding number of lost pulses or repeated pulses; It should be noted that the pulse characteristic data, the number of lost pulses or the number of repeated pulses in the historical pulse abnormality training data are obtained by technicians based on actual collection and recording of experimental data or historical data; Constructing a first regression network, taking pulse feature data in the pulse anomaly training set as input data of the first regression network, taking the number of lost pulses or repeated pulses in the pulse anomaly training set as output data of the first regression network, training the first regression network, and obtaining an initial pulse anomaly detection network; Using the pulse anomaly test set to perform model verification on the initial pulse anomaly detection network, outputting an initial pulse anomaly detection network that is less than or equal to a preset first test error threshold as a pre-trained pulse anomaly detection model; It should be noted that: the first regression network is a specific one of algorithm models such as decision tree regression, random forest regression, support vector machine regression, polynomial regression, LSTM neural network or RNN neural network.
[0021] S203: inputting the original measurement pulse number M, the lost pulse number and the repeated pulse number into a pre-trained angle correction detection model to obtain a real rotation angle measurement value of the angle measurement sensor; Specifically, the training logic of the angle correction detection model is as follows: Acquire historical angle correction training data, and divide the historical angle correction training data into an angle correction training set and an angle correction test set, wherein the historical angle correction training data includes angle correction feature data and its corresponding real rotation angle measurement value; Wherein, the angle correction characteristic data includes the original measurement pulse number M, the number of lost pulses and the number of repeated pulses; It should be noted that the angle correction feature data in the historical angle correction training data is obtained by technicians based on actual collection and recording of experimental data or historical data; The logic for generating the real rotation angle measurement value in the historical angle correction training data is as follows: Extracting the original measured pulse number M, the number of lost pulses and the number of repeated pulses in the angle correction characteristic data; The original measured pulse number M, the number of lost pulses and the number of repeated pulses are input into the pre-built mathematical calculation model to obtain the real rotation angle measurement value; The mathematical calculation model is expressed as follows: ; Where: is the actual rotation angle measurement value, is the original measured pulse number M, is the number of lost pulses, is the number of repetitive pulses, is the resolution, is the circular angle, the value is 360 degrees; It should be noted that in the application of angular position sensors and encoders, resolution (PPR, Pulses Per Revolution) is a key parameter, which indicates the number of pulses output by the sensor per rotation; it determines the minimum angle change that the sensor can measure, affecting the accuracy and details of the measurement; therefore, the resolution The specific value of is determined according to the specific model and specifications of the angular position sensor; Constructing a second regression network, taking the angle correction feature data in the angle correction training set as input data of the second regression network, and taking the real rotation angle measurement value in the angle correction training set as output data of the second regression network, training the second regression network, and obtaining an initial angle correction detection network; Using angle correction detection to perform model verification on the initial angle correction detection network, and outputting an initial angle correction detection network that is less than or equal to a second test error threshold as a trained angle correction detection model; It should be noted that: like the first regression network, the second regression network is a specific one of the algorithm models such as decision tree regression, random forest regression, support vector machine regression, polynomial regression, LSTM neural network or RNN neural network; By analyzing and acquiring the number of lost pulses or repeated pulses of the angle measurement sensor, the present invention can deeply detect slight changes in sensitive components inside the angle measurement sensor, and predict the actual rotation angle measurement value based on the acquired slight changes. Compared with the prior art, the present invention can dig out the nonlinear effects caused by ambient temperature and electromagnetic noise. Furthermore, it can ensure that under the influence of ambient temperature and electromagnetic noise, the angle measurement sensor (i.e., the photoelectric angle position sensor) can still maintain a high measurement accuracy, and can continuously ensure that the angle position sensor has high measurement accuracy and high reliability under dynamic environmental changes.
[0022] Example 3 See also Figure 3 As shown, this embodiment discloses an electronic device, including 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 angle measurement sensor sensitive component detection method provided by the above methods is implemented.
[0023] Since the electronic device introduced in this embodiment is an electronic device used to implement a method for detecting a sensitive component of an angle measurement sensor in the embodiment of this application, based on the method for detecting a sensitive component of an angle measurement sensor introduced in the embodiment of this application, a person skilled in the art can understand the specific implementation of the electronic device of this embodiment and its various variations, so how the electronic device implements the method in the embodiment of this application is not described in detail here. As long as a person skilled in the art implements an electronic device used by a method for detecting a sensitive component of an angle measurement sensor in the embodiment of this application, it belongs to the scope of protection of this application.
[0024] Example 4 See also Figure 4As shown, a computer-readable storage medium stores a computer program, and when the computer program is executed, the above-mentioned method for detecting sensitive components of the angle measurement sensor is implemented.
[0025] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters, weights and thresholds in the formula are set by technicians in this field according to actual conditions.
[0026] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired network or a wireless network. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media sets. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD) or a semiconductor medium. The semiconductor medium may be a solid-state hard disk.
[0027] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0028] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0029] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, 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 one, and 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.
[0030] 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.
[0031] In addition, each functional unit in each embodiment of the present invention 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.
[0032] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0033] Finally: 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 spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A detection system for sensitive components of an angle measurement sensor, It is characterized in that The system comprises: A data acquisition module, used to acquire an original pulse signal set collected by the angle measurement sensor during the measurement time; the original pulse signal set includes M original measurement pulses collected during the measurement time, where M is an integer greater than zero; A pulse detection module, for obtaining pulse feature data when a pulse anomaly is determined to occur in the original pulse signal set according to a preset pulse time interval threshold, and inputting the pulse feature data into a pre-trained pulse anomaly detection model to obtain the number of lost pulses or repeated pulses occurring during the measurement time period, wherein the pulse anomaly includes pulse loss or pulse repetition; The measurement correction module is used to input the original measurement pulse number M, the lost pulse number and the repeated pulse number into a pre-trained angle correction detection model to obtain the real rotation angle measurement value of the angle measurement sensor.
2. The angle measurement sensor sensitive component detection system according to claim 1, It is characterized in that Before determining that a pulse anomaly occurs in the original pulse signal set, the following steps are included: Taking every two adjacent original measurement pulses in the original pulse signal set as a group of measurement pulse pairs, to obtain N groups of measurement pulse pairs, where N is an integer greater than zero; Using one original measurement pulse in each group of measurement pulse pairs as a first measurement pulse, and using the other original measurement pulse in each group of measurement pulse pairs as a second measurement pulse; Extracting the timestamps of the first measurement pulse and the second measurement pulse respectively, calculating the timestamp difference between the first measurement pulse and the second measurement pulse, and using the timestamp difference as the pulse time interval Ti; Compare the pulse time interval Ti with a preset pulse time interval threshold Td, where Td>0; If Ti>Td, it is determined that a pulse anomaly of pulse loss occurs in the original pulse signal set, and the corresponding measured pulse pair is marked as a pulse loss data pair; If Ti = Td, it is determined that there is no pulse anomaly in the original pulse signal set; If Ti<Td, it is determined that a pulse anomaly of pulse repetition appears in the original pulse signal set, and the corresponding measured pulse pair is marked as a pulse repetition data pair.
3. The angle measurement sensor sensitive component detection system according to claim 2, It is characterized in that The pulse characteristic data includes the number G of pulse missing data pairs, the number H of pulse repetition data pairs, the pulse time interval ratio of each pulse missing data pair and the pulse time interval ratio of each pulse time interval, and G and H are integers greater than zero.
4. The angle measurement sensor sensitive component detection system according to claim 3, It is characterized in that The pulse characteristic data acquisition logic includes: a1: Count all pulse loss data pairs to obtain the number of pulse loss data pairs G; a2: extract the pulse time interval Ti of the g-th pulse loss data pair, where g is an integer greater than zero; a3: Calculate the ratio of the pulse time interval Ti of the g-th pulse loss data pair to the preset pulse time interval threshold Td to obtain the pulse time interval ratio of the g-th pulse loss data pair, set g=g+1, and return to step a2; a4: Repeat steps a2 to a3 above until G=g, then end the loop and obtain the pulse time interval ratio of each pulse loss data pair.
5. The angle measurement sensor sensitive component detection system according to claim 4, It is characterized in that The pulse characteristic data acquisition logic further includes: b1: Count all pulse repetition data pairs to obtain the number of pulse repetition data pairs H; b2: extract the pulse time interval Ti of the h-th pulse repetition data pair, where h is an integer greater than zero; b3: Calculate the ratio of the pulse time interval Ti of the h-th pulse repetition data pair to the preset pulse time interval threshold Td to obtain the pulse time interval ratio of the h-th pulse repetition data pair, set h=h+1, and return to step b2; b4: Repeat steps b2 to b3 above until H=h, then end the loop and obtain the pulse time interval ratio of each pulse time interval.
6. The angle measurement sensor sensitive component detection system according to claim 5, It is characterized in that The training logic of the pulse anomaly detection model is as follows: Acquire historical pulse anomaly training data, and divide the historical pulse anomaly training data into a pulse anomaly training set and a pulse anomaly test set, wherein the historical pulse anomaly training data includes pulse feature data and its corresponding number of lost pulses or repeated pulses; Constructing a first regression network, taking pulse feature data in the pulse anomaly training set as input data of the first regression network, taking the number of lost pulses or repeated pulses in the pulse anomaly training set as output data of the first regression network, training the first regression network, and obtaining an initial pulse anomaly detection network; The initial pulse anomaly detection network is model verified using the pulse anomaly test set, and the initial pulse anomaly detection network that is less than or equal to a preset first test error threshold is output as a pre-trained pulse anomaly detection model.
7. The angle measurement sensor sensitive component detection system according to claim 6, It is characterized in that The training logic of the angle correction detection model is as follows: Acquire historical angle correction training data, and divide the historical angle correction training data into an angle correction training set and an angle correction test set, wherein the historical angle correction training data includes angle correction feature data and its corresponding real rotation angle measurement value; Wherein, the angle correction characteristic data includes the original measurement pulse number M, the number of lost pulses and the number of repeated pulses; The logic for generating the real rotation angle measurement value in the historical angle correction training data is as follows: Extracting the original measured pulse number M, the number of lost pulses and the number of repeated pulses in the angle correction characteristic data; The original measured pulse number M, the number of lost pulses and the number of repeated pulses are input into the pre-built mathematical calculation model to obtain the real rotation angle measurement value; The mathematical calculation model is expressed as follows: ; Where: is the actual rotation angle measurement value, is the original measured pulse number M, is the number of lost pulses, is the number of repetitive pulses, is the resolution, is the circular angle, the value is 360 degrees; Constructing a second regression network, taking the angle correction feature data in the angle correction training set as input data of the second regression network, and taking the real rotation angle measurement value in the angle correction training set as output data of the second regression network, training the second regression network, and obtaining an initial angle correction detection network; The initial angle correction detection network is model verified by using angle correction detection, and an initial angle correction detection network that is less than or equal to a second test error threshold is output as a trained angle correction detection model.
8. A method for detecting a sensitive component of an angle measurement sensor, It is characterized in that The method comprises: During the measurement time, an original pulse signal set collected by the angle measurement sensor is obtained; the original pulse signal set includes M original measurement pulses collected during the measurement time, where M is an integer greater than zero; When a pulse anomaly is determined to occur in the original pulse signal set according to a preset pulse time interval threshold, pulse feature data is obtained and input into a pre-trained pulse anomaly detection model to obtain the number of lost pulses or repeated pulses occurring during the measurement time period, wherein the pulse anomaly includes pulse loss or pulse repetition; The original measured pulse number M, the number of lost pulses and the number of repeated pulses are input into the pre-trained angle correction detection model to obtain the real rotation angle measurement value of the angle measurement sensor.
9. An electronic device 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 method for detecting sensitive components of the angle measurement sensor according to claim 8 is implemented.
10. 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, the method for detecting sensitive components of an angle measurement sensor according to claim 8 is implemented.
Citation Information
Patent Citations
Data type determination method and device, storage medium and electronic device
CN110781433A
Method, circuit, equipment and medium for measuring angle of coded disc of photoelectric encoder
CN113739828A
High-sensitivity capacitance change detection method and system, electronic equipment and storage medium
CN117076932A
Timing of an event depending on the angular position of a rotatable object
DE102020132003A1
Calibration of a surveying instrument
US20070104353A1
Cited By
Intelligent package fresh-keeping control method and system
CN121008636A
