We use an array of nine elliptical Planar Hall Effect (PHE) sensors and machine learning algorithms to map the magnetic signal generated by a magnetic source. Based on the obtained mapping, the location and nature of the magnetic source can be determined. The sensors are positioned at the vertices of a symmetrical and evenly spaced 3 × 3 grid. The main electronic card orchestrates their measurement by supplying the required driving current and amplifying and sampling their output in a synchronized manner. A two-dimensional interpolation of the data collected from the nine sensors fails to yield a satisfactory mapping. To address this, we employed the Levenberg–Marquardt Algorithm (LMA) as a deterministic optimization method to estimate the magnetic source’s position and parameters, as well as machine earning (ML) algorithms, which consist of a Fully Connected Neural Network (FCNN). While LMA provided reasonable results, its reliance on a sparse sensor network and initial guesses for variables limited its accuracy. We show that the mapping is significantly improved if the data are processed with an FCNN that undergoes training and testing. Using simulations, we demonstrate that achieving similar improvement without ML would require increasing the number of sensors to more than 50.
Smartphone magnetometers provide a low-cost and widely available sensing platform for near-surface magnetic surveying and geoscientific mapping. Previous studies have demonstrated their potential under controlled acquisition settings. Dense, preplanned surveys remain the standard for producing high-quality magnetic maps, but smartphones create an opportunity to extend data collection toward more flexible acquisition modes, where observations are collected opportunistically by multiple users and devices along irregular, partially overlapping trajectories. Such crowdsourced acquisition may supplement conventional surveying, support rapid coverage of bounded regions of interest, or exploit measurements collected as a by-product of movement through the area. However, transforming these sparse, heterogeneous, and spatially incomplete observations into interpretable magnetic maps constitutes a computational geoscience challenge, especially when reconstruction must remain effective across geographically distinct magnetic backgrounds.To address this problem, we present GSmartMagDL, a generalized framework for crowdsourced smartphone magnetic map reconstruction. The framework combines probabilistic occupancy-grid fusion of multi-trajectory smartphone measurements with a mutual information-guided deep reconstruction network that emphasizes spatially informative regions under sparse and heterogeneous input. We construct a physics-consistent simulation-based dataset containing diverse localized magnetic anomaly patterns, heterogeneous trajectory--device scans, and fused observation maps under different regional geomagnetic backgrounds. The proposed approach is evaluated against Kriging interpolation and a deep-learning reconstruction baseline, including held-out geographic validation without location-specific retraining. Across complementary metrics measuring pointwise accuracy, structural consistency, and perceptual map quality, GSmartMagDL outperforms the baseline approaches and produces reconstructed magnetic maps that better preserve localized magnetic structure, spatial coherence, and robustness across devices, trajectories, and geographically varying magnetic backgrounds. These results indicate that smartphone magnetic mapping can be extended beyond controlled single-device surveys toward practical crowdsourced acquisition while maintaining map features relevant to magnetic interpretation and near-surface geoscience applications.
Smartphone magnetometers provide a low-cost and widely available sensing platform for near-surface magnetic surveying and geoscientific mapping. Previous studies have demonstrated their potential under controlled acquisition settings. Dense, preplanned surveys remain the standard for producing high-quality magnetic maps, but smartphones create an opportunity to extend data collection toward more flexible acquisition modes, where observations are collected opportunistically by multiple users and devices along irregular, partially overlapping trajectories. Such crowdsourced acquisition may supplement conventional surveying, support rapid coverage of bounded regions of interest, or exploit measurements collected as a by-product of movement through the area. However, transforming these sparse, heterogeneous, and spatially incomplete observations into interpretable magnetic maps constitutes a computational geoscience challenge, especially when reconstruction must remain effective across geographically distinct magnetic backgrounds.To address this problem, we present GSmartMagDL, a generalized framework for crowdsourced smartphone magnetic map reconstruction. The framework combines probabilistic occupancy-grid fusion of multi-trajectory smartphone measurements with a mutual information-guided deep reconstruction network that emphasizes spatially informative regions under sparse and heterogeneous input. We construct a physics-consistent simulation-based dataset containing diverse localized magnetic anomaly patterns, heterogeneous trajectory--device scans, and fused observation maps under different regional geomagnetic backgrounds. The proposed approach is evaluated against Kriging interpolation and a deep-learning reconstruction baseline, including held-out geographic validation without location-specific retraining. Across complementary metrics measuring pointwise accuracy, structural consistency, and perceptual map quality, GSmartMagDL outperforms the baseline approaches and produces reconstructed magnetic maps that better preserve localized magnetic structure, spatial coherence, and robustness across devices, trajectories, and geographically varying magnetic backgrounds. These results indicate that smartphone magnetic mapping can be extended beyond controlled single-device surveys toward practical crowdsourced acquisition while maintaining map features relevant to magnetic interpretation and near-surface geoscience applications.