WO2023174425A1 - Magnetically controlled capsule system, and pose calibration representation method therefor - Google Patents
Magnetically controlled capsule system, and pose calibration representation method therefor Download PDFInfo
- Publication number
- WO2023174425A1 WO2023174425A1 PCT/CN2023/082284 CN2023082284W WO2023174425A1 WO 2023174425 A1 WO2023174425 A1 WO 2023174425A1 CN 2023082284 W CN2023082284 W CN 2023082284W WO 2023174425 A1 WO2023174425 A1 WO 2023174425A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- capsule
- coordinate system
- magnet
- coordinates
- world coordinate
- 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.)
- Ceased
Links
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
-
- 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
- A61B1/00006—Operational features of endoscopes characterised by electronic signal processing of control signals
-
- 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
-
- 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
-
- 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/045—Control thereof
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/11—Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
Definitions
- the present invention relates to the technical field of medical equipment, and in particular to a magnetically controlled capsule system and its posture calibration and representation method.
- In vivo device positioning technology such as wireless capsule endoscopes, invasive medical devices and other in vivo positioning technologies, has received more and more attention.
- the magnetically controlled capsule system uses magnetic force to drive the capsule endoscope to move in the body.
- the driving of the capsule endoscope still needs to be completed by experienced doctors.
- the doctor takes inspection images of the inner wall of the digestive tract through the built-in lens, determines the position and orientation of the capsule endoscope, and then drives the capsule endoscope to continue moving to the next position through an external control magnet.
- the capsule spin makes it difficult to determine the true orientation based on the image, making it impossible to accurately and quantitatively control the capsule to reach the target by relying solely on image visual feedback information.
- position and target attitude angle After confirming the position and attitude angle of the capsule through the positioning method, since the positioning system and the magnetic drive system operate independently, the positioning system can only play a role in assisting the confirmation. The next movement of the capsule still needs to be judged by the doctor based on experience, and the attitude of the capsule Euler angles are often used as angles, but Euler angles cannot intuitively reflect the posture of the capsule and are inconvenient for actual control operations. Therefore, the current positioning system is complex to operate and not intuitive and accurate enough.
- the object of the present invention is to provide a magnetically controlled capsule system and its pose calibration method that accurately controls the movement of a capsule endoscope in a closed-loop manner.
- one embodiment of the present invention provides a posture calibration and representation method of a magnetically controlled capsule system, which includes the following steps:
- the posture of the capsule endoscope includes capsule world coordinates and/or capsule posture information.
- the magnet posture information includes a horizontal azimuth angle and a vertical tilt angle, wherein the horizontal azimuth angle is the projection vector of the magnetization direction vector of the control magnet on the XY plane of the world coordinate system and The angle between the positive direction of the Y axis, and the vertical tilt angle is the angle between the magnetization direction vector of the control magnet and the positive direction of the Z axis of the world coordinate system.
- the posture of the control magnet is expressed as [Mx, My, Mz, Mh, Mv], where [Mx, My, Mz] is the position of the control magnet in the world coordinate system. , Mh is the horizontal azimuth angle, and Mv is the vertical tilt angle.
- the capsule attitude information includes a horizontal azimuth angle, a vertical tilt angle and a capsule spin angle
- the horizontal azimuth angle is the head direction of the capsule endoscope in the world coordinate system
- the vertical tilt angle is the angle between the head direction of the capsule endoscope and the positive Z axis of the world coordinate system.
- the capsule spins Angle is the orientation angle of the lens of the capsule endoscope.
- the posture of the capsule endoscope represents the posture of the capsule endoscope
- the posture of the capsule endoscope is expressed as [Cx, Cy, Cz, Ch, Cv, Cs], where [Cx, Cy, Cz] is the The position coordinates of the looking glass in the world coordinate system, Ch is the horizontal azimuth angle, Cv is the vertical tilt angle, Cs is the capsule spin angle and the capsule world coordinates, [Ch, Cv, Cs] is the capsule world coordinate posture information.
- the local coordinates of the magnet include the coordinates of the movable range of the control magnet in the first local coordinate system
- the steps "establishing a world coordinate system” include:
- the origin of the world coordinate system is determined.
- the middle point of the movable range coordinates is used as the origin of the world coordinate system.
- the step "correcting the local coordinates of the magnet to the world coordinates of the magnet in the world coordinate system" includes:
- the step "correcting the capsule local coordinates to the capsule world coordinates in the world coordinate system" includes:
- the difference between the capsule local coordinates and the second set of offsets is used as the value of the capsule world coordinates.
- the second set of offsets includes an X-axis difference and a Y-axis difference
- the step "calculating the second set of offsets of the origin of the second local coordinate system relative to the origin of the world coordinate system" includes:
- the X-axis difference in the X-axis direction and the Y-axis difference in the Y-axis direction between the first alignment coordinate and the second alignment coordinate are calculated.
- the second set of offsets also includes a Z-axis difference
- the step "calculating the second set of offsets of the origin of the second local coordinate system relative to the origin of the world coordinate system" includes:
- the Z-axis difference is determined according to the hardware parameters.
- one embodiment of the present invention provides a magnetically controlled capsule system, which includes a control magnet and a capsule endoscope, and also includes:
- the first acquisition module is used to acquire the magnet local coordinates and orientation angle of the control magnet in the first local coordinate system
- a second acquisition module configured to acquire the capsule local coordinates and Euler angles of the capsule endoscope in the second local coordinate system
- Modeling module used to establish the world coordinate system
- Control the magnet position correction module to correct the local coordinates of the magnet to the world coordinates of the magnet in the world coordinate system
- a control magnet attitude correction module configured to calculate the magnet attitude information of the control magnet in the world coordinate system according to the projection of the orientation angle in the world coordinate system;
- a capsule endoscope position correction module used to correct the capsule local coordinates to the capsule world coordinates in the world coordinate system
- a capsule endoscope posture correction module configured to determine the projection of the capsule endoscope in the world coordinate system according to the Euler angle, and calculate the capsule posture of the capsule endoscope in the world coordinate system. information
- a control magnet representation module used to represent the pose of the control magnet, where the pose of the control magnet includes magnet world coordinates and/or magnet attitude information;
- a capsule endoscope representation module is used to represent the pose of the capsule endoscope, where the pose of the capsule endoscope includes capsule world coordinates and/or capsule pose information.
- an embodiment of the present invention provides an electronic device, including: a storage module and a processing module.
- the storage module stores a computer program that can run on the processing module.
- the processing module When the computer program is executed, the steps in the pose calibration and representation method of the magnetically controlled capsule system are implemented.
- one embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored.
- the computer program is executed by a processing module, the position of the magnetically controlled capsule system is realized.
- Attitude calibration represents the steps in the method.
- the present invention has the following beneficial effects: the two systems corresponding to the control magnet and the capsule endoscope are integrated to uniformly and intuitively represent the status of the entire magnetic control capsule system, thereby facilitating efficient and accurate closed loop Control the capsule endoscope to realize digestive tract examination, expand the control methods and application scenarios of capsule endoscope, and improve the accuracy and precision of medical auxiliary diagnosis.
- the attitude of the capsule can be displayed intuitively, thus facilitating actual control. operational use.
- the corresponding relationship between the two systems corresponding to the control magnet and capsule endoscope is determined, and the two systems are matched. There is no need to repeat the conversion of the coordinate system in subsequent work.
- Figure 1 is a flow chart of a pose calibration and representation method according to an embodiment of the present invention
- Figure 2 is a schematic structural diagram of a magnetically controlled capsule system applied to the human body according to an embodiment of the present invention
- Figure 3 is a schematic diagram of a method for establishing a world coordinate system according to an embodiment of the present invention
- Figure 4 is a schematic diagram of a method for calculating attitude information of a control magnet according to an embodiment of the present invention
- Figure 5 is a schematic diagram of a method for calculating the second set of offsets according to an embodiment of the present invention
- Figure 6 is a schematic diagram of the Euler angle of a capsule endoscope according to an embodiment of the present invention.
- Figure 7 is a schematic diagram of a method for calculating posture information of a capsule endoscope according to an embodiment of the present invention.
- Figure 8 is a structural block diagram of a magnetically controlled capsule system according to an embodiment of the present invention.
- Figure 9 is a module schematic diagram of a magnetically controlled capsule system according to an embodiment of the present invention.
- magnetic control capsule system 1000, magnetic control capsule system; 100, magnetic control system; 200, capsule positioning system; 201, capsule endoscope; 300, bed surface; 400, human body; 10, control magnet; 20, signal transmission module; 30, Storage module; 40. Processing module; 50. Magnetic sensor; 60. Acceleration sensor; 70. Signal transmission module; 80. Camera module; 90. Communication bus.
- the magnetically controlled capsule system is a medical device used for human digestive tract examination, including a magnetically controlled positioning device located outside the human body and a wireless capsule endoscope located inside the body. During the examination, the movement of the wireless capsule endoscope in the body is controlled through an external magnetically controlled positioning device and the position of the wireless capsule endoscope is positioned in the body, thereby assisting medical diagnosis.
- One embodiment of the present invention provides a magnetically controlled capsule system that accurately controls the movement of a capsule endoscope in a closed-loop manner and its pose calibration representation method. This method unifies the control magnet and the capsule endoscope into the same world coordinate system. This facilitates subsequent accurate control of the wireless capsule.
- the magnetically controlled capsule system 1000 in this embodiment includes a magnetically controlled system 100, a capsule positioning system 200, a control magnet 10 and a capsule endoscope 201.
- the magnetic control system 100 is used to control the movement of the capsule endoscope 201 .
- the capsule positioning system 200 is used to position the capsule endoscope 201 .
- the capsule endoscope 201 is equipped with a sensor module inside.
- the sensor module includes a magnetic sensor 50 (magnetic sensor) for detecting a magnetic field.
- the magnetic sensor can be: Hall sensor, anisotropic magnetoresistance (AMR) sensor, giant magnet sensor. resistance sensor (GMR) sensor, tunnel magnetoresistance (TMR) sensor, etc.
- the control magnet 10 includes a magnetic source for emitting a magnetic field and a servo motor for controlling the movement of the magnetic source.
- the capsule endoscope 201 is provided with a magnetic component inside, which interacts with the magnetic source of the control magnet 10 . Through the force exerted by the magnetic source on the magnetic components, the magnetic control system 100 controls the position and attitude of the capsule endoscope 201 .
- Figure 1 is a flow chart of a posture calibration and representation method of a magnetically controlled capsule system 1000 according to an embodiment of the present application.
- Figure 2 is a schematic structural diagram of a magnetically controlled capsule system 1000 applied to the human body according to an embodiment of the present application.
- the capsule endoscope 201 is located inside the human body 400.
- the human body 400 lies flat on the bed 300.
- the control magnet 10 is provided outside the human body 400.
- the magnetic control system 100 During inspection, the magnetic field emitted by the magnet 10 is controlled to control the movement of the capsule endoscope 201 in the human body 400 .
- the specific pose calibration representation method of the magnetically controlled capsule system 1000 includes the following steps:
- Step 101 Obtain the magnet local coordinates and orientation angle of the control magnet 10 in the first local coordinate system.
- the local coordinates of the magnet may include coordinates of the movable range of the control magnet 10 in the first local coordinate system.
- the local coordinates and orientation angle of the magnet can be obtained from the transmission data of the servo motor through the data interface of the magnetic control system 100 .
- the first local coordinate system is a local coordinate system in the magnetic control system 100.
- the origin of the first local coordinate system is defined, and then the current position of the control magnet 10 can be calculated based on the driving amount of the servo motor. and orientation angle.
- the local coordinates of the magnet include parameter values in the three directions of the XYZ axis: [mag x , mag y , mag z ].
- the control magnet 10 has axial symmetry, and the orientation angle of the control magnet 10 can be determined according to the orientation angle of the N pole in the magnetization direction.
- the orientation of the control magnet 10 may be the unit vector of its direction, or may be involved in the calculation after normalization at a later stage.
- the direction of the control magnet 10 is taken as its unit vector: [p x , p y , p z ].
- the movable range of the control magnet 10 in each direction of the XYZ axis can be calculated.
- the end points of these ranges are the limit positions of the control magnet 10.
- These limit positions can be expressed as: ⁇ X:[ mag xmin ,mag xmax ],Y:[mag ymin ,mag ymax ],Z:[mag zmin ,mag zmax ] ⁇ .
- Step 102 Obtain the capsule local coordinates and Euler angles of the capsule endoscope 201 in the second local coordinate system
- the local coordinates of the capsule are the parameter values of the capsule endoscope 201 in the three directions of the XYZ axis: [cap x , cap y , cap z ].
- Euler angles include roll angle roll, pitch angle pitch and yaw angle, which reflect the glue
- the orientation of the capsule endoscope 201 is.
- the roll angle roll, pitch angle pitch, and yaw angle can be expressed as [ ⁇ 0 , ⁇ 1 , ⁇ 2 ] in sequence.
- the Euler angle of the capsule endoscope 201 can be shown in FIG. 6 .
- the second local coordinate system is a local coordinate system in the capsule endoscope 201.
- the calibration of this local coordinate system depends on the calibration of the capsule positioning system 200.
- the capsule positioning system 200 is generally fixed below the bed surface 300.
- the height position of its origin (along the Z-axis direction) is relatively fixed, but the local coordinates may move in the XY plane.
- the capsule local coordinates and Euler angles can be used to obtain the position and attitude angle status data of the capsule endoscope 201 through the relevant software interface functions of the capsule positioning system 200 .
- the position data is accurate to 1mm.
- the attitude angle status data can be expressed in floating point radians.
- the capsule endoscope 201 can be provided with a three-axis magnetic sensor 50 and a three-axis acceleration sensor 60 inside. Several sets of magnetic positioning devices are provided outside the human body 400 to work in conjunction with the capsule endoscope 201 to calculate the location and location of the capsule endoscope 201. attitude.
- Step 103 Establish the world coordinate system.
- the world coordinate system is used to combine the first local coordinate system of the magnet control system 100 and the second local coordinate system of the capsule positioning system 200, and combine the above-mentioned magnet local coordinates and orientation angle of the control magnet 10, capsule endoscope
- the capsule local coordinates and Euler angles of 201 are put into the same coordinate system.
- the pose calibration representation method of the magnetic control capsule system 1000 in this embodiment is a calibration process performed when the magnetic control system 100 and the capsule positioning system 200 are assembled, so that the coordinate systems of the two systems are matched to the same world coordinate system. If the world coordinate system changes later due to functional module upgrades, positioning system movement, etc., the method of this embodiment can be used to calibrate again. After a calibration, the corresponding relationship between the two system coordinate systems of the magnetic control system 100 and the capsule positioning system 200 is determined. After the algorithm conversion of this embodiment, the first local coordinate system and the second local coordinate system are equal to the world coordinate system. The matching is completed and a unified world coordinate system is formed.
- the world coordinate system can be established manually, or the origin of the world coordinate system can be determined based on the movable range coordinates.
- the middle point of the coordinates of the movable range is used as the origin of the world coordinate system, as shown in Figure 3.
- the coordinates [mag x0 , mag y0 , mag z0 ] of the origin of the world coordinate system mag o can be It is calculated using the following formula:
- Step 104 Correct the local coordinates of the magnet to the world coordinates of the magnet in the world coordinate system
- the magnet attitude information of the control magnet in the world coordinate system is calculated.
- the first set of offsets of the magnet's local coordinates relative to the origin of the world coordinate system in each coordinate axis direction is calculated, and then the value of the magnet's world coordinate is set to the desired value.
- the first set of offsets quantity is calculated.
- the position coordinates [Mx, My, Mz] of the control magnet 10 in the world coordinate system can be calculated by the following formula:
- Z 0 is a constant correction height parameter introduced to facilitate application habits and is used to select the reference zero position of Mz.
- You can set Z 0 0, and at this time the zero point of Mz is located at the midpoint of the movement range of the control magnet 10 along the Z-axis direction; you can also set the bed surface 300 as the zero point of Mz, and at this time the control magnet 10 always moves along the Z-axis direction. Located above the origin, the value of Mz is always positive.
- the magnet attitude information of the control magnet 10 in the world coordinate system is calculated.
- the control magnet has axial symmetry, and the orientation angle [Mh, Mv] of the N pole in the magnetization direction is only related to the definition of the coordinate axis direction of the world coordinate system.
- the magnet attitude information of the control magnet 10 in the world coordinate system can be expressed in angles similar to spherical coordinates.
- the angle between the magnetization direction vector of the control magnet 10 and the positive direction of the Z-axis can be defined as the vertical tilt angle M v (value range [0, +180] degrees); define the magnetization direction vector of the control magnet 10 in the XY plane
- the angle between the projection vector and the positive Y-axis is the horizontal azimuth angle M h (value range [-180, +180] degrees), and changes in the clockwise direction.
- [px, py, pz] represents the vector that controls the direction of the magnet 10 , that is, the projection component of the unit vector that controls the magnetization direction of the N pole of the magnet 10 on the XYZ coordinate axes.
- control magnet is fixedly connected to the control mechanical structure, and the zero point of the vertical and horizontal angles is calibrated through a photoelectric switch at a special angular position, and then the relative rotational state of the servo motor that drives the rotation of the control magnet is directly equivalently converted, so that the angle can be accurately obtained status data, there is no need to determine the above attitude angle through on-site measurement of the magnetic field direction of the control magnet.
- Step 105 Correct the local coordinates of the capsule to the world coordinates of the capsule in the world coordinate system
- the projection of the capsule endoscope in the world coordinate system is determined according to the Euler angle, and the capsule posture information of the capsule endoscope in the world coordinate system is calculated.
- the difference between the capsule local coordinates and the second set of offsets is used as the value of the capsule world coordinates.
- the calculation method of the second set of offsets can be seen in Figure 5. Specifically, the vertical projections of the capsule endoscope 201 and the control magnet 10 in the XY plane of the world coordinate system are coincident. Pull the control magnet 10 up appropriately to weaken the suction force on the capsule endoscope 201 to avoid translation or rolling of the capsule endoscope 201 when the control magnet 10 moves, and rotate the control magnet 10 until the magnetization direction is vertically upward, that is, N Extremely vertical and upward. Then, the capsule endoscope 201 is moved to near the bottom of the control magnet 10, and the control magnet 10 moves in the XY plane, and is adjusted through negative feedback correction, so that the capsule endoscope 201 reaches the vertical upward state. At this time, the vertical projections of the control magnet 10 and the capsule endoscope 201 in the XY plane completely overlap, and the XY plane calibration alignment of the capsule positioning system 200 is completed.
- the subscript u means that the control magnet 10 has moved to the capsule Directly above the endoscope 201, at this time, the capsule endoscope 201 is located directly below the control magnet 10, marked with a subscript u (under).
- cap x0 and cap y0 are the deviations of the coordinate values on the X-axis and Y-axis between the second local coordinate system and the world coordinate system, thus unifying the two into one coordinate system for comparison.
- the calculation of the second set of offsets is set at the beginning of the system operation. After the values of the second set of offsets are calculated, there is no need to move the control magnet 10 to the capsule endoscope during subsequent use. Above 201, the cap x0 and cap y0 will not be calculated again in subsequent uses.
- the position of the capsule endoscope 201 can be any position, and the capsule local coordinates of the capsule endoscope 201 in the second local coordinate system are the above-mentioned [cap x , cap y , cap z ].
- the Z-axis difference is determined according to the hardware parameters.
- the Z-axis calibration of the capsule endoscope 201 in the world coordinate system is very important, involving the balance of capsule gravity, capsule buoyancy, friction, magnet attraction and torque.
- the distance in the Z-axis direction between the control magnet 10 and the capsule endoscope 201 directly determines The size of the magnetic attraction, and the magnetic force and distance r satisfy an extremely non-linear relationship. The distance affects the force balance of the capsule endoscope 201, causing the capsule endoscope 201 to switch to different situational states such as sinking to the bottom, floating on the water surface, and ceiling.
- Accurate Z-axis calibration facilitates real-time acquisition of the height distance of the capsule endoscope 201 and provides data basis for subsequent control actions.
- the origin calibration of the second local coordinate system depends on the hardware settings of the control system 100 and the capsule positioning system 200, so its specific values are determined with reference to the parameters of the specific equipment.
- the height difference between the origin of the first local coordinate system and the bed 300 is the same as the height difference between the origin of the first local coordinate system and the bed 300.
- the sum of height differences between the surface 300 and the origin of the second local coordinate system is used as the Z-axis difference.
- Z 1 is the height difference between the origin of the first local coordinate system and the bed surface 300
- Z 2 is the height difference between the bed surface 300 and the origin of the second local coordinate system.
- the projection of the capsule endoscope 201 in the world coordinate system is determined according to the Euler angle, and the capsule posture of the capsule endoscope 201 in the world coordinate system is calculated. information. Converting Euler angles into capsule attitude information can intuitively display the capsule's attitude, making it easier to use in actual control operations.
- the capsule posture information of the capsule endoscope 201 in the world coordinate system can be represented by angles similar to spherical coordinates.
- a method similar to the definition of magnet attitude information can be used to convert the Euler angle into an orientation angle [Ch, Cv] and a capsule spin angle Cs (a fixed phase difference related to the forward direction of the lens can be defined) Correction C s0 ).
- the capsule attitude information of the capsule endoscope 201 is represented by [Ch, Cv, Cs], where: Ch represents the horizontal azimuth angle, Cv represents the vertical tilt angle, and Cs represents the capsule spin angle, as shown in Figure 7 .
- the angle between the head orientation of the capsule endoscope 201 and the positive direction of the Z axis as the capsule vertical tilt angle C v (value range [0, +180] degrees); define the head orientation of the capsule endoscope 201 in XY
- the capsule spin angle is the orientation angle of the lens of the capsule endoscope.
- the projection of the Z axis of the second local coordinate system in the world coordinate system is:
- the direction cosine matrix of the capsule endoscope 201 rotating in the order of Z (roll), Y (pitch), and X (yaw) is expressed as:
- the Z(roll), Y(pitch), and X(yaw) rotation matrices are respectively recorded as:
- R20 in Formula 1 is queried as c 0 s 1 c 2 +s 0 s 2 in Formula 2.
- Step 106 Represent the pose of the control magnet.
- the pose of the control magnet includes magnet world coordinates and/or magnet attitude information;
- step 104 the pose of the control magnet 10 in the world coordinate system can be expressed as:
- Step 107 Represent the pose of the capsule endoscope.
- the pose of the capsule endoscope includes capsule world coordinates and/or capsule pose information.
- step 105 the position and orientation of the capsule endoscope 201 in the world coordinate system can be expressed as:
- the magnetically controlled capsule system 1000 of this embodiment unifies the control magnet 10 and the capsule endoscope 201 into the same world coordinate system, and converts Euler angles into capsule posture information, which can intuitively display the posture of the capsule, and then intuitively Indicates the status of the entire magnetically controlled capsule system 1000, which facilitates the subsequent efficient and accurate closed-loop control of the capsule endoscope 201 for gastrointestinal examination, expands the control methods and application scenarios of the capsule endoscope 201, and improves the accuracy of medical auxiliary diagnosis. and precision.
- a magnetically controlled capsule system 1000 is provided, as shown in FIG. 8 .
- the magnetically controlled capsule system 1000 may also include:
- the first acquisition module is used to acquire the magnet local coordinates and orientation angle of the control magnet in the first local coordinate system
- a second acquisition module configured to acquire the capsule local coordinates and Euler angles of the capsule endoscope in the second local coordinate system
- Modeling module used to establish the world coordinate system
- Control the magnet position correction module to correct the local coordinates of the magnet to the world coordinates of the magnet in the world coordinate system
- a control magnet attitude correction module configured to calculate the magnet attitude information of the control magnet in the world coordinate system according to the projection of the orientation angle in the world coordinate system;
- a capsule endoscope position correction module used to correct the capsule local coordinates to the capsule world coordinates in the world coordinate system
- a capsule endoscope posture correction module configured to determine the projection of the capsule endoscope in the world coordinate system according to the Euler angle, and calculate the capsule posture of the capsule endoscope in the world coordinate system. information
- a control magnet representation module used to represent the pose of the control magnet, where the pose of the control magnet includes magnet world coordinates and/or magnet attitude information;
- a capsule endoscope representation module is used to represent the pose of the capsule endoscope, where the pose of the capsule endoscope includes capsule world coordinates and/or capsule pose information.
- control magnet representation module represents the pose of the control magnet as [Mx, My, Mz, Mh, Mv], where [Mx, My, Mz] is the world coordinate of the magnet, [Mh, Mv ] is the magnet attitude information
- the capsule endoscope representation module represents the pose of the capsule endoscope as [Cx, Cy, Cz, Ch, Cv, Cs], where [Cx, Cy, Cz] is the capsule world Coordinates, [Ch, Cv, Cs] are capsule attitude information
- the modeling module determines the origin of the world coordinate system based on the movable range coordinates.
- the modeling module uses the middle point of the movable range coordinates as the origin of the world coordinate system.
- the magnet position correction module is controlled to calculate a first set of offsets of the magnet's local coordinates relative to the origin of the world coordinate system in each coordinate axis direction, and set the value of the magnet's world coordinate is the first set of offsets.
- the capsule endoscope position correction module calculates a second set of offsets of the origin of the second local coordinate system relative to the origin of the world coordinate system; and compares the capsule local coordinates with The difference between the second set of offsets is used as the value of the capsule world coordinate.
- the capsule endoscope attitude correction module coincides with the vertical projections of the capsule endoscope 201 and the control magnet 10 in the XY plane of the world coordinate system;
- the second acquisition module acquires the first alignment coordinate of the capsule endoscope 201 in the second local coordinate system at this time, and the first acquisition module acquires the third alignment coordinate of the control magnet 10 in the world coordinate system.
- the capsule endoscope position correction module calculates the X-axis difference in the X-axis direction between the first alignment coordinate and the second alignment coordinate, and the Y-axis difference in the Y-axis direction.
- the magnetically controlled capsule system 1000 also includes a data interface, through which the hardware parameters of the magnetically controlled capsule system 1000 are obtained;
- the capsule endoscope coordinate correction module determines the Z-axis difference according to the hardware parameters.
- the magnetically controlled capsule system 1000 may also include computing devices such as computers, laptops, PDAs, and cloud servers. It may further include, but is not limited to, a processing module 40 and a storage module 30 .
- computing devices such as computers, laptops, PDAs, and cloud servers. It may further include, but is not limited to, a processing module 40 and a storage module 30 .
- a processing module 40 and a storage module 30 .
- the schematic diagram is only an example of the magnetically controlled capsule system 1000 and does not constitute a limitation on the terminal equipment of the magnetically controlled capsule system 1000. It may include more or fewer components than shown in the figure, or a combination of certain components. Some components, or different components, for example, the magnetically controlled capsule system 1000 may also include input and output devices, network access devices, buses, etc.
- the control magnet coordinate correction module and the capsule endoscope coordinate correction module unify the control magnet 10 and the capsule endoscope 201 into the same world coordinate system, thereby intuitively representing the entire magnetically controlled capsule.
- the status of the system 1000 facilitates the subsequent efficient and accurate closed-loop control of the capsule endoscope 201 for gastrointestinal examination, expands the control methods and application scenarios of the capsule endoscope 201, and improves the accuracy and precision of medical auxiliary diagnosis.
- FIG. 9 it is a schematic module diagram of a magnetically controlled capsule system 1000 provided by an embodiment of the present invention.
- the magnetic control capsule system 1000 also includes the above-mentioned magnetic control system 100, capsule positioning system 200, control magnet 10 and capsule endoscope 201, processing module 40, storage module 30, each module in the capsule endoscope 201, and the modules stored in the capsule endoscope 201.
- the computer program in the storage module 30 and that can be run on the processing module 40 is, for example, the above-mentioned pose calibration method program.
- the processing module 40 executes the computer program, it implements the steps in each of the above embodiments of the pose calibration method, such as the steps shown in FIG. 1 .
- the magnetic source of the control magnet 10 is controlled by the servo motor and transmission mechanism to drive it to a designated position.
- the transmission data of the servo motor is obtained.
- the position of the control magnet 10 is obtained. Attitude angle status raw data. Position data is accurate to 1mm, and angle data is accurate to 1 degree.
- the control magnet 10 is fixedly connected to the transmission mechanism.
- the zero point is calibrated through photoelectric switches at some positions, such as some special vertical and horizontal angles. Then, by converting the driving amount of the servo motor that drives the movement of the control magnet 10, it can be accurately
- the ground-driven control magnet 10 moves to the target position in the world coordinate system, and there is no need to measure the magnetic field direction of the control magnet 10 on site to determine its attitude angle.
- the capsule endoscope 201 may include a magnetic sensor 50, an acceleration sensor 60, a signal transmission module 70, a magnetic component (not shown), and a camera module 80.
- the magnetic sensor 50, the acceleration sensor 60, and the magnetic component may pass through the interior as described above.
- the three-axis magnetic sensor 50, the three-axis acceleration sensor 60, the IMU sensor and multiple sets of external magnetic positioning equipment work together to calculate the position and attitude of the capsule endoscope 201, and drive the capsule endoscope by controlling the action of the magnet 10 on the magnetic parts.
- the signal transmission module 70 transmits information to the external processing module 40 or server. After the external world drives the wireless capsule to move to a designated position, the camera module 80 takes photos of the human body 400 and transmits them to the outside world through the signal output module, completing the internal photography.
- the control magnet 10 can be appropriately raised to weaken the suction force to the capsule, or lowered to increase the suction force to the capsule, to control the capsule endoscope 201 to switch between different situational states such as sinking to the bottom, floating on the water surface, and ceiling.
- the magnetic control system 100 may also include a signal transmission module 20 and a communication bus 90 .
- the signal transmission module 20 is used to send data to the processing module 40 or the server.
- the signal transmission module 70 and the signal transmission module 20 can transmit data through wireless connections, such as Bluetooth, wifi, zigbee, etc., and the communication bus 90 is used to control the magnet. 10.
- the communication bus 90 may include a channel to transmit information between the above-mentioned control magnet 10, the signal transmission module 20, the processing module 40 and the storage module 30. .
- an embodiment of the present invention provides an electronic device, including a storage module and a processing module.
- the storage module stores a computer program that can be run on the processing module.
- the processing module executes the computer program, the The steps in the pose calibration method of the magnetically controlled capsule system are as described above.
- one embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored.
- the steps in the pose calibration and representation method of the magnetically controlled capsule system are implemented as described above. .
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Surgery (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Veterinary Medicine (AREA)
- Public Health (AREA)
- General Health & Medical Sciences (AREA)
- Animal Behavior & Ethology (AREA)
- Molecular Biology (AREA)
- Pathology (AREA)
- Optics & Photonics (AREA)
- Biomedical Technology (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Biophysics (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Pure & Applied Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Algebra (AREA)
- Operations Research (AREA)
- Signal Processing (AREA)
- Endoscopes (AREA)
Abstract
Description
本申请要求了申请日为2022年03月18日,申请号为202210272501.X,发明名称为“磁控胶囊系统及其位姿标定表示方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with an application date of March 18, 2022, an application number of 202210272501. incorporated in this application.
本发明涉及医疗设备技术领域,尤其涉及一种磁控胶囊系统及其位姿标定表示方法。The present invention relates to the technical field of medical equipment, and in particular to a magnetically controlled capsule system and its posture calibration and representation method.
体内设备定位技术,如无线胶囊内窥镜、侵入式医疗器械等体内定位技术,受到越来越多的关注。磁控胶囊系统通过磁力驱动胶囊内窥镜在体内运动,目前对胶囊内窥镜的驱动,还需要通过有丰富经验的医师来完成。医师通过内置镜头拍摄消化道内壁的检查图像,确定胶囊内窥镜的位置和姿态朝向,再通过外部控制磁体驱动胶囊内窥镜继续运动到下一位置。In vivo device positioning technology, such as wireless capsule endoscopes, invasive medical devices and other in vivo positioning technologies, has received more and more attention. The magnetically controlled capsule system uses magnetic force to drive the capsule endoscope to move in the body. Currently, the driving of the capsule endoscope still needs to be completed by experienced doctors. The doctor takes inspection images of the inner wall of the digestive tract through the built-in lens, determines the position and orientation of the capsule endoscope, and then drives the capsule endoscope to continue moving to the next position through an external control magnet.
由于磁力的极度非线性、非均匀空间分布特点,消化道可形变环境以及摩擦力的影响,胶囊自旋导致难以依据图像判断真实方位,使得仅依靠图像视觉反馈信息,无法精准定量控制胶囊到达目标位置和目标姿态角度。而通过定位方法确认胶囊的位置和姿态角度后,由于定位系统和磁力驱动系统独立运行,定位系统仅能起到辅助确认的作用,胶囊的下一步运动仍需要医师凭借经验判断,且胶囊的姿态角度常采用欧拉角,但欧拉角并不能直观体现胶囊的姿态,不便于实际控制操作使用。所以,目前的定位系统操作复杂,且不够直观、精准。Due to the extremely nonlinear and non-uniform spatial distribution characteristics of magnetism, the deformable environment of the digestive tract and the influence of friction, the capsule spin makes it difficult to determine the true orientation based on the image, making it impossible to accurately and quantitatively control the capsule to reach the target by relying solely on image visual feedback information. position and target attitude angle. After confirming the position and attitude angle of the capsule through the positioning method, since the positioning system and the magnetic drive system operate independently, the positioning system can only play a role in assisting the confirmation. The next movement of the capsule still needs to be judged by the doctor based on experience, and the attitude of the capsule Euler angles are often used as angles, but Euler angles cannot intuitively reflect the posture of the capsule and are inconvenient for actual control operations. Therefore, the current positioning system is complex to operate and not intuitive and accurate enough.
发明内容Contents of the invention
为解决上述现有技术问题中的至少其一,本发明的目的在于提供一种通过闭环的形式准确控制胶囊内窥镜运动的磁控胶囊系统及其位姿标定方法。In order to solve at least one of the above-mentioned problems in the prior art, the object of the present invention is to provide a magnetically controlled capsule system and its pose calibration method that accurately controls the movement of a capsule endoscope in a closed-loop manner.
为实现上述发明目的,本发明一实施方式提供一种磁控胶囊系统的位姿标定表示方法,包括如下步骤:In order to achieve the above-mentioned object of the invention, one embodiment of the present invention provides a posture calibration and representation method of a magnetically controlled capsule system, which includes the following steps:
获取所述控制磁体在第一局域坐标系中的磁体局域坐标和朝向角度;Obtain the magnet local coordinates and orientation angle of the control magnet in the first local coordinate system;
获取所述胶囊内窥镜在第二局域坐标系中的胶囊局域坐标和欧拉角;Obtain the capsule local coordinates and Euler angles of the capsule endoscope in the second local coordinate system;
建立世界坐标系;Establish a world coordinate system;
将所述磁体局域坐标修正为所述世界坐标系中的磁体世界坐标;Correct the local coordinates of the magnet to the world coordinates of the magnet in the world coordinate system;
根据所述朝向角度在所述世界坐标系中的投影,计算所述控制磁体在所述世界坐标系中的磁体姿态信息;Calculate the magnet attitude information of the control magnet in the world coordinate system according to the projection of the orientation angle in the world coordinate system;
将所述胶囊局域坐标修正为所述世界坐标系中的胶囊世界坐标;Correct the capsule local coordinates to the capsule world coordinates in the world coordinate system;
根据所述欧拉角确定所述胶囊内窥镜在所述世界坐标系中的投影,计算所述胶囊内窥镜在所述世界坐标系中的胶囊姿态信息;Determine the projection of the capsule endoscope in the world coordinate system according to the Euler angle, and calculate the capsule posture information of the capsule endoscope in the world coordinate system;
表示所述控制磁体的位姿,所述控制磁体的位姿包括磁体世界坐标和/或磁体姿态信 息;Indicates the pose of the control magnet, which includes the magnet world coordinates and/or the magnet attitude information. interest;
表示所述胶囊内窥镜的位姿,所述胶囊内窥镜的位姿包括胶囊世界坐标和/或胶囊姿态信息。Indicates the posture of the capsule endoscope, and the posture of the capsule endoscope includes capsule world coordinates and/or capsule posture information.
作为本发明的进一步改进,所述磁体姿态信息包括水平方位角和垂直倾斜角,其中,所述水平方位角为所述控制磁体的磁化方向矢量在所述世界坐标系的XY平面的投影矢量与Y轴正向的夹角,所述垂直倾斜角为所述控制磁体的磁化方向矢量与所述世界坐标系的Z轴正向的夹角。As a further improvement of the present invention, the magnet posture information includes a horizontal azimuth angle and a vertical tilt angle, wherein the horizontal azimuth angle is the projection vector of the magnetization direction vector of the control magnet on the XY plane of the world coordinate system and The angle between the positive direction of the Y axis, and the vertical tilt angle is the angle between the magnetization direction vector of the control magnet and the positive direction of the Z axis of the world coordinate system.
作为本发明的进一步改进,还包括步骤:As a further improvement of the present invention, it also includes the steps:
表示所述控制磁体的位姿,所述控制磁体的位姿表示为[Mx,My,Mz,Mh,Mv],其中,[Mx,My,Mz]为所述控制磁体在所述世界坐标系中的位置,Mh为所述水平方位角,Mv为所述垂直倾斜角。Represents the posture of the control magnet. The posture of the control magnet is expressed as [Mx, My, Mz, Mh, Mv], where [Mx, My, Mz] is the position of the control magnet in the world coordinate system. , Mh is the horizontal azimuth angle, and Mv is the vertical tilt angle.
作为本发明的进一步改进,所述胶囊姿态信息包括水平方位角、垂直倾斜角和胶囊自旋角,其中,所述水平方位角为所述胶囊内窥镜的头部朝向在所述世界坐标系的XY平面投影矢量与Y轴正向的夹角,所述垂直倾斜角为所述胶囊内窥镜的头部朝向与所述世界坐标系的Z轴正向的夹角,所述胶囊自旋角为所述胶囊内窥镜的镜头的朝向角度。As a further improvement of the present invention, the capsule attitude information includes a horizontal azimuth angle, a vertical tilt angle and a capsule spin angle, wherein the horizontal azimuth angle is the head direction of the capsule endoscope in the world coordinate system The angle between the XY plane projection vector and the positive direction of the Y axis. The vertical tilt angle is the angle between the head direction of the capsule endoscope and the positive Z axis of the world coordinate system. The capsule spins Angle is the orientation angle of the lens of the capsule endoscope.
作为本发明的进一步改进,还包括步骤:As a further improvement of the present invention, it also includes the steps:
表示所述胶囊内窥镜的位姿,所述胶囊内窥镜的位姿表示为[Cx,Cy,Cz,Ch,Cv,Cs],其中,[Cx,Cy,Cz]为所述胶囊内窥镜在所述世界坐标系中的位置坐标,Ch为所述水平方位角,Cv为所述垂直倾斜角,Cs为所述胶囊自旋角胶囊世界坐标,[Ch,Cv,Cs]为胶囊姿态信息。represents the posture of the capsule endoscope, and the posture of the capsule endoscope is expressed as [Cx, Cy, Cz, Ch, Cv, Cs], where [Cx, Cy, Cz] is the The position coordinates of the looking glass in the world coordinate system, Ch is the horizontal azimuth angle, Cv is the vertical tilt angle, Cs is the capsule spin angle and the capsule world coordinates, [Ch, Cv, Cs] is the capsule world coordinate posture information.
作为本发明的进一步改进,其中,所述磁体局域坐标包括所述控制磁体在第一局域坐标系中的可移动范围坐标;As a further improvement of the present invention, the local coordinates of the magnet include the coordinates of the movable range of the control magnet in the first local coordinate system;
所述步骤“建立世界坐标系”包括:The steps "establishing a world coordinate system" include:
根据所述可移动范围坐标,确定所述世界坐标系的原点。According to the movable range coordinates, the origin of the world coordinate system is determined.
作为本发明的进一步改进,其中,将所述可移动范围坐标的中间点作为所述世界坐标系的原点。As a further improvement of the present invention, the middle point of the movable range coordinates is used as the origin of the world coordinate system.
作为本发明的进一步改进,所述步骤“将所述磁体局域坐标修正为所述世界坐标系中的磁体世界坐标”包括:As a further improvement of the present invention, the step "correcting the local coordinates of the magnet to the world coordinates of the magnet in the world coordinate system" includes:
计算所述磁体局域坐标相对于所述世界坐标系的原点在各个坐标轴方向的第一组偏移量;Calculate a first set of offsets of the local coordinates of the magnet relative to the origin of the world coordinate system in each coordinate axis direction;
将所述磁体世界坐标的值设置为所述第一组偏移量。Set the value of the magnet world coordinate to the first set of offsets.
作为本发明的进一步改进,其中,所述步骤“将所述胶囊局域坐标修正为所述世界坐标系中的胶囊世界坐标”包括:As a further improvement of the present invention, the step "correcting the capsule local coordinates to the capsule world coordinates in the world coordinate system" includes:
计算所述第二局域坐标系的原点相对于所述世界坐标系的原点的第二组偏移量;Calculate a second set of offsets of the origin of the second local coordinate system relative to the origin of the world coordinate system;
将所述胶囊局域坐标与所述第二组偏移量的差值作为所述胶囊世界坐标的值。 The difference between the capsule local coordinates and the second set of offsets is used as the value of the capsule world coordinates.
作为本发明的进一步改进,其中,所述第二组偏移量包括X轴差值和Y轴差值;As a further improvement of the present invention, the second set of offsets includes an X-axis difference and a Y-axis difference;
所述步骤“计算所述第二局域坐标系的原点相对于所述世界坐标系的原点的第二组偏移量”包括:The step "calculating the second set of offsets of the origin of the second local coordinate system relative to the origin of the world coordinate system" includes:
将所述胶囊内窥镜和所述控制磁体在所述世界坐标系的XY平面内的竖直投影重合;Coincide the vertical projections of the capsule endoscope and the control magnet in the XY plane of the world coordinate system;
获取此时的所述胶囊内窥镜在所述第二局域坐标系中的第一对齐坐标、以及所述控制磁体在所述世界坐标系中的第二对齐坐标;Obtain the first alignment coordinates of the capsule endoscope in the second local coordinate system and the second alignment coordinates of the control magnet in the world coordinate system at this time;
计算所述第一对齐坐标与所述第二对齐坐标在X轴方向的所述X轴差值、以及在Y轴方向的所述Y轴差值。The X-axis difference in the X-axis direction and the Y-axis difference in the Y-axis direction between the first alignment coordinate and the second alignment coordinate are calculated.
作为本发明的进一步改进,所述第二组偏移量还包括Z轴差值;As a further improvement of the present invention, the second set of offsets also includes a Z-axis difference;
所述步骤“计算所述第二局域坐标系的原点相对于所述世界坐标系的原点的第二组偏移量”包括:The step "calculating the second set of offsets of the origin of the second local coordinate system relative to the origin of the world coordinate system" includes:
获取所述磁控胶囊系统的硬件参数;Obtain the hardware parameters of the magnetically controlled capsule system;
根据所述硬件参数确定所述Z轴差值。The Z-axis difference is determined according to the hardware parameters.
为实现上述发明目的之一,本发明一实施方式提供了一种磁控胶囊系统,其包括控制磁体和胶囊内窥镜,还包括:In order to achieve one of the above-mentioned objects of the invention, one embodiment of the present invention provides a magnetically controlled capsule system, which includes a control magnet and a capsule endoscope, and also includes:
第一获取模块,用于获取所述控制磁体在第一局域坐标系中的磁体局域坐标和朝向角度;The first acquisition module is used to acquire the magnet local coordinates and orientation angle of the control magnet in the first local coordinate system;
第二获取模块,用于获取所述胶囊内窥镜在第二局域坐标系中的胶囊局域坐标和欧拉角;a second acquisition module, configured to acquire the capsule local coordinates and Euler angles of the capsule endoscope in the second local coordinate system;
建模模块,用于建立世界坐标系;Modeling module, used to establish the world coordinate system;
控制磁体位置修正模块,用于将所述磁体局域坐标修正为所述世界坐标系中的磁体世界坐标;Control the magnet position correction module to correct the local coordinates of the magnet to the world coordinates of the magnet in the world coordinate system;
控制磁体姿态修正模块,用于根据所述朝向角度在所述世界坐标系中的投影,计算所述控制磁体在所述世界坐标系中的磁体姿态信息;A control magnet attitude correction module, configured to calculate the magnet attitude information of the control magnet in the world coordinate system according to the projection of the orientation angle in the world coordinate system;
胶囊内窥镜位置修正模块,用于将所述胶囊局域坐标修正为所述世界坐标系中的胶囊世界坐标;A capsule endoscope position correction module, used to correct the capsule local coordinates to the capsule world coordinates in the world coordinate system;
胶囊内窥镜姿态修正模块,用于根据所述欧拉角确定所述胶囊内窥镜在所述世界坐标系中的投影,计算所述胶囊内窥镜在所述世界坐标系中的胶囊姿态信息;A capsule endoscope posture correction module, configured to determine the projection of the capsule endoscope in the world coordinate system according to the Euler angle, and calculate the capsule posture of the capsule endoscope in the world coordinate system. information;
控制磁体表示模块,用于表示所述控制磁体的位姿,所述控制磁体的位姿包括磁体世界坐标和/或磁体姿态信息;A control magnet representation module, used to represent the pose of the control magnet, where the pose of the control magnet includes magnet world coordinates and/or magnet attitude information;
胶囊内窥镜表示模块,用于表示所述胶囊内窥镜的位姿,所述胶囊内窥镜的位姿包括胶囊世界坐标和/或胶囊姿态信息。A capsule endoscope representation module is used to represent the pose of the capsule endoscope, where the pose of the capsule endoscope includes capsule world coordinates and/or capsule pose information.
为实现上述发明目的之一,本发明一实施方式提供了一种电子设备,包括:存储模块和处理模块,所述存储模块存储有可在所述处理模块上运行的计算机程序,所述处理模块执行所述计算机程序时实现上述所述磁控胶囊系统的位姿标定表示方法中的步骤。 In order to achieve one of the above-mentioned objects of the invention, an embodiment of the present invention provides an electronic device, including: a storage module and a processing module. The storage module stores a computer program that can run on the processing module. The processing module When the computer program is executed, the steps in the pose calibration and representation method of the magnetically controlled capsule system are implemented.
为实现上述发明目的之一,本发明一实施方式提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理模块执行时实现实现上述所述磁控胶囊系统的位姿标定表示方法中的步骤。In order to achieve one of the above-mentioned objects of the invention, one embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processing module, the position of the magnetically controlled capsule system is realized. Attitude calibration represents the steps in the method.
与现有技术相比,本发明具有以下有益效果:将控制磁体和胶囊内窥镜对应的两个系统进行整合,统一、直观地表示整个磁控胶囊系统的状态,从而便于高效、精准地闭环控制胶囊内窥镜实现消化道检查,拓展胶囊内窥镜的控制方法及应用场景,提高医学辅助诊断的准确度和精确度。Compared with the existing technology, the present invention has the following beneficial effects: the two systems corresponding to the control magnet and the capsule endoscope are integrated to uniformly and intuitively represent the status of the entire magnetic control capsule system, thereby facilitating efficient and accurate closed loop Control the capsule endoscope to realize digestive tract examination, expand the control methods and application scenarios of capsule endoscope, and improve the accuracy and precision of medical auxiliary diagnosis.
且通过将磁体世界坐标、磁体姿态信息、胶囊世界坐标和胶囊姿态信息在世界坐标系中进行统一标定,且将欧拉角转换为胶囊姿态信息,可以直观地展现胶囊的姿态,从而便于实际控制操作使用。控制磁体和胶囊内窥镜对应的两个系统对应关系确定,两个系统完成匹配,后面的工作无需重复进行坐标系的换算。And by uniformly calibrating the magnet world coordinates, magnet attitude information, capsule world coordinates and capsule attitude information in the world coordinate system, and converting Euler angles into capsule attitude information, the attitude of the capsule can be displayed intuitively, thus facilitating actual control. operational use. The corresponding relationship between the two systems corresponding to the control magnet and capsule endoscope is determined, and the two systems are matched. There is no need to repeat the conversion of the coordinate system in subsequent work.
图1是本发明一实施例的位姿标定表示方法的流程图;Figure 1 is a flow chart of a pose calibration and representation method according to an embodiment of the present invention;
图2是本发明一实施例的磁控胶囊系统应用于人体的结构示意图;Figure 2 is a schematic structural diagram of a magnetically controlled capsule system applied to the human body according to an embodiment of the present invention;
图3是本发明一实施例的世界坐标系的建立方法的示意图;Figure 3 is a schematic diagram of a method for establishing a world coordinate system according to an embodiment of the present invention;
图4是本发明一实施例的控制磁体的姿态信息的计算方法的示意图;Figure 4 is a schematic diagram of a method for calculating attitude information of a control magnet according to an embodiment of the present invention;
图5是本发明一实施例的第二组偏移量的计算方法的示意图;Figure 5 is a schematic diagram of a method for calculating the second set of offsets according to an embodiment of the present invention;
图6是本发明一实施例的胶囊内窥镜的欧拉角的示意图;Figure 6 is a schematic diagram of the Euler angle of a capsule endoscope according to an embodiment of the present invention;
图7是本发明一实施例的胶囊内窥镜的姿态信息的计算方法的示意图;Figure 7 is a schematic diagram of a method for calculating posture information of a capsule endoscope according to an embodiment of the present invention;
图8是本发明一实施例的磁控胶囊系统的结构框图;Figure 8 is a structural block diagram of a magnetically controlled capsule system according to an embodiment of the present invention;
图9是本发明一实施例的磁控胶囊系统的模块示意图;Figure 9 is a module schematic diagram of a magnetically controlled capsule system according to an embodiment of the present invention;
其中,1000、磁控胶囊系统;100、磁控系统;200、胶囊定位系统;201、胶囊内窥镜;300、床面;400、人体;10、控制磁体;20、信号传输模块;30、存储模块;40、处理模块;50、磁传感器;60、加速度传感器;70、信号输送模块;80、摄像模块;90、通信总线。Among them, 1000, magnetic control capsule system; 100, magnetic control system; 200, capsule positioning system; 201, capsule endoscope; 300, bed surface; 400, human body; 10, control magnet; 20, signal transmission module; 30, Storage module; 40. Processing module; 50. Magnetic sensor; 60. Acceleration sensor; 70. Signal transmission module; 80. Camera module; 90. Communication bus.
以下将结合附图所示的具体实施方式对本发明进行详细描述。但这些实施方式并不限制本发明,本领域的普通技术人员根据这些实施方式所做出的结构、方法、或功能上的变换均包含在本发明的保护范围内。The present invention will be described in detail below with reference to the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention. Structural, method, or functional changes made by those of ordinary skill in the art based on these embodiments are all included in the protection scope of the present invention.
磁控胶囊系统是应用于人体消化道检查的医疗设备,包括位于人体外部的磁控定位设备和位于体内的无线胶囊内窥镜。在检查过程中,通过外部的磁控定位设备控制无线胶囊内窥镜在体内的运动并定位无线胶囊内窥镜在体内的位置,从而辅助医学诊断。The magnetically controlled capsule system is a medical device used for human digestive tract examination, including a magnetically controlled positioning device located outside the human body and a wireless capsule endoscope located inside the body. During the examination, the movement of the wireless capsule endoscope in the body is controlled through an external magnetically controlled positioning device and the position of the wireless capsule endoscope is positioned in the body, thereby assisting medical diagnosis.
本发明一实施例提供一种通过闭环的形式准确控制胶囊内窥镜运动的磁控胶囊系统及其位姿标定表示方法,该方法将控制磁体和胶囊内窥镜统一到同一世界坐标系中,便于后续对无线胶囊的准确控制。 One embodiment of the present invention provides a magnetically controlled capsule system that accurately controls the movement of a capsule endoscope in a closed-loop manner and its pose calibration representation method. This method unifies the control magnet and the capsule endoscope into the same world coordinate system. This facilitates subsequent accurate control of the wireless capsule.
本实施例的磁控胶囊系统1000,包括磁控系统100、胶囊定位系统200、控制磁体10和胶囊内窥镜201。磁控系统100用于控制胶囊内窥镜201的运动。胶囊定位系统200用于对胶囊内窥镜201进行定位。胶囊内窥镜201内部装有传感器模块,传感器模块包括用于检测磁场的磁传感器50(magnetic sensor),所述磁传感器可以为:霍尔传感器、各向异性磁阻(AMR)传感器、巨磁阻传感器(GMR)传感器、隧道磁阻(TMR)传感器等。控制磁体10包括用于发出磁场的磁源、用于控制磁源运动的伺服电机。胶囊内窥镜201内部设有磁性件,与控制磁体10的磁源相互作用。通过磁源对磁性件的作用力,实现磁控系统100对胶囊内窥镜201的位置和姿态的控制。The magnetically controlled capsule system 1000 in this embodiment includes a magnetically controlled system 100, a capsule positioning system 200, a control magnet 10 and a capsule endoscope 201. The magnetic control system 100 is used to control the movement of the capsule endoscope 201 . The capsule positioning system 200 is used to position the capsule endoscope 201 . The capsule endoscope 201 is equipped with a sensor module inside. The sensor module includes a magnetic sensor 50 (magnetic sensor) for detecting a magnetic field. The magnetic sensor can be: Hall sensor, anisotropic magnetoresistance (AMR) sensor, giant magnet sensor. resistance sensor (GMR) sensor, tunnel magnetoresistance (TMR) sensor, etc. The control magnet 10 includes a magnetic source for emitting a magnetic field and a servo motor for controlling the movement of the magnetic source. The capsule endoscope 201 is provided with a magnetic component inside, which interacts with the magnetic source of the control magnet 10 . Through the force exerted by the magnetic source on the magnetic components, the magnetic control system 100 controls the position and attitude of the capsule endoscope 201 .
图1为本申请一个实施方式的一种磁控胶囊系统1000的位姿标定表示方法的流程图。图2为本申请一个实施方式的磁控胶囊系统1000应用于人体的结构示意图,胶囊内窥镜201位于人体400内部,人体400平躺于床面300上,人体400外部设有包含控制磁体10的磁控系统100。在检查时,控制磁体10发出的磁场,控制人体400内的胶囊内窥镜201的运动。Figure 1 is a flow chart of a posture calibration and representation method of a magnetically controlled capsule system 1000 according to an embodiment of the present application. Figure 2 is a schematic structural diagram of a magnetically controlled capsule system 1000 applied to the human body according to an embodiment of the present application. The capsule endoscope 201 is located inside the human body 400. The human body 400 lies flat on the bed 300. The control magnet 10 is provided outside the human body 400. The magnetic control system 100. During inspection, the magnetic field emitted by the magnet 10 is controlled to control the movement of the capsule endoscope 201 in the human body 400 .
虽然本申请提供了如下述实施方式或流程图所述的方法操作步骤,但是基于常规或者无需创造性的劳动,所述方法在逻辑性上不存在必要因果关系的步骤中,这些步骤的执行顺序不限于本申请实施方式中所提供的执行顺序。Although this application provides method operation steps as described in the following embodiments or flow charts, there are steps in the method that do not logically have a necessary causal relationship based on routine or no creative effort, and the order of execution of these steps does not exist. It is limited to the execution sequence provided in the embodiment of this application.
如图1所示,具体的磁控胶囊系统1000的位姿标定表示方法,包括如下步骤:As shown in Figure 1, the specific pose calibration representation method of the magnetically controlled capsule system 1000 includes the following steps:
步骤101:获取控制磁体10在第一局域坐标系中的磁体局域坐标和朝向角度。Step 101: Obtain the magnet local coordinates and orientation angle of the control magnet 10 in the first local coordinate system.
所述磁体局域坐标可以包括控制磁体10在第一局域坐标系中的可移动范围坐标。The local coordinates of the magnet may include coordinates of the movable range of the control magnet 10 in the first local coordinate system.
磁体局域坐标和朝向角度可以通过磁控系统100的数据接口,由伺服电机的传动数据获得。The local coordinates and orientation angle of the magnet can be obtained from the transmission data of the servo motor through the data interface of the magnetic control system 100 .
第一局域坐标系是磁控系统100中的一个局域坐标系,定义出该第一局域坐标系中的原点,再根据伺服电机的驱动量,即可计算出控制磁体10的当前位置和朝向角度。The first local coordinate system is a local coordinate system in the magnetic control system 100. The origin of the first local coordinate system is defined, and then the current position of the control magnet 10 can be calculated based on the driving amount of the servo motor. and orientation angle.
在第一局域坐标系中,磁体局域坐标包括XYZ轴三个方向的参数值:[magx,magy,magz]。控制磁体10具有轴对称性,可以根据磁化方向N极的朝向角度确定出控制磁体10的朝向角度。控制磁体10的朝向可以取其方向的单位矢量,或者在后期归一化后参与计算。这里控制磁体10的朝向取其单位矢量:[px,py,pz]。In the first local coordinate system, the local coordinates of the magnet include parameter values in the three directions of the XYZ axis: [mag x , mag y , mag z ]. The control magnet 10 has axial symmetry, and the orientation angle of the control magnet 10 can be determined according to the orientation angle of the N pole in the magnetization direction. The orientation of the control magnet 10 may be the unit vector of its direction, or may be involved in the calculation after normalization at a later stage. Here, the direction of the control magnet 10 is taken as its unit vector: [p x , p y , p z ].
另外,根据伺服电机的行程轨迹,可以计算出控制磁体10在XYZ轴各个方向上的可移动范围,这些范围的端点为控制磁体10的极限位置,这些极限位置可以分别表示为:{X:[magxmin,magxmax],Y:[magymin,magymax],Z:[magzmin,magzmax]}。In addition, according to the stroke trajectory of the servo motor, the movable range of the control magnet 10 in each direction of the XYZ axis can be calculated. The end points of these ranges are the limit positions of the control magnet 10. These limit positions can be expressed as: {X:[ mag xmin ,mag xmax ],Y:[mag ymin ,mag ymax ],Z:[mag zmin ,mag zmax ]}.
步骤102:获取胶囊内窥镜201在第二局域坐标系中的胶囊局域坐标和欧拉角;Step 102: Obtain the capsule local coordinates and Euler angles of the capsule endoscope 201 in the second local coordinate system;
在第二局域坐标系中,胶囊局域坐标即为胶囊内窥镜201在XYZ轴三个方向的参数值:[capx,capy,capz]。欧拉角包括横滚角roll、俯仰角pitch和航向角yaw,反应了胶 囊内窥镜201的姿态朝向。横滚角roll、俯仰角pitch、航向角yaw可以依次表示为[θ0,θ1,θ2],胶囊内窥镜201的欧拉角可以参图6所示。In the second local coordinate system, the local coordinates of the capsule are the parameter values of the capsule endoscope 201 in the three directions of the XYZ axis: [cap x , cap y , cap z ]. Euler angles include roll angle roll, pitch angle pitch and yaw angle, which reflect the glue The orientation of the capsule endoscope 201 is. The roll angle roll, pitch angle pitch, and yaw angle can be expressed as [θ 0 , θ 1 , θ 2 ] in sequence. The Euler angle of the capsule endoscope 201 can be shown in FIG. 6 .
所述第二局域坐标系是胶囊内窥镜201中的一个局域坐标系,该局域坐标系的标定依赖于胶囊定位系统200的标定,胶囊定位系统200一般固定在床面300以下,其原点的高度位置(沿Z轴方向)相对固定,但是该局域坐标在XY平面内则可能发生移动。The second local coordinate system is a local coordinate system in the capsule endoscope 201. The calibration of this local coordinate system depends on the calibration of the capsule positioning system 200. The capsule positioning system 200 is generally fixed below the bed surface 300. The height position of its origin (along the Z-axis direction) is relatively fixed, but the local coordinates may move in the XY plane.
胶囊局域坐标和欧拉角可以通过胶囊定位系统200的相关软件接口功能,获取胶囊内窥镜201的位置、姿态角度状态数据。位置数据精确到1mm,姿态角度状态数据为避免矩阵计算精度的损失,可以采用浮点数弧度表示。The capsule local coordinates and Euler angles can be used to obtain the position and attitude angle status data of the capsule endoscope 201 through the relevant software interface functions of the capsule positioning system 200 . The position data is accurate to 1mm. In order to avoid the loss of matrix calculation accuracy, the attitude angle status data can be expressed in floating point radians.
胶囊内窥镜201内部可以设置有三轴磁传感器50和三轴加速度传感器60,人体400外部设置若干组磁定位设备,与胶囊内窥镜201协同工作,计算出胶囊内窥镜201所在的位置和姿态。The capsule endoscope 201 can be provided with a three-axis magnetic sensor 50 and a three-axis acceleration sensor 60 inside. Several sets of magnetic positioning devices are provided outside the human body 400 to work in conjunction with the capsule endoscope 201 to calculate the location and location of the capsule endoscope 201. attitude.
步骤103:建立世界坐标系。Step 103: Establish the world coordinate system.
世界坐标系用于将磁控系统100的第一局域坐标系和胶囊定位系统200的第二局域坐标系统一,将上述的控制磁体10的磁体局域坐标和朝向角度、胶囊内窥镜201的胶囊局域坐标和欧拉角放入同一坐标系中。The world coordinate system is used to combine the first local coordinate system of the magnet control system 100 and the second local coordinate system of the capsule positioning system 200, and combine the above-mentioned magnet local coordinates and orientation angle of the control magnet 10, capsule endoscope The capsule local coordinates and Euler angles of 201 are put into the same coordinate system.
本实施例的磁控胶囊系统1000的位姿标定表示方法,标定过程是在磁控系统100和胶囊定位系统200组装时进行一次标定,使得两个系统的坐标系匹配到同一世界坐标系中。后期如果因功能模块升级、定位系统挪动等导致世界坐标系的变更,可以用本实施例的方法进行再次标定校准。一次标定之后,确定磁控系统100和胶囊定位系统200这两个系统坐标系的对应关系,经过本实施例的算法换算,第一局域坐标系和第二局域坐标系就与世界坐标系匹配完成,形成了统一的世界坐标系。The pose calibration representation method of the magnetic control capsule system 1000 in this embodiment is a calibration process performed when the magnetic control system 100 and the capsule positioning system 200 are assembled, so that the coordinate systems of the two systems are matched to the same world coordinate system. If the world coordinate system changes later due to functional module upgrades, positioning system movement, etc., the method of this embodiment can be used to calibrate again. After a calibration, the corresponding relationship between the two system coordinate systems of the magnetic control system 100 and the capsule positioning system 200 is determined. After the algorithm conversion of this embodiment, the first local coordinate system and the second local coordinate system are equal to the world coordinate system. The matching is completed and a unified world coordinate system is formed.
世界坐标系的建立,可以人为指定,也可以根据所述可移动范围坐标,确定所述世界坐标系的原点。The world coordinate system can be established manually, or the origin of the world coordinate system can be determined based on the movable range coordinates.
具体地,将所述可移动范围坐标的中间点作为所述世界坐标系的原点,参图3所示,具体地,世界坐标系原点mago的坐标[magx0,magy0,magz0]可以用如下公式进行计算得到:
Specifically, the middle point of the coordinates of the movable range is used as the origin of the world coordinate system, as shown in Figure 3. Specifically, the coordinates [mag x0 , mag y0 , mag z0 ] of the origin of the world coordinate system mag o can be It is calculated using the following formula:
步骤104:将所述磁体局域坐标修正为所述世界坐标系中的磁体世界坐标;Step 104: Correct the local coordinates of the magnet to the world coordinates of the magnet in the world coordinate system;
根据所述朝向角度在所述世界坐标系中的投影,计算所述控制磁体在所述世界坐标系中的磁体姿态信息。According to the projection of the orientation angle in the world coordinate system, the magnet attitude information of the control magnet in the world coordinate system is calculated.
在上述世界坐标系建立完成后,计算所述磁体局域坐标相对于所述世界坐标系的原点在各个坐标轴方向的第一组偏移量,然后将所述磁体世界坐标的值设置为所述第一组偏移 量。After the above world coordinate system is established, the first set of offsets of the magnet's local coordinates relative to the origin of the world coordinate system in each coordinate axis direction is calculated, and then the value of the magnet's world coordinate is set to the desired value. The first set of offsets quantity.
具体地,在标定世界坐标系的原点后,控制磁体10在世界坐标系的位置坐标[Mx,My,Mz],可以通过如下公式计算得到:
Specifically, after calibrating the origin of the world coordinate system, the position coordinates [Mx, My, Mz] of the control magnet 10 in the world coordinate system can be calculated by the following formula:
其中,Z0为便于应用习惯而引入的常数修正高度参数,用于选择Mz的参考零点位置。可以设置Z0=0,此时Mz的零点位于控制磁体10沿Z轴方向移动范围的中点位置;也可以将床面300设为Mz的零点,此时控制磁体10沿Z轴方向移动始终位于原点之上,Mz的值始终为正值。Among them, Z 0 is a constant correction height parameter introduced to facilitate application habits and is used to select the reference zero position of Mz. You can set Z 0 = 0, and at this time the zero point of Mz is located at the midpoint of the movement range of the control magnet 10 along the Z-axis direction; you can also set the bed surface 300 as the zero point of Mz, and at this time the control magnet 10 always moves along the Z-axis direction. Located above the origin, the value of Mz is always positive.
举例来说,控制磁体10在XYZ三轴方向上的边界范围为{X:[20,550],Y:[-30,450],Z:[-80,220]},则世界坐标系原点坐标mag0=[285,210,70],根据控制磁体10获取的当前位置点坐标原始数据mag=[200,150,100],标定后的位置状态[Mx,My,Mz]=[-85,-60,30]。For example, the boundary range of the control magnet 10 in the XYZ three-axis direction is {X:[20,550],Y:[-30,450],Z:[-80,220]}, then the origin coordinate of the world coordinate system mag 0 =[285,210 ,70], according to the original data mag=[200,150,100] of the current position point coordinate obtained by the control magnet 10, the calibrated position state [Mx, My, Mz]=[-85,-60,30].
另外,参图4所示,根据所述朝向角度在所述世界坐标系中的投影,计算所述控制磁体10在所述世界坐标系中的磁体姿态信息。In addition, as shown in FIG. 4 , based on the projection of the orientation angle in the world coordinate system, the magnet attitude information of the control magnet 10 in the world coordinate system is calculated.
控制磁体具有轴对称性,磁化方向N极的朝向角度[Mh,Mv]仅与世界坐标系坐标轴方向定义相关。控制磁体10在世界坐标系中的磁体姿态信息,可以用类似于球坐标角度表示。具体的数值方面,可以定义控制磁体10磁化方向矢量与Z轴正向的夹角为垂直倾斜角Mv(取值范围[0,+180]度);定义控制磁体10磁化方向矢量在XY平面投影矢量与Y轴正向的夹角为水平方位角Mh(取值范围[-180,+180]度),并按照顺时针方向变化,如Y轴正向时Mh=0,X轴正向时Mh=90,Y轴负向时Mh=±180,X轴负向时Mh=-90。The control magnet has axial symmetry, and the orientation angle [Mh, Mv] of the N pole in the magnetization direction is only related to the definition of the coordinate axis direction of the world coordinate system. The magnet attitude information of the control magnet 10 in the world coordinate system can be expressed in angles similar to spherical coordinates. In terms of specific numerical values, the angle between the magnetization direction vector of the control magnet 10 and the positive direction of the Z-axis can be defined as the vertical tilt angle M v (value range [0, +180] degrees); define the magnetization direction vector of the control magnet 10 in the XY plane The angle between the projection vector and the positive Y-axis is the horizontal azimuth angle M h (value range [-180, +180] degrees), and changes in the clockwise direction. For example, when the Y-axis is positive, M h = 0, the X-axis In the positive direction, M h = 90, in the negative direction of the Y axis, M h = ±180, and in the negative direction of the X axis, M h = -90.
具体地,
specifically,
其中,[px,py,pz]表示上述的控制磁体10朝向的矢量,即,控制磁体10的N极的磁化方向的单位矢量在XYZ坐标轴的投影分量。[px, py, pz] represents the vector that controls the direction of the magnet 10 , that is, the projection component of the unit vector that controls the magnetization direction of the N pole of the magnet 10 on the XYZ coordinate axes.
可选地,控制磁体与控制机械结构固定连接,通过特殊角度位置的光电开关标定垂直、水平角度的零点,然后通过驱动控制磁体旋转的伺服电机相对转动状态直接等效换算,可以精准地获取角度状态数据,无需通过现场测量控制磁体磁场方向确定上述姿态角度。 Optionally, the control magnet is fixedly connected to the control mechanical structure, and the zero point of the vertical and horizontal angles is calibrated through a photoelectric switch at a special angular position, and then the relative rotational state of the servo motor that drives the rotation of the control magnet is directly equivalently converted, so that the angle can be accurately obtained status data, there is no need to determine the above attitude angle through on-site measurement of the magnetic field direction of the control magnet.
步骤105:将所述胶囊局域坐标修正为所述世界坐标系中的胶囊世界坐标;Step 105: Correct the local coordinates of the capsule to the world coordinates of the capsule in the world coordinate system;
根据所述欧拉角确定所述胶囊内窥镜在所述世界坐标系中的投影,计算所述胶囊内窥镜在所述世界坐标系中的胶囊姿态信息。The projection of the capsule endoscope in the world coordinate system is determined according to the Euler angle, and the capsule posture information of the capsule endoscope in the world coordinate system is calculated.
计算所述第二局域坐标系的原点相对于所述世界坐标系的原点的第二组偏移量,所述第二组偏移量包括X轴差值、Y轴差值和Z轴差值;Calculate a second set of offsets of the origin of the second local coordinate system relative to the origin of the world coordinate system, the second set of offsets including X-axis difference, Y-axis difference and Z-axis difference value;
将所述胶囊局域坐标与所述第二组偏移量的差值作为所述胶囊世界坐标的值。The difference between the capsule local coordinates and the second set of offsets is used as the value of the capsule world coordinates.
第二组偏移量的计算方式,可以参图5所示。具体地,将所述胶囊内窥镜201和所述控制磁体10在所述世界坐标系的XY平面内的竖直投影重合。将控制磁体10适当拉高以减弱对胶囊内窥镜201的吸力,避免控制磁体10移动时导致胶囊内窥镜201发生平移或滚动,并旋转控制磁体10到磁化方向竖直朝上,即N极竖直向上。再将胶囊内窥镜201移动至控制磁体10下方附近,控制磁体10在XY平面内移动,通过负反馈修正进行调整,使得胶囊内窥镜201到达竖直朝上状态。此时,控制磁体10与胶囊内窥镜201在XY平面内的竖直投影完全重合,完成胶囊定位系统200的XY平面标定对齐。The calculation method of the second set of offsets can be seen in Figure 5. Specifically, the vertical projections of the capsule endoscope 201 and the control magnet 10 in the XY plane of the world coordinate system are coincident. Pull the control magnet 10 up appropriately to weaken the suction force on the capsule endoscope 201 to avoid translation or rolling of the capsule endoscope 201 when the control magnet 10 moves, and rotate the control magnet 10 until the magnetization direction is vertically upward, that is, N Extremely vertical and upward. Then, the capsule endoscope 201 is moved to near the bottom of the control magnet 10, and the control magnet 10 moves in the XY plane, and is adjusted through negative feedback correction, so that the capsule endoscope 201 reaches the vertical upward state. At this time, the vertical projections of the control magnet 10 and the capsule endoscope 201 in the XY plane completely overlap, and the XY plane calibration alignment of the capsule positioning system 200 is completed.
获取此时的所述胶囊内窥镜201在所述第二局域坐标系(在图4中,用Oc-XcYcZc坐标系统表示)中的第一对齐坐标[capxu,capyu]、以及所述控制磁体10在所述世界坐标系(在图4中,用O-XYZ坐标系表示)中的第二对齐坐标[Mxu,Myu],下标u是指的控制磁体10移动到了胶囊内窥镜201正上方,此时,胶囊内窥镜201位于控制磁体10正下方,用下标u(under)标记。Obtain the first alignment coordinates [cap xu , cap yu ] of the capsule endoscope 201 in the second local coordinate system (in Figure 4, represented by the Oc-XcYcZc coordinate system) at this time, and the The second alignment coordinate [M xu , M yu ] of the control magnet 10 in the world coordinate system (in Figure 4, represented by the O-XYZ coordinate system), the subscript u means that the control magnet 10 has moved to the capsule Directly above the endoscope 201, at this time, the capsule endoscope 201 is located directly below the control magnet 10, marked with a subscript u (under).
计算所述第一对齐坐标[capxu,capyu]与所述第二对齐坐标[Mxu,Myu]在X轴方向的所述X轴差值capx0、以及在Y轴方向的所述Y轴差值capy0。Calculate the X-axis difference cap x0 between the first alignment coordinate [cap xu , cap yu ] and the second alignment coordinate [M xu , M yu ] in the X-axis direction, and the X-axis difference cap x0 in the Y-axis direction Y-axis difference cap y0 .
capx0和capy0也就是第二局域坐标系与世界坐标系在X轴和Y轴上的坐标值的偏差,这样将两者统一到一个坐标系内进行比较。cap x0 and cap y0 are the deviations of the coordinate values on the X-axis and Y-axis between the second local coordinate system and the world coordinate system, thus unifying the two into one coordinate system for comparison.
第二组偏移量的计算,是在系统运行之初的设定,在该第二组偏移量的值计算后,在后续使用时,不需要再将控制磁体10移动至胶囊内窥镜201的上方,该capx0和capy0在后续的使用中不会再次计算。胶囊内窥镜201的位置可以是任意位置,胶囊内窥镜201在第二局域坐标系中的胶囊局域坐标为上述的[capx,capy,capz]。The calculation of the second set of offsets is set at the beginning of the system operation. After the values of the second set of offsets are calculated, there is no need to move the control magnet 10 to the capsule endoscope during subsequent use. Above 201, the cap x0 and cap y0 will not be calculated again in subsequent uses. The position of the capsule endoscope 201 can be any position, and the capsule local coordinates of the capsule endoscope 201 in the second local coordinate system are the above-mentioned [cap x , cap y , cap z ].
另外,Z轴差值的计算步骤如下:In addition, the calculation steps for the Z-axis difference are as follows:
获取所述磁控胶囊系统1000的硬件参数;Obtain the hardware parameters of the magnetically controlled capsule system 1000;
根据所述硬件参数确定所述Z轴差值。The Z-axis difference is determined according to the hardware parameters.
胶囊内窥镜201在世界坐标系中的Z轴标定至关重要,涉及胶囊重力、胶囊浮力、摩擦力、磁体吸力及力矩的平衡。控制磁体10与胶囊内窥镜201的Z轴方向距离直接决定了 磁力吸力的大小,并且磁力与距离r满足极度非线性关系,距离的远近影响胶囊内窥镜201的受力平衡,导致胶囊内窥镜201出现沉底、水面悬浮、吸顶等不同情境状态切换。准确的Z轴标定,便于实时获取胶囊内窥镜201的高度距离,为后续的控制动作提供数据的依据。The Z-axis calibration of the capsule endoscope 201 in the world coordinate system is very important, involving the balance of capsule gravity, capsule buoyancy, friction, magnet attraction and torque. The distance in the Z-axis direction between the control magnet 10 and the capsule endoscope 201 directly determines The size of the magnetic attraction, and the magnetic force and distance r satisfy an extremely non-linear relationship. The distance affects the force balance of the capsule endoscope 201, causing the capsule endoscope 201 to switch to different situational states such as sinking to the bottom, floating on the water surface, and ceiling. . Accurate Z-axis calibration facilitates real-time acquisition of the height distance of the capsule endoscope 201 and provides data basis for subsequent control actions.
第二局域坐标系的原点标定依赖于控制系统100和胶囊定位系统200的硬件设定,所以其具体数值参考具体设备的参数确定。The origin calibration of the second local coordinate system depends on the hardware settings of the control system 100 and the capsule positioning system 200, so its specific values are determined with reference to the parameters of the specific equipment.
以第一局域坐标系的原点在床面300的上方,第二局域坐标系的原点在床面300的下方为例,第一局域坐标系的原点距离床面300的高度差与床面300距离第二局域坐标系的原点的高度差之和,作为所述Z轴差值。For example, assuming that the origin of the first local coordinate system is above the bed 300 and the origin of the second local coordinate system is below the bed 300, the height difference between the origin of the first local coordinate system and the bed 300 is the same as the height difference between the origin of the first local coordinate system and the bed 300. The sum of height differences between the surface 300 and the origin of the second local coordinate system is used as the Z-axis difference.
具体地,第二组偏移量的计算公式为:
Specifically, the calculation formula for the second set of offsets is:
其中,Z1为第一局域坐标系的原点距离床面300的高度差,Z2为床面300距离第二局域坐标系的原点的高度差。Among them, Z 1 is the height difference between the origin of the first local coordinate system and the bed surface 300 , and Z 2 is the height difference between the bed surface 300 and the origin of the second local coordinate system.
结合上述的步骤“将所述胶囊局域坐标与所述第二组偏移量的差值作为所述胶囊世界坐标的值”,胶囊世界坐标[Cx,Cy,Cz]的计算公式为:
Combined with the above steps of "taking the difference between the local coordinates of the capsule and the second set of offsets as the value of the world coordinates of the capsule", the calculation formula of the capsule world coordinates [Cx, Cy, Cz] is:
另外,参图7所示,根据所述欧拉角确定所述胶囊内窥镜201在所述世界坐标系中的投影,计算所述胶囊内窥镜201在所述世界坐标系中的胶囊姿态信息。将欧拉角转换为胶囊姿态信息,可以直观地展现胶囊的姿态,从而便于实际控制操作使用。In addition, as shown in FIG. 7 , the projection of the capsule endoscope 201 in the world coordinate system is determined according to the Euler angle, and the capsule posture of the capsule endoscope 201 in the world coordinate system is calculated. information. Converting Euler angles into capsule attitude information can intuitively display the capsule's attitude, making it easier to use in actual control operations.
具体地,胶囊内窥镜201在世界坐标系中的胶囊姿态信息,可以用类似于球坐标角度表示。具体的数值方面,可以采用类似于磁体姿态信息的定义方式,将欧拉角转换为朝向姿态角[Ch,Cv]、以及胶囊自旋角度Cs(可以对与镜头正方向定义相关的固定相位差修正Cs0)。Specifically, the capsule posture information of the capsule endoscope 201 in the world coordinate system can be represented by angles similar to spherical coordinates. In terms of specific numerical values, a method similar to the definition of magnet attitude information can be used to convert the Euler angle into an orientation angle [Ch, Cv] and a capsule spin angle Cs (a fixed phase difference related to the forward direction of the lens can be defined) Correction C s0 ).
也就是说,胶囊内窥镜201的胶囊姿态信息使用[Ch,Cv,Cs]表示,其中:Ch表示水平方位角,Cv表示垂直倾斜角,Cs表示胶囊自旋角,参图7所示。That is to say, the capsule attitude information of the capsule endoscope 201 is represented by [Ch, Cv, Cs], where: Ch represents the horizontal azimuth angle, Cv represents the vertical tilt angle, and Cs represents the capsule spin angle, as shown in Figure 7 .
定义胶囊内窥镜201的头部朝向与Z轴正向的夹角为胶囊垂直倾斜角Cv(取值范围[0,+180]度);定义胶囊内窥镜201的头部朝向在XY平面投影矢量与Y轴正向的夹角为胶囊水平方位角Ch(取值范围[-180,+180]度),并按照顺时针方向变化(Y轴正向时
Ch=0,X轴正向时Ch=90,Y轴负向时Ch=±180,X轴负向时Ch=-90);其中,胶囊内窥镜201的头部朝向是指胶囊内窥镜201设有镜头一端的端部朝向。胶囊自旋角为所述胶囊内窥镜的镜头的朝向角度,定义胶囊内窥镜201的镜头拍摄图像正立时胶囊自旋角Cs=0,按照顺时针方向变化,胶囊内窥镜201的姿态信息[Ch,Cv,Cs]的计算公式为:
Define the angle between the head orientation of the capsule endoscope 201 and the positive direction of the Z axis as the capsule vertical tilt angle C v (value range [0, +180] degrees); define the head orientation of the capsule endoscope 201 in XY The angle between the plane projection vector and the positive Y-axis is the horizontal azimuth angle C h of the capsule (value range [-180, +180] degrees), and changes in the clockwise direction (when the Y-axis is positive Ch = 0 , Ch = 90 when the Refers to the direction of the end of the capsule endoscope 201 provided with the lens. The capsule spin angle is the orientation angle of the lens of the capsule endoscope. When the image captured by the lens of the capsule endoscope 201 is upright, the capsule spin angle C s =0 is defined. According to the change in the clockwise direction, the capsule endoscope 201 The calculation formula of attitude information [Ch, Cv, Cs] is:
其中,第二局域坐标系Z轴在世界坐标系的投影为:Among them, the projection of the Z axis of the second local coordinate system in the world coordinate system is:
P=R·[0 0 1]T=[px py pz]T P=R·[0 0 1] T =[p x p y p z ] T
胶囊内窥镜201按照Z(roll),Y(pitch),X(yaw)的顺序旋转的方向余弦矩阵表示为:
The direction cosine matrix of the capsule endoscope 201 rotating in the order of Z (roll), Y (pitch), and X (yaw) is expressed as:
Z(roll),Y(pitch),X(yaw)旋转矩阵分别记为:
The Z(roll), Y(pitch), and X(yaw) rotation matrices are respectively recorded as:
其中,ck≡cos(θk),sk≡sin(θk),θk为上述的相应的欧拉角,k=0,1,2。Among them, c k ≡ cos (θ k ), s k ≡ sin (θ k ), θ k is the corresponding Euler angle mentioned above, k = 0, 1, 2.
公式1中R的具体值,在公式2中查询。例如公式1中的R20,在公式2中查询为c0s1c2+s0s2。The specific value of R in Formula 1 can be found in Formula 2. For example, R20 in Formula 1 is queried as c 0 s 1 c 2 +s 0 s 2 in Formula 2.
步骤106:表示所述控制磁体的位姿,所述控制磁体的位姿包括磁体世界坐标和/或磁体姿态信息;Step 106: Represent the pose of the control magnet. The pose of the control magnet includes magnet world coordinates and/or magnet attitude information;
经过步骤104,可以将控制磁体10在世界坐标系的位姿表示为:After step 104, the pose of the control magnet 10 in the world coordinate system can be expressed as:
[Mx,My,Mz,Mh,Mv],其中,[Mx,My,Mz]为磁体世界坐标,[Mh,Mv]为磁体姿态信息。[Mx,My,Mz,Mh,Mv], where [Mx,My,Mz] is the world coordinate of the magnet, and [Mh,Mv] is the magnet attitude information.
步骤107:表示所述胶囊内窥镜的位姿,所述胶囊内窥镜的位姿包括胶囊世界坐标和/或胶囊姿态信息。Step 107: Represent the pose of the capsule endoscope. The pose of the capsule endoscope includes capsule world coordinates and/or capsule pose information.
经过步骤105,可以将胶囊内窥镜201在世界坐标系的位姿表示为:After step 105, the position and orientation of the capsule endoscope 201 in the world coordinate system can be expressed as:
[Cx,Cy,Cz,Ch,Cv,Cs],其中,[Cx,Cy,Cz]为胶囊世界坐标,[Ch,Cv,Cs]为胶囊姿态 信息。[Cx, Cy, Cz, Ch, Cv, Cs], where [Cx, Cy, Cz] is the capsule world coordinate, [Ch, Cv, Cs] is the capsule posture information.
本实施例的磁控胶囊系统1000将控制磁体10和胶囊内窥镜201统一到同一世界坐标系中,且将欧拉角转换为胶囊姿态信息,可以直观地展现胶囊的姿态,继而可以直观地表示整个磁控胶囊系统1000的状态,为后续高效、精准地闭环控制胶囊内窥镜201实现消化道检查提供便利,拓展胶囊内窥镜201的控制方法及应用场景,提高医学辅助诊断的准确度和精确度。The magnetically controlled capsule system 1000 of this embodiment unifies the control magnet 10 and the capsule endoscope 201 into the same world coordinate system, and converts Euler angles into capsule posture information, which can intuitively display the posture of the capsule, and then intuitively Indicates the status of the entire magnetically controlled capsule system 1000, which facilitates the subsequent efficient and accurate closed-loop control of the capsule endoscope 201 for gastrointestinal examination, expands the control methods and application scenarios of the capsule endoscope 201, and improves the accuracy of medical auxiliary diagnosis. and precision.
在一个实施例中,提供了一种磁控胶囊系统1000,如图8所示。除了控制磁体和胶囊内窥镜,该磁控胶囊系统1000还可以包括:In one embodiment, a magnetically controlled capsule system 1000 is provided, as shown in FIG. 8 . In addition to controlling the magnet and capsule endoscope, the magnetically controlled capsule system 1000 may also include:
第一获取模块,用于获取所述控制磁体在第一局域坐标系中的磁体局域坐标和朝向角度;The first acquisition module is used to acquire the magnet local coordinates and orientation angle of the control magnet in the first local coordinate system;
第二获取模块,用于获取所述胶囊内窥镜在第二局域坐标系中的胶囊局域坐标和欧拉角;a second acquisition module, configured to acquire the capsule local coordinates and Euler angles of the capsule endoscope in the second local coordinate system;
建模模块,用于建立世界坐标系;Modeling module, used to establish the world coordinate system;
控制磁体位置修正模块,用于将所述磁体局域坐标修正为所述世界坐标系中的磁体世界坐标;Control the magnet position correction module to correct the local coordinates of the magnet to the world coordinates of the magnet in the world coordinate system;
控制磁体姿态修正模块,用于根据所述朝向角度在所述世界坐标系中的投影,计算所述控制磁体在所述世界坐标系中的磁体姿态信息;A control magnet attitude correction module, configured to calculate the magnet attitude information of the control magnet in the world coordinate system according to the projection of the orientation angle in the world coordinate system;
胶囊内窥镜位置修正模块,用于将所述胶囊局域坐标修正为所述世界坐标系中的胶囊世界坐标;A capsule endoscope position correction module, used to correct the capsule local coordinates to the capsule world coordinates in the world coordinate system;
胶囊内窥镜姿态修正模块,用于根据所述欧拉角确定所述胶囊内窥镜在所述世界坐标系中的投影,计算所述胶囊内窥镜在所述世界坐标系中的胶囊姿态信息;A capsule endoscope posture correction module, configured to determine the projection of the capsule endoscope in the world coordinate system according to the Euler angle, and calculate the capsule posture of the capsule endoscope in the world coordinate system. information;
控制磁体表示模块,用于表示所述控制磁体的位姿,所述控制磁体的位姿包括磁体世界坐标和/或磁体姿态信息;A control magnet representation module, used to represent the pose of the control magnet, where the pose of the control magnet includes magnet world coordinates and/or magnet attitude information;
胶囊内窥镜表示模块,用于表示所述胶囊内窥镜的位姿,所述胶囊内窥镜的位姿包括胶囊世界坐标和/或胶囊姿态信息。A capsule endoscope representation module is used to represent the pose of the capsule endoscope, where the pose of the capsule endoscope includes capsule world coordinates and/or capsule pose information.
在一个实施例中,控制磁体表示模块将所述控制磁体的位姿表示为[Mx,My,Mz,Mh,Mv],其中,[Mx,My,Mz]为磁体世界坐标,[Mh,Mv]为磁体姿态信息In one embodiment, the control magnet representation module represents the pose of the control magnet as [Mx, My, Mz, Mh, Mv], where [Mx, My, Mz] is the world coordinate of the magnet, [Mh, Mv ] is the magnet attitude information
在一个实施例中,胶囊内窥镜表示模块将所述胶囊内窥镜的位姿表示为[Cx,Cy,Cz,Ch,Cv,Cs],其中,[Cx,Cy,Cz]为胶囊世界坐标,[Ch,Cv,Cs]为胶囊姿态信息In one embodiment, the capsule endoscope representation module represents the pose of the capsule endoscope as [Cx, Cy, Cz, Ch, Cv, Cs], where [Cx, Cy, Cz] is the capsule world Coordinates, [Ch, Cv, Cs] are capsule attitude information
在一个实施例中,建模模块根据所述可移动范围坐标,确定所述世界坐标系的原点。In one embodiment, the modeling module determines the origin of the world coordinate system based on the movable range coordinates.
在一个实施例中,建模模块将所述可移动范围坐标的中间点作为所述世界坐标系的原点。In one embodiment, the modeling module uses the middle point of the movable range coordinates as the origin of the world coordinate system.
在一个实施例中,控制磁体位置修正模块计算所述磁体局域坐标相对于所述世界坐标系的原点在各个坐标轴方向的第一组偏移量,并将所述磁体世界坐标的值设置为所述第一组偏移量。 In one embodiment, the magnet position correction module is controlled to calculate a first set of offsets of the magnet's local coordinates relative to the origin of the world coordinate system in each coordinate axis direction, and set the value of the magnet's world coordinate is the first set of offsets.
在一个实施例中,胶囊内窥镜位置修正模块计算所述第二局域坐标系的原点相对于所述世界坐标系的原点的第二组偏移量;并将所述胶囊局域坐标与所述第二组偏移量的差值作为所述胶囊世界坐标的值。In one embodiment, the capsule endoscope position correction module calculates a second set of offsets of the origin of the second local coordinate system relative to the origin of the world coordinate system; and compares the capsule local coordinates with The difference between the second set of offsets is used as the value of the capsule world coordinate.
在一个实施例中,胶囊内窥镜姿态修正模块将所述胶囊内窥镜201和所述控制磁体10在所述世界坐标系的XY平面内的竖直投影重合;In one embodiment, the capsule endoscope attitude correction module coincides with the vertical projections of the capsule endoscope 201 and the control magnet 10 in the XY plane of the world coordinate system;
第二获取模块获取此时的所述胶囊内窥镜201在所述第二局域坐标系中的第一对齐坐标,第一获取模块获取所述控制磁体10在所述世界坐标系中的第二对齐坐标;The second acquisition module acquires the first alignment coordinate of the capsule endoscope 201 in the second local coordinate system at this time, and the first acquisition module acquires the third alignment coordinate of the control magnet 10 in the world coordinate system. Two alignment coordinates;
胶囊内窥镜位置修正模块计算所述第一对齐坐标与所述第二对齐坐标在X轴方向的所述X轴差值、以及在Y轴方向的所述Y轴差值。The capsule endoscope position correction module calculates the X-axis difference in the X-axis direction between the first alignment coordinate and the second alignment coordinate, and the Y-axis difference in the Y-axis direction.
在一个实施例中,磁控胶囊系统1000还包括数据接口,通过数据接口获取所述磁控胶囊系统1000的硬件参数;In one embodiment, the magnetically controlled capsule system 1000 also includes a data interface, through which the hardware parameters of the magnetically controlled capsule system 1000 are obtained;
胶囊内窥镜坐标修正模块根据所述硬件参数确定所述Z轴差值。The capsule endoscope coordinate correction module determines the Z-axis difference according to the hardware parameters.
所述磁控胶囊系统1000还可以包括计算机、笔记本、掌上电脑及云端服务器等计算设备。进一步可包括,但不仅限于,处理模块40、存储模块30。本领域技术人员可以理解,所述示意图仅仅是磁控胶囊系统1000的示例,并不构成对磁控胶囊系统1000终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述磁控胶囊系统1000还可以包括输入输出设备、网络接入设备、总线等。The magnetically controlled capsule system 1000 may also include computing devices such as computers, laptops, PDAs, and cloud servers. It may further include, but is not limited to, a processing module 40 and a storage module 30 . Those skilled in the art can understand that the schematic diagram is only an example of the magnetically controlled capsule system 1000 and does not constitute a limitation on the terminal equipment of the magnetically controlled capsule system 1000. It may include more or fewer components than shown in the figure, or a combination of certain components. Some components, or different components, for example, the magnetically controlled capsule system 1000 may also include input and output devices, network access devices, buses, etc.
需要说明的是,本发明实施例的磁控胶囊系统1000中未披露的细节,请参照本发明实施例的磁控胶囊系统1000的位姿标定表示方法中所披露的细节。It should be noted that for details not disclosed in the magnetically controlled capsule system 1000 according to the embodiment of the present invention, please refer to the details disclosed in the pose calibration and representation method of the magnetically controlled capsule system 1000 according to the embodiment of the present invention.
根据本发明的磁控胶囊系统1000,控制磁体坐标修正模块和胶囊内窥镜坐标修正模块将控制磁体10和胶囊内窥镜201统一到同一世界坐标系中,继而可以直观地表示整个磁控胶囊系统1000的状态,为后续高效、精准地闭环控制胶囊内窥镜201实现消化道检查提供便利,拓展胶囊内窥镜201的控制方法及应用场景,提高医学辅助诊断的准确度和精确度。According to the magnetically controlled capsule system 1000 of the present invention, the control magnet coordinate correction module and the capsule endoscope coordinate correction module unify the control magnet 10 and the capsule endoscope 201 into the same world coordinate system, thereby intuitively representing the entire magnetically controlled capsule. The status of the system 1000 facilitates the subsequent efficient and accurate closed-loop control of the capsule endoscope 201 for gastrointestinal examination, expands the control methods and application scenarios of the capsule endoscope 201, and improves the accuracy and precision of medical auxiliary diagnosis.
如图9所示,是本发明一实施例提供的磁控胶囊系统1000的模块示意图。磁控胶囊系统1000还包括上述的磁控系统100、胶囊定位系统200、控制磁体10和胶囊内窥镜201、处理模块40、存储模块30、胶囊内窥镜201内的各模块、以及存储在所述存储模块30中并可在所述处理模块40上运行的计算机程序,例如上述的位姿标定表示方法程序。所述处理模块40执行所述计算机程序时实现上述各个位姿标定方法实施例中的步骤,例如图1所示的步骤。As shown in Figure 9, it is a schematic module diagram of a magnetically controlled capsule system 1000 provided by an embodiment of the present invention. The magnetic control capsule system 1000 also includes the above-mentioned magnetic control system 100, capsule positioning system 200, control magnet 10 and capsule endoscope 201, processing module 40, storage module 30, each module in the capsule endoscope 201, and the modules stored in the capsule endoscope 201. The computer program in the storage module 30 and that can be run on the processing module 40 is, for example, the above-mentioned pose calibration method program. When the processing module 40 executes the computer program, it implements the steps in each of the above embodiments of the pose calibration method, such as the steps shown in FIG. 1 .
控制磁体10的磁源通过伺服电机及传动机构控制驱动其运动至指定位置,通过磁控系统100的数据接口,获取伺服电机的传动数据,经过固定的比例转换公式,获取控制磁体10的位置、姿态角度状态原始数据。位置数据精确到1mm,角度数据精确到1度。The magnetic source of the control magnet 10 is controlled by the servo motor and transmission mechanism to drive it to a designated position. Through the data interface of the magnetic control system 100, the transmission data of the servo motor is obtained. Through a fixed proportion conversion formula, the position of the control magnet 10 is obtained. Attitude angle status raw data. Position data is accurate to 1mm, and angle data is accurate to 1 degree.
控制磁体10与传动机构固定连接,通过在一些位置的光电开关,如一些特殊垂直、水平角度标定零点,然后通过对驱动控制磁体10运动的伺服电机的驱动量的换算,可以精准 地驱动控制磁体10在世界坐标系中运动到目标位置,无需通过现场测量控制磁体10磁场方向确定其姿态角度。The control magnet 10 is fixedly connected to the transmission mechanism. The zero point is calibrated through photoelectric switches at some positions, such as some special vertical and horizontal angles. Then, by converting the driving amount of the servo motor that drives the movement of the control magnet 10, it can be accurately The ground-driven control magnet 10 moves to the target position in the world coordinate system, and there is no need to measure the magnetic field direction of the control magnet 10 on site to determine its attitude angle.
胶囊内窥镜201可以包括磁传感器50、加速度传感器60、信号输送模块70、磁性件(未图示)和摄像模块80,磁传感器50、加速度传感器60、磁性件如上文所述,可以通过内部三轴磁传感器50、三轴加速度传感器60、IMU传感器和外部多组磁定位设备协同工作,计算出胶囊内窥镜201所在的位置和姿态,通过控制磁体10对磁性件的作用驱动胶囊内窥镜201运动。信号输送模块70将信息传输至外界的处理模块40或服务器中,外界驱动无线胶囊运动到指定位置后,摄像模块80拍摄人体400内的照片通过信号输出模块传输至外界,完成对体内的拍摄。The capsule endoscope 201 may include a magnetic sensor 50, an acceleration sensor 60, a signal transmission module 70, a magnetic component (not shown), and a camera module 80. The magnetic sensor 50, the acceleration sensor 60, and the magnetic component may pass through the interior as described above. The three-axis magnetic sensor 50, the three-axis acceleration sensor 60, the IMU sensor and multiple sets of external magnetic positioning equipment work together to calculate the position and attitude of the capsule endoscope 201, and drive the capsule endoscope by controlling the action of the magnet 10 on the magnetic parts. Mirror 201 Movement. The signal transmission module 70 transmits information to the external processing module 40 or server. After the external world drives the wireless capsule to move to a designated position, the camera module 80 takes photos of the human body 400 and transmits them to the outside world through the signal output module, completing the internal photography.
控制磁体10可以适当拉高以减弱对胶囊的吸力,或者降低以增大对胶囊的吸力,控制胶囊内窥镜201在沉底、水面悬浮、吸顶等不同情境状态中切换。The control magnet 10 can be appropriately raised to weaken the suction force to the capsule, or lowered to increase the suction force to the capsule, to control the capsule endoscope 201 to switch between different situational states such as sinking to the bottom, floating on the water surface, and ceiling.
磁控系统100还可以包括信号传输模块20和通信总线90。信号传输模块20用于将数据发送至处理模块40或服务器,信号输送模块70和信号传输模块20可以通过无线连接的形式传输数据,如蓝牙、wifi、zigbee等,通信总线90用于将控制磁体10、信号传输模块20、处理模块40与存储模块30之间建立连接,通信总线90可包括一通路,在上述的控制磁体10、信号传输模块20、处理模块40与存储模块30之间传送信息。The magnetic control system 100 may also include a signal transmission module 20 and a communication bus 90 . The signal transmission module 20 is used to send data to the processing module 40 or the server. The signal transmission module 70 and the signal transmission module 20 can transmit data through wireless connections, such as Bluetooth, wifi, zigbee, etc., and the communication bus 90 is used to control the magnet. 10. Establish a connection between the signal transmission module 20, the processing module 40 and the storage module 30. The communication bus 90 may include a channel to transmit information between the above-mentioned control magnet 10, the signal transmission module 20, the processing module 40 and the storage module 30. .
进一步的,本发明一实施方式提供一种电子设备,包括存储模块和处理模块,所述存储模块存储有可在所述处理模块上运行的计算机程序,所述处理模块执行所述计算机程序时实现如上所述磁控胶囊系统的位姿标定表示方法中的步骤。Further, an embodiment of the present invention provides an electronic device, including a storage module and a processing module. The storage module stores a computer program that can be run on the processing module. When the processing module executes the computer program, the The steps in the pose calibration method of the magnetically controlled capsule system are as described above.
进一步的,本发明一实施方式提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理模块执行时实现如上所述磁控胶囊系统的位姿标定表示方法中的步骤。Furthermore, one embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processing module, the steps in the pose calibration and representation method of the magnetically controlled capsule system are implemented as described above. .
应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施方式中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。It should be understood that although this specification is described in terms of implementations, not each implementation only contains an independent technical solution. This description of the specification is only for the sake of clarity. Persons skilled in the art should take the specification as a whole and understand each individual solution. The technical solutions in the embodiments can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,它们并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。 The series of detailed descriptions listed above are only specific descriptions of feasible implementations of the present invention. They are not intended to limit the protection scope of the present invention. Any equivalent implementations or implementations that do not deviate from the technical spirit of the present invention are not intended to limit the protection scope of the present invention. All changes should be included in the protection scope of the present invention.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2024555033A JP2025509689A (en) | 2022-03-18 | 2023-03-17 | Magnetically controlled capsule system and method for calibrating and displaying its position and attitude |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210272501.X | 2022-03-18 | ||
| CN202210272501.XA CN116784777A (en) | 2022-03-18 | 2022-03-18 | Magnetic control capsule system and pose calibration representation method thereof |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023174425A1 true WO2023174425A1 (en) | 2023-09-21 |
Family
ID=88022429
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/082284 Ceased WO2023174425A1 (en) | 2022-03-18 | 2023-03-17 | Magnetically controlled capsule system, and pose calibration representation method therefor |
Country Status (3)
| Country | Link |
|---|---|
| JP (1) | JP2025509689A (en) |
| CN (1) | CN116784777A (en) |
| WO (1) | WO2023174425A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119318453A (en) * | 2024-11-18 | 2025-01-17 | 中国科学院电工研究所 | Magnetic control capsule endoscope driving method, device and medium based on three-dimensional space |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100010306A1 (en) * | 2008-07-08 | 2010-01-14 | Olympus Medical Systems Corp. | System for guiding capsule medical device |
| CN101820810A (en) * | 2007-08-09 | 2010-09-01 | 奥林巴斯医疗株式会社 | Medical device guidance system, medical device guidance method, and method for creating lookup table used in medical device guidance system |
| US20110184235A1 (en) * | 2010-01-22 | 2011-07-28 | Novineon Healthcare Technology Partners Gmbh | Capsule type endoscope including magnetic drive |
| US20140187907A1 (en) * | 2010-04-05 | 2014-07-03 | Ankon Technologies Co., Ltd | Computer-implemented system and method for determining the position of a remote object |
| CN107072475A (en) * | 2014-12-08 | 2017-08-18 | 奥林巴斯株式会社 | Capsule-type endoscope system |
| CN109324298A (en) * | 2018-09-06 | 2019-02-12 | 北京理工大学 | A detection method of magnetic source magnetic field signal based on detection array motion planning |
| US20190104994A1 (en) * | 2017-10-09 | 2019-04-11 | Vanderbilt University | Robotic capsule system with magnetic actuation and localization |
| CN110327011A (en) * | 2019-06-26 | 2019-10-15 | 大连理工大学 | A kind of double hemisphere capsule robot attitude detecting methods based on magnetic vector error calibration image |
| CN110809426A (en) * | 2018-06-02 | 2020-02-18 | 上海安翰医疗技术有限公司 | Capsule endoscope control system |
-
2022
- 2022-03-18 CN CN202210272501.XA patent/CN116784777A/en active Pending
-
2023
- 2023-03-17 WO PCT/CN2023/082284 patent/WO2023174425A1/en not_active Ceased
- 2023-03-17 JP JP2024555033A patent/JP2025509689A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101820810A (en) * | 2007-08-09 | 2010-09-01 | 奥林巴斯医疗株式会社 | Medical device guidance system, medical device guidance method, and method for creating lookup table used in medical device guidance system |
| US20100010306A1 (en) * | 2008-07-08 | 2010-01-14 | Olympus Medical Systems Corp. | System for guiding capsule medical device |
| US20110184235A1 (en) * | 2010-01-22 | 2011-07-28 | Novineon Healthcare Technology Partners Gmbh | Capsule type endoscope including magnetic drive |
| US20140187907A1 (en) * | 2010-04-05 | 2014-07-03 | Ankon Technologies Co., Ltd | Computer-implemented system and method for determining the position of a remote object |
| CN107072475A (en) * | 2014-12-08 | 2017-08-18 | 奥林巴斯株式会社 | Capsule-type endoscope system |
| US20190104994A1 (en) * | 2017-10-09 | 2019-04-11 | Vanderbilt University | Robotic capsule system with magnetic actuation and localization |
| CN110809426A (en) * | 2018-06-02 | 2020-02-18 | 上海安翰医疗技术有限公司 | Capsule endoscope control system |
| CN109324298A (en) * | 2018-09-06 | 2019-02-12 | 北京理工大学 | A detection method of magnetic source magnetic field signal based on detection array motion planning |
| CN110327011A (en) * | 2019-06-26 | 2019-10-15 | 大连理工大学 | A kind of double hemisphere capsule robot attitude detecting methods based on magnetic vector error calibration image |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119318453A (en) * | 2024-11-18 | 2025-01-17 | 中国科学院电工研究所 | Magnetic control capsule endoscope driving method, device and medium based on three-dimensional space |
| CN119318453B (en) * | 2024-11-18 | 2025-09-23 | 中国科学院电工研究所 | Three-dimensional space-based magnetically controlled capsule endoscope driving method, device and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2025509689A (en) | 2025-04-11 |
| CN116784777A (en) | 2023-09-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108972559B (en) | Hand-eye calibration method based on infrared stereoscopic vision positioning system and mechanical arm | |
| JP4021413B2 (en) | Measuring device | |
| CN108629831B (en) | 3D Human Body Reconstruction Method and System Based on Parametric Human Template and Inertial Measurement | |
| CN110977985A (en) | Method and device for positioning | |
| Zhang et al. | A universal and flexible theodolite-camera system for making accurate measurements over large volumes | |
| CN115546289A (en) | Robot-based three-dimensional shape measurement method for complex structural part | |
| CN103027657A (en) | Multi-sensor-based endoscope tracking positioning and digital human dynamic synchronous display method | |
| CN112229323B (en) | Six-degree-of-freedom measurement method of checkerboard cooperative target based on monocular vision of mobile phone and application of six-degree-of-freedom measurement method | |
| CN115588054B (en) | Camera calibration method, apparatus, electronic equipment and storage medium without angle constraints | |
| CN109389642A (en) | Vision system is to the scaling method of robot, system and has store function device | |
| CN114926547A (en) | Calibration method of camera and IMU, electronic device and system | |
| CN115638726A (en) | Fixed sweep pendulum type multi-camera vision measurement method | |
| WO2023174425A1 (en) | Magnetically controlled capsule system, and pose calibration representation method therefor | |
| Zhang et al. | Monocular visual-inertial and robotic-arm calibration in a unifying framework | |
| CN113288008B (en) | A method for measuring the full attitude of a magnetic capsule endoscope | |
| CN113282005A (en) | Brushless holder regulation and control method and device, computer equipment and storage medium | |
| CN113298881B (en) | Spatial joint calibration method for monocular camera-IMU-mechanical arm | |
| US20230049448A1 (en) | Zero-point calibration method, device, and apparatus, electronic device, and computer-readable storage medium | |
| CN116907542B (en) | A calibration system and calibration method for orthogonal positions of a three-axis inertial stabilized platform | |
| JP2025510641A (en) | Magnetically controlled capsule system and its quantitative closed-loop control method | |
| Fu et al. | Magnetic localization technology of capsule robot based on magnetic sensor array | |
| CN116079715A (en) | Method and device for hand-eye calibration | |
| CN114332236A (en) | Visual system holder calibration method and device, electronic equipment and storage medium | |
| CN110189359B (en) | Rapid intelligent tracking method and device based on classification learning | |
| CN113459084A (en) | Robot parameter calibration method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23769927 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2024555033 Country of ref document: JP |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 23769927 Country of ref document: EP Kind code of ref document: A1 |