Machine learning-based predictive model for thermal comfort and energy optimization in smart buildings