Text this: Multi-state analysis functional models using Bayesian networks