(September 2019 update): untangling_sequences is now an experiment in configuring an HTM model closer to the biology of Layer 4. It implements 3 classes of L4 excitatory cells with interconnections, as well as the apical feedback from L2/3, as specified in figures 8 and 9 of Izhikevich & Edelman 2008 Large-scale model of mammalian thalamocortical systems SI:
When run with the biologically plausible 100 minicolumns per cortical column, the characteristic model behaviour of distinguishing sensorimotor inputs from temporal sequences is still clear: