Abstract
Wireless sensor networks (WSNs) contend with the critical challenge of balancing energy conservation against data transmission delay, a trade-off that protocols such as PEGASIS-while being strong in energy efficiency-fail to manage optimally due to resulting high latency, unbalanced load distribution, and suboptimal cluster formation. To address these limitations, this paper introduces the Enhanced Multi-Objective PEGASIS (EMO-PEGASIS) protocol, which is designed and implemented using a dual-phase machine learning strategy. This multi-objective approach works in two stages. First, it utilises K-means clustering to achieve robust spatial partitioning of the network. Second, it employs K-Nearest Neighbours (K-NN) classification to enable adaptive and intelligent routing. The simulation was performed using MATLAB R2025a, and the results show that EMO-PEGASIS addresses this multi-objective optimisation problem. The proposed EMO-PEGASIS protocol achieves a 45% reduction in average energy consumption, a 38% decrease in end-to-end delay, and a 67% increase in network lifetime compared to the original PEGASIS protocol. Additionally, EMO-PEGASIS demonstrates enhanced stability and effective load balancing under heterogeneous network configurations, while maintaining an excellent packet delivery ratio of 96.8%. These findings underscore the effectiveness of integrating machine learning techniques, which ultimately yield enhanced performance and enable reliable multi-objective optimisation within energy- and delay-constrained WSN environments.