22. A non-transitory computer-readable storage medium storing a computer program product including computer instructions adapted to instantiate a node of a hierarchical temporal memory network on a computer, the node between a parent node and a child node in the hierarchical temporal memory network, the computer instructions when executed cause a processor in the computer to: generate and store information about spatial co-occurrences of first input patterns received at the node based on spatial similarity of the first input patterns in a learning stage, at least part of the first input patterns received from the child node; generating information about second input patterns received in an inference stage subsequent to the learning stage corresponding to the spatial co-occurrences based on the spatial co-occurrences information, at least part of the second input patterns received from the child node; generate and store temporal statistics data indicating whether the second input patterns include a spatial co-occurrence based on spatial co-occurrences preceding the spatial co-occurrence in the second input patterns and temporal relationships of the spatial co-occurrences learned in the learning stage; generate a first bottom-up message representing information that the second input patterns received at the node in the inference stage correspond to the learned spatial co-occurrences based on the temporal statistics data and the spatial co-occurrences information; and send the bottom-up message to the parent node.
22. A non-transitory computer-readable storage medium storing a computer program product including computer instructions adapted to instantiate a node of a hierarchical temporal memory network on a computer, the node between a parent node and a child node in the hierarchical temporal memory network, the computer instructions when executed cause a processor in the computer to: generate and store information about spatial co-occurrences of first input patterns received at the node based on spatial similarity of the first input patterns in a learning stage, at least part of the first input patterns received from the child node; generating information about second input patterns received in an inference stage subsequent to the learning stage corresponding to the spatial co-occurrences based on the spatial co-occurrences information, at least part of the second input patterns received from the child node; generate and store temporal statistics data indicating whether the second input patterns include a spatial co-occurrence based on spatial co-occurrences preceding the spatial co-occurrence in the second input patterns and temporal relationships of the spatial co-occurrences learned in the learning stage; generate a first bottom-up message representing information that the second input patterns received at the node in the inference stage correspond to the learned spatial co-occurrences based on the temporal statistics data and the spatial co-occurrences information; and send the bottom-up message to the parent node. 24. The computer-readable storage medium of claim 22 , wherein the temporal statistics data is computed based on whether a preceding spatial co-occurrence in the second input patterns is indicative of a transition between groupings of the spatial co-occurrences.