Researchers used a hierarchical model in which sequential actions are inferred from sensory evidence and goals. The model reproduced neural patterns reported in the frontal cortex of primates, where multiple parts of an action sequence can be represented simultaneously in partly separate patterns of activity.

The model also produced nearly separate memory-related activity patterns and reused those patterns when sequences were carried out or considered in forward and backward order. The framework links planning, working memory and preparation for movement, while making predictions about how uncertainty may affect sequence processing.