1. A computer-implemented method for controlling operations of a system in an environment using temporal patterns in data sequences, comprising: constructing a hierarchical tree of nodes, the hierarchical tree of nodes including a root node, a plurality of intermediate nodes, and a plurality of leaf nodes, and in which the root node has a plurality of child nodes, each intermediate node has a parent node and a plurality of child nodes, and each leaf node has a parent node; associating each node with a composite hidden Markov model, in which each composite hidden Markov model associated with the root node or an intermediate node has one independent path model corresponding to each child node of the node, and in which each composite hidden Markov model associated with a leaf node has a plurality of independent final path models; acquiring a set of training data sequences representing known temporal patterns of motion of physical objects in an environment; training the composite hidden Markov models using the set of training data sequences, in which the training further comprises: training the composite hidden Markov model associated with the root node with the set of training data sequences; training the composite hidden Markov models associated with each intermediate node with intermediate subsets of the set of training data sequences, each intermediate subset of the set of training data sequences including a training data sequence generated by the corresponding independent path model of the parent node of the intermediate node; and training the composite hidden Markov model associated with each leaf node with leaf subsets of the set of training data sequences to produce a plurality of trained final path models, each leaf subset of the set of training data sequences including a training data sequence generated by the corresponding independent path model of the parent node of the leaf node; constructing a single final composite hidden Markov model, in which the single final composite hidden Markov model has one independent path model for each trained final path model; acquiring unknown data sequences representing unknown temporal patterns of motion of physical objects in the environment; employing the single final composite hidden Markov model to determine known temporal patterns in the unknown data sequences; and controlling operations of a system in the environment using the determined known temporal patterns.