<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Runtime Decision Making Under Uncertainty in Autonomous Vehicles</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Vibhu Gautam</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Youcef Gheraibia</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rob Alexander</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Richard Hawkins</string-name>
          <email>richard.hawkinsg@york.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, University of York</institution>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Autonomous vehicles (AV) have the potential of not only increasing the safety, comfort and fuel efficiency in a vehicle but also utilising the road bandwidth more efficiently. This, however, will require us to build an AV control software, capable of coping with multiple sources of uncertainty that are either preexisting or introduced as a result of processing. Such uncertainty can come from many sources like a local or a distant source, for example, the uncertainty about the actual observation of the sensors of the AV or the uncertainty in the environment scenario communicated by peer vehicles respectively. For AV to function safely, this uncertainty needs to be taken into account during the decision making process. In this paper, we provide a generalised method for making safe decisions by estimating and integrating the Model and the Data uncertainties.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        In an AV’s software pipeline, the uncertainty arising
from various sources is critical for safe decision
making. Due to the recent advancement in Machine
Learning (ML) techniques, especially Neural Networks (NN),
the software pipeline of an AV is heavily dependent
on data related to its environment and this data comes
from the sensors. The key data sources in the software
pipeline of an AV are the LIDAR, RADAR, GPS,
camera, etc. As these sources are prone to measurement
fluctuations, there is always some uncertainty or noise
in the data which they provide, for example, uncertainty
due to variation in sensor resolution, internal sensor
noise, measurement fluctuations caused by changes in
the weather like rain, dust, etc. This gives rise to
uncertainty about how the sensor data corresponds to the
ground truth. Although recent advancements in sensor
technology have greatly reduced such inaccuracies, they
still remain of significant concern (Schwart
        <xref ref-type="bibr" rid="ref4">ing,
AlonsoMora, and Rus 2018</xref>
        )
        <xref ref-type="bibr" rid="ref19">(McAllister et al. 2017)</xref>
        .
      </p>
      <p>In the software pipeline of a typical AV, the
perception task is heavily dependent on data and advanced ML
model techniques, both of which are prone to
uncertainty. This uncertainty can lead to incorrect predictions
and therefore, jeopardize the safety of the AV. Hence,
for the safety of an AV, it becomes imperative that we
incorporate these uncertainties in the decision making
process. (Macfarlane and Stroila 2016)</p>
      <p>One recent ML technique, known as the
Convolutional Neural Network (CNN), has been widely adopted
across both the industry and the research, primarily
because of its at par human level accuracy in dealing with
various image recognition challenges and for providing
robustness to the Data and Model Uncertainty. (CNN
are robust to large variation in input data). The
perception task of an AV also utilises CNN techniques for
various classification and object detection tasks. (Stallkamp
et al. 2012)</p>
      <p>For a safety critical application like an AV, it becomes
imperative that in perception tasks, such CNN models
not only have high accuracy but are also able to
estimate and utilise the Data and Model Uncertainty for
decision making. Recent advances in the area of
Probabilistic Convolutional Neural Networks (PCNN) have
provided a way to estimate the Data and Model
Uncertainty for object classification. (McAllister et al. 2017)</p>
      <p>
        Data Uncertainty arises from sensor noise or
measurement fluctuations caused by changes in weather
conditions like rain, dust, etc., whereas, Model
Uncertainty arises because the ML models learn from data
and are not explicitly programmed to perform certain
tasks
        <xref ref-type="bibr" rid="ref14 ref19">(Kendall and Gal 2017)</xref>
        . Like any other ML
technique, CNN are also inherently uncertain because the
model they have learned is always an imperfect
representation of the complex world
        <xref ref-type="bibr" rid="ref7">(Gauerhof, Munk, and
Burton 2018)</xref>
        .
      </p>
      <p>
        Bayesian Networks (BN) are an effective technique
for decision making under uncertainty, and are utilised
heavily for such tasks across domains
        <xref ref-type="bibr" rid="ref15">(Koller and
Friedman 2009)</xref>
        . However, it has not yet been shown how
to use BN to estimate and utilise uncertainties arising
specifically from tasks like classification or object
detection.
      </p>
      <p>In this paper, we present a method that addresses the
challenge of managing the uncertainty from PCNN by
using BN for decision-making. Our method links the
outputs from a PCNN to a predefined BN. At runtime,
the output from the PCNN is used as evidence for nodes
of the BN. This allows us to estimate the probability of
being in a certain state while taking into account
uncertainties arising at runtime. These state probabilities can
be used to ensure that safe decisions are taken.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Background and related works</title>
      <p>
        The challenges of decision making in an AV, which
is safety critical in nature, is that they require
robust guarantees to assure safety, security, assurance
and other dependable characteristics
        <xref ref-type="bibr" rid="ref1 ref14">(Burton,
Gauerhof, and Heinzemann 2017)</xref>
        <xref ref-type="bibr" rid="ref7">(Gauerhof, Munk, and
Burton 2018)</xref>
        . Some of the recent work which tries to
bridge various decision making techniques with the
safety of an AV have shown promising results, for
example, Papadoulis et al.
        <xref ref-type="bibr" rid="ref13 ref16 ref21">(Papadoulis, Quddus, and
Imprialou 2019)</xref>
        proposed a runtime decision
making control algorithm for AV. The algorithm supported
both lateral and longitudinal decision making and was
shown to improve road safety by reducing road
conflicts. For safer decision making in an AV, Furda et al.
        <xref ref-type="bibr" rid="ref5">(Furda and Vlacic 2011)</xref>
        used Petri net for choosing
a safe manoeuvre and Multi Criteria Decision Making
(MCDM) model for improving comfort and efficiency
under multiple criteria. Katrakazas et al.
        <xref ref-type="bibr" rid="ref13 ref16 ref21">(Katrakazas,
Quddus, and Chen 2019)</xref>
        proposed the usage of
Dynamic Bayesian Networks (DBN) to enhance the risk
assessment for AV. In order to increase the safety of
automated driving, DBN were used to estimate the risk
of collision by providing comprehensive reasoning for
unsafe driving behaviour.
      </p>
      <p>Though these techniques yield good results, none of
these solutions address how to estimate uncertainties
arising from perception tasks, or how to take these
uncertainties into account during the decision making
process.</p>
      <p>
        Work done by
        <xref ref-type="bibr" rid="ref11">(Kabir et al. 2019)</xref>
        tries to utilise
uncertainties during runtime in an AV by proposing a
conceptual framework for runtime safety analysis using BN
and State Machines (SM) in a Platooning Scenario. BN
proposed in this architecture are used to address issues
of uncertainty in data and to produce runtime
probabilistic confidence of being in a certain state. However,
the authors do not discuss the methods used for complex
tasks like object detection. For example, in their
framework, for detecting speed from road signs, they depend
on external sources such as roadside infrastructure. It is
therefore not clear how various uncertainties can be
captured. In our work, we extend this framework to show
how these uncertainties can be estimated at runtime and
integrated into a BN for safe decision making.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Proposed Method</title>
      <p>
        Using
        <xref ref-type="bibr" rid="ref11">(Kabir et al. 2019)</xref>
        work as a reference for our
proposed method, at design-time, we model the failure
behaviour of the system as a SM. The states of the SM
are based on a detailed study of both the environment
in which the AV system needs to function and the
possible hazards and failures that the AV may encounter.
SM have been extensively used to model the failures
and faults of a complex system into a chain of simpler
states.
      </p>
      <p>
        Like
        <xref ref-type="bibr" rid="ref11">(Kabir et al. 2019)</xref>
        , we use an executable BN,
which can be used at runtime to produce the probability
of being in a certain state. BN provide a very powerful
way to infer the relationship between a large number of
random variables which are represented in the form of
a Directed Acyclic Graph (DAG). BN also allow us to
factor large joint probability distributions by capturing
the independence among various random variables.
      </p>
      <p>
        In
        <xref ref-type="bibr" rid="ref11">(Kabir et al. 2019)</xref>
        framework, any safety failure
in the system is defined using a SM and then an
executable BN is used to generate the probability of being
in certain state. We extend on this framework by
proposing a method for estimating both the Data and the Model
Uncertainties from the classification task and utilizing
them for decision making using the BN. We use PCNN
to provide estimates of the Data and the Model
Uncertainty along with the Label Prediction for the
classification task.
      </p>
      <p>
        PCNN produces probabilistic understanding of Deep
Learning models by inferring the distribution over NN
parameters, i.e., Weights and Biases. This distribution
over NN parameters allows us to estimate the Model
and Data Uncertainty. This estimate of Model and Data
Uncertainty are added to get a single value for Total
Uncertainty, which is then normalised using logistic
regression to present probability of correct
classification
        <xref ref-type="bibr" rid="ref6">(Gal and Ghahramani 2015)</xref>
        . This probability
becomes the runtime evidence for the nodes of the BN.
In the next section, we discuss in detail, how PCNN is
used to estimate the Model and the Data Uncertainty.
3.1
      </p>
      <sec id="sec-3-1">
        <title>Estimating Model Uncertainty</title>
        <p>
          Model Uncertainty tells our ignorance about which
model parameter best fits the underlying data. In the
case of NN, where the model training (learning)
process is stochastic in nature, there can be different values
for model parameters leading to similar prediction
accuracy. Therefore, using PCNN, we can estimate our
ignorance regarding which model parameters generated our
underlying data
          <xref ref-type="bibr" rid="ref14 ref19">(Kendall and Gal 2017)</xref>
          . Owing to their
large parameter space, estimating Model Uncertainty is
a non-trivial task, especially in case of NN
          <xref ref-type="bibr" rid="ref9">(Hinton and
van Camp 1993)</xref>
          . In addition, as discussed in the
previous section, similar to other ML techniques, any NN
based technique is also inherently uncertainty. Hence,
for safety critical applications, we need methods to
estimate this uncertainty and use it for safe decision
making.
        </p>
        <p>
          In a PCNN, exact inference of posterior distributions
over a large parameter space, like a Kernel in PCNN, is
intractable. Possible methods which exist consist of the
Sampling Methods, the Variational Inference Methods
or the Ensemble Methods
          <xref ref-type="bibr" rid="ref8">(Graves 2011)</xref>
          (Osband et al.
2016). Sampling Methods and Ensemble methods, both
suffer from very high latency in real time usage, for
example, when used in an AV. A recent work proposed
          <xref ref-type="bibr" rid="ref6">(Gal and Ghahramani 2015)</xref>
          Random Neuron Dropout
during runtime as a method for Approximate
Variational Inference. This method only requires dropouts in
Forward Passes at runtime. The average stochastic
Forward Passes are then interpreted as Bernoulli
Approximate Variational Inference. Additionally, to handle any
latency issues, PCNN can be deployed for runtime in a
distributed manner.
        </p>
        <p>
          In a given dataset, the input feature space is defined
by X = [x1; ::; xn], and the output to be predicted is
defined as Y = [y1; ::; yn]. The usage of dropouts at
runtime allows us to use the distribution over Weights and
Biases which can later be used to calculate the Mean of
the Predictive Posterior Distribution (y ) for any new
data (x ) by taking the Mean of the SoftMax output
Score for N number of Forward Passes. Finally, the
Model Uncertainty can be captured in the form of
Shannon Entropy (SE)
          <xref ref-type="bibr" rid="ref3">(Feng, Rosenbaum, and Dietmayer
2018)</xref>
          .
3.2
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>Estimating Data Uncertainty</title>
        <p>
          Data Uncertainty captures the noise which is inherently
present in the sensor data. PCNN help us to quantify
the noise in the data as it can be trained to learn this
noise in an unsupervised manner. This uncertainty in the
data, which is learned by modifying the loss function of
PCNN, tells us the noise inherently present in the data
          <xref ref-type="bibr" rid="ref16">(Leung and Bovy 2019)</xref>
          <xref ref-type="bibr" rid="ref14 ref19">(Kendall and Gal 2017)</xref>
          . For
classification tasks, in the output layer, in addition to
the number of neurons corresponding to the number of
classes, an extra neuron is added and the loss function is
modified to incorporate for this additional neuron. This
allows us to train the extra neuron in an unsupervised
manner to learn the uncertainty in the data.
        </p>
        <p>Unlike Model Uncertainty, we do not need to run
multiple Forward Passes to capture Data Uncertainty.
Also, in case of the latter, uncertainty cannot be reduced
using additional data.
3.3</p>
      </sec>
      <sec id="sec-3-3">
        <title>Decision Making using BN</title>
        <p>cases where the probabilities of two or more different
states are equal, to avoid a deadlock, the system
designer can define a set of rules. In cases where two
states have highest and approximately equal probability,
safety goals can be ensured by using predefined rules to
choose a particular state. For instance, the more
safetycritical state can be chosen in the case of a tie.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Experiments</title>
      <p>
        In this section, we describe the implementation of our
proposed method by using a conceptual platooning case
study used by
        <xref ref-type="bibr" rid="ref11">(Kabir et al. 2019)</xref>
        . We extend the case
study by using PCNN for capturing the Data and Model
Uncertainty. We also perform an experiment to test
whether or not the safety of our system is ensured when
we utilise the uncertainty arising from both the Data and
the Modeling tasks.
4.1
      </p>
      <sec id="sec-4-1">
        <title>Platooning Case Study</title>
        <p>
          The case study we use is a Platooning Scenario
consisting of two vehicles, the Follower and the Leader. These
vehicles operate in Cooperative Adaptive Cruise
Control (CACC), tasked to ensure that a Safe Distance is
maintained between the two vehicles. For the
Platooning Scenario, the following conditions
          <xref ref-type="bibr" rid="ref23">(Reich 2016)</xref>
          must be ensured and verified at runtime:
        </p>
        <p>– Condition 1: d ds, where d and ds are the
distance between the two vehicles and the minimum safety
distance respectively.</p>
        <p>– Condition 2: Current Vehicle Speed Speed
Limit, where former is the current speed of the vehicles
and the latter is the speed limit on the road.</p>
        <p>– Condition 3: Any ambiguity arising while
checking the validity of the input data, is modeled to ensure
the safety of the system and the system utilises only
correct input data for decision making.</p>
        <p>
          A SM is used to model the failure behaviour
          <xref ref-type="bibr" rid="ref18">(Machin
et al. 2016)</xref>
          of the Platooning System. Based upon the
three conditions above, the States and corresponding
Actions, to ensure the safety of the system, have been
summarised in Table 1 and the SM diagram in Figure 1.
        </p>
        <p>An executable BN can be created to produce the
system’s probability of being in a certain SM state. The
BN model and the PCNN used, as shown in Figure 2,
contain both the quantitative and the probabilistic safety
parameters for inferring the system’s state at runtime.
The BN nodes of “Speed”, “Speed Limit”, “Distance
from Follower”, “Safe Distance”, are all quantitative
parameters. These quantitative parameters are used for
checking the safety condition related to Speed and
Distance, as mentioned in the SM. The “Leader detected by
Follower”, “Follower detected by Leader” and “Valid
Speed Limit”, are all probabilistic parameters used for
checking the validity of the input data.</p>
        <p>The safety of the Platooning Scenario, as defined in the
SM in Figure 1, is based on three conditions, i.e., Safe
Speed, Safe Distance and Ambiguity. These condition
are also represented in the BN. The “Speed Check”
S0
S1
S2
S3
S4
S5
State Description</p>
        <p>The safety condition of
safe distance is fulfilled
and the Follower is
driving within the speed
limit of the road.</p>
        <p>The safety condition of
safe distance is fulfilled
but the Follower is
driving above the speed
limit of the road.</p>
        <p>Action
The state is safe,
therefore, continue
driving.</p>
        <p>Decelerate to fall within
the speed limit.</p>
        <p>The safety condition of Decelerate to increase
safe distance is not the distance with the
fulfilled and the Follower Leader until safety
is driving within the condition is fulfilled.
speed limit of the road.</p>
        <p>The safety condition of Decelerate to achieve a
safe distance is not safe distance with the
fulfilled and the Follower Leader and fall within
is driving above the the speed limit.
speed limit of the road.</p>
        <p>The safety condition of
safe distance is not
fulfilled, the Follower is
driving above the speed
limit of the road, and is
driving too close to the
Leader.</p>
        <p>Safety condition of safe
distance and/or speed
limit cannot be verified.</p>
        <p>Brake to stop driving.</p>
        <p>
          Switch to ACC mode.
node is responsible for producing probabilistic
guarantees of maintaining a safe speed. This is achieved
through two child nodes, namely, “Valid Speed Limit”,
representing a certificate about the validity of the speed
limit and “Speed Within Limit”, monitoring the legality
of the vehicle’s current speed by comparing it with the
current speed limit. Similarly, “IsSafe” is responsible
for producing probabilistic guarantees of maintaining
Safe Distance between the Leader and the Follower. The
condition for Ambiguity is monitored by the “Detection
Quality” node, which provides a guarantee about the
detection by both the Leader and the Follower vehicles.
In
          <xref ref-type="bibr" rid="ref11">(Kabir et al. 2019)</xref>
          the validity of the estimate of
the speed limit is determined by getting a “certificate”
of the speed limit from the external infrastructure.
Instead, in our method, we assess the validity of the
detected speed limit by using uncertainty estimates from
the PCNN.
4.2
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>Implementation of PCNN</title>
        <p>
          In this section we discuss the implementation of the
PCNN for the Platooning Case Study. For the
platooning working example, we provide evidence of speed
detected from the speed sign board, which is used in the
“Speed Limit” node of the BN. Also, the
probabilistic confidence of this prediction is used in the “Valid
Speed Limit” node of the BN. The PCNN used was
trained using a Traffic Sign Dataset where traffic signs
were detected from images and uncertainty in the results
was quantified using PCNN discussed earlier. The
German Traffic Sign Recognition Benchmark Dataset
(Stallkamp et al. 2012)
          <xref ref-type="bibr" rid="ref10">(Houben et al. 2013)</xref>
          is a well
established benchmark in the area of automatic traffic sign
recognition. This dataset consists of about 50,000
traffic sign images reflecting variations in the visual
appearances of signs because of weather conditions,
occlusion, rotations, illumination, distance, etc. It consists
of 43 classes having unbalanced class frequencies. By
default, it is divided into a Training Dataset and a
Testing Dataset with 39209 training image and 12630
testing images.
        </p>
        <p>
          For easy implementation of PCNN, we used AstroNN
API, which is built on top of Keras and Tensorflow.
For estimating Model Uncertainty, the runtime dropout
is implemented by ”MCdropout” layer of the AstroNN
API
          <xref ref-type="bibr" rid="ref16">(Leung and Bovy 2019)</xref>
          . The dropout rate used was
20 percent. The Data Uncertainty is estimated in the
last layer of the architecture as shown in Table 2 and is
represented as a ”varianceoutput” layer in the AstroNN
API. Speed Sign Detection and the Total Uncertainty in
predictions is the output from PCNN and these become
the evidence for the nodes of BN, i.e., “Speed limit” and
“Validity of speed limit”.
        </p>
        <p>The simple model with 20 epochs was producing a
training accuracy of above 95 percent for multiple runs.
Also, the test data accuracy was 90 percent and above.
Fig 3a) shows how we have high accuracy
corresponding to lower value of Total Uncertainty.</p>
        <p>The uncertainty measures produced by PCNN are
numeric values and not a probability distribution as is
required for probabilistic inference in BN. To address this
issue, we convert the uncertainty measure, i.e., the sum
of the Model and Data Uncertainty, into a probability of
correct classification by using a logistic regression and
it is implemented with a popular pymc3 library. The
results in Figure 3b), show how low uncertainty correlates
highly with the probability of correct prediction.
224
0
0
0
0
0
0
409856
32896
5547
5547
5547
Layer
Input Layer
Conv2D
Activation
MCDropout
Conv2D
Activation
MCDropout
Flatten
Dense
MCDropout
Dense
Activation
Dense
Dense
MaxPooling2D
varianceoutput(Dense) (None,43)</p>
        <p>
          The remaining setup and assumptions for the
experiment remain the same as used by
          <xref ref-type="bibr" rid="ref11">(Kabir et al. 2019)</xref>
          .
        </p>
        <p>In the next section, we discuss the results we
performed to show how our approach can incorporate data
and model uncertainties to ensure the overall safety of
Output Shape</p>
        <p>Parameters
(None,40,40,3)
(None,40,40,8)
(None,40,40,8)
(None,40,40,8)
(None,40,40,16) 1168
(None,40,40,16) 0
(None,40,40,16) 0
(None,10,10,16) 0
(None,1600)
(None,256)
(None,256)
(None,128)
(None,128)
(None,43)
(None,43)
To test the working of the proposed method, we
generated two Test Scenarios. Scenario A, where the evidence
provided to “Validity of speed limit” is considered to
be 100% for each test case, and Scenario B, where the
the probabilistic uncertainty output from PCNN is used.
The results for the tests performed for each scenario are
summarised in Table 3 and Table 4.</p>
        <p>Firstly, we discuss the results obtained for test cases
in Scenario A, where the evidence provided to “Validity
of speed limit” is considered to be 100% for each of the
following test case:</p>
        <p>– Test Case A1: the “Speed” of the Follower is more
than the “Speed Limit” and all other safety conditions
are met, therefore, State S1 (Decelerate to fall within
the speed limit) is selected with 100% probability.</p>
        <p>– Test Case A2: the “Distance detected by Leader”
and “Distance detected by Follower” is less than the
“Safe distance”, and all other safety conditions are met,
therefore, State S2 (Decelerate to increase the distance
with the Leader until safety condition is fulfilled) is
selected with 100% probability.</p>
        <p>– Test Case A3: the “Distance detected by Leader
and “Distance detected by Follower” is less than the
“Safe distance” and “Speed of the Follower” is more
than the “Speed Limit”, therefore, State S3 (Decelerate
to achieve a safe distance with the Leader and fall within
the speed limit) is selected with 100% probability.</p>
        <p>– Test Case A4: the Follower is driving above the
“Speed Limit” and is also “Too close” to the Leader
therefore, State S4 (Brake to stop driving) is selected
with 100% probability.</p>
        <p>In Scenario B, all the safety conditions, as described
in the SM, are met, but instead of always considering
the probability of the “Valid Speed Limit” detected as
100%, the probabilistic uncertainty output from PCNN
is used. As seen below, the different test cases results in
both a change in the probability of the output state and
the output state selected:</p>
        <p>– Test Case B1: all the safety conditions are met, and
there is 100% confidence in the validity of the speed
limit, therefore State S0 (The state is safe, therefore,
continue driving) is selected with 100% probability.</p>
        <p>– Test Case B2: as in Test Case B1, the safety
conditions are met and the evidence provided to the nodes in
the BN are the same except for the “Valid Speed Limit”
node, which gets the normalised input from PCNN.
Here, the “Valid Speed Limit” node receives the
probability of correct “Speed Limit” detected as 70%. We
see that the same final State S0 is selected, but with
70% probability. This result shows that with a sufficient
probability from the PCNN, even when probability is
less than the 100%, State S0 is correctly selected. This
ensures that even when some uncertainty is observed,
the car is still able to move.</p>
        <p>– Test Case B3: as in Test Cases B1 ad B2, most
of the safety conditions are met and the evidences
provided to various nodes in a BN are the same, except for
the “Valid Speed Limit” node. Here, the “Valid Speed
Limit” node receives the probability of correct “Speed
Limit” detected as 40% and therefore, we see that State
S5 (Switch to ACC mode) is selected with 60%
probability as the final output. Figure 2 shows that the state
having the highest probability, i.e., State S5 (Switch to
ACC mode), is selected. This represents the safest
decision for this test case. Here, the output state selected
changes because of low confidence in the validity of
the speed limit (i.e. the evidence provided to the “Valid
Speed Limit” node is below 50%, which is in this case,
the acceptable safety threshold used in the BN). This
test case shows that if blind trust is put into the “Speed
Limit” detected from road sign boards, believing it to
be always 100% accurate, then that is likely to lead to
an unsafe output state. This was seen in the original
implementation of the platooning case study, and would
typically be the result if using advanced ML techniques
like NN.</p>
        <p>– Test Case B4: similar to the test cases above, most
of the safety conditions are met, however, there is
absolutely no confidence in the validity of the speed limit
detected (“Validity of speed limit” is 0%) and therefore,
final State S5 (Switch to ACC mode) is selected with
100% probability.</p>
        <p>The Test Scenarios A and B show that while
using BN, the Model and the Data Uncertainty (provided
as normalised/probabilistic input to “Validity of speed
limit” node) have a huge influence on the probability
of the output state selected. The results show that our
method of using a PCNN, to estimate both the Model
and the Data Uncertainty, along with BN, enables us
to make safe decisions. Unlike deterministic models,
BN are capable of handling uncertainty in the input and
therefore are an better choice for handling uncertainty
generated from PCNN for making safe decisions.
6</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>In this paper, we have described how we can utilise the
estimated uncertainty, arising from data and complex
ML models, to improve safety in decision making. The
proposed method allows designers of AV to improve the
decision making process by integrating multiple sources
of uncertainty. The efficacy of the proposed approach
has been illustrated via an experimental analysis.
7</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgement</title>
      <p>This research has received funding from Assuring
Autonomy International Program (University of York) and
the European Union’s EU architecture Program for
Research and Innovation Horizon 2020 under Grant
Agreement No. 812.788</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>Burton</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Gauerhof</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ; and
          <string-name>
            <surname>Heinzemann</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <article-title>Making the case for safety of machine learning in highly automated driving</article-title>
          . In International Conference on Computer Safety, Reliability, and Security,
          <fpage>5</fpage>
          -
          <lpage>16</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Feng</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Rosenbaum</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ; and
          <string-name>
            <surname>Dietmayer</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <year>2018</year>
          .
          <article-title>Towards safe autonomous driving: Capture uncertainty in the deep neural network for lidar 3d vehicle detection</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <source>In 2018 21st International Conference on Intelligent Transportation Systems (ITSC)</source>
          ,
          <fpage>3266</fpage>
          -
          <lpage>3273</lpage>
          . IEEE.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>Furda</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ; and
          <string-name>
            <surname>Vlacic</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <year>2011</year>
          .
          <article-title>Enabling safe autonomous driving in real-world city traffic using multiple criteria decision making</article-title>
          .
          <source>IEEE Intelligent Transportation Systems Magazine</source>
          <volume>3</volume>
          (
          <issue>1</issue>
          ):
          <fpage>4</fpage>
          -
          <lpage>17</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <surname>Gal</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ; and
          <string-name>
            <surname>Ghahramani</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          <year>2015</year>
          .
          <article-title>Bayesian convolutional neural networks with Bernoulli approximate variational inference</article-title>
          .
          <source>arXiv preprint arXiv:1506</source>
          .
          <fpage>02158</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <surname>Gauerhof</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Munk</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ; and
          <string-name>
            <surname>Burton</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <year>2018</year>
          .
          <article-title>Structuring validation targets of a machine learning function applied to automated driving</article-title>
          . In International Conference on Computer Safety, Reliability, and Security,
          <volume>45</volume>
          -
          <fpage>58</fpage>
          . Springer.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <surname>Graves</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <year>2011</year>
          .
          <article-title>Practical variational inference for neural networks</article-title>
          .
          <source>In Advances in neural information processing systems</source>
          ,
          <volume>2348</volume>
          -
          <fpage>2356</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <surname>Hinton</surname>
          </string-name>
          , G. E.; and van
          <string-name>
            <surname>Camp</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <year>1993</year>
          .
          <article-title>Keeping neural networks simple</article-title>
          .
          <source>In International Conference on Artificial Neural Networks</source>
          ,
          <fpage>11</fpage>
          -
          <lpage>18</lpage>
          . Springer.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <surname>Houben</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Stallkamp</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Salmen</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ; Schlipsing,
          <string-name>
            <given-names>M.</given-names>
            ; and
            <surname>Igel</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.</surname>
          </string-name>
          <year>2013</year>
          .
          <article-title>Detection of traffic signs in realworld images: The German Traffic Sign Detection Benchmark</article-title>
          .
          <source>In The 2013 international joint conference on neural networks (IJCNN)</source>
          ,
          <fpage>1</fpage>
          -
          <lpage>8</lpage>
          . IEEE.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>Kabir</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Sorokos</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ; Aslansefat,
          <string-name>
            <given-names>K.</given-names>
            ;
            <surname>Papadopoulos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            ;
            <surname>Gheraibia</surname>
          </string-name>
          ,
          <string-name>
            <surname>Y.</surname>
          </string-name>
          ; Reich, J.; Saimler,
          <string-name>
            <surname>M.</surname>
          </string-name>
          ; and Wei,
          <string-name>
            <surname>R.</surname>
          </string-name>
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <article-title>A runtime safety analysis concept for open adaptive systems</article-title>
          .
          <source>In International Symposium on Model-Based Safety and Assessment</source>
          ,
          <volume>332</volume>
          -
          <fpage>346</fpage>
          . Springer.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <surname>Katrakazas</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Quddus</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ; and
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>W.-H.</given-names>
          </string-name>
          <year>2019</year>
          .
          <article-title>A new integrated collision risk assessment methodology for autonomous vehicles</article-title>
          .
          <source>Accident Analysis &amp; Prevention</source>
          <volume>127</volume>
          :
          <fpage>61</fpage>
          -
          <lpage>79</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <surname>Kendall</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ; and Gal,
          <string-name>
            <surname>Y.</surname>
          </string-name>
          <year>2017</year>
          .
          <article-title>What uncertainties do we need in bayesian deep learning for computer vision</article-title>
          ? In
          <source>Advances in neural information processing systems</source>
          ,
          <volume>5574</volume>
          -
          <fpage>5584</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <string-name>
            <surname>Koller</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ; and
          <string-name>
            <surname>Friedman</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          <year>2009</year>
          .
          <article-title>Probabilistic graphical models: principles and techniques</article-title>
          . MIT press.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          <string-name>
            <surname>Leung</surname>
            ,
            <given-names>H. W.</given-names>
          </string-name>
          ; and
          <string-name>
            <surname>Bovy</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <year>2019</year>
          .
          <article-title>Deep learning of multi-element abundances from high-resolution spectroscopic data</article-title>
          .
          <source>Monthly Notices of the Royal Astronomical Society</source>
          <volume>483</volume>
          (
          <issue>3</issue>
          ):
          <fpage>3255</fpage>
          -
          <lpage>3277</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          <string-name>
            <surname>Macfarlane</surname>
            , J.; and Stroila,
            <given-names>M.</given-names>
          </string-name>
          <year>2016</year>
          .
          <article-title>Addressing the uncertainties in autonomous driving</article-title>
          .
          <source>SIGSPATIAL Special</source>
          <volume>8</volume>
          (
          <issue>2</issue>
          ):
          <fpage>35</fpage>
          -
          <lpage>40</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          <string-name>
            <surname>Machin</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Guiochet</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ; Waeselynck,
          <string-name>
            <given-names>H.</given-names>
            ;
            <surname>Blanquart</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-P.</given-names>
            ;
            <surname>Roy</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          ; and Masson,
          <string-name>
            <surname>L.</surname>
          </string-name>
          <year>2016</year>
          .
          <article-title>Smof: A safety monitoring framework for autonomous systems</article-title>
          .
          <source>IEEE Transactions on Systems, Man, and Cybernetics: Systems</source>
          <volume>48</volume>
          (
          <issue>5</issue>
          ):
          <fpage>702</fpage>
          -
          <lpage>715</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          <string-name>
            <surname>McAllister</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ; Gal,
          <string-name>
            <given-names>Y.</given-names>
            ;
            <surname>Kendall</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.; Van Der</given-names>
            <surname>Wilk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ;
            <surname>Shah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ;
            <surname>Cipolla</surname>
          </string-name>
          , R.; and
          <string-name>
            <surname>Weller</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <year>2017</year>
          .
          <article-title>Concrete problems for autonomous vehicle safety: Advantages of bayesian deep learning</article-title>
          .
          <source>International Joint Conferences on Artificial Intelligence</source>
          , Inc.
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          2016.
          <article-title>Deep exploration via bootstrapped DQN</article-title>
          .
          <source>In Advances in neural information processing systems</source>
          ,
          <volume>4026</volume>
          -
          <fpage>4034</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          <string-name>
            <surname>Papadoulis</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Quddus</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ; and Imprialou,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          <article-title>Evaluating the safety impact of connected and autonomous vehicles on motorways</article-title>
          .
          <source>Accident Analysis &amp; Prevention</source>
          <volume>124</volume>
          :
          <fpage>12</fpage>
          -
          <lpage>22</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          <string-name>
            <surname>Reich</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <year>2016</year>
          .
          <article-title>Systematic engineering of safe open adaptive systems shown for truck platooning</article-title>
          .
          <source>Ph.D.</source>
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          <string-name>
            <surname>Schwarting</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Alonso-Mora</surname>
          </string-name>
          , J.; and
          <string-name>
            <surname>Rus</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          2012.
          <article-title>Man vs. computer: Benchmarking machine learning algorithms for traffic sign recognition</article-title>
          .
          <source>Neural networks</source>
          <volume>32</volume>
          :
          <fpage>323</fpage>
          -
          <lpage>332</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>