Finite and infinite state confusion models