Deep learning model for home automation and energy reduction in a smart home environment platform