A prosthetic system may use a decoder to predict an intended action, such as a
reach, from processed signals generated from measured neural activity. The decoder
may included a cognitive state machine, which transitions between cognitive states
based on transition rules.