Inter-time segment information sharing for non-homogeneous dynamic Bayesian networks