Text this: Empirical state space modelling with application in online diagnosis of multivariate non-linear dynamic systems