{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,5]],"date-time":"2026-07-05T12:41:39Z","timestamp":1783255299473,"version":"3.54.6"},"reference-count":53,"publisher":"MDPI AG","issue":"1","license":[{"start":{"date-parts":[[2019,1,8]],"date-time":"2019-01-08T00:00:00Z","timestamp":1546905600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100004735","name":"Natural Science Foundation of\u00a0Hunan Province","doi-asserted-by":"publisher","award":["2018JJ3607"],"award-info":[{"award-number":["2018JJ3607"]}],"id":[{"id":"10.13039\/501100004735","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["51575517"],"award-info":[{"award-number":["51575517"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"name":"National Technology Foundation Project","award":["181GF22006"],"award-info":[{"award-number":["181GF22006"]}]},{"name":"Frontier Science and Technology Innovation Project in the National Key Research and Development Program","award":["2016QY11W2003"],"award-info":[{"award-number":["2016QY11W2003"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>With the wide application of wireless sensor networks in military and environmental monitoring, security issues have become increasingly prominent. Data exchanged over wireless sensor networks is vulnerable to malicious attacks due to the lack of physical defense equipment. Therefore, corresponding schemes of intrusion detection are urgently needed to defend against such attacks. Considering the serious class imbalance of the intrusion dataset, this paper proposes a method of using the synthetic minority oversampling technique (SMOTE) to balance the dataset and then uses the random forest algorithm to train the classifier for intrusion detection. The simulations are conducted on a benchmark intrusion dataset, and the accuracy of the random forest algorithm has reached 92.39%, which is higher than other comparison algorithms. After oversampling the minority samples, the accuracy of the random forest combined with the SMOTE has increased to 92.57%. This shows that the proposed algorithm provides an effective solution to solve the problem of class imbalance and improves the performance of intrusion detection.<\/jats:p>","DOI":"10.3390\/s19010203","type":"journal-article","created":{"date-parts":[[2019,1,9]],"date-time":"2019-01-09T03:06:06Z","timestamp":1547003166000},"page":"203","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":166,"title":["Wireless Sensor Networks Intrusion Detection Based on SMOTE and the Random Forest Algorithm"],"prefix":"10.3390","volume":"19","author":[{"given":"Xiaopeng","family":"Tan","sequence":"first","affiliation":[{"name":"College of Artificial Intelligence, National University of Defense Technology, Changsha 410073, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Shaojing","family":"Su","sequence":"additional","affiliation":[{"name":"College of Artificial Intelligence, National University of Defense Technology, Changsha 410073, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zhiping","family":"Huang","sequence":"additional","affiliation":[{"name":"College of Artificial Intelligence, National University of Defense Technology, Changsha 410073, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xiaojun","family":"Guo","sequence":"additional","affiliation":[{"name":"College of Artificial Intelligence, National University of Defense Technology, Changsha 410073, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zhen","family":"Zuo","sequence":"additional","affiliation":[{"name":"College of Artificial Intelligence, National University of Defense Technology, Changsha 410073, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xiaoyong","family":"Sun","sequence":"additional","affiliation":[{"name":"College of Artificial Intelligence, National University of Defense Technology, Changsha 410073, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Longqing","family":"Li","sequence":"additional","affiliation":[{"name":"College of Artificial Intelligence, National University of Defense Technology, Changsha 410073, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2019,1,8]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"4487","DOI":"10.1002\/2016WR019619","article-title":"Technical report: The design and evaluation of a basin-scale wireless sensor network for mountain hydrology","volume":"53","author":"Zhang","year":"2017","journal-title":"Water Resour. Res."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"868","DOI":"10.3390\/s16060868","article-title":"A Comparative Study of Anomaly Detection Techniques for Smart City Wireless Sensor Networks","volume":"16","author":"Victor","year":"2016","journal-title":"Sensors"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"611","DOI":"10.1007\/s11276-016-1360-6","article-title":"Energy-efficient data sensing and routing in unreliable energy-harvesting wireless sensor network","volume":"24","author":"Lu","year":"2018","journal-title":"Wirel. Netw."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"1297","DOI":"10.1049\/iet-com.2016.1229","article-title":"Fingerprint localisation algorithm for noisy wireless sensor network based on multi-objective evolutionary model","volume":"11","author":"Fang","year":"2017","journal-title":"IET Commun."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Wang, J., Jiang, S., and Fapojuwo, A.O. (2017). A Protocol Layer Trust-Based Intrusion Detection Scheme for Wireless Sensor Networks. Sensors, 17.","DOI":"10.3390\/s17061227"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"1113","DOI":"10.1007\/s11276-016-1208-0","article-title":"On security of wireless sensor networks: A data authentication protocol using digital signature","volume":"23","author":"Ferng","year":"2017","journal-title":"Wirel. Netw."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"28960","DOI":"10.3390\/s151128960","article-title":"An Intrusion Detection System Based on Multi-Level Clustering for Hierarchical Wireless Sensor Networks","volume":"15","author":"Ismail","year":"2015","journal-title":"Sensors"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"51","DOI":"10.1109\/MWC.2010.5416350","article-title":"Data security and privacy in wireless body area networks","volume":"17","author":"Li","year":"2016","journal-title":"IEEE Wirel. Commun."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"3718","DOI":"10.1109\/TWC.2016.2526601","article-title":"Adaptive and Channel-Aware Detection of Selective Forwarding Attacks in Wireless Sensor Networks","volume":"15","author":"Ren","year":"2016","journal-title":"IEEE Trans. Wirel. Commun."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"579","DOI":"10.1007\/s11276-015-1179-6","article-title":"Sink location privacy protection under direction attack in wireless sensor networks","volume":"23","author":"Wang","year":"2017","journal-title":"Wirel. Netw."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"3159","DOI":"10.1007\/s13369-017-2426-1","article-title":"Study of Immune-Based Intrusion Detection Technology in Wireless Sensor Networks","volume":"42","author":"Xiao","year":"2017","journal-title":"Arab. J. Sci. Eng."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Yan, J., Li, X., Luo, X., and Guan, X. (2017). Virtual-Lattice Based Intrusion Detection Algorithm over Actuator-Assisted Underwater Wireless Sensor Networks. Sensors, 17.","DOI":"10.3390\/s17051168"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"187","DOI":"10.1016\/j.procs.2017.12.026","article-title":"Detection of Intruder using KMP Pattern Matching Technique in Wireless Sensor Networks","volume":"125","author":"Kalnoor","year":"2018","journal-title":"Proc. Comput. Sci."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"6975","DOI":"10.1109\/ACCESS.2018.2793841","article-title":"Denial of Service Defence for Resource Availability in Wireless Sensor Networks","volume":"6","author":"Osanaiye","year":"2018","journal-title":"IEEE Access"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Ma, T., Wang, F., Cheng, J., Yu, Y., and Chen, X. (2016). A Hybrid Spectral Clustering and Deep Neural Network Ensemble Algorithm for Intrusion Detection in Sensor Networks. Sensors, 16.","DOI":"10.3390\/s16101701"},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"1971","DOI":"10.1007\/s11277-016-3433-3","article-title":"An Efficient Hybrid Anomaly Detection Scheme Using K-Means Clustering for Wireless Sensor Networks","volume":"90","author":"Wazid","year":"2016","journal-title":"Wirel. Pers. Commun."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"117","DOI":"10.1016\/j.procs.2016.06.016","article-title":"Performance Evaluation of Supervised Machine Learning Algorithms for Intrusion Detection","volume":"89","author":"Belavagi","year":"2016","journal-title":"Proc. Comput. Sci."},{"key":"ref_18","first-page":"1","article-title":"Intrusion Detection System Based on Evolving Rules for Wireless Sensor Networks","volume":"2018","author":"Lu","year":"2018","journal-title":"J. Sens."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1155\/2017\/3548607","article-title":"Fuzzy Based Advanced Hybrid Intrusion Detection System to Detect Malicious Nodes in Wireless Sensor Networks","volume":"2017","author":"Singh","year":"2017","journal-title":"Wirel. Commun. Mob. Comput."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"1971","DOI":"10.1109\/JSEN.2017.2787997","article-title":"An Intrusion Detection Model for Wireless Sensor Networks with an Improved V-Detector Algorithm","volume":"18","author":"Sun","year":"2018","journal-title":"IEEE Sens. J."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"462","DOI":"10.1016\/j.asoc.2008.06.001","article-title":"Intrusion detection using fuzzy association rules","volume":"9","author":"Tajbakhsh","year":"2009","journal-title":"Appl. Soft. Comput."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"101","DOI":"10.1109\/TIFS.2016.2603961","article-title":"Distributed Segment-Based Anomaly Detection with Kullback\u2013Leibler Divergence in Wireless Sensor Networks","volume":"12","author":"Xie","year":"2017","journal-title":"IEEE Trans. Inf. Forensic Secur."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"574","DOI":"10.1109\/TPDS.2014.2308198","article-title":"Segment-based anomaly detection with approximated sample covariance matrix in wireless sensor networks","volume":"26","author":"Xie","year":"2015","journal-title":"IEEE Trans. Parallel Distrib. Syst."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"185","DOI":"10.1016\/j.jnca.2017.03.018","article-title":"Generating realistic intrusion detection system dataset based on fuzzy qualitative modeling","volume":"87","author":"Haider","year":"2017","journal-title":"J. Netw. Comput. Appl."},{"key":"ref_25","first-page":"41","article-title":"A survey on malware detection using data mining techniques","volume":"50","author":"Ye","year":"2017","journal-title":"ACM Comput. Surv."},{"key":"ref_26","first-page":"168","article-title":"Intrusion detection system using stream data mining and drift detection method","volume":"93","author":"Kumar","year":"2013","journal-title":"Res. Vet. Sci."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"558","DOI":"10.1007\/s10489-017-0907-2","article-title":"Evaluation of random forest classifier in security domain","volume":"47","author":"Khorshidpour","year":"2017","journal-title":"Appl. Intell."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"4012","DOI":"10.1109\/TIP.2018.2834830","article-title":"Improved Random Forest for Classification","volume":"27","author":"Paul","year":"2018","journal-title":"IEEE Trans. Image Process."},{"key":"ref_29","first-page":"457","article-title":"A Hybrid Approach for Real-Time Network Intrusion Detection Systems","volume":"60","author":"Lee","year":"2011","journal-title":"IEEE Trans. Veh. Technol."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"488","DOI":"10.1016\/j.ins.2014.03.066","article-title":"Big Data Analytics framework for Peer-to-Peer Botnet detection using Random Forests","volume":"278","author":"Singh","year":"2014","journal-title":"Inf. Sci."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"238","DOI":"10.1016\/j.ins.2016.06.038","article-title":"Anomalous query access detection in RBAC-administered databases with random forest and PCA","volume":"369","author":"Ronao","year":"2016","journal-title":"Inf. Sci."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"356","DOI":"10.1016\/j.jbi.2008.09.001","article-title":"Countering imbalanced datasets to improve adverse drug event predictive models in labor and delivery","volume":"42","author":"Taft","year":"2009","journal-title":"J. Biomed. Inform."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"1905","DOI":"10.1057\/jors.2013.117","article-title":"Imbalance-oriented SVM methods for financial distress prediction: A comparative study among the new SB-SVM-ensemble method and traditional methods","volume":"65","author":"Sun","year":"2014","journal-title":"J. Oper. Res. Soc."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"49","DOI":"10.1016\/j.jbi.2015.09.012","article-title":"A new cluster-based oversampling method for improving survival prediction of hepatocellular carcinoma patients","volume":"58","author":"Santos","year":"2015","journal-title":"J. Biomed. Inform."},{"key":"ref_35","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_36","doi-asserted-by":"crossref","unstructured":"Lusa, L. (2013). SMOTE for high-dimensional class-imbalanced data. BMC Bioinform., 14.","DOI":"10.1186\/1471-2105-14-106"},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Jeatrakul, P., Wong, K.W., and Fung, C.C. (2010, January 22\u201325). Classification of imbalanced data by combining the complementary neural network and SMOTE algorithm. Proceedings of the International Conference on Neural Information Processing, Sydney, Australia.","DOI":"10.1007\/978-3-642-17534-3_19"},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Wang, J., Xu, M., Wang, H., and Zhang, J. (2006, January 16\u201320). Classification of imbalanced data by using the SMOTE algorithm and locally linear embedding. Proceedings of the International Conference on Signal Processing, Beijing, China.","DOI":"10.1109\/ICOSP.2006.345752"},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Blagus, R., and Lusa, L. (2012, January 12\u201315). Evaluation of smote for high-dimensional class-imbalanced microarray data. Proceedings of the International Conference on Machine Learning and Applications, Boca Raton, FL, USA.","DOI":"10.1109\/ICMLA.2012.183"},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"123","DOI":"10.1007\/BF00058655","article-title":"Bagging predictors","volume":"24","author":"Breiman","year":"1996","journal-title":"Mach. Learn."},{"key":"ref_41","first-page":"129","article-title":"Feature Selection for Intrusion Detection Using Random Forest","volume":"7","author":"Hasan","year":"2016","journal-title":"J. Inf. Secur."},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"213","DOI":"10.1016\/j.procs.2016.06.047","article-title":"Random forest modeling for network intrusion detection system","volume":"89","author":"Farnaaz","year":"2016","journal-title":"Proc. Comput. Sci."},{"key":"ref_43","unstructured":"Yi, Y.A., and Min, M.M. (2017, January 26\u201328). An analysis of random forest algorithm based network intrusion detection system. Proceedings of the International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel\/Distributed Computing, Kanazawa, Japan."},{"key":"ref_44","unstructured":"(2018, September 20). KDD Cup 1999 Data. Available online: http:\/\/kdd.ics.uci.edu\/databases\/kddcup99\/kddcup99.html."},{"key":"ref_45","first-page":"666","article-title":"Optimization of feature selection based on mutual information in intrusion detection","volume":"47","author":"Liu","year":"2017","journal-title":"J. Northwest. Univ."},{"key":"ref_46","first-page":"1","article-title":"Optimization Boosting Classification Based on Metrics of Imbalanced Data","volume":"54","author":"Yan","year":"2018","journal-title":"Comput. Eng. Appl."},{"key":"ref_47","doi-asserted-by":"crossref","first-page":"10","DOI":"10.1145\/1656274.1656278","article-title":"The WEKA data mining software: An update","volume":"11","author":"Hall","year":"2009","journal-title":"ACM SIGKDD Explor. Newsl."},{"key":"ref_48","doi-asserted-by":"crossref","unstructured":"Sahu, S., and Mehtre, B.M. (2015, January 10\u201313). Network intrusion detection system using J48 Decision Tree. Proceedings of the International Conference on Advances in Computing, Communications and Informatics, Kochi, India.","DOI":"10.1109\/ICACCI.2015.7275914"},{"key":"ref_49","doi-asserted-by":"crossref","unstructured":"Amor, N.B., Benferhat, S., and Elouedi, Z. (2004, January 14\u201317). Naive Bayes vs decision trees in intrusion detection systems. Proceedings of the ACM Symposium on Applied Computing, Nicosia, Cyprus.","DOI":"10.1145\/967900.967989"},{"key":"ref_50","doi-asserted-by":"crossref","first-page":"27","DOI":"10.1145\/1961189.1961199","article-title":"LIBSVM: A library for support vector machines","volume":"2","author":"Chang","year":"2011","journal-title":"ACM Trans. Intell. Syst. Technol."},{"key":"ref_51","doi-asserted-by":"crossref","unstructured":"Gaikwad, D.P., and Thool, R.C. (2015, January 26\u201327). Intrusion Detection System Using Bagging Ensemble Method of Machine Learning. Proceedings of the International Conference on Computing Communication Control & Automation, Pune, India.","DOI":"10.1109\/ICCUBEA.2015.61"},{"key":"ref_52","doi-asserted-by":"crossref","first-page":"301","DOI":"10.1007\/s11294-007-9090-2","article-title":"Multiclass corporate failure prediction by Adaboost.M1","volume":"13","author":"Cortes","year":"2007","journal-title":"Int. Adv. Econ. Res."},{"key":"ref_53","doi-asserted-by":"crossref","first-page":"5","DOI":"10.1023\/A:1010933404324","article-title":"Random forests","volume":"45","author":"Breiman","year":"2001","journal-title":"Mach. Learn."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/19\/1\/203\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T12:24:13Z","timestamp":1760185453000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/19\/1\/203"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,1,8]]},"references-count":53,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2019,1]]}},"alternative-id":["s19010203"],"URL":"https:\/\/doi.org\/10.3390\/s19010203","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2019,1,8]]}}}