An approach to detect when a cantilever loses interaction with a sample,
thereby detecting when a portion of an image obtained using a cantilever
is spurious is presented. An observer based estimation of cantilever
deflection is compared to the cantilever deflection and the resulting
innovation is used to detect when the cantilever loses interaction. The
loss of interaction is determined when the innovation is outside of
and/or below a threshold level.