Multimedia ResearchISSN:2582-547X

ResNeXT_TEI: A Deep Learning Framework with Integrated Loss Function for Attack Detection

Abstract

Detecting attacks in Wireless Sensor Networks (WSNs) is vital to protect data integrity, prevent unauthorized access, ensure reliable communication, and protect resource-constrained nodes from threats like spoofing and routing attacks in hostile environments. Since WSNs are typically deployed in unattended and resource-limited settings, they are highly susceptible to both external adversaries and internal compromised nodes. Effective identification of malicious activities in WSNs safeguards data accuracy, enhances operational reliability, and supports extended system lifespan. This is particularly important in mission-critical applications such as military surveillance, disaster response, and industrial monitoring, where undetected attacks could cause catastrophic failures. However, prevailing methods often fail to attain high detection efficiency due to noisy inputs, dimensional complexity, and high false positives. High-dimensional sensor data often contains redundant or irrelevant features, which makes traditional machine learning models prone to overfitting and misclassification. Thus, an effective model, termed ResNeXT_Tri-Error Index (ResNeXT_TEI), is established for attack detection in WSNs. Initially, WSN is simulated, and then, the input network log data is applied to data normalization. The data normalization is performed by using median normalization for transforming the data into a consistent format. After that, feature selection is done by utilizing the Fisher score. Lastly, attack detection is accomplished by the introduced ResNeXT_TEI. In addition, TEI is developed by the combination of Mean Squared Logarithmic Error (MSLE), Mean Bias Error (MBE), and Mean Absolute Error (MAE). Furthermore, the developed ResNeXT_TEI achieved a superior accuracy, True Positive Rate (TPR), and True Negative Rate (TNR) of 96.690%, 97.368%, and 96.118%, respectively.

References

  • M. R. Ahmed, S. M. Tahsien, M. Aseeri and M. S. Kaiser, “Malicious attack detection in underwater wireless sensor network,” in IEEE International Conference on Telecommunications and Photonics (ICTP), 2015.
  • G. A. Sukkar and S. Al-Sharaeh, “Enhancing Security in Wireless Sensor Networks: A Machine Learning-based DoS Attack Detection,” Engineering, Technology & Applied Science Research, vol. 15, no. 1, pp. 19712-19719, 2025.
  • K. Ávila, P. Sanmartin, D. Jabba and J. Gómez, “An analytical survey of attack scenario parameters on the techniques of attack mitigation in WSN,” Wireless Personal Communications, vol. 122, no. 4, pp. 3687-3718, 2022.
  • A. John, I. F. B. Isnin, S. H. H. Madni and M. Faheem, “Cluster-based wireless sensor network framework for denial-of-service attack detection based on variable selection ensemble machine learning algorithms,” Intelligent Systems with Applications, vol. 22, p. 200381, 2024.
  • L. S. R. Boddu, S. M. M. A. A. Haldorai, P. S. Reddy, S. Feng and J. Qin, “Node replication attack detection in distributed wireless sensor networks,” Wireless Communications and Mobile Computing, no. 1, p. 7252791, 2022.
  • A. R. Affane M. and H. Satori, “Machine learning attack detection based-on stochastic classifier methods for enhancing of routing security in wireless sensor networks,” Ad Hoc Networks, vol. 163, p. 103581, 2024.
  • X. Huan, K. S. Kim and J. Zhang, “NISA: Node identification and spoofing attack detection based on clock features and radio information for wireless sensor networks,” IEEE Transactions on Communications, vol. 69, no. 7, pp. 4691-4703, 2021.
  • T. S. Delwar, U. Aras, S. Mukhopadhyay, A. Kumar, U. Kshirsagar, Y. Lee, M. Singh and J.-Y. Ryu, “The intersection of machine learning and wireless sensor network security for cyber-attack detection: a detailed analysis,” Sensors, vol. 24, no. 19, p. 6377, 2024.
  • M. R. Ahmed, M. Aseeri, M. S. Kaiser, N. Z. Zenia and Z. I. Chowdhury, “A novel algorithm for malicious attack detection in UWSN,” in Electrical Engineering and Information Communication Technology (ICEEICT), 2015.
  • R. B. Ramesh, S. J. J. Thangaraj, G. M. A. Sagayee and K. Saravanan, “Detection and prevention in WSN security framework using deep learning against black hole and wormhole attacks,” Ain Shams Engineering Journal, vol. 16, no. 10, p. 103624, 2025.
  • M. A. Elsadig, “Detection of denial-of-service attack in wireless sensor networks: A lightweight machine learning approach,” IEEE Access, vol. 11, pp. 83537-83552, 2023.
  • N. Dhanalakshmi, “Unmasking encryption effects and modified Deep learning approaches for attack classification in WSN,” Expert Systems with Applications, vol. 266, p. 126163, 2025.
  • B. Meenakshi, D. Karunkuzhali, “Enhancing cyber security in WSN using optimized self-attention-based provisional variational auto-encoder generative adversarial network,” Computer Standards & Interfaces, vol. 88, p. 103802, 2024.
  • H. M. Saleh, H. Marouane, A. Fakhfakh, “Stochastic gradient descent intrusions detection for wireless sensor network attack detection system using machine learning,” IEEE Access, vol. 12, pp. 3825-3836, 2024.
  • S. Nandhini, A. Rajeswari, N. R. Shanker, “Cyber attack detection in IoT-WSN devices with threat intelligence using hidden and connected layer based architectures,” Journal of Cloud Computing, vol. 13, no. 1, p. 159, 2024.
  • F. T. Lima and V. M. A. Souza, “A large comparison of normalization methods on time series,” Big Data Research, vol. 34, p. 100407, 2023.
  • M. Rostami, K. Berahmand and S. Forouzandeh, “A novel community detection based genetic algorithm for feature selection,” Journal of Big Data, vol. 8, no. 1, p. 2, 2021.
  • D. P. Yadav, A. S. Jalal, D. Garlapati, K. Hossain, A. Goyal, G. Pant, “Deep learning-based ResNeXt model in phycological studies for future,” Algal Research, vol. 50, p. 102018, 2020.
  • A. B. Adomako, E. J. Jamshidi, Y. Yusup, E. Elsebakhi, M. H. Jaafar, M. I. Ishak, H. San Lim, M. I. Ahmad, “Deep learning approaches for bias correction in WRF model outputs for enhanced solar and wind energy estimation: A case study in East and West Malaysia,” Ecological Informatics, vol. 84, p. 102898, 2024.
  • “The Bot-IoT dataset,” [Online]. Available: https://ieee-dataport.org/documents/bot-iot-dataset. [Accessed August 2025].