In reply to Sean.

Consider computing the distance between the data sequence and the "target" models. Let N=6.
If the target sequences are
S1 = {0,0,0,1,1,1}
S2 = {0,1,0,1,0,1}
then for a random sequence like S={0,0,1,0,0,1} you can compute
d1 = dist(S, S1) = 1.732
d2 = dist(S, S2) = 2.236
and conclude that the closest target sequence to S is S1.

If you don't know the target sequences, but want to derive them from data, you can use clustering.