Brain states, state transitions, and input stimuli. Stimuli were categorized into 20 bins based on circle distance and movement direction: A1-A10 for approach, R1-R10 for retreat (1 indicates circles are farthest and 10 indicates circle collision). (A) Table entries indicate the probability of being in a state given the input stimulus category. (B) Table entries indicate the probability of a state transition given the input stimulus category. In both tables, cells highlighted in red indicate states/transitions significantly associated with the corresponding stimulus category (p < 0.05, corrected for multiple comparisons). The color scale indicates probability.