SNR-Weighted Layer-Conditioned Magnetometer Array with Ellipsoid Calibration and Neural Network Initialization for Capsule Endoscopy Localization Under Asymmetric Sensor Visibility
Abstract
1. Introduction
2. Literature Review
2.1. Magnetic Localization Systems: Technical Gaps
2.2. Identified Gaps
3. Materials and Methods
3.1. System Model
3.2. Per-Sensor SNR Gating
3.3. Manifold-Constrained Layer-Conditioned Estimation
3.4. SNR-Weighted Visibility Fusion with Geodesic Orientation Interpolation
3.5. Layer-Wise Ellipsoid Fitting Calibration
3.6. Neural Network-Based Initialization
3.7. Statistical Analysis
3.8. Use of Generative AI Tools
4. Results
4.1. Experimental Setup
4.2. Calibration and Localization Accuracy
| Disp. (cm) | Ratio | ||
|---|---|---|---|
| 0 | 22.01 | 20.31 | 0.50 |
| 1 | 23.79 | 22.86 | 0.56 |
| 2 | 27.93 | 24.35 | 0.68 |
| 3 | 36.32 | 33.82 | 0.91 |
| 4 | 43.25 | 38.33 | 1.13 |
| 5 | 46.58 | 41.92 | 1.26 |
| Strategy | Pos. (mm) | Ori. (°) | Resid. |
|---|---|---|---|
| None | ∗ | ∗ | 6.6 |
| Global | ∗ | ∗ | 0.4 |
| Proposed | 0.2 |
4.3. Robustness Under Displacement-Induced Asymmetric Visibility
4.4. Out-of-Range and Hardware Generalization
4.5. Ablation Study and Monte Carlo Validation
5. Discussion
5.1. Comparison with Prior Work
5.2. SNR Weight Ratio as a Secondary Array Observable
5.3. Limitations
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Iddan, G.; Meron, G.; Glukhovsky, A.; Swain, P. Wireless capsule endoscopy. Nature 2000, 405, 417. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mateen, H.; Bhatt, R.; Baas, L.; Subhan, R.; Murray, N. Localization of wireless capsule endoscope: A systematic review. IEEE Sens. J. 2017, 17, 1197–1206. [Google Scholar] [CrossRef] [Scilit]
- Pennazio, M.; Spada, C.; Eliakim, R.; Keuchel, M.; May, A.; Mulder, C.J.; Rondonotti, E.; Adler, S.N.; Albert, J.; Baltes, P.; et al. Small-bowel capsule endoscopy and device-assisted enteroscopy for diagnosis and treatment of small-bowel disorders: European Society of Gastrointestinal Endoscopy (ESGE) Clinical Guideline. Endoscopy 2015, 47, 352–386. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Cao, Q.; Deng, R.; Pan, Y.; Liu, R.; Chen, Y.; Gong, G.; Zou, J.; Yang, H.; Han, D. Robotic wireless capsule endoscopy: Recent advances and upcoming technologies. Nat. Commun. 2024, 15, 4597. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Liao, Z.; Gao, R.; Xu, C.; Li, Z.S. Indications and detection, completion, and retention rates of small-bowel capsule endoscopy: A systematic review. Gastrointest. Endosc. 2010, 71, 280–286. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Shao, G.; Tang, L.; Tang, L.; Qian, Q.; Wang, M. A novel passive magnetic localization wearable system for wireless capsule endoscopy. IEEE Sens. J. 2019, 19, 3462–3472. [Google Scholar] [CrossRef] [Scilit]
- Song, S.; Hu, C.; Li, B.; Li, J.; Meng, M.Q. Design and optimization strategy of sensor array layout for magnetic localization system. IEEE Sens. J. 2017, 17, 1849–1857. [Google Scholar] [CrossRef] [Scilit]
- Zeising, S.; Chowdhury, A.; Yilmaz, A.; Oehme, L.; Muensterer, O.J.; Ringeis, R.; Schilling, C. A compensation method for relative movement between a sensor array and the abdomen for magnetic localization of capsule endoscopes. IEEE Trans. Instrum. Meas. 2022, 71, 1–9. [Google Scholar] [CrossRef] [Scilit]
- Vedaei, S.S.; Wahid, K.A. MagnetOFuse: A hybrid tracking algorithm for wireless capsule endoscopy within the GI track. IEEE Trans. Instrum. Meas. 2022, 71, 1–11. [Google Scholar] [CrossRef] [Scilit]
- Shao, G.; Guo, Y.X. An optimal design for passive magnetic localization system based on SNR evaluation. IEEE Trans. Instrum. Meas. 2020, 69, 4324–4333. [Google Scholar] [CrossRef] [Scilit]
- Song, S.; Wang, S.; Yuan, S.; Wang, J.; Liu, W.; Meng, M.Q.H. Magnetic tracking of wireless capsule endoscope in mobile setup based on differential signals. IEEE Trans. Instrum. Meas. 2021, 70, 1–8. [Google Scholar] [CrossRef] [Scilit]
- Liu, H.; Su, J.; Song, S. Design of a reconfigurable sensor array for localization of magnetic capsule endoscope. IEEE Trans. Instrum. Meas. 2024, 73, 1–11. [Google Scholar] [CrossRef] [Scilit]
- Hu, C.; Meng, M.Q.; Mandal, M. A cubic 3-axis magnetic sensor array for wirelessly tracking magnet position and orientation. IEEE Sens. J. 2010, 10, 903–913. [Google Scholar] [CrossRef] [Scilit]
- Son, D.; Yim, S.; Sitti, M. A 5-D localization method for a magnetically manipulated untethered robot using a 2-D array of Hall-effect sensors. IEEE ASME Trans. Mechatron. 2016, 21, 708–716. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Boroujeni, P.S.; Alirezaie, J.; Babyn, P. Model-aided real-time localization and parameter identification of a magnetic endoscopic capsule using extended Kalman filter. IEEE Sens. J. 2021, 21, 13667–13675. [Google Scholar] [CrossRef] [Scilit]
- Vedaei, S.S.; Wahid, K.A. A localization method for wireless capsule endoscopy using side wall cameras and IMU sensor. Sci. Rep. 2021, 11, 11204. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, Q.; Li, Y.; Xu, H.; Li, X.; Zhang, X. Magnetic localization method of capsule endoscope based on hybrid model. IEEE Trans. Instrum. Meas. 2023, 72, 1–10. [Google Scholar] [CrossRef] [Scilit]
- Ali, M.A.; Tom, N.; Alsunaydih, F.N.; Yuce, M.R. Recent advancements in localization technologies for wireless capsule endoscopy: A technical review. Sensors 2025, 25, 253. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yaghoobian, O.; Keshmiri, H.; Einlou, M.; Wahid, K.A. Layer-Conditioned Magnetic Localization With Residual-Weighted Fusion for Wireless Capsule Endoscopy Under Asymmetric Sensor Visibility and GI Motion. IEEE Access 2026, 14, 110196–110215. [Google Scholar] [CrossRef] [Scilit]
- Vasconcelos, J.; Elkaim, G.; Silvestre, C.; Oliveira, P.; Cardeira, B. Geometric Approach to Strapdown Magnetometer Calibration in Sensor Frame. IEEE Trans. Aerosp. Electron. Syst. 2011, 47, 1293–1306. [Google Scholar] [CrossRef] [Scilit]
- Yaghoobian, O.; Wahid, K.A. A New Localization Algorithm for a Two-Layer Magnetic Sensor Array in Capsule Endoscopy. In Proceedings of the 28th International Conference on Computer and Information Technology (ICCIT 2025), Cox’s Bazar, Bangladesh, 19–21 December 2025; pp. 2052–2055. [Google Scholar] [CrossRef] [Scilit]
- Abou Ali, E.; Galès, C.; Camus, M.; Chaussade, S.; Coriat, R. Challenges and future of wireless capsule endoscopy. Clin. Endosc. 2016, 49, 26–29. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Han, J.; Nguyen, K.T.; Kim, E.S.; Park, J.O.; Choe, E.; Moon, C.b.; Kim, J. Posture Tracking of Active Capsule Endoscopes Integrated with Magnetic Actuation Using Hall-Effect Sensors. Micromachines 2026, 17, 327. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yaghoobian, O.; Einlou, M.; Wahid, K.A. Two-stage cylindrical magnetic localization with neural network calibration for wearable capsule endoscopy. Sci. Rep. 2026, 16, 20393. [Google Scholar] [CrossRef] [Scilit] [PubMed]







| Stratum | n | Raw Pos. (mm) | Raw Ori. (°) | Final Pos. (mm) | Final Ori. (°) |
|---|---|---|---|---|---|
| Overall | 3600 | ||||
| Central Zone | 2160 | ||||
| Displacement/Boundary | 1440 | ||||
| High Polar Inclination | 520 |
| Component | Time (ms) |
|---|---|
| I2C data acquisition | 22.5 |
| NN-based initialization (5D) | 1.8 |
| Per-sensor SNR gating | 0.1 |
| Manifold-constrained LM (per layer) | 18.4 |
| Calibration & projection | 1.3 |
| Instrumented component sum | 44.1 |
| OS/MATLAB scheduler & serial buffer overhead | ∼36.5 |
| Wall-clock frame period | 80.6 |
| Measured throughput | 12.4 Hz |
| Configuration | Method | Pos. Error ± STD (mm) | Ori. Error ± STD (°) |
|---|---|---|---|
| LIS3MDL (N52, 5 × 5 mm) | One-Layer | ∗ | ∗ |
| Layer-Agnostic | ∗ | ∗ | |
| Proposed | |||
| LIS2MDL (N52, 5 × 5 mm) | One-Layer | ∗ | ∗ |
| Layer-Agnostic | ∗ | ∗ | |
| Proposed | |||
| MMC5603 (N52, 5 × 5 mm) | One-Layer | ∗ | ∗ |
| Layer-Agnostic | ∗ | ∗ | |
| Proposed |
| Cfg | Key Change | Fusion | Pos. (mm) | Ori. (°) |
|---|---|---|---|---|
| C1 | Full-array LM, global calib., rand. init. | Linear avg. | ||
| C2 | +Layer-cond. decomp. | Linear avg. | ∗ | ∗ |
| C3 | +SNR-weighted fusion | SNR-weighted | ∗ | ∗ |
| C4 | +Per-sensor SNR gating | SNR-weighted | ∗ | ∗ |
| C5 | +Manifold-constrained LM (5D) | SNR-weighted | ∗ | ∗ |
| C6 | +Geodesic SLERP fusion | SLERP | ∗ | ∗ |
| C7 | +Ellipsoid calib. + NN init. | SLERP | ∗ | ∗ |
| Initialization | Pos. Err ± STD (mm) | Ori. Err ± STD (°) | Conv. Rate |
|---|---|---|---|
| Random | ∗ | ∗ | 88.5% |
| k-NN () | ∗ | ∗ | 89.1% |
| k-NN () | ∗ | ∗ | 92.4% |
| MLP | 98.2% |
| Work | Sensors | Err. (mm) | Dynamic | Asym. Vis. | Wearable | Regime |
|---|---|---|---|---|---|---|
| Proposed | 8 | ✓ | ✓ | ✓ † | ∼20–47 | |
| Vedaei & Wahid [9] | 9 | 3.5 | ✓ | × | × | N/A |
| Song et al. [7] | 8 | 1.4 | × | × | × | ? |
| Zeising et al. [8] | 16 | ∼3 | ✓ | × | ✓ | N/A |
| Liu et al. [12] | 96 | ∼2.4 | × | × | × | ? |
| Shao et al. [6] | 16 | 10.0 | × | × | ✓ | N/A |
| Han et al. [23] | 40 | 1.1 | ✓ ‡ | × | × | N/A |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Yaghoobian, O.; Wahid, K.A. SNR-Weighted Layer-Conditioned Magnetometer Array with Ellipsoid Calibration and Neural Network Initialization for Capsule Endoscopy Localization Under Asymmetric Sensor Visibility. Sensors 2026, 26, 5536. https://doi.org/10.3390/s26175536
Yaghoobian O, Wahid KA. SNR-Weighted Layer-Conditioned Magnetometer Array with Ellipsoid Calibration and Neural Network Initialization for Capsule Endoscopy Localization Under Asymmetric Sensor Visibility. Sensors. 2026; 26(17):5536. https://doi.org/10.3390/s26175536
Chicago/Turabian StyleYaghoobian, Omid, and Khan A. Wahid. 2026. "SNR-Weighted Layer-Conditioned Magnetometer Array with Ellipsoid Calibration and Neural Network Initialization for Capsule Endoscopy Localization Under Asymmetric Sensor Visibility" Sensors 26, no. 17: 5536. https://doi.org/10.3390/s26175536
APA StyleYaghoobian, O., & Wahid, K. A. (2026). SNR-Weighted Layer-Conditioned Magnetometer Array with Ellipsoid Calibration and Neural Network Initialization for Capsule Endoscopy Localization Under Asymmetric Sensor Visibility. Sensors, 26(17), 5536. https://doi.org/10.3390/s26175536

