a wsn-based intelligent light control system considering ... · index terms—intelligent...

12
1 A WSN-based Intelligent Light Control System Considering User Activities and Profiles Meng-Shiuan Pan, Lun-Wu Yeh, Yen-Ann Chen, Yu-Hsuan Lin, and Yu-Chee Tseng, Senior Member, IEEE Abstract—Recently, wireless sensor networks (WSNs) have been widely discussed in many applications. In this paper, we propose a WSN-based intelligent light control system for indoor environments. Wireless sensors are responsible for measuring current illuminations. Two kinds of lighting devices, namely whole lighting and local lighting devices, are used to provide background and concentrated illuminations, respectively. Users may have various illumination requirements according to their activities and profiles. An illumination requirement is as the combination of background and concentrated illumination de- mands and users’ locations. We consider two requirement models, namely binary satisfaction and continuous satisfaction models, and propose two decision algorithms to determine the proper illuminations of devices and to achieve the desired optimization goals. Then a closed-loop device control algorithm is applied to adjust the illumination levels of lighting devices. The prototyping results verify that our ideas are practical and feasible. Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network I. I NTRODUCTION Wireless sensor networks (WSNs) have made a lot of progress recently. Extensive research works have dedicated to energy-efficient MAC protocols [22], sensor deployment and coverage [12], and localization [17]. Applications of WSN include habitat monitoring [3], wildfire monitoring [2], and navigation [13][20]. In this paper, we propose a WSN-based intelligent light control system which considers users’ activities and profiles in indoor environments. Fig. 1 shows the network scenario. The network field is divided into regular grids. Each grid has a fixed sensor. Together, these sensors form a multi-hop ad hoc network. One of the nodes is designated as the sink of the network and is connected to a control host. The control host can issue light control commands via powerline or UPnP communication protocols. In our system, there are two kinds of lighting devices, called whole lighting and local lighting devices. A whole lighting device is one such as a fluorescent light, which can provide illuminations for multiple grids. For example, in Fig. 1, the light in G 13 is a whole lighting device, This work is co-sponsored by Taiwan MoE ATU Plan, by NSC grants 93- 2752-E-007-001-PAE, 95-2221-E-009-058-MY3, 95-2221-E-009-060-MY3, 96-2219-E-009-007, 96-2218-E-009-004, 96-2622-E-009-004-CC3, and 96- 2219-E-007-008, by Realtek Semiconductor Corp., by MOEA under grant number 94-EC-17-A-04-S1-044, by ITRI, Taiwan, by Microsoft Corp., and by Intel Corp. M.-S Pan, L.-W. Yeh, Y.-A. Chen, Y.-H. Lin and Y.-C. Tseng are with the Department of Computer Science, National Chiao-Tung University, Taiwan (e-mail: {mspan, lwyeh, chenya, yuhlin, yctseng}@cs.nctu.edu.tw) Y.-C. Tseng is also with the Department of Information and Computer Engineering, Chung-Yuan Christian University, Taiwan Control Host Whole Lighting Device User Sensor Local Lighting Device Sink G1 G2 G3 G4 G5 G6 G7 G8 G10 G9 G11 G15 G14 G13 G12 G16 G18 G17 G21 G23 G22 G20 G19 G25 G24 A B Fig. 1. The network scenario of our system. which covers grids G 7 , G 8 , G 9 , G 12 , G 13 , G 14 , G 17 , G 18 , and G 19 . A local lighting device is one such as a table lamp, which can only provide concentrated illumination. In our system, we assume that the location of each user is known and each user carries a wireless sensor, which can detect its local light intensity. Users are considered to have var- ious illumination requirements according to their activities and profiles. For example, in Fig. 1, user A is watching television in G 25 and user B is reading in G 16 . Both A and B require sufficient background illuminations in their surroundings, and B needs concentrated illumination for reading. In this paper, we model an illumination requirement as the combination of background and concentrated lighting according to the user’s current activity. An illumination requirement consists of an illumination interval and a coverage range. A user is said to be satisfied if the provided light intensity is in the specified interval for all grids in the coverage range. We further consider a binary satisfaction and a continuous satisfaction models. In the former, a user who is satisfied returns a satisfaction value of one; otherwise a zero is returned. In the latter model, a satisfaction value which is a function of the specified illumination interval and the sensed light intensity is returned. For the binary model, our goal is to satisfy all users such that the total power consumption is minimized. For the continuous model, our goal is to satisfy all users such that the total satisfaction value is maximized. However, in both models, it may not be possible to satisfy all users simultaneously. In this case, we will gradually relax users’ illumination intervals until all users are satisfied. We design

Upload: others

Post on 22-Aug-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

1

A WSN-based Intelligent Light Control SystemConsidering User Activities and Profiles

Meng-Shiuan Pan, Lun-Wu Yeh, Yen-Ann Chen, Yu-Hsuan Lin, and Yu-Chee Tseng, Senior Member, IEEE

Abstract—Recently, wireless sensor networks (WSNs) havebeen widely discussed in many applications. In this paper, wepropose a WSN-based intelligent light control system for indoorenvironments. Wireless sensors are responsible for measuringcurrent illuminations. Two kinds of lighting devices, namelywhole lighting and local lighting devices, are used to providebackground and concentrated illuminations, respectively. Usersmay have various illumination requirements according to theiractivities and profiles. An illumination requirement is as thecombination of background and concentrated illumination de-mands and users’ locations. We consider two requirement models,namely binary satisfaction and continuous satisfaction models,and propose two decision algorithms to determine the properilluminations of devices and to achieve the desired optimizationgoals. Then a closed-loop device control algorithm is applied toadjust the illumination levels of lighting devices. The prototypingresults verify that our ideas are practical and feasible.

Index Terms—intelligent buildings, light control, pervasivecomputing, wireless communication, wireless sensor network

I. INTRODUCTION

Wireless sensor networks (WSNs) have made a lot ofprogress recently. Extensive research works have dedicated toenergy-efficient MAC protocols [22], sensor deployment andcoverage [12], and localization [17]. Applications of WSNinclude habitat monitoring [3], wildfire monitoring [2], andnavigation [13][20].

In this paper, we propose a WSN-based intelligent lightcontrol system which considers users’ activities and profilesin indoor environments. Fig. 1 shows the network scenario.The network field is divided into regular grids. Each grid hasa fixed sensor. Together, these sensors form a multi-hop adhoc network. One of the nodes is designated as the sink ofthe network and is connected to a control host. The controlhost can issue light control commands via powerline or UPnPcommunication protocols. In our system, there are two kindsof lighting devices, called whole lighting and local lightingdevices. A whole lighting device is one such as a fluorescentlight, which can provide illuminations for multiple grids. Forexample, in Fig. 1, the light in G13 is a whole lighting device,

This work is co-sponsored by Taiwan MoE ATU Plan, by NSC grants 93-2752-E-007-001-PAE, 95-2221-E-009-058-MY3, 95-2221-E-009-060-MY3,96-2219-E-009-007, 96-2218-E-009-004, 96-2622-E-009-004-CC3, and 96-2219-E-007-008, by Realtek Semiconductor Corp., by MOEA under grantnumber 94-EC-17-A-04-S1-044, by ITRI, Taiwan, by Microsoft Corp., andby Intel Corp.

M.-S Pan, L.-W. Yeh, Y.-A. Chen, Y.-H. Lin and Y.-C. Tseng are with theDepartment of Computer Science, National Chiao-Tung University, Taiwan(e-mail: {mspan, lwyeh, chenya, yuhlin, yctseng}@cs.nctu.edu.tw)

Y.-C. Tseng is also with the Department of Information and ComputerEngineering, Chung-Yuan Christian University, Taiwan

ControlHost

Whole Lighting Device

User

Sensor

Local Lighting Device

SinkG1 G2 G3 G4 G5

G6 G7 G8 G10G9

G11 G15G14G13G12

G16 G18G17

G21 G23G22

G20G19

G25G24

A

B

Fig. 1. The network scenario of our system.

which covers grids G7, G8, G9, G12, G13, G14, G17, G18,and G19. A local lighting device is one such as a table lamp,which can only provide concentrated illumination.

In our system, we assume that the location of each useris known and each user carries a wireless sensor, which candetect its local light intensity. Users are considered to have var-ious illumination requirements according to their activities andprofiles. For example, in Fig. 1, user A is watching televisionin G25 and user B is reading in G16. Both A and B requiresufficient background illuminations in their surroundings, andB needs concentrated illumination for reading. In this paper,we model an illumination requirement as the combinationof background and concentrated lighting according to theuser’s current activity. An illumination requirement consistsof an illumination interval and a coverage range. A useris said to be satisfied if the provided light intensity is inthe specified interval for all grids in the coverage range.We further consider a binary satisfaction and a continuoussatisfaction models. In the former, a user who is satisfiedreturns a satisfaction value of one; otherwise a zero is returned.In the latter model, a satisfaction value which is a function ofthe specified illumination interval and the sensed light intensityis returned. For the binary model, our goal is to satisfy allusers such that the total power consumption is minimized.For the continuous model, our goal is to satisfy all userssuch that the total satisfaction value is maximized. However,in both models, it may not be possible to satisfy all userssimultaneously. In this case, we will gradually relax users’illumination intervals until all users are satisfied. We design

Page 2: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

2

illumination decision algorithms for both models. Then theoutputs are sent to a closed-loop device control algorithm toadjust the illuminations of lighting devices. Our prototypingresults and system demonstrations verify that our ideas arepractical and feasible.

Several works [15][16][19][21] have investigated usingWSNs in light control for energy conservation. References[15] and [21] introduce light control using wireless sensorsto save energy for commercial buildings. Lighting devices areadjusted according to daylight intensity. Reference [16] definesseveral kinds of user requirements and their correspondingcost functions. The goal is to adjust lights to minimize thetotal cost. However, the result is mainly for media production.The work [19] models the light control problem as a trade-off between energy conservation and user requirements. Eachuser is assigned a utility function with respect to light intensity.The goal is to maximize the total utility. However, it does notconsider the fact that people need different illuminations underdifferent activities. Also, some users may suffer from verylow utilities, while others enjoy high utilities. In [16][19], it isnecessary to measure all combinations of dimmer settings ofall devices and the resulting light intensities at all locations.If there are k interested locations, d dimmer levels, and mlighting devices, the complexity is O(kdm). Moreover, theabove works only consider one type of lighting devices. Inreal life, lighting devices can be classified as whole lightingand local lighting ones.

The rest of this paper is organized as follows. Prelimi-naries are given in Section II. Section III and Section IVintroduce our illumination decision algorithms under binaryand continuous satisfaction models, respectively. Section Vpresents our device control algorithm. Section VI reports ourprototyping results. Section VII presents some performanceevaluation results. Finally, Section VIII concludes this paper.

II. PRELIMINARIES

In this system, there are k grids, n users, m whole lightingdevices, and m′ local lighting devices. All lighting devicesare adjustable. The k grids represent the network area and arelabeled as G1, G2, ..., and Gk. In each grid Gi, i = 1..k,there is a fixed sensor fi, and each user uj , j = 1..n, alsocarries a portable wireless sensor pj . Users can specify theircurrent activities to the control host via their portable devices.We also assume that via a localization scheme (such as [9]),users’ current grid locations are known to the control host.

The whole lighting devices are named D1, D2, ..., Dm, andthe local lighting devices are named d1, d2, ..., dm′ . The fixedsensor that is closest to Di, i = 1..m, is denoted as fc(Di).However, since users are mobile, we use a function bound(uj),j = 1..n, to denote the association between users and locallighting devices. This function restricts a local lighting deviceto serve at most one user at one time. If there is no locallighting device near user uj , bound(uj) = ∅; otherwise,bound(uj) is the ID of the nearest local lighting device. Lightintensities sensed by fi, i = 1..k, and pj , j = 1..n, aredenoted by s(fi) and s(pj), respectively. Since the value ofs(fi) may be contributed by multiple sources, we denote by

l(Di), i = 1..m, the portion of light intensity contributed byDi to the fixed sensor closest to Di, i.e., fc(Di). Note thatl(Di) ≤ s(fc(Di)) because s(fc(Di)) may be affected by otherwhole lighting devices and sunlight. Similarly, we denote byl(di), i = 1..m′, the portion of light intensity contributed bydi to portable sensor pj if user uj satisfies bound(uj) = i. Ifthere exists no uj such that bound(uj) = i, we let l(di) = 0.Note that in reality, the values of l(Di) and l(di) can not bedirectly known, unless there are no other light sources. Wewill address this issue in Section II-A.

In the system, sensors periodically report their readingsto the sink. For simplicity, we define the following columnvectors:

Sf =[s(f1), s(f2), . . . , s(fk)

]T,

Sp =[s(p1), s(p2), . . . , s(pn)

]T,

LD =[l(D1), l(D2), . . . , l(Dm)

]T,

Ld =[l(d1), l(d2), . . . , l(dm′)

]T.

Note that in practice, each Di has its limitation. So we letlmax(Di) be the upper bound of l(Di) and let

LmaxD =

[lmax(D1), lmax(D2), . . . , lmax(Dm)

]T.

We make some assumptions about lighting devices. First,we assume that a local lighting device can always satisfy auser’s need when the user is underneath this device. Second,we assume that there is no obstacle between whole lightingdevices and fixed sensors. Third, the illumination providedby a local lighting device does not affect the measured lightintensity of fixed sensors.

Fig. 2 shows our system architecture. Light adjustments aretriggered by users’ movements or environment changes. First,the illuminations of whole lighting devices are determined,followed by those of the local lighting devices. Feedbacksfrom sensors are then sent to the sink to decide furtheradjustment of lighting devices so as to satisfy users’ demands.

A. Computing LD and Ld

Earlier, we mentioned that the values of LD and Ld cannot be known directly. Below, we first use an experimentalmethod to derive LD. Assuming no other light source existing,Fig. 3(a) shows the measured intensities of a whole lightingdevice Di by fc(Di) and other fixed sensors at differentdistances from fc(Di), under different on-levels of Di. Wesee that the measured intensity degrades following a similartrend. In fact, if we further normalize the value to the intensitymeasured by fc(Di), we see that the degrading trends arealmost the same, as shown in Fig. 3(b). Therefore, assumingthe impact factor of Di on fc(Di) to be wi

c(Di)= 1, the impact

factor of Di on any other fj can be written as a weighted factorwi

j , where 0 ≤ wij ≤ 1. Putting all impact factors together, we

define a weight matrix

W =

⎡⎢⎢⎢⎣

w11 w2

1 · · · wm1

w12 w2

2 · · · wmi

...... · · · ...

w1k w2

k · · · wmk

⎤⎥⎥⎥⎦ .

Page 3: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

3

User Movement orenvironment change End

Adjustment of whole lighting

devices Algorithm for the continuous satisfaction

model

Algorithm for the binary satisfaction model

Decision for local lighting

Algorithm for the continuous satisfaction

model

Algorithm for the binary satisfaction model

Decision for whole lighting devices

Adjustment of local lighting

devices

AD Ad

Fig. 2. The system architecture of our light control system.

0 250 500 750

1000 1250 1500 1750 2000 2250 2500

0 0.5 1 1.5 2

Ligh

t int

ensi

ty (

lux)

Horizontal Distance to fc(Di) (m)

on-level 30%on-level 40%on-level 50%on-level 60%on-level 70%on-level 80%on-level 90%

on-level 100%

0

0.2

0.4

0.6

0.8

1

0 0.5 1 1.5 2

Nor

mal

ized

ligh

t int

ensi

ty

Horizontal Distance to fc(Di) (m)

on-level 30%on-level 40%on-level 50%on-level 60%on-level 70%on-level 80%on-level 90%

on-level 100%

(a) (b)

Fig. 3. An experiment for characterizing the degradation of light signals.

Since light intensities are additive [19], the light intensitymeasured by fc(Di) is the sum of intensities from sunlight,Di, and neighboring devices. The intensities of the sunlight toall fixed sensors are written as a k × 1 column vector Ssun.So we have

Sf = W · LD + Ssun. (1)

In Eq. (1), there are m unknowns in LD and k equations,where m ≤ k. Any typical k-means algorithm [14] can solveEq. (1) by inducing the least mean square error. Here, wesimply construct a new m×m matrix W by keeping all c(Di)-th rows, i = 1..m, in W and removing the other k −m rows.So, Eq. (1) can be rewritten as

Sf − Ssun = W · LD ⇒ LD = W−1 · (Sf − Ssun). (2)

The weight matrix W can be measured at the deploymentstage, vector Ssun can be measured on-line when all lights areoff, and vector Sf can be obtained on-line. So the calibrationcomplexity is O(km). This is lower than those of [16][19].

The calculation of Ld is quite straightforward. Due to theproperty of our approach, before a user arrives at a di, nomeasurement can be obtained for l(di). At this time, l(di) = 0.When a portable sensor, say, pk is getting close to and boundedwith di, the local lighting device di may be triggered. Here,we simply use the reading of the fixed sensor, say, fj locatedat the same grid as di as the background light intensity. Welet the light intensity provided by di to pk be

l(di) = s(pk) − s(fj).

III. SOLUTION FOR THE BINARY SATISFACTION MODEL

Each user profile consists of a number of activity-requirement pairs. Given an activity, the system should try

to satisfy the corresponding requirement. Each requirement ofa user ui has three parts:

1) Expected illumination interval of whole lighting:[Bl

D(ui), BuD(ui)] (in lux), where Bl

D(ui) and BuD(ui)

are the lower and the upper bounds, respectively.2) Expected illumination interval of local lighting:

[Bld(ui), Bu

d (ui)], where Bld(ui) and Bu

d (ui) are thelower and the upper bounds, respectively.

3) Coverage range of whole lighting: Ri =[ri(G1), ri(G2), . . . , ri(Gk)]T , where for eachj = 1..k, ri(Gj) = 1 if grid Gj is expected toreceive a light intensity within [Bl

D(ui), BuD(ui)] for

user ui; otherwise, ri(Gj) = 0. This array defines therange of grids which should meet the whole lightingrequirement.

For example, a possible requirement of a reading userB in Fig. 1 can be [Bl

D(uB), BuD(uB)] = [200, 600],

[Bld(uB), Bu

d (uB)] = [500, 1000], and RB = [0, 0, 0, 0, 0, 0,0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0]T .

Let LD and Ld be the current intensity vectors providedby whole and local lighting devices, respectively. To facilitatethe presentation, let XK =

[1 1 · · · 1

]be a 1 × K row

vector, and Ri a k × k matrix such that

Ri =

⎡⎢⎢⎢⎣

ri(G1) 0 · · · 00 ri(G2) · · · 0

0... · · · ...

0 0 · · · ri(Gk)

⎤⎥⎥⎥⎦ .

We formulate our problem P as a linear programming problemwith inputs Sf , Sp, LD, Ld, W , and user requirements. Our

Page 4: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

4

goal is to find the adjustment vectors

AD =[a(D1), a(D2), . . . , a(Dm)

]T

Ad =[a(d1), a(d2), . . . , a(dm′)

]T

for whole and local lighting devices, respectively, wherea(Di), i = 1..m, and a(dj), j = 1..m′, are the amounts ofadjustment required for Di and dj , respectively, such that thefollowing two objectives are satisfied:

min Xm(AD + LD) (3)

min Xm′(Ad + Ld) (4)

subject to:

BlD(ui)Ri ≤ Ri(Sf + WAD) ≤ Bu

D(ui)Ri, ∀i ∈ [1, n] (5)

O ≤ AD + LD ≤ LmaxD (6)

Bld(ui) ≤ a(dj) + s(pi) ≤ Bu

d (ui),if bound(ui) = j, ∀i ∈ [1, n]. (7)

Eq. (3) and Eq. (4) mean that the total power consumptionsof both whole and local lighting devices after the adjustmentshould be minimized. Eq. (5) imposes the whole lightingrequirement, where Sf + WAD is the light intensity vectorafter adjustment and matrix Ri is to filter out those grids notin the coverage range of whole lighting. Eq. (6) is to confinethe adjustment result within the maximum and the minimumcapacities of devices, where O is a zero vector. Eq. (7) isto impose the requirement of each local lighting if a user isbounded to it. Here we assume that local lighting can alwaysprovide extra illuminations to satisfy users’ requirements. Sowe do not specify upper bounds as that in Eq. (6).

Since we assume that the illuminations of local lightingdevices do not affect the measured light intensity of fixedsensors, the decision of whole lighting levels can be made in-dependently of the decision of local lighting levels. (However,the reverse is not true because the decision of whole lightinglevels does affect the decision of local lighting levels.) Thisallows us to solve problem P in two stages as formulatedbelow.P1: Given Sf , LD, W , and user requirements, solve AD for

Eq. (3), Eq. (5), and Eq. (6).P2: Given Sp, Ld, and user requirements, solve Ad for Eq. (4)and Eq. (7).

Theorem 1: Problem P is equivalent to the joint problemsP1 and P2.

Problem P1 is a linear programming problem, which can besolved by the Simplex method [11], unless the problem itself isinfeasible, which may happen when two users have conflictingrequirements on the same grid. When no feasible solution canbe found, our system will try to eliminate some constraints tomake P1 feasible. Reference [18] already shows that finding afeasible subsystem of a linear system by eliminating the fewestconstraints is NP-hard. Hence, we propose a heuristic below.

The idea is to gradually relax some requirements until a fea-sible solution appears. We first define some notations. Giventhe current values of Sf , LD, and Lmax

D , it is easy to computethe minimum and maximum possible illuminations of grids

G1 G2 G3

1f 2f 3f

1D 2D

2u1u

106.06.0

01W

TfS 100100100

TDL 00 Tmax

DL 10001000

d1 d2

1)( 1ubound 2)( 2ubound

Fig. 4. An example of illumination decision.

by Sminf = Sf − WLD and Smax

f = Sf + W (LmaxD − LD).

Also, consider c intervals on R (the set of reals) which define cusers’ requirements on whole lighting. We say that an interval[a, b] ∈ R has an overlapping degree of d if for each pointp ∈ [a, b], p falls in at least d of the above c intervals. Aninterval [a, b] is said to be a max-interval if there exists noother interval [a′, b′] which has a higher overlapping degreethan [a, b] and [a′, b′] is a superset of [a, b]. It is not hard to seethat given any c intervals, there must exist a max-interval. Alsoit is easy to design a polynomial-time linear search algorithmto find a max-interval (we omit the details here). Our algorithmworks as follows.

1) For each grid Gi, i = 1..k, find the set of users Ui whosecoverage ranges contain Gi, i.e., Ui = {uj |rj(Gi) =1,∀j ∈ [1, n]}. For each user uj ∈ Ui, check if[Bl

D(uj), BuD(uj)] ∩ [Smin

f [i], Smaxf [i]] = ∅. If so, the

requirement cannot be satisfied. So we set rj(Gi) = 0and update Rj .

2) Again, for each grid Gi, i = 1..k, consider the set Ui.Check if there is a common overlapping interval forthe requirements of all users in Ui. If not, find a max-interval, say, [a, b] for the requirements of all users inUi. For each user uj ∈ Ui, check if [Bl

D(uj), BuD(uj)]∩

[a, b] = ∅. If so, we will give up the requirement of uj .So we set rj(Gi) = 0 and update Rj .

3) Try to solve problem P1. If there exists no feasiblesolution AD, relax the whole lighting requirement ofeach user ui, i = 1..n, to [Bl

D(ui) − α,BuD(ui) + α],

where α is a predefined constant. Then repeat this stepagain.

4) After deciding AD, solve problem P2 as follows. Foreach dj , j = 1..m′, check if there is a user ui suchthat bound(ui) = j. If so, set a(dj) = Bl

d(ui) − s(pi);otherwise, we can inform the system to turn dj off.

Example 1: Fig. 4 shows a scenario with threegrids, two users, two whole lighting devices, andtwo local lighting devices. User u1’s requirements are[Bl

D(u1), BuD(u1)] = [200, 400], [Bl

d(u1), Bud (u1)] = [700,

900], and R1 = [1, 0, 0]T . User u2’s requirements are[Bl

D(u2), BuD(u2)] = [300, 500], [Bl

d(u2), Bud (u2)] = [800,

1000], and R2 = [0, 1, 0]T . Problem P1 has the objective:

Page 5: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

5

min[1 1

] ( [a(D1)a(D2)

]+

[00

] )

≡ min (a(D1) + a(D2))

subject to:

200

⎡⎣100

⎤⎦≤

⎡⎣1 0 00 0 00 0 0

⎤⎦⎛⎝

⎡⎣100100100

⎤⎦+

⎡⎣ 1 00.6 0.60 1

⎤⎦[a(D1)

a(D2)

]⎞⎠≤400

⎡⎣1

00

⎤⎦

≡⎡⎣200

00

⎤⎦ ≤

⎡⎣100 + a(D1)

00

⎤⎦ ≤

⎡⎣400

00

⎤⎦

⎡⎣ 0

3000

⎤⎦ ≤

⎡⎣ 0

100 + 0.6a(D1) + 0.6a(D2)0

⎤⎦ ≤

⎡⎣ 0

5000

⎤⎦

[00

]≤

[a(D1)a(D2)

]+

[00

]≤

[10001000

].

Since P1 is feasible, the results are a(D1) = 184 and a(D2) =150.

After adjusting whole lighting devices, Sp = [s(p1), s(p2)]T

= [284, 300]T and Ld = [l(d1), l(d2)]T = [0, 0]T . So problemP2 has the objective:

min[1 1

] ( [a(d1)a(d2)

]+

[284300

] )

≡ min (a(d1) + a(d2) + 584)

subject to:

700 ≤ a(d1) + 284 ≤ 900800 ≤ a(d2) + 300 ≤ 1000.

The adjustments of local lighting devices are as a(d1) =Bl

d(u1) − s(p1) = 416 and a(d2) = Bld(u2) − s(p2) = 500.

IV. SOLUTION FOR THE CONTINUOUS SATISFACTION

MODEL

In this model, a user’s requirement on illumination is nota fixed interval. Instead, it is a continuous value where eachvalue is mapped to a satisfaction level. User ui’s requirementhas four parts:

1) Satisfaction level of whole lighting, which is repre-sented by a modified Gaussian distribution by normal-izing the peak value to 1 with mean and variance(μD(ui), σD(ui)). Specifically, the satisfaction level ofintensity x is cD(ui, x) = exp(−(x−μD(ui))

2

2(σD(ui)2)).

2) Satisfaction threshold of whole lighting: t, 0 ≤ t <1. That is, after the adjustment, the satisfaction levelmust be no less than t. From t, we can derivethe desired illumination interval of whole lighting[Bl

D(ui, t), BuD(ui, t)] = [ μD(ui)− σD(ui)

√−2 ln(t),μD(ui) + σD(ui)

√−2 ln(t)].

0

0.2

0.4

0.6

0.8

1

0 100 200 300 400 500 600 700 800

245 555

Sat

isfa

ctio

n va

lue

Sensory reading (Lux)

ThresholdIllumination interval

Fig. 5. Example of user’s satisfaction level, where (μD(ui), σD(ui)) =(400, 100).

3) Satisfaction level of local lighting, which is repre-sented by a modified Gaussian distribution by normal-izing the peak value to 1 with mean and variance(μd(ui), σd(ui)). Specifically, the satisfaction level ofintensity x is cd(ui, x) = exp(−(x−μd(ui))

2

2(σd(ui)2)).

4) coverage range of whole lighting: Ri.

For example, Fig. 5 shows a satisfaction level. Given t = 0.3,[Bl

D(ui), BuD(ui)] = [245, 555].

Our goal is to find the adjustment vectors AD and Ad suchthat the total satisfaction level of all users is maximized. Here,the satisfaction level of a user ui is sum of the satisfaction levelof ui at each grid Gj , j = 1..k, such that r(Gj) = 1. Recallthat Sf +WAD is the intensities perceived by all fixed sensors.We define C′(ui, Sf + WAD) as the vector of satisfactionlevels of ui at all grids, i.e.,

C ′(ui, Sf + WAD)[j] = cD(ui, (Sf + WAD)[j]).

Therefore, given Sf , Sp, LD, Ld, and user requirements,we can formulate a nonlinear programming problem withobjectives:

maxn∑

i=1

(Ri)T · C ′(ui, Sf + WAD) (8)

cd(ui, a(dj) + s(pi))=1 if bound(ui) = j, ∀i ∈ [1, n] (9)

subject to:

BlD(ui, t)Ri≤Ri(Sf +WAD)≤Bu

D(ui, t)Ri,∀i∈ [1, n] (10)

O ≤ AD + LD ≤ LmaxD (11)

Eq. (8) is to maximize the sum of satisfaction levels of allusers. Eq. (9) is so written because we assume that locallighting devices can always maximize users’ local lightingsatisfaction levels. Eq. (10) and Eq. (11) are the same as theones in Section III.

Again, the above nonlinear programming problem can besolved in two stages:P3: Given Sf , LD, W , and user requirements, solve AD for

Eq. (8), Eq. (10), and Eq. (11).P4: Given Sp, Ld, and user requirements, solve Ad for Eq. (9).P3 can be solved by a sequential quadratic programming

Page 6: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

6

(SQP) method [10]. The basic idea is as follows. It firstreformulates the problem into a quadratic programming sub-problem using an approximate solution xk. Then, it uses xk

to construct a better approximation xk+1. The process willeventually converge to an optimal solution x∗, unless P3 isinfeasible. If so, we will gradually decrease the threshold tuntil there is a solution can be found. Given the Smin

f andSmax

f as defined in Section III, the detail algorithm works asfollows.

1) For each grid Gi, i = 1..k, find the set of users Ui whosecoverage ranges contain Gi, i.e., Ui = {uj |rj(Gi) =1,∀j ∈ [1, n]}. For each user uj ∈ Ui, check if[Bl

D(uj , t), BuD(uj , t)] ∩ [Smin

f [i], Smaxf [i]] = ∅. If so,

the requirement cannot be satisfied. So we set rj(Gi) =0 and update Rj .

2) Again, for each grid Gi, i = 1..k, consider the set Ui.Check if there is a common overlapping interval forthe requirements of all users in Ui. If not, find a max-interval, say, [a, b] for the desired illumination intervalsof all users in Ui. For each user uj ∈ Ui, check if[Bl

D(uj , t), BuD(uj , t)] ∩ [a, b] = ∅. If so, we will give

up the requirement of uj . So we set rj(Gi) = 0 andupdate Rj .

3) Try to solve problem P3 by SQP. If there exists nofeasible solution AD, relax the t to t − γ, where γ is apredefined constant. Then repeat this step again.

4) After deciding AD, solve problem P4 as follows. Foreach local dj , j = 1..m′, check if there is a user ui

such that bound(ui) = j. If so, find a value of a(dj)such that pd(ui, a(dj) + s(pi)) = 1; otherwise, we caninform the system to turn dj off.

Example 2: Let’s use Fig. 4 again by assuming(μD(u1), σD(u1)) = (300, 100), (μd(u1), σd(u1)) =(800, 100), R1 = [1, 0, 0]T , (μD(u2), σD(u2)) = (400, 100),(μd(u2), σd(u2)) = (1000, 100), and R2 = [0, 1, 0]T . Givent = 0.3, we can have [Bl

D(u1, t), BuD(u1, t)] = [145, 455]

and [BlD(u2, t), Bu

D(u2, t)] = [300, 500]. Problem P3 has theobjective.

max[1 0 0

]C ′

1

⎛⎝u1,

⎡⎣100

100100

⎤⎦ +

⎡⎣ 1 0

0.6 0.60 1

⎤⎦ [

a(D1)a(D2)

] ⎞⎠

+[0 1 0

]C ′

2

⎛⎝u2,

⎡⎣100

100100

⎤⎦ +

⎡⎣ 1 0

0.6 0.60 1

⎤⎦ [

a(D1)a(D2)

] ⎞⎠

≡ max[1 0 0

]C ′

1

⎛⎝u1,

⎡⎣ 100 + a(D1)

100 + 0.6a(D1) + 0.6a(D2)100 + a(D2)

⎤⎦

⎞⎠

+[0 1 0

]C ′

2

⎛⎝u2,

⎡⎣ 100 + a(D1)

100 + 0.6a(D1) + 0.6a(D2)100 + a(D2)

⎤⎦

⎞⎠

≡ max cD(u1, 100 + a(D1))+ cD(u2, 100 + 0.6a(D1) + 0.6a(D2))

Lighting devices

Sensors

Controlhost

Sink

Fig. 6. The closed-loop device control procedure.

subject to:

(300 − 100√−2 ln 0.3)

⎡⎣1

00

⎤⎦ ≤

⎡⎣1 0 0

0 0 00 0 0

⎤⎦

⎛⎝

⎡⎣100

100100

⎤⎦ +

⎡⎣ 1 0

0.6 0.60 1

⎤⎦[

a(D1)a(D2)

] ⎞⎠

≤ (300 + 100√−2 ln 0.3)

⎡⎣1

00

⎤⎦

≡⎡⎣145

00

⎤⎦ ≤

⎡⎣100 + a(D1)

00

⎤⎦ ≤

⎡⎣455

00

⎤⎦

⎡⎣ 0

2450

⎤⎦ ≤

⎡⎣ 0

100 + 0.6a(D1) + 0.6a(D2)0

⎤⎦ ≤

⎡⎣ 0

5550

⎤⎦

[00

]≤

[a(D1)a(D2)

]+

[00

]≤

[10001000

]

After applying SQP, the result is a(D1) = 200 and a(D2) =300.

After adjusting whole lighting device, Sp =[s(p1), s(p2)]T = [300, 400]T . To let cd(u1, a(d1) + s(p1)) =cd(u1, a(d1) + 300) = 1, the adjustment of d1 is asa(d1) = 500. Similarly, a(d2) = 600.

V. DEVICE CONTROL ALGORITHM

Given the light intensities contributed by devices to sensors,i.e., LD and Ld, the algorithms in Section III and Section IVwill determine the target adjustment amounts, i.e., AD andAd. However, since what reported by sensors are accumulatedvalues, we have to convert these values to the actual adjustmentamounts. If the actual amounts do not match the targetamounts, we will adopt a binary search technique to graduallyapproach these amounts.

Below, let L(1)D and L

(1)d be the current contributed inten-

sities of whole and local lighting devices, respectively, andL

(∗)D = L

(1)D + AD and L

(∗)d = L

(1)d + Ad be the target ones.

Page 7: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

7

EDX-F04

Sink

PowerLinc LampLinc

RS232/RS485

PowerLineRS232

Local lighting devices

Whole lightingdevices

UPnPcontrol server

Etherne

t

RS232

5-pin signal cable

Portablesensors

Fixedsensors

Sensor data handler

Userstatushandler

Decisionhandler

Dimmer handler

Illumination requirement

databaseAdministrative user interface

Control Host

Report forwarding Commands

On-level settings

Trigger

Light intensity reportUser status update

WSN Actuators

Sink node

Device control algorithm

Illumination decision algorithms

INSTEON

Lighting devices

UPnP

Query

(a) (b)

Fig. 7. (a) System architecture and (b) components of our intelligent light control system.

Our algorithm contains multiple iterations. In the i-th iteration,i ≥ 1, based on L

(i)D and L

(i)d , we will adjust devices leading

to new intensities L(i+1)D and L

(i+1)D . This will be repeated

until the target values are reached or no further improvementis possible. Such a closed loop control is illustrated in Fig. 6.The binary search procedure can be explained by the followingexample. Suppose that device Di’s current on-level is 40%with contribution l(0)(Di) = 300 lux to sensor fc(Di) andl(∗)(Di) = 200 lux. The control host will first adjust the on-level of Di to (0 + 40)/2 = 20%. After first iteration, thecontrol host will collect sensors’ reports to compute L

(1)D and

thus l(1)(Di). With l(1)(Di), the next guess will be an on-levelof 10% or 30%. The similar trial will be done for all wholeand local lighting devices.

In practice, the on-levels of dimmers are discrete andhave finite levels. The termination conditions of the abovebinary search can be controlled by a threshold, say, β when|l(i+1)(Dj) − l(i)(Dj)| ≤ β. To accelerate the decision, thecontrol host can even record the relationship between thecontributed light intensities and on-levels of devices (we omitthe details here).

VI. PROTOTYPING RESULTS

This section presents our implementation of the intelligentlight control system. Fig. 7 shows the system architecture andthe related protocol components. The system can be dividedinto three parts: wireless sensor network, actuators, and controlhost. In the following, we describe each part in details.

A. Wireless Sensor Network

Our sensor nodes are developed using Jennic JN5121 [4] asthe radio module and Si photodiode IC [6] as the photo sensor(Fig. 8). Users can indicate their current activities to the systemby clicking the buttons on the sensor board. Fixed sensors areused to form the backbone of the network. A portable sensorwill associate with the nearest fixed sensor. Fixed and portablesensors periodically report aggregated light intensity valuesto the sink. The sink forwards sensing data to the control

Buttons

Photosensor

Jennicmodule

Fig. 8. The implemented sensor board.

host via an RS232 interface. Note that when a sensor findsthat its surrounding light intensity changes rapidly, it will alsoreport. This happens when the control host is adjusting lightingdevices. Moreover, we implement a reduced version of thelocalization scheme in [9] to trace users’ locations. Once aportable sensor decides its owner’s location, it issues a locationupdate to the control host.

B. Actuators

In our current implementation, whole and local lightingdevices are controlled by different ways. We implement theUPnP Lighting Controls V1.0 standard [8] to control wholelighting devices. The control host issues UPnP device controlcommands to the UPnP control server through the Internet.Then the UPnP control server controls some dimmer EDX-F04dimmers [1], which are connected to whole lighting devices.On the other hand, we use the INSTEON LampLinc dimmerand PowerLinc controller manufactured by SmartHome [7] tocontrol local lighting devices. Each local lighting device isplugged in a LampLinc dimmer. The PowerLinc controlleris connected to the control host. When receiving controlcommands from the control host, the PowerLinc controllercan control dimmers through the power-line network.

Page 8: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

8

Sensors

Whole lighting devices

Local lighting devices

Fig. 9. The demonstration scenario of our intelligent light control system.

C. Control Host

The control host is implemented by Java. It consists of fivecomponents.

• Sensor data handler: Its main task is to classify the reportdata from the sink into two types: user status updateand light intensity report. Then it relays these data to thecorresponding components.

• User status handler: This component tracks the latestlocations and activities of users. When detecting anychange of users’ locations or activities, it triggers thedecision handler component to compute new illuminationrequirements.

• Decision handler: This component implements the al-gorithms in Section III, Section IV, and Section V. Itis triggered by the user status handler component orby any change in the environment. We use Matlab toimplement our algorithms in Section III and Section IV.The Matlab program is translated to a Java program bythe Matlab builder for Java [5]. After making devicecontrol decisions, it sends on-level settings to the dimmerhandler.

• Dimmer handler: This component serves as the interfacebetween the control host and the actuators and issuescommands to the UPnP control server and the INSTEONPowerLinc controller.

• Administrative user interface: We implement a graphicaluser interface (GUI), which contains three panels: 1) Themonitor panel shows the locations of users, fixed sensors,and lighting devices. 2) The configuration panel is forthe system manager to plan the network and set systemparameters. 3) The information panel shows the reportedsensory readings, the connection statuses of sensor nodes,and so on.

Fig. 9 shows the demo scenario of our system. We buildthe light control system in a room of size 5 m × 5 m, whichis divided into 3× 3 grids. More details and demo videos canbe found in http://wsn-research.blogspot.com/.

VII. PERFORMANCE EVALUATIONS

We use some experiments and simulations to verify ourresults.

A) Verification of the estimation of LD: In Section II-A, weshow how to evaluate LD. Here we use the network scenarioin Fig. 10 with 12 grids and three whole lighting devices to

G1 G2 G3

G4 G5 G6

G7 G8 G9

G10 G11 G12

D1

D3D2

Fig. 10. The scenario to verify the measured LD .

verify the result. Here, we simply use lamps as whole lightingdevices. With different on-levels for lamps, we compute LD

and compare it against the actual measured value. Fig. 11shows the comparison without and with sunlight effect. Wecan see that the computed and the measured values are quiteclose.

B) Verification of the binary satisfaction model (BSM): Weset up two scenarios, S1 and S2. Scenario S1 has 5× 5 gridswith 9 whole lighting devices as in Fig. 1. Scenario S2 has9× 9 grids with 25 whole lighting devices. In both scenarios,each whole lighting device can cover its nearby 9 grids. Theweighted factors of each whole lighting device Di on nearbyfixed sensors are set as follows. (1) The weighted factor of Di

on the fixed sensor at Gc(Di) is 1. (2) For fixed sensors in left,right, up, and down grids of Gc(Di), the weights are set to 0.5.(3) For fixed sensors in upper-left, lower-left, upper-right, andlower-right grids of Gc(Di), the weights are 0.25. (4) For allother fixed sensors, the weights are 0. Local lighting devicesare not simulated since they have no impact on performance.All lighting devices are initially set to be turned off.

We define two activity-requirement pools, called AR1 andAR2, as shown in Fig. 12. Each acti in Fig. 12 representsan expected illumination interval of whole lighting. In oursimulations, users randomly select their activities from a pool.The coverage range of a user’s requirement is the five nearestgrids. We compare our algorithm against a fixed adjustmentscheme (denoted by FIX), where lighting devices are set tofixed levels. If a user’s requirement coverage range overlaps alighting device’s coverage range, this device is turned to thatlevel. Below, we use FIX-n to indicate that each device canprovide at most n lux.

We consider two performance indices. First, considering thatour algorithm may enlarge users’ illumination requirementswhen conflicts occur, we define a metric GAP to represent thedifference between the provided light intensity and the originalrequirement of a user. For user ui with coverage range Ri, ifgrid Gj satisfies ri(Gj) = 1, we compute a gap value as

gap(ui, Gj)={

0 if BlD(ui) ≤ s(fj) ≤ Bu

D(ui)min(|Bl

D(ui)−s(fj)|,|BuD(ui)−s(fj)|) o.w.,

where s(fj) is the final sensory value of fj . Then we defineGAP of ui as the average of gap(ui, Gj) for all Gj such thatri(Gj) = 1. The second index is XmAD, which representsthe energy consumption of one control decision.

Page 9: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

9

0

50

100

150

200

250

(50, 50, 50) (80, 80, 80) (90, 90, 90) (75, 95, 85) (85, 65, 75)

Ligh

t int

ensi

ty (

lux)

On-level percentage of (D1, D2, D3)

computed l(D1)measured l(D1)computed l(D2)measured l(D2)computed l(D3)measured l(D3)

0

50

100

150

200

250

(50, 50, 50) (80, 80, 80) (90, 90, 90) (75, 95, 85) (85, 65, 75)

Ligh

t int

ensi

ty (

lux)

On-level percentage of (D1, D2, D3)

computed l(D1)measured l(D1)computed l(D2)measured l(D2)computed l(D3)measured l(D3)

(a) (b)

Fig. 11. Experiments on computed and measured LD when the environment is (a) without and (b) with sunlight effect.

500 600 700 800 900 1000

act1

act3act4

Lux400

500 600 700 800200100 Lux400300

act1act2

act3

act2

act4act5

act6

(a)

(b)

act5

Fig. 12. Activity-requirement pools: (a) AR1 and (b) AR2.

Fig. 13(a), Fig. 13(b), Fig. 13(c), and Fig. 13(d) showour simulation results under different combinations of S1/S2and AR1/AR2. In the left figure of Fig. 13(a), we see thatthe average GAP of users is almost zero for BSM. Thisis because the illumination intervals in AR1 have commonoverlapping, which allows our algorithm to satisfy all users inmost cases. The right figure of Fig. 13(a) compares the energyconsumption of different schemes. FIX-500 has a slightlylower value than ours because some users’ requirements areviolated. Fig. 13(b) adopts AR2. Since some requirementsare violated, we see that our scheme also induces some gaps(note that act6 has no overlapping with others). In terms ofenergy cost, BSM outperforms the other schemes. Fig. 13(c)and Fig. 13(d) adopt S2 and the trends are similar. Thisdemonstrates that our scheme is quite scalable to network size.

C) Verification of the continuous satisfaction model (CSM):We also define two activity-requirement pools, called AR3and AR4, as shown in Fig. 14. The satisfaction threshold t ofwhole lighting is set to 0.3. Similarly, users’ required coveragerange of whole lighting is the five nearest grids. We comparetwo performance indices: users’ average satisfaction level andenergy consumption.

Fig. 15(a), Fig. 15(b), Fig. 15(c), and Fig. 15(d) showour simulation results under different combinations of S1/S2and AR3/AR4. These results consistently indicates that ourscheme provides the highest satisfaction levels and outper-forms FIX-750 and FIX-1000 in energy cost. Note that Fix-

500 may save some energy at the cost of users’ satisfaction.Also note that AR4 has higher deviation in requirements thanAR3.

VIII. CONCLUSIONS

In this paper, we have presented a WSN-based intelligentlight control system considering user activities and profiles. Inthis system, there are two types of lighting devices. We usewireless sensors to collect light intensities in the environment.Considering users’ activities, we model the illumination re-quirements of users. Illumination decision algorithms and a de-vice control algorithm are presented to meet user requirementsand to conserve energy. The proposed schemes are verifiedby real implementation in an indoor environment. Futuredirections could be directed to relieving the computation costof the non-linear programming and enhance the user interfacesat the portable sensor nodes.

REFERENCES

[1] Edx-f04. http://www.liteputer.com.cn/china/liteputer-tw/product.asp.[2] Design and construction of a wildfire instrumentation system using

networked sensors. http://firebug.sourceforge.net/.[3] Habitat monitoring on great duck island.

http://www.greatduckisland.net/technology.php.[4] Jennic JN5121. http://www.jennic.com/.[5] Matlab Builder for Java. http://www.mathworks.com/products/ jav-

abuilder/.[6] Si photodiode s1133. http://jp.hamamatsu.com/en/index.html.[7] SmartHome Inc. http://www.smarthome.com.[8] UPnP forum. http://www.upnp.org.[9] P. Bahl and V. N. Padmanabhan. RADAR: An in-building RF-based

user location and tracking system. In Proc. of IEEE INFOCOM, 2000.[10] P. T. Boggs and J. W. Tolle. Sequential quadratic programming. Acta

Numerica, 45(1):1–51, 1995.[11] T. H. Cormen, C. E. Leiserson, and R. L. Rivest. Introduction to

Algorithms. MIT Press, 2001.[12] C.-F. Huang, Y.-C. Tseng, and L.-C. Lo. The coverage problem in

three-dimensional wireless sensor networks. Journal of InterconnectionNetworks, 8(3):209–227, 2007.

[13] Q. Li, M. DeRosa, and D. Rus. Distributed algorithm for guidingnavigation across a sensor network. In Proc. of ACM Int’l Symposiumon Mobile Ad Hoc Networking and Computing (MobiHoc), Maryland,USA, 2003.

[14] J. B. MacQueen. Some methods for classification and analysis of multi-variate observations. In Proc. of Berkeley Symposium on MathematicalStatistics and Probability, 1967.

[15] F. O’Reilly and J. Buckley. Use of wireless sensor networks forfluorescent lighting control with daylight substitution. In Proc. ofWorkshop on Real-World Wireless Sensor Networks (REANWSN), 2005.

Page 10: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

10

0

20

40

60

80

100

120

140

160

2 5 7 10 12 15

Ave

rage

GA

P (

lux)

Number of users

BSMFIX-500FIX-750

FIX-1000

0

2000

4000

6000

8000

10000

2 5 7 10 12 15

Ave

rage

ene

rgy

cons

umpt

ion

(Xm

AD

)

Number of users

BSMFIX-500FIX-750

FIX-1000

(a)

0

50

100

150

200

250

300

350

2 5 7 10 12 15

Ave

rage

GA

P (

lux)

Number of users

BSMFIX-500FIX-750

FIX-1000

0

2000

4000

6000

8000

10000

2 5 7 10 12 15

Ave

rage

ene

rgy

cons

umpt

ion

(Xm

AD

)

Number of users

BSMFIX-500FIX-750

FIX-1000

(b)

0

20

40

60

80

100

120

140

160

5 10 15 20 25 30 35 40

Ave

rage

GA

P (

lux)

Number of users

BSMFIX-500FIX-750

FIX-1000

0

5000

10000

15000

20000

25000

5 10 15 20 25 30 35 40

Ave

rage

ene

rgy

cons

umpt

ion

(Xm

AD

)

Number of users

BSMFIX-500FIX-750

FIX-1000

(c)

0

50

100

150

200

250

300

350

5 10 15 20 25 30 35 40

Ave

rage

GA

P (

lux)

Number of users

BSMFIX-500FIX-750

FIX-1000

0

5000

10000

15000

20000

25000

5 10 15 20 25 30 35 40

Ave

rage

ene

rgy

cons

umpt

ion

(Xm

AD

)

Number of users

BSMFIX-500FIX-750

FIX-1000

(d)

Fig. 13. Comparison of the proposed BSM and the FIX schemes when (a) the network scenario is S1 and the user-activity is AR1, (b) the network scenariois S1 and the user-activity is AR2, (c) the network scenario is S2 and the user-activity is AR1, and (d) the network scenario is S2 and the user-activity isAR2.

Page 11: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

11

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

0 100 200 300 400 500 600 700 800 900 1000 1100 1200

Sat

isfa

ctio

n va

lue

Sensory reading (Lux)

-t

act1act2act3act4act5

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

0 100 200 300 400 500 600 700 800 900 1000

Sat

isfa

ctio

n va

lue

Sensory reading (Lux)

-t

act1act2act3act4act5act6

(a) (b)

Fig. 14. Activity-requirement pools: (a) AR3 and (b) AR4.

[16] H. Park, M. B. Srivastava, and J. Burke. Design and implementationof a wireless sensor network for intelligent light control. In Proc.of ACM/IEEE Int’l Conference on Information Processing in SensorNetworks (IPSN), 2007.

[17] N. Patwari, I. Alfred O. Hero, M. Perkins, N. S. Correal, and R. J. ODea.Relative location estimation in wireless sensor networks. IEEE Trans.Signal Processing, 51(8):2137–2148, 2003.

[18] J. Sankaran. A note on resolving infeasibility in linear programs byconstraint relaxation. Operations Research Letters, 13(1):19–20, 1993.

[19] V. Singhvi, A. Krause, C. Guestrin, J. H. Garrett, and H. S. Matthews.Intelligent light control using sensor networks. In Proc. of ACM Int’lConference on Embedded Networked Sensor Systems (SenSys), 2005.

[20] Y.-C. Tseng, M.-S. Pan, and Y.-Y. Tsai. Wireless sensor networks foremergency navigation. IEEE Computer, 39(7):55–62, 2006.

[21] Y.-J. Wen, J. Granderson, and A. M. Agogino. Towards embed-ded wireless-networked intelligent daylighting systems for commercialbuildings. In Proc. of IEEE Int’l Conference on Sensor Networks,Ubiquitous, and Trustworthy Computing (SUTC), 2006.

[22] W. Ye, J. Heidemann, and D. Estrin. An energy-efficient MAC protocolfor wireless sensor networks. In Proc. of IEEE INFOCOM, 2002.

Meng-Shiuan Pan received the B.S. and M.S. de-grees from the National Chung Cheng Universityand National Tsing Hua University, Taiwan, in 2001and 2003, respectively. Now, he is a graduate stu-dent pursuing the PhD degree in the Department ofComputer Science, National Chiao Tung University,Taiwan. His research interests include mobile com-puting and wireless communication.

Lun-Wu Yeh received his B.S. and M.S. degreesin Computer and Information Science from the Na-tional Chiao-Tung University, in 2003 and 2005,respectively. He is currently pursuing PhD in the De-partment of Computer Science, National Chiao TungUniversity, Taiwan. His research interests includesmart living space and wireless sensor network.

Yen-Ann Chen received his B.S. and M.S. degreesfrom the National Dong Hwa University and Na-tional Chiao Tung University, in 2005 and 2007,respectively. His research interests include wirelesscommunication and sensor networks.

Yu-Hsuan Lin received his B.S. degree from theNational Chiao Tung University, in 2007. He isnow pursuing the M.S. degree in the Departmentof Computer Science, National Chiao Tung Univer-sity, Taiwan. His research interests include wirelesscommunication and sensor networks.

Yu-Chee Tseng received his B.S. and M.S. degreesin Computer Science from the National TaiwanUniversity and the National Tsing-Hua Universityin 1985 and 1987, respectively. He obtained hisPh.D. in Computer and Information Science from theOhio State University in January of 1994. He wasan Associate Professor at the Chung-Hua University(1994 1996) and at the National Central University(1996 1999), and a Professor at the National CentralUniversity (1999 2000). Currently, he is Chairman ofthe Department of Computer Science, and Associate

Dean of the College of Computer Science, National Chiao-Tung University,Taiwan.

Dr. Tseng received the Outstanding Research Award, by National ScienceCouncil, ROC, in both 2001-2002 and 2003-2005, the Best Paper Award, byIntl Conf. on Parallel Processing, in 2003, the Elite I. T. Award in 2004, andthe Distinguished Alumnus Award, by the Ohio State University, in 2005.His research interests include mobile computing, wireless communication,network security, and parallel and distributed computing. Dr. Tseng is amember of ACM and a Senior Member of IEEE.

Page 12: A WSN-based Intelligent Light Control System Considering ... · Index Terms—intelligent buildings, light control, pervasive computing, wireless communication, wireless sensor network

12

0

0.2

0.4

0.6

0.8

1

2 5 7 10 12 15

Ave

rage

sat

isfa

ctio

n

Number of users

CSMFIX-500FIX-750

FIX-1000

0

1000

2000

3000

4000

5000

6000

7000

8000

9000

2 5 7 10 12 15

Ave

rage

ene

rgy

cons

umpt

ion

(Xm

AD

)

Number of users

CSMFIX-500FIX-750

FIX-1000

(a)

0

0.2

0.4

0.6

0.8

1

2 5 7 10 12 15

Ave

rage

sat

isfa

ctio

n

Number of users

CSMFIX-500FIX-750

FIX-1000

0

1000

2000

3000

4000

5000

6000

7000

8000

9000

2 5 7 10 12 15

Ave

rage

ene

rgy

cons

umpt

ion

(Xm

AD

)

Number of users

CSMFIX-500FIX-750

FIX-1000

(b)

0

0.2

0.4

0.6

0.8

1

5 10 15 20 25 30 35 40

Ave

rage

sat

isfa

ctio

n

Number of users

CSMFIX-500FIX-750

FIX-1000

0

5000

10000

15000

20000

25000

5 10 15 20 25 30 35 40

Ave

rage

ene

rgy

cons

umpt

ion

(Xm

AD

)

Number of users

CSMFIX-500FIX-750

FIX-1000

(c)

0

0.2

0.4

0.6

0.8

1

5 10 15 20 25 30 35 40

Ave

rage

sat

isfa

ctio

n

Number of users

CSMFIX-500FIX-750

FIX-1000

0

5000

10000

15000

20000

25000

5 10 15 20 25 30 35 40

Ave

rage

ene

rgy

cons

umpt

ion

(Xm

AD

)

Number of users

CSMFIX-500FIX-750

FIX-1000

(d)

Fig. 15. Comparison of the proposed CSM and the FIX schemes when (a) the network scenario is S1 and the user-activity is AR3, (b) the network scenariois S1 and the user-activity is AR4, (c) the network scenario is S2 and the user-activity is AR3, and (a) the network scenario is S2 and the user-activity isAR4.