Capsule full posture determination system based on changing magnetic field and space magnetic field detection device

Through magnetic field measurement components and data fusion technology, combined with acceleration and angular velocity sensors, the problem of inaccurate spatial magnetic field detection is solved, accurate determination of capsule posture is achieved, and the efficiency and safety of medical equipment are improved.

CN107561462BActive Publication Date: 2024-09-13CHONGQING JINSHAN MEDICAL TECH RES INST CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN201710791663.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-09-05
Publication Date
2024-09-13
Estimated Expiration
2037-09-05

AI Technical Summary

Technical Problem

In the existing technology, the spatial magnetic field detection is not accurate enough, which affects the accuracy of capsule attitude determination. Especially when the external preset magnetic field does not meet the horizontal orientation conditions, accurate capsule attitude determination cannot be achieved.

Method used

Using a magnetic field measurement component including at least two three-axis magnetic sensors, the lower computer collects and transmits data to the upper computer for data fusion, determines the magnetic field direction of the external traction magnet, and combines the acceleration sensor and angular velocity sensor to obtain the spatial magnetic field situation in real time and calculate Capsule pose angle.

Benefits of technology

It achieves accurate real-time acquisition of space magnetic field conditions, improves the accuracy of capsule attitude determination, enhances measurement accuracy and use safety, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN107561462B
    Figure CN107561462B
Patent Text Reader

Abstract

The present invention discloses a spatial magnetic field detection device, comprising: a magnetic field measurement component, comprising at least two three-axis magnetic sensors for measuring the magnetic field vector of a specific position within an external preset magnetic field generated by an external traction magnet; a lower computer, for collecting data measured by the three-axis magnetic sensor and transmitting it to an upper computer; an upper computer, for receiving the data of the lower computer and performing data fusion to determine the magnetic field direction of the external traction magnet. This spatial magnetic field detection device can accurately obtain the spatial magnetic field conditions in real time. The present invention also discloses a capsule full posture measurement system based on a changing magnetic field, which includes the above-mentioned spatial magnetic field detection device, and its spatial magnetic field detection device can accurately obtain the spatial magnetic field conditions in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical equipment technology, and in particular to a spatial magnetic field detection device. In addition, the present invention also relates to a capsule full posture measurement system based on a changing magnetic field, which includes the spatial magnetic field detection device. Background Art

[0002] In medical diagnosis, capsule endoscopy has greatly expanded the doctor's gastrointestinal examination field of vision, filled the blind spots of gastroscopy and colonoscopy, and solved the difficult problems in the diagnosis of small intestinal diseases and gastrointestinal occult blood that have existed for many years.

[0003] Currently, an actively controllable capsule system driven by an external magnetic field is widely used. The system includes a permanent magnet built into the capsule or a permanent magnet layer coated on the outer surface of the capsule and an external traction magnet. The external traction magnet can be a magnetic arm that can be controlled manually, or a three-axis Helmholtz coil. The capsule is driven to perform rolling, pitching, yaw, forward and other movements through the universal uniform rotating magnetic field of the three-axis Helmholtz coil.

[0004] In the use of active capsules (hereinafter referred to as capsules), the full resolution of the capsule's spatial posture is very necessary for the detection process. At present, the full resolution of the capsule's spatial posture is achieved by integrating sensors inside the capsule to measure its own posture angles, and then transmitting the data in real time, and resolving the capsule's full posture information in the host computer.

[0005] In the prior art, one method of measuring the full posture information of a rigid body is to use an acceleration sensor and a magnetic field sensor to complete the main measurement work. The posture angle of the capsule can be determined by fusing the acceleration vector of the capsule and the spatial magnetic field vector at the location. The spatial magnetic field vector is an external preset magnetic field generated by an external traction magnet. The external preset magnetic field is generally set by medical staff and is also used to control the movement of the capsule in the human digestive tract. The magnetic field generated by it is in periodic change.

[0006] However, when the capsule's spatial attitude angle is measured by a magnetic field sensor, the external preset magnetic field must meet certain preset conditions, that is, the external preset magnetic field must be a horizontal directional magnetic field (or a horizontal magnetic field with a magnetic flux line parallelism higher than 95%). Only the external preset magnetic field that meets this condition can accurately calculate the capsule's attitude angle after being fused with the acceleration sensor data. However, when medical staff use the external traction magnet normally, the external preset magnetic field cannot always be in a horizontal directional state. When the external traction magnet is used to operate the capsule to move, the direction and magnetic field strength of the external preset magnetic field are inconsistent. If the measurement is performed at this time, the angle error is too large and the full attitude measurement cannot be completed. However, there is no effective and feasible means in the prior art to accurately obtain the spatial magnetic field in real time, which affects the accuracy of the capsule's attitude determination.

[0007] Therefore, how to achieve accurate acquisition of spatial magnetic field conditions in real time is a technical problem that technicians in this field currently need to solve. Summary of the invention

[0008] In view of this, an object of the present invention is to provide a spatial magnetic field detection device that can accurately obtain the spatial magnetic field conditions in real time. Another object of the present invention is to provide a capsule full posture measurement system based on a changing magnetic field, which includes the above-mentioned spatial magnetic field detection device, and the spatial magnetic field detection device can accurately obtain the spatial magnetic field conditions in real time.

[0009] To achieve the above object, the present invention provides the following technical solutions:

[0010] A spatial magnetic field detection device, comprising:

[0011] A magnetic field measurement assembly, comprising at least two three-axis magnetic sensors for measuring magnetic field vectors at specific locations within an external preset magnetic field generated by an external traction magnet;

[0012] A lower computer, used for collecting data measured by the three-axis magnetic sensor and transmitting the data to the upper computer;

[0013] The upper computer is used to receive the data of the lower computer and perform data fusion to determine the magnetic field direction of the external traction magnet.

[0014] Preferably, all the three-axis magnetic sensors in each of the magnetic field measurement assemblies are arranged on the same setting plane.

[0015] Preferably, the setting plane is parallel to the magnetic field direction of the external preset magnetic field when the external traction magnet is in a standard measurement orientation.

[0016] Preferably, there are at least two magnetic field measurement components, and all of the magnetic field measurement components are arranged in sequence from near to far from the external traction magnet.

[0017] Preferably, all the three-axis magnetic sensors in the magnetic field measurement assembly are arranged in an M×M matrix, wherein M is a positive integer ≥2.

[0018] Preferably, the three-axis magnetic sensor in each of the magnetic field measurement components has the same distance from the three-axis magnetic sensor adjacent in the transverse direction and the three-axis magnetic sensor adjacent in the longitudinal direction.

[0019] Preferably, each of the magnetic field measurement components corresponds to one slave computer, and the magnetic field measurement components and the corresponding slave computer are integrated into the same measurement device.

[0020] Preferably, the magnetic field vector measured by each of the three-axis magnetic sensors is:

[0021]

[0022] The host computer performs data fusion in the following manner to obtain the magnetic field vector

[0023]

[0024] in:

[0025] Assume that a magnetic field measurement component includes n three-axis magnetic sensors, n≥2 and is a positive integer, and set a number k for each three-axis magnetic sensor, 1≤k≤n and k is a positive integer;

[0026] A spatial rectangular coordinate system is established with a preset point in space as the center and the direction perpendicular to the set plane as the Z axis. The X axis and the Y axis are parallel to the set plane. Then the X axis basis vector is [1 0 0], the Y-axis basis vector is [0 1 0], the Z-axis basis vector is [0 0 1].

[0027] A capsule full posture measurement system based on a changing magnetic field comprises the spatial magnetic field detection device as described in any one of the above items; and further comprises:

[0028] An acceleration sensor, used to detect the current acceleration of the capsule;

[0029] A magnetic field sensor, used to detect the magnetic induction intensity of the current position of the capsule and drive the first calculation module;

[0030] An angular velocity sensor, used to detect the angular velocity of the capsule rotating around its own preset three axes and drive the second calculation module;

[0031] The processor includes a mode judgment module, which is used to judge whether the external preset magnetic field at the current position of the capsule meets the preset conditions according to the detection results of the spatial magnetic field detection device, and if so, drive the magnetic field sensor, if not, drive the angular velocity sensor; the first calculation module is used to substitute the magnetic induction intensity and acceleration detected by the magnetic field sensor into a preset formula at the same time to calculate the current posture angle of the capsule; the second calculation module is used to integrate each of the angular velocities respectively to calculate the current posture angle of the capsule.

[0032] Preferably, the second calculation module specifically includes:

[0033] A recording unit, used to use the attitude angle of the capsule calculated at the instant when the external preset magnetic field changes from satisfying the preset condition to not satisfying the preset condition as an integral constant term;

[0034] The correction unit is used to correct the formula for integrating and calculating each of the angular velocities according to the integral constant term.

[0035] The spatial magnetic field detection device provided by the present invention includes a magnetic field measurement component, a lower computer and a host computer. Through the measurement of the three-axis magnetic sensor, the data collection of the lower computer and the data fusion of the host computer, the measurement of at least two points combined with the data fusion technology can ensure the measurement accuracy, and the spatial magnetic field situation can be accurately acquired in real time, thereby providing an accurate basis for the subsequent process of determining the full posture of the capsule, and improving the accuracy of the capsule posture determination.

[0036] The capsule full posture measurement system based on a changing magnetic field, which includes the above-mentioned spatial magnetic field detection device, provided by the present invention, can accurately acquire the spatial magnetic field conditions in real time. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0038] Figure 1 It is a distribution diagram of an external preset magnetic field measured by the spatial magnetic field detection device provided by the present invention, wherein the realization represents magnetic flux lines, and the dashed rectangular box represents the external preset magnetic field;

[0039] Figure 2 It is a schematic structural diagram of the spatial magnetic field detection device provided by the present invention.

[0040] Figure 1 and Figure 2 middle:

[0041] 1-external traction magnet, 2-capsule, 3-three-axis magnetic sensor, 4-lower computer, 5-measuring device, 6-communication cable, 7-upper computer. DETAILED DESCRIPTION

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

[0043] The core of the present invention is to provide a spatial magnetic field detection device, which can accurately obtain the spatial magnetic field conditions in real time. Another core of the present invention is to provide a capsule full posture measurement system based on a changing magnetic field, which includes the above-mentioned spatial magnetic field detection device, and the spatial magnetic field detection device can accurately obtain the spatial magnetic field conditions in real time.

[0044] Please refer to Figure 1 and Figure 2 , Figure 1 An external preset magnetic field distribution diagram measured by the spatial magnetic field detection device provided by the present invention; Figure 2 It is a schematic structural diagram of the spatial magnetic field detection device provided by the present invention.

[0045] In a specific embodiment of the spatial magnetic field detection device provided by the present invention, it includes a magnetic field measurement component, a lower computer 4 and an upper computer 7.

[0046] The magnetic field measurement component includes at least two three-axis magnetic sensors 3 for measuring the magnetic field vector at a specific position in the external preset magnetic field generated by the external traction magnet 1. Among them, two or more three-axis magnetic sensors 3 can be set in the magnetic field measurement component according to actual needs.

[0047] The lower computer 4 is used to collect data measured by the three-axis magnetic sensor 3 and transmit the data to the upper computer 7 .

[0048] The upper computer 7 is used to receive data from the lower computer 4 and perform data fusion to determine the magnetic field direction of the external traction magnet 1 .

[0049] Among them, all three-axis magnetic sensors 3 in each magnetic field measurement component can be arranged on the same set plane, which is convenient for the installation operation of the three-axis magnetic sensors 3 and can simplify the complexity of data fusion performed by the host computer 7.

[0050] The setting plane may be parallel to the magnetic field direction of the external preset magnetic field when the external traction magnet 1 is in the standard measurement orientation, so as to further simplify the complexity of data fusion performed by the host computer 7. Of course, there may also be a certain angle between the setting plane and the magnetic field direction of the external preset magnetic field when the external traction magnet 1 is in the standard measurement orientation, which usually needs to be ensured to be within 30°.

[0051] When the external traction magnet 1 is in some specific postures, the magnetic field distribution in a certain defined area is basically in the same direction, and the area or a part of the area is the external preset magnetic field, and the capsule 2 performs corresponding movement in the external preset magnetic field. When the magnetic field sensor is used to measure the spatial attitude angle of the capsule 2, the external traction magnet 1 should be in a standard measurement orientation, in which the magnetic field provided by the external traction magnet 1 is a horizontal directional magnetic field or a horizontal magnetic field with a magnetic flux line parallelism greater than 95%.

[0052] Taking the case where the magnetic field of the external preset magnetic field in the area set below the external traction magnet 1 when it is in the standard measurement orientation as a horizontal directional magnetic field, the same set plane where all the three-axis magnetic sensors 3 in each magnetic field measurement assembly are located is a horizontal plane. When the external traction magnet 1 is in the standard measurement orientation, the magnetic flux lines of the external preset magnetic field below it are basically horizontal. At this time, the measurement value of the three-axis magnetic sensor 3 can be obtained after data fusion of the host computer 7 to obtain the magnetic field vector corresponding to the external traction magnet 1 when it is in the standard measurement orientation.

[0053] If at any time, the result obtained by the host computer 7 after data fusion is different from the magnetic field vector corresponding to the external traction magnet 1 in the standard measurement orientation, it can be determined that the external traction magnet 1 has changed relative to the standard measurement orientation at this time. At the same time, according to the result of data fusion, the specific change of the magnetic field size and direction of the external preset magnetic field can be determined, and the horizontal deflection angle of the external preset magnetic field can be obtained. Further, according to the detection result of the spatial magnetic field detection device, it can be determined whether the magnetic field sensor can be used to determine the posture of the capsule 2. Of course, the specific algorithm for data fusion performed by the host computer 7 is not limited to this embodiment.

[0054] The magnetic field measurement component can be specifically arranged at the edge of the external preset magnetic field, and the capsule 2 is located between the magnetic field measurement component and the external traction magnet 1 to ensure the measurement range of the magnetic field measurement component. At this time, in actual measurement, the magnetic field measurement component can be specifically located below the human body. Of course, the position setting of the magnetic field measurement component in the external preset magnetic field is not limited to this.

[0055] It can be seen that in this type of spatial magnetic field detection device, the measurement of the three-axis magnetic sensor 3, the data collection of the lower computer 4 and the data fusion of the upper computer 7 are carried out in sequence. The measurement of at least two points is combined with the data fusion technology to ensure the measurement accuracy, and the spatial magnetic field conditions can be accurately acquired in real time, thereby providing an accurate basis for the subsequent process of determining the full posture of the capsule 2, improving the accuracy of the determination of the posture of the capsule 2, and at the same time, there is no need to determine the posture of the external traction magnet 1 itself, so the measurement efficiency and the safety of use are high, and the cost is low.

[0056] Specifically, there may be at least two magnetic field measurement components, and all magnetic field measurement components are arranged in sequence from near to far from the external traction magnet 1 , that is, the magnetic field measurement components are arranged in parallel on one side of the external traction magnet 1 .

[0057] In this embodiment, there may be two or more magnetic field measurement components, and the number may be determined based on the actual available space or other factors. The coordinated measurement of at least two magnetic field measurement components may improve the measurement accuracy. Of course, there may also be one magnetic field measurement component.

[0058] Specifically, all three-axis magnetic sensors 3 in the magnetic field measurement assembly may be arranged in an M×M matrix, where M is a positive integer ≥ 2, to facilitate the setting of the data fusion algorithm in the host computer 7 .

[0059] Furthermore, the three-axis magnetic sensor 3 in each magnetic field measurement assembly may have the same distance with the laterally adjacent three-axis magnetic sensors 3 and the longitudinally adjacent three-axis magnetic sensors 3 , so as to further facilitate the setting of the data fusion algorithm in the host computer 7 .

[0060] Obviously, the arrangement of the three-axis magnetic sensors 3 in each magnetic field measurement component is not limited to the above embodiments. For example, in each magnetic field measurement component, all the three-axis magnetic sensors 3 can also be arranged to form a circle.

[0061] In the above embodiments, the lower computer 4 can be connected to the upper computer 7 via a communication cable 6. Since there is a magnetic field in the use environment of the capsule 2, signal transmission via the communication cable 6 can effectively prevent the magnetic field in the environment from interfering with the signal between the lower computer 4 and the upper computer 7.

[0062] In the above embodiments, each magnetic field measurement component corresponds to a slave computer 4 , and the magnetic field measurement component and the corresponding slave computer 4 are integrated in the same measuring device 5 , so as to facilitate access operation of the magnetic field measurement component in the slave computer 4 .

[0063] In the above-mentioned embodiments, the host computer 7 can perform data fusion in a variety of ways. In a specific embodiment, the magnetic field vector measured by each three-axis magnetic sensor 3 is:

[0064]

[0065] The host computer 7 performs data fusion in the following manner and obtains the magnetic field vector

[0066]

[0067] in:

[0068] It is assumed that a magnetic field measurement component includes n (n≥2 and is a positive integer) three-axis magnetic sensors 3, and a number k is correspondingly set for each three-axis magnetic sensor 3, where 1≤k≤n and k is a positive integer;

[0069] A spatial rectangular coordinate system is established with a preset point in space as the center and the direction perpendicular to the set plane as the Z axis. The X axis and Y axis are parallel to the set plane, then the X axis basis vector is [1 0 0], the Y-axis basis vector is [0 1 0], the Z-axis basis vector is [0 0 1].

[0070] Taking the case where the preset external magnetic field provided below the external traction magnet 1 when it is in the standard measurement orientation is a horizontal directional magnetic field, at this time, the ground rectangular coordinate system established with a preset point in space as the center is the above-mentioned spatial rectangular coordinate system. Among them, the Z axis points to the plumb direction, and the X axis and the Y axis are parallel to the horizontal plane. According to the results of the data fusion of the host computer 7, the horizontal deflection angle of the magnetic field can be conveniently calculated, and the data fusion method is relatively simple, thereby improving the computing efficiency of the host computer 7.

[0071] In addition to the above-mentioned spatial magnetic field detection device, the present invention also provides a capsule full posture measurement system based on a changing magnetic field, which includes the spatial magnetic field detection device disclosed in the above-mentioned embodiment, and its spatial magnetic field detection device can accurately obtain the spatial magnetic field conditions in real time.

[0072] Furthermore, the capsule full posture determination system may also include: an acceleration sensor, a magnetic field sensor, an angular velocity sensor and a processor. The processor may specifically include a mode determination module, a first calculation module and a second calculation module.

[0073] Among them, the current acceleration of the capsule 2 is detected by an acceleration sensor. The acceleration is a vector with magnitude and direction. The acceleration sensor can be a three-axis acceleration sensor arranged in the capsule 2 to detect the acceleration of the capsule 2 in the three-axis direction. The three-axis direction referred to here is a three-dimensional coordinate system formulated based on the capsule 2, in which the X, Y, and Z axes can be arbitrarily specified on the capsule 2 without affecting the accurate determination of its posture. However, for the convenience of discussion, the following contents of this embodiment are all based on the axial direction of the capsule 2 as the Z axis, and the right-hand coordinate system is used as the standard for explanation. In this way, after the three-axis acceleration sensor detects the acceleration in each axis direction of the capsule 2, the accelerations on the three axes can be added together to calculate the total acceleration.

[0074] The mode determination module determines whether the external preset magnetic field at the current position of the capsule 2 meets the preset conditions according to the detection result of the spatial magnetic field detection device.

[0075] Since the determination of the attitude angle of capsule 2 with the assistance of spatial magnetic field vector requires that the external preset magnetic field meets certain conditions - generally, the external preset magnetic field needs to be a horizontal directional magnetic field, or a horizontal magnetic field with a magnetic flux line parallelism higher than 95%, and the external preset magnetic field changes in stages during operation, it is first necessary to determine whether the external preset magnetic field at the current position of capsule 2 meets the preset conditions based on the detection results of the spatial magnetic field detection device.

[0076] If so, it means that the attitude angle can be measured by auxiliary measurement means of the spatial magnetic field vector. At this time, the magnetic field sensor is driven, and the magnetic field sensor detects the magnetic induction intensity of the current position of the capsule 2 and drives the first calculation module. Then the first calculation module fuses the magnetic induction intensity detected by the magnetic field sensor and the current acceleration of the capsule 2, and substitutes the magnetic induction intensity and acceleration into the preset formula at the same time to calculate the current attitude angle of the capsule 2.

[0077] If not, it means that the attitude angle cannot be measured through the auxiliary measurement means of the spatial magnetic field vector at this time. Considering that when the attitude angle of capsule 2 changes, its rotation angle around its own preset three axes also changes synchronously, therefore, at this time, the angular velocity sensor can be used to detect the angular velocity of the capsule 2 around its own preset three axes, and then the three angular velocities are integrated and calculated respectively, so as to calculate the rotation angle of the capsule 2 around its own preset three axes and drive the second calculation module, and then the second calculation module integrates each angular velocity separately to calculate the current attitude angle of capsule 2.

[0078] In this way, the capsule full posture measurement system based on the changing magnetic field provided in the present embodiment can accurately obtain the situation of the external preset magnetic field through the space magnetic field device. When the external preset magnetic field meets the preset conditions, the acceleration of capsule 2 and the magnetic induction intensity at the location can be used to perform data fusion to accurately calculate the posture angle of capsule 2; when the external preset magnetic field does not meet the preset conditions, the acceleration of capsule 2 and the angular velocity of its rotation around its own preset three axes can be used to perform data fusion to accurately calculate the posture angle of capsule 2. Therefore, in an environment where the external preset magnetic field changes, the capsule 2 full posture measurement method provided in the present embodiment can always accurately realize the full posture measurement of capsule 2.

[0079] The magnetic field sensor for detecting the magnetic induction intensity of the current position of the capsule 2 can be specifically arranged in the capsule 2. Like the acceleration of the capsule 2, the magnetic induction intensity is also a vector with magnitude and direction. Since the external preset magnetic field changes in stages during normal operation, its magnetic induction intensity is also changing at any time.

[0080] When the external preset magnetic field meets the preset conditions and forms a horizontal directional magnetic field, the horizontal deflection angle of the magnetic field direction relative to the preset standard axis (generally the horizontal coordinate axis of the ground coordinate system established with the human body as the center) can be obtained by the space magnetic field detection device, and the angle is ξ. At the same time, when the magnetic induction intensity and acceleration are simultaneously substituted into the preset formula to calculate the current posture angle of the capsule 2, specifically, the three-axis coordinate system of the capsule 2 can be constructed first. In this embodiment, the axial direction of the capsule 2 is the Z-axis direction, and the cross-sectional direction is the XY plane direction.

[0081] Thus, the x-axis basis vector of capsule 2 is That is [1 0 0], and the y-axis basis vector of capsule 2 is That is [0 1 0], and its z-axis basis vector That is [0 0 1]. At the same time, the current acceleration detected can be set [gx gy gz], the magnetic induction intensity of the current position of capsule 2 is [mx my mz].

[0082] Meanwhile, the attitude of capsule 2 is determined by the attitude angle, and the attitude angle mainly includes pitch angle, roll angle and yaw angle. Therefore, the pitch angle can be pitch, the roll angle can be roll, and the yaw angle can be yaw.

[0083] Among them, the pitch angle pitch can be obtained by the angle between the acceleration of capsule 2 and the Z axis of capsule 2's own coordinate system, so the pitch angle can be obtained by the formula:

[0084]

[0085] Perform calculations.

[0086] The calculation method of the roll angle roll is similar. First, the projection vector of the acceleration of capsule 2 on the xy plane of capsule 2's own coordinate system can be set to but is [gx gy 0], so the roll angle roll can be calculated by the formula:

[0087]

[0088] Perform calculations.

[0089] Among them, when And A∈R, A>0, roll=|roll|,

[0090] when And when A∈R, A≤0, roll=-|roll|.

[0091] The yaw angle yaw requires data fusion processing of acceleration and magnetic induction intensity, and also requires the use of the aforementioned external preset magnetic field in the horizontal direction. Deflection angle ξ.

[0092] First, let θ be the horizontal angle between the magnetic induction intensity and the Z-axis direction of the capsule 2's own coordinate system. Then, let in, for and The normal vectors of the plane, and is the normal vector of the plane, so we have:

[0093]

[0094] Among them, when And A∈R, when A>0, θ=|θ|,

[0095] when And when A∈R, A≤0, θ=-|θ|;

[0096] The above A are all coefficients.

[0097] After θ is calculated, adding it to ξ is the yaw angle yaw, that is, yaw = ξ + θ.

[0098] At this point, the pitch angle, roll angle, and yaw angle of capsule 2 have been calculated, and the attitude angle of capsule 2 can be successfully obtained, realizing the full attitude analysis of capsule 2.

[0099] When the external preset magnetic field does not meet the preset conditions, it is necessary to detect the angular velocity of the capsule 2 rotating around its own preset three axes, and integrate and calculate each angular velocity to determine the attitude angle.

[0100] Specifically, an angular velocity sensor for detecting the angular velocity of the capsule 2 rotating around three preset axes can be disposed in the capsule 2. Further, the angular velocity sensor can be a gyroscope.

[0101] At the same time, considering that in the field of MEMS, the angular velocity sensor will bring errors to the system because it measures the angular velocity rather than the angle itself. The angle can be obtained by the definite integral of the angular velocity. During the integration process, due to the influence of factors such as measurement error and sampling error, a quantity with introduced errors is obtained. In a short period of time, the accuracy of the attitude measurement is not greatly affected and can be ignored. However, when the attitude angle is measured by the angular velocity integral for a long time, the accumulated error of the system will become larger and larger over time. In view of this, the second calculation module in this embodiment can specifically include a recording unit and a correction unit. The recording unit is used to use the attitude angle of the capsule 2 calculated at the instant when the external preset magnetic field changes from satisfying the preset condition to not satisfying the preset condition as an integral constant term; the correction unit is used to correct the formula for integrating each angular velocity according to the integral constant term.

[0102] Since the attitude angle measured when the external preset magnetic field meets the preset conditions is accurate and error-free, the attitude angle measured during this period of time can be recorded. When the external preset magnetic field suddenly changes and does not meet the preset conditions, the attitude angle recorded at the instant when the external preset magnetic field changes from meeting the preset conditions to not meeting the preset conditions is the last set of data without cumulative error, and it is used as the integral constant term and as the correction parameter for the subsequent angular velocity integral operation, so as to eliminate the system cumulative error formed in the long-term process of solving the attitude angle through angular velocity integration.

[0103] Specifically, when each angular velocity is integrated to calculate the current posture angle of the capsule 2, the formula can be used first:

[0104]

[0105] Calculate the rotation angle of capsule 2 around its preset x-axis at time t,

[0106] At the same time, the formula:

[0107]

[0108] Calculate the rotation angle of capsule 2 around its preset y axis at time t,

[0109] At the same time, the formula:

[0110]

[0111] Calculate the rotation angle of capsule 2 around its preset z-axis at time t.

[0112] Among them, w x 、w y and w z are the angular velocities of the capsule 2 rotating around its own preset three axes.

[0113] t is the time starting from the instant when the external preset magnetic field changes from satisfying the preset conditions to not satisfying the preset conditions, and α0, β0 and γ0 are the initial rotation angles of capsule 2 around its own preset x, y and z axes in the integral constant term, respectively. Each initial rotation angle is related to the last set of recorded data without cumulative error, and can be obtained by converting the pitch angle pitch, roll angle roll and yaw angle yaw in the set of data.

[0114] After that, the attitude angle of capsule 2 can be solved according to the above three calculation formulas for calculating the rotation angle of capsule 2 around its own preset three axes. For the convenience of discussion, this embodiment uses the roll-pitch-yaw representation in dynamics, and the rotation matrix R rpy (φ, θ, ψ) represents the current posture angle of capsule 2 as:

[0115]

[0116] By operating the data in the matrix, the general expressions of the pitch angle pitch, the roll angle roll and the yaw angle yaw can be obtained respectively, which will not be described here.

[0117] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0118] The capsule full posture determination system based on a changing magnetic field and the space magnetic field detection device provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A capsule full posture measurement system based on a changing magnetic field, characterized in that: include: A spatial magnetic field detection device, the spatial magnetic field detection device comprising: a magnetic field measurement component, comprising at least two three-axis magnetic sensors (3) for measuring magnetic field vectors at specific positions within an external preset magnetic field generated by an external traction magnet (1); a lower computer (4), for collecting data measured by the three-axis magnetic sensors (3) and transmitting the data to an upper computer (7); the upper computer (7), for receiving the data from the lower computer (4) and performing data fusion to determine the magnetic field direction of the external traction magnet (1); An acceleration sensor, used for detecting the current acceleration of a capsule (2), wherein the capsule (2) is used for being placed between the magnetic field measurement component and the external traction magnet (1); A magnetic field sensor, used to detect the magnetic induction intensity of the current position of the capsule (2) and drive the first calculation module; An angular velocity sensor, used to detect the angular velocity of the capsule (2) rotating around its own preset three axes and drive the second calculation module; The processor comprises a mode judgment module, which is used to judge whether the external preset magnetic field at the current position of the capsule (2) meets the preset conditions according to the detection result of the spatial magnetic field detection device, and if so, drive the magnetic field sensor, and if not, drive the angular velocity sensor; the first calculation module is used to simultaneously substitute the magnetic induction intensity and acceleration detected by the magnetic field sensor into a preset formula to calculate the current posture angle of the capsule (2); the second calculation module is used to integrate each of the angular velocities to calculate the current posture angle of the capsule (2); Wherein, all the three-axis magnetic sensors (3) in each magnetic field measurement assembly are arranged on the same setting plane, the setting plane is parallel to the magnetic field direction of the external preset magnetic field when the external traction magnet (1) is in a standard measurement orientation, there are at least two magnetic field measurement assemblies, and all the magnetic field measurement assemblies are arranged in sequence from near to far from the external traction magnet (1); Wherein, all the three-axis magnetic sensors (3) in the magnetic field measurement component are arranged in an M×M matrix, where M is a positive integer ≥2.

2. The capsule full posture measurement system according to claim 1, characterized in that: The distances between the three-axis magnetic sensor (3) in each magnetic field measurement component and the three-axis magnetic sensor (3) adjacent to it in the transverse direction and the three-axis magnetic sensor (3) adjacent to it in the longitudinal direction are all the same.

3. The capsule full posture measurement system according to claim 1, characterized in that: Each of the magnetic field measurement components corresponds to one of the lower computers (4), and the magnetic field measurement components and the corresponding lower computers (4) are integrated into the same measurement device (5).

4. The capsule full posture measurement system according to any one of claims 1 to 3, characterized in that: The magnetic field vector measured by each of the three-axis magnetic sensors (3) is: , The host computer (7) performs data fusion in the following manner to obtain the magnetic field vector : , in: Assume that the magnetic field measurement component includes n three-axis magnetic sensors (3), n≥2 and is a positive integer, and set a number k for each three-axis magnetic sensor (3), 1≤k≤n and k is a positive integer; A spatial rectangular coordinate system is established with a preset point in space as the center and the direction perpendicular to the set plane as the Z axis. The X axis and the Y axis are parallel to the set plane. Then the X axis basis vector for , Y-axis basis vector for , Z-axis basis vector for .

5. The capsule full posture measurement system according to claim 1, characterized in that: The second calculation module specifically includes: A recording unit, used to use the attitude angle of the capsule (2) calculated at the instant when the external preset magnetic field changes from satisfying the preset condition to not satisfying the preset condition as an integral constant term; The correction unit is used to correct the formula for integrating and calculating each of the angular velocities according to the integral constant term.

Citation Information

Patent Citations

  • Saccade endoscope and attitude sensing system used for same

    CN102302357A

  • Permanent magnet and induction coil based capsule endoscopy space positioning system and positioning method

    CN103637803A

  • Three-shaft magnetic field sensing device with magnetic flux guide

    CN103809133A

  • Capsule therapy device and therapy system

    CN104203068A

  • Apparatus for testing magnetic field sensor on wafer and method thereof

    CN104347444A