A Smart Building is any structure that uses automated processes to automatically control the building’s operations including heating, ventilation, air conditioning, lighting, blinds, security and other systems, maximizing user comfort while minimizing energy consumption. Using a deep learning and behavioral analysis algorithm, the building adapts to the needs of users by creating rules and scenarios without programming interventions, but simply by analyzing the day.