Intelligent calibration method for surgical laser angle ruler
By segmenting the vibration and error data of the surgical laser angle ruler, calculating relevant indicators and error effects, and combining the superposition probability coefficients and weights, more accurate error prediction and calibration are achieved, solving the problem of error prediction in the existing technology. Inaccuracy problem is eliminated and measurement accuracy is improved.
Patent Information
- Application Number
- CN202410610781.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-16
AI Technical Summary
In the existing technology, the error prediction accuracy and stability of the surgical laser angle ruler are poor, mainly because it is only based on time series feature analysis and cannot effectively handle the nonlinear abnormal effects in the environment, resulting in low calibration accuracy.
By obtaining the vibration data and error data of the laser angle ruler, perform average segment analysis, calculate data-related indicators and error impact degree, combine the superposition probability coefficient and error weight, determine the segment optimization coefficient and error coefficient, and perform error prediction and calibration.
It improves the accuracy of error prediction and the stability of calibration, can effectively handle the effects of linear and nonlinear errors, and improves the accuracy of measurement angles.
Smart Images

Figure CN118177995B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of optical measurement, and in particular to an intelligent calibration method for a surgical laser angle ruler. Background Art
[0002] A surgical laser angle ruler is an instrument used for optical angle measurement and positioning in surgical operations. It is usually composed of a laser transmitter, a sensor, a display screen, and a data processing unit. It can be placed on surgical instruments to measure and display the angle and direction of the instrument in three-dimensional space. Due to its application in the field of surgery, there are strict requirements for the measurement accuracy of laser angle rulers.
[0003] Since the optical measurement angle may be affected by various factors and cause errors, such as the vibration of the optical instrument itself and the influence of environmental factors, in the related technology, the error is predicted by exponentially weighted moving average, and different data are weighted according to the time series distance. In this way, the cause of the error may also be the nonlinear anomaly in the environmental process. Therefore, only linear analysis is performed based on the time series characteristics, which makes the error prediction accurate and reliable. The obtained prediction result has low accuracy and poor calibration accuracy and stability. Summary of the invention
[0004] In order to solve the technical problems in the related art that the error prediction is not accurate and reliable enough, the prediction result is of low precision, and the calibration accuracy and stability are poor, the present invention provides an intelligent calibration method for a surgical laser angle ruler, and the technical scheme adopted is as follows:
[0005] The present invention proposes an intelligent calibration method for a surgical laser angle ruler, the method comprising:
[0006] Obtain the vibration data and error data of the laser angle ruler at different test times, divide the different test times into segments evenly, and determine the test time segments with the same length; and use any test time segment as the segment to be tested;
[0007] Determine data-related indicators of the vibration data and the error data according to the numerical distribution of the vibration data and the error data in the section to be tested; determine the error influence degree of the section to be tested according to the numerical fluctuation of the error data in the section to be tested; and determine the superposition probability coefficient of the nonlinear superposition of the section to be tested in combination with the data-related indicators and the error influence degree;
[0008] Determine the error weight of the segment to be tested according to the frequency and value distribution of the error data in the segment to be tested and all other test time segments except the segment to be tested, and determine the segment optimization coefficient of the segment to be tested according to the error weight and the superposition probability coefficients of all test time segments; determine the error coefficient of each test moment according to the segment optimization coefficients of all test time segments and the values of all error data;
[0009] According to the error data of all test moments, the error coefficient and the time sequence distance between each test moment and the current moment, the error prediction is performed for the moment next to the current moment to obtain the predicted error value, and the measured angle value of the laser angle ruler at the next moment is calibrated according to the predicted error value.
[0010] Furthermore, the method for obtaining data-related indicators of the vibration data and error data includes:
[0011] Based on the Pearson correlation algorithm, the vibration data and error data at all test moments in the test section are correlated to obtain an initial correlation index;
[0012] The absolute value of the initial correlation index is calculated, negatively correlated and normalized to obtain a data correlation index.
[0013] Furthermore, the calculation formula for the error influence degree of the segment to be measured is:
[0014] ; where F represents the error influence degree of the segment to be tested, D represents the number of all test moments in the segment to be tested, j represents the index of the test moment in the segment to be tested, and T j Indicates the value of the error data at the jth test moment in the segment to be tested, T j+1 Indicates the value of the error data at the j+1th test time in the segment to be tested, T max Indicates the maximum value of the error data in the segment to be tested.
[0015] Furthermore, the method for obtaining the superposition probability coefficient includes:
[0016] The product of the data-related index and the error influence degree is calculated, and normalized to obtain the superposition probability coefficient of the section to be measured.
[0017] Furthermore, the method for obtaining the error weight of the segment to be measured includes:
[0018] The numerical value of any error data in the segment to be tested is used as the value of the type to be tested, the frequency of the error data belonging to the value of the type to be tested in other test time sequence segments is used as the denominator, and the number of the value of the type to be tested in the segment to be tested is used as the numerator, to obtain the numerical influence weight of the value of the type to be tested;
[0019] Calculate the product of the numerical influence weight and the value of the type to be measured to obtain an error numerical coefficient; take the mean of the error numerical coefficients of all error data in the segment to be measured as the error mean coefficient;
[0020] Calculate the range of all error data in the section to be tested, and obtain the range coefficient to be tested by negative correlation mapping;
[0021] The error weight of the section to be measured is determined according to the error mean coefficient and the range coefficient to be measured.
[0022] Further, determining the error weight of the section to be measured according to the error mean coefficient and the range coefficient to be measured includes:
[0023] The product of the error mean coefficient and the range coefficient to be measured is calculated, and normalized to obtain the error weight of the section to be measured.
[0024] Furthermore, the formula for obtaining the segment optimization coefficient of the segment to be tested includes:
[0025] Where W i represents the segment optimization coefficient of the segment i to be tested, M i represents the error weight of the segment i to be tested, P i represents the superposition probability coefficient of the segment i to be tested, P r represents the superposition probability coefficient of the rth test timing segment except the segment to be tested, and G represents the total number of test timing segments except the segment to be tested.
[0026] Furthermore, the error coefficient at each test moment is determined according to the segment optimization coefficients of all test timing segments and the values of all error data, and the calculation formula includes:
[0027] ; In the formula, ω k represents the error coefficient at the kth test moment, W z represents the segment optimization coefficient of the test time segment z at the kth test moment, T k Represents the value of the error data at the kth test moment, T allmax represents the maximum value of the error data at all test moments, and norm[ ] represents the normalization function.
[0028] Furthermore, the error prediction for the next moment after the current moment is performed based on the error data of all test moments, the error coefficient and the time series distance between each test moment and the current moment to obtain the predicted error value, including:
[0029] Calculate the temporal distance between each test moment and the current moment, negatively map and normalize to obtain the time impact index;
[0030] The product of the time impact index and the error coefficient at each test moment is normalized as the prediction weight index at the corresponding test moment;
[0031] The prediction error value is determined according to the prediction weight index at each test moment and the error data at each test moment.
[0032] Further, determining the prediction error value according to the prediction weight index at each test moment and the error data at each test moment includes:
[0033] Based on the exponentially weighted moving average algorithm, the prediction weight index is used as the weight of the error data at the corresponding test moment, and the error prediction is performed for the next moment from the current moment to obtain the predicted error value.
[0034] The present invention has the following beneficial effects:
[0035] The embodiment of the present invention is based on analyzing the vibration data and error data of the laser angle ruler at different moments. Since the error includes the linear error influence in the vibration process and the nonlinear error influence caused by the environment, by determining the data-related indicators of the vibration data and the error data, the error influence degree of the section to be tested, and then combining the data-related indicators and the error influence degree, the superposition probability coefficient of the section to be tested to produce nonlinear superposition is determined, and the superposition probability coefficient can characterize the possibility of superposition of linear error influence and nonlinear error influence; the error weight of the section to be tested is determined, and the section optimization coefficient of the section to be tested is determined in combination with the superposition probability coefficient and the error weight. The error coefficient at each test moment is determined based on the section optimization coefficient and the numerical value of the error data itself. According to the numerical distribution of error data and the influence of nonlinear environmental errors, the segment optimization coefficient of each test timing segment is analyzed, and then combined with the numerical value of the error data at each test moment, the error coefficient is analyzed. The error coefficient can be used as compensation for the error data at the test moment. Based on the error data of all test moments, the error coefficient and the timing distance between each test moment and the current moment, the error prediction is performed for the next moment after the current moment to obtain the predicted error value. The acquisition of the predicted error value can not only combine the timing characteristics of different moments, but also combine the nonlinear error influence in the environment, so as to achieve more accurate and reliable error prediction, improve the prediction accuracy, and ensure the accuracy and stability of the measurement angle value calibration. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A flow chart of an intelligent calibration method for a surgical laser angle ruler provided by an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of a process for obtaining error weights provided by an embodiment of the present invention;
[0039] Figure 3 A schematic diagram of a process for obtaining a prediction error value provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, features and effects of a surgical laser angle ruler intelligent calibration method proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0042] The specific scheme of the intelligent calibration method of a surgical laser angle ruler provided by the present invention is described in detail below with reference to the accompanying drawings.
[0043] See also Figure 1 , which shows a flow chart of an intelligent calibration method for a surgical laser angle ruler provided by an embodiment of the present invention, the method comprising:
[0044] S101: Obtain vibration data and error data of the laser angle ruler at different test times, averagely segment the different test times, determine test time segments with the same length; and use any test time segment as a segment to be tested.
[0045] A specific implementation scenario of an embodiment of the present invention includes: performing error correction on the angle value measured by the laser angle ruler at the next moment. It should be noted that since surgical equipment requires higher precision, the laser angle ruler will produce a vibration effect during the measurement process. The vibration may be caused by environmental interference and the structural vibration interference of the laser angle ruler itself, thereby generating errors and affecting the angle measurement accuracy. Therefore, the present invention analyzes the error data to predict the error at the next moment, so as to reduce the error effect of the laser angle ruler and ensure the measurement accuracy.
[0046] In an embodiment of the present invention, during the instrument detection process, different angles can be set and based on the sensors and data processing units carried by the angle ruler device itself, the angle error continuously generated in the detection link and the vibration data of the instrument itself can be obtained, and based on the detection situation, the error at the next moment can be predicted.
[0047] In an embodiment of the present invention, all test moments can be evenly segmented in chronological order. For example, a fixed number of test moments contained in each test timing segment can be preset, and then the test moments are evenly segmented from front to back in chronological order. Alternatively, all test moments can be directly evenly divided into a fixed number of test timing segments, and the number of test moments contained in each test timing segment is the same, and there is no limitation on this.
[0048] In the embodiment of the present invention, any one of all the test time sequence segments can be selected as a segment to be tested, so as to facilitate subsequent data analysis of the segment to be tested.
[0049] S102: Determine data-related indicators of the vibration data and the error data according to the numerical distribution of the vibration data and the error data in the section to be tested; determine the error influence degree of the section to be tested according to the numerical fluctuation of the error data in the section to be tested; and determine the superposition probability coefficient of nonlinear superposition of the section to be tested in combination with the data-related indicators and the error influence degree.
[0050] It can be understood that the change in vibration data represents the vibration condition of the laser angle ruler during the measurement process. The vibration condition may be due to environmental interference, or it may be due to structural vibration interference of the laser angle ruler itself. Therefore, the present invention analyzes the correlation between the vibration data and the error data, thereby performing interference analysis on the error data.
[0051] In the embodiment of the present invention, when the device is in operation, it will inevitably generate a certain degree of vibration. Even relatively small vibrations will affect the laser angle scale, so that the position of the laser positioning point and the angle between the point and the angle scale are different from the final output data. For error data, there is a direct relationship between the error generated and the vibration, so there is a linear relationship between the change in vibration data and the change in error data. However, in fact, there are many other factors that interfere with the environment, such as ambient light, electromagnetic interference, etc., so nonlinear influencing factors will be superimposed on the original linear relationship. Only based on the linear relationship generated by the vibration data to predict the generation of subsequent errors, it is easy to cause the correction angle to deviate from the actual offset angle due to ignoring other influencing factors during the adjustment process. Therefore, it is necessary to judge the degree of superposition of nonlinear interference factors in the historical error data.
[0052] Furthermore, in some embodiments of the present invention, the method for obtaining data correlation indicators of vibration data and error data includes: based on the Pearson correlation algorithm, performing correlation calculation on the vibration data and error data at all test moments in the test section to obtain an initial correlation indicator; calculating the absolute value of the initial correlation indicator, negatively mapping and normalizing it to obtain the data correlation indicator.
[0053] Among them, the Pearson correlation algorithm is a correlation calculation method well known to those skilled in the art. Based on the Pearson correlation algorithm, the correlation between the vibration data and the error data at all test moments in the test section can be calculated to obtain the initial correlation index. It should be noted that the greater the correlation between the vibration data and the error data at all test moments in the test section, the higher the consistency of the corresponding vibration data and the error data in the timing. In other words, the more consistent with the objective angle measurement process, the higher the consistency of the vibration data and the error data in the timing, that is, the greater the vibration frequency, the greater the corresponding error generated.
[0054] Therefore, the present invention calculates the absolute value of the initial correlation index, negatively maps and normalizes it to obtain the data correlation index. The larger the value of the data correlation index is, the lower the credibility of the corresponding error data is, that is, the higher the abnormality of the error data itself is.
[0055] In one embodiment of the present invention, the normalization processing can be specifically, for example, maximum and minimum value normalization processing, and the normalization in subsequent steps can all adopt maximum and minimum value normalization processing. In other embodiments of the present invention, other normalization methods can be selected according to the specific range of numerical values, which will not be described in detail.
[0056] Among them, a positive correlation means that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship can be a multiplication relationship, an addition relationship, or the power of an exponential function, which is determined by actual application; a negative correlation means that the dependent variable will decrease as the independent variable increases, and the dependent variable will increase as the independent variable decreases. It can be a subtraction relationship, a division relationship, etc., which is determined by actual application.
[0057] Thus, the present invention can calculate the negative number of the absolute value of the initial correlation index, and then perform maximum and minimum normalization processing on the negative number to obtain the data correlation index. Alternatively, other negative correlation mapping and normalization methods can also be used, which are not limited.
[0058] Further, in some embodiments of the present invention, the error influence degree of the section to be tested is determined according to the numerical fluctuation of the error data in the section to be tested. Since the greater the numerical fluctuation of the error data, the greater the degree of influence. Therefore, the embodiments of the present invention can analyze the numerical fluctuation of all error data. The calculation formula of the error influence degree can be specifically, for example, as follows:
[0059] ;
[0060] Where F represents the error influence degree of the segment to be tested, D represents the number of all test moments in the segment to be tested, j represents the index of the test moment in the segment to be tested, and T j Indicates the value of the error data at the jth test moment in the segment to be tested, T j+1 Indicates the value of the error data at the j+1th test time in the segment to be tested, T max Indicates the maximum value of the error data in the segment to be tested.
[0061] In the embodiment of the present invention, Indicates the normalization processing based on the maximum value. The closer the ratio is to 1, the larger the value of the error data itself is, which means that the possibility of generating more nonlinear factor interference and linear interference superposition is greater. |T j -T j+1 | represents the difference between two adjacent error data. The larger the difference, the greater the possibility of mutation, that is, the greater the possibility of corresponding nonlinear interference superposition. Therefore, the present invention calculates the error influence degree. The larger the error influence degree, the greater the possibility of superposition of corresponding nonlinear factor interference and linear interference.
[0062] It should be noted that when j represents the last test time among all test times, the corresponding T j+1 The value of the error data at the moment before the last test moment can be expressed to eliminate the logical problem of endpoint calculation.
[0063] Furthermore, in some embodiments of the present invention, the superposition probability coefficient of the segment to be tested that produces nonlinear superposition is determined in combination with the data-related index and the error influence degree, including: calculating the product of the data-related index and the error influence degree, and normalizing it to obtain the superposition probability coefficient of the segment to be tested.
[0064] It should be noted that the larger the value of the data-related index is, the greater the abnormality of the error data itself is, that is to say, the greater the impact of the superposition of nonlinear interference is, and the greater the error impact degree is, the greater the possibility of the superposition of the corresponding nonlinear factor interference and linear interference is. Therefore, the present invention can calculate the product of the data-related index and the error impact degree, and obtain the superposition probability coefficient of the section to be tested by normalization.
[0065] Of course, in other embodiments of the present invention, the sum of the data-related index and the error influence degree may also be calculated, and the sum may be normalized to obtain the superposition probability coefficient.
[0066] S103: Determine the error weight of the segment to be tested based on the frequency and numerical distribution of error data in the segment to be tested and all other test timing segments except the segment to be tested, and determine the segment optimization coefficient of the segment to be tested based on the error weight and the superposition probability coefficient of all test timing segments; determine the error coefficient of each test moment based on the segment optimization coefficients of all test timing segments and the numerical values of all error data.
[0067] Since the impact of vibration on errors is predictable, and the nonlinear effects of other environmental factors are random, and according to analysis, the changes in environmental factors within a certain period of time are random changes within a certain range, that is, the impact of environmental factors on errors is limited. At the same time, in the process of data prediction, the influence of randomness should be eliminated as much as possible. Therefore, the importance of data at any time point can be judged based on the frequency and size of each error data in the test time sequence.
[0068] It should be noted that since the frequency and value distribution of error data can affect the nonlinear superposition analysis itself, the error weight of the test segment can be determined based on the frequency and value analysis of the error data. For details, see Figure 2 , Figure 2 A schematic diagram of a process for obtaining error weights provided by an embodiment of the present invention.
[0069] S201: Taking the value of any error data in the tested segment as the tested category value, taking the frequency of error data belonging to the tested category value in other test sequence segments as the denominator, and taking the number of tested category values in the tested segment as the numerator, to obtain the numerical influence weight of the tested category value.
[0070] Among them, other test timing segments, that is, other test timing segments except the segment to be tested, the embodiment of the present invention can count the number of error data whose values are the values of the type to be tested in other test timing segments as the first number, and count the number of error data whose values are the values of the type to be tested in the segment to be tested as the second number.
[0071] In the embodiment of the present invention, the ratio of the second number to the first number may be calculated to obtain the numerical influence weight of the value of the type to be measured.
[0072] Among them, the ratio of the second number to the first number can represent the proportion of the number of error data whose values in the test segment are the values of the type to be tested. The larger the value is, the greater the proportion of the value of the type to be tested in the test segment, and the more likely it is that the test segment has a sudden change in value due to an abnormality. That is, the larger the numerical influence weight is, the greater the probability that the corresponding value of the type to be tested is a value generated by random factors.
[0073] S202: Calculate the product of the numerical influence weight and the value of the type to be tested to obtain an error numerical coefficient; and use the mean of the error numerical coefficients of all error data in the segment to be tested as the error mean coefficient.
[0074] In the embodiment of the present invention, since the larger the value of the type to be measured is, the larger the value of the error data is, that is, the larger the error is, the larger the numerical influence weight is, indicating that the probability that the corresponding type to be measured is a value generated by an abnormal factor is greater. Therefore, the present invention calculates the product of the numerical influence weight and the type to be measured to obtain the error numerical coefficient, and the error numerical coefficient represents the abnormality of the type to be measured itself.
[0075] The present invention can count the mean of the error numerical coefficients of all error data in a segment to be tested, that is, determine the error numerical coefficient of each type of error data in the segment to be tested, and calculate the mean, which characterizes the random characteristics of the segment to be tested itself. The larger the error mean coefficient, the more serious the random change trend of the segment to be tested, that is, the higher its corresponding weight.
[0076] S203: Calculate the range of all error data in the segment to be tested, and obtain the range coefficient to be tested by negative correlation mapping.
[0077] Among them, the range of all error data represents the difference between the maximum and minimum values in the error data. The larger the range, the larger the numerical distribution interval of all error data in the test section, and the larger the range of numerical randomness.
[0078] Therefore, the range coefficient to be tested is obtained by negative correlation mapping of the range. The larger the range coefficient to be tested is, the smaller the random change trend of the error in the tested section is, and the higher its importance is.
[0079] S204: Determine the error weight of the section to be measured according to the error mean coefficient and the range coefficient to be measured.
[0080] Furthermore, in some embodiments of the present invention, the product of the error mean coefficient and the range coefficient to be measured is calculated and normalized to obtain the error weight of the section to be measured.
[0081] From the above analysis, it can be seen that the larger the error mean coefficient is, the more serious the random change trend of the segment to be tested is, that is, the higher its weight is. The larger the range coefficient to be tested is, the smaller the random change trend of the error in the segment to be tested is, and its importance is higher. Therefore, the present invention can calculate the product of the error mean coefficient and the range coefficient to be tested, and normalize it to obtain the error weight of the segment to be tested.
[0082] Of course, in other embodiments of the present invention, the sum of the error mean coefficient and the range coefficient to be measured may also be calculated and normalized to obtain the error weight of the section to be measured, and there is no limitation to this.
[0083] After determining the error weight, the present invention can combine the error weight and the superposition probability coefficient of all test time segments to determine the segment optimization coefficient of the segment to be tested. The segment optimization coefficient of the segment to be tested can be obtained by, for example,:
[0084] ;
[0085] Where W i represents the segment optimization coefficient of the segment i to be tested, M i represents the error weight of the segment i to be tested, P i represents the superposition probability coefficient of the segment i to be tested, P r represents the superposition probability coefficient of the rth test timing segment except the segment to be tested, and G represents the total number of test timing segments except the segment to be tested.
[0086] Understandably, |P i -P r | means the difference in the possibility of nonlinear superposition of the two test time segments. The greater the difference, the higher the degree of authenticity of randomness. At the same time, the product of the possibility of nonlinear superposition of the two test time segments P i ×P r The larger the value is, the lower its priority is in the prediction. Therefore, we can express it through the fractional expression and traverse all the test timing segments except the segment i to be tested to obtain The larger the value is, the higher the importance of the tested segment i is, and the higher the preference of its internal test moment is. The segment preference coefficient is obtained by calculating the product of the error weight and the preference degree. The larger the segment preference coefficient is, the higher the importance of the corresponding test sequence segment in the subsequent prediction process is.
[0087] Further, in some embodiments of the present invention, the error coefficient at each test moment is determined according to the segment optimization coefficients of all test timing segments and the values of all error data, and the acquisition formula may be specifically, for example, as follows:
[0088] ;
[0089] In the formula, ω k represents the error coefficient at the kth test moment, W z represents the segment optimization coefficient of the test time segment z at the kth test moment, T k Represents the value of the error data at the kth test moment, T allmax represents the maximum value of the error data at all test moments, and norm[ ] represents the normalization function.
[0090] For any test moment, error analysis can be performed based on the segment optimization coefficient. The error coefficient is the error probability of the test moment affected by randomness. Since the smaller the error value, the smaller the possibility of being affected by randomness, the greater its importance. Therefore, by calculating , and negatively correlated mapping, so we get The importance of the test moment is taken as the weight, and the segment optimization coefficient of the test timing segment where the test moment is located is used as the weight for weighted analysis to determine the error coefficient of each test moment.
[0091] By analyzing the differences in error data changes in different test time segments and combining the random interference characteristics caused by environmental factors, the importance weight of the error data corresponding to any test moment is obtained to obtain the error coefficient. This operation avoids assigning weights only based on time series distance, which will cause deviations in the final prediction results due to random interference caused by environmental factors, thereby improving the authenticity and accuracy of data prediction.
[0092] S104: According to the error data of all test moments, the error coefficient and the time sequence distance between each test moment and the current moment, the error prediction for the moment next to the current moment is performed to obtain the predicted error value, and the measured angle value of the laser angle ruler at the next moment is calibrated according to the predicted error value.
[0093] In some embodiments of the present invention, the time series distance, the error coefficient and the error data itself can be combined to perform error prediction. Figure 3 , Figure 3 A schematic diagram of a flow chart for obtaining a prediction error value provided by an embodiment of the present invention:
[0094] S301: Calculate the time series distance between each test moment and the current moment, perform negative correlation mapping and normalization to obtain a time impact index.
[0095] Among them, the time series distance is the time interval between two moments. Since the closer the distance to the current moment is, the more reference significance the test moment has in the prediction process, therefore, the embodiment of the present invention performs negative correlation mapping on the time series distance and normalizes it to obtain the time impact index.
[0096] S302: Normalize the product of the time impact index and the error coefficient at each test moment as the prediction weight index at the corresponding test moment.
[0097] Since the time impact index represents the degree of influence of time changes, and the error coefficient represents the importance of the abnormal influence in the environment, the product of the time impact index and the error coefficient at each test moment can be calculated and normalized as the prediction weight index of the corresponding test moment. The larger the prediction weight index, the closer the corresponding test moment is to the current moment, and the more the numerical fluctuation of the error data of the test moment itself conforms to the normal numerical fluctuation. Then, the prediction analysis of the error at the next moment can be performed based on the prediction weight index.
[0098] S303: Determine the prediction error value according to the prediction weight index at each test moment and the error data at each test moment.
[0099] Furthermore, in some embodiments of the present invention, based on an exponentially weighted moving average algorithm, a prediction weight index can be used as the weight of the error data at the corresponding test moment to perform error prediction for the next moment from the current moment to obtain a predicted error value.
[0100] Among them, the exponentially weighted moving average algorithm is a data prediction algorithm well known in the art. By using the prediction weight index as the weight of the error data at the corresponding test moment, the error data prediction is optimized to obtain a more accurate and effective prediction error value.
[0101] In other embodiments of the present invention, all test moments can also be screened in combination with the numerical value of the prediction weight index itself. For example, when the prediction weight index of the test moment is greater than 0.8, it can be used as a valid test moment, and all valid test moments can be counted. Based on this, the error data of the next moment can be predicted to obtain a predicted error value. There is no restriction on this.
[0102] After determining the predicted error value, the embodiment of the present invention can calibrate the measured angle value of the laser angle ruler at the next moment according to the predicted error value. The specific calibration process is a method well known to those skilled in the art. The error analysis of the measured angle value is realized through the predicted error value, and then the calibration process is realized to obtain a more accurate and effective calibration angle value.
[0103] The embodiment of the present invention is based on analyzing the vibration data and error data of the laser angle ruler at different moments. Since the error includes the linear error influence in the vibration process and the nonlinear error influence caused by the environment, by determining the data-related indicators of the vibration data and the error data, the error influence degree of the section to be tested, and then combining the data-related indicators and the error influence degree, the superposition probability coefficient of the section to be tested to produce nonlinear superposition is determined, and the superposition probability coefficient can characterize the possibility of superposition of linear error influence and nonlinear error influence; the error weight of the section to be tested is determined, and the section optimization coefficient of the section to be tested is determined in combination with the superposition probability coefficient and the error weight, and the error at each test moment is determined based on the section optimization coefficient and the value of the error data itself. Coefficient, according to the numerical distribution of error data and the influence of nonlinear environmental errors, the segment optimization coefficient of each test timing segment is analyzed, and then combined with the numerical value of the error data at each test moment, the error coefficient is analyzed. The error coefficient can be used as compensation for the error data at the test moment. Based on the error data of all test moments, the error coefficient and the timing distance between each test moment and the current moment, the error prediction is made for the next moment from the current moment to obtain the predicted error value. The acquisition of the predicted error value can not only combine the timing characteristics of different moments, but also combine the nonlinear error influence in the environment, so as to achieve more accurate and reliable error prediction and ensure the accuracy and stability of the measurement angle value calibration.
[0104] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0105] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. An intelligent calibration method for a surgical laser angle ruler, characterized in that: The method comprises: Obtain the vibration data and error data of the laser angle ruler at different test times, divide the different test times into segments evenly, and determine the test time segments with the same length; and use any test time segment as the segment to be tested; Determine data-related indicators of the vibration data and the error data according to the numerical distribution of the vibration data and the error data in the section to be tested; determine the error influence degree of the section to be tested according to the numerical fluctuation of the error data in the section to be tested; and determine the superposition probability coefficient of the nonlinear superposition of the section to be tested in combination with the data-related indicators and the error influence degree; Determine the error weight of the segment to be tested according to the frequency and value distribution of the error data in the segment to be tested and all other test time segments except the segment to be tested, and determine the segment optimization coefficient of the segment to be tested according to the error weight and the superposition probability coefficients of all test time segments; determine the error coefficient of each test moment according to the segment optimization coefficients of all test time segments and the values of all error data; According to the error data of all test moments, the error coefficient and the time sequence distance between each test moment and the current moment, the error prediction is performed for the next moment after the current moment to obtain the predicted error value, and the measured angle value of the laser angle ruler at the next moment is calibrated according to the predicted error value; The method for obtaining the error weight of the segment to be measured includes: The numerical value of any error data in the segment to be tested is used as the value of the type to be tested, the frequency of the error data belonging to the value of the type to be tested in other test time sequence segments is used as the denominator, and the number of the value of the type to be tested in the segment to be tested is used as the numerator, to obtain the numerical influence weight of the value of the type to be tested; Calculate the product of the numerical influence weight and the value of the type to be measured to obtain an error numerical coefficient; take the mean of the error numerical coefficients of all error data in the segment to be measured as the error mean coefficient; Calculate the range of all error data in the section to be tested, and obtain the range coefficient to be tested by negative correlation mapping; The error weight of the section to be measured is determined according to the error mean coefficient and the range coefficient to be measured.
2. The intelligent calibration method for surgical laser angle ruler according to claim 1, characterized in that: The method for obtaining the data-related indicators of the vibration data and the error data includes: Based on the Pearson correlation algorithm, the vibration data and error data at all test moments in the test section are correlated to obtain an initial correlation index; The absolute value of the initial correlation index is calculated, negatively correlated and normalized to obtain a data correlation index.
3. The intelligent calibration method for surgical laser angle ruler according to claim 1, characterized in that: The calculation formula for the error influence degree of the measured segment is: ; Where F represents the error influence degree of the segment to be tested, D represents the number of all test moments in the segment to be tested, j represents the index of the test moment in the segment to be tested, and T j Indicates the value of the error data at the jth test moment in the segment to be tested, T j+1 Indicates the value of the error data at the j+1th test time in the segment to be tested, T max Indicates the maximum value of the error data in the segment to be tested.
4. The intelligent calibration method for surgical laser angle ruler according to claim 1, characterized in that: The method for obtaining the superposition probability coefficient includes: The product of the data-related index and the error influence degree is calculated, and normalized to obtain the superposition probability coefficient of the section to be measured.
5. The intelligent calibration method for surgical laser angle ruler according to claim 1, characterized in that: The step of determining the error weight of the section to be measured according to the error mean coefficient and the range coefficient to be measured comprises: The product of the error mean coefficient and the range coefficient to be measured is calculated, and normalized to obtain the error weight of the section to be measured.
6. The method for intelligently calibrating a surgical laser angle ruler according to claim 1, characterized in that: The formula for obtaining the segment optimization coefficient of the segment to be tested includes: ; Where W i represents the segment optimization coefficient of the segment i to be tested, M i represents the error weight of the segment i to be tested, P i represents the superposition probability coefficient of the segment i to be tested, P r represents the superposition probability coefficient of the rth test timing segment except the segment to be tested, and G represents the total number of test timing segments except the segment to be tested.
7. The method for intelligently calibrating a surgical laser angle ruler according to claim 1, characterized in that: The error coefficient of each test moment is determined according to the segment optimization coefficient of all test time segments and the values of all error data, and the calculation formula is include: ; In the formula, ω k represents the error coefficient at the kth test moment, W z represents the segment optimization coefficient of the test time segment z at the kth test moment, T k Represents the value of the error data at the kth test moment, T allmax represents the maximum value of the error data at all test moments, and norm[ ] represents the normalization function.
8. The method for intelligently calibrating a surgical laser angle ruler as claimed in claim 1, characterized in that: The error prediction for the next moment after the current moment is performed based on the error data of all test moments, the error coefficient and the time sequence distance between each test moment and the current moment to obtain the predicted error value, including: Calculate the temporal distance between each test moment and the current moment, negatively map and normalize to obtain the time impact index; The product of the time impact index and the error coefficient at each test moment is normalized as the prediction weight index at the corresponding test moment; The prediction error value is determined according to the prediction weight index at each test moment and the error data at each test moment.
9. The intelligent calibration method for surgical laser angle ruler according to claim 8, characterized in that: The step of determining the prediction error value according to the prediction weight index at each test moment and the error data at each test moment includes: Based on the exponentially weighted moving average algorithm, the prediction weight index is used as the weight of the error data at the corresponding test moment, and the error prediction is performed for the next moment from the current moment to obtain the predicted error value.
