For each method used, the cross-validation
method was used (using Stratified K Folds, where
each fold contains the same number of samples repre-
senting the classes), together with a selection of vari-
ables for more accurate classification. Then, accuracy
metrics, confusion matrix for false negative and pos-
itive numbers were extracted, besides the ROC and
precision-recall curves for verification of the integrity
and reliability of the algorithms.
The best-performing techniques were those of en-
semble learning, especially Bagging and Random
Forest, which was more accurate and returned lower
false negative rate than others, which is a very impor-
tant metric since the absence of a notification can be
disastrous to the pedestrian.
4.3 How These Models Influence
Pedestrian Decision Making
Let the sensors inputs be: A = {car has sound =
true, is car ocluded = true, car avg speed = 0.227491,
app distraction = 0, user movement = 0.397433,
head rotation = 0.225124, car direction = back left,
sim type = button}. B = {car has sound = false,
is car ocluded = false, car avg speed = 0.0564026,
app distraction = 0.272997, user movement = 0.2551,
head rotation = 0.2004, car direction = front,
sim type = sound on}. C = {car has sound
= false, is car ocluded = false, car avg speed =
0.0564026, app distraction = 0.3038, user movement
= 0.4137, head rotation = 0.5741, car direction =
back, sim type = sound on}. D = {car has sound
= false, is car ocluded = false, car avg speed =
0.825519, app distraction = 0.35905, user movement
= 0.177664, head rotation = 0.107857, car direction
= back right, sim type = sound on}. In table 1 we
present a set of behavior of our agent according to
these inputs.
The Bayesian network will send a message to no-
tify only in case C, because the variable ‘true’ in the
aware node is smaller than our Bayesian threshold of
60%. The categorical predictive model uses the Bag-
ging Classifier technique, which provides an aggrega-
tion of decision trees with random samples from the
training dataset in a setting that notifies the pedestrian
only in case C and D. The predictive model with a
threshold of 50% uses the Random Forests Classifier
technique, in a way that fewer predictors are applied
to each split in the aggregation of decision trees, pro-
viding reduced variance. Predicted the notification re-
quirement on B and C inputs.
5 CONCLUSION
The use of mobile devices by pedestrians and drivers
can increase the incidence of traffic accidents. In this
research, we investigate the use of mobile devices by
pedestrians and propose an agent to act as a notifica-
tion system for critical distraction levels. The aims
of this research were twofold: 1) to develop an un-
derstanding of the impact of mobile device usage on
pedestrians’ situational awareness and; 2) to develop
an agent that can predict the level of awareness of
a pedestrian who is using a mobile device in critical
zones such as near roads.
Using a Cave Automatic Virtual Environment
(CAVE), an urban environment has been designed and
calibrated to simulate the interaction between a pedes-
trian user of smartphone and moving traffic. Based on
the data collected three models were developed and
with its outputs, a voting system defines if the user
must be notified. We have demonstrated that an agent
can effectively be built to warn a pedestrian user of
potential threats in the environment. At this stage,
our model requires explicit information from the en-
vironment that can be obtained through the vehicle to
device communication systems or other means.
In the Bayesian model, it is easier to add a new
behavior through nodes and CPT. On both predictive
models, the use of statistical learning methods gives a
whole set of different tools to enable finding data pat-
terns that indicate threatening situations. Despite the
satisfactory results, a larger and more balanced quan-
tity of samples is likely to have a positive influence
on the knowledge discovery for pedestrian situational
awareness.
5.1 Future work
Our results with the Bayesian network must be im-
proved. An approach we may try is to extend it
as a Dynamic Bayesian Network (DBN). This ap-
proach already exists for the driver’s view of pedestri-
ans (Kooij et al., 2018). We also are planning to add
online learning to fit the participant profile. Another
interesting project is to develop a smartphone applica-
tion with this agent. At this time we only define that
the user should be notified, not specifying such noti-
fication. Depending on the level of attention, or lack
thereof, the agent may have a set of actions. For ex-
ample, if the user’s attention is very low, and the user
is listening to music, a beep may be applied. Other
possible actions may be to interrupt texting, showing
a warning message or blocking the display altogether.
In a future iteration, the system can further deploy
on-device sensors such as camera and microphone to
A Hybrid Intelligent Agent for Notification of Users Distracted by Mobile Phones in an Urban Environment
283