a12-karumbu

Upload: henrique-mariano-amaral

Post on 02-Jun-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 a12-karumbu

    1/35

    12

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks

    PREMKUMAR KARUMBU, VENKATA K. PRASANTHI,

    and ANURAG KUMAR, Indian Institute of Science, Bangalore

    We consider a small extent sensor network for event detection, in which nodes periodically take samplesand then contend over a random access networkto transmit their measurement packets to the fusion center.We consider two procedures at the fusion center for processing the measurements. The Bayesian setting, isassumed, that is, the fusion center has a prior distribution on the change time. In the first procedure, thedecision algorithm at thefusioncenteris networkoblivious andmakes a decision only when a complete vectorof measurements taken at a sampling instant is available. In the second procedure, the decision algorithm atthe fusion center is networkawareand processes measurements as they arrive, but in a time-causal order.In this case, the decision statistic depends on the network delays, whereas in the networkoblivious case,the decision statistic does not. This yields a Bayesian change-detection problem with a trade-off between therandom network delay and the decision delay that is, a higher sampling rate reduces the decision delay butincreases the random access delay. Under periodic sampling, in the networkoblivious case, the structure ofthe optimal stopping rule is the same as that without the network, and the optimal change detection delay

    decouples into the network delay and the optimal decision delay without the network. In the networkawarecase, the optimal stopping problem is analyzed as a partially observable Markov decision process, in whichthe states of the queues and delays in the network need to be maintained. A sufficient decision statistic isthe network state and the posterior probability of change having occurred, given the measurements receivedand the state of the network. The optimal regimes are studied using simulation.

    Categories and Subject Descriptors: C.2.3[Computer-Communication Networks]: NetworkOperationsNetwork monitoring; I.2.8 [Artificial Intelligence]: Problem Solving, Control Methods, and SearchCon-trol theory

    General Terms: Algorithms, Design, Performance

    Additional Key Words and Phrases: Optimal change detection over a network, detection delay, crosslayerdesign of change detection

    ACM Reference Format:

    Karumbu, P., Prasanthi, V. K., and Kumar, A. 2012. Delay optimal event detection on ad hoc wireless sensornetworks. ACM Trans. Sensor Netw. 8, 2, Article 12 (March 2012), 35 pages.DOI= 10.1145/2140522.2140525 http://doi.acm.org/10.1145/2140522.2140525

    1. INTRODUCTION

    A wireless sensor network is formed by tiny, untethered devices (motes) that can sense,compute, and communicate. Sensor networks have a wide range of applications such asenvironment monitoring, detecting events, identifying locations of survivors in building

    This is an expanded version of a paper that was presented at SECON06.This work was supported in part by grant number 2900 IT from the Indo-French Center for the Promotionof Advanced Research (IFCPAR) and in part by a project from DRDO, Government of India.

    Authors addresses: P. Karumbu, V. Prasanthi, and A. Kumar, Dept. of Electrical Communication Engineer-ing, Indian Institute of Science, Bangalore, India; email: {kprem, anurag}@ece.iisc.ernet.in and prasanthi.m

    @gmail.com.Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted

    without fee provided that copies are not made or distributed for profit or commercial advantage and thatcopies show this notice on the first page or initial screen of a display along with the full citation. Copyrights forcomponents of this work owned by others than ACM must be honored. Abstracting with credit is permitted.To copy otherwise, to republish, to post on servers, to redistribute to lists, or to use any component of thiswork in other works requires prior specific permission and/or a fee. Permissions may be requested fromPublications Dept., ACM, Inc., 2 Penn Plaza, Suite 701, New York, NY 10121-0701 USA, fax +1 (212)869-0481, or [email protected] 2012 ACM 1550-4859/2012/03-ART12 $10.00

    DOI 10.1145/2140522.2140525 http://doi.acm.org/10.1145/2140522.2140525

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    2/35

    12:2 P. Karumbu et al.

    Fusion

    Centre

    Fig. 1. An ad hoc wireless sensor network with a fusion center is shown. The small circles are the sen-sor nodes (motes), and the lines between them indicate wireless links obtained after a self-organizationprocedure.

    and train disasters, and intrusion detection for defense and security applications. For

    factory- and building-automation applications, there is increasing interest in replacingwireline sensor networks with wireless sensor networks, due to the potential reductionin costs of engineering, installation, operations, and maintenance [Honeywell Inc.; ISA].

    Event detection is an important task in many sensor network applications. In gen-eral, an event is associated with a change in the distribution of a related quantity thatcan be sensed. For example, the event of a gas leakage at any joint in a pipe causesa change in the distribution of pressure at the joint and, hence, can be detected withthe help of pressure sensors. In this article, we limit our discussion to the centralizedfusion model (see Figure 1), in which each mote in an event detection network sensesand sends some function of its observations (e.g., quantized samples) to the fusion cen-ter at a particular rate. The fusion center, by appropriately processing the sequence of

    values it receives, makes a decision regarding the state of nature, that is, it decideswhether or not a change has occurred.

    Our problem is that of minimizing the mean detection delay (the delay betweenthe event occurring and the detection decision at the fusion center) with a bound onthe probability of false alarm. We consider a small extent network in which all thesensors have the same coverage, that is, when the change in distribution occurs, itis observed by all the sensors, and the statistics of the observations are the same atall the sensors. Nsensors synchronously sample their environment at a particularrate. Synchronized operation across sensors is practically possible in networks such as802.11 WLANs and Zigbee networks, since the access point and the PAN coordinator,respectively, transmit beacons that provide all nodes with a time reference. Based onthe measurement samples, the nodes send certain values (e.g., quantized samples)to the fusion center. Each value is carried by a packet, which is transmitted using acontention-based multiple access mechanism. Thus, our small extent network problemis a natural extension of the standard change-detection problem (see Veeravalli [2001]and the references therein) to detection over a random access network. The problem ofquickest event detection in a large extent network (where the region of interest is muchlarger than the sensing coverage of any sensor) is considered by us in Premkumar et al.[2009]. Also, a small extent network can be thought of as a cluster in a large extentnetwork, and the decision maker can be thought of as a cluster head.

    In this setting, due to the multiple access network delays between the sensor nodesand the fusion center, several possibilities arise. In Figure 2, we show that although thesensors take samples synchronously, due to random access delays, the various packetssent by the sensors arrive at the fusion center asynchronously. As shown in the figure,

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    3/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:3

    X1 X2

    D2

    (1)

    D2

    (2)

    D2

    (3)

    t t t t t ttt1 2 3 4 5 6 70

    sampling instants

    vectors of values

    to be sent by the

    N sensors

    Fig. 2. The sensors periodically take samples at instantst1, t2, . . ., and prepare to send a vector of values

    Xh = [X(1)h ,X

    (2)h , . . . ,X

    (N)h ] at th to the fusion center. Each sample is queued as a packet in the queue of the

    respective node. Due to multiple access delays, the packets arrive with random delays at the fusion center,

    for example, forX2, the delays D(1)2 ,D

    (2)2 , and D

    (3)2 for the packets from sensors 1, 2, and 3 are shown.

    fusion centre

    MakerDecision

    Network

    Random Access

    and

    Sensors

    1

    2

    N

    Sequencer

    Fig. 3. A conceptual block diagram of the wireless sensor network shown in Figure 1. The fusion center has

    a sequencing buffer which queues out-of-sequence samples and delivers the samples to the decision makerin time-order, as early as possible, batchwise or samplewise.

    the packets generated due to the samples taken at time t2 arrive at the fusion center

    with a delay of D(1)2 ,D(2)2 ,D

    (3)2 , etc. It is even possible that a packet corresponding to

    the samples taken at time t3can arrive before one of the packets generated due to thesamples taken at time t2.

    Figure 3 depicts a general queueing and decision-making architecture in the fusioncenter. All samples are queued in per-node queues in a sequencer. The way the se-quencer releases the packets gives rise to the following three cases, the first two ofwhich we study in this article.

    (1) The sequencer queues the samples until all the samples of a batch (a batchis theset of samples generated at a sampling instant) are accumulated; it then releasesthe entire batch to the decision device. The batches arrive to the decision maker ina time-sequence order. The decision maker processes the batches without knowl-edge of the state of the network (i.e., reception times at the fusion center and thenumbers of packets in the various queues). We call this Network Oblivious Decision

    Making (NODM). In factory and building automation scenarios, there is a majorimpetus to replacing wireline networks between sensor nodes and controllers. Insuch applications, the first step could be to retain the fusion algorithm in thecontroller, while replacing the wireline network with a wireless ad hoc network.

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    4/35

    12:4 P. Karumbu et al.

    Indeed, we show that this approach is optimal for NODM, provided the samplingrate is appropriately optimized.

    (2) The sequencer releases samples only in time-sequence order but does not wait

    for an entire batch to accumulate. The decision maker processes samples as theyarrive. We call this Network Aware Decision Making(NADM). InNADM, wheneverthe decision maker receives a sample, it has to roll back its decision statistic to thesampling instant, update the decision statistic with the received sample, and thenupdate the decision statistic to the current time slot. The decision maker makes aBayesian update on the decision statistic, even if it does not receive a sample in aslot. Thus,NADMrequires a modification in the decision-making algorithm in thefusion center.

    (3) The sequencer does not queue any samples. The fusion center acts on the val-ues from the various sampling instants as they arrive, possibly out of order. Theformulation of such a problem would be an interesting topic for future research.

    Our Contributions. We find that the existing literature on sequential change-detection problems (see the following discussion on related literature) assumes that,

    at a sampling instant, the samples from all the sensors reach the fusion center in-stantaneously. As already explained, however, the delay in detection in our problemis not only due to the detection procedure requiring a certain amount of samples inorder to make a decision (which we call decision delay), but also due to the randompacket delay in the multiple access network (which we call network delay). We workwith a formulation that accounts for both these delays, while limiting ourselves to theparticular fusion center behaviors explained in cases (1) and (2).

    In Section 2, we discuss the basic change-detection problem and set up the model. InSection 3, we formulate the change-detection problem over a random access networkin a way that naturally includes the network delay. We show that in the case ofNODM,the problem objective decouples into a part involving the network delay and a partinvolving the optimal decision delay under the condition that the sampling instantsare periodic. Then, in Section 4, we consider the special case of a network with astar topology, that is, all nodes are one hop away from the fusion center, and providea model for contention in the random access network. In Section 5, we formulate theNADMproblem, where we process the samples as they arrive at the fusion center but ina time causal manner. The out-of-sequence packets are queued in a sequencing bufferand are released to the decision maker as early as possible. We show in the NADMcasethat the change-detection problem can be modeled as a Partially Observable MarkovDecision Process (POMDP). We show that sufficient statistics for the observationsinclude the network-state (which includes the queue lengths of the sequencing buffer,network-delays) and the posterior probability of change having occurred given themeasurements received and the network states. As usual, the optimal policy can becharacterized via a Bellman equation, which can then be used to derive insights into thestructure of the policy. We show that the optimal policy is a threshold on the posteriorprobability of change, and that the threshold, in general, depends on the network state.Finally, in Section 6 we compare numerically the mean detection-delay performance ofNODMand a simple heuristic algorithm motivated by NADMprocessing. We show thetrade-off between the sampling rate r and the mean detection delay. Also, we show thetrade-off between the number of sensors and the mean detection delay.

    Related Literature. The basic mathematical formulation in this article is an extensionof the classical problem of sequential change detection in a Bayesian framework. Thecentralized version of this problem was solved by Shiryaev [1978]. The decentralized

    version of the problem was introduced by Tenny and Sandell [1981]. In the decentral-ized setting, Veeravalli [2001] provided optimal decision rules for the sensors and the

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    5/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:5

    )t

    Slots

    t b+1b

    Sampling instants

    k k+1k1

    Beginning of Slot k

    Sampling interval of 1/rslots

    Fig. 4. Time evolves over slots. The length of a slot is assumed to be unity. Thus, slot k represents theinterval [k, k + 1), and the beginning of slot k represents the time instant k. Samples are taken periodicallyevery 1/r slots, starting fromt1 = 1/r.

    fusion center, in the context of conditionally independent sensor observations and a

    quasi-classical information structure. For a large network setting, Niu and Varshney[2005] studied a simple hypothesis testing problem and proposed a counting rule basedon the number of alarms. They showed that, for a sufficiently large number of sensors,the detection performance of the counting rule is close to that of the optimal rule. Ina recent article on anomaly detection in wireless sensor networks Rajasegarar et al.[2008], have provided a survey of statistical- and machine-learning-based techniquesfor detecting various types of anomalies such as sensor faults, security attacks, andintrusions. In Aldosari and Moura [2004], the authors consider the problem of decen-tralized binary hypothesis testing, where the sensors quantize the observations andthe fusion center makes a binary decision between the two hypotheses.

    Remark. In the existing literature on the topic of optimal sequential event detectionin wireless sensor networks, to the best of our knowledge, there has been no priorformulation that incorporates multiple access delay between the sensing nodes and thefusion center. Interestingly, in this article we introduce what can be called across-layer

    formulation involvingsequential decision theoryand random access network delays.Inparticular, we encounter thefork-join queueing model(see, e.g., Baccelli and Makowski[1990]) that arises in distributed computing literature.

    2. THE BASIC CHANGE-DETECTION PROBLEM

    In this section, we introduce the model for the basic change-detection problem. Thenotation we follow is given here.

    Time is slotted, and the slots are indexed by k = 0, 1, 2, . . .. We assume that thelength of a slot is unity and that slot krefers to the interval [k, k +1). Thus, thebeginning of slot kindicates the time instant k(see Figure 4).

    Nsensors are synchronously sampling at the rate rsamples/slot, that is, the sensors

    make an observation every 1/rslots and send their observations to the fusion center.For example, ifr =0.1, then a sample is taken by a sensor every 10th slot. We assumethat 1/r is an integer. The sampling instants are denoted t1, t2, . . . (see Figure 5).Definet0 = 0; note that the first sample is taken att1 =1/r.

    The vector of network delays of batch b is denoted by

    Db =D(1)b ,D

    (2)b , . . . ,D

    (N)b

    ,

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    6/35

    12:6 P. Karumbu et al.

    K~t

    K~U

    T~

    U~

    t t t t t ttt1 2 3 4 5 6 70 U U U U U1 2 3 4 5

    T

    change time

    detection timewithout n/w delay

    detection timewith n/w delay

    network delayoarse sampling delay

    Fig. 5. Change time and detection instants with and withoutnetwork delay are shown. The coarse samplingdelay is given bytK T, wheretKis the first sampling instant after change, and the network delay is givenbyUK t K.

    where D(i)b {1, 2, 3, . . .}is the network delay in slots of the ith component of the bth

    batch (sampled at tb = b/r). Also, note that D(i)b 1, as it requires one time slot forthe transmission of a packet to the fusion center after a successful contention.

    The state of nature {0, 1}. 0 represents the state before change and 1 representsthe stateafter change. It is assumed that the change time T (measured in slots) isgeometrically distributed, that is,

    P (T =0) = ,

    and, fork 1, P (T =k |T >0) = p(1 p)(k1). (1)

    The value of 0 for Taccounts for the possibility that the change took place before theobservations were made.

    The vector of outputs from the sensor devices at the bth batch is denoted by

    Xb =

    X(1)b ,X

    (2)b , . . . ,X

    (N)b

    ,

    where X(i)b X is the bth output at the ith sensor. Given the state of nature, X(i)b sare assumed to be (conditionally) independent across sensors and independent andidentically distributed over sampling instants with probability distributions F0(x)andF1(x) before and after the change, respectively.X1corresponds to the first sampletaken. In this work, we do not consider the problem of optimal processing of sensormeasurements to yield the sensor outputs, for example, optimal quantizers (see

    Veeravalli [2001]).Let Sb,b 1, be the state of nature at thebth sampling instant and S0be the state

    at time 0. Then Sb {0, 1}with

    P (S0 =1)= =1 P (S0 = 0) .

    Sbevolves as follows. IfSb = 0 for b 0, then

    Sb+1 = 1 w.p. pr0 w.p. (1 pr) ,where pr = 1 (1 p)1

    /r. Further, if Sb = 1, then Sb+1 = 1. Thus, if S0 = 0, thenthere is a change from 0 to 1 at the Kth sampling instant, where Kis geometricallydistributed. Forb 1,

    P (K= b)= pr(1 pr)b1.

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    7/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:7

    Xk(1)

    Xk(2)

    Xk(N)

    ....

    MAC

    svc.rate

    1

    2

    N

    sampling

    ....

    Transmitter buffer

    1

    2

    N

    Maker

    Decision

    fusion centre

    Sequencer

    Fig. 6. A sensor network model of Figure 3 with one-hop communication between the sensor nodes and thefusion center. The random access network, along with the sequencer, is a forkjoin queueing model.

    Each value to be sent to the fusion center by a node is inserted into a packet,which is queued for transmission. It is then transmitted to the fusion center by us-ing a contention-based multiple-access protocol. A node can directly transmit its ob-

    servation to the fusion center or route it through other nodes in the system. Eachpacket takes a time slot to transmit. The MAC protocol and the queues evolveover the same time slots. The fusion center makes a decision about the change,depending on whether Network Oblivious (NODM) processing or Network Aware(NADM) processing is employed at the fusion center. In the case of NODM pro-cessing, the decision sequence (also called the action sequence) is Au, u 0, withAu {stop and declare change(1), take another sample(0)}, where uis a time instantat which a complete batch of Nsamples corresponding to a sampling instant is re-ceived by the fusion center. In the case ofNADMprocessing, the decision sequence isAk, k 0, with Ak {stop and declare change(1), take another sample(0)}, that is, adecision about the change is taken at the beginning of every slot.

    3. NETWORK OBLIVIOUS DECISION MAKING (NODM)

    From Figure 2, we note that although all the components of a batch bare generated at

    tb = b/r, they reach the fusion center at times tb+ D(i)b , i =1, 2, . . . ,N. InNODMpro-cessing, the samples, which are successfully transmitted, are queued in a sequencingbuffer as they arrive (see Figure 6), and the sequencer releases a (complete) batch tothe decision maker as soon as all the components of a batch arrive. The decision makermakes a decision about the change at the time instants when a (complete) batch arrivesat the fusion center. In Network Oblivious (NODM) processing, the decision maker isoblivious to the network and processes the batch as though it had just been generated(i.e., as if there were no network, hence the name Network Oblivious Decision Making).We further define (see Figure 5) the following.

    Ub, (b 1). The random instant at which the fusion center receives the completebatchXb.

    K {0, 1, . . . }. The batch index at which the decision takes place if there is nonetwork delay.K= 0 means that decision 1 (stop and declare change) is taken beforeany batch is generated.

    T =tK. The random time (a sampling instant) at which the fusion center stops anddeclares change if there was no network delay.

    U =UK. The random time slot at which the fusion center stops and declares changein the presence of network delay.

    Db = Ub tb. Sojourn time of the bth batch, that is, the time taken for all thesamples of the bth batch to reach the fusion center. Note that Db is given by

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    8/35

    12:8 P. Karumbu et al.

    T

    ~

    U

    ~

    TFig. 7. Illustration of an event of false alarm withT T.

    max{D(i)b : i = 1, 2, . . . ,N}. Thus, the delay of batchK, at which the detector de-

    clares a change, isUK tK=U T.We define the following detection metrics.

    Mean Detection Delayis defined as the expected number of slots between the changepoint T and the stopping time instantU in the presence of coarse sampling andnetwork delays, that is, Mean Detection Delay = E

    (U T)1{TT}.

    Mean Decision Delayis defined as the expected number of slots between the changepointTand the stopping time instant

    Tin the (presence of coarse sampling delay and

    in the) absence of network delay, that is, Mean Decision Delay = E(T T)1{TT}.With the preceding model and assumptions, we pose the followingNODMproblem:Minimize the mean detection delay with a bound on the probability of false alarm, suchthat the decision epochs are the time instants when a complete batch ofNcomponentscorresponding to a sampling instant is received by the fusion center. In Section 5, wepose the problem of making a decision at every slot based on the samples as theyarrive at the fusion center. Motivated by the approach in Veeravalli [2001], we use thefollowing formulation for a given sampling rate r.

    min E(U T)1{TT},

    such that P(T

  • 8/10/2019 a12-karumbu

    9/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:9

    Fusion

    Centre

    Fig. 8. A sensor network with a star topology with the fusion center at the hub. The sensor nodes use arandom access MAC to send their packets to the fusion center.

    Db, b 1 is justifiable in a network in which measurements are continuously made,

    but the detection process is started only at certain times, as needed.PROOF. The following is a sketch of the proof (the details are in Appendix I).

    min

    E(U T)1{TT} = min

    E(UT)1{TT} + ET T+

    = min

    {E[D](1 P(T

  • 8/10/2019 a12-karumbu

    10/35

    12:10 P. Karumbu et al.

    batch as though it had just been generated. In the case ofNADM(which we describe inSection 5), the decision maker processes samples taking network delays into account,thus requiring knowledge of network dynamics. In this section, we provide a simple

    model for the random access network that facilitates the analysis and optimization ofNADM.

    Nsensors form a star topology1 (see Figure 8) ad hoc wireless sensor network withthe fusion center as the hub. They synchronously sample their environment at the rateofrsamples periodically per slot. At sampling instant tb = b/r, sensor nodeigenerates

    a packet containing sample value X(i)b (or some quantized version of it). This packet isthen queued first-in-first-out in the buffer behind the radio link. It is as if each sampleis aforkoperation that puts a packet into each sensor queue (see Figure 6).

    The sensor nodes contend for access to the radio channel and transmit packets whenthey succeed. The service is modeled as follows. As long as there are packets in any ofthe queues, successes are assumed to occur at the constant rate of(0 <

  • 8/10/2019 a12-karumbu

    11/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:11

    0 5 10 15 200

    1

    2

    3

    4

    5

    6

    7

    vs n for different transmission rates (C) in RTSCTS

    Number of nodes (n)>

    Aggregatethroughput

    (Mbps)> Analysis

    Simulation

    C= 11 Mbps

    C= 5.5 Mbps

    C= 2.2 Mbps

    Fig. 9. The aggregate saturation throughput of an IEEE 802.11 network plotted against the number ofnodes in the network, for various physical layer bit rates: 2.2 Mbps, 5.5 Mbps, and 11 Mbps . The two curvesin each plot correspond to an analysis and an NS2 simulation.

    0 20 40 600

    50

    100

    150

    200

    250

    300

    number of nodes

    0 20 40 600

    50

    100

    150

    200

    250

    300

    number of nodes

    Fig. 10. The aggregate saturation throughput of an IEEE 802.15.4 star topology network plotted againstthe number of nodes in the network. Throughput obtained with default backoff parameters is shown on

    the left and that obtained with backoff multiplier = 3 is shown on the right. The two curves in each plotcorrespond to an analysis and an NS2 simulation.

    be delay-optimal in the classical change detection problem (see Shiryaev [1978]), canbe employed in the decision device independently of the random access network. It isto be noted that the decision maker in the NODMcase waits for a complete batch ofNsamples to arrive to make a decision about the change. Thus, the mean detection delayof the NODMhas a network-delay component corresponding to a batch of Nsamples.In this section, we provide an alternative mechanism of fusion at the decision devicecalled Network Aware Decision Making (NADM), in which the fusion algorithm doesnot wait for an entire batch to arrive but processes the samples as soon as they arrivein a time-causal manner.

    We now describe the processing in NADM. Whenever a node (successfully) transmitsa sample across the random access network, it is delivered to the decision maker ifthe decision maker has received all the samples from all the batches generated earlier.Otherwise, the sample is an out-of-sequence sample and is queued in the sequencingbuffer. It follows that whenever the (successfully) transmitted sample is the last com-ponent of the batch that the decision maker is looking for, then the head of line(HOL)components (if any) in the queues of the sequencing buffer are also delivered to thedecision maker. This is because these HOL samples belong to the next batch that thedecision maker should process. The decision maker makes a decision about the changeat the beginning of every time slot, irrespective of whether it receives a sample or not.

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    12/35

    12:12 P. Karumbu et al.

    t

    Slots

    t b+1bt Bk

    k k+1

    k k

    Fig. 11. At timek, the decision maker expects samples (or processes samples) from batch Bk. Also, at timek,kis the number of slots to go for the next sampling instant, andkis the number of slots back, at whichbatch Bkis generated.

    In NADM, whenever the decision maker receives a sample, it takes into account thenetwork-delay of the sample while computing the decision statistic. The network-delayis a part of the state of the queueing system which is available to the decision maker.Thus, unlike NODM, the state of the queueing system also plays a role in decision

    making.In Section 5.1, we define the state of the queueing system. In Section 5.2, we definethe dynamical system whose change of state (from 0 to 1) is the subject of interest tous. We define the state of the dynamical system as a tuple that contains the queueingstate, the state of nature, and a delayed state of nature. The delayed state of natureis included in the state of the system, so that the (delayed) sensor-observations thatthe decision maker receives at time instant k + 1 depend only on the state, the control,and the noise of the system at time instant ka property which is desirable to definea sufficient statistic (see page 244 at Bertsekas [2000a]). We explain the evolutionof the state of the dynamical system in Section 5.3. In Section 5.4, we formulate theNADM change detection problem and find a sufficient statistic for the observations inSection 5.5. In Section 5.6, we provide the optimal decision rule for the NADMchangedetection problem.

    5.1. Notation and State of the Queueing SystemRecall the notation introduced in Section 2. Time progresses in slots, indexed by k =0, 1, 2 . . .; the beginning of slot k is the time instant k. Also, the time instant just afterthe beginning of time slot is denoted by k+.2 Recall that the nodes take samples atinstants 1/r, 2/r, 3/r, . . .. We define the state of the queueing system here. Note thatthe queueing system evolves over slots.

    k {1, 2, . . . , 1/r} denotes the number of time slots to go for the next samplinginstant at the beginning of time slot k(see Figure 11). Thus,

    k :=1

    r

    k mod

    1

    r

    . (4)

    Thus,0 = 1

    r

    , 1 = 1

    r

    1, . . ., and at the sampling instantstb,tb = 1

    r

    .Bk {1, 2, 3, . . .} denotes the index of the batch that is expected to be or is being

    processed by the decision maker at the beginning of time slot k. Note B0 = B1 = =B1/r =1. Also, note that batch Bkis generated at time instant Bk/r.

    2Note that the notation t+denotes a time embedded to the right oft and is different from the notation (x)+.Recall that (x)+ :=max{x, 0}.

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    13/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:13

    t

    Slots

    t

    k

    Bk

    k+1k1

    Bk1

    1

    k1BLast component of batch

    reached at time k

    k k+1 = 0 = 0 = 0

    Bk

    t

    Fig. 12. Illustration of a scenario in which k = 0. If the last component from batch Bk1 is receivedat k, and if there is no sampling instant between tBk1 and k, then k = 0. Also, note in this case thatk = k+1 = = tBk

    = 0. In this scenario, at time instants k, k + 1, . . . , tBk , all the queues at the sensor

    nodes and the sequencer are empty, and at time instant tBk +, all sensor node queues have one packet whichis generated attBk .

    k {0, 1, 2, . . .} denotes the delay in the number of time slots between time instantskand Bk/r(see Figure 11), such that

    k := maxk Bkr , 0 . (5)Note that the batches of samples taken after Bk/r and up to (and including) karequeued either in the sensor node queues or in the sequencing buffer in the fusioncenter. If the fusion center receives a sample at time k, which is the last sample frombatch Bk1, then Bk = Bk1 + 1. If the sampling instant of the Bkth batch is laterthan k (i.e., Bk/r > k), then k = 0 (up to time Bk/r, at which instant a new batchis generated). This corresponds to the case in which all the samples generated upto time slotkhave already been processed by the decision maker (see Figure 12). Inparticular, 0 =1 = = 1

    r1 = 0.

    L(i)k {0, 1, 2, . . .} denotes the queue length of the ith sensor node just after thebeginning of time slot k (i.e., at time instant k+). The vector of queue lengths is

    Lk = [L(1)k ,L

    (2)k , . . . ,L

    (N)k ]. Let Nk {0, 1, 2, . . . ,N} be the number of nonempty queues

    at the sensor nodes, just after the beginning of time slot k, given by

    Nk:=N

    i=1

    1{L(i)k >0}

    ,

    that is, the number of sensor nodes contending for slot k is Nk. Hence, using the

    network model we have provided in Section 4, the evolution ofL(i)k (see Figure 13) isgiven by the following.

    L(i)0 = 0,

    L(i)k+1 =

    L(i)k + 1{k+1=1/r} w.p.1 ifNk = 0,

    L(i)k + 1{k+1=1/r} w.p.(1 ) ifNk > 0,

    max{L(i)k

    1, 0} + 1{k+1=1/r}

    w.p. Nk

    ifNk

    > 0.

    Note that when all the samples generated up to time slot k have already been pro-cessed by the decision maker and kis not a sampling instant, that is, k = 0 andk=1/r, then Lk = 0 (as there are no outstanding samples in the system). For exam-

    ple, L1 =L2 = =L1/r1 =0. Also, note that just after sampling instant tb,L(i)tb 1.

    Mk {0, 1, 2, . . . ,N} denotes the index of the node that successfully transmits in slotk. Mk = 0 means that there is no successful transmission in slot k. Thus, from the

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    14/35

    12:14 P. Karumbu et al.

    slots

    A new sample is taken here if

    k+1k

    Departure w.p. if

    L(i)k

    k+1 = 1/r

    NkL(i)k > 0

    L(i)k+1 =L

    (i)k 1{Mk=i} + 1{k+1=1/r}

    Fig. 13. The evolution of L(i)k from time slotk to time slot k + 1. If, during time slot k, nodei (successfully)transmits a packet to the fusion center (i.e., Mk = i), then that packet is flushed out of its queue at the endof time slotk. Also, a new sample is generated (every 1/rslots) exactly at the beginning of a time slot. Thus,

    L(i)k+1, the queue length of sensor node i (just after the beginning of the time slot k + 1 (i.e., at (k + 1)+)) is

    given by L(i)k+1 = L

    (i)k 1{Mk=i} + 1{k+1=1/r}.

    slotsk+1k

    A new sample is received by the fusion center here if

    w.p. if

    W(i)

    k

    W(i)

    k+1

    Mk =j L(j)k > 0

    Mk =j

    Nk

    Fig. 14. The evolution of W(i)k from time slotk to time slot k +1. If a sample from node i is transmitted(successfully) during time slotk (i.e., Mk = i), then it is received by the fusion center at the end of time slotk(i.e., at (k +1)). If this sample is from batch Bk, it is passed on to the decision maker. Otherwise, it is

    queued in the sequencing buffer, in which case W(i)k+1 = W(i)k + 1. On the other hand, if a sample from some

    other node j is transmitted (successfully) during time slot k (i.e., Mk = j =i), and if this sample is the lastcomponent to be received from batch Bk by the fusion center, then the HOL packet of the i th sequencing

    queue (if any) is also delivered to the decision maker. Thus, in this case, W(i)k+1 = max{W

    (i)k 1, 0}. Note that

    W(i)k+1 refers to the queue length corresponding to nodei at the sequencer at the beginning of time slotk + 1.

    network model provided in Section 4, we note that

    Mk =

    0 w.p.1 ifNk = 0,0 w.p.(1 ) ifNk > 0,

    j w.p. Nk

    ifL(j)

    k >0, j = 1, 2, . . . ,N.

    W(i)k {0, 1, 2, . . .} denotes the queue length of the ith sequencing buffer at time

    k. The vector of queue lengths is given by Wk =

    W(1)k , W(2)k , . . . , W

    (N)k

    . Note that

    Wk = 0 ifk = 0, that is, the sequencing buffer is empty if there are no outstandingsamples in the system. In particular, W0 = W1 = = W 1

    r= 0. The evolution of

    W(i)k is explained in Figure 14. If a sample from node i of a batch later than Bk is

    successfully transmitted during slotk, then W(i)k+1 = W(i)k + 1. If a sample from node

    j of batch Bk is successfully transmitted, and if it is the last sample to be receivedfrom batch Bk, then the queue lengths of the sequencing buffer are decremented by

    1, that is, W(i)k+1 = max{W(i)k 1, 0}.

    R(i)k {0, 1} denotes whether the sample X(i)Bk

    has been received and processed by

    the decision maker, at time k. R(i)k = 0 means that the sample X(i)Bk

    has not yet

    been received by the decision maker, and R(i)k = 1 means that the sample X(i)Bk

    has

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    15/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:15

    been received and processed by the decision maker. The vector of R(i)k s is given

    by Rk = [R(1)k ,R

    (2)k , . . . ,R

    (N)k ]. Note that if R

    (i)k = 0, then W

    (i)k = 0, that is, the ith

    sequencing buffer is empty if the sample expected by the decision maker has notyet been transmitted. Also note that when k =0, Rk = 0, as the samples from thecurrent batch Bkhave yet to be generated or have just been generated.

    We now relate the queue lengths L(i)k and W(i)k . Note that at the beginning of time

    slotk,

    k1/r

    batches have been generated so far, of which Bk 1 batches are completely

    received by the decision maker. In batch Bk, theith sample is received by the decision

    maker, if R(i)k = 1. Hence, at time k, Bk 1 + R(i)k samples generated by node i have

    been processed by the decision maker and the remaining samples are in the sensor andsequencing queues. Thus, we have

    L(i)k + W(i)k =

    k

    1/r

    (Bk 1) R

    (i)k

    = k Bk/r+ 1/r

    1/r R(i)k

    =

    k1/r

    + 1 R (i)k ifk > Bk/r,

    1 R (i)k ifk = Bk/r,

    R(i)k ifk < Bk/r.

    (6)

    Recalling the definition ofk, we write Equation (6) as

    L(i)k + W(i)k =

    k1/r

    + 1 R (i)k ifk > 0,

    1 ifk = 0, k = 1/r,

    0 ifk = 0, k =1/r.

    (7)

    Note that in Equation (7) k = 0, k = 1/r(or equivalently k = Bk/r) corresponds to thecase when the samples of batch Bkhave just been taken and all the samples from all

    previous batches have been processed. Thus, in this case, L(i)k =1 (as W(i)k =0). In thecase ofk =0, k = 1/r (or equivalently k < Bk/r), all the samples from all previousbatches have been processed, and a new sample from batch Bkis not yet taken. Thus,

    in this case, L(i)k =0 (and W(i)k =0). Hence, given Qk =

    k,Bk, k, Wk, Rk

    , the queue

    lengths L(i)k s can be computed as

    L(i)k = L(i) (Qk) :=

    k1/r

    + 1 R (i)k W

    (i)k ifk > 0,

    1 ifk = 0, k = 1/r,

    0 ifk = 0, k =1/r.

    . (8)

    Also, Nk = N(Qk) :=

    N

    i=11{

    L(i)(Qk)>0}. (9)

    Thus, the state of the queueing system at time k can be expressed as Qk =[k,Bk, k, Wk, Rk]. Note that the decision maker can observe the state Qk perfectly.The evolution of the queueing system is explained in Section 5.2.

    5.2. Evolution of the Queueing System

    The evolution of the queueing system from time kto time k +1 depends only on Mk,that is the success/no-success of contention on the random access channel. Note that

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    16/35

    12:16 P. Karumbu et al.

    the evolution of k is deterministic and that of k depends on Bk. Hence, to describethe evolution ofQk, it is enough to explain the evolution ofBk, Wk, andRkfor variouscases ofMk. LetYk+1 {} (

    Nn=1X

    n) denote the vector of samples received (if any) by

    the decision maker at the beginning of slot k + 1 (i.e., the decision maker can receive avector ofn samples, wheren ranges from 0 to N).

    At the beginning of time slot k + 1, the following possibilities arise.

    No successful transmission. This corresponds to either the case i) in which all thequeues are empty at the sensor nodes (Nk = 0) case or (ii) in which some queuesare nonempty at the sensor nodes (Nk >0), there are no queue attempts, or thereis more than one attempt (resulting in a collision). In either case, Mk = 0 and thedecision maker does not receive any sample, that is, Yk+1 = . In this case, it is clearthat Bk+1 = Bk,Wk+1 = Wk, andRk+1 = Rk.

    Successful transmission of node js sample from a later batch. This corresponds to thecase when the decision maker has already received the jth component of the current

    batch Bk(i.e., R(j)k =1) and has not received some sample, say i = j, from batch Bk

    (i.e., R(i)k =0, for some i). The received sample (is an out-of-sequence sample and) is

    queued in the sequencing buffer (W(j)k+1 = W

    (j)k + 1). Thus, in this case, Mk = j, and

    the decision maker does not receive any sample, that is, Yk+1 = . In this case, it isclear that Bk+1 = Bk,Wk+1 = Wk + ej , andRk+1 = Rk.

    Successful transmission of node js current sample, which is not the last componentof batch Bk.This corresponds to the case when the decision maker has not received

    the jth component of batchBkbefore time slotk (R(j)k =0), and it has received all the

    samples that are generated earlier than that of the successful sample. Also, the fusion

    center is yet to receive some other component of batch Bk (i.e.,N

    i=1R(i)k < N 1).

    Thus, in this case, Mk = j, and the decision maker receives the sample Yk+1 = X(j)Bk

    .In this case, it is clear that Bk+1 = Bk,Wk+1 = Wk, andRk+1 = Rk + ej .

    Successful transmission of node js current sample, which is the last componentof the batch Bk. This corresponds to the case when the decision maker has not

    received the jth component of batch Bk before time slot k (R(j)k = 0), and it hasreceived all the samples that are generated earlier than that of the successful sample.

    Also, this sample is the last component of batch Bk that is received by the fusion

    center (i.e.,N

    i=1R(i)k = N 1). In this case (along with the received sample), the

    queues of the sequencing buffer deliver the head of line (HOL) components (whichcorrespond to the batch indexBk+1), if any, to the decision maker, and the queues are

    decremented by one (W(i)k+1 =max{W(i)k 1, 0}). Thus, Mk= j and the decision maker

    receive the vector of samples Yk+1 = [X(j)Bk

    ,X(i1)

    Bk+1,X

    (i2)

    Bk+1, . . . ,X

    (in1)

    Bk+1], where W(i)k > 0

    fori {i1, i2, . . . i

    n1}, and W

    (i)k =0 for i / {i

    1, i

    2, . . . i

    n1}. In this case, Bk+1 = Bk + 1,

    Wk+1 = Wk ei1 ei2 ein1 , andRk+1 = ei1 + ei2 + + ein1 .

    Thus, the state of the queueing system at time k + 1 can be described by

    Qk+1 = Q(Qk,Mk)

    :=

    (Qk,Mk), B(Qk,Mk), (Qk,Mk), W(Qk,Mk), R(Qk,Mk)

    .

    In the next section, we provide a model of the dynamical system whose state has thestate of nature k as one of its constituents. The quickest detection of change of kfrom 0 to 1 (at a random time T) is the focus of this article.

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    17/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:17

    5.3. System State Evolution Model

    Letk {0, 1}, k 0 be the state of nature at the beginning of time slot k. Recall thatTis the change point, that is, for k < T, k =0 and for k T, k =1, and that thedistribution of T is given in Equation (1). The state k is observed only through thesensor measurements which are delayed. We will formulate the optimal NADMchangedetection problem as a partially observable Markov decision process (POMDP) withthe delayed observations. The approach and the terminology used here is in accordancewith the stochastic control framework in Bertsekas [2000a]. At time k, a sample (if any)that the decision maker receives is generated at time Bk/r 0, k = [ Bk

    r

    , Bkr

    +1, . . . , k], and when

    k = 0, kis just [k].Consider the discrete-time system, which at the beginning of time slot k is described

    by the statek = [Qk,k],

    where we recall that

    Qk = [k,Bk, k, Wk, Rk],

    k = [kk , kk+1, . . . , k].

    Note that 0 =[[1r , 1, 0, 0], 0]. At each time slot k, we have the following set of controls

    {0, 1}, where 0 represents take another sample, and 1 represents stop and declarechange. Thus, at time slot k, when the control chosen is 1, the state k+1is given by aterminal absorbing statet; when the control chosen is 0, the state evolution is given byk+1 =[Qk+1,k+1], where

    Qk+1 = Q(Qk,Mk),

    k+1 =

    k + 1{T=k+1}

    , ifk+1 =0kk , kk+1, . . . , k, k + 1{T=k+1}

    , ifk+1 =k + 1

    kk+ 1r, kk+ 1r +1

    , . . . , k, k + 1{T=k+1}

    , ifk+1 =k + 1

    1r

    .

    =: k, Qk,Mk, 1{T=k+1}

    , (10)

    where it is easy to observe that k+ 1{T=k+1} = k+1. When k+1 = k+ 1, batch Bkis still in service, and hence, in addition to the current state k+1 = k + 1{T=k+1},

    we need to keep the states kk, kk+1, . . . , k. Also, when k+1 = k +1 1

    r,

    the batch index is incremented, and hence, the vector of states that determines thedistribution of the observations sampled at or after Bk+1/rand before k + 1 is given by[kk+ 1r , kk+

    1r

    +1, . . . , k, k + 1{T=k+1}].

    Define Ok := 1{T=k+1}, and define Nk :=[Mk,Ok] as the state-noise during time slotk. The distribution of state-noise Nk, given the state of the discrete-time system k, isgiven byP(Mk = m,Ok = o|k = [q, ]) and is the product of the distribution functionsP(Mk = m|k = [q, ]) and P(Ok = o|k = [q, ]). These distribution functions areprovided in Appendix III.

    The problem is to detect the change in the state k as early as possible by sequentiallyobserving the samples at the decision maker.

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    18/35

    12:18 P. Karumbu et al.

    5.4. The NADM Change-Detection Problem

    We now formulate theNADMchange detection problem in which the observations fromthe sensor nodes are sent over a random access network to the fusion center, and thefusion center processes then the samples in the NADMmode.

    In Section 5.3, we defined the state k = [Qk,k] on which we formulate the NADMchange detection problem as a POMDP. Recall that at the beginning of slot k, thedecision maker receives a vector of sensor measurements Ykand observes the state Qkof the queueing system. Thus, at time k, Zk = [Qk,Yk] is the observation of the decisionmaker about the state of the dynamical system k.

    Let Ak {0, 1} be the control (or action) chosen by the decision maker after havingobserved Zk at k. Recall that 0 represents take another sample and 1 represents theaction stop and declare change. Let Ik = [Z[0:k],A[0:k1]] be the information vector3

    that is available to the decision maker at the beginning of time slot k. Let be astopping time with respect to the sequence of random variables I1, I2, . . .. Note thatAk = 0 for k < and Ak =1 for k . We are interested in obtaining a stopping time (with respect to the sequence I1, I2, . . .) that minimizes the mean detection delaysubject to a constraint on the probability of false alarm, that is,

    min E( T)+

    , (11)

    such that P ( , gk(, ) := 0. Recall that Ak = 0 for k < and Ak = 1 for k . Notethat Ak, the control at time slot k, depends only on Ik. Thus, every stopping time

    3The notationZ[k1:k2] :=Zk1 , Zk1+1, . . . , Zk2 .

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    19/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:19

    corresponds to a policy = (0, 1, . . .), such that Ak = k(Ik), with Ak = 0 for k < and Ak = 1 for k . Thus, Equation (12) can be written as

    C(c, ) = min

    E

    k=0

    gk(k,Ak)

    = min

    k=0

    Egk(k,Ak)

    (by monotone convergence theorem)

    = min

    k=0

    Egk(k, k(Ik))

    . (14)

    Since kis observed only throughIk, we look at a sufficient statistic for Ikin the nextsection.

    5.5. Sufficient Statistic

    In Section 5.2, we have illustrated the evolution of the queueing system Qk and haveshown, in different scenarios, the vector Ykreceived by the decision maker. Recall fromSection 5.2 that

    Yk+1 =

    , ifMk = 0,

    , ifMk = j >0,R(j)k =1,

    Yk+1,0, ifMk = j >0,R(j)k =0,

    Ni=1

    R(i)k < N 1Yk+1,0, Yk+1,1, . . . , Yk+1,n

    , ifMk = j >0,R

    (j)k =0,

    N

    i=1

    R(i)k = N 1,

    Ni=1

    1{W(i)k >0} =n.

    Note that Yk+1,0 corresponds to X(Mk)Bk

    . The last part of the preceding equation cor-responds to the last pending sample of batch Bk arriving at the decision maker attime k+ 1, with some samples from batch Bk +1 (= Bk+1) also being released bythe sequencer. In this case, the state of nature at the sampling instant of batchBk+1 = Bk + 1 is kk+1/r . Note that kk+1/r is a component of the vector k, ask k + 1/r = (Bk + 1)/r < k. Thus, the distribution ofYk+1,0, Yk+1,1, . . . , Yk+1,nis givenby

    fYk+1,0 ()= f0(), ifkk =0f1(), ifkk =1 and

    fYk+1,i ()= f0(), ifkk+1/r =0

    f1(), ifkk+1/r =1. , i = 1, 2, . . . , n.

    Thus, at timek + 1, the current observation Yk+1depends only on the previous state k,previous action Ak, and the previous noise of the system Nk. Thus, a sufficient statisticis [P(k = [q, ]|Ik)][q,]S(see page 244 at Bertsekas [2000a]), where Sis the set of all

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    20/35

    12:20 P. Karumbu et al.

    states of the dynamical system defined in Sec. 5.3. Letq = [, b, , w, r]. Note that

    P

    k = [q, ]

    Ik= P k = [q, ] Ik1, Qk,Yk= 1{Qk=q} P

    k =

    Ik1, Qk = q,Yk= 1{Qk=q}

    P[k, k+1, . . . , k1, k]= [ , 1, . . . , 1, 0]

    Ik1, Qk= q,Yk= 1{Qk=q} P

    k =

    Ik1, Qk = q,Yk

    j=1

    P

    k+j =jk+j =j , j =0, 1, . . . , j 1, Ik1, Qk = q,Yk

    (15)

    Observe that

    P k+j =j[k:k+j2], k+j1 =0, Ik1, Qk = q,Yk=

    1 p, ifj =0p, ifj =1,

    and

    P

    k+j =j[k:k+j2], k+j1 =1, Ik1, Qk = q,Yk

    =

    0, ifj =01, ifj =1.

    This is because given k, the events {k+j =j },

    Ik1, Qk = q,Yk

    are condition-ally independent. Thus, Equation (15) can be written as

    P (k = [q, ])

    Ik

    =

    1{Qk=q} P k =1Ik1, Qk = q,Yk , if =11{Qk=q} P k =0Ik1, Qk = q,Yk (1 p)j1p, if =[0, . . . , 0, 1j

    , . . . , 1]

    1{Qk=q} P

    k =0Ik1, Qk = q,Yk (1 p) , if =0.

    ,

    (16)

    Definek:=kk, and definek := P

    k = 1Ik1, Qk = [, b, , w, r],Yk= P

    k =1

    Ik1, Qk = [, b, , w, r],Ykk := P

    k = 1

    Ik1, Qk = [, b, , w, r],Yk= P

    T k

    Ik1, Qk = [, b, , w, r],Yk

    .

    (17)

    Thus, Equation (16) can be written as

    P

    k =[, b, , w, r],

    Ik=

    1{Qk=[,b,,w,r]} k, if =11{Qk=[,b,,w,r]} (1 k) (1 p)

    j1p, if =[0, . . . , 0, 1j

    , . . . , 1]

    1{Qk=[,b,,w,r]} (1 k) (1 p) , if =0.

    (18)

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    21/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:21

    We now find a relation between kand kin the following Lemma.

    LEMMA 5.1. The relation between the conditional probabilitieskand kis given by

    k = k + (1 k) 1 (1 p) . (19)PROOF. See Appendix IV.

    From Equation (18) and Lemma 5.1, it is clear that a sufficient statistic for Ik isk = [Qk, k]. Also, we show in Appendix V that k can be computed recursively, thatis, when Ak =0, k+1 =[Qk+1, k+1] =[Qk+1, (k, Zk+1)], and when Ak =1, k+1 = t,a terminal state. Thus,kcan be thought of as entering into a terminating (absorbing)statet at (i.e., k =[Qk, k], for k < and k = t for k ). Since kis sufficient, forevery policykthere corresponds a policyksuch thatk(Ik)=k(k) (see page 244 atBertsekas [2000a]).

    5.6. Optimal Stopping Time

    LetQ be the set of all possible states of the queueing system Qk. Thus, the state space of

    the sufficient statistic isN =(Q [0, 1]) {t}. Recall that the action space isA = {0, 1}.Define the one-stage cost functiong : N A R+ as follows. Let Nbe a state ofthe system, and leta A be a control. Then,

    g(, a) = 0 if =tc if =[q, ], a =01 if =[q, ], a =1.

    Note from Equation (13) fork , that

    Egk(k,Ak)

    = E

    gk(k, k(Ik))

    = E

    Egk(k, k(Ik))

    Ik= E

    g(k,

    k(k))

    ,

    and fork > , that

    Egk(k,Ak) = 0= E

    g(t, ) .Since {k} is a controlled Markov process, and the one-stage cost functiong(, ), thetransition probability kernel for Ak= 1 and for Ak = 0 (i.e.,P(Zk+1|k)) does not dependon time k, and since the optimization problem defined in Equation (14) is over infinitehorizon, it is sufficient to look for an optimal policy in the space of stationary Markovpolicies (see page 83 at Bertsekas [2000b]). Thus, the optimization problem defined inEquation (14) can be written as

    C(c, ) = min

    k=0

    Eg

    k,

    k(k)

    =

    k=0

    E gk,(k) . (20)Thus, the optimal total cost is given by

    J([q0, 0]) =

    k=0

    E[g(k,(k))|0 = [q0, 0]]. (21)ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    22/35

    12:22 P. Karumbu et al.

    The solution to the preceding problem is obtained by following Bellmans equation,which is given by

    J

    ([q, ]) := min{1 , c + E[J

    (Qk+1, (k, Zk+1))|k= [q, ]]}, (22)where the function (k, Zk+1) is provided in Appendix V.

    Remark 5.2. The optimal stationary Markov policy (i.e., the optimum stopping rule )in general depends on Q. Hence, the decision delay and the queueing delay are coupled,unlike in theNODMcase.

    We characterize the optimal policy in the following theorem.

    THEOREM 3. The optimal stopping rule is a network-state dependent threshold ruleon the a posteriori probability k, that is, there exist thresholds(q), such that

    = inf{k 0 : k (Qk)}. (23)

    PROOF. See Appendix VI.

    In general, the thresholds (Qk)s (i.e., optimum policy) can be numerically obtainedby solving Equation (22) using value iteration method (see pp. 8890 at Bertsekas[2000b]). However, computing the optimal policy for the NADMprocedure is hard, asthe state space is huge even for moderate values ofN. Hence, we resort to a suboptimalpolicy based on the following threshold rule motivated by the structure of the optimalpolicy.

    = inf{k 0 :k }, (24)

    whereis chosen such that P (

  • 8/10/2019 a12-karumbu

    23/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:23

    expression overr (recall Theorem 1).

    (d(r) + l(r))(1 ) l(r) +1

    rmin

    EKK+.

    Note that in the preceding expression, the delay term min E[K K]+ also depends

    on the sampling rate r , via the probability of change pr = 1 (1 p)(1/r). The delay

    due to coarse samplingl(r)(1 ) l(r) can be found analytically (see Appendix I).We can approximate the delay minE[

    KK]+ by the asymptotic (as 0) delay as| ln()|

    NI(f1,f0)+| ln(1pr )|, where I(f1, f0) is the Kullback-Leibler (KL) divergence between the

    pdfs f1 and f0 [Tartakovsky and Veeravalli 2005]. But obtaining the network-delay(i.e., d(r)(1 )) analytically is hard, and hence, an analytical characterisation ofr

    appears intractable. Therefore, we have resorted to numerical evaluation.The distribution of sensor observations are taken to beN(0, 1) andN(1, 1),4 before

    and after the change, respectively, for all the ten nodes. We choose the probability ofoccurrence of change in a slot to be p = 0.0005, that is, the mean time until change

    is 2,000 slots. minEK K+ and d(r) are obtained from simulations for = 0.01and = 0.3636, and the expression for mean detection delay is plotted against r inFigure 15. Note that both NODM and NADM are threshold-based, and we obtain thecorresponding thresholds for a target PFA =0.01 by simulation. These thresholds arethen used to obtain the mean detection delay by simulation. In Figure 15, we alsoplot the approximate mean detection delay which is obtained through the expression

    for l(r) and the approximation, minEK K+ | ln()|

    NI(f1,f0)+| ln(1pr )|. We study this

    approximation as it provides an (approximate) explicit expression for the mean decisiondelay. The delay in the FJQGPS does not have a closed-form expression. Hence, westill need simulation for the delay, due to queueing network. It is to be noted thatat k = 0, the size of all the queues is set to 0. The mean detection delay due to theprocedure defined in Equation (24) is also plotted in Figure 15.

    As would have been expected, we see from Figure 15 that the NADM procedurehas a better mean detection delay performance than the NODMprocedure. Note that/N = 0.03636, and hence for the queues to be stable (see Theorem 2), the samplingrate has to be less than /N= 0.03636 (1/28< 0.03636< 1/27). As the sampling raterincreases to 1/28 (the maximum allowed sampling rate), the queueing delay increasesrapidly. This is evident from Figure 15. Also, we see from Figure 15 that operating ata sampling rate around 1/34( 0.0294) samples/slot would be optimal. The optimalsampling rate, is found to be approximately the same for NODM and NADM. At theoptimal sampling rate, the mean detection delay of NODM is 90 slots, and that ofNADMis 73 slots.

    6.2. Optimal Number of Sensor Nodes (Fixed Observation Rate)

    Now let us consider fixingN r. This is the number of observations the fusion centerreceives per slot in a network with Nnodes sampling at a rate r(samples per slot). It isalso a measure of the energy spent by the network per slot. Since it has been assumed

    that the observations are conditionally independent and identically distributed acrossthe sensors and over time, it is natural to ask how beneficial it is to have more nodessampling at a lower rate compared to fewer nodes sampling at a higher rate, when thenumber of observations per slot is the same. Withp =0.0005, = 0.01, and =0.3636,and f0 N(0, 1) and f1 N(1, 1), we present simulation results for two examples,

    4As usual, N(a, v) denotes a normal distribution with mean aand variance v

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    24/35

    12:24 P. Karumbu et al.

    60

    80

    100

    120

    140

    160

    180

    200

    220

    0.01 0.015 0.02 0.025 0.03 0.035

    MeanDetectionDelay(slots)

    Sampling rate, r (samples per slot)

    NODM: SimulationNODM: ApproximationNADM: Simulation

    Fig. 15. Mean detection delay forN= 10 nodes is plotted against the sampling rate r for both NODMand

    NADM (defined in Equation (24)). For NODM, an approximate analysis is also plotted. This was obtainedwith the prior probability = 0, p = 0 .0005, probability of false alarm target = 0 .01, = 0.3636, andwith the sensor observations beingN(0, 1) and N(1, 1), before and after the change, respectively.

    the first one beingNr = 1/3 (the case of a heavily loaded network) and the second onebeingNr =1/100 (the case of a lightly loaded network, Nr ).

    Figure 16 shows the plot of mean decision delayl(r)(1 ) + 1r minE[KK]+

    versus the number of sensors when Nr = 1/3. As N increases, the sampling rater =1/(3N) decreases, and hence, the coarse sampling delayl(r)(1 ) increases; thiscan be seem to be approximately linear by analysis of the expression for l(r), given in

    Appendix I. Also, as Nincreases, the decision maker gets more samples at the decisioninstants, hence, the delay due to the decision maker 1

    rminE[

    KK]+ decreases (thisis evident from the right side of Figure 16). Figure 16 shows that in the region whereN is large (i.e., N 20) or N is very small (i.e., N < 5), as Nincreases, the mean

    decision delay increases. This is because as Nincreases in this region, the decrease indelay due to the decision maker is smaller compared to the increase in delay due tocoarse sampling. However, in the region where Nis moderate (i.e., for 5 N < 20),as Nincreases, the decrease in delay due to the decision maker is large compared tothe increase in delay due to coarse sampling. Hence, in this region, the mean decisiondelay decreases with N. Therefore, we infer that when N r = 13 , deploying 20 nodessampling at 1/60 samples per slot is optimal, when there is no network delay.

    Figure 17 shows the mean detection delay (i.e., the network delay plus the decisiondelay shown in Figure 16) versus the number of nodes N for a fixed N r = 1/3.

    As the the number of nodes N increases, the sampling rate r = 1/(3N) decreases.For large N (and equivalently small r), as in the case of NODM with the Shiryaevprocedure, the network delay d(r) N

    as it requires N(independent) successes, (each

    with probability ) in the random access network to transport a batch of Nsamples(also, since the sampling rate r is small, one would expect that a batch is delivered

    before a new batch is generated), and the decision maker requires just one batch ofNsamples to stop (after the change occurs). Hence, for large N, the detection delay isl(r)(1 ) + d(r)(1 ) l(r)(1 ) + N

    (1 ). It is to be noted that for large N, to

    achieve a false alarm probability of, the decision maker requires N < Nsamples.(The mean of the log-likelihood ratio (LLR) of received samples, after change, is theKL divergence between pdfs f1 and f0, given by I(f1, f0) > 0. Hence, the posteriorprobabilitywhich is a function of LLRincreases with the the number of received

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    25/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:25

    48

    50

    52

    54

    56

    58

    60

    62

    0 5 10 15 20 25 30 35 40

    MeanDecisionDela

    y(slots)

    Number of Sensors, N

    0

    10

    20

    30

    40

    50

    60

    0 5 10 15 20 25 30 35 40

    Delay(slots

    )

    Number of Sensors, N

    Coarse sampling delayDecision maker delay

    Fig. 16. Mean decision delay ofNODM procedure for N r = 1/3 is plotted against the number of nodesN. The plot is obtained with = 0, p = 0 .0005, = 0.01, and with the sensor observations N(0, 1) andN(1, 1), before and after the change, respectively. The components of the mean decision delay, that is, thecoarse sampling delay (1 )l(r) l(r) and the decision maker delay 1r min E[

    KK]+ are shown on theright.

    60

    80

    100

    120

    140

    160

    180

    200

    220

    0 5 10 15 20 25 30 35 40

    MeanDetectionDelay(slots)

    Number of Sensors, N

    NODM: SimulationNADM: Simulation

    Fig. 17. Mean detection delay forN r = 1/3 is plotted against the number of nodes N. This was obtainedwith = 0, p =0.0005, = 0.01 =0.3636, and with sensor observationsN(0, 1) andN(1, 1), before andafter the change, respectively.

    samples. Thus, to cross a threshold of(), we need N samples). Thus, for large N,in the NADM procedure, the detection delay is approximately l(r)(1 )+ N

    (1 ),

    where N / is the mean network-delay to transport N samples. Thus, for large N,the difference in the mean detection delay between NODM and NADM procedures isapproximately 1

    (N N ). Note that N depends only on , and hence, the quantity

    1

    (NN) increases with N. This behaviour is in agreement with Figure 17. Also, asNr =1/3, we expect the network delay to be very large (as 1/3 is close to =0.3636),and hence, having a single node is optimal, which is also evident from Figure 17.

    It is also possible to find an example where the optimal number of nodes is greaterthan 1. For example, this occurs in the previous setting for Nr = 0.01 (see Figure 18).Note that having N = 10 sensors is optimal for the NADM procedure. The NODMprocedure makes the decision only when it receives a batch ofNsamples correspondingto a sampling instant, whereasNADMprocedure makes the decision at every time slot,irrespective of whether it receives a sample in that time slot or not. Thus, the Bayesianupdate thatNADMdoes at every time slot makes it stop earlier than NODM.

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    26/35

    12:26 P. Karumbu et al.

    800

    1000

    1200

    1400

    1600

    1800

    2000

    22002400

    2600

    2800

    0 5 10 15 20 25 30 35 40

    MeanDetectionDelay(slots)

    Number of Sensors, N

    NODM: SimulationNADM: Simulation

    Fig. 18. Mean detection delay for N r = 0.01 is plotted against the the number of nodes N. This was

    obtained with = 0, p = 0.0005, = 0.01, and with sensor observations N(0, 1) and N(1, 1), before andafter the change, respectively.

    7. CONCLUSIONS

    In this work, we have considered the problem of minimizing the mean detection delayin an event detection on a small extent ad hoc wireless sensor network. We providetwo ways of processing samples in the fusion center: (i) Network Oblivious ( NODM)processing and (ii) Network Aware (NADM) processing. We show that in the NODMprocessing, under periodic sampling, the detection delay decouples into decision andnetwork delays. An important implication of this is that an optimal sequential changedetection algorithm can be used in the decision device, independently of the randomaccess network. We also formulate and solve the change detection problem in the NADMsetting, in which case the optimal decision maker needs to use the network state in

    its optimal stopping rule. Also, we study the network delay involved in this problemand show that it is important to operate at a particular sampling rate to achieve theminimum detection delay.

    APPENDIXES

    APPENDIXI

    PROOF. (THEOREM1).

    min

    EU TI{TT} = min

    E

    U T +T Kr

    +K

    r T

    I{TT}

    = min

    E(UT)I{TT} + EKr TI{TT}+

    1

    rEKKI{TT} . (25)

    Note that in Equation (25), the first term is the queueing delay, the second term isthe coarse sampling delay, and the third term is the decision delay (all delays being in

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    27/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:27

    slots). Consider the first term,

    E(UT)I{TT} = E(UK tK)I{TT}= j0,b0,x0

    P(T = j,K= b,Db = x)x I{ brj}

    =

    j0,b0,x0

    P(T = j,K= b)P (Db = x)x I{ brj},

    where we have used the facts that (i) the decision process is based on only what thepackets carry and not on their arrival time, and (ii) the condition that sampling is doneperiodically at a known rate r. Assuming the queueing system to be stationary, thepreceding can be written as

    E

    (

    U

    T)I{TT}

    =

    x0

    P (D = x)x

    j,b

    P(T = j,

    K= b)I{ b

    rj}

    = EDP(T T).Note that E[D] is a function of the sampling rate rand does not depend on the detectionpolicy.

    Consider the second term of Equation (25),

    E

    K

    r T

    I{TT}

    = E

    K

    r T

    I{KK}

    = E

    K

    r T

    I{KK,S0=1}

    + E

    K

    r T

    I{KK,S0=0}

    .

    ForS0 = 1, we have T =0 and K= 0. Hence,

    E

    K

    r T

    I{

    TT}

    = 0 + E0

    K

    r T

    I{

    KK}

    whereE0 []denote the expectation and P0 ()the probability law when the initial stateis S0 = 0. Now,

    E0

    K

    r T

    I{KK}

    =

    b=1

    b=b

    b/rt=(b1)/r+1

    P0(T =t,K= b,K= b) br

    t

    =

    b=1

    b=b

    P0(K= b,K= b)

    b/rt=(b1)/r+1

    P0(T =t | K= b,K= b) br

    t

    . (26)We note thatKis independent ofT, given K. Hence,

    E0

    K

    r T

    I{KK}

    =

    b=1

    b=b

    P0(K= b,K= b)

    1/r1y=0

    y P0

    T =

    b

    r y | K= b

    .ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    28/35

    12:28 P. Karumbu et al.

    We have

    P0 (T =t | K= b) = (1)(1p)t1p(1)(1pr )b1pr

    , fort s.t.b = t r

    0, otherwise.

    Hence, for 0 y 1/r 1,

    P0

    T =

    b

    r y | K= b

    =

    (1 p)b/ry1p

    (1 pr)b1pr,

    but (1 pr)= (1 p)1/r , hence,

    P0

    T =

    b

    r y | K= b

    =

    (1 p)b/ry1p

    (1 pr)b1pr

    =(1 p)1/ry1p

    1 (1 p)1/r .

    It can be shown that

    1/r1y=0

    y (1 p)1/ry1p

    1 (1 p)1/r =

    1

    r

    1p

    1

    rpr(1 pr)

    =: l(r).

    Therefore, Equation (26) can be written as

    E0

    K

    r T

    I{KK}

    = l(r) P0(K K) = l(r) (P(K K) )

    = l(r) (1 P(K< K) ).Finally, we have

    min

    E

    (

    U T)I{

    TT}

    = min

    {d(r)(1 P(T

  • 8/10/2019 a12-karumbu

    29/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:29

    We need 1 > or 1 , the optimal stopping is at t =0. Thiswill yield the desired probability of false alarm and E[(

    U T)I{

    TT}]= 0.

    APPENDIXII

    PROOF. (THEOREM 2). The necessity of Nr < is clear. The sufficiency proof goes asfollows. Consider the FJQ-GPS system with every queue always containing a singledummy packet that is served at low priority. Let us call this the saturated FJQ-GPSsystem. When a queue becomes empty, the low-priority dummy packet contends forservice. If it receives service, then it immediately reappears and continues to contendfor service. If, while a dummy packet is in service, a regular packet arrives, then theservice of the dummy packet is preempted, and the regular packet starts contending.It follows that the service rate applied to every queue (i.e., those with regular packetsor those with dummy packets) is always /N. Now, consider a virtual service processof rate . In each slot, a service occurs with probability , and the service is appliedto any one of the queues with equal probability. Equivalently, each queue is servedby an independent Bernoulli process of rate /N. Considering only the services to the

    regular packets at each queue, we have a G I/M/1 queue (here G Irefers to a generaldistribution with independent arrivals, Mrefers to a Markovian service process, and1 refers to one server). Hence, the system has proper stationary delay, if and only ifr < /N. Also, it can be seen that the delays in the described system (with dummypackets when a queue is empty) upperbound those in the original FJQ-GPS system.Hence, the result follows.

    APPENDIXIII

    Distribution of state noise N.Let q = [, b, , w, r]. Note that P

    Mk = m

    Qk = q,k= = P Mk = mQk= qand is given by

    P Mk = 0Qk = q = 1 ifN(q)= 01 ifN(q)> 0

    ,

    PMk = m

    Qk = q = 0 ifN(q)= 0N(q)

    ifL(m) (q)> 0, m =1, 2, 3, . . . ,N,

    whereN(q) andL(m) (q) are obtained from Equations (9) and (8).The distribution function P(Ok = o|Qk = q,k = ) = P(Ok = o|Qk = q, k = ) is

    given by

    P

    Ok= oQk = q, k= 0= 1 p ifo = 0p ifo = 1,

    0 otherwise,

    P

    Ok= o

    Qk = q, k= 1

    =

    1 ifo = 00 otherwise.

    APPENDIXIV

    PROOF(LEMMA1).Letq = [, b, , w, r]. From Equation (17),

    k := P

    T kIk1, Qk= q,Yk

    = P

    T k Ik1, Qk = q,Yk + P k

  • 8/10/2019 a12-karumbu

    30/35

    12:30 P. Karumbu et al.

    = P

    T k

    Ik1, Qk= q,Yk

    + P

    T >k

    Ik1, Qk = q,Yk

    P T kT >k , Ik1, Qk= q,Yk ,= k + (1 k) P T kT >k , Ik1, Qk = q,Yk ,= k + (1 k)

    P (k k

    = k + (1 k) P (k k ) (27)

    = k + (1 k)

    1 (1 p)

    . (28)

    Equation (27) is justified as follows. Note that

    P

    Ik1, Qk= q,Yk

    k 0,R(j)k ()= 1

    ,

    E2,k :=

    : Mk()= j >0,R

    (j)k ()= 0,

    Ni=1

    R(i)k ()< N 1

    ,

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    31/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:31

    E3,k :=

    : Mk()= j >0,R

    (j)k ()= 0,

    N

    i=1R(i)k ()= N 1

    ,

    that is, =E1,k E2,k E3,k. We note that the preceding events can also be describedby usingQkand Qk+1in the following manner.

    E1,k =

    : Wk+1()= Wk(), Rk+1()= Rk()

    : Wk+1()= Wk() + ej , Rk+1()= Rk()

    ,

    E2,k =

    : Wk+1()= Wk(), Rk+1()= Rk() + ej

    ,

    E3,k =

    :

    Ni=1

    R(i)k ()= N 1, i, W(i)k+1()= (W

    (i)k () 1)

    +,R(i)k+1()= 1{W(i)k >0}

    .

    Here, events E1,k and E2,k represent case Bk+1 = Bk, and event E3,k represents caseBk+1 = Bk + 1 (i.e., only if event E3,k occurs, then the batch index is incremented). Weare interested in obtainingk+1 from [Qk, k] and Zk+1. We show that at time k + 1,

    the statistick+1(after having observed Zk+1) can be computed in a recursive mannerusingkand Qk. Using Lemma 5.1 (using Equation (19)), we compute k+1fromk+1.

    k+1 = Pk+1 = 1 | Ik+1

    =

    3c=1

    Pk+1 = 1,Ec,k| Ik+1

    =

    3c=1

    Pk+1 = 1 | Ec,k, Ik+1 1Ec,k ( Ec,kis Ik+1measurable).

    Case Mk= 0 or Mk = j >0, R(j)k =1.

    k+1

    = P k+1 = 1 | E1,k, Ik+1= P

    k+1 = 1 | E1,k, Ik, Qk+1 = q

    =P

    k+1 =1 | E1,k, Ik

    fQk+1|k+1,E1,k,Ik (q|1,E1,k, Ik)

    fQk+1

    E1,k,Ik (q|E1,k, Ik) (by Bayes rule)= P

    k+1 = 1 | E1,k, Ik

    (Qk+1is independent ofk+1)

    = P (k = 0, k+1 =1 | Ik) + P (k = 1, k+1 =1 | Ik)

    = (1 k)p + k.

    Case Mk = j > 0, R(j)k = 0,

    Ni=1R

    (i)k < N 1. In this case, the sample X

    (j)Bk

    issuccessfully transmitted and is passed on to the decision maker. The decision makerreceives just this sample and computesk+1. We compute k+1 from kand then useLemma 5.1 using Equation (19)) to compute k+1fromk+1.

    k+1

    = Pk+1 = 1 | E2,k, Ik+1

    = Pk+1 = 1 | E2,k, Ik, [Qk+1,Yk+1]= [q,y]

    = Pk = 0, k+1 =1 | E2,k, Ik, [Qk+1,Yk+1]= [q,y]

    + Pk= 1, k+1 =1 | E2,k, Ik, [Qk+1,Yk+1]= [q,y] .

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    32/35

    12:32 P. Karumbu et al.

    Since we consider the case in which the fusion center receives a sample at time k + 1and Bk+1 = Bk, k+1 = k+ 1, and hence, the state

    k+1 = k+1k+1 = kk =

    k.

    Thus, in this case,k+1can be written as

    k+1

    = Pk= 1, k+1 = 1 | E2,k, Ik, [Qk+1,Yk+1]= [q,y]

    (a)=

    Pk = 1, k+1 =1 | E2,k, Ik P Qk+1 =q |k = 1, k+1 =1, E2,k, Ik

    P(Qk+1 =q|E2,k, Ik) fYk+1 |E2,k,Ik,Qk+1 (y|E2,k, Ik, q)

    fYk+1|k,k+1,E2,k,Ik,Qk+1 (y| 1, 1, E2,k, q, Ik)(b)=

    Pk = 1, k+1 =1 | E2,k, Ik P(Qk+1 = q|E2,k, Ik) fYk+1|k (y| 1)

    P(Qk+1 = q|E2,k, Ik) fYk+1|E2,k,Ik,Qk+1 (y|E2,k, Ik, q)

    (c)=

    Pk = 1,

    k+1 = 1 | E2,k, Ik

    f1(y)

    P

    k = 0 | E2,k, Ik, Qk+1

    fYk+1|

    k

    (y|0) + P

    k= 1 | E2,k, Ik, Qk+1

    fYk+1 |

    k

    (y|1)

    (d)=

    kf1(y)(1 k)f0(y) + kf1(y)

    .

    We explain the steps (a), (b), (c), and (d) below.

    (a) By Bayes rule, for events A,B, C,D,E, and F, we have

    P (AB |CDEF)=P (AB |C D) P (E| ABC D) P (F | ABCDE)

    P (E| C D) P (F |C DE) .

    (b) Qk+1 is independent ofk,k+1. Also, givenk, Yk+1 is independent ofk+1,E2,k, Ik, Qk+1.

    (c) For any events A,B, and a continuous random variable Y, the conditional density

    function fY|A(y|A) = P (B | A) fY|AB(y|AB) + P (Bc | A) fY|ABc (y|ABc). Also, givenk,Yk+1is independent ofE2,k, Ik, Qk+1.

    (d) E2,kis [Ik, Qk+1] measurable, and hence, given [Ik, Qk+1],kis independent ofE2,k.Case Mk = j >0, R

    (j)k =0,

    Ni=1R

    (i)k = N 1. In this case, at timek + 1, the decision

    maker receives the last sample of batchBk,X(j)Bk

    (that is successfully transmitted during

    slotk) and the samples of batchBk + 1, if any, that are queued in the sequencer buffer.We compute k+1 from k and use Lemma 1 (using Equation (19)) to compute k+1fromk+1. In this case, the decision maker receives n :=

    Ni=1 1{W(i)k >0}

    samples of batch

    Bk + 1. Also, note that n isIkmeasurable.

    k+1 = P k+1 =1 | E3,k, Ik+1= P k+1 =1 | E3,k, Ik, [Qk+1,Yk+1]= [q, y]= P

    k = 0, k+1 =1 | E3,k, Ik, [Qk+1,Yk+1]= [q, y]+ P

    k= 1, k+1 =1 | E3,k, Ik, [Qk+1,Yk+1]= [q, y] .Since, we consider the case Bk+1 = Bk+ 1, k+1 = k+ 1 1/r, and hence, the statek+1 =k+1k+1 =kk+1/r .

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    33/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:33

    Lety = [y0,y1, . . . ,yn]. Consider

    P

    k=

    ,

    k+1 = 1 | E3,k, Ik, [Qk+1,Yk+1] = [q

    , y]

    (a)= P k = , k+1 = 1 | E3,k, Ik P Qk+1 = q |k = , k+1 = 1,E3,k, IkP(Qk+1 = q|E3,k, Ik) fYk+1|E3,k,Ik,Qk+1 (y|E3,k, Ik, q

    )

    fYk+1|k,k+1,E3,k,Ik,Qk+1 (y| , 1, E3,k, q, Ik)(b)=

    Pk = , k+1 = 1 | E3,k, Ik P(Qk+1 = q|E3,k, Ik) f(y0) ni=1 f1(yi)

    P(Qk+1 = q|E3,k, Ik) fYk+1|E3,k,Ik,Qk+1 (y|E3,k, Ik, q)

    (c)=

    Pk= | E3,k, Ik P k+1 = 1 |k = , E3,k, Ik f(y0) ni=1 f1(yi )1 =0 1 =0P k = , k+1 = , | E3,k, Ik, Qk+1 fYk+1|k,k+1E3,k,Ik,Qk+1 (y|,, E3,k, Ik, q) .

    We explain the steps (a), (b), and (c) below.

    (a) By Bayes rule, for events A,B, C,D,E, and F, we have

    P (AB |CDEF)=P (AB |C D) P (E| ABC D) P (F | ABCDE)

    P (E| C D) P (F |C DE) .

    (b) Qk+1 is independent ofk,k+1. Also, givenk, Yk+1,0 is independent ofk+1,E3,k, Ik, Qk+1, and givenk+1, Yk+1,i is independent ofk,E3,k, Ik, Qk+1.It is to be noted that given the state of nature, the sensor measurementsYk+1,0, Yk+1,1, . . . , Yk+1,nare conditionally independent.

    (c) For any events A,B, and a continuous random variable Y, the conditional densityfunction fY|A(y|A) = P (B | A) fY|AB(y|AB) + P (B

    c | A) fY|ABc (y|ABc). Also, givenk,

    Yk+1 is independent ofE3,k, Ik, Qk+1.

    It is to be noted that the event E3,kis [Ik, Qk+1] measurable, and hence, given [Ik, Qk+1],kis independent ofE3,k. Thus, in this case,k+1 =

    (1 k)pr f0(y0)n

    i=1 f1(yi ) + kf1(y0)n

    i=1 f1(yi)

    (1 k)(1 pr)f0(y0)

    ni=1 f0(yi) + (1 k)pr f0(y0)

    ni=1 f1(yi ) + kf1(y0)

    ni=1 f1(yi)

    .

    Thus, using Lemma 5.1 (using Equation (19)), we havek+1 = k+1+ (1 k+1)(1 (1 p)

    k+1 )

    =: (k, Zk+1) +

    1 (k, Zk+1)

    (1 (1 p)k+1 )

    =

    k (1 (1 p)

    k )

    (1 p)k, Zk+1

    +

    1

    k (1 (1 p)

    k )

    (1 p)k, Zk+1

    (1 (1 p)k+1 )

    =: [Qk, k], Zk+1

    .

    APPENDIXVI

    Structure of.We use the following Lemma to show that J(q, ) is concave in .

    LEMMA 2. If f : [0, 1] R is concave, then the function h : [0, 1] R, defined by

    h(y)= E(x)

    f

    y 2(x) + (1 y)pr 1(x)

    y 2(x) + (1 y)pr 1(x) + (1 y)(1 pr) 0(x)

    ,

    is concave for each x, where (x) = y 2(x) + (1 y)pr 1(x) + (1 y)(1 pr) 0(x),0 < pr

  • 8/10/2019 a12-karumbu

    34/35

    12:34 P. Karumbu et al.

    PROOF. See Appendix I of Premkumar and Kumar [2008].Note that in the finite H-horizon (truncated version of Equation (21)), we note from

    value iteration that the cost-to-go function for a given qJHH([q, ])= 1 is concave in

    . Hence, by Lemma 2, we see that for any given q, the cost-to-go functionsJHH1([q, ]),

    JHH2([q, ]), . . . ,JH0 ([q, ]) are concave in . Hence for 0 1,

    J([q, ]) = limH

    JH0 ([q, ])

    J([q, 1+ (1 )2]) = limH

    JH0

    [q, 1+ (1 )2]

    lim

    HJH0 ([q, 1]) + lim

    H(1 )JH0 ([q, 2])

    =J([q, 1]) + (1 )J([q, 2]).

    It follows that for any givenq, J([q, ]) is concave in .

    Define the map : Q[0, 1] R+as ([q, ]) :=1and the map : Q[0, 1] R+,as ([q, ]) := c + AJ ([q, ]) = c + E[J([Qk+1, (k, Zk+1)])k = [q, ]]. Notethat([q, 1])= 0, ([q, 1]) = c,([q, 0]) = 1 and

    ([q, 0])

    = E[J([Qk+1, (k, Zk+1)])|k = [q, 0]](2)= E[J([Q(Qk,Mk), (k, Zk+1)])|k = [q, 0]]

    =

    Nm=0

    E[J([Q(q, m), (k, Zk+1)])|Mk = m, k = [q, 0]]P (Mk = m|k = [q, 0])

    (4)

    Nm=0

    J([Q(q, m), E[(k, Zk+1)|Mk = m, k = [q, 0]]])P(Mk= m|k = [q, 0])

    =N

    m=0

    J([Q(q, m),p)PMk = m

    k = [q, 0](6)

    Nm=0

    (1 p) PMk = m

    k = [q, 0]= 1 p < 1,

    where in the preceding derivation, we use the evolution ofQk in step 2, the Jensensinequality (as for any given q, J(q, ) is concave in ) in step 4, and the inequalityJ(q, ) 1 in step 6.

    Note that ([q, 1]) ([q, 1]) > 0 and ([q, 0]) ([q, 0]) < 0. Also, for a fixedq, thefunction ([q, ]) ([q, ]) is concave in . Hence, by the intermediate value theorem,

    for a fixed q, there exists (q) [0, 1] such that ([q, ]) = ([q, ]). This is uniqueas ([q, ])= ([q, ]) for at most two values of . If in the interval [0, 1] there are twodistinct values of for which ([q, ]) = ([q, ]), then the signs of ([q, 0]) ([q, 0])and ([q, 1]) ([q, 1]) should be the same. Hence,

    =inf

    k: k (Qk)

    ,

    where the threshold(q) is given by c (q) + AJ ([q, (q)]) = 1 (q).

    ACM Transactions on Sensor Networks, Vol. 8, No. 2, Article 12, Publication date: March 2012.

  • 8/10/2019 a12-karumbu

    35/35

    Delay Optimal Event Detection on Ad Hoc Wireless Sensor Networks 12:35

    REFERENCES

    ALDOSARI, S. A. ANDMOURA, J. M. F. 2004. Detection in decentralized sensor networks. In Proceedings of theIEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP ). 277280.

    BACCELLI, F. AND MAKOWSKI, A. 1990. Synchronization in queueing systems. InStochastic Analysis of Computerand Communication Systems, H. Takagi, Ed. NorthHolland, 57131.

    BERTSEKAS, D. P. 2000a. Dynamic Programming and Optimal Control, 2nd Ed. vol. I. Athena Scientific.

    BERTSEKAS, D. P. 2000b. Dynamic Programming and Optimal Control, Second ed. Vol. II. Athena Scientific.

    HONEYWELL INC. http://hpsweb.honeywell.com/Cultures/en-US/Products/Wireless/SecondGeneration-Wireless/default.htm.

    ISA. http://www.isa.org/Content/NavigationMenu/Technical_Information/ASCI/ISA100_Wireless_Compliance_Institute/ISA100_Wireless_Compliance_Institute.htm .

    KUMAR, A., MANJUNATH, D., AND KURI, J. 2004.Communication Networking: An Analytical Approach. Morgan-Kaufmann, San Francisco.

    KUMAR, A., MANJUNATH, D., AND KURI, J. 2008. Wireless Networking. Morgan-Kaufmann, San Francisco.

    NIU, R. AND VARSHNEY, P. K. 2005. Distributed detection and fusion in a large wireless sensor network ofrandom size.EURASIP J. Wirel. Comm. Netw. 4,7, 462472.

    PREMKUMAR, K. ANDKUMAR, A. 2008. Optimal sleep-wake scheduling for quickest intrusion detection usingwireless sensor networks. In Proceedings of the International Conference on Computer Communications

    IEEE (INFOCOM).PREMKUMAR, K., KUMAR, A., AND KURI, J. 2009. Distributed detection and localization of events in large ad

    hoc wireless sensor networks. In Proceedings of the47th Annual Allerton C onference on Communication,Control, and Computing.

    RAJASEGARAR, S., LECKIE, C., AND PALANISWAMI, M. 2008. Anomaly detection in wireless sensor networks. IEEEWirel. Comm. 15,4, 3440.

    SHIRYAEV, A. N. 1978.Optimal Stopping Rules. Springer, New York.

    SINGH, C. K., KUMAR, A., AND AMEER, P. M. 2008. Performance evaluation of an IEEE 802.15.4 sensor networkwith star topology.Wirel. Netw. 14,4, 543568.

    TARTAKOVSKY, A. G. AND VEERAVALLI, V. V. 2005. General asymptotic bayesian theory of quickest change detec-tion.SIAM Theory Probab. Appl. 49, 3, 458497.

    TENNY, R. R. AND SANDELL, N. R. 1981. Detection with distributed sensors. IEEE Trans. Aerosp. Electron.Syst. 17, 501510.

    VEERAVALLI, V. V. 2001. Decentralized quickest change detection. IEEE Trans. Inf. Theory 47, 4, 16571665.

    Received March 2009; revised December 2009, June, October 2010; accepted October 2010

    ACM T ti S N t k V l 8 N 2 A ti l 12 P bli ti d t M h 2012