Abstract
To address the problem of three-dimensional (3D) localization in underwater environments, this paper proposes a 3D positioning method based on magnetic induction communication (MI in short). Dual transmitters equipped with 3D coils are used to transmit magnetic field signals, while a single receiver with 3D coils is adopted to receive signals. Three-dimensional position calculation is realized by collecting induced voltage from the receiving 3D coils, which enables any device at a known position in space to provide positioning services for other devices. To eliminate abnormal data and suppress environmental noise interference in underwater received signals and further improve positioning performance, an improved density clustering algorithm named the Density-Based Spatial Clustering Method in Magnetic Positioning is proposed to remove erroneous positioning data. In addition, Kalman filtering is introduced to jointly suppress environmental noise interference. Experimental results demonstrate that the average positioning error of the proposed localization method is 0.67 m and maximum positioning error is 0.83 m; therefore, this paper provides a novel technical solution for underwater positioning in non-line-of-sight environments.
1. Introduction
Underwater three-dimensional positioning provides essential support for underwater engineering, but it still faces challenges such as strong noise, signal attenuation, and large positioning errors in complex marine environments [1]. Traditional radio frequency communication technologies are limited in occluded environments such as underwater, underground, indoor, and in vivo scenarios. In contrast, low-frequency magnetic induction communication has become a research hotspot for localization in such scenarios due to its non-line-of-sight penetration capability and anti-interference characteristics [2]. In this paper, we apply magnetic induction communication and localization into underwater scenarios.
There are some related works on magnetic induction positioning technology. Pan et al. used a sensor array to localize a magnetic capsule, which was intended for in vivo positioning [3]. Abrudan et al. investigated the effects of rocks and minerals on underground magnetic induction communication and localization [4], and achieved sub-meter-level positioning using 3D coils through iterative optimization among multiple nodes [5], where accuracy was improved via iteration. Chavda et al. realized underground localization in a 1 m × 1 m × 0.45 m sand pit and enhanced accuracy by increasing the number of transmitters [6]. Wang et al [7] performed underwater localization using 3D coils in a 2 m water tank under relatively ideal conditions. Pasku et al. achieved indoor localization with an error of approximately 0.9 m using low-frequency magnetic fields [8], and later integrated pedestrian inertial navigation with magnetic positioning in a loosely coupled manner to realize mobile localization with 1–2 m error [9]. The former work mainly verified the localization theory, while the latter improved accuracy by fusing magnetic positioning and inertial navigation data, but neither addressed measurement errors. Hehn et al. [10] achieved sub-meter indoor localization with 3D coils and analyzed angular deviations, yet also lacked error processing. In practice, strong magnetic interference, coil alignment errors during testing [11], and underwater path loss [12] all introduce disturbances and cause measurement errors. Erroneous data often appear during data acquisition in real applications. This paper analyzes measured data and extracts two major interference patterns, which are eliminated by targeted algorithms. Inspired by electromagnetic induction law, a 3D localization method based on magnetic induction communication is proposed, in which dual transmitters (3D coils) send magnetic field signals and a single receiver (3D coils) receives signals. Localization is realized by sampling voltages on the 3D receiving coils during magnetic induction communication, helping any device at a known spatial position to provide positioning services for other devices.
In practice, strong magnetic interference, coil alignment errors, and underwater path loss cause measurement errors. This paper analyzes the induced voltage as measured dataand extracts two major interference types: (1) a small number of outliers with large positioning errors caused by measurement faults; (2) a large number of noisy data points with moderate errors caused by environmental noise, sensor precision, and coil misalignment. To address these issues, this paper proposes DBSCAN-MP clustering to eliminate outliers and Kalman filtering to suppress noise. Extensive simulations and experiments are provided to verify the proposed method. Finally, experimental results show an average error of 0.67 m and maximum error of 0.83 m. To the best of our knowledge, this is the first time the Density-Based Spatial Clustering Method has been applied in magnetic positioning.
2. Underwater 3D Localization Model
In this paper, we establish an underwater 3D positioning model. Underwater magnetic induction communication-related works have been discussed in Refs. [13,14,15]. A typical three-dimensional localization scenario is shown in Figure 1.
Figure 1.
3D localization scenario based on magnetic induction communication.
According to the classic Biot–Savart law, the magnetic moment generated by a current-carrying coil is expressed as:
where the direction of the magnetic moment is the normal vector of the coil, is the area of the transmitting coil, is the number of turns, and is the driving current.
In the near magnetic field region, the magnetic flux density at an arbitrary position can be expressed as
where is the direction vector from the current-carrying coil to point P, and is the distance from the current-carrying coil to point P. Here, r is the radius of the transmitting coil, and is the magnetic permeability of the medium.
When the normal vector of the current-carrying coil is aligned with the x-axis, i.e.,
substituting and Equation (3) into Equation (2), the magnetic flux density along the x-axis can be obtained as
Similarly, when the normal vector of the current-carrying coil is aligned with the y-axis and z-axis, the magnetic flux density at an arbitrary position in space is given by
Combining Equations (4)–(6) into a matrix form yields
where
The actual triaxial coil magnetic induction model is shown in Figure 2. The beacon node generates a magnetic field distribution, and the receiver estimates the position based on this distribution. Assume that in the triaxial coil of the beacon node, the normal vector of the axis is aligned with the x-axis, the normal vector of the axis is aligned with the y-axis, and the normal vector of the axis is aligned with the z-axis. The triaxial magnetic induction intensity at the center of the receiving coil is
where is the magnetic induction intensity generated by coil ; is the area of the transmitting coil; is the number of turns of the transmitting coil; is the radius of the transmitting coil; and , , and represent the currents of , , and , respectively.
Figure 2.
Possible results with theoretical voltage value.
The normal vector matrix of three receiving coils is defined as a square matrix:
The magnetic flux generated by the transmitting coil and passing through the receiving coil is
Using the mutual inductance formula , the mutual inductance between the transmitting coil and the receiving coil can be calculated as
Let the transmitting coils , and generate sinusoidal signals. The nine-channel induced voltage intensity matrix (three coils to transmit and three coils to receive) obtained at three receiving coils is
where denotes the voltage amplitude generated by the induced signal from transmitting coil on receiving coil , .
According to the formula , the receiver induced voltage can be calculated from the mutual inductance, which yields
In far-field magnetic induction positioning scenarios, the positioning distance is generally much larger than the transceiver coil’s radius, so the coils can be regarded as magnetic dipoles. Hence, Equation (13) above can be simplified to
After calculating d, substitute Equation (15) into Equation (14) to obtain the coordinates of the receiver, i.e.,
where is the intermediate coefficient of the mutual inductance . The estimated coordinates have eight possible solutions , which are symmetrically distributed in the eight octants of the Cartesian coordinate system.
Similarly, by placing a second triaxial transmitting coil as a beacon at position , another set of eight possible coordinates can be calculated at the receiving coil.
Perform coordinate transformation on the coordinates of , i.e., the actual coordinates are .
The nearest positioning points between two sets of coordinates are obtained via Equation (17):
where denotes the Euclidean distance between the two points. Two coordinate values with the smallest Euclidean distance are recorded, and the midpoint of these two coordinates is taken as the positioning result .
3. DBSCAN-MP Algorithm for Abnormal Data Processing
In actual voltage acquisition, considerable interference and abnormal data exist. Therefore, based on the density clustering method DBSCAN (Density-Based Spatial Clustering of Applications with Noise), this paper proposes an improved density clustering algorithm suitable for magnetic positioning: DBSCAN-MP (Density-Based Spatial Clustering Methods in Magnetic Positioning).
DBSCAN partitions data by neighborhood radius and minimum core point number . For any data point in the dataset, the set of neighboring points within its neighborhood radius is defined as
where p and q are 3 × 3 voltage matrices obtained from theoretical calculations, and is the distance metric.
The ‘dist()’ function in DBSCAN typically computes the Euclidean distance:
where the symbol denotes the sum of the squares of all elements in the matrix.
From Equation (15), it can be observed that when the transmitting currents of each coil are the same, the distance from the positioning point to the origin is inversely proportional to . From Equation (16), it can be seen that the positioning coordinates are correlated with the ratios of , and . Therefore, the DBSCAN-MP method proposed in this paper performs clustering by calculating the overall distance feature and the position distribution feature using ‘cha1()’ and ‘cha2()’, respectively:
where is the overall distance feature of data point p, and is the position distribution feature of data point p.
The DBSCAN-MP method uses the function to find the set of neighboring points within the neighborhood radius for any data point p:
where are the radii corresponding to features and , respectively; and are feature weights. The weight is related to the features of all data points, and is a step weight, whose specific calculation formulas are shown in Equations (23) and (24):
where and are user-defined weights, and N is the size of dataset D.
Meanwhile, the minimum number of points ‘minPts’ is used to control the minimum number of data points contained in a cluster. Let denote the number of data points in the neighborhood set . When , is considered a valid cluster.
The procedure of DBSCAN-MP is given in Algorithm 1.
| Algorithm 1 The proposed DBSCAN-MP Algorithm |
|
To suppress interference caused by sensor precision and coil alignment errors, Kalman filtering is adopted. The process noise covariance and measurement noise covariance are set, so that the filter trusts the state prediction model and suppresses high-volume weak noise. The above parameters are set following existing Kalman filtering methods.
4. Simulation and Experimental Results
4.1. Simulation Setup and Results
These important algorithm parameters in the proposed algorithm used in the simulation and experiment are listed in Table 1. The radius and turns of coils are decided by our magnetic induction communication system, and the two weights are decided by empirical equations. Five localization methods are compared: raw positioning, Kalman filtering, conventional DBSCAN, DBSCAN-MP, and DBSCAN-MP combined with Kalman filtering.
Table 1.
Simulation parameters.
Two beacons are placed at and , and the receiver is at . Using ideal voltage data, the positioning result is , with millimeter-level error caused by the magnetic dipole approximation.
Under 10 dB SNR, the positioning result becomes . Under 5 dB SNR, severe outliers appear, e.g., .
The simulation scenario is shown in Figure 2. The coordinates of the transmitting beacons are and , and the position of the receiver is . Positioning is performed using the theoretical voltage, and two groups of 16 possible positions are obtained. The coordinate point obtained by Equation (17) is . The difference from the actual position is because the coil is regarded as a magnetic dipole in Equation (14), and the positioning error obtained by Equation (14) is at the millimeter level.
After adding Gaussian noise, positioning is carried out at a signal-to-noise ratio of 10 dB, and errors appear in the positioning results. The positioning result in Figure 3 is , showing a sub-meter-level positioning error due to noise.
Figure 3.
Possible results with theoretical voltage mixed with 10 dB SNR noise.
As the noise increases gradually, the positioning error becomes larger at a signal-to-noise ratio of 5 dB. Even completely wrong positioning results may occur, as shown in Figure 4, where the positioning result is . This is because the Gaussian noise may be extremely large at a certain moment, leading to a significant error in the positioning result of Equation (16).
Figure 4.
Possible results with theoretical voltage mixed with 5 dB SNR noise.
Since positioning errors occur in the presence of noise, it is necessary to process the voltage data to improve positioning accuracy. Under different signal-to-noise ratios, 100 groups of positioning data are generated. Positioning results are obtained using five methods: no filtering, Kalman filtering, traditional DBSCAN clustering, DBSCAN-MP clustering filtering, and DBSCAN combined with Kalman filtering. The visualization positioning results are shown in Figure 5, Figure 6 and Figure 7. The dashed lines in these figures denote the error between actual positions and predicted values.
Figure 5.
3D localization results with 20 dB SNR noise.
Figure 6.
3D localization results with 10 dB SNR noise.
Figure 7.
3D localization results with 5 dB SNR noise.
The average positioning error is defined as
where denotes the distance between two positions; is the true position and is the estimated position, and contains three-dimensional coordinates. Simulation results over 100 runs are summarized in Table 2 and Table 3. At a high SNR of 20 dB, none of the clustering algorithms improve the positioning performance because the data points are close and indistinguishable. Kalman filtering slightly improves the positioning accuracy. At an SNR of 10 dB, traditional DBSCAN performs poorly, while the other methods achieve obvious improvement. At a low SNR of 5 dB, DBSCAN-MP and DBSCAN-MP+Kalman filtering achieve ideal performance, whereas the other methods are less effective. The above simulations verify that the proposed algorithm can effectively improve positioning performance under poor signal conditions when measurement errors are neglected. Figure 8 shows the average positioning error of different algorithms.
Table 2.
Simulation positioning results (meters).
Table 3.
Average positioning errors in simulation (meter).
Figure 8.
Average positioning error with different localization algorithms.
4.2. Indoor and Pool Experiments
The test site is located in a teaching building, as shown in Figure 9, two beacon devices and are placed at and . The receiver R communicates with and in an area. Communication data are encoded by Manchester code, ensuring equal high- and low-level durations on the coils. Positioning is performed by collecting voltage data on the receiver, with 100 rounds recorded at each point.
Figure 9.
Indoor test scene.
Four processing schemes are compared: raw data, Kalman filtering, DBSCAN-MP clustering, and DBSCAN-MP plus Kalman filtering. The positioning results of 100 rounds are listed in Table 4.
Table 4.
Experimental positioning results (unit: meters).
The average positioning error is derived as
where is the true position and is the estimated position. The average errors are listed in Table 5 and Figure 10.
Table 5.
Average positioning errors (unit: meters).
Figure 10.
Each site’s positioning results with different localization algorithms.
It can be observed that raw data yield large errors due to outliers. Kalman filtering alone reduces errors to the meter level. After DBSCAN-MP clustering, errors decrease significantly. Residual errors are caused by sensor precision, magnetic interference, coil alignment bias, and underwater path loss. With DBSCAN-MP plus Kalman filtering, the overall average error reaches 0.67 m and maximum error 0.83 m, achieving sub-meter accuracy.
The positioning errors of all positioning points (including 11 sites) in Figure 11 are averaged to obtain the mean errors of the positioning results for different algorithms. The mean error without any processing is extremely large, as the outliers significantly degrade the positioning accuracy. Direct application of the Kalman filter yields meter-level positioning error. After clustering with the proposed DBSCAN-MP algorithm, the mean error is substantially reduced. When combined with the Kalman filter, the DBSCAN-MP+Kalman filter method achieves sub-meter-level accuracy, with an average positioning error of 0.67 m and a maximum positioning error of 0.83 m. The average positioning error is defined as the mean positioning error calculated from multiple tested positioning points, and the maximum positioning error is defined as the maximum positioning error of all measured positioning points.
Figure 11.
Each site’s positioning error with different localization algorithms.
Figure 12 shows the average positioning error of different algorithms. It is obvious that the position errors derived from our algorithm are lower than those of these existing algorithms.
Figure 12.
Average positioning error with different localization algorithms.
Table 6 compares the proposed method with state-of-the-art magnetic positioning systems. The average error is moderate, limited by ADC precision. However, the maximum error of 0.83 m is competitive, and the proposed method provides stable performance across multiple test points.
Table 6.
Performance comparison of magnetic positioning methods.
Moreover, the positioning test is conducted in an underwater environment, as shown in Figure 13. The positioning results achieve sub-meter-level accuracy, which meets the expected performance requirements.
Figure 13.
Underwater positioning test scenario.
5. Conclusions
This paper presents an underwater 3D localization method using dual 3D magnetic beacons and a DBSCAN-MP + Kalman filtering framework, where an improved density clustering algorithm, DBSCAN-MP, is proposed to remove erroneous positioning data. Simulation and experimental results demonstrate that the average positioning error of the proposed localization method is 0.67 m and the maximum positioning error is 0.83 m. The proposed method achieves stable sub-meter accuracy. Our future works will improve hardware precision and verify dynamic localization.
Author Contributions
Conceptualization, W.C. and N.Z.; methodology, N.Z.; validation, M.Z.; investigation, M.Z., N.A. and Z.Y.; resources, N.A.; writing—original draft preparation, W.C. and N.Z.; writing—review and editing, W.C.; visualization, M.Z.; supervision, M.Z.; project administration, M.Z.; funding acquisition, W.C, Z.Y. All authors have read and agreed to the published version of the manuscript.
Funding
This research has been partially supported by the Natural Science Foundation of Zhejiang Province (LMS26F010019), National Natural Science Foundation of China (No. 62271179), and Scientific research foundation of Zhejiang University of Water Resources and Electric Power (JBGS2025008).
Data Availability Statement
The data presented in this study are available on request from the corresponding author.
Conflicts of Interest
Author Zhou Yu was employed by Hangzhou Aohai Ocean Engineering Technology Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
References
- Pan, D.; Lin, S.; Jin, Y.; Wang, J.; Jin, C.; Wang, Y.; Wang, L.; Li, L. Avoidance method of magnetic target positioning-inaccuracy-area. IEEE Trans. Instrum. Meas. 2023, 73, 6003409. [Google Scholar] [CrossRef] [Scilit]
- Muzzammil, M.; Al-Kuwari, S.; Ahmed, N.; Qaraqe, M. Full-Duplex Magnetic Induction Communication: Opportunities and Challenges. IEEE Wirel. Commun. 2023, 31, 293–298. [Google Scholar] [CrossRef] [Scilit]
- Abrudan, T.E.; Kypris, O.; Trigoni, N.; Markham, A. Impact of rocks and minerals on underground magneto-inductive communication and localization. IEEE Access 2016, 4, 3999–4010. [Google Scholar] [CrossRef] [Scilit]
- Abrudan, T.E.; Xiao, Z.; Markham, A.; Trigoni, N. Underground incrementally deployed magneto-inductive 3-D positioning network. IEEE Trans. Geosci. Remote Sens. 2016, 54, 4376–4391. [Google Scholar]
- Chavda, M.; Zeeshan, M.; O’Sullivan, C.; Holmes, A.S.; Malik, S. Magnetic-induction-based positioning system using dual multiplexing technique. IEEE Sens. Lett. 2023, 7, 5502404. [Google Scholar]
- Wang, C. Research on Radiation-Resistant Underwater Robot Positioning System Based on 3D Electromagnetic Coils. Master’s. Thesis, University of Electronic Science and Technology of China, Chengdu, China, 2023. [Google Scholar]
- Huang, H.; Zheng, Y.R. Node localization in 3-D by magnetic-induction communications in wireless sensor networks. In OCEANS 2017-Anchorage; IEEE: Piscataway, NJ, USA, 2017; pp. 1–6. [Google Scholar]
- Pasku, V.; De Angelis, A.; Moschitta, A.; Carbone, P.; Nilsson, J.O.; Dwivedi, S.; Händel, P. A magnetic ranging-aided dead-reckoning positioning system for pedestrian applications. IEEE Trans. Instrum. Meas. 2017, 66, 953–963. [Google Scholar] [CrossRef] [Scilit]
- Hehn, M.; Sippel, E.; Carlowitz, C.; Vossiek, M. High-accuracy localization and calibration for 5-DoF indoor magnetic positioning systems. IEEE Trans. Instrum. Meas. 2018, 68, 4135–4145. [Google Scholar]
- Blakely, R.J. Potential Theory in Gravity and Magnetic Applications; Cambridge University Press: Cambridge, UK, 2001. [Google Scholar]
- Domingo, M.C. Magnetic induction for underwater wireless communication networks. IEEE Trans. Antennas Propag. 2012, 60, 2929–2939. [Google Scholar] [CrossRef] [Scilit]
- Li, Q.; Li, X.; Wang, C.; Wang, Z.; Wen, F.; Zhao, Z. An inertial magneto-inductive positioning system based on GWO-PF algorithm. IEEE Trans. Instrum. Meas. 2022, 71, 9509510. [Google Scholar]
- Yeh, S.C.; Hsu, W.H.; Lin, W.Y.; Wu, Y.F. Study on an indoor positioning system using Earth’s magnetic field. IEEE Trans. Instrum. Meas. 2019, 69, 865–872. [Google Scholar] [CrossRef] [Scilit]
- Wang, Z.; Yang, Z.; Wang, Z. An adaptive indoor positioning method using multisource information fusion combing Wi-Fi/MM/PDR. IEEE Sens. J. 2022, 22, 6010–6018. [Google Scholar] [CrossRef] [Scilit]
- Li, K.; Gong, Q.; Ren, Y.; Li, Y.; Han, Y.; Pang, C.; Kong, H. Magnetic field positioning technology for indoor sports objects. IEEE Sens. J. 2021, 22, 219–228. [Google Scholar]
- Muzzammil, M.; Ahmed, N.; Qiao, G.; Ullah, I.; Wan, L. Fundamentals and Advancements of Magnetic-Field Communication for Underwater Wireless Sensor Networks. IEEE Trans. Antennas Propag. 2020, 68, 7555–7570. [Google Scholar] [CrossRef] [Scilit]
- Qiao, G.; Zhao, C.; Zhou, F.; Ahmed, N. Distributed Localization Based on Signal Propagation Loss for Underwater Sensor Networks. IEEE Access 2019, 7, 112985–112995. [Google Scholar] [CrossRef] [Scilit]
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.












