Abstract
In wireless sensor networks (WSNs), energy-efficient clustering and adaptive routing are key to extending network lifetime and ensuring reliable communication under dynamic conditions. Although numerous metaheuristic- and learning-based schemes have been developed to address these challenges, existing methods may suffer from premature convergence, imbalanced energy utilization, and limited generalization capability when network conditions vary, which restricts their long-term effectiveness. To address these limitations, an intelligent clustering and routing protocol called QPSODRL (Quantum Particle Swarm Optimization and Deep Reinforcement Learning), that integrates an enhanced Quantum Particle Swarm Optimization (QPSO) and Deep Reinforcement Learning (DRL), is proposed in this paper. In the clustering phase based on QPSO, an entropy-guided activation strategy is introduced to dynamically switch between global exploration and local exploitation, based on the network’s energy distribution entropy. Additionally, an elite-guided quantum perturbation mechanism is adopted to drive particles toward promising regions while maintaining diversity, significantly improving convergence quality. In the routing phase, a modified Dueling Double Deep Q-Network (D3QN) is extended with an advantage entropy regularization term, which encourages policy diversity and avoids overfitting, thereby increasing robustness against topology variations. Furthermore, an Enhanced Prioritized Experience Replay (E-PER) strategy is integrated to adjust sampling priorities based on temporal-difference errors, residual energy, and communication cost, accelerating policy convergence in energy-constrained environments. Extensive simulation results demonstrate that QPSODRL outperforms four state-of-the-art protocols in terms of network lifetime, load balancing, throughput, and energy consumption, validating its superiority in optimization accuracy, learning efficiency, and environmental adaptability.
Similar content being viewed by others
Data availability
The datasets used and/or analysed during the current study available from the corresponding author on reasonable request.
References
Trigka, M. & Dritsas, A. E. Wireless sensor networks: from fundamentals and applications to innovations and future trends. IEEE Access 13(2025), 96365–96399 (2025).
Lavanya, Y. & Rao, A. M. Optimized energy-efficient routing in agriculture using wireless sensor networks. Peer-to-Peer Networking Appl. 18(2025), 1–12 (2025).
Hu, H. S. et al. A novel particle swarm optimization-based clustering and routing protocol for wireless sensor networks. Wireless Pers. Commun. 133 (2023), 2175–2202 (2023).
Adu-manu, K. S., Amoako, E. & Engmann, F. Advancements in machine learning-enhanced green wireless sensor networks: a comprehensive survey on energy efficiency, network performance, and future directions. J. Sens. 2025, 1–25 (2025).
Carolina, D. V. S., Alma, R. & Cesar Podolfo, A. P. A survey of energy-efficient clustering routing protocols for wireless sensor networks based on metaheuristic approaches. Artif. Intell. Rev. 56 (9), 9699–9770 (2023).
Arulanandam, B., Sattar, K. N., Prado, R. P. & Parameshchari, B. D. An efficient cluster based routing in wireless sensor networks using multiobjective-perturbed learning and mutation strategy based artificial rabbits optimization. IET Commun. 19(2025), 1–13 (2025).
Zhang, W. F., Lan, Y. L., Lin, A. P. & Xiao, M. An adaptive clustering routing protocol for wireless sensor networks based on a novel memetic algorithm. IEEE Sens. J. 25 (1), 8929–8941 (2025).
Zhao, G. L. & Meng, X. M. Routing in wireless sensor networks using clustering through combining Whale optimization algorithm and genetic algorithm. Int. J. Commun Syst 38(2025), 1–17 (2025).
Yang, X. et al. WOAD3QN-RP: an intelligent routing protocol in wireless sensor networks - a swarm intelligence and deep reinforcement learning based approach. Expert Syst. Appl. 246(2025), 1–17 (2024).
Lakshmi, M. S. et al. Computational intelligence techniques for energy efficient routing protocols in wireless sensor networks: a critique. Trans. Emerg. Telecommun. Technol. 35(2024), 1–27 (2024).
Walid, K. G. & Suzan, S. Multi-objective intelligent clustering routing schema for internet of things enabled wireless sensor networks using deep reinforcement learning. Cluster Comput. 01(2024), 1–2021 (2024).
Jain, A. & Goel, A. K. Energy efficient fuzzy routing protocol for wireless sensor networks. Wirel. Personal Communication. 110 (3), 1459–1474 (2020).
Guanjia, A. K. S. & Karan, V. GA-UCR: genetic algorithm based unequal clustering and routing protocol for wireless sensor networks. Wireless Personal Commun. 128(2023), 537–558 (2023).
Balamurugan, A., Janakiraman, S., Priya, M. D. & Malar, C. J. Hybrid marine predators optimization and improved particle swarm optimization-based optimal cluster routing in wireless sensor networks (WSNs). China Commun. 19 (6), 219–247 (2022).
Maximus, A. R. & Balaji, S. Energy-efficient fuzzy logic with barnacle mating optimization-based clustering and hybrid optimized cross-layer routing in wireless sensor network. Internat. J. Commun. Syst. 38(2025), 1–24 (2025).
Umarani, C., Ramalingam, S., Dhanasekaran, S. & Baskaran, K. A hybrid machine learning and improved social spider optimization based clustering and routing protocol for wireless sensor network. Wireless Netw. 31 (2), 1885–1910 (2024).
Elkhediri, S., Selmi, A., Khan, R. U., Moulahi, T. & Lorenz, P. Energy efficient cluster routing protocol for wireless sensor networks using hybrid metaheuristic approache’s. Ad. Hoc. Networks 158(2024), 1–19 (2024).
Dinesh, K. & Svn, S. K. GWO-SMSLO: grey Wolf optimization based clustering with secured modified sea Lion optimization routing algorithm in wireless sensor networks. Peer-to-Peer Netw. Appl. 17 (2), 586–611 (2024).
Liu, N. et al. EDRP-GTDQN: an adaptive routing protocol for energy and delay optimization in wireless sensor networks using game theory and deep reinforcement learning. Ad. Hoc. Networks 166(2025), 1–15 (2025).
Manogaran, N. et al. Developing a novel adaptive double deep Q-learning-based routing strategy for IoT-based wireless sensor network with federated learning. Sensors 25 (10), 1–30 (2025).
Nadanam, P., Kumaratharan, N. & Devi, M. A. Innovative hybrid framework for routing and clustering in wireless sensor networks with quantum optimization. Cybernet. Syst. 6(2025), 1–36 (2025).
Wang, C. H., Hu, H. S. & Fan, X. J. Intelligent clustering and routing protocol for wireless sensor networks using quantum inspired Harris Hawk optimizer and deep reinforcement learning. Ad Hoc Networks 178(2025), 1–15 (2025).
Liu, Y. et al. QEGWO: energy-efficient clustering approach for industrial wireless sensor networks using quantum-related bioinspired optimization. IEEE Internet Things J. 9 (23), 23691–23704 (2022).
Hu, H. S., Fan, X. J. & Wang, C. H. Energy efficient clustering and routing protocol based on quantum particle swarm optimization and fuzzy logic for wireless sensor networks. Sci. Rep. 14 (1), 1–19 (2024).
Goyal, R. & Tomar, A. Revolutionanizing wireless rechargeable sensor networks: speed optimization-based charging scheduling scheme (SOCSS) for efficient multi-node energy transfer. Swarm Evol. Comput. 96 (2025), 1–16 (2025).
Wang, Z. D., Shao, L. W., Yang, S. X., Wang, J. L. & Li, D. H. CRLM: a cooperative model based on reinforcement learning and metaheurisic algorithm of routing protocols in wireless sensor networks. Comput. Netw. 236 (2023), 1–14 (2023).
Wankhade, M. P., Ganage, D. G., Wankhade, M. M. & Chinacholkar, Y. Effective Cluster Head and Routing Scheme Estimation Using Mixed attention-based Drift Enabled Federated Deep Reinforcement Learning in Wireless Sensor Networks 37, 1–20 (Concurrency and Computation-Practive & Experience, 2025).
Shen, Z. W. et al. A cooperative routing protocol based on Q-learning for underwater optical-acoustic hybrid wireless sensor networks. IEEE Sens. J. 22 (1), 1041–1050 (2022).
Akram, M. et al. EEMLCR: energy-efficient machine learning-based clustering and routing for wireless sensor network. IEEE Access 13(2025), 70849–70871 (2025).
Jain, D., Shukla, P. K. & Varma, S. Energy efficient architecture for mitigating the hot-spot problem in wireless sensor networks. J. Ambient Intell. Humaniz. Comput. 14 (2022), 10587–10604 (2022).
Ramalingam, S., Dhanasekaran, S., Sinnasamy, S. S., Salau, A. O. & Alagarsamy, M. Performance enhancement of efficient clustering and routing protocol for wireless sensor networks using improved elephant herd optimization algorithm. Wireless Netw. 30 (3), 1773–1789 (2024).
Wang, Z. D., Yang, Y. Z., Luo, X., He, D. J. & Sammy, C. Energy efficient clustering and routing for wireless sensor networks by applying a spider Wasp optimizer. Ad Hoc Netw. 174 (2025), 1–15 (2025).
Maharajan, M. S., Abirami, T., Pustokhina, I. V., Pustokhin, D. A. & Shankar, K. Hybrid swarm intelligence based QoS aware clustering with routing protocol for WSN. CMC-Computers Mater. Continua. 68 (3), 2995–3013 (2021).
Manasa, B. & Ramakrishna, D. Energy-efficient PSO-QLR routing in wireless sensor networks. AEU-International J. Electron. Commun. 198 (2025), 1–9 (2025).
Heinzelman, W. R., Chandrakasan, A. & Balakrishnan, H. Energy-efficient communication protocol for wireless microsensor networks, In: Proceedings of the 33rd annual Hawaii international conference on system sciences. 10. (IEEE, 2000).
Yao, Y. D. et al. Multihop clustering routing protocol based on improved coronavirus herd immunity optimizer and Q-learing in WSNs. IEEE Sens. J. 23 (2), 1645–1659 (2023).
Li, X. T., Fang, W., Zhu, S. W. & Zhang, X. An adaptive binary quantum-behaved particle swarm optimization algorithm for the multidimensional knapsack problem. Swarm Evolutinary Comput. 86 (2024), 1–27 (2024).
Chen, L. P. et al. Complex-order quantum-behaved particle swarm optimization with double jump-out strategy. IEEE Trans. Emerg. Topics Comput. Intel. 2(2025), 1–19 (2025).
Ye, H. Q. & Dong, J. P. An ensemble algorithm based on adaptive chaotic quantum-behaved particle swarm optimization with Weibull distribution and hunger games search and its financial application in parameter identification. Appl. Intell. 54 (9–10), 6888–6917 (2024).
Zhao, J. L., Deng, C. S., Yu, H. H., Fei, H. S. & Li, D. S. Path planning of unmanned vehicles based on adaptive particle swarm optimization algorithm. Comput. Commun. 216 (2024), 112–119 (2024).
Funding
This work is supported by the industrial technology research and development project of Jilin Province Development and Reform Commission [grant number 2024C006-2].
Author information
Authors and Affiliations
Contributions
Conceptualization, L. G.; methodology, L. G.; software, L. G.; validation, L. G.; formal analysis, L. G.; investigation, L. G.; resources, L.G.; writing L.G.; visualization, L.G.; supervision, L.G.; funding acquisition, L.G.; All authors have read and agreed to the published version of the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Guangjie, L. QPSODRL: an improved quantum particle swarm optimization and deep reinforcement learning based intelligent clustering and routing protocol for wireless sensor networks. Sci Rep (2026). https://doi.org/10.1038/s41598-026-35365-0
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-35365-0


