Better safe than sorry: error prediction

Undecidability of the Halting Problem - YouTube

Error detection is not a halting problem,(1) which is to say that we can halt before crashing.(2) The objective of error detection is to determine operating regimes where

  • Continued operation presents
    • a risk to the operator
    • a risk to the those in the environment
    • a risk to the device

When those conditions are detected the device should provide feedback to the user and/or migrate into a different operating mode.

How do you know when faults are possible?

There are three primary ways in which errors can be predicted:

  1. Known “dangerous” operating conditions: (fever condition)
    In some cases the fault condition is known; when your temperature goes above X you have a fever and should get treatment. In the same fashion for most devices, there are known conditions where continued operations are a risk.
  2. Interpolated error: (crystal ball)
    In some cases, the current conditions with forward prediction can predict that the device will at some near point in time enter into a known dangerous condition. In this case a combination of how far off is the condition and how long have you been trending towards the condition should inform when the alert is raised.
  3. Regression/ML/AI error: (history book)
    A statistical approach to predictive maintenance and error detection can be taken e.g., when conditions that historically have led to a fault are detected, then the alert can be raised. This differs from the crystal ball in that the root cause may not be understood.

The Most Important Bobcat Fault Code List
I know but(3)

How to respond

Objects in the mirror are closer than they appear. - Far Side | Animated  cartoons, Funny cartoons, Cartoon

How you respond should depend on the fault severity and the timeline of the fault. The higher the severity of the fault the higher the response; the closer the fault is to “activating,” the faster the response.

Low Alert

The lowest level of alert is the diagnostic message. For a low impact, delayed incident, this is acceptable. However, the end user may ignore this so…

What is adaptive cruise control, and how does it work? - ExtremeTech

Medium Alert

For a mid-level response, the device may reduce the performance. For example, adaptive cruise control could apply braking if the vehicle in front is too close.

High Alert

At the final end of things (high alert), the device should deploy / respond / act in such a way to protect the users and the people in the environment.

Toyota, Honda recall over 60 lakh vehicles due to glitches in air bag

Better late than never; better early than late

As the section above shows, as the response increases the recovery is more significant. By the time you hit the high alert, repairing the device is a greater expense than a simple “check engine” light.”(4) Use the three prediction methods and you(5) can prevent faults.

Careful With Those Birthday Candles, Smokey: Beloved Bear Turns 75 | NPR  News | ideastream

Footnotes

  1. I was surprised that there are no good engineering cartoons on the halting problem; perhaps they haven’t been finished yet.
  2. For many engineers with error detection and fault handling, they treat the perfect as the enemy of the good. It is always better to error out gracefully than to continue operation at risk.
  3. I know this is a fault screen for the small backhoe of a BobCat, but I like to imagine this is a nature documentary following around a wildcat (i.e., some of you may remember the early ’90’s commercials featuring a live bobcat).
  4. The migration from Adaptive cruise control to air bags is clear; if you brake, you don’t crash.
  5. In this case the “you” is you and your whole engineering team.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.