In my current implementation of HTM there are no segments within cells. That’s because I don’t know how segments contribute to the model.
Each cell has temporal connections to other cells. The Temporal Pooler checks for active columns and active cells within active columns. For each active cell it checks which temporal connections are connected (permanence > threshold) and if they are, it sets the cell it is connected to to a predictive state.
I don’t think this is the right way. Just a single temporal connection from a currently active cell to another cell shouldn’t be enough to make that cell go in a predictive state. How many temporal connection to a cell from currently active cells should be connected in order for it to become predictive?