# Mag4D-SLAM Dataset: A Repeated-Traversal Multi-Modal 4D Geomagnetic Dataset for Localization and Mapping

Robotics.world

> The Earth's magnetic field is always available, needs no infrastructure, and gives an absolute orientation reference that survives GNSS denial and poor lighting — yet no large-scale outdoor robotics…

**arXiv**: 2607.21986 · accepted · IROS

**Published**: 2026-07-24

**Authors**: Bibhutibhusan Nayak, Hyoseok Ju, Giseop Kim

## In plain words

The Earth's magnetic field is always available, needs no infrastructure, and gives an absolute orientation reference that survives GNSS denial and poor lighting — yet no large-scale outdoor robotics dataset includes a magnetometer as a core sensor alongside LiDAR, camera, and IMU.

## AI summary

## Overview

**Research area:** Robotics — SLAM (simultaneous localization and mapping), multi-sensor datasets, and geomagnetic sensing for localization.

**Technical level:** Intermediate. The paper is a dataset release with baseline experiments; readers will get the most from it with some familiarity with SLAM benchmarks, sensor calibration, and pose ground truth, but the core ideas are described in measurable, concrete terms.

**Scope (1 sentence):** The paper introduces Mag4D-SLAM, a 14-sequence, 18+ km outdoor multi-modal dataset (LiDAR, camera, IMU, tri-axis magnetometer, GNSS, with SE(3) ground truth) collected on a quadruped across repeated day/night and forward/reverse campus traversals, plus baseline experiments on magnetic repeatability, drift-free heading estimation, and place recognition.

## What This Paper Is About

The Earth's magnetic field is always available, needs no infrastructure, and gives an absolute orientation reference that survives GNSS denial and poor lighting — yet no large-scale outdoor robotics dataset includes a magnetometer as a core sensor alongside LiDAR, camera, and IMU. Existing magnetic datasets (e.g., MagPIE, MagWi, UJIIndoorLoc-Mag) are indoor, small-scale, and lack repeated-traversal structure with high-precision 6-DoF ground truth, so the role of magnetic sensing in yaw drift mitigation and loop closure has been hard to study reproducibly. The authors fill this gap with a repeated-traversal, multi-condition outdoor dataset and quantitative baselines for the three properties they claim matter most for magnetic-aware SLAM.

## Key Contributions

1. **First large-scale outdoor geomagnetic SLAM dataset:** 14 sequences totaling over 18 km of synchronized camera, LiDAR, IMU, tri-axis magnetometer, and GNSS data with accurate 6-DoF ground truth, collected on a quadruped robot along structured campus trajectories.
2. **Repeated-traversal, multi-condition design:** paired day and night sessions in both forward and reverse directions along identical paths, with mild elevation changes, enabling analysis of magnetic consistency, heading-dependent signatures, and illumination-invariant localization.
3. **Baseline analysis of geomagnetic cues:** quantitative evaluation of three properties — bounded global heading estimation without accumulated drift, cross-session magnetic repeatability, and location-discriminative place recognition.
4. **Calibration-focused methodology:** an in-situ magnetometer calibration procedure (ellipsoid fitting) plus an *online 2D circle fitting* calibration that requires no dedicated calibration maneuver, and two sequences deliberately left uncalibrated to illustrate hard-iron and soft-iron distortion.

## Main Findings

- **Uncalibrated data shows clear distortion:** the two sequences recorded without calibration (`campus_night_fwd_00`, `circle_night_fwd_rev_00`) show a strong negative bias of approximately −50 μT in M_z, with |M| exceeding 60 μT, and a larger spread in |M| that violates the constant-magnitude geomagnetic constraint.
- **Calibration stabilizes the field estimates:** after calibration, M_x and M_z means remain within ±15 μT, M_y within ±10 μT, and |M| clusters between 35 and 45 μT, matching the expected local field strength. Standard deviations are σ_Mx = 24–30 μT, σ_My = 18–23 μT, σ_Mz = 4–7 μT (lowest, reflecting vertical alignment with the Earth's field), and σ_|M| ≈ 5–10 μT.
- **Magnetic signatures are heading-dependent but spatially repeatable:** forward and reverse traversals of the same loop show sign changes and intensity redistribution in M_x and M_y, with variations spanning approximately ±40 μT, arising from body-frame orientation rather than environmental inconsistency; within a single direction, intensity at a given location stays consistent, and the field varies smoothly with no abrupt spatial discontinuities.
- **Heading estimates are bounded without drift:** on `campus_circle_night_rev_12` (a roughly 1400 s trajectory), online 2D circle fitting tracks ground truth continuously with mean error 6.3° and RMSE 7.7°, and per-segment RMSE stays bounded across all segments of the evaluated sequences.
- **Better calibration beats the standard method:** Direct + 2D Circle fitting achieves RMSE of 5.3°, 6.1°, and 7.7° on sequences 05, 08, and 12, versus 6.5°, 6.3°, and 12.0° for Direct + Hard-iron. The largest gain is on the night sequence (7.7° vs 12.0°).
- **Residual error is attributed to local anomalies:** the remaining roughly 6°–8° error is attributed to local magnetic anomalies from campus structures.
- **Magnetic features are statistically location-discriminative:** in day–night cross-session place recognition between `campus_day_rev_05` and `campus_night_rev_11` (database size 12,245, 3 m success radius), the three-axis feature reaches Recall@10 = 20.9% versus a random baseline of 0.08% — roughly a 250× improvement — with a one-sided binomial test giving p < 10⁻²⁵⁰ for all tested K.
- **M_x alone is highly informative:** M_x alone reaches Recall@50 of 47.8%, compared to 46.5% for the full three-axis feature, suggesting M_x carries the most location-discriminative information among the components.

## Methodology in Plain English

The authors mounted a LiDAR (with built-in IMU), an RGB camera, a tri-axis magnetometer, and a GNSS receiver rigidly on a quadruped robot and drove repeated loops around a university campus — a rectangular road/corridor loop and a circular loop around a central roundabout — plus a short library sequence. They recorded each route during the day and at night, and in forward and reverse directions, so that the same physical path is visited under different light and different heading profiles.

To get accurate ground truth, they registered each LiDAR scan against a pre-built high-definition map of the campus (built with RTK-GPS-constrained mapping-vehicle scans and pose-graph optimization) using ICP, using RKO-LIO as the localizer to keep the trajectory smooth between registrations. Registration accuracy shows a standard deviation below 5 cm, and alignment was checked by overlaying session maps on the prior map in CloudCompare.

For the magnetometer, they modeled raw readings as a distortion matrix applied to the true field plus a hard-iron bias and noise, then inverted this by fitting an ellipsoid to data collected while manually rotating the robot through full yaw, pitch, and roll with all electronics powered on. They also propose a simpler online alternative: because a ground robot sweeps a full 360° of yaw with small roll (|φ| < 5°) and pitch (|θ| < 13°), the M_x–M_y plane is naturally well sampled, so a 2D circle can be fit on the fly and its center subtracted before computing tilt-compensated heading. They then compare heading against ground-truth yaw, and run nearest-neighbor retrieval in raw magnetic feature space to test whether magnetic signatures identify places across day and night sessions.

## Why This Matters

**Impact on research:** The dataset gives the magnetic-SLAM community what vision and LiDAR researchers have long had — a standardized outdoor benchmark with synchronized sensors, repeated traversals, and precise 6-DoF ground truth. It makes comparisons between calibration strategies, magnetic descriptors, and fusion schemes reproducible, and it reframes the magnetometer as a complement to visual and LiDAR sensing rather than a niche indoor fingerprinting tool.

**Real-world applications:**

- **GNSS-denied navigation** in tunnels, urban canyons, indoors, or under jamming, where a drift-free absolute heading reference is valuable.
- **Long-term robot deployment** in warehouses, campuses, and industrial sites where lighting, weather, or seasonal change degrades camera-based localization.
- **Loop closure in visually degenerate environments** such as repetitive corridors or featureless structures, where magnetic fingerprints provide an illumination-independent retrieval cue.
- **Low-cost robot platforms**, since a tri-axis magnetometer is far cheaper than RTK-GPS or high-grade inertial hardware.

**Industry relevance:** Autonomous mobile robots, delivery and inspection platforms, and agricultural or outdoor service robots all need heading that does not drift when GNSS drops out. The finding that calibration quality dominates heading accuracy — and that ordinary driving provides enough excitation to calibrate online, with no dedicated maneuver — is directly actionable for production sensor pipelines.

## Future Directions

- **Long-term and seasonal coverage:** the authors state explicitly that the dataset does not yet cover seasonal variations, weather changes, or large temporal gaps across months, which limits conclusions about truly long-term magnetic stability.
- **Learning-based magnetic descriptors:** the raw-feature place recognition baseline (Recall@10 = 20.9%) is presented explicitly as a starting point to be improved by learned descriptors trained on the benchmark.
- **Integration into full SLAM pipelines:** the paper outlines global heading correction for visual-inertial and LiDAR-inertial odometry and magnetic-aided loop closure, but does not yet demonstrate a complete fused system.
- **Robustness limits under interference:** environments with strong ferromagnetic interference or dense metallic infrastructure may reduce signature reliability — flagged by the authors as warranting further investigation.

## Target Audience

Robotics researchers and graduate students working on SLAM, multi-sensor fusion, and long-term localization; practitioners building GNSS-denied or low-light navigation systems; and engineers interested in magnetometer calibration and heading estimation. It is also useful for benchmark designers, since it documents a concrete ground-truth generation pipeline (HD prior map plus scan-to-map ICP with a LiDAR-inertial localizer) that others can replicate.

## Authors’ abstract

Geomagnetic sensing offers an infrastructure-free, absolute orientation reference that is robust to GNSS denial and visual degradation, yet no large-scale outdoor robotics dataset supports its systematic study in SLAM. Existing magnetic datasets are confined to small-scale indoor environments and lack the synchronized multi-modal sensing, repeated-traversal structure, and high-precision 6-DoF ground truth required for geomagnetic SLAM research. We present Mag4D-SLAM, the…

[The full abstract on arXiv](https://arxiv.org/abs/2607.21986)

[Read the original paper](https://arxiv.org/abs/2607.21986)

## Related papers

- [LT-Mem: Volatility-Aware Spatio-Temporal Memory for Lifelong Scene Understanding](https://robotics.world/paper/lt-mem-volatility-aware-spatio-temporal-memory-for-lifelong-scene-2608.19059) 2026-08-19 · cs.RO · Also by Giseop Kim, Hyoseok Ju
- [NaViRrator: Robot Navigation from Human-Readable Maps through a Learned Visual Route](https://robotics.world/paper/navirrator-robot-navigation-from-human-readable-maps-through-a-learned-2609.21316) 2026-09-18 · cs.RO · Also by Giseop Kim
- [MatcherCompass: A Deployment-Aware Benchmark to Guide Image Matcher Selection in the Wild](https://robotics.world/paper/matchercompass-a-deployment-aware-benchmark-to-guide-image-matcher-2609.25688) 2026-09-22 · cs.RO · Also by Giseop Kim
- [Are Visual Place Recognition Models Recognizing Places or Conditions? Distractor-Augmented Evaluation and Condition Suppression](https://robotics.world/paper/are-visual-place-recognition-models-recognizing-places-or-conditions-2608.06847) 2026-08-07 · cs.RO · Also by Giseop Kim
- [Leveraging Semantic Maps for City-Scale Cross-View Localization](https://robotics.world/paper/leveraging-semantic-maps-for-city-scale-cross-view-localization-2607.25215) 2026-07-28 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/mag4d-slam-dataset-a-repeated-traversal-multi-modal-4d-geomagnetic-2607.21986
