Learning Causal States Under Partial Observability and Perturbation