DAG-Based Trust Management and PSO-Optimized Routing for Secure Energy-Efficient Heterogeneous WSNs

Volume 28 ,Issue 2 ,November 2026 ,Pages 22-42

Authors

Tara Al Attar 1 ; Dlsoz Rashid 2 ; Hawar Sharif 2

1 Department of Computer Science, College of Science, University of Sulaimani, Sulaimani, Iraq.

2 Department of Computer Science, College of Science, University of Sulaimani, Sulaimani, Iraq

DOI logo 10.17656/sujpas.1140

Keywords

Abstract


A wireless sensor network (WSN) is an important part of the Internet of Things (IoT), enabling lightweight, long-distance wireless data collection and transmission. However, WSNs face energy limitations, security vulnerabilities, and complex topology making them susceptible to attacks (e.g., black hole, gray hole, flooding), which further degrade the performance and useful life of WSNs. This paper presents a theoretical framework addressing attacks on WSNs using trust-based management methods and directed acyclic graphs (DAGs) to develop optimized routing methods. Particle swarm optimization (PSO) using a composite fitness function to identify an optimal communication path based on energy efficiency, trust-based security, and the ratio of packets transmitted. Fixed weights were assigned to energy, trust, and hop count as follows: 0.4, 0.4, and 0.2, providing for fast convergence to optimal solutions. The trust scores were calculated hierarchically using the DAG structure and node resources and then used to identify malicious nodes using a hybrid random forest classifier. The effectiveness of this framework was evaluated using the WSN-Dataset (374,286 records with four different classes of attacks), which resulted in an accuracy rate of 99.7 percent and an outperformance of the decision tree (98.13 %), K-NN (99.42 %), and random forest (99.42 % without trust-based security) algorithms. The evaluation showed that the method developed in this study was statistically significant based on Friedman ( and Nemenyi, Wilcoxon, and McNemar’s tests with Bonferroni's correction (, and all Cohen’s d values between 1.54 and 2.61 were achieved.

References


  1. Abdulqadder, I. H., Zou, D. & Aziz, I. T., (2023): The DAG blockchain: A secure edge assisted honeypot for attack detection and multi-controller based load balancing in SDN 5G. Future Generation Computer Systems, 141, pp. 339-354. https://doi.org/10.1016/j.future.2022.11.008
  2. Abdulzahra, A. M. K., Al-Qurabat A. K. M. & Abdulzahra, S. A. (2023): Optimizing energy consumption in WSN-based IoT using unequal clustering and sleep scheduling methods. Internet of Things, 22, 100765. https://doi.org/10.1016/j.iot.2023.100765
  3. Akyildiz, I. F., Su, W., Sankarasubramaniam, Y. & Cayirci, E., (2002): Wireless sensor networks: a survey. Computer Networks, 38(4), pp. 393-422. https://doi.org/10.1016/S1389-1286(01)00302-4
  4. Al Attar, T. N. A. (2024): A Hybrid Genetic Algorithm-Particle Swarm Optimization Approach for Enhanced Text Compression. UHD Journal of Science and Technology, 8(2), pp. 63-74. https://doi.org/10.21928/uhdjst.v8n2y2024.pp63-74.
  5. Al Attar, T. N. (2026): Integrated Malware Detection and Compression Framework for Secure and Efficient Cloud Storage. Passer Journal of Basic and Applied Sciences, 8(1), pp. 508–520. https://doi.org/10.24271/PSR.2026.565528.2454
  6. Alsafasfeh, M., Alhasanat, A., & Alfalahat, S., (2025): Energy Evaluation of Dependent Malicious Nodes Detection in Arduino-based Internet of Thing Networks. International Journal of Electrical and Computer Engineering (IJECE), 15(5), pp.4983-4992. https://doi.org/10.11591/ijece.v15i5.pp4983-4992.
  7. Anastasi, G., Conti, M., Di Francesco, M. & Passarella, A., (2009): Energy conservation in wireless sensor networks: A survey. Ad hoc networks, 7(3), pp. 537-568. https://doi.org/10.1016/j.adhoc.2008.06.003
  8. Anwar, R. W., Abrar, M., Salam, A. & Ullah, F., (2025): Federated learning with LSTM for intrusion detection in IoT-based wireless sensor networks: a multi dataset analysis. PeerJ Computer Science, 11, 27. https://doi.org/10.7717/peerj-cs.2751
  9. Awotunde, J.B., Ayo, F.E., Panigrahi, R., Garg, A., Bhoi, A. & Barsocchi, P., (2023): A Multi-level Random Forest Model-Based Intrusion Detection Using Fuzzy Inference System for Internet of Things Networks. International Journal of Computational Intelligence Systems, 16, 31. https://doi.org/10.1007/s44196-023-00205-w
  10. Bao, F., Chen, I., Chang, M. & Cho, J., (2012): Hierarchical trust management for wireless sensor networks and its applications to trust-based routing and intrusion detection. IEEE Transactions on Network and Service Management, 9(2), pp. 169-183. https://doi.org/10.1109/TCOMM.2012.031912.110179
  11. Bendjeddou, A., Laoufi, H. & Boudjit, S., (2018): LEACH-S: Low energy adaptive clustering hierarchy for sensor network. In International Symposium on Networks, Computers and Communications (ISNCC), 2018. IEEE. https://doi.org/10.1109/ISNCC.2018.8531049
  12. Boukerche, A. & Ren, Y., (2008): A trust-based security system for ubiquitous and pervasive computing environments. Computer communications, 31(18), pp. 4343-4351. https://doi.org/10.1016/j.comcom.2008.05.007
  13. Brandt, A., Hui, J., Kelsey, R., Levis, P., Pister, K., Struik, R., Vasseur, J.P. & Alexander, R., (2012): Rfc 6550: Rpl: Ipv6 routing protocol for low-power and lossy networks. RFC Editor. DOI 10.17487/RFC6550
  14. Breiman, L., (2001): Random forests. Machine learning, 45(1), pp. 5-32. https://doi.org/10.1023/A:1010933404324
  15. Buczak, A. L. & Guven, E., (2015): A survey of data mining and machine learning methods for cyber security intrusion detection. IEEE Communications surveys & tutorials, 18(2), pp. 1153-1176. https://doi.org/10.1109/COMST.2015.2494502
  16. Clerc, M. & Kennedy, J., (2002): The particle swarm-explosion, stability, and convergence in a multidimensional complex space. IEEE Transactions on Evolutionary Computation, 6(1), pp. 58-73. https://doi.org/10.1109/4235.985692
  17. Cormen, T. H., Leiserson, C. E., Rivest, R. L. & Stein, C., (2022): Introduction to algorithms, 4th ed. MIT Press.
  18. Ganeriwal, S., Balzano, L. K. & Srivastava, M. B., (2008): Reputation-based framework for high integrity sensor networks. ACM Transactions on Sensor Networks (TOSN). 4(3), pp. 1-37. https://doi.org/10.1145/1029102.1029115
  19. Gnawali, O. and Levis, P., (2012): The minimum rank with hysteresis objective function. RFC Editor. DOI 10.17487/RFC6719
  20. Gupta, N., Ravisankar, M., Balhara, S. & Dargar, Sh. K., (2025): Enhanced reliability in wireless sensor networks: federated learning with Bayesian weighted random forest for secure and privacy-preserving threat detection. Wireless Networks, pp. 1-17. https://doi.org/10.1007/s11276-025-03977-5
  21. Heinzelman, W. R., Chandrakasan, A. & Balakrishnan, H., (2000): Energy-efficient communication protocol for wireless microsensor networks. In: Proceedings of the 33rd Annual Hawaii International Conference on System Sciences. IEEE. https://doi.org/10.1109/HICSS.2000.926982
  22. Kamgueu, P. O., Nataf, E. & Ndie, T. D., (2018): Survey on RPL enhancements: A focus on topology, security and mobility. Computer Communications, 120, pp. 10-21. https://doi.org/10.1016/j.comcom.2018.02.011
  23. Kaur, T. & Kumar, D., (2020): MACO-QCR: Multi-objective ACO-based QoS-aware cross-layer routing protocols in WSN. IEEE Sensors Journal, 21(5), pp. 6775-6783. https://doi.org/10.1109/JSEN.2020.3038241
  24. Kennedy, J. & Eberhart, R., (1995): Particle swarm optimization. In Proceedings of ICNN'95-international conference on neural networks. IEEE. https://doi.org/10.1109/ICNN.1995.488968
  25. Li, X., Zhou, F. & Du, J., (2013): LDTS: A lightweight and dependable trust system for clustered wireless sensor networks. IEEE Transactions on Information Forensics and Security, 8(6), pp. 924-935. https://doi.org/10.1109/TIFS.2013.2240299
  26. Lindsey, S. & Raghavendra, C. S., (2002): PEGASIS: Power-efficient gathering in sensor information systems. In Proceedings, IEEE aerospace conference. IEEE. https://doi.org/10.1109/AERO.2002.1035242
  27. Nalinipriya, G., Lydia, E. L., Sree, S. R., Nikolenko, D., Potluri, S., Ramesh, J. V. N. & Jayachandran, Sh., (2024): Optimal directed acyclic graph federated learning model for energy-efficient IoT communication networks. Scientific Reports, 14(1), 22525. https://doi.org/10.1038/s41598-024-71995-y
  28. Natarajan, R., Megharaj, G., Marchewka, A., Divakarachari, P. B. & Hans, M. R., (2022): Energy and distance based multi-objective red fox optimization algorithm in wireless sensor network. Sensors, 22(10), 3761. https://doi.org/10.3390/s22103761
  29. Padmavathi, D. G. & Shanmugapriya, M., (2009): A survey of attacks, security mechanisms and challenges in wireless sensor networks. arXiv preprint arXiv:0909.0576. https://doi.org/10.48550/arXiv.0909.0576
  30. Pandey, V. K., Prakash, S., Gupta, T. K., Sinha, P., Yang, T., Rathore, R. S., Wang, L., Tahir, S. & Bakhsh, S. T., (2025): Enhancing intrusion detection in wireless sensor networks using a Tabu search based optimized random forest. Scientific Reports, 15(1), 18634. https://doi.org/10.1038/s41598-025-03498-3
  31. Pantazis, N. A., Nikolidakis, S. A. & Vergados, D. D., (2012): Energy-efficient routing protocols in wireless sensor networks: A survey. IEEE Communications surveys & tutorials, 15(2), pp. 551-591. https://doi.org/10.1109/SURV.2012.062612.00084
  32. Prasad, D. R., Naganjaneyulu, P. & Prasad, K. S., (2016): Energy efficient clustering in multi-hop wireless sensor networks using differential evolutionary MOPSO. Brazilian Archives of Biology and Technology, 59(spe2), e16161011. https://doi.org/10.1590/1678-4324-2016161011
  33. Rashid, D. A., Al Attar, T. N. A., & Sharif, H. O. S., (2026): Personalized Few-Shot Federated Meta-Learning with Transfer Knowledge for Zero-Day Attack Detection in Resource-Constrained Wireless Sensor Security Under 6G THz Networks. UHD Journal of Science and Technology, 10(1), pp. 45–57. https://doi.org/10.21928/uhdjst.v10n1y2026.pp45-57
  34. Revanesh, M., Acken, J. M. & Sridhar, V., (2022): DAG block: Trust aware load balanced routing and lightweight authentication encryption in WSN. Future Generation Computer Systems, 140, pp. 402-421. https://doi.org/10.1016/j.future.2022.10.011
  35. Saleh, A., Joshi, P., Rathore, R. S., & Sengar, S. S., (2022): Trust-Aware Routing Mechanism through an Edge Node for IoT-Enabled Sensor Networks. Sensors, 22(20), 7820. https://doi.org/10.3390/s22207820
  36. Singh, O., Rishiwal, V., Chaudhry, R. & Yadav, M., (2021): Multi-objective optimization in WSN: Opportunities and challenges. Wireless Personal Communications, 121(1), pp. 127-152. https://doi.org/10.1007/s11277-021-08627-5
  37. Talukder, M. A., Khalid, M. & Sultana, N., (2025): A hybrid machine learning model for intrusion detection in wireless sensor networks leveraging data balancing and dimensionality reduction. Scientific Reports, 15(1), 4617. https://doi.org/10.1038/s41598-025-87028-1
  38. Tawfeek, M. A., Alrashdi, I., Alruwaili, M., & Talaat, F. M., (2025): A Fuzzy Multi-Objective Framework for Energy Optimization and Reliable Routing in Wireless Sensor Networks via Particle Swarm Optimization. Computers, Materials & Continua, 83(2), pp. 2773–2792. https://doi.org/10.32604/cmc.2025.061773
  39. Winter, T. & Thubert, P. (2012). RPL: IPv6 routing protocol for low-power and lossy networks.
  40. Xue, X., Shanmugam, R., Palanisamy, S., Khalaf, O. I., Selvaraj, D. & Abdulsahib, G. M., (2023): A hybrid cross layer with harris-hawk-optimization-based efficient routing for wireless sensor networks. Symmetry. 15(2), 438. https://doi.org/10.3390/sym15020438
  41. Yick, J., Mukherjee, B. & Ghosal, D., (2008): Wireless sensor network survey. Computer Networks, 52(12), pp. 2292–2300.
  42. https://doi.org/10.1016/j.comnet.2008.04.002
  43. Zhou, Z., Xu, J., Zhang, Z., Lei, F. & Fang, W., (2017): Energy-efficient optimization for concurrent compositions of WSN services. IEEE Access, 5, pp. 19994–20008. https://doi.org/10.1109/ACCESS.2017.2752756
Statistics
  • Article view92
  • Downloads105
  • First online22 November 2026
  • Published at22 November 2026

  • RIS
  • BibTeX
  • EndNote
  • Mendeley
  • APA (7th edition)
  • MLA (9th edition)
  • Chicago
  • Harvard
  • IEEE
  • Vancouver

© 2026 The Author(s)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.