Professional Documents
Culture Documents
Abstract- In Internet of Things, Context Awareness plays Here in this paper we had used the triangular membership
important role. Also it is important in Smart home environment function as the input variable of the fuzzy inference system.
where data from various sensors and input from user or user Further, this input is used in the fuzzy IF THEN rules, with the
action must be interpreted and corresponding commands to help of it we have produced a decision making function, which
actuators must be generated. There are various approaches produces some output based on the input given. Now this
available for context awareness, like supervised, unsupervised, output need to be converted into crisp set with the help of
rule based systems etc. But, these approaches have their own pros Defuzzification, where we have used the centroid function of
and cons depending on the need of an application. In the Defuzzification.
proposed approach we discuss the fuzzy logic based algorithm
with architecture. Various Smart home scenarios are identified This paper is further organized as, Section II, discuss about
and implemented. Two scenarios are discussed in detail by Literature survey of Middleware and Context Awareness
applying proposed algorithm. For the performance measurement Architectures that are already developed, Section III discuss
of proposed algorithm two parameters Response time and about the implementation of Proposed work, Next section
Accuracy are considered. Our implementation results show discuss about Result and then in next section we will discuss
reasonable improvement in response time and accuracy, while about future work needed to further improve this architecture
keeping our approach light weight on resources. and at last we conclude the research.
Keywords- Internet of Things, Context Awareness, Smart
Home, middleware. II. LITERATURE SURVEY
In this section, we will discuss about various approaches
1. INTRODUCTION proposed earlier, that are describing the concept of context
Internet of Things is a concept to connect each and every awareness. As per [2] the context awareness is defined as "A
object with each other and make them communicate with each system is context-aware if it uses context to provide relevant
other with the help of internet and many other technologies. information and/or services to the user, where relevancy
The devices should be ubiquitous, self-discoverable and self- depends on the user's task".
communicable[ I]. In loT, the important concept is of achieving
context awareness, where the system will react according to the
input given by the user and to produce suitable action, which is
convenient to user. Based on this concept we propose the
t._+1
architecture of context awareness in the middleware portion of Di!.~O" Conte ..
Modellnt
.
But, due to no change in instance for some amount of time
'---------
1
may lead to poor result.
I IUd:-bn.me."type:1\.;;;,e
-oi~ ~. _
The problem with above architectures is that they become I Input Require, Depid
heavy weight for smart home environment in number of I
I
processes. The advantages and disadvantages of various I
I Conte... Detection
methods are shown in Table I. I And Appropri.te
I _~ I
L ______ ________ ________________ J
TABLE l. COMPARISON OF CONTEXT AWRENESS METHODS[2]
Fig 2 Proposed Architecture
Advantage Disadvantage
Gives Precise Re~ult It is having a long B. Fuzzy Logic based Context Aware Algorithm
. d
S upervlse with the help of functIOn . . . d d'
d . d fr . . trammg perlO an IS
dertlve
a a.
om trammg hard to understand.
Fuzzy Logic Based Algorithm
It ha~ no edrrors due to no it is complex and difficult
. trammg ata so no . Input: Did, Rid, Device Value.
Unsupervised 'bl ' . to validate and outcome
POSSI e outcomes. d ' bl Output: On, Off, Set Value
defined. IS unpre Icta e.
I: Starting the begin timer as TS;
It is the simplest and Mistakes can be made
R I straightforward method during writing the rule 2: Get the values from the Device:
u es with less resource and no method of
3: [INITIALIZE]
requirement. validation defined.
Allow Complex Data should be in a OWL 4: vall .... Did;
Ontology reasoning and file format and also this
5: vaI2 .... Rid;
Based representation with more method has low
meaningful results. performance. 6: val3 .... Device Value;
Probabilit It . allows combine It reasons numerical 7: Get Information from Database (DBl):
b d Y eVidence and can handle values only and should
ase uncertain situations. know probabilities. 8: IF
Simple and easy to
. I Prone to have a manual 9: FOUND val2, val3 + - False;
. exten d reqUire ess .
Fuzzy LogiC ' d t d entry mistakes from 10: THEN
resource an represen e develo ers
In natturallanguage. p
II: Write (,Device not Found');
III. PROPOSED WORK 12: Wait: For user input and store to database
In the previous section we have discussed about various 13 : Return (Rid, Did, Dname, Type, Range, Input
approaches of context awareness and also seen the advantages Require) from Room and Device table
and disadvantages of it. Now we will discuss the Fuzzy logic 14: ELSE IF
based approach to achieve context awareness in smart home IS: FOUND val2, val3 +-True;
environment. The reason for choosing the Fuzzy logic is that it
PIR Bed and its sensors Bed and Its sensors Fig 5 Morning Schedule
Temp
TV Set
TV Set lilhts
IV. RESULTS
Bed Room 2 Bed Room 3 The result of the research proposal is taken by
Kitchen lights
considering all the 6 scenarios of Smart Home discussed in
Temp
Appliances section III-C. We are considering response time and accuracy
•
Temp
PIR
eater
PIR .
Heate(-
PIR . as the two parameters for the measurement of our proposed
Uahts architecture. The accuracy is calculated after running the
AC Temp lights AC
algorithm for each scenario 1000 times and then the final
graph is created. Response time is also calculated in the
EJ
TV Set PIR Bed Room 1 similar way. Also, we have used traingular MF and the
Heater TV Set centroid defuzzification method to produce the above result.
The two graphs (Fig 7 and Fig 8) shows the overall accuracy
Temp and response time, of our architecture for each Scenarios.
Intensity Bed and its sensors
Individually, the result is calculated by measuring the two
Fig 3 Smart Home Layout
parameters for each cycle of the Algorithm, which gives the
values in particular range. After that the average of all that
result is calculated and then the above graphs are prepared.
20161£££ Region 10 Conference (T£NCON) - Proceedings of the International Conference 1059
By seeing this graph we can see that the overall accuracy millisecond compare to other architectures and the accuracy
gained by this architecture is around 95.14 percent. The achieved is 95.14%. As in loT Response time is very crucial
Response time for the same is achieved around 6.98 as user is moving continuously and we have to perform right
millisecond. activity at right time. The proposed architecture is lighter in
Average Accuracy for all Scenarios weight in the sense of number of process, time taken for the
1.. .
completion of one cycle is very optimum as shown in Fig 9.
FUTURE WORK
, The above implementation is based on the Fuzzy Logic based
l
""
. Algorithm. Where we have achieved the accuracy of 95 .14%
and the response time of 6.98 ms. but still we can improve it
e:~ ..... - AvcrlJC Accancy by combining this technique with other Context Awareness
::t
~
~
I ...
methods. Furthermore, CPU utilization can be taken as a
a:. parameter for evaluating above algorithm.
~ .. ,
~
</..t,/ ,.
../1'/
l .. / ' ../ ' /)
.
.t-'
~.. ~"
Scenari os
REFERENCES
Fig 7 Result of Accuracy
Av~ ra,~ R~s ponse Time for all Scenarios [1 ] A. Whitmore, A. Agarwal, and L. Da Xu, 'The
u Internet of Things : A survey of topics and trends," In!
Syst. Front., vol. 17, no. 2, pp. 261 - 274, 2015 .
1'0 [2] C. Perera, A. Zaslavsky, P. Christen, and D.
Georgakopoulos, "Context aware computing for the
¥
¥ 0
internet of things: Asurvey," IEEE Communication
l .
1= . A, n ."lt~vTi_
Survey Tutorials, vol. 16, no. I, pp. 41~54, 2014.
'"
&'.
. [3] 1. Choi, D.Shin, and D. Shin, "Research and
implementation of the context-aware middleware for
controlling home appliances," IEEE Trans. Consum.
j 0/, .l' .i' /-1 ~.,. ./ Electron., vol. 51 , no. 1,pp. 301- 306, 2005.
/1 ./ ./" [4] C. L. Wu, Y. S. Tseng, and L. C. Fu, "Spatio-temporal
Sc ~na r i o $ feature enhanced semi-supervised adaptation for
Fig 8 Result of Response Time activity recognition in loT -based context-aware smart
homes," Proc. - 2013 IEEE Int. Con! Green Comput.
Commun. IEEE Internet Things IEEE Cyber, Phys.
Soc. Comput. GreenCom-iThings-CPSCom 2013 , pp.
460-467,2013 .
CONSLUSION
Since, other approaches of context awareness methods like
supervised and unsupervised learning have more accuracy
than fuzzy logic, but they lack in the response time. We can
say that our proposed architecture, which is based on the fuzzy
logic, has gained lot of reduction in the response time of 6.98