1. A node in a computer-implemented Hierarchical Temporal Memory network for generating an output representing an object or a state of an object corresponding to input patterns, the node comprising: a temporal pooler configured to generate temporal statistics data representing a higher-order Markov chain of temporal sequences of the spatial co-occurrences based on temporal relationships of the spatial co-occurrences of the first input patterns in the training stage; and an inference engine configured to generate an output based on the temporal statistics data responsive to receiving a sequence of spatial co-occurrence information about second input patterns in an inference stage subsequent to the training stage, the output representing probabilities of the sequence of the spatial co-occurrence information corresponding to temporal sequences of the temporal statistics data.