{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,11]],"date-time":"2026-05-11T12:41:00Z","timestamp":1778503260870,"version":"3.51.4"},"reference-count":25,"publisher":"MDPI AG","issue":"6","license":[{"start":{"date-parts":[[2018,5,24]],"date-time":"2018-05-24T00:00:00Z","timestamp":1527120000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>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.<\/jats:p>","DOI":"10.3390\/s18061690","type":"journal-article","created":{"date-parts":[[2018,5,24]],"date-time":"2018-05-24T07:54:01Z","timestamp":1527148441000},"page":"1690","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":38,"title":["Vehicle Classification Using an Imbalanced Dataset Based on a Single Magnetic Sensor"],"prefix":"10.3390","volume":"18","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3992-2179","authenticated-orcid":false,"given":"Chang","family":"Xu","sequence":"first","affiliation":[{"name":"Shanghai Institute of Microsystem and Information Technology, Chinese Academy of Sciences, Shanghai 200050, China"},{"name":"University of Chinese Academy of Sciences, Beijing 100049, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Yingguan","family":"Wang","sequence":"additional","affiliation":[{"name":"Shanghai Institute of Microsystem and Information Technology, Chinese Academy of Sciences, Shanghai 200050, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Xinghe","family":"Bao","sequence":"additional","affiliation":[{"name":"Shanghai Institute of Microsystem and Information Technology, Chinese Academy of Sciences, Shanghai 200050, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Fengrong","family":"Li","sequence":"additional","affiliation":[{"name":"Shanghai Institute of Microsystem and Information Technology, Chinese Academy of Sciences, Shanghai 200050, China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2018,5,24]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"173","DOI":"10.1177\/0361198105191700119","article-title":"Traffic measurement and vehicle classification with single magnetic sensor","volume":"1917","author":"Cheung","year":"2005","journal-title":"Transp. Res. Record"},{"key":"ref_2","unstructured":"Honeywell, H. (2018, February 26). HMR 2300 Smart Digital Magnetometer. Available online: http:\/\/www.ssec.honeywell.com\/magnetic\/datasheets\/hmr2300.pdf."},{"key":"ref_3","unstructured":"Gajda, J., Sroka, R., Stencel, M., Wajda, A., and Zeglen, T. (2001, January 21\u201323). A vehicle classification based on inductive loop detectors. Proceedings of the 18th IEEE Instrumentation and Measurement Technology Conference, Budapest, Hungary."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"1704","DOI":"10.1109\/TVT.2006.883726","article-title":"Vehicle-classification algorithm for single-loop detectors using neural networks","volume":"55","author":"Ki","year":"2006","journal-title":"IEEE Trans. Veh. Technol."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"349","DOI":"10.1016\/j.trc.2009.01.004","article-title":"Speed estimation and length based vehicle classification from freeway single-loop detectors","volume":"17","author":"Coifman","year":"2009","journal-title":"Transp. Res. Part C Emerg. Technol."},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Kaewkamnerd, S., Pongthornseri, R., Chinrungrueng, J., and Silawan, T. (2009, January 21\u201323). Automatic vehicle classification using wireless magnetic sensor. Proceedings of the IEEE International Workshop on Intelligent Data Acquisition and Advanced Computing Systems: Technology and Applications, Rende, Italy.","DOI":"10.1109\/IDAACS.2009.5342949"},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"73","DOI":"10.1109\/TITS.2013.2273876","article-title":"Portable roadside sensors for vehicle counting, classification, and speed measurement","volume":"15","author":"Taghvaeeyan","year":"2014","journal-title":"IEEE Trans. Intell. Transp. Syst."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"1132","DOI":"10.1109\/JSEN.2014.2359014","article-title":"Vehicle detection and classification for low-speed congested traffic with anisotropic magnetoresistive sensor","volume":"15","author":"Yang","year":"2015","journal-title":"IEEE Sens. J."},{"key":"ref_9","unstructured":"Yousaf, M.H., Velastin, S.A., and Chen, Z. (2017, January 5\u20137). Shadow Detection for Vehicle Classification in Urban Environments. Proceedings of the Image Analysis and Recognition: 14th International Conference, Montreal, QC, Canada."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Jiang, L., Zhuo, L., Long, H., Hu, X., and Zhang, J. (2016, January 23\u201325). Vehicle classification for traffic surveillance videos based on spatial location information and Sparse Representation-based Classifier. Proceedings of the 2016 International Conference on Progress in Informatics and Computing (PIC), Shanghai, China.","DOI":"10.1109\/PIC.2016.7949510"},{"key":"ref_11","first-page":"835","article-title":"Multiple class image-based vehicle classification using soft computing algorithms","volume":"13","author":"Shantaiya","year":"2016","journal-title":"Int. Arab J. Inf. Technol."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"294","DOI":"10.1016\/j.trc.2007.10.004","article-title":"Wireless magnetic sensors for traffic surveillance","volume":"16","author":"Haoui","year":"2008","journal-title":"Transp. Res. Part C Emerg. Technol."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"182","DOI":"10.1016\/j.neucom.2015.12.134","article-title":"A vehicle classification system based on hierarchical multi-SVMs in crowded traffic scenes","volume":"211","author":"Fu","year":"2016","journal-title":"Neurocomputing"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"440","DOI":"10.1587\/transfun.E100.A.440","article-title":"Vehicle Classification under Different Feature Sets with a Single Anisotropic Magnetoresistive Sensor","volume":"100","author":"Xu","year":"2017","journal-title":"IEICE Trans. Fund. Electron. Commun. Comput. Sci."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Zhang, P., Li, H., Dong, H., Jia, L., and Jin, M. (2013). Real-Time Vehicle Classification Based on Frequency Domain Energy Spectrum. Lecture Notes in Electrical Engineering, Springer.","DOI":"10.1007\/978-3-642-38466-0_60"},{"key":"ref_16","first-page":"274","article-title":"Wireless Magnetic Sensor Network for Road Traffic Monitoring and Vehicle Classification","volume":"17","author":"Velisavljevic","year":"2016","journal-title":"Transp. Telecommun. J."},{"key":"ref_17","first-page":"39","article-title":"Vehicle detection and compass applications using AMR magnetic sensors","volume":"477","author":"Caruso","year":"1999","journal-title":"Sens. Expo Proceed."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"174","DOI":"10.1016\/j.measurement.2010.09.044","article-title":"Vehicle detection and classification by measuring and processing magnetic signal","volume":"44","author":"Lan","year":"2011","journal-title":"Measurement"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"175","DOI":"10.1080\/00031305.1992.10475879","article-title":"An introduction to kernel and nearest-neighbor nonparametric regression","volume":"46","author":"Altman","year":"1992","journal-title":"Am. Stat."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"273","DOI":"10.1007\/BF00994018","article-title":"Support-vector networks","volume":"20","author":"Cortes","year":"1995","journal-title":"Mach. Learn."},{"key":"ref_21","unstructured":"Breiman, L., Friedman, J., Stone, C.J., and Olshen, R.A. (1984). Classification and Regression Trees, CRC Press."},{"key":"ref_22","unstructured":"Beitzel, S.M. (2006). On Understanding and Classifying Web Queries, Illinois Institute of Technology Chicago."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"104","DOI":"10.1109\/TITS.2013.2273488","article-title":"A wireless accelerometer-based automatic vehicle classification prototype system","volume":"15","author":"Ma","year":"2014","journal-title":"IEEE Trans. Intell. Transp. Syst."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"321","DOI":"10.1613\/jair.953","article-title":"SMOTE: Synthetic minority over-sampling technique","volume":"16","author":"Chawla","year":"2002","journal-title":"J. Artif. Intell. Res."},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Tafish, H., Balid, W., and Refai, H.H. (2016, January 5\u20139). Cost effective Vehicle Classification using a single wireless magnetometer. Proceedings of the 2016 International Wireless Communications and Mobile Computing Conference (IWCMC), Paphos, Cyprus.","DOI":"10.1109\/IWCMC.2016.7577056"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/18\/6\/1690\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T15:05:43Z","timestamp":1760195143000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/18\/6\/1690"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2018,5,24]]},"references-count":25,"journal-issue":{"issue":"6","published-online":{"date-parts":[[2018,6]]}},"alternative-id":["s18061690"],"URL":"https:\/\/doi.org\/10.3390\/s18061690","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2018,5,24]]}}}