1. Introduction
With the ongoing rise of vehicle number in the streets, the road traffic sector requires intelligent systems to mitigate congestions by monitoring and controlling the traffic. Adaptive traffic light systems, for streets with volatile traffic direction, are already a must-have thing in modern city life. The first step for this kind of system is to collect useful road traffic information: vehicle volume, speed, length, type and direction [
1,
2,
3]. There are a number of vehicles sensing technologies from simple inductive loops to complex microwave radars and high-speed cameras [
4,
5,
6,
7,
8,
9,
10,
11,
12], and all of them have unique advantages and drawbacks.
This research aims to explore practical traffic classification possibilities, based on data collected during real-life traffic conditions, using a single magnetic AMR sensor hub. The key parameter for vehicle classification is length, whose estimation is dependent on speed measurement. In previous works, it was noticed that using the cross-correlation method to estimate speed produces a high error due to uneven magnetic signals. In this research, the authors identify the main error source and also propose a correction technique. In addition, a novel approach to estimate vehicle length is presented. A great deal of effort has been paid to collect a unique dataset over the past half year and to test proposed methods.
2. Relate Works
A variety of sensing techniques are used for increasing road traffic safety. One approach is based on equipping vehicles [
13,
14,
15] with new sensors and another by upgrading road infrastructure with traffic monitoring systems, from inductive loops to microwave radars and optical fibers [
4,
5,
6,
7,
8,
9]. Although many methods can be used for intelligent traffic systems, there are few key technologies widely accepted as reliable: surveillance camera systems, inductive loops and magnetic field sensors. Lately, extensive works have been put on developing intelligent traffic monitoring stations based on magnetic sensors [
7,
9]. Well-known and mature inductive loop technology were compared with magnetic field sensors in [
2]. As a main drawback, the authors identified the installation process and maintenance. Although both technologies require temporary closure of the road, magnetic sensors are much smaller and cause significantly less protrusion to the road pavement. Furthermore, magnetic sensors provide signals with a rich amount of feature points and could be used for classification.
The authors of [
16] investigated a vehicle classification approach with signals from a magnetic sensor, placed on roadside 60 cm from passing vehicles. Four types of vehicles were analyzed: sedan, van, truck and bus. The authors proposed to use Mel Frequency Cepstral Coefficients (MFCC) as a feature to characterize magnetic signatures. Furthermore, Dynamic Time Wrapping (DTW) algorithm was employed to select efficient training samples and filter out distorted ones. The proposed classifier algorithm categorized vehicles in five groups, but neither length nor speed estimation results were presented.
Similar approaches are discussed in the papers [
17,
18]. Firstly, a dataset of magnetic signatures was collected and organized into four main groups: sedan, van, bus and trucks. Secondly, after digital signal processing and feature extraction, the classifier was trained based on these signals. As a result, the presented methods did not provide absolute value of vehicle length/height estimation, but rather just assigned vehicles to a particular group. As compared in the paper [
17], their overall accuracy of classification into seven types was 90.3%. For speed estimation, the authors proposed a different method. Since only one magnetic field sensor is employed in the paper [
18], speed was estimated by assigning unknown signature to one of the four vehicle types and applying coefficients of particular model. The authors claim that only 8% of the estimated speed errors exceeds 10 km/h, and 80% of errors are lower than 4 km/h. In comparison, Kafeng Wang [
17] chose to place two laterally displaced sensors along the road and estimated the speed of vehicle through maximizing the correlation between the signals. Consecutively, this information was used for length estimation and assignment into the group. As it is explained in both papers, filtering plays an important role for signal processing. In the first paper, a 5 Hz low pass filter was applied, whereas in the second, Butterworth low (>40 Hz) and high pass filters (<10 Hz) were employed as a bandpass.
In the recent years, wireless sensors have received significant attention in automated systems [
19,
20,
21]. The authors of [
19] proposed a sensing node consisting of two magnetic field sensors on the roadside and one on the road. Magnetic readings of the z-axis from the multiple sensors were used for vehicle type estimation and classification. In [
20], vehicle classification is accomplished only from one node sensor. The authors shared future plans to collect a large dataset and arrange data into four main groups. Once a new signature is detected, a classification algorithm based on Euclidean distance calculation will assign each vehicle to the closest distance sample category.
Networks of sensing systems are necessary for designing traffic jam avoidance, road safety and traffic surveillance systems. A very attractive self-powered unit idea is explored in papers [
22,
23].
3. Problems
During the previous research [
9], it was noted that at certain conditions speed estimation method from the pair of magnetic signatures gave highly faulty results. After the analysis, it was deducted that most of the time, incorrect results appeared once the wheel of the vehicle passed very close or directly above the sensor. This kind of distorted magnetic signatures must be identified and treated in a different manner; therefore, a system of magnetic field sensor with accelerometer is presented in the following section.
3.1. Distorted Signatures Identification by Accelerometer Signal
In
Figure 1, we can see an example of the same vehicle passing a magnetic field sensor by the correct and distorted manner. As it is visible in the
Figure 1a plot, distorted magnetic signatures of both sensors have significant peaks at the leading and trailing edges, while in the
Figure 1b plot we can see how signals should look like for a particular vehicle if it drives at the center of sensor. Furthermore, in the
Figure 1a plot, two peaks of accelerometer signal are clearly visible, which are caused by front and rear tires.
In our application, an STMicroelectronics LIS3DH triple-axis accelerometer is used, and sampling frequency 1 kHz. Since the sensor node is installed at 6 cm depth into the pavement, it is important to guarantee good mechanical interface. The inner sensor housing was filled with epoxy, and during the installation on the road, the sensor was poured over with specialized tar. As a result, accelerometer detects vehicles only if their wheels drive directly above the sensor.
Due to outside temperature changes, the mechanical properties of road surface changes and likewise the noise level for accelerometer signal. Therefore, it is desirable to use an adaptive algorithm for vehicle driving over the sensor detection. For signal processing, first, low pass filtering is applied, and as a criterion, it is proposed to use the ratio of accelerometer signal maximum and mean values (
Figure 1). In
Figure 2, one can see the ratio values for the test group of 1000 randomly selected vehicles, and on the right side the cumulative distribution function for the same criterion. For this test group, 95% of cases ratio is below value acc_ratio = 2, which we use as the threshold value to identify the vehicle which drove directly over the sensor.
Although the accelerometer helps to detect distorted signatures, it is not always a sufficient approach, as shown in
Figure 3. In the
Figure 3a plot, one can see a case that a heavy vehicle produces high level of vibration (acc_ratio = 2.2), which indicates a distorted magnetic signature. Although from the image and magnetic signals, it is clear that it is not a distorted case. An opposite case is shown in the
Figure 3b plot, where the accelerometer signal does not indicate anything, although magnetic signatures are highly distorted.
3.2. Distorted Signature Detection Based on Feature of Magnetic Signals
As it was explained in the section above, the accelerometer is not sufficient for detecting distorted signatures and an additional method should be employed. It was proposed to explore signals from magnetic sensors.
Normally, if the vehicle passes at the center of magnetic sensors, a pair of magnetic signals are identical and just shifted in time (shape and area of curvature should match). In order to detect distorted signatures, one could compare the mismatch area of curvature (
Figure 4). Needless to say, signals must be aligned in time, and cross-correlation is the preferable method. It is done by finding a lag of two signals and then subtracting it from the leading signal. In the example below, one can see two aligned magnetic signatures with mismatch area above 10% of the total figure area of the first signal.
By applying only the accelerometer criterion, up to 41 distorted signature pairs were detected; by using second mismatch criterion, up to 58 signatures (
Figure 5). Twenty-one cases were detected by both methods simultaneously, whereas the rest of cases were detected only by one of the methods. By using two methods, a total of 78 cases were detected, representing 7.8% of distorted signatures in the dataset.
4. Method and Materials
In this paper, we use data collected from a traffic monitoring station, as explained in paper [
9]. Additionally, this station was upgraded with accelerometer sensors, which were installed on the same PCB (printed circuit board) with magnetometers (
Figure 6). In this system, two STMicroelectronics LIS3MDL AMR type magnetic field sensors are used with sampling frequency of 2 kHz. Two sensors were placed at one space point and their scanning was performed alternately every 0.5 ms; thus, the magnetic field data at a given space point are read at a frequency of 2 kHz. Originally, the sensors record incident magnetic field B in three geometrical axes providing the three corresponding components (
,
,
). However, for further calculation, we will be using only magnetic signature term, which refers to the magnitude of magnetic field (1).
where:
—magnitude of magnetic field,
—three orthogonal magnetic field components.
4.1. Speed Estimation Technique for Distorted Signatures
An accurate speed estimation from magnetic signals is the first step to calculate vehicle length and type. In the previous works [
3,
9,
24], it was shown that speed estimation technique based on cross-correlation produces the most accurate results. Therefore, speed is estimated from the pair of magnetic signatures magnitude in this research. Prior to cross-correlation calculation signals are filtered with low pass filter of 100 Hz.
This method works well with similar shape signals. However, it is not the case with distorted magnetic signatures. As depicted below, some distortions could lead to high-speed estimation errors. In these cases, it is more reliable to use a simple threshold-based method to estimate speed. Using this approach, vehicle arrival and departure points in time are detected depending on the amplitude of magnetic signature. As shown in
Figure 7, the cross-correlation method with distorted signatures might produce very high errors. On the contrary, a simple threshold-based method is more robust for it. For the distorted test group, standard deviation of relative speed error is 30% for the cross-correlation and only 12% by using the threshold-based method.
4.2. Vehicle Lenght Estitmation
One of the most important parameters used for vehicle classification is length. By using magnetic sensors data, it could be estimated by different methods. Hereafter, a comparison of two methods is analyzed:
The first method is based on the hypothesis that, at the magnetic sensor position, in the presence of vehicle, magnetic magnitude level rises above a certain threshold. In order to minimize the resulting length error, low pass filtering was applied to data and multiple threshold levels were tested. This method works well in laboratory conditions, but not in real life conditions. As it was noted from real traffic data, magnetic signatures amplitude is not a sufficient criterion for vehicle length estimation.
Therefore, a new method based on signal amplitude and shape was proposed. It employs very first/last significant peak detection of 1st derivative of magnetic signature. After studying a huge variety of vehicle magnetic signatures, a few parameters for this method were adopted to detect feature points.
Peak detection method is based on the following steps (
Figure 8):
Convert the time-based signature to distance-based.
Time array is converted by 2 cm discrete samples, using speed value from cross-correlation method.
Calculate the 1st order derivative of the distance-based signature. The derivative calculation step is 0.8 m.
Locate the first and the last significant peaks, which represents front and rear of the vehicle.
Estimate the gap between the first/last peaks vehicle length.
Peaks detection algorithm works by locating the very first and the last significant peaks, which need to fulfill two conditions: peak must be above amplitude threshold level and must be a local peak in 0.3 m range.
5. Result and Accuracy
The methods were tested with two different datasets. The first dataset consisted of 300 unique pairs of signatures of different type of vehicle, from standard length passenger cars to long trucks (>18 m). The model and make of each vehicle were identified from pictures and reference length was extracted from public database.
The second dataset consisted of 14 unique vehicles with multiple passes. Each vehicle was detected more than 14 times, which sums up to a total of 243 pairs of signatures. It was done by applying license plate recognition to the images and filtering according to it.
It is worth noting that the data was collected from monitoring station under real traffic conditions. Data collection was performed in approximately a half-year period. Since the sensor hub is located in the middle of a one-way lane of a two-lane road without any physical traffic confinement, vehicles could pass over the sensor not necessarily at the center.
5.1. Vehicle Length Estimation Results with the First Dataset
Different parameters were compared to analyze the performance of the methods: mean absolute error (2), number of outlier and range of interquartile. It is desirable to minimize MAE (Mean Absolute Error), but at the same time it is important to avoid a high number of outliers.
where:
—number of vehicles in dataset (300 samples),
—estimated length,
—reference length from public database,
—vehicle number in the dataset.
In order to tune methods for general purpose, values of parameters were estimated in the trial method. First, the threshold-based method was tested with different low pass filter cut-off frequencies (fc) and threshold values (
Figure 9 and
Figure 10). As it is visible in charts below, an initial filtering is necessary to remove noise, but fc lower than 500 Hz does not help to reduce error. Furthermore, it is visible that minimum MAE (1.3 m) is reached at threshold level 500 mT.
The proposed peak detection method was also tested with the dataset and the results are shown in
Figure 11 and
Figure 12. As presented, low pass filtering has a significant influence on the error, but filtering below 50 Hz also filters out signature features, which causes increased error. Since this method is based on peak detection over a threshold, it produces the same result with threshold level in certain range. The minimum MAE is obtained with 50 Hz filtering in threshold range of 100–2500 mT. It is visible that, at threshold level of around 150 mT, the interquartile range and the number of outliers stay the same.
5.2. Vehicle Length Estimation Errors with the Second Dataset
The second dataset contains multiple signatures of the same vehicle. In an ideal case, the same vehicle should produce identical signatures and shall result in the same estimated length. However, in real traffic conditions, the magnetic signature varies in shape. In
Figure 13, the multiple signatures of the same truck with a tank are presented. Signals are rescaled according to speed and aligned by the first significant peak.
In
Table 1, length estimation results of the proposed method are summarized. In this table, vehicles of different length are presented, from short passenger cars to buses and a truck. With all these different types of vehicles, RMSE does not exceed 1 m and mean standard error is 0.42 m. It is also visible that for the vehicle shown in
Figure 13, mean estimated length is 15.6 m with mean error of 0.47 m.
6. Discussion
Vehicle classification systems are continuously improving. A number of papers are published every year, aiming to propose new, better and cost-effective methods. Although authors claim significant classification results, proposed methods are tuned for specific test groups and simple performance metrics are missing, which makes it difficult to compare with other algorithms.
In order to classify vehicles, length is the first parameter to consider. Therefore, we aim to analyze possibilities and limitations of vehicle length estimation based on magnetic field sensors. Since this study is based on data collected within real life traffic conditions, the distorted signal problem was tackled first. Furthermore, as was shown in the Related Works section, current state-of-the-art methods jump over intermediate results (e.g., vehicle length) and analyze only final classifier results. Although, for most of applications vehicle type is more important than its length, here we wanted to analyze accuracy and limitation of length estimation method from magnetic signatures. Furthermore, speed estimation is a necessary part for obtaining the length. Needless to say, speed has to be obtained from same magnetic signals. Therefore, estimated vehicle length error depends on two factors: error of speed and error of length estimation method itself.
A novel vehicle length estimation method was tested with two different datasets. As shown in the Results section, the simple threshold based method minimum MAE score is 1.3 m, while the number of outliers is above 15% and it highly depends on the threshold level. Our proposed method gives a minimum MAE score of 0.6 m and the number of outliers is below 10% using the same dataset. Furthermore, as visible in
Figure 12, the value of interquartile range Q31 and number of outliers are much less dependent on the threshold level. It is an important feature of the proposed method, since it shows that this method is more robust and could be easily adapted to any new dataset. Furthermore, in
Table 1 one can see the length estimation error for multiple signatures of the same vehicle. We can see that STD (Standard Deviation Error) for the same vehicle varies from 0.1 m to 0.6 m, while the RMSE (Root Mean Squared Error) is 0.6 m.
As shown above, distorted magnetic signatures are not an uncommon problem and it requires a clear processing algorithm. We identified that most distortions appear when one of the vehicle wheels passes directly above the AMR sensor. This problem is not well described in the literature, probably due to fact that other authors have filtered out particular distortions or problem did not appear due to a physical barrier in the test set-up [
11,
17]. We proposed two criteria to identify distorted signatures: the ratio of accelerometer signal maximum and mean values, and the relative mismatch area of a pair of magnetic signatures. It is shown in
Figure 2 and
Figure 5 that the proposed methods detect different type of distortions and shall be used together. By applying particular criteria, 7.8% of distorted signatures were detected in the randomly collected test dataset.
Reliable traffic flow parametrization using AMR type sensors is not a trivial task. As was shown, real traffic conditions require additional sensing channels to distinguish distorted signatures and apply different estimation methods. Furthermore, the magnetic signature of a vehicle highly depends on driving trajectory—the same vehicle might produce very different signals. Therefore, an array of sensor nodes might be used in future works.
Author Contributions
Conceptualization: V.M., A.V. and D.M.; Methodology: D.A. and M.Z.; Software: D.N., D.M. and J.B.; Validation: D.A., A.V., M.Z., J.B., D.K., I.C. and M.C.; Visualization: V.M., D.M., J.B., D.K. and M.C.; Investigation: V.M., D.N., D.M., D.A., A.V., I.C. and M.Z.; Resources: M.Z., A.V. and M.C.; Data Curation: D.N., M.Z. and D.M.; Writing—Original Draft Preparation: V.M., D.M., D.A. and M.C.; Writing—Review and Editing: D.N., D.A. and A.V.; Supervision: D.N.; Project Administration: D.N. and D.A.; Funding Acquisition: D.N. and D.A. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Research Council of Lithuania (LMTLT), agreement No S-MIP-21-34, 02/04/2021.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Conflicts of Interest
The authors declare no conflict of interest.
References
- U. D. of Transportation. “Traffic monitoring guide” Federal Highway Administration (FHWA). Tech. Rep. 2016, 1–473. Available online: https://www.fhwa.dot.gov/policyinformation/tmguide/tmg_fhwa_pl_17_003.pdf (accessed on 20 January 2020).
- Bernas, M.; Płaczek, B.; Korski, W.; Loska, P.; Smyła, J.; Szymała, P. A Survey and Comparison of Low-Cost Sensing Technologies for Road Traffic Monitoring. Sensors 2018, 18, 3243. [Google Scholar] [CrossRef] [PubMed][Green Version]
- Markevicius, V.; Navikas, D.; Idźkowski, A.; Valinevicius, A.; Zilys, M.; Janeliauskas, A.; Walendziuk, W.; Andriukaitis, D. An Effective Method of Vehicle Speed Evaluation in Systems Using Anisotropic Magneto-Resistive Sensors. IEEE Intell. Transp. Syst. Mag. 2021, 13, 142–151. [Google Scholar] [CrossRef]
- Won, M. Intelligent Traffic Monitoring Systems for Vehicle Classification: A Survey. IEEE Access 2020, 8, 73340–73358. [Google Scholar] [CrossRef]
- Gheorghiu, R.A.; Iordache, V.; Stan, V.A. Urban traffic detectors—Comparison between inductive loop and magnetic sensors. In Proceedings of the 2021 13th International Conference on Electronics, Computers and Artificial Intelligence (ECAI), Pitesti, Romania, 1–3 July 2021; pp. 1–4. [Google Scholar] [CrossRef]
- Álvarez-Bazo, F.; Sánchez-Cambronero, S.; Vallejo, D.; Glez-Morcillo, C.; Rivas, A.; Gallego, I. A Low-Cost Automatic Vehicle Identification Sensor for Traffic Networks Analysis. Sensors 2020, 20, 5589. [Google Scholar] [CrossRef] [PubMed]
- Sifuentes, E.; Casas, O.; Pallas-Areny, R. Wireless Magnetic Sensor Node for Vehicle Detection With Optical Wake-Up. IEEE Sens. J. 2011, 11, 1669–1676. [Google Scholar] [CrossRef]
- Gholamhosseinian, A.; Seitz, J. Vehicle Classification in Intelligent Transport Systems: An Overview, Methods and Software Perspective. IEEE Open J. Intell. Transp. Syst. 2021, 2, 173–194. [Google Scholar] [CrossRef]
- Markevicius, V.; Navikas, D.; Miklusis, D.; Andriukaitis, D.; Valinevicius, A.; Zilys, M.; Cepenas, M. Analysis of Methods for Long Vehicles Speed Estimation Using Anisotropic Magneto-Resistive (AMR) Sensors and Reference Piezoelectric Sensor. Sensors 2020, 20, 3541. [Google Scholar] [CrossRef] [PubMed]
- Okarma, K. Current Trends and Advances in Image Quality Assessment. Elektronika ir Elektrotechnika 2019, 25, 77–84. [Google Scholar] [CrossRef][Green Version]
- Feng, Y.; Mao, G.; Cheng, B.; Li, C.; Hui, Y.; Xu, Z.; Chen, J. MagMonitor: Vehicle Speed Estimation and Vehicle Classification Through A Magnetic Sensor. IEEE Trans. Intell. Transp. Syst. 2020, 1–12. [Google Scholar] [CrossRef]
- Prauzek, M.; Konecny, J.; Vitasek, M.; Bajgar, V.; Musilek, P. Powering Batteryless Embedded Platforms by Piezoelectric Transducers: A Pilot Study. Elektronika ir Elektrotechnika 2019, 25, 32–35. [Google Scholar] [CrossRef][Green Version]
- Soni, N.; Malekian, R.; Andriukaitis, D.; Navikas, D. Internet of Vehicles based approach for road safety applications using sensor technologies. Wirel. Pers. Commun. 2019, 105, 1257–1284. [Google Scholar] [CrossRef][Green Version]
- Okarma, K.; Fastowicz, J. Adaptation of Full-Reference Image Quality Assessment Methods for Automatic Visual Evaluation of the Surface Quality of 3D Prints. Elektronika ir Elektrotechnika 2019, 25, 57–62. [Google Scholar] [CrossRef]
- Surgailis, T.; Valinevicius, A.; Markevicius, V.; Navikas, D.; Andriukaitis, D. Avoiding forward car collision using stereo vision system. Elektronika ir Elektrotechnika 2012, 18, 37–40. [Google Scholar] [CrossRef][Green Version]
- Chen, X.; Kong, X.; Xu, M.; Sandrasegaran, K.; Zheng, J. Road Vehicle Detection and Classification Using Magnetic Field Measurement. IEEE Access 2019, 7, 52622–52633. [Google Scholar] [CrossRef]
- Wang, K.; Xiong, H.; Zhang, J.; Chen, H.; Dou, D.; Xu, C.-Z. SenseMag: Enabling Low-Cost Traffic Monitoring using Non-invasive Magnetic Sensing. IEEE Internet Things J. 2021, 8, 16666–16679. [Google Scholar] [CrossRef]
- Raut, S.V.; Jangam, S.A.; Rajpathak, B. Improving Vehicular Traffic Efficiency by Infrared Sensors. In Proceedings of the IEEE First International Conference on Smart Technologies for Power, Energy and Control (STPEC), Nagpur, India, 25–26 September 2020; pp. 1–6. [Google Scholar] [CrossRef]
- AbdelHaq, M.F.; Salman, A. Wireless Sensor Network for Traffic Monitoring. In Proceedings of the International Conference on Promising Electronic Technologies (ICPET), Jerusalem, Palestine, 16–17 December 2020; pp. 16–21. [Google Scholar] [CrossRef]
- Guan, Y.; Li, W.; Tan, J.; Zhu, Y.; Ding, X.; Xiong, Y.; Hou, Q. Research on Geomagnetic Waveform Detection and Vehicle Identification Technology. In Proceedings of the 2021 IEEE 5th Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), Chongqing, China, 12–14 March 2021; pp. 2343–2347. [Google Scholar] [CrossRef]
- Konecny, J.; Kromer, P.; Prauzek, M.; Musilek, P. Scan Matching by Cross-Correlation and Differential Evolution. Electronics 2019, 8, 856. [Google Scholar] [CrossRef][Green Version]
- Cepenas, M.; Peng, B.; Andriukaitis, D.; Ravikumar, C.; Markevicius, V.; Dubauskiene, N.; Navikas, D.; Valinevicius, A.; Zilys, M.; Merfeldas, A.; et al. Research of PVDF Energy Harvester Cantilever Parameters for Experimental Model Realization. Electronics 2020, 9, 2030. [Google Scholar] [CrossRef]
- Paterova, T.; Prauzek, M. Estimating Harvestable Solar Energy from Atmospheric Pressure Using Deep Learning. Elektronika Ir Elektrotechnika 2021, 27, 18–25. [Google Scholar] [CrossRef]
- Markevicius, V.; Navikas, D.; Idzkowski, A.; Valinevicius, A.; Zilys, M.; Andriukaitis, D. Vehicle Speed and Length Estimation Using Data from Two Anisotropic Magneto-Resistive (AMR) Sensors. Sensors 2017, 17, 1778. [Google Scholar] [CrossRef] [PubMed][Green Version]
Figure 1.
An example of same vehicle passing traffic monitoring station in two ways: (a) right side wheels are directly passing over the sensor, (b) vehicle driving at the center of sensor hub. In the plots next to the images, temporal data of magnetic signature of two magnetic sensors and accelerometer signal are shown.
Figure 1.
An example of same vehicle passing traffic monitoring station in two ways: (a) right side wheels are directly passing over the sensor, (b) vehicle driving at the center of sensor hub. In the plots next to the images, temporal data of magnetic signature of two magnetic sensors and accelerometer signal are shown.
Figure 2.
(a) Accelerometer maximum/mean value ratio distribution for the current test group of 1000 unique signatures with (b) cumulative distribution function (CDF). As it is visible, 95.7% of all cases has a ratio below 2.
Figure 2.
(a) Accelerometer maximum/mean value ratio distribution for the current test group of 1000 unique signatures with (b) cumulative distribution function (CDF). As it is visible, 95.7% of all cases has a ratio below 2.
Figure 3.
An example of two cases, when accelerometer criterion gives faulty result: (a) plot: acc ratio of 2.2 indicates distorted signature, but bus was driving perfectly at the center of sensor and magnetic signatures are not distorted; (b) plot: vehicle is clearly driving over the sensor therefore magnetic signatures are distorted, but from the accerometer signal it is not visible (acc_ratio = 1.43).
Figure 3.
An example of two cases, when accelerometer criterion gives faulty result: (a) plot: acc ratio of 2.2 indicates distorted signature, but bus was driving perfectly at the center of sensor and magnetic signatures are not distorted; (b) plot: vehicle is clearly driving over the sensor therefore magnetic signatures are distorted, but from the accerometer signal it is not visible (acc_ratio = 1.43).
Figure 4.
Signal similarity estimated by calculating relative mismatch area between two curvatures. Alignment is based on lag value from the cross-correlation method.
Figure 4.
Signal similarity estimated by calculating relative mismatch area between two curvatures. Alignment is based on lag value from the cross-correlation method.
Figure 5.
(a) The mismatch criteria distribution for the whole dataset of 1000 signatures and (b) cumulative distribution function (CDF) for the same data. The average mismatch between two aligned curves is 5%, and 95% of all cases have criterion below 10%.
Figure 5.
(a) The mismatch criteria distribution for the whole dataset of 1000 signatures and (b) cumulative distribution function (CDF) for the same data. The average mismatch between two aligned curves is 5%, and 95% of all cases have criterion below 10%.
Figure 6.
The schematic drawing of the traffic monitoring station. The sensor hub consist of two magnetic field sensors spaced by 30 cm and one accelerometer.
Figure 6.
The schematic drawing of the traffic monitoring station. The sensor hub consist of two magnetic field sensors spaced by 30 cm and one accelerometer.
Figure 7.
Relative speed error of the test group with distorted signatures with two methods. Relative speed error standard deviation for the cross-correlation method is 30%; for the threshold-based method, it is 12%.
Figure 7.
Relative speed error of the test group with distorted signatures with two methods. Relative speed error standard deviation for the cross-correlation method is 30%; for the threshold-based method, it is 12%.
Figure 8.
An example of vehicle magnetic magnitude and its 1st derivative signals. According to the above explained algorithm, the time-based signature is converted to a distance-based signal. Peak detection algorithm is employed to locate the very first and the last significant peaks above the threshold level.
Figure 8.
An example of vehicle magnetic magnitude and its 1st derivative signals. According to the above explained algorithm, the time-based signature is converted to a distance-based signal. Peak detection algorithm is employed to locate the very first and the last significant peaks above the threshold level.
Figure 9.
Threshold-based length estimation method MAE score versus low pass filtering (fc) and threshold value. Dataset of 300 unique vehicle used.
Figure 9.
Threshold-based length estimation method MAE score versus low pass filtering (fc) and threshold value. Dataset of 300 unique vehicle used.
Figure 10.
Threshold-based length estimation method performance versus threshold level. The orange line depicts interquartile range while columns indicate number of outliers. Dataset of 300 unique vehicle used, filtered with 50 Hz LPF.
Figure 10.
Threshold-based length estimation method performance versus threshold level. The orange line depicts interquartile range while columns indicate number of outliers. Dataset of 300 unique vehicle used, filtered with 50 Hz LPF.
Figure 11.
Peak-detection length estimation method MAE score versus low pass filtering (fc) and threshold value. Dataset of 300 unique vehicle used.
Figure 11.
Peak-detection length estimation method MAE score versus low pass filtering (fc) and threshold value. Dataset of 300 unique vehicle used.
Figure 12.
Peak-detection length estimation method performance with dataset of 300 unique vehicle. The orange line depicts error interquartile range, while blue columns indicate the number of outliers.
Figure 12.
Peak-detection length estimation method performance with dataset of 300 unique vehicle. The orange line depicts error interquartile range, while blue columns indicate the number of outliers.
Figure 13.
An example of a group of magnetic signatures produced by the same vehicle. Signatures rescaled according to the speed and aligned by the first peak.
Figure 13.
An example of a group of magnetic signatures produced by the same vehicle. Signatures rescaled according to the speed and aligned by the first peak.
Table 1.
Length estimation method result with the second dataset.
Table 1.
Length estimation method result with the second dataset.
Nr, # | Vehicle | Number of Signatures, # | Real Length, m | Mean Estimated Length, m | RMSE, m | STD, m |
---|
1 | Truck with a tank | 16 | 15.3 | 15.6 | 0.7 | 0.5 |
2 | MB Sprinter1 | 17 | 7.3 | 7.7 | 0.7 | 0.6 |
3 | Isuzu bus | 14 | 9.1 | 9.2 | 0.6 | 0.6 |
4 | Audi A6 | 16 | 4.1 | 5.0 | 1.0 | 0.3 |
5 | Audi A4_1 | 16 | 4.5 | 4.3 | 0.3 | 0.3 |
6 | VW Passat | 18 | 4.6 | 4.8 | 0.6 | 0.6 |
7 | Nissan Primera | 17 | 4.7 | 4.2 | 0.5 | 0.4 |
8 | MB Sprinter2 | 20 | 7.3 | 8.0 | 0.9 | 0.3 |
9 | Audi A4_2 | 20 | 4.5 | 4.2 | 0.2 | 0.1 |
10 | MB GLE | 15 | 4.8 | 4.5 | 0.5 | 0.5 |
11 | VW Sharan | 17 | 4.9 | 4.5 | 0.6 | 0.6 |
12 | VW Touran | 16 | 4.4 | 4.3 | 0.4 | 0.4 |
13 | VW Transporter | 14 | 5.3 | 5.2 | 0.3 | 0.3 |
14 | BMW serie 5 | 27 | 4.8 | 3.8 | 1.0 | 0.5 |
| Total: | 243 | | | 0.6 | 0.42 |
| Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 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 (https://creativecommons.org/licenses/by/4.0/).