摘要:Wireless Sensor Networks (WSNs) are densely and largely deployed in a variety of environments to sense real-world events. Many approaches have been proposed for collecting sensory data in any wireless sensor networks in a flexible, reliable, and efficient manner. In this study, we design an efficient mobile agent-based model for data gathering in wireless sensor networks to achieve energy and timely collection of sensory information in the target scene. The current focus in wireless sensor networks is placed on energy optimization during data gathering, processing and transmission. Mobile Agents (MAs) as a piece of a program have attracted growing research interest that travels the network from node to node to compute the local data to get useful information globally. Mobile agent’s features such as autonomy, social ability, learning, and more significantly, mobility makes it a chosen technology for information processing in wireless sensor networks and other resource constrained computing environments. The nodes of the sensors are modelled and represented by the states of a Markov chain. The nodes are further grouped into clusters to save the energy of the nodes farther away from the base station.