Data analytics for occupancy pattern learning to reduce the energy consumption of HVAC systems in office buildings