#### Abstract

A novel strategy of discrete energy consumption model for WSN based on quasi Monte Carlo and crude Monte Carlo method is developed. In our model the discrete hidden Markov process plays a major role in analyzing the node location in heterogeneous media. In this energy consumption model we use both static and dynamic sensor nodes to monitor the optimized energy of all sensor nodes in which every sensor state can be considered as the dynamic Bayesian network. By using this method the power is assigned in terms of dynamic manner to each sensor over discrete time steps to control the graphical structure of our network. The simulation and experiment result shows that our proposed methods are better in terms of localization accuracy and possess minimum computational time over existing localization method.

#### 1. Introduction and Related Work

In many real time applications of wireless senor network, localization [1–3] plays an important parameter to identify the location of an object or moving stimuli in geographical area. But still there are some research challenges available in order to improve the localization accuracy [4], better energy consumption model, and reduce the localization error while finding the moving stimuli. Various localization algorithms and analytical models have been proposed [5–7] for past decades based on centralized, distributed [8, 9], bacon based, diffusion based, and bounding box localization algorithms. But these algorithms may either suffer from low energy consumption or poor sampling efficiency. Particularly in GPS based localization method [10] the line of sight problem is a major issue and the power consumption in GPS will reduce the entire battery life of the wireless sensor network.

In order to minimize the cost of energy in GPS model, few nodes which are considered as beacon nodes represent the GPS modules. As the geographical area increases, the number of beacon nodes also increases which leads to high cost. Another popular localization method which has wide range of possible applications is called source localization method. In this method author has analyzed both indoor and outdoor applications [11] including movement of vehicle and also tracked the human voice.

There are so many ways to implement the source localization in real time environment based on energy, AOA, and TDOA which are the high level parameter of WSNT. The further classification of source localization [12] is single and multiple target localization in WSN and WBSN. However, very few papers are investigated for the purpose of multiple target localization scheme. All these papers are based on the maximum likelihood estimation. The RSS of this method could be calculated in the following manner:where is the distance between the th sensor and the th source and is the gain of the th sensor.

Range based [13] and range-free localization technique [14, 15] are under the self-localization method. The classical method of range based localization is used to estimate TOA [16], TDOA, RSSI [17], and AOA and the range-free method is used in pattern matching and hop count based applications.

In this paper we proposed a new scheme of localization method based on quasi and crude Monte Carlo technique. In our energy consumption model we consider novel discrete generalization of hidden Markov model to balance the node energy within the particular samples of dynamic Bayesian networks. In our sensor model we assume that each sensor power acts independently and cost of each sensor consists of weighted discrete power storage from supervisor node. The power update is based on the number of hop counts from sender to receiver at a particular state.

The rest of the paper is organized as follows. Section 2 briefly discusses the network model of Bayesian network in discrete manner. Section 3 elaborates the crude Monte Carlo method analysis in three-dimensional manner. The details of discrete power monitoring strategy are discussed in Section 4. We evaluate the performance of proposed method discussed in Section 5.

#### 2. Proposed Method

##### 2.1. Network Model

Our network model is based on Bayesian network. In this model we assume that each sensor power acts independently and cost of each sensor consists of a weighted amount of discrete power storage. The power update is based on the number of hop counts from sender to receiver at a particular state.

The behavior of discrete time dynamic system is described byLet us assume that the sensor observation time is by the state variable with probability function with hidden Markov model. It can be denoted by state equation and by the following observation:where is the observations of the time of the packets arriving sequentially and is the state variables of interest which is the current posterior distribution of :where is the integer factor to count the total number of states in entire sensor network from one hop to another.

Choose an integer and let

is the posterior probability that was observed as the function of the unknown model parameter like RSS of each sensor hop in the network. The current state is independent of all the states prior to . In this communication model we take three centralized discrete nodes. Each centralized node has three subordinate nodes to communicate with each other based on Bayesian network model. Let , , and be three centralized nodes which are going to share the power to their neighboring nodes with the help of Bayesian network.

Figure 1 shows that the three independent nodes , , and (three states) are connected with the subnodes to . Each centralized node can potentially depend on other nodes, that is,The conditional probabilities of above Bayesian network are described by the following factorization:This factorization shows a set of conditional independence relations of each node. So dynamically all the nodes of Bayesian network are interconnected in time series modeling. By using this time series method we can predict the time index “” to each independent node like for a sequence of data . Each state is directly influenced by the previous state; that is,Based on the above condition we can draw the conditional independence relations between states which is shown in Figure 2. This Markov relation model extends the static modeling to dynamic Bayesian model in discrete manner.

#### 3. Efficient Crude Monte Carlo 3D Analysis

In this section we introduce the crude Monte Carlo method to analyze the sensor behavior of each iteration. In this method we select the number of wireless sensors, say, moving randomly from the interval and the approximate sample integral by The average number of samples can be calculated from , , and . Then we estimate the overall coverage of assigned sensor to find the interval between number of sensors. For example, the statistical interval between and can be calculated bywhere is a random dimension in the geographical area within the unit cube . So the interval calculation for this three-dimensional axis is to generate the number of sensors; that is,To improve the accuracy of crude Monte Carlo we can use a priori knowledge from past samples that have the greatest impact on the positive weight function . Consider a discrete time based power management system with state space.

and observation state is . The Bayesian network system is indicated by the following prior states of data:It is denoted as three-dimensional state variables:Now we can assume the hidden Markovian state property for power state variation in network; that is,From the above equation we can specify the state equation of weighted samples asThen we compute the posterior state of the above hidden model for MMSE estimation:The state of Bayesian network can easily be extended to other types of network to represent the additional measurement of power variations. Already we have mentioned that the hidden Markov model is playing a major role in predicting the a priori probability of Bayesian network. So in this case Bayesian network is at the bottom level and hidden Markov model is at the top level of our design. So the joint probability of this Bayesian network can be expressed as the model of hidden Markov model. It is expressed aswhere is the independent variable that measures the number of hidden states of each round. Our hidden Markov model can be viewed as a speculation of a mixture model, where the concealed variables which control the mixture part are to be chosen for every Markov transform as opposed to autonomous of one another.

#### 4. Power Monitoring Strategy

During this period the energy of each iteration time is calculated and stored into its respective timeslot of present, past, and future time periods.

To monitor the energy of each sensor node in Bayesian network we take two clocking signals for power management system. Clock1 will synchronize all the power in entire system and allotted power after resampling. This is stored in Clock2. Both clock1 and clock2 have four bit periods to change lower to higher. Totally we have sixteen combinations of power states. This has been used for power mapping strategy. Each state has a unique discrete power from 0000 to 1111 as per the timeslots of clocking signals. For example, we consider the following power strategy.

The threshold RSS value of node 1 to node 3 is 4.2 units. But the packet information of node 1 is high compared to the threshold value. Now the corresponding state of node 1 will be changed to other states in terms of power. So we can achieve packet transmission along with power. It is shown on the following list: module clock1, clock2 Clock1 [4] Clock1 [4] : [0001]; : [1111]; Power mapping() Map1: 0000::0001: Map2: 0001::0010: Map3: 0010::0011: Map4: 0011::0100: MapN: 1110::1111: End timer.

For time synchronization of each node we have assigned four different timing periods to monitor the sender and receiver time synchronization. Sender node communicates something specific with its nearby time as a timestamp, and receiver node gets this information at its nearby time , where . Here, and speak to the remaining nodes between the two nodes and intimate individually to other nodes. At time , node 2 sends back an affirmation packet. This information contains the qualities of and , and node 1 gets the information at . So also, is identified with as node 1 can now measure the clock counterbalance and end-to-end postpone as and . We have followed the following steps to allocate discrete power for entire network.

##### 4.1. Discrete Markov Energy State Analysis

To amplify the system lifetime, the determination of a hand-off node needs to minimize the arrival at the midpoint of transmit power and parity of the utilization of battery vitality at distinctive transfers.

So the designated power is discrete and the starting battery energy at the transfers is limited, and the set of all residual energy levels is discrete and limited. The development of the remaining energy levels at all states can then be demonstrated as a limited state concealed Markov chain and the system lifetime is, thus, derived through the investigation on the hidden Markov chain.

The state space of the system, SP, is characterized as the function of all conceivable residual energy levels. The overall energy analysis of the system is a discrete hidden Markov chain, which can be informed to the state transition chart as indicated in Figure 3 that comprises all states and the move probabilities among states.

General steps to allocate discrete power in Bayesian network are as follows.(1)Assign all the nodes randomly within Bayesian network space with location of three-dimensional axis and discrete energy of sensor nodes .(2)Then find the distance (transmission range) of each sensor in terms of discrete samples by using antithetic variates (variance reduction method).(3)Based on the RSSI value, assign a discrete power to each sensor using crude Monte Carlo method.(4)Then we perform each sensor node “” in the Bayesian network that runs a number of iterations to check whether the RSSI value exceeds with allotted power of each sensor or not.(5)Suppose the RSSI value is exceeded when compared with the predefined value; we update the location information and recalculate the needed discrete power of sensors with respect to RSSI value.(6)Then resample the discrete power and mapping from centralized node to updated location of sensor.(7)Within this time period we monitor each iteration and it is monitored by a timer (present), (past), and (future) with the help of hidden Markov process.(8)Finally it sends the data to destination path along with the location information and at last reset the timer.

#### 5. Performance Evaluation

In this segment we analyze the performance of our proposed method with DQMCL and MCL based on localization method through simulation and experimental result. In simulation environment the sensor nodes were initially randomly distributed as per Figure 1 with Bayesian network where communication probabilities in Bayesian networks are assumed to follow Markov model. The following parameters are taken to analyze our method with the existing one:(i)energy consumption,(ii)computational time,(iii)localization error,(iv)delay time,(v)jitter analysis,(vi)estimation error based on localization steps,(vii)sensor lifetime,(viii)optimal time,(ix)overall performance.

##### 5.1. Energy Consumption

Figure 4(a) shows the comparison of total energy consumption based on Bayesian network size. It can be observed that our proposed method has taken a less energy of 37 nJ approximately to transmit the discrete packets.

**(a)**

**(b)**

**(c)**

**(d)**

##### 5.2. Computational Time

Figure 4(b) shows the computational time of 32 seconds for mapping the power between various sensors consisting of 16 states of power compared to DQMCL and MCL method.

##### 5.3. Localization Error

Figure 4(c) shows the localization error of our proposed method. It is less (maximum 19 m) compared to other two methods when we increase the communication radius.

##### 5.4. Delay Time

Based on the number of data received from various states, Figure 4(d) shows the delay step is 20 for proposed method compared to delay steps of MCL and DQMCL of 32 and 24, respectively.

##### 5.5. Jitter Analysis

Figure 5(a) shows the average jitters of two algorithms along with proposed method. The proposed algorithm jitter is less (not exceeding the jitter range of 152), because of the reduced communication.

**(a)**

**(b)**

**(c)**

**(d)**

##### 5.6. Estimation Error Based on Localization Steps

When we increase the localization step size, the estimation error is low (0.5 at 20th localization steps) compared to other two methods which are shown in Figure 5(b).

##### 5.7. Sensor Lifetime

Figure 5(c) shows the overall sensor lifetime of various sensor energy levels for three algorithms. Our proposed method has maintained 12 sensors in active region with 6th, 7th, and 12th energy level compared to other two methods.

##### 5.8. Overall Performance

Figure 5(d) shows the overall performance level of our proposed method along with analysis of optimal time, cluster overhead, and overall time for packet and power transmission. The optimal time of our method gradually reduces towards 10 sec at the distance of 14 m.

Table 1 shows the analysis report for overall computational time with standard threshold value for three methods. The proposed method has achieved low computational time to reach expected optimal threshold value compared to other two methods.

Table 2 shows the RSSI analysis of proposed method along with existing method. The variations of RSSI value of novel strategy are quite comfortable to compare with DQMCL and MCL based localization.

##### 5.9. Experimental Result Analysis

In order to analyze the proposed method, an experiment is essential to verify the overall performance of proposed method. In this experiment we take CC2430 [19] radio chip to analyze the energy consumption model in terms of discrete power by using MICA2 motes with the help of tiny os which deals with low power wireless devices. The sensor node is placed as in Figure 1 by using Bayesian network. , , and can act as centralized node and the rest of the nodes were considered as subordinate node to transmit and receive the information. For this experiment each sensor node has seven power levels based on CC2430 radio chip. When RSSI value exceeds the threshold value, the corresponding centralized node increases the power state and maps the required sample value. The power levels of each sensor have been compared frequently with power state to measure the RSS value. Table 3 shows the power level of CC2430 [18] with power state. The discrete power levels of CC2430 can be tuned at the time of transmitted time which were monitored by power state of Bayesian network. CC2430 has excellent receiver sensitivity with low current consumption, so the overall energy consumption is quite comfortable for packet transmission in Bayesian network.

Through this setup we measure the distance between the located sensor node and corresponding RSSI value which were carried out. Table 4 shows the RSSI value for various power levels along with transmission packet ratio with corresponding distance.

After analyzing the RSSI value nodes , , and compare with threshold value and map the required sample value to corresponding sensor. In this experiment we measure the effect that the number of centralized nodes has on localization accuracy. Based upon the power transmission from centralized node to another we measure the overall accuracy of the proposed method. Table 5 shows the accuracy of the proposed method compared with other two methods with the help of localization error.

Based upon the above measurement our proposed methods have minimum localization error and have good localization accuracy. In every iteration the energy of each sensor node has been monitored and maintains the RSSI value up to the level. This behavior is attributed to the number of localized nodes increasing with the number of iterations. When the number of iterations is increased, centralized node is quite balanced with respect to the RSSI value. Table 5 clearly shows that our proposed method has low localization error compared to DQMCL and MCL based localization method. The energy levels of each iteration can be monitored by centralized node with respect to the predefined threshold value and analyze the overall structure of the Bayesian network. Figure 6 shows the overall packet transmission ratio for proposed method with existing localization technique with different discrete power levels.

The accuracy of proposed method has been calculated based on localization error during the packet transmission shown in Figure 7.

#### 6. Conclusion

In this paper we develop a new novel strategy of discrete energy consumption model for wireless sensor network with the help of quasi and crude Monte Carlo method. In this model we assign the power in terms of discrete manner with the help of Bayesian network. By using discrete hidden Markov model each centralized node monitors the optimized energy of all sensor nodes in which every sensor state can be considered as the dynamic Bayesian network. Our esteemed simulation and experimental results show that the overall performance of our proposed method is better than the existing localization method of DQMCL and MCL methods.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.