A context-aware system in Internet of Things using modular Bayesian networks. (May 2017)