Learning and Selection of Dynamic Bayesian Networks for Non-Stationary Processes in Real Time