Method and system for improving angle measurement precision of tracer
Through data verification and reliability analysis of multiple tracers, combined with inertial and electromagnetic navigation modes, the error problem of the angle measurement device in external impact and strong magnetic field environments is solved, and the measurement accuracy and reliability are improved.
Patent Information
- Application Number
- CN202411052569.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-08-02
AI Technical Summary
Existing angle measurement devices are prone to errors under external impact, bumps or strong magnetic field environments, affecting measurement accuracy. Especially in long-term or high-precision tasks, a single measurement principle cannot fully capture all influencing factors.
Use multiple tracers to verify data reliability, combine inertial navigation mode and electromagnetic navigation mode, conduct reliability analysis of angle data through error calculation, probabilistic confidence model and Bayesian probability model, determine data reliability and perform calibration , to reduce the impact of errors from a single measurement principle.
It improves the accuracy and reliability of angle measurement, reduces error accumulation and the impact of external interference, and ensures measurement accuracy in different environments.
Smart Images

Figure CN118565429A
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical device angle calibration, and in particular, to a method and system for improving the angle measurement accuracy of a tracer. Background Art
[0002] Angle measurement technology plays a vital role in modern industry and scientific research. At present, the angle measurement devices widely used in the market mainly rely on the magnetic field principle or the inertia principle to work. The measurement device based on the magnetic field principle usually uses magnetic induction elements to detect the azimuth of the object relative to the earth's magnetic field, while the measurement device based on the inertia principle determines the attitude of the object by detecting its acceleration and angular velocity in space.
[0003] However, these measurement devices may encounter some challenges in practical applications. First, a single measurement principle may not be able to fully capture all factors that affect angle measurement. For example, when an inertial measurement device is subjected to external shock or bumps, its internal accelerometer and gyroscope may produce nonlinear responses, resulting in deviations in the measurement data and cumulative errors. This error is particularly evident in long-term or high-precision measurement tasks.
[0004] On the other hand, magnetic field measuring devices are sensitive to environmental conditions. When they work in a strong magnetic field or in an environment with large magnetic field changes, they may be disturbed by external magnetic fields, which may affect the accuracy of the measurement. For example, near large electromagnetic equipment or in areas with abnormal geomagnetic fields, the readings of magnetic field measuring devices may have significant deviations. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a method and system for improving the angle measurement accuracy of a tracer, using two different angle measurement devices based on the magnetic field principle and the inertia principle to verify data reliability, so that the measured angle data has higher accuracy.
[0006] Specifically, the technical solution of this application is as follows: In a first aspect, the present application discloses a method for improving the angle measurement accuracy of a tracer, comprising: Using an instrument tracer to trace the surgical instrument, obtaining a first angle of the surgical instrument in a coordinate system corresponding to the instrument tracer; calibrating to obtain a first conversion relationship between the instrument coordinate system and the imaging coordinate system; Using a plurality of device tracers to trace the imaging device, obtaining a second angle of the imaging device in a coordinate system corresponding to each of the device tracers, thereby obtaining a second conversion relationship between the imaging coordinate system after movement and the imaging coordinate system before movement; wherein each tracer has two angle navigation modes, including an inertial navigation mode and an electromagnetic navigation mode; Based on the first angle, the first conversion relationship and the second conversion relationship, a third angle of the surgical instrument in the imaging coordinate system is calculated; Performing reliability analysis on the calculated angle data; if the analysis result is unreliable, generating an alarm signal so as to calibrate the device tracer; The surgical instrument and the imaging device are re-traced using the calibrated tracer.
[0007] In some embodiments, the angle data is a second angle data group consisting of a plurality of second angles measured by a plurality of the device tracers.
[0008] In other embodiments, the angle data is a third angle data group consisting of a plurality of the third angles calculated using the tracing results of the instrument tracer and a plurality of the device tracers.
[0009] In some implementations, the reliability analysis of the calculated angle data specifically includes: Calculating an error value of the angle data, and determining whether the error value exceeds a preset error; If so, the angle data is considered unreliable; otherwise, the angle data is considered reliable.
[0010] In other implementations, the reliability analysis of the calculated angle data specifically includes: Constructing a probability confidence model; Input the angle data into the probability confidence model; use the KNN algorithm to find the center point of the maximum cluster of the angle data; take the center point as the true value to find the confidence of the angle data; Determine whether the confidence level is less than a target confidence level; if so, the angle data is considered unreliable; otherwise, the angle data is considered reliable.
[0011] In other implementations, the reliability analysis of the calculated angle data specifically includes: Construct Bayesian probability models; Inputting the angle data into the Bayesian probability model; using the EM algorithm to find the maximum expected value in the angle data; calculating the confidence of the angle data centered on the maximum expected value; Determine whether the confidence level is less than a target confidence level; if so, the angle data is considered unreliable; otherwise, the angle data is considered reliable.
[0012] In a second aspect, the present application further discloses a system for improving the angle measurement accuracy of a tracer, comprising: An instrument tracing module is used to trace the surgical instrument using an instrument tracer, obtain a first angle of the surgical instrument in a coordinate system corresponding to the instrument tracer, and calibrate to obtain a first conversion relationship between the instrument coordinate system and the imaging coordinate system; A device tracking module, used to track the imaging device using multiple device trackers, obtain a second angle of the imaging device in a coordinate system corresponding to each of the device trackers, and thereby obtain a second conversion relationship between the imaging coordinate system after movement and the imaging coordinate system before movement; wherein each tracker has two angle navigation modes, including an inertial navigation mode and an electromagnetic navigation mode; an angle calculation module, which calculates a third angle of the surgical instrument in the imaging coordinate system based on the first angle, the first conversion relationship and the second conversion relationship; A reliability analysis module, used for performing reliability analysis on the calculated angle data; if the analysis result is unreliable, an alarm signal is generated so as to calibrate the device tracer; The device tracing module is also used to use the calibrated tracer to re-trace the surgical instrument and the imaging device.
[0013] In some embodiments, the angle data is a second angle data group consisting of a plurality of second angles measured by a plurality of the device tracers.
[0014] In other embodiments, the angle data is a third angle data group consisting of a plurality of the third angles calculated using the tracing results of the instrument tracer and a plurality of the device tracers.
[0015] In some embodiments, the reliability analysis module is further used to: calculate the error value of the angle data, and determine whether the error value exceeds a preset error; if so, the angle data is considered unreliable; otherwise, the angle data is considered reliable; Or, the reliability analysis module is further used to: construct a probability confidence model; input the angle data into the probability confidence model; use the KNN algorithm to obtain the center point of the maximum cluster of the angle data; take the center point as the true value to obtain the confidence of the angle data; determine whether the confidence is less than the target confidence; if so, consider the angle data unreliable; otherwise, consider the angle data reliable; Alternatively, the reliability analysis module is also used to: construct a Bayesian probability model; input the angle data into the Bayesian probability model; use the EM algorithm to find the maximum expected value in the angle data; calculate the confidence of the angle data centered on the maximum expected value; determine whether the confidence is less than a target confidence; if so, the angle data is considered unreliable; otherwise, the angle data is considered reliable.
[0016] Compared with the prior art, the present invention has at least one of the following beneficial effects: The present application uses multiple tracers to trace the imaging device, where each tracer has two angle navigation modes, including inertial navigation mode and electromagnetic navigation mode. The two modes are turned on at the same time so that the data collected based on the two different navigation principles can be mutually verified, thereby determining whether the angle data obtained is reliable. This reduces the impact of errors caused by a single measurement principle.
[0017] This application uses error value calculation, statistical model construction, confidence model construction and other schemes to make reliability judgments on the angle measurement data obtained by the tracer. The reliability judgment schemes provided in this application are from simple to difficult, and the appropriate reliability judgment scheme can be selected according to the actual use situation. Assuming that the error is large, it is considered that the cumulative error or electromagnetic interference error has exceeded the threshold. It is necessary to recalibrate the inertial device or eliminate the electromagnetic influence caused by the external device, re-measure the angle, and use the re-measured angle data as reliable data, so that the accuracy of the angle measurement can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The preferred implementation scheme will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present application.
[0019] Figure 1 A flowchart of the steps of an embodiment of a method for improving the angle measurement accuracy of a tracer according to the present application; Figure 2 A flowchart of another embodiment of a method for improving the angle measurement accuracy of a tracer according to the present application; Figure 3 This is a structural block diagram of an embodiment of a system for improving the angle measurement accuracy of a tracer in the present application. DETAILED DESCRIPTION
[0020] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0021] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.
[0022] In order to simplify the drawings, only the parts related to the invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".
[0023] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0024] In this document, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection. It can be a mechanical connection or an electrical connection. It can be directly connected or indirectly connected through an intermediate medium, and it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0025] In a specific implementation, the terminal device described in the embodiments of the present application includes, but is not limited to, other portable devices such as mobile phones, laptop computers, tutoring machines, or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that in some embodiments, the terminal device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch screen displays and / or touch pads).
[0026] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the specific implementation methods of the present application will be described below with reference to the accompanying drawings. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.
[0028] Angle measurement is crucial in many fields, such as aerospace, robotic navigation, and ocean exploration. Currently, angle measurement devices are mainly designed based on the magnetic field principle or the inertial principle. The magnetic field principle device relies on the earth's magnetic field to determine the direction, while the inertial principle device determines the attitude of the object by measuring its acceleration and angular velocity. Both methods have their own advantages, but they also have limitations.
[0029] Single magnetic field principle measurement devices are easily affected by the external environment. For example, in areas with strong magnetic fields or large magnetic field changes, the measurement results may have significant deviations. In addition, magnetic field measurement devices may also be disturbed near metal objects. Although inertial measurement devices are relatively stable in dynamic environments, they are very sensitive to initial conditions and are easily affected by shocks and bumps, which can cause the zero point of the sensor to drift, resulting in cumulative errors.
[0030] In order to improve the accuracy and reliability of the measurement, the present application uses multiple tracers to trace the imaging device, where each tracer has two angle navigation modes, including inertial navigation mode and electromagnetic navigation mode. The two modes are turned on at the same time so that the data collected based on the two different navigation principles can be verified with each other to determine whether the angle data obtained is reliable. This reduces the impact of errors caused by a single measurement principle. Figure 1 An embodiment of a method for improving the angle measurement accuracy of a tracer provided by the present application, from the perspective of global verification, includes the following steps: S110, using an instrument tracer to trace a surgical instrument, obtaining a first angle of the surgical instrument in a coordinate system corresponding to the instrument tracer, and calibrating a first conversion relationship between the instrument coordinate system and the imaging coordinate system.
[0031] S120, using a plurality of device tracers to trace the imaging device, obtaining a second angle of the imaging device in a coordinate system corresponding to each of the device tracers, thereby obtaining a second conversion relationship between the imaging coordinate system after movement and the imaging coordinate system before movement.
[0032] Among them, each tracer has two angle navigation modes, including inertial navigation mode and electromagnetic navigation mode. Specifically, the tracer here represents the sum of the instrument tracer and multiple device tracers used in this embodiment. Preferably, the instrument tracer and the device tracer are essentially the same, but they are distinguished because of the different scenarios in which they act. It is understandable that the tracer in this application specification can refer to an instrument tracer or a device tracer.
[0033] The inertial navigation mode and electromagnetic navigation mode of the tracer are turned on at the same time, that is, one tracer can obtain two angle data. Assuming that N tracers are used to trace the imaging device, 2N second angle data can be obtained.
[0034] S130: Based on the first angle, the first conversion relationship, and the second conversion relationship, a third angle of the surgical instrument in the imaging coordinate system is calculated.
[0035] Specifically, the imaging device is a movable device, and the position and angle of the imaging device will change after each movement. Before the position of the surgical instrument changes, based on the first angle of the surgical instrument in the coordinate system corresponding to the instrument tracer, and the first conversion relationship between the instrument coordinate system and the imaging coordinate system, the angle of the surgical instrument in the imaging coordinate system before the movement can be obtained. However, after the device moves, the first conversion relationship needs to be corrected through the second conversion relationship between the imaging coordinate system after the movement and the imaging coordinate system before the movement. Then calculate the third angle of the surgical instrument in the imaging coordinate system after the movement.
[0036] More preferably, for each second angle, a corresponding third angle can be calculated; assuming that N tracers are used to trace the imaging device, 2N second angle data can be obtained, and correspondingly 2N third angle data can also be obtained.
[0037] In one implementation of this embodiment, 2N third angle data form a third angle data group, which serves as angle data for reliability analysis.
[0038] S140, performing reliability analysis on the plurality of device tracers corresponding to the calculated third angle data group.
[0039] S151, if the analysis result is unreliable, an alarm signal is generated so as to calibrate the device tracer. The calibrated tracer is used to trace the surgical instrument and the imaging device again.
[0040] S152: If the analysis result is reliable, the third angle data set is considered to be credible.
[0041] More preferably, a representative value may be selected as a reliable angle, for example, by selecting the median from the third angle data set as the representative value of the angle data set, or by selecting the mean, mode, or the like to select the representative value of the angle data set.
[0042] In one implementation of this embodiment, the reliability analysis of the third angle data set in step S140 specifically includes: S141, calculating the error value of the third angle data set, and determining whether the error value exceeds a preset error. If so, the third angle data set is considered unreliable. Otherwise, the third angle data set is considered reliable.
[0043] Specifically, the error value is obtained by using an existing error value calculation method in the present application. For example, the error value can be obtained by a method for calculating the mean absolute error. Alternatively, the error value can be obtained by using a method for calculating the relative error, square error, mean square error, or root error. In practical applications, relevant technical personnel can choose which specific error calculation method to use to solve the problem. This application will not provide any unnecessary explanations.
[0044] In another implementation of this embodiment, the step S140 performs reliability analysis on the third angle data set, specifically including: S142, construct a probability confidence model. Input the third angle data group into the probability confidence model. Use the KNN algorithm to obtain the center point of the largest cluster of the third angle data group. Take the center point as the true value and obtain the confidence of the third angle data group. Determine whether the confidence is less than the target confidence. If so, the third angle data group is considered unreliable. Otherwise, the third angle data group is considered reliable.
[0045] Specifically: In this embodiment, a voting mechanism is set up. The KNN (K-Nearest Neighbors) algorithm is a basic classification and regression method that makes predictions by measuring the distance between different feature values. Assuming that there are K third angles in the third angle data group, and the values of K-1 third angles are highly consistent, then among the K nearest neighbors, the category of the new data point is predicted according to the majority voting principle. That is, the number of each category in the K neighbors is counted, and the category with the largest number is selected as the predicted category of the new data point. The average value of the output values of the K nearest neighbors is calculated, and this average value is used as the predicted output of the new data point, and the output value is used as the center point of the largest cluster of the third angle data group. Based on the probability confidence model, the confidence value of the third angle data group is output.
[0046] In another implementation of this embodiment, the step S140 performs reliability analysis on the third angle data set, specifically including: S143, constructing a Bayesian probability model. Inputting the third angle data set into the Bayesian probability model, using the EM algorithm to find the maximum expected value in the third angle data set. Calculating the confidence of the third angle data set centered on the maximum expected value, and determining whether the confidence is less than the target confidence. If so, the third angle data set is considered unreliable; otherwise, the third angle data set is considered reliable.
[0047] Specifically, in this implementation, the EM (Expectation-Maximization) algorithm is used to obtain the maximum expected value of the third angle data set, and then based on the Bayesian probability model, the prior knowledge is combined with the observed data to calculate the posterior probability distribution of the parameter. This posterior distribution reflects the updated understanding of parameter uncertainty under the influence of new data, and can be used to determine the confidence interval of the parameter, so as to judge whether the third angle data set is reliable.
[0048] Of course, the same technical effects as those of the present application may also be achieved through other existing technologies.
[0049] Another embodiment of the method for improving the angle measurement accuracy of the tracer of the present application is shown in the attached specification. Figure 2 As shown in the figure, from the perspective of device verification, the following steps are included: S210, using multiple device tracers to trace the imaging device, and obtaining a second angle of the imaging device in a coordinate system corresponding to each of the device tracers. Each tracer has two angle navigation modes, including an inertial navigation mode and an electromagnetic navigation mode.
[0050] Specifically, the second angle is the angle change of the imaging device before and after a certain movement. Assuming that N tracers are used to trace the imaging device, 2N second angle data can be obtained. In this embodiment, the second angle data group consisting of the obtained 2N second angle data is used as the angle data for reliability analysis.
[0051] S220, performing reliability analysis on the plurality of device tracers corresponding to the calculated second angle data group.
[0052] S231: If the analysis result is unreliable, an alarm signal is generated so as to calibrate the device tracer. The calibrated tracer is used to trace the surgical instrument and the imaging device again.
[0053] S232, if the analysis result is reliable, the second angle data set is considered to be credible. It can be used to participate in the subsequent calculation of the third angle. The more detailed calculation method is not elaborated in this application. The second conversion relationship corresponding to each second angle and the third angle calculated corresponding to each second angle can be calculated respectively.
[0054] More preferably, a representative value may be selected from the data to participate in subsequent operations. For example, the median may be selected from the second angle data group as the representative value of the angle data group. Alternatively, the representative value of the angle data group may be selected by selecting the mean, mode, etc., and then the second conversion relationship and the third angle are operated. Specifically, in practical applications, the method of selecting the representative value is determined according to the specific application situation.
[0055] Specifically, in some implementations of this embodiment, the step S220 performs reliability analysis on the plurality of device tracers corresponding to the calculated second angle data group, including the following steps: S221, calculate the error value of the second angle data set. Specifically, if the error value calculation result produces an error greater than a preset error, an alarm is issued and a recalibration is requested. This indicates that the cumulative error or electromagnetic interference error has exceeded a threshold. The inertial device can be accurate again as long as it is recalibrated. You can choose to trust the reading of the inertial angle measurement device after calibration.
[0056] In some other implementations of this embodiment, step S220 includes the following steps: S222, design a voting mechanism to judge right or wrong with a probability confidence model. Assume that if the calculation results of N-1 devices in Patent 1 are highly consistent, an alarm will be sounded. If N>4, the results of other sensors can be excluded and the abnormal values can be trusted.
[0057] In some other implementations of this embodiment, step S220 includes the following steps: S223, design a Bayesian probability model, and experimentally measure the probability expectation of a scenario where N+M angle devices produce N highly consistent readings and M inconsistent readings. Calculate the probability of a probability distribution centered on K producing N+M different results. If the confidence is greater than a certain percentage, K is believed to be the true reading. If the confidence is less than a certain threshold, recalibrate the device. K can be obtained using the EM algorithm or other machine learning algorithms.
[0058] Based on the same technical concept, the present application also discloses a system for improving the tracer angle measurement accuracy, which can be used to implement any of the above methods for improving the tracer angle measurement accuracy. Specifically, an embodiment of the system for improving the tracer angle measurement accuracy of the present application is shown in the attached specification. Figure 3 As shown, including: The instrument tracing module is used to trace the surgical instrument using the instrument tracer, obtain the first angle of the surgical instrument in the coordinate system corresponding to the instrument tracer, and calibrate to obtain the first conversion relationship between the instrument coordinate system and the imaging coordinate system.
[0059] The device tracing module is used to use multiple device tracers to trace the imaging device, obtain the second angle of the imaging device in the coordinate system corresponding to each of the device tracers, and thus obtain a second conversion relationship between the imaging coordinate system after movement and the imaging coordinate system before movement.
[0060] Among them, each tracer has two angle navigation modes, including inertial navigation mode and electromagnetic navigation mode. Specifically, the tracer here represents the sum of the instrument tracer and multiple device tracers used in this embodiment. Preferably, the instrument tracer and the device tracer are essentially the same, but the scenarios of action are different, so a distinction is made. It is understandable that the tracer in this application specification can refer to an instrument tracer or a device tracer.
[0061] In this embodiment, the tracer has a built-in tracer chip, which includes a first angle measurement module based on the inertial measurement principle and a second angle measurement module based on the electromagnetic induction principle. The inertial navigation mode and the electromagnetic navigation mode of the tracer are turned on at the same time, that is, one tracer can obtain two angle data. Assuming that N tracers are used to trace the imaging device, 2N second angle data can be obtained.
[0062] The angle calculation module calculates a third angle of the surgical instrument in the imaging coordinate system based on the first angle, the first conversion relationship and the second conversion relationship.
[0063] More preferably, for each second angle, a corresponding third angle can be calculated; assuming that N tracers are used to trace the imaging device, 2N second angle data can be obtained, and correspondingly 2N third angle data can also be obtained.
[0064] In one implementation of this embodiment, 2N third angle data form a third angle data group, which serves as angle data for reliability analysis.
[0065] The reliability analysis module is used to perform reliability analysis on the calculated angle data. If the analysis result is unreliable, an alarm signal is generated to calibrate the device tracer. The angle data is a second angle data group consisting of 2N second angles measured by multiple device tracers.
[0066] The device tracing module is also used to use the calibrated tracer to re-trace the surgical instrument and the imaging device.
[0067] Another embodiment of a system for improving the angle measurement accuracy of a tracer provided by the present application includes: The device tracking module is used to track the imaging device using multiple device trackers, obtain the second angle of the imaging device in the coordinate system corresponding to each of the device trackers, and thus obtain the second conversion relationship between the imaging coordinate system after the movement and the imaging coordinate system before the movement. Each tracker has two angle navigation modes, including an inertial navigation mode and an electromagnetic navigation mode.
[0068] The reliability analysis module is used to perform reliability analysis on the calculated angle data. If the analysis result is unreliable, an alarm signal is generated so as to calibrate the device tracer. Specifically, the angle data is a third angle data group composed of a plurality of third angles calculated through the tracing results of the instrument tracer and a plurality of the device tracers.
[0069] The device tracing module is also used to use the calibrated tracer to re-trace the surgical instrument and the imaging device.
[0070] In some implementations of this embodiment, the reliability analysis module is further used to: calculate the error value of the angle data, and determine whether the error value exceeds a preset error. If so, the angle data is considered unreliable. Otherwise, the angle data is considered reliable.
[0071] Specifically, the error value is obtained by using an existing error value calculation method in the present application. For example, the error value can be obtained by a method for calculating the mean absolute error. Alternatively, the error value can be obtained by using a method for calculating the relative error, square error, mean square error, or root error. In practical applications, relevant technical personnel can choose which specific error calculation method to use to solve the problem. This application will not provide any unnecessary explanations.
[0072] In some other implementations of this embodiment, the reliability analysis module is also used to: construct a probability confidence model. Input the angle data into the probability confidence model. Use the KNN algorithm to obtain the center point of the maximum cluster of the angle data. Take the center point as the true value to obtain the confidence of the angle data. Determine whether the confidence is less than the target confidence. If so, the angle data is considered unreliable. Otherwise, the angle data is considered reliable.
[0073] Specifically, in the present embodiment, a voting mechanism is set up. The KNN (K-Nearest Neighbors) algorithm is a basic classification and regression method that makes predictions by measuring the distances between different feature values. Assuming that there are K third angles in the third angle data group, and the values of K-1 third angles are highly consistent, then among the K nearest neighbors, the category of the new data point is predicted according to the majority voting principle. That is, the number of each category in the K neighbors is counted, and the category with the largest number is selected as the predicted category of the new data point. The average value of the output values of the K nearest neighbors is calculated, and this average value is used as the predicted output of the new data point, and the output value is used as the center point of the largest cluster of the third angle data group. Based on the probability confidence model, the confidence value of the third angle data group is output.
[0074] In some other implementations of this embodiment, the reliability analysis module is also used to: construct a Bayesian probability model. Input the angle data into the Bayesian probability model. Use the EM algorithm to find the maximum expected value in the angle data. Calculate the confidence of the angle data centered on the maximum expected value. Determine whether the confidence is less than a target confidence. If so, the angle data is considered unreliable. Otherwise, the angle data is considered reliable.
[0075] Specifically, in this embodiment, the EM (Expectation-Maximization) algorithm is used to obtain the maximum expected value of the third angle data set, and then based on the Bayesian probability model, the prior data is combined with the observed data to calculate the posterior probability distribution of the parameter. This can be used to determine the confidence interval of the parameter to determine whether the third angle data set is reliable.
[0076] The method and system for improving the angle measurement accuracy of a tracer in the present application have the same technical concept, and the technical details of the embodiments of the two are applicable to each other. In order to reduce repetition, they will not be described again.
[0077] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned program modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program units or modules to complete all or part of the functions described above. The program modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a processing unit, and the above-mentioned integrated unit can be implemented in the form of hardware or in the form of software program units. In addition, the specific names of the program modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.
[0078] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0079] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed with 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 this application.
[0080] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method to improve the accuracy of tracer angle measurement, It is characterized in that The steps include: Using an instrument tracer to trace the surgical instrument, obtaining a first angle of the surgical instrument in a coordinate system corresponding to the instrument tracer; calibrating to obtain a first conversion relationship between the instrument coordinate system and the imaging coordinate system; Using a plurality of device tracers to trace the imaging device, obtaining a second angle of the imaging device in a coordinate system corresponding to each of the device tracers, thereby obtaining a second conversion relationship between the imaging coordinate system after movement and the imaging coordinate system before movement; wherein each tracer has two angle navigation modes, including an inertial navigation mode and an electromagnetic navigation mode; Based on the first angle, the first conversion relationship and the second conversion relationship, a third angle of the surgical instrument in the imaging coordinate system is calculated; Performing reliability analysis on the calculated angle data; if the analysis result is unreliable, generating an alarm signal so as to calibrate the tracer; The surgical instrument and the imaging device are re-traced using the calibrated tracer.
2. A method for improving the angle measurement accuracy of a tracer as claimed in claim 1, It is characterized in that The angle data is a second angle data group consisting of multiple second angles measured by multiple device tracers.
3. A method for improving the angle measurement accuracy of a tracer as claimed in claim 1, It is characterized in that The angle data is a third angle data group composed of a plurality of the third angles calculated through the tracing results of the instrument tracer and a plurality of the equipment tracers.
4. A method for improving the angle measurement accuracy of a tracer as claimed in claim 2 or 3, It is characterized in that The reliability analysis of the calculated angle data specifically includes: Calculating an error value of the angle data, and determining whether the error value exceeds a preset error; If so, the angle data is considered unreliable; otherwise, the angle data is considered reliable.
5. A method for improving the angle measurement accuracy of a tracer as claimed in claim 2 or 3, It is characterized in that The reliability analysis of the calculated angle data specifically includes: Constructing probability confidence model; Input the angle data into the probability confidence model; use the KNN algorithm to find the center point of the maximum cluster of the angle data; take the center point as the true value to find the confidence of the angle data; Determine whether the confidence level is less than a target confidence level; if so, the angle data is considered unreliable; otherwise, the angle data is considered reliable.
6. A method for improving the angle measurement accuracy of a tracer as claimed in claim 2 or 3, It is characterized in that The reliability analysis of the calculated angle data specifically includes: Construct Bayesian probability models; Inputting the angle data into the Bayesian probability model; using the EM algorithm to find the maximum expected value in the angle data; calculating the confidence of the angle data centered on the maximum expected value; Determine whether the confidence level is less than a target confidence level; if so, the angle data is considered unreliable; otherwise, the angle data is considered reliable.
7. A system for improving the accuracy of tracer angle measurement, It is characterized in that include: An instrument tracing module is used to trace the surgical instrument using an instrument tracer, obtain a first angle of the surgical instrument in a coordinate system corresponding to the instrument tracer, and calibrate to obtain a first conversion relationship between the instrument coordinate system and the imaging coordinate system; A device tracking module, used to track the imaging device using multiple device trackers, obtain a second angle of the imaging device in a coordinate system corresponding to each of the device trackers, and thereby obtain a second conversion relationship between the imaging coordinate system after movement and the imaging coordinate system before movement; wherein each tracker has two angle navigation modes, including an inertial navigation mode and an electromagnetic navigation mode; an angle calculation module, which calculates a third angle of the surgical instrument in the imaging coordinate system based on the first angle, the first conversion relationship and the second conversion relationship; A reliability analysis module, used for performing reliability analysis on the calculated angle data; if the analysis result is unreliable, an alarm signal is generated so as to calibrate the device tracer; The equipment tracing module is also used to use the calibrated tracer to re-trace the surgical instrument and the imaging device.
8. A system for improving the angle measurement accuracy of a tracer as claimed in claim 7, It is characterized in that The angle data is a second angle data group consisting of multiple second angles measured by multiple device tracers.
9. A system for improving the angle measurement accuracy of a tracer as claimed in claim 7, It is characterized in that The angle data is a third angle data group composed of a plurality of the third angles calculated through the tracing results of the instrument tracer and a plurality of the equipment tracers.
10. A system for improving the angle measurement accuracy of a tracer as claimed in claim 8 or 9, It is characterized in that The reliability analysis module is further used to: calculate the error value of the angle data, and determine whether the error value exceeds a preset error; if so, the angle data is considered unreliable; otherwise, the angle data is considered reliable; Or, the reliability analysis module is further used to: construct a probability confidence model; input the angle data into the probability confidence model; use the KNN algorithm to obtain the center point of the maximum cluster of the angle data; take the center point as the true value to obtain the confidence of the angle data; determine whether the confidence is less than the target confidence; if so, consider the angle data unreliable; otherwise, consider the angle data reliable; Alternatively, the reliability analysis module is also used to: construct a Bayesian probability model; input the angle data into the Bayesian probability model; use the EM algorithm to find the maximum expected value in the angle data; calculate the confidence of the angle data centered on the maximum expected value; determine whether the confidence is less than a target confidence; if so, the angle data is considered unreliable; otherwise, the angle data is considered reliable.
Citation Information
Patent Citations
System and method for locating target subject
CN111163696A
User input device for use in robotic surgery
CN112689483A
Passive surgical robot navigation positioning system
CN114795496A
Surgical navigation positioning method and device, electronic equipment and medium
CN116473677A
Intelligent ultrasonic navigation extension method and system, storage medium and computer equipment
CN117524387A
