CN112741586B - Position acquisition method based on capsule endoscopy human body internal position acquisition system - Google Patents
Position acquisition method based on capsule endoscopy human body internal position acquisition system Download PDFInfo
- Publication number
- CN112741586B CN112741586B CN202011539785.1A CN202011539785A CN112741586B CN 112741586 B CN112741586 B CN 112741586B CN 202011539785 A CN202011539785 A CN 202011539785A CN 112741586 B CN112741586 B CN 112741586B
- Authority
- CN
- China
- Prior art keywords
- axis
- magnetic field
- field signal
- magnetic
- sampling period
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B1/00—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
- A61B1/04—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor combined with photographic or television appliances
- A61B1/041—Capsule endoscopes for imaging
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B1/00—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
- A61B1/00002—Operational features of endoscopes
- A61B1/00004—Operational features of endoscopes characterised by electronic signal processing
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B1/00—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
- A61B1/00002—Operational features of endoscopes
- A61B1/00011—Operational features of endoscopes characterised by signal transmission
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B1/00—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
- A61B1/00002—Operational features of endoscopes
- A61B1/00011—Operational features of endoscopes characterised by signal transmission
- A61B1/00016—Operational features of endoscopes characterised by signal transmission using wireless means
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B1/00—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
- A61B1/00147—Holding or positioning arrangements
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B1/00—Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
- A61B1/00147—Holding or positioning arrangements
- A61B1/00158—Holding or positioning arrangements using magnetic field
Abstract
The invention provides a position acquisition method based on a capsule endoscopy in-human body position acquisition system. The magnet is arranged in the capsule endoscope and emits a magnetic field signal outwards, and the magnetic field signal intensity is collected by the plurality of magnetic sensors of the vest type three-axis magnetic sensor array plate and is transmitted to the second wireless processor for data processing; the accelerometer and the gyroscope respectively acquire acceleration and angular velocity information of the capsule endoscope and transmit the acceleration and the angular velocity information to the first wireless processor, the first wireless processor obtains attitude information through calculation according to the acceleration and the angular velocity, and the first wireless processor wirelessly transmits the attitude information to the second wireless processor, so that attitude parameters are determined, and only position parameters are estimated. The patent provides a nonlinear least square joint adjustment method based on each axial observed value of the magnetometer according to the system, so that the calculation efficiency is improved, and the occurrence of gross errors is reduced, thereby meeting the requirement of real-time calculation of a capsule endoscope positioning system.
Description
Technical Field
The invention belongs to the field of medical engineering, and particularly relates to a position acquisition method based on a capsule endoscopy in-vivo position acquisition system.
Background
Since the emergence of wireless capsule endoscopes in israel in 2001, the application of the wireless capsule endoscopes in clinical diagnosis greatly makes up the defects that wired endoscopes such as gastroscope enteroscopes are limited in visual field and poor in experience of patients. And the wireless capsule endoscope can diagnose and treat gastrointestinal tract diseases without causing discomfort of patients and influencing normal work and life of the patients. In order to better develop the clinical application of the wireless capsule endoscope and assist doctors in diagnosing and treating gastrointestinal diseases, a problem needs to be solved urgently: and acquiring the position information of the wireless capsule endoscope in the body. So as to help doctors to determine the exact position of the focus in the human body, improve the diagnosis efficiency and reduce the pain of patients. Therefore, a positioning system with high precision, simple and convenient operation and convenient carrying is configured for the wireless capsule endoscope, and becomes an important task in the development process of the wireless capsule endoscope. Therefore, the positioning technology of the wireless capsule endoscope becomes the research focus in the field at present
In the development time of the last two decades from 2000 to the present, a plurality of researchers utilize different sensors and different positioning technologies to carry out deep research on the track and accurate positioning of the wireless capsule endoscope in the human body. The main positioning modes of the existing wireless capsule endoscope are as follows: radio frequency signals (RF), electromagnetic localization (permanent magnets built into the capsule), inertial navigation localization, visual localization, multi-sensor fusion localization, and localization using CT, MRF, ultrasound, and other auxiliary devices. Among many positioning modes, magnetic field has become a research hotspot as a technical means which is harmless to human body and has the advantages that static low-frequency magnetic signals can pass through human tissue without any attenuation.
At present, the research on the magnetic positioning of the capsule endoscope is carried out under the laboratory environment based on the surrounding structural design, and the capsule endoscope can not be positioned completely under the laboratory environment because the stay time of the capsule endoscope in the human body is more than 7 hours. Meanwhile, the positioning efficiency of the current high-precision positioning algorithm is low, and the real-time positioning requirement cannot be met. There is therefore a need for a wearable capsule-endoscope positioning system that determines the position of a capsule-endoscope within the body of a person without affecting the normal activities of the patient.
Disclosure of Invention
The invention provides a position acquisition method based on a capsule endoscope in-vivo position acquisition system, which is characterized in that a vest type magnetic sensor array positioning device is worn on a human body, and meanwhile, the problem of acquiring the position of a capsule endoscope in the human body in real time is solved according to the position acquisition method.
Position acquisition system in capsule scope human body, its characterized in that includes:
the system comprises a capsule endoscope, a magnet, an accelerometer, a gyroscope, a first wireless processor, a plurality of three-axis magnetic sensors, a vest, a second wireless processor, a memory and an application end;
the accelerometer is connected with the first wireless processor in a wired mode; the gyroscope is connected with the first wireless processor in a wired mode; the first wireless processor is wirelessly connected with the second wireless processor; the second wireless processor is connected with the plurality of three-axis magnetic sensors in sequence in a wired mode; the second wireless processor is connected with the memory in a wired mode; the second wireless processor is connected with the application end in a wireless mode;
the plurality of three-axis magnetic sensors, the second wireless processor and the memory form a magnetic sensor array plate and are arranged in the back core;
the vest is worn on a human body;
the accelerometer, the gyroscope and the first wireless processor are all arranged in the capsule endoscope;
the magnet is a permanent magnet or an electromagnet, is arranged in the capsule endoscope and emits a magnetic field outwards;
the accelerometer is used for acquiring acceleration of the capsule endoscope and transmitting the acceleration to the first wireless processor, the gyroscope is used for acquiring angular velocity of the capsule endoscope and transmitting the angular velocity of the capsule endoscope to the first wireless processor, the first wireless processor obtains attitude information according to the acceleration and the angular velocity through a mechanical arrangement algorithm using inertial navigation, and further the attitude information is wirelessly transmitted to the second wireless processor through the first wireless processor;
the plurality of three-axis magnetic sensors sequentially acquire the strength of magnetic field signals and transmit the strength of the magnetic field signals to the second wireless processor;
the second wireless processor is used for carrying out positioning calculation according to the magnetic field signal intensity and the attitude information acquired by the plurality of three-axis magnetic sensors, calculating the position information of the magnet and wirelessly transmitting the position information to the application end;
the memory is used for storing a coordinate database of a plurality of magnetic sensors and magnet receiving position information;
and the application end is used for receiving the magnet position information from the microprocessor.
The database comprises an observation value database, a sensor coordinate database and sensor position data;
the observation value database comprises identification codes of all the three-axis magnetic sensors and the corresponding observed magnetic field signal intensity, and is stored in the second wireless processor.
The sensor coordinate database comprises a capsule endoscope identification code, a position, a posture and time information corresponding to the capsule endoscope position, and the time information is stored in the second wireless processor.
The sensor position database is used for storing the positions of the magnetic sensors of all three axes, storing the positions in the second wireless processor and sending the positions to the sensor position database.
The position acquisition method comprises the following steps:
step 1: the magnet emits magnetic field signals, the magnetic field signal intensities are sequentially collected by the plurality of magnetic sensors and transmitted to the second wireless processor, the magnetic field signal intensities are compensated by combining the environmental magnetic field intensity to obtain compensated magnetic field signal intensities, coarse difference elimination is carried out on the compensated magnetic field signal intensities according to the sampling time to obtain effective magnetic field signal intensities, and the effective magnetic field signal intensities are further subjected to smoothing processing to obtain smoothed magnetic field signal intensities;
step 2: the accelerometer is used for acquiring acceleration of the capsule endoscope and transmitting the acceleration to the first wireless processor, the gyroscope is used for acquiring angular velocity of the capsule endoscope and transmitting the angular velocity of the capsule endoscope to the first wireless processor, the first wireless processor obtains attitude information according to the acceleration and the angular velocity through a mechanical arrangement algorithm using inertial navigation, and the first wireless processor wirelessly transmits the attitude information to the second wireless processor and stores the attitude information to an observed value of the second wireless processor;
and 3, calculating a magnetic moment direction vector by combining the attitude information through the second microprocessor, sequentially constructing a first magnetic dipole model function, a second magnetic dipole model function and a third magnetic dipole model function according to the magnetic moment direction vector, and further calculating the position of the capsule endoscope by utilizing the smoothed magnetic field signal intensity, the linearized first magnetic dipole model function, the linearized second magnetic dipole model function and the linearized third magnetic dipole model function.
Preferably, the magnetic field signal strength in step 1 is:
i∈[1,N],t∈[1,M],k∈[1,T]
wherein N is the number of magnetic sensors, M is the number of sampling instants, T is the number of sampling periods,in order to sample the magnetic field signal strength of the ith triaxial magnetic sensor at time t in the kth sampling period,in order to sample the X-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,in order to sample the Y-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,sampling the Z-axis magnetic field signal intensity of the ith triaxial magnetic sensor at the time t in the kth sampling period;
step 1, the magnetic field signal intensity is compensated by combining the environmental magnetic field intensity to obtain the compensated magnetic field signal intensity as follows:
i∈[1,N],t∈[1,M],k∈[1,T]
wherein N is the number of magnetic sensors, M is the number of sampling moments, T is the number of sampling periods, andin order to sample the compensated magnetic field signal strength of the ith triaxial magnetic sensor at time t in the kth sampling period,in order to sample the compensated X-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,in order to sample the compensated Y-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,to sample the compensated Z-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period, [ B ]e,x Be,y Be,z]Being the intensity of the ambient magnetic field, Be,xIs the X-axis ambient magnetic field strength, Be,yIs the Y-axis ambient magnetic field strength, Be,zIs the Z-axis ambient magnetic field strength;
step 1, performing gross error elimination on the compensated magnetic field signal intensity according to the sampling time to obtain the effective magnetic field signal intensity:
if the magnetic field signal intensity of any axis of the X, Y and Z axes at the time t in the kth sampling period meets the following condition, judging that the data at the time is a gross error:
wherein the content of the first and second substances,the intensity of the X-axis magnetic field signal compensated for the sampling moment before the moment t in the kth sampling period,the compensated intensity of the X-axis magnetic field signal at the sampling moment after the t moment in the kth sampling period,the intensity of the Y-axis magnetic field signal compensated for the sampling moment before the t moment in the kth sampling period,the compensated Y-axis magnetic field signal strength for the sampling time after time t,the intensity of the Z-axis magnetic field signal after compensation at the sampling moment before the t moment,the intensity of the Z-axis magnetic field signal compensated for the sampling time after the time t is the Th is a set threshold, and if the intensity of the magnetic field signal at the time t is judged to be coarse difference, the weight of the intensity can be reduced or the data can be discarded;
step 1, performing data smoothing processing on the effective magnetic field signal intensity according to the sampling time to obtain the smoothed magnetic field signal intensity:
i∈[1,N]
w1<w2...<wN
wherein, it is madeThe smoothed magnetic field signal strength of the ith triaxial magnetic sensor in the kth sampling period,for the k sampling periodThe smoothed X-axis magnetic field signal strength of the ith three-axis magnetic sensor during the period,the smoothed Y-axis magnetic field signal strength of the ith three-axis magnetic sensor in the kth sampling period,the intensity of the smoothed Z-axis magnetic field signal of the ith triaxial magnetic sensor in the kth sampling period is obtained;
preferably, the attitude information of step 2 includes: pitch angle, roll angle, course angle;
the roll angle is defined as phikShowing X in the local coordinate system of the capsule endoscope around the capsule endoscope in the kth sampling periodlThe angle of rotation of the shaft;
the pitch angle is defined as thetakRepresents Y in the local coordinate system of the capsule endoscope around the capsule endoscope in the kth sampling periodlThe angle of rotation of the shaft;
the heading angle is defined as psikShowing Z in the local coordinate system of the capsule endoscope around the capsule endoscope in the kth sampling periodlThe angle of rotation of the shaft;
the construction method of the capsule endoscope positioning local coordinate system comprises the following steps:
the first wireless processor selects any one of the three-axis magnetic sensors as a coordinate system origin, and uses a human body sagittal axis as a capsule endoscope to position an X in a local coordinate systemlThe axis and the human coronal axis are Y in a capsule endoscope positioning local coordinate systemlThe axis and the pointing direction are Z in a capsule endoscope positioning local coordinate systemlA shaft;
preferably, the step 3 of calculating the magnetic moment direction vector in combination with the attitude information is:
wherein, [ l0 m0 n0]TIs the initial magnetic moment vector of the magnet, l0Is the initial magnetic moment direction vector of the magnet in a local coordinate system XlComponent of the axis, m0Is the initial magnetic moment direction vector of the magnet in a local coordinate system YlComponent of the axis, n0Is the initial magnetic moment direction vector of the magnet in a local coordinate system ZlThe component of the axis is such that,representing X in a local coordinate system of the capsule endoscope around the capsule endoscope for the roll angle of the kth sampling periodlThe angle of rotation of the shaft is such that,representing the pitch angle of the kth sampling period as Y in a local coordinate system of the capsule endoscope around the capsule endoscopelThe angle of rotation of the shaft is such that,representing Z in a local coordinate system of the capsule endoscope around the capsule endoscope for the course of the kth sampling periodlThe angle of rotation of the shaft;
step 3, constructing a first magnetic dipole model function is as follows:
step 3, constructing a second magnetic dipole model function as follows:
step 3, constructing a third magnetic dipole model function is as follows:
wherein, BTConstant is determined by capsule endoscope magnet,For the X of the k-th sampling period capsule endoscopelThe coordinates of the axes are set to be,for the kth sampling period of Y of the capsule endoscopelThe coordinates of the axes are set to be,for the Z of the k-th sampling period of the capsule endoscopelAxial coordinate, xiFor the ith three-axis magnetic sensor SiX of (2)lAxial coordinate, yiFor the ith three-axis magnetic sensor SiY of (A) islAxial coordinate, ziFor the ith three-axis magnetic sensor SiZ of (A)lThe coordinates of the axes are set to be,the X-axis magnetic field signal strength value of the ith three-axis magnetic sensor in the kth sampling period,the Y-axis magnetic field signal intensity value of the ith three-axis magnetic sensor in the kth sampling period, the Z-axis magnetic field signal intensity value of the ith three-axis magnetic sensor in the kth sampling period,for the k sampling period, the magnetic moment direction vector is in the local coordinate system XlThe component of the axis is such that,for the k sampling period, the magnetic moment direction vector is in the local coordinate system YlThe component of the axis is such that,for the k sampling period, the magnetic moment direction vector is in the local coordinate system ZlComponent of the axis, LiFrom capsule endoscope to ith triaxial magnetic transmissionThe euclidean distance at the sensor is,forming a magnetic moment direction vector;
the Euclidean distance from the capsule endoscope to the ith triaxial magnetic sensor is as follows:
and 3, linearizing the smoothed magnetic field signal intensity, the first magnetic dipole model function, the second magnetic dipole model function and the third magnetic dipole model function:
the observation model between the magnetic field signal observation value and the capsule endoscope coordinate is as follows:
wherein the content of the first and second substances,the smoothed magnetic field signal intensity vector for the kth sampling period,is the coordinate of the capsule endoscope in the kth sampling period, h (#) is the magnetic dipole model function,and observing the error of the smoothed magnetic field signal intensity in the kth sampling period.
And performing Taylor series expansion on an observation model between the magnetic field signal observation value and the capsule endoscope coordinate:
wherein the content of the first and second substances,the estimated value of the coordinates of the capsule endoscope in the kth sampling period is calculated as the coordinates of the capsule endoscope in the kth-1 sampling periodIf the estimated value is calculated for the first time and is the initial value given by the user, the high-order term is omitted, and the formula is taken to be the first-order term to obtain:
whereinIn order to obtain the coordinate error to be solved,waiting for a coordinate error for the kth sampling periodLocal coordinate system XlThe axial component of the magnetic flux is,waiting for a coordinate error for the kth sampling periodLocal coordinate system YlThe axial component of the magnetic flux is,waiting for a coordinate error for the kth sampling periodLocal coordinate system ZlThe axial component of the magnetic flux is,to design the matrix, the above formula is transformed to obtain an observed value closurePoor linear observation model:
smoothing the post-magnetic field signal intensity vector for the kth sampling periodAnd the magnetic strength estimation of the k sampling periodThe difference between the two;
the linear observation model based on the three-axis magnetic sensor array observation value can be designed as follows:
wherein N is the total number of the magnetic sensors,the component of the ith three-axis magnetic sensor observation closure difference in the X-axis for the kth sampling period,the component of the ith three-axis magnetic sensor observation closure difference in the Y-axis for the kth sampling period,the component of the ith triaxial magnetic sensor observation value closure difference in the Z axis in the kth sampling period is as follows:
i∈[1,N]
whereinThe component of the intensity of the magnetic field signal on the X axis after the ith three-axis magnetic sensor is smoothed for the kth sampling period,the component of the intensity of the magnetic field signal on the Y axis after the ith three-axis magnetic sensor is smoothed for the kth sampling period,the component of the intensity of the magnetic field signal on the Z axis after the ith three-axis magnetic sensor is smoothed for the kth sampling period,using a kth sampling period capsule endoscopy coordinate estimate for passing through the first magnetic dipole model functionThe calculated component of the magnetic field signal strength estimation value of the ith three-axis magnetic sensor on the X axis of the local coordinate system,using a kth sampling period capsule endoscopy coordinate estimate for passing the second magnetic dipole model functionThe calculated component of the magnetic field signal strength estimation value of the ith three-axis magnetic sensor on the Y axis of the local coordinate system,using a kth sampling period capsule endoscopy coordinate estimate for passing the third magnetic dipole model functionComputingAnd obtaining a component of the magnetic field signal strength estimation value of the ith three-axis magnetic sensor on the Z axis of the local coordinate system.
obtaining X-axis observation value from the first magnetic dipole model function, the second magnetic dipole model function and the third magnetic dipole model functionThe partial derivative of (a) is expressed as:
wherein, the simplified expression PiThe expression is as follows:
And 3, calculating the capsule endoscope position as follows:
the method for calculating the position of the capsule endoscope by adopting a least square method comprises the following steps:
wherein R is observation value covariance matrix, and inverse matrix R of R-1The weight of the measurement values of different three-axis magnetic sensors in least square estimation is determined, and an R array meets the following requirements:
wherein the content of the first and second substances,as a priori variance, may be provided by a sensor performance parameter, QRIs a co-factor matrix of observed values, Q, due to independence between the measured values of the sensorsRCan be written for a diagonal array:
QR=diag(Q11,Q22,...,Q3N3N)T
wherein the diagonal element Q11,Q22,...,Q3N3NRepresenting the variance of each sensor observation.
Generally, the covariance matrix of least square estimation is a unit matrix, and in the present invention, since the farther from the magnet, the greater the variance of the magnetometer measurement values, the present invention estimates the variance of the observation values by using the weight of the magnetometer observation values, that is:
wherein the content of the first and second substances,the mode of the intensity of the smoothed magnetic field signal of the ith magnetic sensor;
in addition to least squares, other estimation methods may be used, such as kalman filtering or LM methods;
The invention has the following beneficial effects:
a set of wearable sensor array positioning system using a low-cost magnetometer is designed, and the system is designed according to actual use conditions and has strong practicability.
The traditional LM method for solving the nonlinear equation of the capsule magnet position has the advantage of high precision, but simultaneously faces two problems: one is to estimate 6 parameters of position and attitude. Estimating 6 parameters in the case of a small number of observations falls into local optima. This patent proposes an LM method based on attitude constraints. The basic idea is to determine the attitude parameters and only estimate the position parameters. The method can greatly reduce the probability of the algorithm falling into local optimization.
And compared with a linear method, the traditional LM method has large calculation amount and low efficiency, needs a relatively accurate initial position and is difficult to meet the real-time requirement. In order to solve the problem, the patent provides a nonlinear least square joint adjustment method based on each axial observed value of a magnetometer, so that the calculation efficiency is improved, and the occurrence of gross errors is reduced. Thereby meeting the requirement of real-time calculation of an embedded platform of the capsule endoscope positioning system.
Drawings
FIG. 1: is a schematic diagram of a capsule endoscope human body internal position acquisition system;
FIG. 2: is a flow chart of the method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other. For the parameters that need to be analyzed in the actual situation, we have noted the parameter setting method above and will not be described herein.
The embodiment of the invention is particularly applied to acquiring the specific position of a focus area in a human body when a doctor analyzes the disease condition.
Fig. 1 is a schematic diagram of the system for acquiring the position of the capsule endoscope in the human body according to the present invention. Referring to fig. 1, the system for acquiring a position in a human body by using a capsule endoscope comprises:
position acquisition system in capsule scope human body, its characterized in that includes:
the system comprises a capsule endoscope, a magnet, an accelerometer, a gyroscope, a first wireless processor, a plurality of three-axis magnetic sensors, a vest, a second wireless processor, a memory and an application end;
the accelerometer is connected with the first wireless processor in a wired mode; the gyroscope is connected with the first wireless processor in a wired mode; the first wireless processor is wirelessly connected with the second wireless processor; the second wireless processor is connected with the plurality of three-axis magnetic sensors in sequence in a wired mode; the second wireless processor is connected with the memory in a wired mode; the second wireless processor is connected with the application end in a wireless mode;
the plurality of three-axis magnetic sensors, the second wireless processor and the memory form a magnetic sensor array plate and are arranged in the back core;
the vest is worn on a human body, and the vest covers the trunk of the human body in a wearing manner;
the accelerometer, the gyroscope and the first wireless processor are all arranged in the capsule endoscope;
the magnet is a permanent magnet or an electromagnet, is arranged in the capsule endoscope and emits a magnetic field outwards;
the accelerometer is used for acquiring acceleration of the capsule endoscope and transmitting the acceleration to the first wireless processor, the gyroscope is used for acquiring angular velocity of the capsule endoscope and transmitting the angular velocity of the capsule endoscope to the first wireless processor, the first wireless processor obtains attitude information according to the acceleration and the angular velocity through a mechanical arrangement algorithm using inertial navigation, and further the attitude information is wirelessly transmitted to the second wireless processor through the first wireless processor;
the plurality of three-axis magnetic sensors sequentially acquire the strength of magnetic field signals and transmit the strength of the magnetic field signals to the second wireless processor;
the second wireless processor is used for carrying out positioning calculation according to the magnetic field signal intensity and the attitude information acquired by the plurality of three-axis magnetic sensors, calculating the position information of the magnet and wirelessly transmitting the position information to the application end;
the memory is used for storing a coordinate database of a plurality of magnetic sensors and magnet receiving position information;
and the application end is used for receiving the magnet position information from the microprocessor.
The database comprises an observation value database, a sensor coordinate database and sensor position data;
the observation value database comprises identification codes of all the three-axis magnetic sensors and the corresponding observed magnetic field signal intensity, and is stored in the second wireless processor.
The sensor coordinate database comprises a capsule endoscope identification code, a position, a posture and time information corresponding to the capsule endoscope position, and the time information is stored in the second wireless processor.
The sensor position database is used for storing the positions of the magnetic sensors of all three axes, storing the positions in the second wireless processor and sending the positions to the sensor position database.
Fig. 2 is a schematic diagram of a capsule endoscope position acquisition method according to the present invention. Referring to fig. 2, the method for acquiring the position of the capsule endoscope includes the following steps:
step 1: the magnet emits magnetic field signals, the magnetic field signal intensities are sequentially collected by the plurality of magnetic sensors and transmitted to the second wireless processor, the magnetic field signal intensities are compensated by combining the environmental magnetic field intensity to obtain compensated magnetic field signal intensities, coarse difference elimination is carried out on the compensated magnetic field signal intensities according to the sampling time to obtain effective magnetic field signal intensities, and the effective magnetic field signal intensities are further subjected to smoothing processing to obtain smoothed magnetic field signal intensities;
step 1 the magnetic field signal intensity is:
i∈[1,N],t∈[1,M],k∈[1,T]
where N-18 is the number of magnetic sensors, M-72000 is the number of sampling times, T-10 is the number of sampling cycles,in order to sample the magnetic field signal strength of the ith triaxial magnetic sensor at time t in the kth sampling period,in order to sample the X-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,in order to sample the Y-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,sampling the Z-axis magnetic field signal intensity of the ith triaxial magnetic sensor at the time t in the kth sampling period;
step 1, the magnetic field signal intensity is compensated by combining the environmental magnetic field intensity to obtain the compensated magnetic field signal intensity as follows:
i∈[1,N],t∈[1,M],k∈[1,T]
wherein N is the number of magnetic sensors, M is the number of sampling moments, T is the number of sampling periods, andin order to sample the compensated magnetic field signal strength of the ith triaxial magnetic sensor at time t in the kth sampling period,in order to sample the compensated X-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,in order to sample the compensated Y-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,to sample the compensated Z-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period, [ B ]e,x Be,y Be,z]Being the intensity of the ambient magnetic field, Be,xIs the X-axis ambient magnetic field strength, Be,yIs the Y-axis ambient magnetic field strength, Be,zIs the Z-axis ambient magnetic field strength;
step 1, performing gross error elimination on the compensated magnetic field signal intensity according to the sampling time to obtain the effective magnetic field signal intensity:
if the magnetic field signal intensity of any axis of the X, Y and Z axes at the time t in the kth sampling period meets the following condition, judging that the data at the time is a gross error:
wherein the content of the first and second substances,the intensity of the X-axis magnetic field signal compensated for the sampling moment before the moment t in the kth sampling period,the compensated intensity of the X-axis magnetic field signal at the sampling moment after the t moment in the kth sampling period,the intensity of the Y-axis magnetic field signal compensated for the sampling moment before the t moment in the kth sampling period,the compensated Y-axis magnetic field signal strength for the sampling time after time t,the intensity of the Z-axis magnetic field signal after compensation at the sampling moment before the t moment,the intensity of the Z-axis magnetic field signal compensated for the sampling time after the time t, Th is a set threshold, and if the intensity of the magnetic field signal at the time t is determined to be coarse, the weight can be reduced orDiscarding the data;
step 1, performing data smoothing processing on the effective magnetic field signal intensity according to the sampling time to obtain the smoothed magnetic field signal intensity:
i∈[1,N]
w1<w2...<wN
wherein, it is madeThe smoothed magnetic field signal strength of the ith triaxial magnetic sensor in the kth sampling period,the smoothed X-axis magnetic field signal strength of the ith three-axis magnetic sensor in the kth sampling period,the smoothed Y-axis magnetic field signal strength of the ith three-axis magnetic sensor in the kth sampling period,the intensity of the smoothed Z-axis magnetic field signal of the ith triaxial magnetic sensor in the kth sampling period is obtained;
step 2: the accelerometer is used for collecting acceleration of the capsule endoscope and transmitting the acceleration to the first wireless processor, the gyroscope is used for collecting angular velocity of the capsule endoscope and transmitting the angular velocity of the capsule endoscope to the first wireless processor, the first wireless processor obtains attitude information according to the acceleration and the angular velocity through a mechanical arrangement algorithm using inertial navigation, and the first wireless processor wirelessly transmits the attitude information to the second wireless processor and stores the attitude information to an observed value of the second wireless processor.
Step 2, the attitude information comprises: pitch angle, roll angle, course angle;
the roll angle is defined as phikShowing X in the local coordinate system of the capsule endoscope around the capsule endoscope in the kth sampling periodlThe angle of rotation of the shaft;
the pitch angle is defined as thetakRepresents Y in the local coordinate system of the capsule endoscope around the capsule endoscope in the kth sampling periodlThe angle of rotation of the shaft;
the heading angle is defined as psikShowing Z in the local coordinate system of the capsule endoscope around the capsule endoscope in the kth sampling periodlThe angle of rotation of the shaft;
the construction method of the capsule endoscope positioning local coordinate system comprises the following steps:
the first wireless processor selects any one of the three-axis magnetic sensors as a coordinate system origin, and uses a human body sagittal axis as a capsule endoscope to position an X in a local coordinate systemlThe axis and the human coronal axis are Y in a capsule endoscope positioning local coordinate systemlThe axis and the pointing direction are Z in a capsule endoscope positioning local coordinate systemlA shaft;
step 3, the second microprocessor calculates a magnetic moment direction vector by combining the attitude information, sequentially constructs a first magnetic dipole model function, a second magnetic dipole model function and a third magnetic dipole model function according to the magnetic moment direction vector, and further calculates the position of the capsule endoscope by utilizing the smoothed magnetic field signal intensity, the linearized first magnetic dipole model function, the linearized second magnetic dipole model function and the linearized third magnetic dipole model function;
step 3, calculating the magnetic moment direction vector by combining the attitude information as follows:
wherein, [ l0 m0 n0]TIs the initial magnetic moment vector of the magnet, l0Is the initial magnetic moment direction vector of the magnet in a local coordinate system XlComponent of the axis, m0Is the initial magnetic moment direction vector of the magnet in a local coordinate system YlComponent of the axis, n0Is the initial magnetic moment direction vector of the magnet in a local coordinate system ZlThe component of the axis is such that,representing X in a local coordinate system of the capsule endoscope around the capsule endoscope for the roll angle of the kth sampling periodlThe angle of rotation of the shaft is such that,representing the pitch angle of the kth sampling period as Y in a local coordinate system of the capsule endoscope around the capsule endoscopelThe angle of rotation of the shaft is such that,representing Z in a local coordinate system of the capsule endoscope around the capsule endoscope for the course of the kth sampling periodlThe angle of rotation of the shaft;
step 3, constructing a first magnetic dipole model function is as follows:
step 3, constructing a second magnetic dipole model function as follows:
step 3, constructing a third magnetic dipole model function is as follows:
wherein, BTThe constant value is determined by a magnet of the capsule endoscope,for the X of the k-th sampling period capsule endoscopelThe coordinates of the axes are set to be,for the kth sampling period of Y of the capsule endoscopelThe coordinates of the axes are set to be,for the Z of the k-th sampling period of the capsule endoscopelAxial coordinate, xiFor the ith three-axis magnetic sensor SiX of (2)lAxial coordinate, yiFor the ith three-axis magnetic sensor SiY of (A) islAxial coordinate, ziFor the ith three-axis magnetic sensor SiZ of (A)lThe coordinates of the axes are set to be,the X-axis magnetic field signal strength value of the ith three-axis magnetic sensor in the kth sampling period,the Y-axis magnetic field signal intensity value of the ith three-axis magnetic sensor in the kth sampling period, the Z-axis magnetic field signal intensity value of the ith three-axis magnetic sensor in the kth sampling period,for the k sampling period, the magnetic moment direction vector is in the local coordinate system XlThe component of the axis is such that,for the k sampling period, the magnetic moment direction vector is in the local coordinate system YlThe component of the axis is such that,for the k sampling period, the magnetic moment direction vector is in the local coordinate system ZlThe component of the axis is such that,the Euclidean distance from the capsule endoscope to the ith triaxial magnetic sensor in the kth sampling period,forming a magnetic moment direction vector;
the Euclidean distance from the capsule endoscope to the ith triaxial magnetic sensor is as follows:
and 3, linearizing the smoothed magnetic field signal intensity, the first magnetic dipole model function, the second magnetic dipole model function and the third magnetic dipole model function:
the observation model between the magnetic field signal observation value and the capsule endoscope coordinate is as follows:
wherein the content of the first and second substances,the smoothed magnetic field signal intensity vector for the kth sampling period,is the coordinate of the capsule endoscope in the kth sampling period, h (#) is the magnetic dipole model function,and observing the error of the smoothed magnetic field signal intensity in the kth sampling period.
And performing Taylor series expansion on an observation model between the magnetic field signal observation value and the capsule endoscope coordinate:
wherein the content of the first and second substances,for the kth sampling period capsule endoscopy coordinateEstimated value of the coordinates of the capsule endoscope calculated in the k-1 sampling periodIf the estimated value is calculated for the first time and is the initial value given by the user, the high-order term is omitted, and the formula is taken to be the first-order term to obtain:
whereinIn order to obtain the coordinate error to be solved,waiting for a coordinate error for the kth sampling periodLocal coordinate system XlThe axial component of the magnetic flux is,waiting for a coordinate error for the kth sampling periodLocal coordinate system YlThe axial component of the magnetic flux is,waiting for a coordinate error for the kth sampling periodLocal coordinate system ZlThe axial component of the magnetic flux is,in order to design a matrix, the linear observation model of the observed value closure difference can be obtained by transforming the formula:
smoothing the post-magnetic field signal intensity vector for the kth sampling periodAnd the magnetic strength estimation of the k sampling periodThe difference between the two;
the linear observation model based on the three-axis magnetic sensor array observation value can be designed as follows:
wherein N is the total number of the magnetic sensors,the component of the ith three-axis magnetic sensor observation closure difference in the X-axis for the kth sampling period,the component of the ith three-axis magnetic sensor observation closure difference in the Y-axis for the kth sampling period,the component of the ith triaxial magnetic sensor observation value closure difference in the Z axis in the kth sampling period is as follows:
i∈[1,N]
whereinThe component of the intensity of the magnetic field signal on the X axis after the ith three-axis magnetic sensor is smoothed for the kth sampling period,the component of the intensity of the magnetic field signal on the Y axis after the ith three-axis magnetic sensor is smoothed for the kth sampling period,the component of the intensity of the magnetic field signal on the Z axis after the ith three-axis magnetic sensor is smoothed for the kth sampling period,using a kth sampling period capsule endoscopy coordinate estimate for passing through the first magnetic dipole model functionThe calculated component of the magnetic field signal strength estimation value of the ith three-axis magnetic sensor on the X axis of the local coordinate system,using a kth sampling period capsule endoscopy coordinate estimate for passing the second magnetic dipole model functionThe calculated component of the magnetic field signal strength estimation value of the ith three-axis magnetic sensor on the Y axis of the local coordinate system,using a kth sampling period capsule endoscopy coordinate estimate for passing the third magnetic dipole model functionAnd calculating the component of the magnetic field signal strength estimation value of the ith three-axis magnetic sensor on the Z axis of the local coordinate system.
obtaining X-axis observation value from the first magnetic dipole model function, the second magnetic dipole model function and the third magnetic dipole model functionThe partial derivative of (a) is expressed as:
wherein, the simplified expression PiThe expression is as follows:
And 3, calculating the capsule endoscope position as follows:
the method for calculating the position of the capsule endoscope by adopting a least square method comprises the following steps:
wherein R is observation value covariance matrix, and inverse matrix R of R-1The weight of the measurement values of different three-axis magnetic sensors in least square estimation is determined, and an R array meets the following requirements:
wherein the content of the first and second substances,as a priori variance, may be provided by a sensor performance parameter, QRIs a co-factor matrix of observed values, Q, due to independence between the measured values of the sensorsRCan be written for a diagonal array:
QR=diag(Q11,Q22,...,Q3N3N)T
wherein the diagonal element Q11,Q22,...,Q3N3NRepresenting the variance of each sensor observation.
Generally, the covariance matrix of least square estimation is a unit matrix, and in the present invention, since the farther from the magnet, the greater the variance of the magnetometer measurement values, the present invention estimates the variance of the observation values by using the weight of the magnetometer observation values, that is:
wherein the content of the first and second substances,the mode of the intensity of the smoothed magnetic field signal of the ith magnetic sensor;
in addition to least squares, other estimation methods may be used, such as kalman filtering or LM methods;
The wearable device is low in power consumption and easy to wear, and the capsule endoscope human body positioning system can remarkably reduce the number of required magnetic sensors and is convenient for design and use of the system.
Compared with a nonlinear calculation method, the linear least square algorithm provided by the embodiment has higher efficiency under the same precision, and is suitable for an application scene of acquiring the capsule position in real time.
The method of the invention is also applicable in combination with other sensors such as inertial sensors, visual sensors.
It should be understood that parts of the application not described in detail are prior art.
It should be understood that the above description of the preferred embodiments is given for clearness of understanding and no unnecessary limitations should be understood therefrom, and all changes and modifications may be made by those skilled in the art without departing from the scope of the invention as defined by the appended claims.
Claims (3)
1. The utility model provides a position acquisition system in human of capsule scope which characterized in that:
position acquisition system in capsule scope human body, its characterized in that includes:
the system comprises a capsule endoscope, a magnet, an accelerometer, a gyroscope, a first wireless processor, a plurality of three-axis magnetic sensors, a vest, a second wireless processor, a memory and an application end;
the accelerometer is connected with the first wireless processor in a wired mode; the gyroscope is connected with the first wireless processor in a wired mode; the first wireless processor is wirelessly connected with the second wireless processor; the second wireless processor is connected with the plurality of three-axis magnetic sensors in sequence in a wired mode; the second wireless processor is connected with the memory in a wired mode; the second wireless processor is connected with the application end in a wireless mode;
the plurality of three-axis magnetic sensors, the second wireless processor and the memory form a magnetic sensor array plate and are arranged in the back core;
the vest is worn on a human body;
the accelerometer, the gyroscope and the first wireless processor are all arranged in the capsule endoscope;
the magnet is a permanent magnet or an electromagnet, is arranged in the capsule endoscope and emits a magnetic field outwards;
the accelerometer is used for acquiring acceleration of the capsule endoscope and transmitting the acceleration to the first wireless processor, the gyroscope is used for acquiring angular velocity of the capsule endoscope and transmitting the angular velocity of the capsule endoscope to the first wireless processor, the first wireless processor obtains attitude information according to the acceleration and the angular velocity through a mechanical arrangement algorithm using inertial navigation, and further the attitude information is wirelessly transmitted to the second wireless processor through the first wireless processor;
the plurality of three-axis magnetic sensors sequentially acquire the strength of magnetic field signals and transmit the strength of the magnetic field signals to the second wireless processor;
the second wireless processor is used for carrying out positioning calculation according to the magnetic field signal intensity and the attitude information acquired by the plurality of three-axis magnetic sensors, calculating the position information of the magnet and wirelessly transmitting the position information to the application end;
the memory is used for storing a coordinate database of a plurality of three-axis magnetic sensors and magnet receiving position information;
the application end is used for receiving magnet position information from the second wireless processor;
the magnet emits a magnetic field signal, the magnetic field signal strength is sequentially acquired by the plurality of three-axis magnetic sensors and transmitted to the second wireless processor, the magnetic field signal strength is compensated by combining the environmental magnetic field strength to obtain a compensated magnetic field signal strength, coarse difference elimination is carried out on the compensated magnetic field signal strength according to the sampling time to obtain an effective magnetic field signal strength, and the effective magnetic field signal strength is further subjected to smoothing processing to obtain a smoothed magnetic field signal strength;
the accelerometer is used for acquiring acceleration of the capsule endoscope and transmitting the acceleration to the first wireless processor, the gyroscope is used for acquiring angular velocity of the capsule endoscope and transmitting the angular velocity of the capsule endoscope to the first wireless processor, the first wireless processor obtains attitude information according to the acceleration and the angular velocity through a mechanical arrangement algorithm using inertial navigation, and the first wireless processor wirelessly transmits the attitude information to the second wireless processor and stores the attitude information to an observed value of the second wireless processor;
the second wireless processor calculates a magnetic moment direction vector by combining the attitude information, sequentially constructs a first magnetic dipole model function, a second magnetic dipole model function and a third magnetic dipole model function according to the magnetic moment direction vector, and further calculates the position of the capsule endoscope by utilizing the intensity of the smoothed magnetic field signal and the linearized first magnetic dipole model function, second magnetic dipole model function and third magnetic dipole model function;
the calculation of the magnetic moment direction vector in combination with the attitude information is:
wherein, [ l0 m0 n0]TIs the initial magnetic moment vector of the magnet, l0Is the initial magnetic moment direction vector of the magnet in a local coordinate system XlComponent of the axis, m0Is the initial magnetic moment direction vector of the magnet in a local coordinate system YlComponent of the axis, n0Is the initial magnetic moment direction vector of the magnet in a local coordinate system ZlComponent of the axis phitkRepresenting X in a local coordinate system of the capsule endoscope around the capsule endoscope for the roll angle of the kth sampling periodlThe angle of rotation of the shaft is such that,representing the pitch angle of the kth sampling period as Y in a local coordinate system of the capsule endoscope around the capsule endoscopelThe angle of rotation of the shaft is such that,representing Z in a local coordinate system of the capsule endoscope around the capsule endoscope for the course of the kth sampling periodlThe angle of rotation of the shaft;
the first magnetic dipole model function is constructed by:
the second magnetic dipole model function is constructed by:
the third magnetic dipole model function is constructed by:
wherein, BTThe constant value is determined by a magnet of the capsule endoscope,for the X of the k-th sampling period capsule endoscopelThe coordinates of the axes are set to be,for the kth sampling period of Y of the capsule endoscopelThe coordinates of the axes are set to be,for the Z of the k-th sampling period of the capsule endoscopelAxial coordinate, xiFor the ith three-axis magnetic sensor SiX of (2)lAxial coordinate, yiFor the ith three-axis magnetic sensor SiY of (A) islAxial coordinate, ziFor the ith three-axis magnetic sensor SiZ of (A)lThe coordinates of the axes are set to be,the X-axis magnetic field signal strength value of the ith three-axis magnetic sensor in the kth sampling period,is the Y-axis magnetic field signal intensity value of the ith three-axis magnetic sensor in the kth sampling period,is the Z-axis magnetic field signal strength value of the ith three-axis magnetic sensor in the kth sampling period,for the k sampling period, the magnetic moment direction vector is in the local coordinate system XlThe component of the axis is such that,for the k sampling period, the magnetic moment direction vector is in the local coordinate system YlThe component of the axis is such that,for the k sampling period, the magnetic moment direction vector is in the local coordinate system ZlThe component of the axis is such that,the Euclidean distance from the capsule endoscope to the ith triaxial magnetic sensor, forming a magnetic moment direction vector;
the Euclidean distance from the capsule endoscope to the ith triaxial magnetic sensor is as follows:
linearizing the smoothed magnetic field signal intensity, the first magnetic dipole model function, the second magnetic dipole model function and the third magnetic dipole model function into:
the observation model between the magnetic field signal observation value and the capsule endoscope coordinate is as follows:
wherein the content of the first and second substances,the smoothed magnetic field signal intensity vector for the kth sampling period,is the coordinate of the capsule endoscope in the kth sampling period, h (#) is the magnetic dipole model function,observing the magnetic field signal intensity error after smoothing in the kth sampling period;
and performing Taylor series expansion on an observation model between the magnetic field signal observation value and the capsule endoscope coordinate:
wherein the content of the first and second substances,the estimated value of the coordinates of the capsule endoscope in the kth sampling period is calculated as the coordinates of the capsule endoscope in the kth-1 sampling periodIf the estimated value is calculated for the first time and is the initial value given by the user, the high-order term is omitted, and the formula is taken to be the first-order term to obtain:
whereinIn order to obtain the coordinate error to be solved,waiting for a coordinate error for the kth sampling periodLocal coordinate system XlThe axial component of the magnetic flux is,waiting for a coordinate error for the kth sampling periodLocal coordinate system YlThe axial component of the magnetic flux is,waiting for a coordinate error for the kth sampling periodLocal coordinate system ZlThe axial component of the magnetic flux is,in order to design a matrix, the linear observation model of the observed value closure difference can be obtained by transforming the formula:
smoothing the post-magnetic field signal intensity vector for the kth sampling periodAnd the magnetic strength estimation of the k sampling periodThe difference between the two;
the linear observation model based on the three-axis magnetic sensor array observation value is as follows:
wherein N is the total number of the magnetic sensors,the component of the ith three-axis magnetic sensor observation closure difference in the X-axis for the kth sampling period,the component of the ith three-axis magnetic sensor observation closure difference in the Y-axis for the kth sampling period,the component of the ith triaxial magnetic sensor observation value closure difference in the Z axis in the kth sampling period is as follows:
whereinThe component of the intensity of the magnetic field signal on the X axis after the ith three-axis magnetic sensor is smoothed for the kth sampling period,the component of the intensity of the magnetic field signal on the Y axis after the ith three-axis magnetic sensor is smoothed for the kth sampling period,the component of the intensity of the magnetic field signal on the Z axis after the ith three-axis magnetic sensor is smoothed for the kth sampling period,using a kth sampling period capsule endoscopy coordinate estimate for passing through the first magnetic dipole model functionThe calculated component of the magnetic field signal strength estimation value of the ith three-axis magnetic sensor on the X axis of the local coordinate system,using a kth sampling period capsule endoscopy coordinate estimate for passing the second magnetic dipole model functionThe calculated component of the magnetic field signal strength estimation value of the ith three-axis magnetic sensor on the Y axis of the local coordinate system,using a kth sampling period capsule endoscopy coordinate estimate for passing the third magnetic dipole model functionCalculating a component of the magnetic field signal intensity estimated value of the ith triaxial magnetic sensor on the Z axis of the local coordinate system;
obtaining X-axis observation value from the first magnetic dipole model function, the second magnetic dipole model function and the third magnetic dipole model functionThe partial derivative of (a) is expressed as:
wherein, the simplified expression PiThe expression is as follows:
The calculating of the capsule endoscope position comprises the following steps:
calculating the position of the capsule endoscope by adopting a least square method:
wherein R is observation value covariance matrix, and inverse matrix R of R-1The weight of the measurement values of different three-axis magnetic sensors in least square estimation is determined, and an R array meets the following requirements:
wherein the content of the first and second substances,as a priori variance, may be provided by a sensor performance parameter, QRIs a co-factor matrix of observed values, Q, due to independence between the measured values of the sensorsRCan be written for a diagonal array:
QR=diag(Q11,Q22,...,Q3N3N)T
wherein the diagonal element Q11,Q22,...,Q3N3NRepresenting variance of observations of each sensor;
estimating the observation variance using the magnetometer observation weights, i.e.:
wherein the content of the first and second substances,the mode of the intensity of the smoothed magnetic field signal of the ith magnetic sensor;
2. The system for acquiring a position in a human body by capsule endoscopy of claim 1, wherein:
the magnetic field signal strength is:
wherein N is the number of the three-axis magnetic sensors, M is the number of sampling moments, T is the number of sampling periods,in order to sample the magnetic field signal strength of the ith triaxial magnetic sensor at time t in the kth sampling period,in order to sample the X-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,in order to sample the Y-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,sampling the Z-axis magnetic field signal intensity of the ith triaxial magnetic sensor at the time t in the kth sampling period;
the magnetic field signal intensity is compensated by combining the environmental magnetic field intensity to obtain the compensated magnetic field signal intensity as follows:
wherein N is the number of the three-axis magnetic sensors, M is the number of sampling moments, and T is the number of sampling periods, so thatIn order to sample the compensated magnetic field signal strength of the ith triaxial magnetic sensor at time t in the kth sampling period,in order to sample the compensated X-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,in order to sample the compensated Y-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period,to sample the compensated Z-axis magnetic field signal strength of the ith three-axis magnetic sensor at time t in the kth sampling period, [ B ]e,x Be,y Be,z]Being the intensity of the ambient magnetic field, Be,xIs the X-axis ambient magnetic field strength, Be,yIs the Y-axis ambient magnetic field strength, Be,zIs the Z-axis ambient magnetic field strength;
the effective magnetic field signal intensity obtained by performing gross error rejection on the compensated magnetic field signal intensity according to the sampling time is as follows:
if the magnetic field signal intensity of any axis of the X, Y and Z axes at the time t in the kth sampling period meets the following condition, judging that the data at the time is a gross error:
wherein the content of the first and second substances,the intensity of the X-axis magnetic field signal compensated for the sampling moment before the moment t in the kth sampling period,the compensated intensity of the X-axis magnetic field signal at the sampling moment after the t moment in the kth sampling period,the intensity of the Y-axis magnetic field signal compensated for the sampling moment before the t moment in the kth sampling period,the compensated Y-axis magnetic field signal strength for the sampling time after time t,the intensity of the Z-axis magnetic field signal after compensation at the sampling moment before the t moment,the intensity of the Z-axis magnetic field signal compensated for the sampling time after the time t is the Th is a set threshold, and if the intensity of the magnetic field signal at the time t is judged to be coarse difference, the weight of the intensity can be reduced or the data can be discarded;
the magnetic field signal intensity after smoothing obtained by performing data smoothing on the effective magnetic field signal intensity according to the sampling time is as follows:
wherein, it is madeIs as followsThe smoothed magnetic field signal intensity of the ith triaxial magnetic sensor in k sampling periods,the smoothed X-axis magnetic field signal strength of the ith three-axis magnetic sensor in the kth sampling period,the smoothed Y-axis magnetic field signal strength of the ith three-axis magnetic sensor in the kth sampling period,and the intensity of the smoothed Z-axis magnetic field signal of the ith three-axis magnetic sensor in the kth sampling period.
3. The system for acquiring a position in a human body by capsule endoscopy of claim 1, wherein:
the attitude information includes: pitch angle, roll angle, course angle;
the roll angle is defined as phikShowing X in the local coordinate system of the capsule endoscope around the capsule endoscope in the kth sampling periodlThe angle of rotation of the shaft;
the pitch angle is defined as thetakRepresents Y in the local coordinate system of the capsule endoscope around the capsule endoscope in the kth sampling periodlThe angle of rotation of the shaft;
the heading angle is defined as psikShowing Z in the local coordinate system of the capsule endoscope around the capsule endoscope in the kth sampling periodlThe angle of rotation of the shaft;
the construction method of the capsule endoscope positioning local coordinate system comprises the following steps:
the first wireless processor selects any one of the three-axis magnetic sensors as a coordinate system origin, and uses a human body sagittal axis as a capsule endoscope to position an X in a local coordinate systemlThe axis and the human coronal axis are Y in a capsule endoscope positioning local coordinate systemlThe axis and the direction of the ground are used for positioning the local part of the capsule endoscopeZ in the coordinate systemlA shaft.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011539785.1A CN112741586B (en) | 2020-12-23 | 2020-12-23 | Position acquisition method based on capsule endoscopy human body internal position acquisition system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011539785.1A CN112741586B (en) | 2020-12-23 | 2020-12-23 | Position acquisition method based on capsule endoscopy human body internal position acquisition system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112741586A CN112741586A (en) | 2021-05-04 |
CN112741586B true CN112741586B (en) | 2022-04-01 |
Family
ID=75646640
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011539785.1A Active CN112741586B (en) | 2020-12-23 | 2020-12-23 | Position acquisition method based on capsule endoscopy human body internal position acquisition system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112741586B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023221283A1 (en) * | 2022-05-20 | 2023-11-23 | 深圳硅基智控科技有限公司 | Inertial measurement-integrated magnetic control system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101053517A (en) * | 2007-05-18 | 2007-10-17 | 深圳先进技术研究院 | Method and system for tracking internal mini device |
CN104720805A (en) * | 2015-03-24 | 2015-06-24 | 上海交通大学 | Power capsule real-time positioning method based on permanent magnet |
CN106937860A (en) * | 2017-04-12 | 2017-07-11 | 重庆金山医疗器械有限公司 | Know the capsule endoscope system and its method of work of real-time pose |
CN109620104A (en) * | 2019-01-10 | 2019-04-16 | 深圳市资福医疗技术有限公司 | Capsule endoscope and its localization method and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4813190B2 (en) * | 2005-05-26 | 2011-11-09 | オリンパスメディカルシステムズ株式会社 | Capsule medical device |
WO2010004555A1 (en) * | 2008-07-10 | 2010-01-14 | Given Imaging Ltd. | Localization of capsule with a synthetic source of quadrupoles and dipoles |
-
2020
- 2020-12-23 CN CN202011539785.1A patent/CN112741586B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101053517A (en) * | 2007-05-18 | 2007-10-17 | 深圳先进技术研究院 | Method and system for tracking internal mini device |
CN104720805A (en) * | 2015-03-24 | 2015-06-24 | 上海交通大学 | Power capsule real-time positioning method based on permanent magnet |
CN106937860A (en) * | 2017-04-12 | 2017-07-11 | 重庆金山医疗器械有限公司 | Know the capsule endoscope system and its method of work of real-time pose |
CN109620104A (en) * | 2019-01-10 | 2019-04-16 | 深圳市资福医疗技术有限公司 | Capsule endoscope and its localization method and system |
Also Published As
Publication number | Publication date |
---|---|
CN112741586A (en) | 2021-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104757976B (en) | A kind of Human Body Gait Analysis method and system based on Multi-sensor Fusion | |
Brigante et al. | Towards miniaturization of a MEMS-based wearable motion capture system | |
CN100594840C (en) | Method and system for tracking internal mini device | |
US20080091373A1 (en) | Method for calibrating sensor positions in a human movement measurement and analysis system | |
CN107348931B (en) | Capsule endoscope space attitude determination system | |
CN105850773A (en) | Device and method for monitoring of pig attitudes based on micro-inertial sensor | |
CN102499762B (en) | Three-dimensional spatial positioning system for medical ultrasonic probe relative to part to be checked and method | |
US11712309B2 (en) | Magnetic flexible catheter tracking system and method using digital magnetometers | |
CN112741586B (en) | Position acquisition method based on capsule endoscopy human body internal position acquisition system | |
Wang et al. | A new physiological signal acquisition patch designed with advanced respiration monitoring algorithm based on 3-axis accelerator and gyroscope | |
Vertens et al. | Measuring Respiration and Heart Rate using Two Acceleration Sensors on a Fully Embedded Platform. | |
Wang et al. | CanoeSense: Monitoring canoe sprint motion using wearable sensors | |
CN111895997A (en) | Human body action acquisition method based on inertial sensor without standard posture correction | |
El-Gohary et al. | Joint angle tracking with inertial sensors | |
JP7270284B2 (en) | Operation method of magnetic capsule endoscope full-posture measurement system | |
Johnson et al. | Estimation of three-dimensional thoracoabdominal displacements during respiration using inertial measurement units | |
CN108186017B (en) | Detection system and method for determining in-vivo pose of endoscope capsule | |
Qiu et al. | Heterogeneous data fusion for three-dimensional gait analysis using wearable MARG sensors | |
Sun et al. | An artificial neural network framework for lower limb motion signal estimation with foot-mounted inertial sensors | |
US20230337923A1 (en) | Device for mapping a sensor's baseline coordinate reference frames to anatomical landmarks | |
Li et al. | Calibrated analytical model for magnetic localization of wireless capsule endoscope based on onboard sensing | |
Wang et al. | 3-D electromagnetic position estimation system using high-magnetic-permeability metal for continuum medical robots | |
Chen et al. | An inertial-based human motion tracking system with twists and exponential maps | |
Lee et al. | A wearable RFID system to monitor hand use for individuals with upper limb paresis | |
Francelino et al. | Markov system with self-aligning joint constraint to estimate attitude and joint angles between two consecutive segments |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |