AI-driven optimization of energy consumption and demand response in smart homes | Synapse