Next Article in Journal
Sensor Fault-Tolerant Control Design for Magnetic Brake System
Previous Article in Journal
Reviewing Magnetic Particle Preparation: Exploring the Viability in Biosensing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Virtual Instrument for Road Vehicle Classification Based on Piezoelectric Transducers

by
Bernardino González
1,*,
Francisco J. Jiménez
2,3 and
José De Frutos
2,3
1
Escuela Técnica Superior de Sistemas en Ingeniería de Telecomunicación (ETSIST), Universidad Politécnica de Madrid, Carretera de Valencia, km 7, 28031 Madrid, Spain
2
Departamento de Electrónica—Física, Ingeniería Eléctrica y Física Aplicada, Universidad Politécnica de Madrid, Carretera de Valencia, km 7, 28031 Madrid, Spain
3
Cemdatic-Poemma R&D Group, Avenida. Complutense, 30, 28040 Madrid, Spain
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(16), 4597; https://doi.org/10.3390/s20164597
Submission received: 9 July 2020 / Revised: 7 August 2020 / Accepted: 12 August 2020 / Published: 16 August 2020
(This article belongs to the Section Electronic Sensors)

Abstract

:
This paper describes a virtual instrument capable of the automatic and quasi-instantaneous classification of a vehicle according to category when it is driving along the road. The vehicle’s classification is based on accurate measurements of both the vehicle’s speed and its wheelbase. Our research is focused on achieving accurate speed and wheelbase measurements and then determining the category of the vehicle through the developed software. The vehicle categorization is based on the wheelbase measurements and the number of axles and metal masses of the vehicle. The system has a complementary magnetic sensor, which helps in classifying the vehicle when the wheelbase measurement could be representative of different categories, and a camera to confirm the results of the experiment. The proposed measurement system presents a novel method for classifying vehicles according to type using piezoelectric transducers (piezo sensors). In addition, no system references have been found that encompass the functionalities of the presented system based on the information of only two piezoelectric transducers. The system has important advantages over current alternatives (systems based on inductive loops, cameras, fiber optic sensors or lasers), the installation is simple and non-invasive and with a success rate of the classification greater than 90%. The system consists of a signal acquisition point on the pavement, signal conditioning hardware and a data acquisition (DAQ) module, which links the hardware and the virtual instrument developed in LabVIEW®. Finally, the system has been tested on the road with real traffic, and the experimental results are presented and discussed in this paper.

1. Introduction

In recent decades there has been a considerable increase in intelligent electronic systems applied to vehicles and infrastructure. The evolution of Intelligent Transportation Systems (ITS) has introduced a wide range of systems and software applications [1] with the aim of improving safety and efficiency in road transport. These systems obtain information from the different elements of the roads and process it and are used to improve driver safety, traffic and travel comfort.
Among others, ITSs are present in the development of:
  • Systems to increase driver safety, such as Advanced Driver Assistance Systems (ADAS) [2,3,4].
  • Traffic information systems, variable signage panels, Vehicle-to-Infrastructure (V2I) communication or free-flow tolls.
  • Systems to improve traffic efficiency, vehicle classification and counting systems [5,6,7,8,9]. Automatic vehicle classification systems are important for public administrations and private companies that demand systems that carry out a classification of vehicles for dynamic charging for infrastructure use to promote sustainable mobility.
In so-called “smart cities” and “smart roads” [10], it is currently of great interest to know the quantities and categories of vehicles that are circulating in “real time”. For this reason, within the scientific technology of electronic instrumentation and measurement and control systems, there are different lines of work [1,2,3,4,5,6] focused on meeting this demand.
This line of research pursues synergy between the data provided by the installed instrumentation equipment and the existing infrastructure to achieve more sustainable and environmentally friendly mobility. The ITSs in large cities obtain information from the vehicles that circulate in them, and this is where virtual instrumentation plays an essential role.
Although many types of sensors are used to meet this technological need, the most widely used on the market today are magnetic (inductive loops or inductive sensors) or based on the digital processing of images captured by cameras or fiber optic sensors. Cameras, magnetics and inductive systems are the most used in the city of Madrid, where the virtual instrument described and tested in this paper was developed.
In the case of inductive sensors, the main problems are, firstly, the uncertainty in the results of the classification. These devices do not allow the classification of multi-axle vehicles by themselves and require other elements to count them, such as photocells, fiber optic sensors, laser sensors or axle-counting stands. The inductive sensors are based on the variation of the mutual inductance (L) during the passage of the vehicle [9]. The mutual inductance L can vary depending on whether the vehicle is loaded with additional metal mass. The second problem is that the installation of sensors is usually intrusive, i.e., when the sensors are placed under the pavement so that the vehicles pass over them. This makes the cost of installation high.
Classification systems based on image processing have some basic problems: The first is the need to place the camera on an elevated support, such as a pole or a gantry. The second problem is the large volume of data to be processed, which makes the detection and classification slow. Another problem is that the location of the camera directly influences the calculation parameters in the detection algorithm [11], and this makes the settings required in each installation variable. In short, the installation of this type of system and the processing of information are complex.
Fiber optic-based systems [12] analyze the vibration produced by the vehicle and require complex signal processing and analysis algorithms. The success rate is less than 80%.
Consequently, the motivation of the authors is to create an alternative system that can minimize the problems described.
The objectives established when designing and building the virtual instrument described in this paper can be summarized as follows:
  • Sensors should be easy to install, preferably with non-invasive installation.
  • When sensors are to be installed under the pavement, it should be possible to do so with little impact on the road (in terms of road works or service interruption).
  • Data processing should be fast, with low computational costs.
  • It should be possible to extend the functionalities to the system without the need to increase the number or type of sensors.
  • Measurements should be sufficiently accurate to reduce the probability of error in the vehicle category classification.
  • Signal conditioning and data acquisition hardware should have low costs and low power consumption.
  • The system must be able to catalog multi-axle vehicles.
  • The system must store the collected data for later use in a back-office process.
The description of the designed and built system has been organized as follows:
  • System blocks: The system blocks are described, and their nature, hardware or software is specified. The virtual instrument and its blocks are defined. The installation of the measuring system designed for the road is described.
  • System hardware: All hardware elements of the measurement system are described: transducers, signal conditioners, data acquisition (DAQ) systems (DAQ module) and camera.
  • System software: The software architecture (pattern design) of the developed application is described. The application developed and the calculation methodology used to achieve the results are described.
  • Experimental results: The results obtained are shown and the results are discussed.
  • Error estimation: An analysis of the sources of error is carried out and the estimate of the maximum error is calculated.
  • Conclusions: The final conclusions of the designed system are shown after being tested with real traffic.

2. Built Measurement System Blocks

The system was conceived as a virtual instrument consisting of a hardware part and a software part running on a computerized system (PC), so that changes in the software can make the virtual instrument expandable in its functionalities and maintainable.
A virtual instrument consists of an industry-standard computer or workstation equipped with powerful application software, cost-effective hardware such as plug-in boards, and driver software, which together perform the functions of a measurement instrument [13].
Virtual instruments represent a fundamental shift from traditional hardware-centered instrumentation systems to software-centered systems that exploit the computing power, productivity, display and connectivity capabilities of popular desktop computers and workstations.
In the virtual instrumentation, the “software is the instrument” [14]. The software, using the appropriated hardware, defines the functions of the instrument.
In the Figure 1, the virtual instrument block is formed by the developed software and a National Instruments general purpose multi-function DAQ module. Obviously, signal conditioners for the transducers are also necessary. The system block diagram is shown in Figure 1.
Figure 2 shows an example of installation. Piezo sensors can be installed above the pavement (non-intrusive) or below the pavement (intrusive).

3. System Hardware

The following describes the transducers used, their signal conditioners, the data acquisition (DAQ) board used and the camera used to capture the images.

3.1. Transducers

3.1.1. Piezo Sensors

The piezoelectric transducers used are piezoelectric cables. These piezoelectric devices are commonly used in traffic management and have, in recent years, also been used in the development of road traffic infrastructure [15,16,17,18,19,20,21]. This type of transducer is usually used in electronic instrumentation dedicated to traffic management for vehicle counting and weighing (only if the vehicle is traveling at low speed). However, they are used in a new way in this design to measure the speed of the vehicle with high accuracy. The procedure for obtaining the speed and wheelbase measurements is described in Section 5.
Piezoelectric cables [22,23] are coaxial with 20 AWG stranding in which the cable insulation is a PVDF film. The most important characteristics are shown in Figure 3 and Table 1. Piezoelectric performance specifications.
Piezo sensors, due to the direct piezoelectric effect of the PVDF piezo film tape, respond with an analog voltage. The peak values when the vehicle passes over them depend on whether the cable is on or under the pavement. The margins are 20~40 V when the installation is on the pavement and 2~4 V when the installation is under the pavement, at a 2 cm distance. It is necessary to attenuate and adapt this value so that the signal is within the input range of the DAQ module. Figure 4 shows a typical response signal from the piezo sensors when they are driven over by the vehicle.

3.1.2. Magnetic Sensor

A magnetoresistive transducer [24,25], the HMC2003 transducer of the HMC series of Honeywell, is used. It is able to determine the variations in the magnetic field of the Earth induced by the approach and presence of metallic masses in the three axles—X, Y, Z. Figure 5 shows a block diagram of the magnetic sensor, and some of the specifications are shown in Table 2.
These three axles use permalloy magnetoresistive sensors. These sensors produce an imbalance in the Wheatstone bridge (see Figure 6. HMC2003 set–reset.) when the magnetic dipoles are oriented to the passage of the metal mass. Two control actions are required to achieve the maximum sensitivity and input range from these sensors. The first is the establishment of a set–reset command (introducing SR+ and SR− pulses) [24,25] to disorientate the magnetic dipoles and thus “erase” the memory of the last measurement (the dipoles tend to remain oriented). The second is the correction of the offset voltage to approximately 2.5 V when there is no metal mass to unbalance the Wheatstone bridge. The control actions are dictated by the software through the DAQ module. Digital set–reset control signals are applied to a driver made up of MOSFET transistors that introduce two SR+ and SR− pulses. An analog voltage is generated, which is subtracted from the output voltage in the absence of metal mass. Figure 7 shows the signals of a vehicle of three axles: magnetic sensor, piezo sensor 1 and piezo sensor 2 after its conditioning. The shape and area under the magnetic sensor graph provide additional information for distinguishing between doubtful cases in the category classification, although this procedure is still being developed.

3.1.3. DAQ Module

A National Instruments general purpose multi-function DAQ module is used [26], NI USB 6211 [27]. Some of its features are shown in Table 3 and Figure 8.

3.1.4. Camera

The system has a camera that takes an image of the vehicle. This image is associated with the measurements taken. The initial objective is to verify that the classification method implemented in the IV works correctly. A Logitech C920 HD 1080P USB camera connected to the PC is used.
Figure 9 shows images of the built equipment.
The sensor signal conditioners (for piezo sensors and magnetic sensor) were designed by the authors. For each piezo sensor, an active attenuator was designed and for the magnetic sensor, an amplifier, MOSFET drivers to set–reset the signal and a circuit to adjust the zero level in the magnetic sensor response were designed.

4. Software System

The system’s software was written with LabVIEW® (National Instruments, Austin (Texas) USA), a graphical programming language that is the most widely used language in virtual instrumentation. The LabVIEW® program consists of two main windows, the front panel (user interface) and the block diagram (program code). The programming is modular, and each module is built with one or more files called “SubVIs” [28].
The virtual instrument for measurement and control was designed with a state machine architecture. This design pattern is indicated for the design of complex measurement equipment that is required to have different functionalities. A state is a situation in which the machine can be found. Usually, in a state, the actions or operations associated with it are carried out. There is also a decision code, which determines the next state to which the machine must evolve. A state machine is described graphically with a state diagram in [29]. The LabVIEW® programming language allows for the implementation of a state machine with a simple design pattern, which allows for the development of complex programs, making the virtual instrument scalable, maintainable and readable.
Figure 10 shows the skeleton of a state machine where the strategy described in the previous paragraph can be clearly seen.
Figure 11 shows the state diagram of the built virtual instrument.
The states of the virtual instrument are described below and shown in Table 4. Virtual instrument states.

4.1. Speed Vehicle Calculation

The designed virtual instrument has two keys that ensure a reliable measurement with a high degree of accuracy:
-
Acquisition of the signal from the piezoelectric sensors at an acceptable level.
-
Highly accurate calculation of vehicle speed.
Speed, v, is calculated using Equation (1):
v = d D e l a y 2 , 1 × 3.6
where
  • v is the speed, expressed in km/h;
  • d is the distance between the piezoelectric sensors, expressed in meters (m);
  • Delay2,1 s the time from the vehicle passing over piezo sensor 1 to the vehicle passing over piezo sensor 2, expressed in seconds (s).
Figure 12 shows the signals captured by piezoelectric sensors 1 and 2, respectively. As can be seen, the signals are similar but vary in shape and amplitude. These factors make the uncertainty in the estimation of the Delay2,1 quite high (in the order of ms). Therefore, the need arises to perform the Delay2,1 estimation by a method that provides a lower error [30].
The estimation method used is cross correlation, which considerably reduces the error rates in the estimation of the delay between signals [31,32]. This has been implemented in SubVI Cross correlation.vi.
Figure 13 shows the code extract from Cross correlation.vi. This SubVI has input data (signals) acquired from piezoelectric sensors 1 and 2 and the distance between them. The SubVI provides a graph of the cross correlation and the estimated speed (in km/h).
Although the signals from the piezo sensors were conditioned beforehand, the sensitivity of each piezo cable does not match; in the same way, the acquired signal levels also do not match. The solution implemented to make the acquired signals from the sensors valid is the standardization of these signals.
The next step is to determine the cross correlation of both signals, which is calculated according to Equation (2):
R xy ( t ) = x ( t ) y ( t ) = + x * ( τ ) · y ( t + τ ) d τ
where x(t) is signal piezo 1 (normalized) and y(t) is signal piezo 2 (normalized). However, since the signals are discrete, Equation (3) is implemented.
x j = 0 , j < 0   or   j N   Signal   Piezo   1 ( sampled   and   normalized ) y j = 0 , j < 0   or   j M   Signal   Piezo   2 ( sampled   and   normalized )
h j ( t ) = k = 0 N 1 x k * · y j + k for j = ( N 1 ) , ( N 2 ) , , 1 , 0 , 1 , , M 2 ) , ( M 1 )
The implementation of this equation provides the sequence of expression (4):
R xy i = h i ( N 1 ) for i = 0 , 1 , 2 , , N + M 2 .
The result of cross correlation for signal piezo sensor 1 and signal piezo sensor 2 is shown in Figure 14. Therefore, the delay between the vehicle steps according to the piezoelectric sensors is calculated using Equation (5).
Delay 2 , 1 = t 2 t 1 = t corr t max
where
  • t1 and t2 are the moments of time at which the vehicle moves over piezoelectric sensors 1 and 2, respectively.
  • tcorr is the waveform duration of the cross correlation result;
  • tmax is the moment in time at which the cross correlation reaches the maximum value.

4.2. Vehicle Category Determination

The automatic classification of the vehicle category is done by estimating the number of axles of the vehicle and the wheelbase or the distance between axles. The category is then assigned as shown in Table 5. This strategy is novel compared to other methods for the classification of vehicles used by other authors [33].
The classification shown in Table 5 is based on a classification made according to the size of the vehicle and published in Traffic Detector Handbook Vol. 1 [7].
The wheelbase categorization strategy is one of the key factors for achieving a high probability of success regarding the system’s automatic classification.
The calculation of the distance between two axles of the same vehicle is done via Equation (6):
d axles = v Delay i , i + 1
where
  • daxles is the distance between two consecutive axles, expressed in meters (m);
  • v is the speed, expressed in km/h;
  • Delayi,i+1 is the time from when the i axle of the vehicle drives over a piezoelectric sensor until the i + 1 (next) axle drives over the same sensor, expressed in seconds (s);
  • Delayi,i+1 is estimated by measuring the time instants of the signal from one of the sensors when a certain threshold value is exceeded. In this case, Delayi,i+1 is not calculated using the cross correlation method. This would necessitate adding another sensor to establish the signal start trigger. The classification of the vehicle is done based on ranges of the vehicle wheelbase, as shown in Table 3. These calculations are performed in the SubVI Axles distance.vi.
Figure 15 shows a code extract from Axles distance.vi. This SubVI has, as interesting input data, the signals acquired from the piezoelectric sensors 1 and 2, the selection of the observed sensor (piezo sensors 1 or 2) and the estimated speed in (km/h) calculated by the SubVI Cross correlation.vi, described in the previous section. The data of interest provided by Axles distance.vi are the value of the number of axles of the vehicle (#founds), an array with the instants of the time of step (locations) and the array with the distance between the axles of the vehicle (distance axles array (m)).
The data for the distance axles array (m) and #founds are used to determine the vehicle category.
Regarding the vehicle category, a study was performed of the wheelbase of common vehicles circulating in Spain. The authors added the typical wheelbase and the result is the information shown in Table 5.
The subVI in charge of performing the automatic classification is called Category.vi. Figure 16 shows the flowchart of this subVI.
When Category.vi returns the value unknown, a sensor measurement error exists, or the measured values are not included in the values of Table 5. Remember that the values in Table 5 are written in the file Categories.ini (ASCII file). In any case, the measured values of the number of axles (#founds), the distance between axles (distance axles array (m)) and the photograph of the vehicle are always recorded. This allows the user to check, at a later stage, if there are errors in the sensors or if the sensor measurements recorded a vehicle not covered by the categories in Table 5. If you want to add new vehicle categories, just edit the file Categories.ini.
Figure 17 shows a vehicle with a wheelbase of approximately 2.57 m, corresponding to the urban/subcompact category.

5. Experimental Results

5.1. Test Conditions on Road

Tests were conducted with actual road traffic according to the recommendations given in ASTM 1318-09 regarding geometric design and pavement conditions [34]. To ensure the alignment of the different elements on the road, two laser levels and their signal receivers were used, ensuring an error of ± 0.01 m in the measurement of the distance between piezo sensors 1 and 2.
The test was carried out as shown in Figure 18.
The piezo sensors were mounted non-intrusively (on the floor), and the piezo cable was covered with a ProTech-branded cable protector for the floor. Below is an example (Figure 19) of a vehicle measurement, resulting in a “rigid truck (three axles)” classification.

5.2. Proccessing/Compute Time

LabVIEW® profile performance [35] was used to quantify the software processing time when performing the measurements.
In the measurement process, the execution times of the subVIS involved in the machine states were quantified when carrying out the measurement (see Table 6). Ten runs were done to estimate the processing time.
Stand by status is a waiting status and does not affect the processing time to present the measurement.
Configure DAQ status is a state prior to reading the sensors and therefore does not affect processing.
Set–reset status is executed every time a measurement is made and has a fixed execution time of 25 ms, this is the time programmed for the digital pulse applied to the magnetic sensor.
The time between average measurements can be estimated as Tbetween measurements (ms) = 655 + 7.9 + 25 = 687.9

6. Error Estimation

This section concerns the estimation of the error in the measurements, speed and distances between the axles provided by the virtual instrument.
The sources of error were estimated based on the characteristics of the equipment used and tests carried out in the laboratory.
In terms of the speed measurement, three significant sources of error were determined:
  • Inaccuracy in the measurements between wires, db.
  • The different waveforms in the received signals, which can cause a maximum shift in the calculation of the cross correlation.
  • The error due to the signal sampling instant that can cause the maximum point of the cross correlation to be shifted by Ts = 1/fs, where fs is the sampling frequency for the acquisition of the analog signals from piezo sensor 1 and piezo sensor 2.
Regarding the wheelbase measurement, two significant sources of error were determined:
  • The uncertainty in the speed measurement.
  • The uncertainty in the Delayi,i+1 calculation (defined in Section 4.1), which depends on how accurately the moment at which the vehicle passed over the same piezo sensor for the axle (axlei) and the adjacent axle (axlei+1) was detected. This calculation error is low since the slew rate of the signals in the piezo sensors is approximately 1.5 V/ms.
Table 7 and Table 8 show the estimated errors for a two-axle vehicle with wheelbase 1 = 1.375 m and wheelbase 2 = 4375 m, respectively, for speeds between 25 km/h and 175 km/h. Loose error values are estimated for the above error sources, and these are as follows:
  • Distance between piezo sensors, db = 6 m. Errordb = ±0.01 m.
  • Error due to signal waveform, Errorwave = ±100 µs.
  • Error due to instant sampling, fs = 20 kHz. Two-sample error: Errorfs = ±100 µs.
  • The uncertainty in the calculation of Delayi,i + 1, ErrorDelayi,i + 1 = ±1 ms.
In order to estimate the errors due to unrecognized categories or wrong measurements (“Unknown” in Figure 16. Category.vi.) the data from the road tests were analyzed. Two tests were carried out at road M-404 milestone 1 in Madrid (Spain) and two tests at road N-232 milestone 492 in Castilla-León. A total of 457 measurements were taken and the results are shown in Table 9.
“Unknown measurement NO OK” is the set of vehicles that drove over only one of the piezo sensors (piezo sensor 1 or piezo sensor 2) or there was a wrong connection at the beginning of the test that was later resolved. Only three vehicles were detected that were not assigned to any category in Table 5.

7. Conclusions

The designed and built virtual instrument is capable of performing the quasi-instantaneous classification of vehicles circulating on real traffic roads.
The installation can be performed in an intrusive way with a simple intervention on the pavement. A non-intrusive installation can also be carried out, as described in Section 5.
The system is capable of taking measurements with a low level of error in speed measurements and an acceptable level of error in wheelbase measurements.
A classification strategy based on the vehicle wheelbase and number of axles was implemented, allowing for the rapid classification of the most common vehicle types.
A magnetic sensor was included, which generates a magnetic “footprint” that provides information about the type of vehicle. We are developing a line of research regarding this footprint, which complements the classification of the vehicles by category. The magnetic “footprint” can be used to elucidate doubtful cases that may arise in the analysis of the data measured with piezo sensors.
The built hardware and the commercial hardware used are basic performance equipment, so their prices are not high.
The design of the virtual instrument has a defined software architecture. A state machine was used and care was taken in the programming style so that the software is readable, expandable and maintainable. In fact, it would be easy to expand the software to replicate the system in all lanes of a road.
The virtual instrument’s user interface is user friendly and simple, making it easy for the system operator to use. The test results are exportable since the data are also saved in text format (ASCII).

Author Contributions

Conceptualization, F.J.J. and B.G.; methodology, F.J.J.; software, F.J.J.; validation, B.G., F.J.J. and J.D.F.; formal analysis, B.G.; investigation, B.G., F.J.J. and J.D.F.; resources, J.D.F., F.J.J. and B.G.; writing—original draft preparation, B.G. and F.J.J.; writing—review and editing, J.D.F.; visualization, B.G., F.J.J. and J.D.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Yin, J.; Chen, B.; Lai, K.R. Driver danger-level monitoring system using multi-sourced big driving data. IEEE Trans. Intell. Transp. Syst. 2019, 1–12. [Google Scholar] [CrossRef]
  2. Chen, J.; Zhou, H.; Zhang, N.; Xu, W.; Yu, Q.; Gui, L.; Shen, X. Service-oriented dynamic connection management for software-defined internet of vehicles. IEEE Trans. Intell. Transp. Syst. 2017, 18, 2826–2837. [Google Scholar] [CrossRef]
  3. Li, Y.; Qiao, Y.; Ruichek, Y. Multiframe-Based High Dynamic Range Monocular Vision System for Advanced Driver Assistance Systems. IEEE Sens. J. 2015, 15, 5433–5441. [Google Scholar] [CrossRef]
  4. Yin, J.; Chen, B.; Li, K.R.; Li, Y. Automatic Dangerous Driving Intensity Analysis for Advanced Driver Assistance Systems from Multimodal Driving Signals. IEEE Sens. J. 2018, 18, 4785–4794. [Google Scholar] [CrossRef]
  5. Zhang, W.; Wang, Q.; Suo, C. A Novel Vehicle Classification Using Embedded Strain Gauge Sensors. Sensors 2008, 8, 6952–6971. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Huang, Y.; Zheng, J.; Sun, S.; Yang, C.; Liu, J. Optimized YOLOv3 Algorithm and Its Application in Traffic Flow Detections. Appl. Sci. 2020, 10, 3079. [Google Scholar] [CrossRef]
  7. Klein, L.A.; Mills, M.K.; Gibson, D.R.P.; Federal Highway Administration and TFHRC. Traffic Detector Handbook Vol I and Vol II; Federal Highway Administration and TFHRC: McLean, VA, USA, 2006.
  8. Ramanathan, A.; Chen, M. Spatiotemporal vehicle tracking, counting and classification. In Proceedings of the 2017 IEEE Third International Conference on Multimedia Big Data, Laguna Hills, CA, USA, 19–21 April 2017. [Google Scholar]
  9. Kaewkamnerd, S.; Chinrungrueng, J.; Jaruchart, C. Vehicle classification with low computation magnetic sensor. In Proceedings of the 8th International Conference on ITS Telecommunication, Phuket, Thailand, 24 October 2008; pp. 164–169. [Google Scholar]
  10. Mone, G. The New Smart Cities. Commun. ACM. 2015, 58, 20–21. [Google Scholar] [CrossRef]
  11. Peña-González, R.H.; Nuño-Maganda, M.A. Computer vision based real-time vehicle tracking and classification system. In Proceedings of the IEEE 57th International Midwest Symposium on Circuits and Systems (MWSCAS), College Station, TX, USA, 3–6 August 2014. [Google Scholar]
  12. Liu, H.; Ma, J.; Xu, T.; Yan, W.; Ma, L.; Zhang, X. Vehicle detection and classification using distributed fiber optic acoustic sensing. IEEE Trans. Veh. Technol. 2020, 69, 1363–1374. [Google Scholar] [CrossRef]
  13. Available online: https://www.ni.com/es-es/innovations/white-papers/06/virtual-instrumentation.html. (accessed on 13 August 2020).
  14. NIWeek 2003, The Worldwide Conference on Virtual Instrumentation. Show Daily, 14 August 2003.
  15. Markevicius, V.; Navikas, D.; Zilys, M.; Andriukaitis, D.; Valinevicius, A.; Cepenas, M. Dynamic vehicle detection via the use of magnetic field sensors. Sensors 2016, 16, 78. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  16. Markevicius, V.; Navikas, D.; Idzkowski, A.; Miklusis, D.; Andriukaitis, D.; Valinevicius, A.; Zilys, M.; Cepenas, M.; Walendziuk, W. Vehicle speed and length estimation errors using the intelligent transportation system with a set of anisotropic magneto-resistive (AMR) sensors. Sensors 2019, 19, 5234. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Nedoma, J.; Fajkus, M.; Martinek, R.; Vanus, J.; Kepak, S.; Kahankova, R.; Jaros, R.; Cvejn, D.; Prauzek, M. Analysis of the use of fiber-optic sensors in the road traffic. IFAC-PapersOnLine 2018, 51, 420–425. [Google Scholar] [CrossRef]
  18. Vázquez-Rodríguez, M. Contribución al Estudio de la Generación de Energía Eléctrica a Partir de Materiales Piezoeléctricos. Ph.D. Thesis, Universidad Politécnica de Madrid, Madrid, Spain, 2019. [Google Scholar]
  19. Vázquez-Rodríguez, M.; Jiménez, F.J.; de Frutos, J.; Alonso, D. Piezoelectric energy harvesting computer-controlled test bench. Rev. Sci. Instrum. 2016, 87, 095004. [Google Scholar] [CrossRef] [PubMed]
  20. Vázquez-Rodríguez, M.; Jiménez, F.J.; de Frutos, J. Virtual instrument to obtain electrical models of piezoelectric elements used in energy harvesting. Adv. Appl. Ceram. 2018, 117, 201–211. [Google Scholar] [CrossRef]
  21. Vázquez-Rodríguez, M.; Jiménez, F.; Pardo, L.; Ochoa, P.; González, A.; de Frutos, J. A New Prospect in Road Traffic Energy Harvesting Using Lead-Free Piezoceramics. Materials 2019, 12, 3725. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  22. Available online: https://www.te.com/usa-en/product-1005801-1.html (accessed on 13 August 2020).
  23. Zhou, G.; Zhao, Y.; Guo, F.; Xu, W. A Smart High Accuracy Silicon Piezoresistive Pressure Sensor Temperature Compensation System. Sensors 2014, 14, 12174–12190. [Google Scholar] [CrossRef] [PubMed]
  24. Honeywell. 3-Axis Magnetic Sensor Hybrid Datasheet HMC2003; Honeywell: Charlotte, NC, USA, 2011. [Google Scholar]
  25. Honeywell. Application Note AN213; Honeywell: Charlotte, NC, USA, 2011. [Google Scholar]
  26. Available online: https://www.ni.com/es-es/innovations/white-papers/09/ni-data-acquisition--the-accuracy-and-performance-difference.html (accessed on 13 August 2020).
  27. Available online: https://www.ni.com/pdf/manuals/375195d.pdf (accessed on 13 August 2020).
  28. Travis, J.; Kring, J. LabVIEW for Everyone: Graphical Programming Made Easy and Fun, 3rd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2006; Chapter 1 What is the world is LabVIEW? pp. 27–33. ISBN 0131856723. [Google Scholar]
  29. Application Design Patterns: State Machines. Available online: http://www.ni.com/white-paper/3024/en/ (accessed on 13 August 2020).
  30. Markevicius, V.; Navikas, D.; Idzkowski, A.; Andriukaitis, D.; Valinevicius, A.; Zilys, M. Practical methods for vehicle speed estimation using a microprocessor-embedded system with AMR sensors. Sensors 2018, 18, 2225. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  31. Jacovitti, G.; Scarano, G. Discrete time techniques for time delay estimation. IEEE Trans. Signal Process 1993, 41, 525–533. [Google Scholar] [CrossRef]
  32. Zhu, H.; Yu, F. A Cross-Correlation Technique for Vehicle Detections in Wireless Magnetic Sensor Network. IEEE Sens. J. 2016, 16, 4484–4494. [Google Scholar] [CrossRef]
  33. Wang, H.; He, S.; Yu, J.; Wang, L.; Liu, T. Research and Implementation of Vehicle Target Detection and Information Recognition Technology Based on NI myRIO. Sensors 2020, 20, 1765. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  34. American Society for Testing and Materials. ASTM E1318-09; American Society for Testing and Materials: West Conshohocken, PA, USA, 2017. [Google Scholar]
  35. Available online: https://zone.ni.com/reference/en-XX/help/371361R-01/lvconcepts/using_profile_window/ (accessed on 13 August 2020).
Figure 1. Block diagram of the measurement system. Software (SW): Virtual instrument software. Hardware (HW): Transducer, Data Acquisition (DAQ) module, signal conditioners, camera.
Figure 1. Block diagram of the measurement system. Software (SW): Virtual instrument software. Hardware (HW): Transducer, Data Acquisition (DAQ) module, signal conditioners, camera.
Sensors 20 04597 g001
Figure 2. Installation model for the measuring system.
Figure 2. Installation model for the measuring system.
Sensors 20 04597 g002
Figure 3. 20 AWG Cable—Spiral wrap.
Figure 3. 20 AWG Cable—Spiral wrap.
Sensors 20 04597 g003
Figure 4. Sensor response signal (V) when sensors are driven over by a vehicle.
Figure 4. Sensor response signal (V) when sensors are driven over by a vehicle.
Sensors 20 04597 g004
Figure 5. HMC2003 block diagram.
Figure 5. HMC2003 block diagram.
Sensors 20 04597 g005
Figure 6. HMC2003 set–reset.
Figure 6. HMC2003 set–reset.
Sensors 20 04597 g006
Figure 7. Magnetic sensor signal (V) and piezo sensors (V) in a three axles vehicle.
Figure 7. Magnetic sensor signal (V) and piezo sensors (V) in a three axles vehicle.
Sensors 20 04597 g007
Figure 8. Data acquisition (DAQ) module National Instruments USB 6211 specifications.
Figure 8. Data acquisition (DAQ) module National Instruments USB 6211 specifications.
Sensors 20 04597 g008
Figure 9. Hardware system: (a) sensor signal conditioning and Data Acquisition (DAQ) modules; (b) piezo sensor attenuators, magnetic sensor connections, camera and PC.
Figure 9. Hardware system: (a) sensor signal conditioning and Data Acquisition (DAQ) modules; (b) piezo sensor attenuators, magnetic sensor connections, camera and PC.
Sensors 20 04597 g009
Figure 10. (a) State machine LabVIEW pattern. (b) Typical example of a state diagram.
Figure 10. (a) State machine LabVIEW pattern. (b) Typical example of a state diagram.
Sensors 20 04597 g010
Figure 11. State diagram of virtual instrument.
Figure 11. State diagram of virtual instrument.
Sensors 20 04597 g011
Figure 12. Signal of piezo sensor 1 and signal of piezo sensor 2. Two-axis vehicle.
Figure 12. Signal of piezo sensor 1 and signal of piezo sensor 2. Two-axis vehicle.
Sensors 20 04597 g012
Figure 13. High-accuracy speed measurement, Cross correlation.vi.
Figure 13. High-accuracy speed measurement, Cross correlation.vi.
Sensors 20 04597 g013
Figure 14. Cross correlation for signal piezo sensor 1 and signal piezo sensor 2.
Figure 14. Cross correlation for signal piezo sensor 1 and signal piezo sensor 2.
Sensors 20 04597 g014
Figure 15. Axles distance.vi.
Figure 15. Axles distance.vi.
Sensors 20 04597 g015
Figure 16. Category.vi.
Figure 16. Category.vi.
Sensors 20 04597 g016
Figure 17. Urban/subcompact. Front panel of the virtual instrument. Amplitude signals normalized to ±1.
Figure 17. Urban/subcompact. Front panel of the virtual instrument. Amplitude signals normalized to ±1.
Sensors 20 04597 g017
Figure 18. Testing system installed on road.
Figure 18. Testing system installed on road.
Sensors 20 04597 g018
Figure 19. Three rigid axles. Front panel of virtual instrument. Amplitude signals normalized to ± 1.
Figure 19. Three rigid axles. Front panel of virtual instrument. Amplitude signals normalized to ± 1.
Sensors 20 04597 g019
Table 1. Piezoelectric performance specifications.
Table 1. Piezoelectric performance specifications.
PropertiesValueUnits
Outside Diameter2.69mm
Center Core1.02mm
Capacitance @ 1 kHz950pF/m
Resistance (shield)47Ω/km
Hydrostatic Piezo Coefficient20pC/N
Resistance (Center Core)31Ω/km
Table 2. HMC2003 performance specifications.
Table 2. HMC2003 performance specifications.
PropertiesMinTypMaxUnits
Sensitivity0.98 V/Gauss
Null Field Output2.32.52.7V
Resolution40μGauss
Field Range−2 2Gauss
Output Voltage0.5 4.5V
Bandwidth1kHz
Table 3. National Instruments USB 6211 specifications.
Table 3. National Instruments USB 6211 specifications.
I/OValueUnits
Analog InputsEight differential or 16 single-ended-
Analog Input Resolution16bits
Input Range±10V
Maximum Input Rate250KS/s
Analog Outputs2
Maximum Output Rate250KS/s
Maximum Output Range Rate10V
Digital Inputs4
Digital Outputs4
Table 4. Virtual instrument states.
Table 4. Virtual instrument states.
NameDescription/FunctionNext State
Set ParametersSet configuration and test parametersNo Error: Configure DAQ
Error: Quit
Configure DAQConfigure the hardware systemNo Error: Set–Reset
Error: Quit
Set–ResetSet a pulse signal to magnetize the magnetic sensorNo Error: Stand by
Error: Configure DAQ
Stand byWait for vehicle detectionNo Error: Read Barriers (if vehicle detected)
Error: Configure DAQ
Read PiezoMeasure the piezo sensors
These signals will be used in the next state to calculate the vehicle speed
Give order to take photo
No Error: Analysis
Error: Configure DAQ
AnalyzeCalculate the vehicle speed (high accuracy)
Calculate the axis distance and vehicle category
Present and save data measurement
No Error: Set–Reset
Error: Configure DAQ
Take PhotoParallel process execution so as not to interfere with the rest of the actions in the IVWaiting for next order to take photo
QuitRelease resources in an orderly manner and finish the IV
There is a quit “button” on the front panel of the IV
No Error: Read Barriers (if vehicle detected)
Error: Configure DAQ
Table 5. Axle distance category table (wheelbase).
Table 5. Axle distance category table (wheelbase).
Vehicle TypeWheelbase 1 (mm)Wheelbase 2 (mm)Wheelbase 3 (mm)Wheelbase 4 (mm)Wheelbase 5 (mm)
Motorcycle1305–1695
Urban/subcompact tourism 2425–2563
Hatchback/sedan2636–2770
Big sedan2820–2924
Bus (two axles)5770–6080
Bus (three axles)6090–71401350–1600
Articulated bus (two axles)5980–60286480–6540
Industrial VAN 3000–4750
Rigid truck (two axles)4200–5950
Rigid truck (three axles)4200–45001250–1500
Rigid truck (four axles)1700–19002500–30001250–1500
Articulated truck (four axles)2990–39004250–62501200–1350
Articulated truck (five axles)2990–39004250–62501200–13501200–1350
Articulated truck (six axles)2990–39004250–62501200–13501200–13501200–1350
Table 6. Profile performance.
Table 6. Profile performance.
State#RunsAverage
(ms)
Shortest
(ms)
Longest
(ms)
Read Piezos It depends on the speed of the vehicle, stop when piezo sensor 2 is driven over
Analyze 107.97.48.3
Take photo10655621680
Table 7. Speed measurement error estimation.
Table 7. Speed measurement error estimation.
Vehicle Speed (km/h)Errordb (%)Errorwave (%)Errorfs (%)Errorspeed (%)Errorspeed (km/h)
250.0130.0120.0120.0240.006
500.0130.0230.0230.0360.018
750.0130.0350.0350.0480.036
1000.0130.0460.0460.0590.059
1250.0130.0580.0580.0710.088
1500.0130.0690.0690.0820.123
1750.0130.0810.0810.0940.164
Table 8. Wheelbase measurement error estimation.
Table 8. Wheelbase measurement error estimation.
Vehicle Speed (km/h)Errorspeed (%)ErrorDelay1,2 (%)ErrorWheelbase 1 (%)ErrorWheelbase 1 (m)ErrorDelay2,3 (%)ErrorWheelbase 2 (%)ErrorWheelbase 2 (m)
250.0240.5050.5290.0070.1590.1830.003
500.0361.0101.0460.0140.3170.3530.005
750.0481.5151.5630.02104760.5240.007
1000.0592.0202.0790.0290.6350.6940.010
1250.0712.5252.5960.0360.7940.8640.012
1500.0823.0303.1130.0430.9521.0350.014
1750.0943.5353.6290.0501.1111.2050.017
Table 9. Classification results with real traffic.
Table 9. Classification results with real traffic.
#VehiclesCategory “In Range”Category “Unknown” Measurement OKCategory “Unknown” Measurement NO OKUnknown
(%)
Successful
(%)
Test 142380410%90%
Test 22142012116%94%
Test 36160012%98%
Test 4140138122%98%

Share and Cite

MDPI and ACS Style

González, B.; Jiménez, F.J.; De Frutos, J. A Virtual Instrument for Road Vehicle Classification Based on Piezoelectric Transducers. Sensors 2020, 20, 4597. https://doi.org/10.3390/s20164597

AMA Style

González B, Jiménez FJ, De Frutos J. A Virtual Instrument for Road Vehicle Classification Based on Piezoelectric Transducers. Sensors. 2020; 20(16):4597. https://doi.org/10.3390/s20164597

Chicago/Turabian Style

González, Bernardino, Francisco J. Jiménez, and José De Frutos. 2020. "A Virtual Instrument for Road Vehicle Classification Based on Piezoelectric Transducers" Sensors 20, no. 16: 4597. https://doi.org/10.3390/s20164597

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop