Abstract
A reliable, real-time simultaneous localization and mapping (SLAM) method is crucial for the navigation of actively controlled capsule endoscopy robots. These robots are an emerging, minimally invasive diagnostic and therapeutic technology for use in the gastrointestinal (GI) tract. In this study, we propose a dense, non-rigidly deformable, and real-time map fusion approach for actively controlled endoscopic capsule robot applications. The method combines magnetic and vision based localization, and makes use of frame-to-model fusion and model-to-model loop closure. The performance of the method is demonstrated using an ex-vivo porcine stomach model. Across four trajectories of varying speed and complexity, and across three cameras, the root mean square localization errors range from 0.42 to 1.92 cm, and the root mean square surface reconstruction errors range from 1.23 to 2.39 cm.
Introduction
Wireless Capsule Endoscopy (WCE) has revolutionized gastrointestinal (GI) diagnostics by providing a painless alternative to traditional tube endoscopes. However, current clinical capsules are passive, relying on natural peristalsis to move through the digestive tract. The next frontier in this field is the development of active capsules that can be remotely steered for targeted biopsies or drug delivery.
To achieve precise control, a robot must possess real-time knowledge of its position and the surrounding environment. This necessitates 3D intraoperative SLAM. However, the GI tract presents significant challenges for standard visual SLAM: it is highly deformable, lacks distinct textures, and is characterized by specular highlights and motion blur. While magnetic tracking systems offer a solution, they lack the dense 3D tissue mapping required for surgical intervention. This study bridges this gap by fusing magnetic localization with a specialized visual SLAM pipeline.
Methodology
The proposed system utilizes a dense, non-rigid RGB-Depth fusion method tailored for a Magnetically Actuated Soft Capsule Endoscope (MASCE). The pipeline integrates several specialized components to handle the unique environment of the stomach.
Visual and Magnetic Pipelines
Because the stomach lining lacks standard trackable features, the visual pipeline applies a multi-scale Hessian matrix filter to enhance blood vessel visibility, creating reliable geometric anchors. Depth maps are extracted from monocular RGB cameras using real-time shape-from-shading. The core mapping engine, based on ElasticFusion, employs a deformation graph to manage the non-rigid nature of the stomach tissue.
Simultaneously, the magnetic pipeline tracks a permanent magnet within the capsule using an external 64-sensor Hall-effect array. This provides 5-DoF tracking by subtracting the magnetic field generated by the actuating electromagnets.
Sensor Fusion and Motion Modeling
The 6-DoF visual pose and 5-DoF magnetic pose are fused using a Bayesian particle filter. This filter incorporates a switching state-space model with latent variables to estimate the real-time reliability of each sensor, allowing the system to automatically prioritize the most accurate data source during sensor failures (e.g., visual occlusions). Furthermore, an LSTM-based Recurrent Neural Network (RNN) is used to predict the capsule's kinematics, effectively handling the highly non-linear and erratic movements typical of a capsule in a deformable environment.
Experimental Setup
The system was evaluated using an ex-vivo open porcine stomach model. The experimental setup included three different endoscopic cameras (AWAIBA Naneye, Misumi-V3506-2ES, and POTENSIC) to test versatility.
Ground truth for 6-DoF pose was provided by an OptiTrack infrared motion capture system, while a 3D Artec Space Spider scanner provided the ground truth for the 3D surface map. The evaluation dataset comprised 15 minutes of video (over 10,000 frames) across four trajectories of varying complexity.
Results and Discussion
The system demonstrated high accuracy and robustness across all tests:
- Tracking Accuracy: The Absolute Trajectory Error (ATE) Root Mean Square Error (RMSE) ranged from 0.42 cm to 1.95 cm.
- Mapping Accuracy: The 3D surface reconstruction RMSE compared to the industrial scanner ranged from 1.23 cm to 2.39 cm.
- Robustness: The switching particle filter successfully maintained tracking during induced sensor blackouts (e.g., a 22-second visual blackout).
- Real-time Performance: The system averaged 58 ms per frame (~15 Hz) on standard desktop hardware, meeting the requirements for real-time clinical application.
Conclusion
This work presents a robust SLAM framework for active capsule endoscopy that effectively handles the challenges of non-rigid environments and sensor intermittent failures. While the ex-vivo results are promising, the primary limitation remains the use of an open stomach model. Future research will focus on in-vivo validation to test the system against the extreme occlusions and active peristalsis of a live GI tract, as well as exploring stereo camera configurations to further improve depth estimation.
Summary updated