{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,27]],"date-time":"2026-02-27T12:23:41Z","timestamp":1772195021565,"version":"3.50.1"},"reference-count":30,"publisher":"MDPI AG","issue":"3","license":[{"start":{"date-parts":[[2026,2,27]],"date-time":"2026-02-27T00:00:00Z","timestamp":1772150400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Future Internet"],"abstract":"<jats:p>Wireless sensor networks (WSNs) are integral components of smart environments. These allow monitoring and communication to take place autonomously across distributed sensor nodes. Nevertheless, they suffer from constrained resources that make them susceptible to routine-layer attacks. These specifically involve blackhole, flooding, selective forwarding attack traffic and normal traffic. The conventional machine learning and deep learning methods employed are effective in catering to these attacks, yet they have generalization issues when the network conditions are dynamic. The models are generally trained on the local features that make them more dependable and less interpretable. To overcome these issues, this paper proposes an attention-driven transformer encoder for tabular WSN traffic, designed for robust and interpretable intrusion detection in WSNs. The model represents the WSN features as sequential tokens and employs multi-head self-attention to capture global and local dependencies among sensor attributes and employs a multi-head self-attention for capturing the local and global dependencies among the sensor attributes. The framework integrated several components, including normalization, chi-square-based feature selection, and positional embedding. These are followed by multi-layer transformer encoding blocks for the feature fusion and subsequent classification. The framework has been evaluated on the publicly available WSN dataset. Results have been shown to attain an accuracy of 99.37%, which makes it outperform the traditional deep learning baseline models. The comparative analysis has shown the model to be superior in terms of generalization and reduced convergence time. It further offers enhanced interpretability that makes it a good fit to be deployed in real-world scenarios where resources can be constrained.<\/jats:p>","DOI":"10.3390\/fi18030119","type":"journal-article","created":{"date-parts":[[2026,2,27]],"date-time":"2026-02-27T10:41:02Z","timestamp":1772188862000},"page":"119","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Attention-Based Transformer Encoder for Secure Wireless Sensor Operations"],"prefix":"10.3390","volume":"18","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-4106-4559","authenticated-orcid":false,"given":"Mohammad H.","family":"Baniata","sequence":"first","affiliation":[{"name":"Department of Information Systems and Networks, Faculty of Information Technology, The World Islamic Sciences and Education University, Amman 11947, Jordan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5104-1177","authenticated-orcid":false,"given":"Chayut","family":"Bunterngchit","sequence":"additional","affiliation":[{"name":"Division of Industrial and Logistics Engineering Technology, Faculty of Engineering and Technology, King Mongkut\u2019s University of Technology North Bangkok, Rayong Campus, Rayong 21120, Thailand"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0029-0859","authenticated-orcid":false,"given":"Laith H.","family":"Baniata","sequence":"additional","affiliation":[{"name":"Department of Autonomous Systems, Faculty of Artificial Intelligence, Al-Balqa Applied University, Al-Salt 19117, Jordan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3890-9792","authenticated-orcid":false,"given":"Malek A.","family":"Almomani","sequence":"additional","affiliation":[{"name":"Department of Software Engineering, Faculty of Information Technology, The World Islamic Sciences and Education University, Amman 11947, Jordan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6740-2491","authenticated-orcid":false,"given":"Muhannad","family":"Tahboush","sequence":"additional","affiliation":[{"name":"Department of Information Systems and Networks, Faculty of Information Technology, The World Islamic Sciences and Education University, Amman 11947, Jordan"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2026,2,27]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Kandris, D., Nakas, C., Vomvas, D., and Koulouras, G. (2020). Applications of Wireless Sensor Networks: An Up-to-Date Survey. Appl. Syst. Innov., 3.","DOI":"10.3390\/asi3010014"},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Bunterngchit, C., Baniata, L.H., Albayati, H., Baniata, M.H., Alharbi, K., Alshammari, F.H., and Kang, S. (2025). A Hybrid Convolutional\u2013Transformer Approach for Accurate Electroencephalography (EEG)-Based Parkinson\u2019s Disease Detection. Bioengineering, 12.","DOI":"10.3390\/bioengineering12060583"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"6470359","DOI":"10.1155\/2019\/6470359","article-title":"Underwater Wireless Sensor Networks: A Review of Recent Issues and Challenges","volume":"2019","author":"Awan","year":"2019","journal-title":"Wirel. Commun. Mob. Comput."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"1313","DOI":"10.1007\/s10586-017-1622-9","article-title":"Detection and prevention of black hole and selective forwarding attack in clustered WSN with Active Trust","volume":"22","author":"Mehetre","year":"2018","journal-title":"Clust. Comput."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Ahmim, A., Maglaras, L., Ferrag, M.A., Derdour, M., and Janicke, H. (2019, January 29\u201331). A Novel Hierarchical Intrusion Detection System Based on Decision Tree and Rules-Based Models. Proceedings of the 2019 15th International Conference on Distributed Computing in Sensor Systems (DCOSS), Santorini Island, Greece.","DOI":"10.1109\/DCOSS.2019.00059"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"1397","DOI":"10.1007\/s10586-019-03008-x","article-title":"An integrated rule based intrusion detection system: Analysis on UNSW-NB15 data set and the real time online dataset","volume":"23","author":"Kumar","year":"2019","journal-title":"Clust. Comput."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"57542","DOI":"10.1109\/ACCESS.2021.3071263","article-title":"A Review of Rule Learning-Based Intrusion Detection Systems and Their Prospects in Smart Grids","volume":"9","author":"Liu","year":"2021","journal-title":"IEEE Access"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"80348","DOI":"10.1109\/ACCESS.2023.3296444","article-title":"Comparative Analysis of Intrusion Detection Systems and Machine Learning-Based Model Analysis Through Decision Tree","volume":"11","author":"Azam","year":"2023","journal-title":"IEEE Access"},{"key":"ref_9","first-page":"88","article-title":"Machine Learning-Based Intrusion Detection System: An Experimental Comparison","volume":"2","author":"Hidayat","year":"2022","journal-title":"J. Comput. Cogn. Eng."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Ahmad, R., Wazirali, R., and Abu-Ain, T. (2022). Machine Learning for Wireless Sensor Networks Security: An Overview of Challenges and Issues. Sensors, 22.","DOI":"10.3390\/s22134730"},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Delwar, T.S., Aras, U., Mukhopadhyay, S., Kumar, A., Kshirsagar, U., Lee, Y., Singh, M., and Ryu, J.Y. (2024). The Intersection of Machine Learning and Wireless Sensor Network Security for Cyber-Attack Detection: A Detailed Analysis. Sensors, 24.","DOI":"10.3390\/s24196377"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"101574","DOI":"10.1109\/ACCESS.2021.3097247","article-title":"Deep Learning-Based Intrusion Detection Systems: A Systematic Review","volume":"9","author":"Lansky","year":"2021","journal-title":"IEEE Access"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Awajan, A. (2023). A Novel Deep Learning-Based Intrusion Detection System for IoT Networks. Computers, 12.","DOI":"10.3390\/computers12020034"},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Bunterngchit, C., Pornchaivivat, S., and Bunterngchit, Y. (2019, January 7\u20139). Productivity Improvement by Retrofit Concept in Auto Parts Factories. Proceedings of the 2019 8th International Conference on Industrial Technology and Management (ICITM), Cambridge, UK.","DOI":"10.1109\/ICITM.2019.8710655"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"371","DOI":"10.1016\/j.aej.2023.09.023","article-title":"Deep learning-based intrusion detection approach for securing industrial Internet of Things","volume":"81","author":"Soliman","year":"2023","journal-title":"Alex. Eng. J."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Mohammadpour, L., Ling, T.C., Liew, C.S., and Aryanfar, A. (2022). A Survey of CNN-Based Network Intrusion Detection. Appl. Sci., 12.","DOI":"10.3390\/app12168162"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"600","DOI":"10.1109\/JTEHM.2024.3448457","article-title":"Simultaneous EEG-fNIRS Data Classification Through Selective Channel Representation and Spectrogram Imaging","volume":"12","author":"Bunterngchit","year":"2024","journal-title":"IEEE J. Transl. Eng. Health Med."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Kim, J., Kim, J., Kim, H., Shim, M., and Choi, E. (2020). CNN-Based Network Intrusion Detection against Denial-of-Service Attacks. Electronics, 9.","DOI":"10.3390\/electronics9060916"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"65","DOI":"10.1186\/s40537-021-00448-4","article-title":"Intrusion detection systems using long short-term memory (LSTM)","volume":"8","author":"Laghrissi","year":"2021","journal-title":"J. Big Data"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"115524","DOI":"10.1016\/j.eswa.2021.115524","article-title":"A bidirectional LSTM deep learning approach for intrusion detection","volume":"185","author":"Imrana","year":"2021","journal-title":"Expert Syst. Appl."},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Mahmud, M., Doborjeh, M., Wong, K., Leung, A.C.S., Doborjeh, Z., and Tanveer, M. (2025). Enhanced Cross-Subject Classification of Hybrid EEG-fNIRS Data Using the Simplified Multimodal Transformer Network. Proceedings of the International Conference on Neural Information Processing, Springer Nature.","DOI":"10.1007\/978-981-96-6591-4"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"99837","DOI":"10.1109\/ACCESS.2022.3206425","article-title":"CNN-LSTM: Hybrid Deep Neural Network for Network Intrusion Detection System","volume":"10","author":"Halbouni","year":"2022","journal-title":"IEEE Access"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"3424819","DOI":"10.1155\/2022\/3424819","article-title":"Distributed Deep CNN-LSTM Model for Intrusion Detection Method in IoT-Based Vehicles","volume":"2022","author":"Alferaidi","year":"2022","journal-title":"Math. Probl. Eng."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Thapa, N., Liu, Z., KC, D.B., Gokaraju, B., and Roy, K. (2020). Comparison of Machine Learning and Deep Learning Models for Network Intrusion Detection Systems. Future Internet, 12.","DOI":"10.3390\/fi12100167"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"2109","DOI":"10.1109\/JIOT.2023.3292209","article-title":"WSN-BFSF: A New Data Set for Attacks Detection in Wireless Sensor Networks","volume":"11","author":"Dener","year":"2024","journal-title":"IEEE Internet Things J."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"12153","DOI":"10.1109\/JIOT.2023.3333870","article-title":"A Privacy-Preserving Collaborative Jamming Attacks Detection Framework Using Federated Learning","volume":"11","author":"Houda","year":"2024","journal-title":"IEEE Internet Things J."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"273","DOI":"10.1109\/TCE.2024.3442015","article-title":"An Innovative Secure and Privacy-Preserving Federated Learning-Based Hybrid Deep Learning Model for Intrusion Detection in Internet-Enabled Wireless Sensor Networks","volume":"71","author":"Jeyakumar","year":"2025","journal-title":"IEEE Trans. Consum. Electron."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"46601","DOI":"10.1109\/ACCESS.2025.3550800","article-title":"CBCTL-IDS: A Transfer Learning-Based Intrusion Detection System Optimized With the Black Kite Algorithm for IoT-Enabled Smart Agriculture","volume":"13","author":"Zhou","year":"2025","journal-title":"IEEE Access"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"41525","DOI":"10.1109\/ACCESS.2019.2895334","article-title":"Deep Learning Approach for Intelligent Intrusion Detection System","volume":"7","author":"Vinayakumar","year":"2019","journal-title":"IEEE Access"},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"1768","DOI":"10.1109\/JSEN.2024.3489623","article-title":"ST-IAOA-XGBoost: An Efficient Data-Balanced Intrusion Detection Method for WSN","volume":"25","author":"Jiang","year":"2025","journal-title":"IEEE Sens. J."}],"container-title":["Future Internet"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-5903\/18\/3\/119\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,2,27]],"date-time":"2026-02-27T10:52:27Z","timestamp":1772189547000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-5903\/18\/3\/119"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,2,27]]},"references-count":30,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2026,3]]}},"alternative-id":["fi18030119"],"URL":"https:\/\/doi.org\/10.3390\/fi18030119","relation":{},"ISSN":["1999-5903"],"issn-type":[{"value":"1999-5903","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,2,27]]}}}