| Literature DB >> 29794974 |
Chang Xu1,2, Yingguan Wang3, Xinghe Bao4, Fengrong Li5.
Abstract
This paper aims to improve the accuracy of automatic vehicle classifiers for imbalanced datasets. Classification is made through utilizing a single anisotropic magnetoresistive sensor, with the models of vehicles involved being classified into hatchbacks, sedans, buses, and multi-purpose vehicles (MPVs). Using time domain and frequency domain features in combination with three common classification algorithms in pattern recognition, we develop a novel feature extraction method for vehicle classification. These three common classification algorithms are the k-nearest neighbor, the support vector machine, and the back-propagation neural network. Nevertheless, a problem remains with the original vehicle magnetic dataset collected being imbalanced, and may lead to inaccurate classification results. With this in mind, we propose an approach called SMOTE, which can further boost the performance of classifiers. Experimental results show that the k-nearest neighbor (KNN) classifier with the SMOTE algorithm can reach a classification accuracy of 95.46%, thus minimizing the effect of the imbalance.Entities:
Keywords: anisotropic magnetoresistive sensor; imbalanced dataset; intelligent transport system; vehicle classification
Year: 2018 PMID: 29794974 PMCID: PMC6022199 DOI: 10.3390/s18061690
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Sensor installation diagram.
Figure 2Waveforms of a sedan collected roadside are shown in (a). Waveforms collected in the middle of the lanes are shown in (b).
Original vehicle classification magnetic database. MPV: multi-purpose vehicle.
| Vehicle Type | Motorcycle | Hatchback | Sedan | Bus | MPV | Truck | Total |
|---|---|---|---|---|---|---|---|
| Training Set | - | 15 | 70 | 33 | 12 | - | 130 |
| Testing Set | - | 5 | 24 | 11 | 4 | - | 44 |
| Original Set | 1 | 20 | 94 | 44 | 16 | 3 | 178 |
Figure 3Waveforms of a hatchback and their frequency spectrums.
Figure 4Waveforms of a sedan and their frequency spectrums.
Figure 5Waveforms of a bus and their frequency spectrums.
Figure 6Waveforms of an MPV and their frequency spectrums.
Figure 7The speeds of detected vehicle cars.
Vehicle classification results based on the set.
| Method | Index | Hatchback | Sedan | Bus | MPV |
|---|---|---|---|---|---|
| KNN | accuracy | 0.7046 | |||
| precision | 0 | 0.7917 | 1 | 0.25 | |
| recall | 0 | 0.7037 | 1 | 0.3333 | |
| F1 | 0 | 0.7451 | 1 | 0.2857 | |
| SVM | accuracy | 0.7727 | |||
| precision | 0 | 1 | 0.9091 | 0 | |
| recall | 0 | 0.7059 | 1 | 0 | |
| F1 | 0 | 0.8276 | 0.9524 | 0 | |
| BPNN | accuracy | 0.8182 | |||
| precision | 0 | 1 | 1 | 0.25 | |
| recall | 0 | 0.7742 | 1 | 0.5 | |
| F1 | 0 | 0.8727 | 1 | 0.3333 | |
Vehicle classification results based on the set using the back-propagation neural network (BPNN) method.
| Predicted Class | ||||||
|---|---|---|---|---|---|---|
| Hatchback | Sedan | Bus | MPV | All | ||
| Actual Class | hatchback | 0 | 4 | 0 | 1 | 5 |
| sedan | 0 | 24 | 0 | 0 | 24 | |
| bus | 0 | 0 | 11 | 0 | 11 | |
| MPV | 0 | 3 | 0 | 1 | 4 | |
| all | 0 | 31 | 11 | 2 | 44 | |
The SMOTE Database.
| Vehicle Type | Hatchback | Sedan | Bus | MPV | Total |
|---|---|---|---|---|---|
| Training Set | 60 | 70 | 66 | 60 | 256 |
| Testing Set | 5 | 24 | 11 | 4 | 44 |
| SMOTE Set | 65 | 94 | 77 | 64 | 300 |
Figure 8“STD-PP”-X features processed by SMOTE.
Figure 9“STD-PP”-Y features processed by SMOTE.
Figure 10“STD-PP”-Z features processed by SMOTE.
Figure 11“STD-PP”-F features processed by SMOTE.
Powered by SMOTE with set.
| Method | Index | Hatchback | Sedan | Bus | MPV |
|---|---|---|---|---|---|
| KNN | accuracy | 0.9546 | |||
| precision | 0.8 | 1 | 1 | 0.75 | |
| recall | 1 | 0.9231 | 1 | 1 | |
| F1 | 0.8889 | 0.96 | 1 | 0.8571 | |
| SVM | accuracy | 0.7955 | |||
| precision | 0 | 1 | 1 | 0 | |
| recall | 0 | 0.7273 | 1 | 0 | |
| F1 | 0 | 0.8421 | 1 | 0 | |
| BPNN | accuracy | 0.8409 | |||
| precision | 0.2 | 0.9167 | 1 | 0.75 | |
| recall | 0.25 | 0.88 | 1 | 0.75 | |
| F1 | 0.2222 | 0.8980 | 1 | 0.75 | |
Figure 12Flowchart of signal processing.