{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,26]],"date-time":"2026-03-26T15:54:36Z","timestamp":1774540476603,"version":"3.50.1"},"reference-count":35,"publisher":"MDPI AG","issue":"7","license":[{"start":{"date-parts":[[2019,4,1]],"date-time":"2019-04-01T00:00:00Z","timestamp":1554076800000},"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>Wireless Sensor Networks (WSNs) are vulnerable to faults because of their deployment in unpredictable and hazardous environments. This makes WSN prone to failures such as software, hardware, and communication failures. Due to the sensor\u2019s limited resources and diverse deployment fields, fault detection in WSNs has become a daunting task. To solve this problem, Support Vector Machine (SVM), Convolutional Neural Network (CNN), Stochastic Gradient Descent (SGD), Multilayer Perceptron (MLP), Random Forest (RF), and Probabilistic Neural Network (PNN) classifiers are used for classification of gain, offset, spike, data loss, out of bounds, and stuck-at faults at the sensor level. Out of six faults, two of them are induced in the datasets, i.e., spike and data loss faults. The results are compared on the basis of their Detection Accuracy (DA), True Positive Rate (TPR), Matthews Correlation Coefficients (MCC), and F1-score. In this paper, a comparative analysis is performed among the classifiers mentioned previously on real-world datasets. Simulations show that the RF algorithm secures a better fault detection rate than the rest of the classifiers.<\/jats:p>","DOI":"10.3390\/s19071568","type":"journal-article","created":{"date-parts":[[2019,4,2]],"date-time":"2019-04-02T03:21:26Z","timestamp":1554175286000},"page":"1568","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":142,"title":["Fault Detection in Wireless Sensor Networks through the Random Forest Classifier"],"prefix":"10.3390","volume":"19","author":[{"given":"Zainib","family":"Noshad","sequence":"first","affiliation":[{"name":"Department of Computer Science, COMSATS University Islamabad, Islamabad 44000, Pakistan"}]},{"given":"Nadeem","family":"Javaid","sequence":"additional","affiliation":[{"name":"Department of Computer Science, COMSATS University Islamabad, Islamabad 44000, Pakistan"}]},{"given":"Tanzila","family":"Saba","sequence":"additional","affiliation":[{"name":"College of Computer and Information Sciences, Prince Sultan University, Riyadh 11586, Saudi Arabia"}]},{"given":"Zahid","family":"Wadud","sequence":"additional","affiliation":[{"name":"Department of Computer Systems Engineering, University of Engineering and Technology Peshawar, Peshawar 25000, Pakistan"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1121-283X","authenticated-orcid":false,"given":"Muhammad Qaiser","family":"Saleem","sequence":"additional","affiliation":[{"name":"College of Computer Science and Information Technology, Al Baha University, Al Baha 11074, Saudi Arabia"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4964-9308","authenticated-orcid":false,"given":"Mohammad Eid","family":"Alzahrani","sequence":"additional","affiliation":[{"name":"College of Computer Science and Information Technology, Al Baha University, Al Baha 11074, Saudi Arabia"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9467-9936","authenticated-orcid":false,"given":"Osama E.","family":"Sheta","sequence":"additional","affiliation":[{"name":"College of Science, Zagazig University, Zagazig 44511, Egypt"}]}],"member":"1968","published-online":{"date-parts":[[2019,4,1]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"340","DOI":"10.1109\/JSEN.2017.2771226","article-title":"Fault detection in wireless sensor networks through SVM classifier","volume":"18","author":"Zidi","year":"2017","journal-title":"IEEE Sens. J."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"267","DOI":"10.1016\/j.jnca.2016.10.019","article-title":"An analysis of fault detection strategies in wireless sensor networks","volume":"78","author":"Muhammed","year":"2017","journal-title":"J. Netw. Comput. Appl."},{"key":"ref_3","first-page":"1","article-title":"Distributed Online One-Class Support Vector Machine for Anomaly Detection Over Networks","volume":"99","author":"Miao","year":"2018","journal-title":"IEEE Trans. Cybern."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"529","DOI":"10.1109\/JSEN.2015.2483745","article-title":"Accurate wireless sensor localization technique based on hybrid PSO-ANN algorithm for indoor and outdoor track cycling","volume":"16","author":"Gharghan","year":"2016","journal-title":"IEEE Sens. J."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"593","DOI":"10.1007\/s12652-018-0709-3","article-title":"Neural network based automated detection of link failures in wireless sensor networks and extension to a study on the detection of disjoint nodes","volume":"10","author":"Swain","year":"2018","journal-title":"J. Ambient Intell. Hum. Comput."},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Cheng, Y., Liu, Q., Wang, J., Wan, S., and Umer, T. (2018). Distributed Fault Detection for Wireless Sensor Networks Based on Support Vector Regression. Wirel. Commun. Mob. Comput.","DOI":"10.1155\/2018\/4349795"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Yuan, Y., Li, S., Zhang, X., and Sun, J. (2018, January 16\u201320). A Comparative Analysis of SVM, Naive Bayes and GBDT for Data Faults Detection in WSNs. Proceedings of the 2018 IEEE International Conference on Software Quality, Reliability and Security Companion, Lisbon, Portugal.","DOI":"10.1109\/QRS-C.2018.00075"},{"key":"ref_8","first-page":"298","article-title":"Intrusion detection of DoS attacks in WSNs using classification techniuqes","volume":"10","author":"Abdullah","year":"2018","journal-title":"J. Fundam. Appl. Sci."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"1943","DOI":"10.1109\/TPAMI.2015.2502579","article-title":"Accelerating very deep convolutional networks for classification and detection","volume":"38","author":"Zhang","year":"2016","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"21020","DOI":"10.1109\/ACCESS.2018.2818678","article-title":"A Data-Driven Design for Fault Detection of Wind Turbines Using Random Forests and XGboost","volume":"6","author":"Zhang","year":"2018","journal-title":"IEEE Access"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"372","DOI":"10.1007\/s11424-017-6232-3","article-title":"An Improved Sensor Fault Diagnosis Scheme Based on TA-LSSVM and ECOC-SVM","volume":"31","author":"Gu","year":"2018","journal-title":"J. Syst. Sci. Complex."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"191","DOI":"10.1016\/j.enbuild.2017.02.058","article-title":"An ensemble learning framework for anomaly detection in building energy consumption","volume":"144","author":"Araya","year":"2017","journal-title":"Energy Build."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"334","DOI":"10.1109\/TII.2018.2812771","article-title":"Distributed Soft Fault Detection for Interval Type-2 Fuzzy-model-based Stochastic Systems with Wireless Sensor Networks","volume":"15","author":"Gao","year":"2018","journal-title":"IEEE Trans. Ind. Inform."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"15","DOI":"10.1016\/j.adhoc.2017.10.012","article-title":"Heterogeneous fault diagnosis for wireless sensor networks","volume":"69","author":"Swain","year":"2018","journal-title":"Ad Hoc Netw."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"8682","DOI":"10.1109\/ACCESS.2017.2705644","article-title":"Sensor fault classification based on support vector machine and statistical time-domain features","volume":"5","author":"Jan","year":"2017","journal-title":"IEEE Access"},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"208","DOI":"10.1016\/j.ymssp.2013.05.007","article-title":"Detection, identification, and quantification of sensor fault in a sensor network","volume":"40","author":"Kullaa","year":"2013","journal-title":"Mech. Syst. Signal Process."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"5581","DOI":"10.1109\/JSEN.2017.2726011","article-title":"Fault diagnosis of a rolling bearing using wavelet packet denoising and random forests","volume":"17","author":"Wang","year":"2017","journal-title":"IEEE Sens. J."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"1164","DOI":"10.1049\/iet-rpg.2017.0867","article-title":"DNN-based approach for fault detection in a direct drive wind turbine","volume":"12","author":"Teng","year":"2018","journal-title":"IET Renew. Power Gen."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"1927","DOI":"10.1049\/iet-com.2016.1074","article-title":"Genetic algorithm based fault tolerant clustering in wireless sensor network","volume":"11","author":"Rajeswari","year":"2017","journal-title":"IET Commun."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"19307","DOI":"10.3390\/s141019307","article-title":"Automatic crack detection and classification method for subway tunnel safety monitoring","volume":"14","author":"Zhang","year":"2014","journal-title":"Sensors"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"20524","DOI":"10.3390\/s150820524","article-title":"Belief function based decision fusion for decentralized target classification in wireless sensor networks","volume":"15","author":"Zhang","year":"2015","journal-title":"Sensors"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"399","DOI":"10.1016\/j.sigpro.2012.07.028","article-title":"Distributed sensor failure detection in sensor networks","volume":"93","author":"Thomos","year":"2013","journal-title":"Signal Process."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"3469","DOI":"10.1016\/j.comcom.2008.06.014","article-title":"Fault detection of wireless sensor networks","volume":"31","author":"Lee","year":"2008","journal-title":"Comput. Commun."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Li, W., Bassi, F., Dardari, D., Kieffer, M., and Pasolini, G. (2015, January 8\u201312). Low-complexity distributed fault detection for wireless sensor networks. Proceedings of the 2015 IEEE International Conference on Communications, London, UK.","DOI":"10.1109\/ICC.2015.7249395"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"29","DOI":"10.1109\/TSIPN.2016.2516821","article-title":"Defective sensor identification for WSNs involving generic local outlier detection tests","volume":"2","author":"Li","year":"2016","journal-title":"IEEE Trans. Signal Inf. Process. Over Netw."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"777","DOI":"10.1007\/s11276-017-1591-1","article-title":"DRADS: Depth and reliability aware delay sensitive cooperative routing for underwater wireless sensor networks","volume":"25","author":"Javaid","year":"2019","journal-title":"Wirel. Netw."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Ahmed, F., Wadud, Z., Javaid, N., Alrajeh, N., Alabed, M.S., and Qasim, U. (2018). Mobile Sinks Assisted Geographic and Opportunistic Routing Based Interference Avoidance for Underwater Wireless Sensor Network. Sensors, 18.","DOI":"10.3390\/s18041062"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Sher, A., Khan, A., Javaid, N., Ahmed, S., Aalsalem, M., and Khan, W. (2018). Void Hole Avoidance for Reliable Data Delivery in IoT Enabled Underwater Wireless Sensor Networks. Sensors, 18.","DOI":"10.3390\/s18103271"},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Javaid, N., Majid, A., Sher, A., Khan, W., and Aalsalem, M. (2018). Avoiding Void Holes and Collisions with Reliable and Interference-Aware Routing in Underwater WSNs. Sensors, 18.","DOI":"10.3390\/s18093038"},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"31","DOI":"10.1016\/j.jnca.2017.01.013","article-title":"Region based cooperative routing in underwater wireless sensor networks","volume":"92","author":"Javaid","year":"2017","journal-title":"J. Netw. Comput. Appl."},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Muriira, L., Zhao, Z., and Min, G. (2018). Exploiting Linear Support Vector Machine for Correlation-Based High Dimensional Data Classification in Wireless Sensor Networks. Sensors, 18.","DOI":"10.3390\/s18092840"},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"63","DOI":"10.1016\/j.neucom.2016.10.035","article-title":"Hop by Hop Congestion Avoidance in wireless sensor networks based on genetic support vector machine","volume":"223","author":"Gholipour","year":"2017","journal-title":"Neurocomputing"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"71","DOI":"10.1016\/j.compeleceng.2018.11.003","article-title":"A data-driven metric learning-based scheme for unsupervised network anomaly detection","volume":"73","author":"Aliakbarisani","year":"2019","journal-title":"Comput. Electr. Eng."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"442","DOI":"10.1016\/0005-2795(75)90109-9","article-title":"Comparison of the predicted and observed secondary structure of T4 phage lysozyme","volume":"405","author":"Matthews","year":"1975","journal-title":"Biochim. Biophys. Acta (BBA)-Protein Struct."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"12060","DOI":"10.1109\/ACCESS.2017.2787719","article-title":"An effective two-step intrusion detection approach based on binary classification and K-NN","volume":"6","author":"Li","year":"2018","journal-title":"IEEE Access"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/19\/7\/1568\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T12:42:01Z","timestamp":1760186521000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/19\/7\/1568"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,4,1]]},"references-count":35,"journal-issue":{"issue":"7","published-online":{"date-parts":[[2019,4]]}},"alternative-id":["s19071568"],"URL":"https:\/\/doi.org\/10.3390\/s19071568","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2019,4,1]]}}}