Written by: Jose Uncertainty is an inherent characteristic of operating in the physical world. Our observations are imperfect, our models are approximations, and our ability to predict how the world will evolve is fundamentally limited. This isn't a new problem introduced by autonomous systems. It is a reality that engineers have been designing around for decades.

What's interesting is how differently engineers across various disciplines have approached the same problem.

In robotics, state estimation, and machine learning, considerable effort is devoted to explicitly characterizing uncertainty. In control theory, some of the most successful engineering approaches focus on designing systems that are robust to it.

These approaches are complementary, but they address two distinct engineering questions: how much uncertainty exists in our understanding of the world, and how much of that uncertainty can we tolerate?

As we develop more capable autonomous systems, understanding the distinction between these two questions becomes increasingly important.

Different disciplines, different approaches

Consider the problem of estimating the state of another aircraft. Our observations may be few and far between, their accuracy and integrity may be in question, and much of the aircraft's state may not be directly observable. Our understanding of its dynamics is also imperfect.

From a state estimation perspective, it is natural to reason probabilistically about this problem. We want to characterize our belief about the state of the aircraft given the information available to us. Depending on our computational budget, latency constraints, and available observations, we have a number of approaches at our disposal, from the workhorse that is the extended Kalman filter (EKF) to increasingly popular graph-based smoothing techniques. It's not uncommon to see both approaches coexist within the same software stack.

Across these approaches, a common engineering practice is to reason explicitly about the uncertainty of our estimate.

Now consider the problem of controlling our own aircraft. We typically have much better observability of its state, direct knowledge of our control inputs, and a well-defined desired behavior. There is still uncertainty in our onboard sensors, the response of our actuators, and our models of the aircraft's dynamics.

Despite this uncertainty, control law designers have been quite successful in developing systems that don't have to explicitly propagate uncertainty during runtime. Much of the consideration for uncertainty occurs during the design process. Feedback, stability margins, disturbance rejection, and robustness allow a system to maintain acceptable behavior across a range of conditions that cannot be predicted precisely.

There is an interesting distinction here. In one case, we try to characterize how much we don't know so that we can make better decisions. In the other, we try to establish how much uncertainty we can tolerate and, where possible, increase that tolerance.

Both approaches have value in the design of autonomous systems.

When uncertainty becomes a decision-making problem

An autonomous aircraft operating in a shared environment has to reason not only about its own state, but also about the state, behavior, and potential intentions of other actors.

Consider an aircraft approaching a taxiway intersection with another moving aircraft nearby. Even if the position and velocity of the other aircraft are known with reasonable accuracy, its future behavior remains uncertain.

As we extend our prediction horizon, the range of possible outcomes generally grows. The other aircraft could continue along its current path, slow down, stop, or change direction. 

We can constrain these possibilities using our understanding of the aircraft's dynamics and physical limitations, such as its steering geometry and acceleration limits. Most aircraft, except maybe some exotic ones, typically can’t move backwards, or side ways, or spin in place (though I've had some pilots prove me wrong on that one). 

We could go a step further and introduce assumptions about expected behavior, such as assuming that aircraft will generally follow taxiway centerlines. Of course, there's a difference between constraining what an aircraft can physically do and constraining what we expect it to do.

We can keep refining our model of the environment and introducing assumptions until we're satisfied with the result. But there is a trade-off here. The more restrictive our assumptions become, the more sensitive our conclusions may be to those assumptions holding true.

However, if our initial observations are sufficiently uncertain, the set of states that the aircraft could reach within a given time horizon, commonly referred to as its reachable set, may still be prohibitively large for practical decision-making. 

Many reachability analysis methods rely on conservative approximations of this set. While computationally useful, these approximations can introduce additional conservatism beyond what is warranted by the underlying uncertainty. Take this far enough and you get  an autonomous system that struggles to make decisions in an operational environment that should be manageable.

We encounter a similar problem when attempting to bound the possible outputs of neural networks under uncertain inputs. The mechanisms used to construct these bounds may differ, but the fundamental challenge is similar: how do we obtain meaningful guarantees on our set of reachable outputs without being so conservative in our approximated set that it is so large it's just unhelpful?

This exposes an important tension in autonomous system design. Reducing the risk associated with taking an action does not necessarily reduce the overall risk associated with operating the system.

While stopping and waiting at a taxiway intersection may be an entirely appropriate response to uncertainty, not every phase of flight affords us that luxury. An aircraft approaching its destination, for example, cannot indefinitely defer a decision about whether to continue its approach or divert.

In aviation, as in life and most other things, not making a decision is itself a decision. Time, fuel, energy, and maneuverability are finite resources. An overly conservative system may eliminate viable options as it waits for a level of certainty that it can never realistically achieve.

Does the system need to reason so conservatively about the distant future? Or can it operate within a horizon where uncertainty is manageable, preserving its ability to respond as additional information becomes available?

What can autonomy learn from control theory?

One of the most compelling aspects of feedback control is that successful operation does not depend on perfectly predicting the evolution of a system.

An aircraft control system does not need to anticipate every individual gust of wind it will encounter throughout a flight. It needs to maintain acceptable behavior as those disturbances occur, within the conditions for which it was designed.

There is a distinction between knowing what will happen and retaining the ability to respond appropriately to what happens.

This same distinction is worth considering at higher levels of autonomy. The quality of a decision may depend not only on its predicted outcome, but also on the options it preserves if our predictions turn out to be incorrect.

Returning to our taxiway example, rather than attempting to resolve all uncertainty about another aircraft's future behavior before initiating any movement, we may be able to manage some of that uncertainty by limiting our taxi speed, maintaining adequate stopping distance, and continuing to observe the other aircraft, all within the constraints of our operational clearances.

We haven't necessarily reduced the uncertainty associated with the other aircraft's future behavior. Instead, we've reduced our sensitivity to it.

Of course, there are limits to this analogy. In many primary flight control problems, we benefit from relatively good observability, well-characterized dynamics, and the ability to respond rapidly to disturbances. At higher levels of autonomy, we may not have those same advantages. Not every decision is reversible, not every environmental change is observable, and not every situation affords us enough time to respond.

Understanding where uncertainty can be accommodated through design, and where it must explicitly influence our decisions at runtime, is itself a significant engineering challenge.

The implications for verification

These considerations also have implications for how we verify autonomous systems.

Demonstrating that a system makes an appropriate decision under a known set of conditions is relatively straightforward compared to establishing that it behaves appropriately when its understanding of those conditions is imperfect.

What happens when an observation is inaccurate but remains plausible? When a prediction is reasonable but ultimately incorrect? When several individually acceptable sources of uncertainty interact in an unfavorable way? It implies that uncertainty, regardless of how you deal with it, needs to be a first class consideration in your system design and engineering.

Verification must consider not only the nominal behavior of an autonomous system, but also its sensitivity to the assumptions upon which its decisions depend. This includes establishing the uncertainty a system can tolerate, whether its estimates of uncertainty are representative of the errors it actually encounters, and the conditions under which continued operation is no longer appropriate.

A system that performs well under nominal conditions isn't necessarily robust. Equally, a system that is robust to a particular set of uncertainties isn't necessarily robust to uncertainties it was never designed to accommodate.

Is there a right approach to uncertainty?

It's tempting to think that as our ability to characterize uncertainty improves, our ability to build reliable autonomous systems will improve proportionally.

There is certainly value in better observations, more accurate models, and more representative predictions. However, determining what a system should do with that information remains a separate engineering problem.

Explicitly propagating every source of uncertainty through every level of an autonomous system may be neither computationally tractable nor operationally useful. Conversely, attempting to accommodate all uncertainty through predetermined safety margins may fail to capture important differences between operational conditions.

Much of this comes down to the magnitude and characteristics of the uncertainty relative to what the system can tolerate. If we can sufficiently reduce uncertainty by introducing additional sources of information and improving observability, we may be able to accommodate the remaining uncertainty through design. Where we cannot, we may need to reason about it explicitly at runtime.

This leads to another set of interesting engineering questions that we'll explore in future articles. How should we combine information to improve the reliability of our estimates? Is sensor fusion always the answer? Or are there circumstances in which maintaining independent estimates and selecting the more trustworthy source is preferable?

In engineering an autonomous aircraft, we don't have to choose between quantifying uncertainty and designing for robustness. We need to do both. Much of the interesting engineering lies in figuring out how to apply these well-established concepts to new problems.

Ultimately, the objective of an autonomous aircraft is not to eliminate uncertainty, or even to characterize it perfectly. It is to operate safely and effectively despite its existence.