How to decide which cells are in predictive state


I have a question when i watch Episode 11 in the Youtube,TM decide which column to activate,When the cell in predictive state, it will becomes 1, but how to determine which cells are in the predictive state?


NuPIC implements this step by determining which cells in the minicolumn have an active distal segment. See the temporal memory algorithm, starting with this comment.