A semi-supervised learning approach to study the energy consumption in smart buildings