Abstract
Due to the battery limitation of wireless sensor network (WSN), there is imperative requirement of energy saving and optimization in practical application of WSN. In order to optimize the energy of WSN, in this paper, a stochastic energy model for WSN is proposed. The model is based on the continuous time Markovian decision processes (CMDP) machine and spans both energy consumption and ensued transition costs. We use PRISM to analyze stochastic CMDP strategies of sensor devices as the formal framework. Simulation experiment is carried out to evaluate the model with given performance criteria. The result shows that the given model can effectively balance energy optimization and perform with high efficiency in WSN.
1. Introduction
Wireless sensor networks (WSNs) can collect information and monitor situations in a variety of scenarios including coal mines, battlefields, forests, and farmlands [1–3]. Compared to other self-organized networks, the nodes in WSNs are generally powered by small inexpensive batteries. Each operation, calculation, and intercommunication consume the nodes' energy. Once some nodes, especially those crucial nodes like the cluster head, run out of energy, they will directly influence the connection of WSNs and the monitoring process. To extend the network's lifetime of power constrained wireless sensor networks for a long period of time, their energy consumption should be well managed by optimal routing designs.
Those nodes have the common attractive traits that they have small size, light weight, high mobility, and smart usage, and the most important feature is that they are all battery aware devices. As we move from the wired to wireless sensor network domain, one of the common problems in those battery-operated devices is the availability and cost of the energy. Power savings in these computing devices become more crucial and this constrains the budgets of the data collecting and computing. Google engineers, maintaining thousands of servers, warned that if power consumption continues to grow, power costs can easily overtake hardware costs by a large margin [4]. Each of us has experienced the event that the battery of our laptop or mobile phone is depleted. The issue is even more serious in autonomous, distributed devices such as sensor networks where the charging of batteries on running is difficult or impossible. Finally, energy dissipation causes thermal problems. Most of the energy consumed by a system is converted into heat, resulting in wear and reduced reliability of hardware and software components.
The research community, hardware manufacturers, and OS designers [5] already found positive solutions to extend the battery life of mobile nodes in WSNs at different levels such as hardware [6], operating system, wireless technologies, and applications [7]. However, these efforts are limited by the heavy layering existing on WSNs platforms that makes difficult exploiting cross layer optimizations, which might be fairly straightforward otherwise. One of the main reasons behind this limitation is a complex business ecosystem in which multiple players (e.g. mobile network providers, content providers, cloud service Providers, hardware manufacturers and OS vendors) compete to retain their share of the mobile business. Most of WSNs have power monitor to allow hardware and software components to dynamically adjust power consumption based on required function and services quantity. However, each kind of approach to power savings has its own limitations. Much of the previous work on dynamic power management has been based on ad hoc techniques, such as the use of regression equations, interpolation, or learning based methods. Stochastic approaches [8, 9] tend to be more formal in the sense that they are based on mathematical models which make precise assumptions about the probabilistic characteristics, for example, when service requests arrive at a device and how long the device takes to respond to these requests. Validation and analysis of the stochastic DPM [10] schemes, however, are less formal and evaluation is usually being carried out with simulation techniques which are time consuming and often not completely reliable.
The material in the paper is organized as follows. We introduce the models of three different states and transition paths in Section 2. The general CMDP framework and the PRISM tool are presented in Section 3. Simulation example and experiment numerical analysis results are showed to be applying PRISM in Section 4. Finally, the conclusion and future work are described in Section 5.
2. The Energy Consumption Model
In this section, we present a stochastic energy consumption model. We prefer a stochastic model; the mean sojourn time for each state is known in advance, but the delay is not deterministic. For example, the sleep state is actually distributed with exponential distribution using the rate for sleep. The same principle is applied for idle and active states as well. We believe that such a stochastic model is more convenient and more realistic then using deterministic delay, since the philosophy of WSN can be described as “finish your job and go to sleep as soon as possible.” Thus, each process should go to sleep as long as it is done.
In the paper, the energy consumption model is majorly fixed in the active state. Let r be the energy consumption rate, measured in energy units per time unit in the active state. From a practical point of view, it is instructive to study stochastic settings where the length of idle periods is governed by probability distributions [11]. In the following, we assume that the distribution is continuous-time Markov distribution (CTMD). The node energy consumption devices in general have three states: active, idle, and sleep. Each state has two types of energy consumption: state consumption and state transition consumption (Figure 1). We model the states as a stochastic Markov chain process

Illustration of the states and the states transition path of general WSNs.
At the beginning of the time interval t, the variable describing these factors is set to
In general, we assume the probability ρ is not known in advance, but we can compute the transition probability ρ according to the condition probability
In order to gain the “most likely” state, the quantity given in the above formula needs to be maximized:
For short-term, small-scale evaluations a wireless sensor network with regular nodes layout is implemented. 19 sites, each with 3 sectors, 10 MHz bandwidth operating at 2.1 GHz carrier frequency, are assumed. Moreover,
The power per area unit P/A, expressed in [kW/km2], with an ISD of 500 m corresponds to a coverage area of 0.2165 km2 per site. The power consumption is around 4.15 kW/km2 at low loads, and it can reach 5.1 kW/km2 at high loads. For the network with microsleep capable base stations, the corresponding figures are 3.5 kW/km2 at low loads and can reach 5 kW/km2 at high loads. For comparison, in an empty network when only control channels are transmitted, but no user data, the power consumption equals 885 W per site, which corresponds to a power per area unit of 4.1 kW/km2. In the (hypothetical) extreme case, when nothing at all is transmitted (i.e., no data and no control channels) so that the RF output power is 0W, we obtain
Average power consumption (W) and service times (ms) for each power state.
Average state transitions consumption results (W).
For the analysis of the energy consuming of the sensor node, we limit each state has a finite queue length, say size of Q, to store the data it generated or forwarded from other state for relaying purpose.
3. CMDP Model and Performance Characteristics
The main challenge of modeling is to manage its complexity in terms of the number of states, the number of actions, and the time horizon. This is important because ultimately the optimal energy consuming, typically in the form of a precomputed table, will itself be running on a resource-constrained device (i.e., a senor node). In order to give a formal model to be feasible for model checking, it should have an explicit state space. We present the situation with numerical values and examples. In general, the model consists of services requestor (SR) to generate the tasks to be serviced, a single service provider (SP) to supply the required services, and a service queue (SQ) to store the tasks waiting for services. Each service may consist of numbers of sensors states. For example, there are five sensors built into most models of the WSN node. Without these sensors, none of the devices would be what we know them as today. They are proximity sensor, motion sensor/accelerometer, ambient light sensor, moisture sensor, and gyroscope. The total number of modules: #modules
Here we adopt the continuous-time Markovian decision processes approach to the problem of interest. CMDP is a commonly used technique in the field of performance and dependability analysis of sensor and especially of real-time communication system. A CMDP is defined as a 5-tuple, (
PRISM [14] is a probabilistic model checker, a tool for formal modeling and analysis of systems that exhibit random or probabilistic behavior. It supports a wide range of probabilistic models and has been used to analyze systems from many different application domains, including communication and multimedia protocols, randomized distributed algorithms, security protocols, biological systems, and many others. It supports analysis of several types of probabilistic models: discrete-time Markov chains (DTMCs), continuous-time Markov chains (CTMCs), Markov decision processes (MDPs), probabilistic automata, and probabilistic timed automata. In PRISM, models are described as the parallel composition of a set of modules, with each module containing a set of commands describing transitions. Each command consists of optional action and Boolean formulae over simple arithmetic expressions of variables and constants for antecedent and consequent. Variables can be local with respect to a module or global with respect to the whole model. A transition from one state to another corresponds to a choice of all enabled commands. A command is enabled in a state when its antecedent holds and all other commands with the same action synchronously hold. Depending on the type of model, the choice of transition is probabilistic, nondeterministic, or both. The PRISM tool can read and parse a model description in the PRISM language.
4. Experiment Numerical Analysis
To verify the validity of the stochastic model, we have applied PRISM to implement the experiment and present the result. The experiment results of the numerical analysis had been done in this section. The performance measures considered here are several consumptions. We assume the data storage capacity of the service request is
We start our analysis of the power error probability according to the changes of the state transition number. As shown in Figure 2, if the state transitions number increases with exponential, the power error probability of the sensor increases very quickly and may not work when the number reaches 10000. If the state transitions number increases with uniformity, the power error probability of the sensor increases very quickly, but the power error probability may keep a stable number. Based on the results of Figure 2, the number of the power error probability is large, so the state transition number under 10000 is kept.

The error probability according to the changes of state transition number.
Figure 3 shows the energy consumption when the state switches from the sleep mode to the active mode. It is clear that the sensor may consume more energy when the activities are increased. Also, from this figure, we know that the less capacity, the more the energy the sensor may consume, although the energy assumption does not change too much. Thus, from the viewpoint of minimizing the energy consumption for switching from sleep mode to active mode, it is optimal to minimize the number of data packets which may need relay through the sensor under investigation. By considering the relay is a vital property for sensor, it is imperative to find an optimal capacity to leverage the energy consumption.

Energy consumption for switching from sleep to active state.
5. Conclusion and Future Works
As people increasingly rely on WSNs, good energy management is becoming necessary to squeeze the most out of a battery. In the paper, the states and state transitions of sensor are explicitly illustrated. According to the rules of the state transitions, a simple stochastic framework to analyze energy consumption on sensor using CMDP is proposed. We tested the framework with PRISM on both power error and power consumption according to the state transitions. We can obtain the automated analytical means by applying the given performance measures strategies with no additional expensive simulation.
In the future works, we will investigate other related results with the analytical method from this paper.
Footnotes
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
This work was supported by “The Fundamental Research Funds for the Central Universities” (2013QNB15) and the National Science Foundation of China under Grant no. 61203304. Thanks are due to the contributors to this paper.
