SenseMag: Enabling Low-Cost Traffic Monitoring Using Noninvasive Magnetic Sensing

Kafeng Wang, Haoyi Xiong, Jie Zhang, Hongyang Chen, Dejing Dou, Cheng-Zhong Xu

Introduction

Traditional Intelligent Transportation Systems (ITS) primarily rely on camera networks and GPS-based crowdsensing for traffic monitoring. However, these methods face significant hurdles: camera arrays are costly to deploy and maintain while raising privacy concerns, and GPS-based methods require user opt-in, leading to incomplete data. SenseMag introduces a "middle way" by utilizing non-invasive magnetic sensing to identify vehicle speed and type with high precision. By treating vehicles as moving magnets that perturb the Earth's magnetic field, SenseMag provides a privacy-preserving, low-cost alternative for real-time traffic analysis.

System Architecture and Deployment

The SenseMag system employs a master-slave architecture designed for edge deployment. It consists of a centralized processor managing multiple "pre-processors," each connected to a pair of magnetic sensors. These sensors are typically deployed on straight road sections at a fixed distance ($d=1m$) from each other.

Figure 1: Physical deployment of the SenseMag system, showing the sensor pair arrangement and the data acquisition setup.

This dual-sensor configuration is critical for velocity estimation. By calculating the cross-correlation between signals from the two sensors, the system determines the precise time-shift ($\tau$) as a vehicle passes, allowing for accurate speed calculation.

Methodology

SenseMag utilizes a hierarchical recognition model to process raw magnetic data into actionable traffic insights:

  1. Speed and Length Estimation: Following velocity calculation, the system estimates the vehicle's physical length based on the duration of the magnetic disturbance.
  2. Signal Refinement: Raw signals are cleaned using a 50Hz bandstop filter to eliminate AC power interference, followed by semi-automated Butterworth filters to isolate relevant waveforms.
  3. Feature Extraction and Classification: To achieve fine-grained classification, SenseMag extracts nine specific features (five temporal and four spectral). These features are fed into a Support Vector Machine (SVM) with a Radial Basis Function (RBF) kernel, enabling the system to distinguish between seven distinct vehicle categories, including Motorbikes, Sedans, and various truck types.

Vehicle Classification and Signal Analysis

A key innovation of SenseMag is its ability to recognize unique "vibration patterns" in the magnetic field. While raw signals may appear noisy, normalizing them by speed reveals highly discriminative temporal and spectral signatures for different vehicle classes.

Figure 2: Temporal and frequency domain signatures for various vehicle types, illustrating the distinct magnetic profiles used for classification.

As shown in the signal analysis, different vehicles—from Sedans to Super Trucks—exhibit characteristic peaks and frequency distributions. By combining a physical length model with these machine-learning-driven magnetic signatures, the system significantly reduces misclassification between vehicles of similar sizes.

Experimental Results

The system was validated through extensive field deployments in Shenzhen, China, involving 2,153 vehicles. Key performance metrics include:

  • Classification Accuracy: An overall accuracy of 90.3% across seven vehicle types.
  • Length Precision: Vehicle length classification error remained under 5%.
  • Real-time Performance: The end-to-end processing time is approximately 0.1 seconds per vehicle, making it ideal for real-time edge computing.

Conclusion and Future Work

SenseMag demonstrates that low-cost magnetic sensors can provide high-granularity traffic data without compromising privacy. While the current system excels on straight road sections with moderate traffic density, future work will focus on adapting the model for complex maneuvers like lane changes and high-density "stop-and-go" traffic. Integration with Vehicle-to-Everything (V2X) communications and deep learning architectures remains a promising path for further enhancing system robustness.

Summary updated

BibTeX
@article{wang2021sensemag,
  author = {Kafeng Wang and Haoyi Xiong and Jie Zhang and Hongyang Chen and Dejing Dou and Cheng-Zhong Xu},
  title = {{SenseMag: Enabling Low-Cost Traffic Monitoring Using Noninvasive Magnetic Sensing}},
  journal = {IEEE Internet of Things Journal},
  year = {2021},
  doi = {10.1109/jiot.2021.3074907},
}
Figure