Professional Documents
Culture Documents
Internet of Behavior (Iob) and Explainable Ai Systems For Influencing Iot Behavior
Internet of Behavior (Iob) and Explainable Ai Systems For Influencing Iot Behavior
F
arXiv:2109.07239v2 [cs.DC] 10 May 2022
Abstract—Pandemics and natural disasters over the years have prevent approximately 130,000 deaths in the USA alone.
changed the behavior of people, which has had a tremendous impact Many behavioral aspects have been altered by the COVID-
on all life aspects. With the technologies available in each era, gov- 19 pandemic, such as customer interaction with brands,
ernments, organizations, and companies have used these technologies employee work procedures, and business engagement with
to track, control, and influence the behavior of individuals for a benefit.
consumers. All these and other examples have economic,
Nowadays, the use of the Internet of Things (IoT), cloud computing, and
artificial intelligence (AI) have made it easier to track and change the
technological, and physiological effects. Therefore, tracking
behavior of users through changing IoT behavior. This article introduces people’s behavior becomes crucial to influence it in adverse
and discusses the concept of the Internet of Behavior (IoB) and its situations. For example, using machine learning for mask
integration with Explainable AI (XAI) techniques to provide trusted and recognition tasks is one way to get individuals to respect
evident experience in the process of changing IoT behavior to ultimately regulations and monitor negligence.
improve user behavior. Therefore, a system based on IoB and XAI has By 2023, it is predicted that the activities of 40% of
been proposed in a use case scenario of electrical power consumption the global population will be tracked digitally to influence
that aims to influence user consuming behavior to reduce power con- human behavior [2]. It is also projected that the IoT sensors
sumption and cost. The scenario results showed a decrease of 522.2
market will reach $22.48 billion, and 29.3 billion Internet-
kW of active power when compared to original consumption over a 200-
hours period. It also showed a total power cost saving of C95.04 for the
connected devices will be available by 2023. Therefore, IoT
same period. Moreover, decreasing the global active power will reduce would play a major role in detecting people’s behavior
the global intensity through the positive correlation. The Professor of Psychology, Gote Nyman, was the first
to announce the concept of the Internet of Behavior (IoB).
Index Terms—IoB, XAI, Energy Sustainability, IoT, Deep Learning. In 2012, he said that if the human behavioral pattern is
assigned to devices (e.g. IoT devices) with specific ad-
dresses, there will be an opportunity to benefit from the
1 I NTRODUCTION knowledge gained by analyzing the history of patterns in
Natural disasters and epidemics have affected people’s lives many businesses, societal, health, political, and others fields.
for centuries. Tsunami, Spanish flu, HIV/AIDS, the COVID- Behavior is a psychological characteristic that can determine
19 pandemic, among others, have killed millions around a person’s willingness to cooperate or collaborate. Despite
the world and forced people to change their behaviours. Its the other characteristics: Cognition, Emotion, Personality,
impact on increasing mortality rate, causing economic dam- and Inter-Communication, behavior is responsible for the
age, changing the behavior of individuals, causing social tendency to act and is highly dependent on the other
and economic disruption, and increasing political pressure four criteria. Therefore, focusing on the behavior will allow
and tensions which compels developed countries to analyze knowing how to influence and treat the person.
them carefully. Attempting to influence and change user behavior is
While changing behavior appears to be a low-risk effect sensitive, as it may encounter resistance and other psy-
compared to mortality or economic disaster, it is powerful chological factors related to comfort and trust. Emerging
enough to cause such risks. For example, in a study of technologies such as XAI will help provide the user with
the impact of social distancing on suicide rates apart from the required understanding and trust of any system that
epidemiological deaths, results showed that a change in the uses AI models. XAI aims to use methods and techniques to
social distancing index of ten units caused a 2.9% increase explain to the user what an AI model does and why, thus,
in the suicide rate [1]. Moreover, during the COVID-19 giving a better perception of system operations. Therefore,
pandemic, scientists reported that wearing a mask could the process of tracking, analyzing, and influencing user
behavior will become much simpler.
This paper integrates the IoB concept with the XAI
• H. Elayan is with xAnalytics Inc., Ottawa, ON, Canada. E-mail:
hh.elayan@xanalytics.ca concept to propose trusted and understandable frameworks
• M. Aloqaily, M. Guizani, and F. Karray are with the Mohamed Bin that work in user behavior-changing areas. Accordingly,
Zayed University of Artificial Intelligence (MBZUAI), UAE. E-mails: it proposes an IoB-based system that utilizes XAI imple-
{maloqaily; mguizani, fkarray}@mbzuai.ac.ae
mented in a use case scenario of household electrical power
2
consumption. The system aims to change consumer be- keeping their customers satisfied at the same time
havior into an eco-friendly behavior to reduce power con- (Win-Win strategy). For example, online fashion re-
sumption and therefore reduce energy waste and cost. This tailer apps can use the clicks and search history of
framework integrates IoT, AI, Data Analytics, Behavioral users to suggest personalized discounts and offer
Science, and XAI techniques to achieve user and business packages.
benefits. The contributions of this paper can be summarized • Tasks Automation: Help replace outdated fashion
as follows: tactics like time-consuming and unfavorable cus-
tomer surveys (No More Tedious Tasks).
• To the best of our knowledge, this is the first at-
• Target Customers: Give the opportunity to know
tempt to investigate the concept of IoB, its workflow
the valuable customers based on their interest and
and benefits, challenges, and current industrial direc-
which segment to target and invest more time with.
tions.
For instance, the smartwatch company may find
• Propose a trusted and comprehensible IoB-XAI-
through tracked data that males aged 20-30 who do
based system that attempts to influence and change
not exercise regularly are more likely to purchase its
IoT behavior to achieve benefits for users and busi-
smartwatch to make themselves more committed to
nesses.
exercise.
• Present a use case scenario of electrical power con-
• Accuracy: Give the ability to track and study the un-
sumption behavior to influence consumer behavior
obtainable behavior of how customers interact with
and raise awareness to control and reduce the power
products and services (Notice the Unnoticed).
consumption process.
• Real-Time Interaction: Help provide real-time inter-
• Discuss and compare the main characteristics of re-
actions via notifications or alerts to customers about
lated work in the power consumption area.
targeted offers, sales, and/or advertisements. For
• Highlight potential developments and future direc-
example, social media apps provide real-time feeds
tions of the proposed system.
and ads based on viewing patterns, amount of time
spent in one account, interest in specific content, or
2 I NTERNET OF B EHAVIOR (I O B): I OT D EVICES search and chat analysis.
IoB is using devices to collect a massive amount of human
behavioral data and turn it into valuable insights to improve
2.2 IoB Challenges
user experience and search experience by changing user
behavior, interests, and preferences. With the increasing 2.2.1 Security
number of IoT devices collecting massive amounts of data, Dealing with sensitive and real-time data always creates
using these devices to track behavioral data in the IoB security concerns for any service user. In IoB, it is necessary
process will make it easier, faster, and more efficient. to demonstrate a high level of security and protection to
IoB attempts to appropriately understand data and use users, as their behavioral data is expected to be prone to
this understanding to create new products, promote current attacks. The data sensitivity motivates cybercriminals to
products, redesign the value chain, increase profits, or re- access, reveal, collect and benefit from it.
duce costs from a psychology perspective. Therefore, user
behavior in the IoB workflow will be tracked first using 2.2.2 Ethical Use
connected devices, as shown in Fig. 1. The data generated by
Behavioral data is a sensitive and personal data type, and
IoT devices will be collected and then analyzed using data
its collection, storage, or analysis must be accompanied by
analytics and machine learning algorithms. The analysis
transparency and ethical use. Users have the right to be
phase will yield useful information that must be properly
aware of this process as well as to know that their privacy
understood from a behavioral science perspective. Finally,
is preserved and protected from misuse. Another aspect of
the knowledge gained will be used to develop business
ethical use is not following the principle ”the end justifies
strategies and influence the behavior of users, thus achiev-
the means”. Companies, in most cases, aim for more profit
ing a specific goal.
regardless of the impact on users of changing their behavior
As shown in Fig. 2, the IoB process is descriptive yet
in critical areas such as health. Lastly, companies must
proactive. It tracks and analyzes user behavior in order
ensure that users’ consent is obtained when their data is
to detect and accordingly influence important psychologi-
collected and used for any purpose.
cal variables to achieve the process objective. This usually
brings lots of benefits as well as a huge set of challenges.
2.2.3 Ostrich Effect
2.1 IoB Benefits The ostrich effect is a phenomenon that occurs when the
rational mind believes something is important and the
IoB is a very new concept in today’s emerging technologies.
emotional mind expects it to be painful. People understand
It is being used in many applications for several benefits,
the power and benefits of using IoB, however, they may
however, without much knowledge about it in the research
be uncomfortable (trust issues) about the tracking process,
community. Therefore, in this sub-section, we summarize
which results in avoiding or rejecting it. Therefore, when
IoB benefits:
companies implement IoB, it is not enough to work on
• Quality of Experience, Increased Profit: Help com- process understanding by users. They also have to work
panies resolve issues in targeting more sales while on removing the discomfort of using this technology.
3
2.3 XAI for IoB the Beddit health app tracks sleep patterns, heart rate, and
IoB challenges may create resistance on the part of users as breathing rate. After analyzing the tracked behavior, the app
it tries to influence and change their behavior and track their sends alerts, notifications, and tips to improve the user’s
data. Using AI models in IoB to analyze users’ data allows sleep and motivates him/her to achieve daily goals to reach
taking advantage of XAI techniques to make the operations a more positive outcome [3].
of IoB-based systems more intelligible to the user and thus During the COVID-19 pandemic, many countries have
more trustworthy. developed health smartphone apps for citizens to control
Describing the system process, workflow, impact, and the spread of the virus. The China Health Code Alipay app,
outcomes using user-friendly mathematical and analytical for example, tracks a user’s travel history, contact history,
proofs will give users a better understanding of the system and body bio-metrics such as temperature. Then, a colored
and increase awareness of its impact. Thus, mitigating the QR code is generated to identify his/her health status. Ac-
problems of trust and the impact of resistance. cordingly, some restrictions may apply to the user and affect
his/her behavior, such as permitting travel or quarantining
at home or in a central location [4].
3 E YE ON I NDUSTRY
In this section, we will discuss how the different industries 3.2 Transportation
are interacting with IoB technology. Even in transportation, IoB can be applied for benefits for
drivers and passengers. After a long history of disputes with
3.1 Healthcare drivers and a high turnover rate, Uber is trying to resolve
these issues and settle disputes in its favor by influencing
Nowadays, smartphones allow many software companies driver behavior using gamification. Uber has tricks like loss
to build and promote different applications that care about aversion, recognition, and intrinsic motivation to reward
user’s health, where they can easily use smartphone sensors drivers or make them fear losing their winnings [5]. Also,
to track bio-metrics and healthy behavior. For instance, Ford is expanding its reach by joining forces with Argo AI to
develop autonomous vehicles that adapt and behave differ-
ently to road infrastructure designs and driving behaviors.
This technology is being tested in many locations such as
the streets of Miami, Washington, and others [6].
Influence significant
ve
psychological factors
acti
Detect significant
psychological factors This section proposes a use case scenario of a system for
household electrical power consumption. The system aims
to influence the electricity consumption behavior of a house
tive
normalized data will be used by an AI model to predict the the workflow will be explained to the user to ensure his
global active power that may be consumed in the next hour. understanding of a smoother behavior change process.
The prediction result will be passed to a decision maker and
explainer to determine how much energy the appliances
should use. Then, the results will be returned to the EMC 4.1 Dataset
to control the consumption in the next hour if it is above a An individual household electric power consumption
certain threshold in order to reduce it. dataset available online has been used to implement the use
Before discussing the proposed system flow in detail, a case [14]. It contains measurements of one house’s electrical
set of related proposals in the electrical power consump- power consumption per minute for approximately 4 years,
tion area will be discussed. Table 1 shows a summary of collected in a house located in France. The data has been
each related proposal and compared it to the proposed re-sampled to get the total consumption per hour which re-
system (last row in the table). Studies [7], [8], and [9], duced the dataset size from 2,075,259 to 34,589. The dataset
used deep learning algorithms: Long short term memory was divided into 50% train samples and 50% test samples.
(LSTM), Convolutional neural network (CNN), or both to The dataset includes the following features: Date, Time,
predict the electrical consumption. However, they focused and Voltage, Global active power: Household global active
their contribution on the architecture of the proposed model. power, Global reactive power: Household global reactive
Likewise, [10] and [11] used LSTM and CNN together. power, Global intensity: Household global current intensity
The researchers in [10] have proposed to predict power in ampere, Sub-metering 1: Energy of the kitchen, Sub-
consumption through proposing a framework consisting metering 2: Energy of the laundry room, Sub-metering 3:
of data cleaning and model building steps. Whereas the Energy of the electric water heater and an air conditioner.
authors in [11] aimed to accelerate the deployment process
of deep learning models using the proposed edge-cloud 4.2 Database and Data Normalization
framework.
Electrical power consumption data is acquired from smart
On the other hand, [12] and [13] applied Deep Reinforce-
energy monitoring sensors connected to the Internet. An
ment Learning algorithms (Deep RL) on the same dataset
advanced type of smart monitoring sensor can detect the
to perform tasks related to process optimization of power
type of each appliance by connecting the monitor to the
consumption. While authors of [12] focused on the proposed
electricity meter only,without the need to connect multiple
RL model structure, authors of [13] proposed a stochastic
monitoring sensors to each appliance, This helps centralize
game framework that controls the interaction between the
the system and reduce the cost of its installation.
consumed power and household.
The acquired data is huge and in its raw format. There-
fore, it requires a proper database to handle it. For example,
MongoDB is one of the NoSQL databases that can handle
this data as it is document-oriented. MongoDB can deal
TV
with semi-structured data where most IoT data exists in
semi-structured or unstructured formats. Moreover, it has
high performance in data storage and retrieval, which is
necessary for second-by-second data acquisition and trans-
Decision maker
(EMC) mission.
Normalization Energy monitor
& explainer AI model & controller Due to the possibility of incomplete, unstructured, and
Database
inconsistent data as IoT data is unstructured, the data nor-
data malization phase comes to normalize and pre-process the
result
data to get it in a suitable format without noise and outliers.
Additionally, this phase handles data loss that may occur
+ IoT
Information flow
Used technologies 4.3 Power Consumption Prediction Model
The dataset used in the scenario is time-series-based data.
Fig. 3: System Workflow Time series prediction problems are one of the difficult
types of predictive modelling problems because they add
The proposed model of this paper presents a compre- sequence dependence complexity amidst input features. The
hensive framework consisting of all technology needed Long-term memory network (LSTM) is a type of Recurrent
to form a successful IoB/XAI model which will reduce Neural Network (RNN) used in time series problems be-
power consumption by using IoB and XAI to influence cause it can successfully train huge structures with elimi-
user behavior. Firstly, the LSTM algorithm will be used to nating major problems, such as vanishing gradients.
build a power consumption prediction model, and then the A sequential deep learning model has been built to
power consumption process will be controlled. Meanwhile, predict the hourly power consumption. It allows building
5
a layered model, with each layer having weights corre- cerns by providing the dataset and the built model for the
sponding to the following layer. Keras library has been open-source toolkit, then selecting the type of consumer to
used for coding the model structure. The model has been customize the explanations [15]. Finally, form different ques-
constructed using one LSTM layer and one Dense layer and tions that cover the user concerns and offer explanations and
ran for 20 epochs with Adam optimizer. The model has been insights through the answers. For example:
trained on a machine with the following specifications: Intel
1) Why is power consumption controlled? The pre-
CPU@2.3GHz, 2 cores, RAM 13GB, and Disk 70GB.
dicted power consumption based on the last hour
consumption is 100 kW, your historical average is
4.4 Decision Maker and Explainer 55 kW.
The EMC will track the power consumption of appliances 2) What appliance consumes the most energy? Appli-
per hour and pass the tracked data to a cloud database to ance ”A” is the most consuming device.
be stored and normalized. The data will be used by the AI 3) How was energy consumption distributed during
model to analyze the consumption behavior and predict the this decision? Appliance “A” consumed 23 Wh,
power consumption for the next hour. Based on prediction appliance “B” consumed 13 Wh, and appliance “C”
and historical data patterns, the decision maker part will consumed 15 Wh.
decide the amount of power that should be used in the
next hour. To personalize the user experience, the decision Accordingly, the entire system works to influence the
maker will make the decision based on the historical user’s user’s consumption behavior in his favor by saving energy
behavior and usage pattern. Therefore, the decision will be from waste, saving the cost of wasted energy, and increasing
made by comparing the predicted consumption with the his/her awareness of better consuming behavior. Therefore,
historical average consumption at specific times related to creating ‘’collective wisdom” and more responsible habits
the prediction hour. Take into account influences seasonal that affect not only the individual but also the society as a
and occasional factors. whole.
The explainer part in the Decision Maker and Explainer
is responsible for applying the XAI techniques to describe 4.5 Use Case Results
the AI model, its impact, biases, and outcomes to the user.
4.5.1 Model Performance
The purpose is to use a set of processes and methods to
allow the user to understand and trust the results generated Model loss indicates how weak the model’s predictions are.
by the model, thereby raising their awareness of the work- A loss close to zero means that the model’s prediction is
ings of the system and its goal in order to have a smooth perfect and the model’s performance is good. The proposed
behavior change process. model loss started with a training loss of 0.0125 and a testing
The explainer will attempt to cover the following con- loss of 0.0079. Both of them continued to decline, reaching
cerns: Model prediction process, Model success and fail- a training loss of 0.0095 and a testing loss of 0.0078. Fig. 4a
ure, and Model confidence in decision making, using data illustrates the loss performance over epochs.
annotation and deep learning algorithm annotation. Data Fig. 4b shows a snapshot of the model’s perdition results
annotation describes statistical information of the dataset, for the global active power and the actual global active
such as features distribution and correlation. While the algo- power values of 200 samples. As shown, the prediction
rithm annotation shows the characteristics of the model and follows the actual values pattern, while the error rate is low.
whether it is biased towards certain features or outliers. The
results will be sent to the user whenever they are requested 4.5.2 Energy Saving
using any Internet-connected device. Since the proposed system predicts the global active power
Using XAI frameworks such as IBM AI Explainability for the next hour and controls the amount of used power
360 will help provide explanations for various user con- to a certain threshold, a certain amount of energy will be
6
saved. The system will control the power if the prediction Prediction
180
is above the average consumption of the same hour of Warning
the same month and the same weekday for the past four 160
years. If the prediction is lower than the average it will 140
-16
-17
-18
-19
-20
-21
-22
-23
-24
4.5.3 Cost Saving
-12
-12
-12
-12
-12
-12
-12
-12
-12
08
08
08
08
08
08
08
08
08
20
20
20
20
20
20
20
20
20
As the system is tested on 200 samples and saved 522.2
kilowatts of global active power, the power cost will also be
Fig. 5: System Warnings
saved. In France, the price of electricity in kilowatt-hours for
households is 0.182 euros. Therefore, the system will save
€95.04 for a period of 200 hours. In the dataset, the global intensity is positively correlated
with the global active power by 99% so they both move in
4.5.4 Global Intensity Reduction tandem, which means if the global active power decreases,
The energy intensity indicates the quantity of energy the global intensity will also decrease.
required per unit output or activity to produce a product
or service. A high intensity indicates high energy used to To sum up, the proposed system in the use case scenario
provide a service, and low intensity indicates lower energy managed to reduce 522.2 kilowatts of house global active
to provide a service. This affects the price or cost of energy power over a 200-hours period, while helping to reduce
conversion as low energy intensity indicates a low cost of €95.04 from wasted power cost. Moreover, the reduction
energy conversion into the gross domestic product (GDP). of the global active power affected the global intensity
positively, which will benefit the community as well.
0.010
ing and prediction of the AI model and the overall system.
It is also important to measure the user satisfaction factor.
0.009
This will help improve the experience, fix emerging issues,
and keep the user more engaged.
0.008
Another potential development area is building a dis-
0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 tributed version of the proposed system. The aim is to
epoch
compare the distributed version to the current centralized
(a) Model train vs. test loss version and test its impact on both technical and user
Actual experience aspects. Such as its effect on network efficiency,
250 Prediction cost, data storing process, and system failures.
Moreover, sending out instructive notifications to users
200 to teach them about the optimal behavior is also a con-
Global Active Power
-17
-18
-19
-20
-21
-22
-23
-24
-12
-12
-12
-12
-12
-12
-12
-12
-12
08
08
08
08
08
08
08
08
20
20
20
20
20
20
20
20
20