Applying Chatbots To The Internet of Things: Opportunities and Architectural Elements
Applying Chatbots To The Internet of Things: Opportunities and Architectural Elements
Applying Chatbots To The Internet of Things: Opportunities and Architectural Elements
Abstract—Internet of Things (IoT) is emerging as a significant Billion [2, 3]. Among them more than half of all IoT endpoints
technology in shaping the future by connecting physical devices or in the consumer space alone. Hence IoT is a phenomenon which
things with internet. It also presents various opportunities for is certain to play a major role in our daily interaction with the
intersection of other technological trends which can allow it to digitally connected world.
become even more intelligent and efficient. In this paper we focus
our attention on the integration of Intelligent Conversational
Software Agents or Chatbots with IoT. Literature surveys have
A. Scope of Internet of Things
looked into various applications, features, underlying technologies
and known challenges of IoT. On the other hand, Chatbots are The literature presents various ways to define the Internet of
being adopted in greater numbers due to major strides in Things. The RFID group defines Internet of Things as “world-
development of platforms and frameworks. The novelty of this wide network of interconnected objects uniquely addressable,
paper lies in the specific integration of Chatbots in the IoT based on standard communication protocols”. ITU [4] defines it
scenario. We analyzed the shortcomings of existing IoT systems as “a global infrastructure for the information society, enabling
and put forward ways to tackle them by incorporating chatbots. A advanced services by interconnecting (physical and virtual)
general architecture is proposed for implementing such a system, things based on existing and evolving interoperable information
as well as platforms and frameworks – both commercial and open and communication technologies”.
source – which allow for implementation of such systems.
Identification of the newer challenges and possible future While considering the broad vision of IoT, this paper focuses
directions with this new integration, have also been addressed. on the perspective of connected things and applications for those
things. To do this we simply create a separation of concern
Keywords—Internet of Things, Chatbots, Human- between the fragmented lower Open System Interconnection
Computer Interaction, Conversational User Interfaces, (OSI) layers of IoT and the unifying adopted upper layers of IoT
Software Agents communication which uses the World Wide Web and its
standard network protocols.
I. INTRODUCTION
The entire IoT system consists of Sensors (temperature,
The Internet of Things (IoT) is not just a well-recognized light, motion, etc.), Actuators (displays, sound, motors, etc.),
phenomenon but one that is shaping the digital age. It Computation (programs and logic), and Communication
introduces an era of interconnected smart objects or ‘things’ interfaces (wired or wireless). However, based on established
developed upon existing internet architectures. By using unique advantages presented in the literature [5, 6, 7, 8], our scope will
addressing schemes and standard communication protocols, be limited to interaction with IoT through Web Application
IoT interconnects these things or objects thereby creating a Programming Interfaces (API) and in particular Hypertext
varied range of technologies are able to interact with each other Transfer Protocol (HTTP) based Representational State Transfer
and reach common goals [1]. (REST) Architectures. A popular approach of Web of Things
An essential goal of connecting various sensors, has been illustrated in Fig 1 based on [6].
actuators and services and collecting/processing data from them The Evans Data Corporation (EDC) Report: Internet of
is to generate situational awareness and enable machines and Things - Vertical Research Service study [9] reveals that more
human users to make sense of themselves and their surrounding than half of IoT developers connect to devices primarily through
environments. the cloud. The massive growth and acceptance of these cloud
The proliferation of IoT can be seen through adoption of based platforms such as IBM IoT Platform, AWS IoT, Microsoft
these “smart devices” in our daily life which include Azure IoT and Cisco IoT show that the new generation of IoT
applications in Manufacturing, Agriculture, Medical and applications concentrate on cloud based platforms with the
Healthcare, Transportation, Building and Home Automation and lower layers (Transfer, Transport and Network). Hence, this
Energy Management among others. A report by Gartner paper also proposes the use of IoT cloud based platforms in our
estimates that there will be over 20 Billion connected things in architectural design. This is discussed further in Section 4.
activity by 2020 with Cisco estimating the number to be over 50
of these paradigms have largely been separate endeavors. We
discuss how using chatbots as intelligent conversational
interfaces can be used to address critical problems in IoT. We
also propose a high level conceptual architecture and discuss key
elements involved in communicating with an IoT system
through Chatbots. To explain in the context of real world
applicability, we put forth existing solutions to each of the
components in the architecture including frameworks, platforms
and specify open-source tools which can be used to build such a
system.
The rest of this paper is organized as follows: In section II
we discuss our motivation for introducing this novel concept of
Chatbots in Internet of Things and discuss other literature work
that has helped shape this concept. In Section III, we evaluate
Fig. 1. Web of Things as shown in [6] and examine the shortcomings and challenges of current IoT
systems and the opportunity for chatbots to address them.
B. Scope of Chatbots Section IV proposes a system design and the key architectural
This paper proposes the use of Intelligent Conversational elements. Finally, we present our concluding remarks by
Agents. We refer to these as simply Chatbots (also known as assessing opportunities and scope for future research and
Chatterbots or bots in general). Interestingly, there are many development in Section V.
definitions for Chatbots in close relation with Software Agents
(SA), Virtual Agents (VA) or Intelligent Personal Assistants II. MOTIVATION AND BACKGROUND STUDY
(IPA) in literature and these have often been used in conjunction The key to the massive adoption and diffusion of IoT
with each other. The term “Agents” itself has many definitions is the proliferation of Internet in our daily lives. We use the
but among the earliest and most well-known uses of the term is internet to search for information, check emails, consume
[10] - "A self-contained, interactive and concurrently-executing media, and connect with people via social networks and so
object, possessing internal state and communication capability."
much more. With around 40% of the global population (3.4
The scope of Software Agents can be most closely Billion) currently using the world wide web, this number is
associated with Chatbots and has been well documented in estimated to increase to 7.6 billion global internet users in 2020,
literature [11]. The following key properties have been a majority of which use mobile devices (phones, tablets,
associated with Software Agents [12]: (1) reactive, (2) pro- wearables etc.) [14]. Hence the internet has played a vital role
active and goal-oriented, (3) deliberative (4) continual (5) as a global backbone for information sharing, interconnection
adaptive (6) communicative, and (7) mobile. The purpose of this of physical objects with computing/networking capabilities for
paper is not to explore the various types of Software Agents and applications and services spanning numerous use cases.
agent based systems or its properties but rather propose the Internet alone, however, cannot address all issues of IoT. First,
solution to challenges faced in IoT through the use of the we will briefly discuss the challenges in IoT, and then mention
umbrella term for these Intelligent Conversational Agents,
the motivation for choosing intelligent conversational
Software Agents or Chatbots as we refer to them. It is also
interfaces.
important to note that Software Agent distinguishes itself from
Intelligent Agents (also known as Rational Agents). Intelligent A. Challenges in IoT
agents are not only computer programs. They can also be
Despite the wide scale efforts to popularize IoT, it still
machines, humans or anything that is capable of a goal directed
offers many practical challenges. Primarily, IoT systems
behavior [13].
operate in isolated technology or vendor specific silos which
Typically Chatbots are classified into two types: (1) inhibits capability, value, and interoperability and create a
Chatbots that function based on Rules (2) Chatbots that function widely disparate area [15]. Specifically, by restricting
based on Artificial Intelligence. Chatbots that function on rules heterogeneous devices (home appliances, mobile phones,
are often limited as they are only as smart as they are embedded devices etc.), sensors and services to communicate
programmed. On the other hand, AI based Chatbots give the with each other across interconnected networks, possibilities of
impression of being “intelligent” as they are capable of countless applications are hindered.
understanding natural language, not just pre-defined commands Secondly, the sheer number of connected things has
but get smarter as they interact more due to their ability to already started to create problems in application, device and
maintain different states. Based on this, concepts such as Virtual
data management in IoT [16]. To address this issue, IoT
Agents and Intelligent Personal Assistants (IPA) have come up,
which uses natural language processing, as well as speech platforms (such as Cisco IoT, IBM IoT, Microsoft Azure IoT,
recognition techniques. For example, Apple Siri, Amazon AWS IoT) offer scalable, distributed cloud based services in
Alexa, Microsoft Cortana and Google Assistant. order to allow businesses to quickly connect to an established
infrastructure, service or software without having to worry
In this paper we present a novel paradigm combining these about the backend complexities. While IoT Cloud is a step in
two disparate concepts in a single solution. However, the studies the right direction, offering many advantages, it still presents
many challenges particularly in interoperability which has led
to the issues of platform fragmentation [17, 18].