One hot encoding fsm dating