Heating, ventilation, and air conditioning (HVAC) systems account for over 50% of the energy consumed by commercial buildings. While "smart" HVAC technologies, such as learning thermostats, are widely available for residential use, commercial buildings typically rely on legacy systems that are dicult to upgrade and require facility managers to manually set HVAC schedules. In this paper, we propose a novel Machine Learning-driven technique to automatically learn custom occupancy-based HVAC schedules for buildings across a large campus. While our technique is compatible with any occupancy sensor, we leverage the existing wireless networking infrastructure that is omnipresent across any modern campus. We analyze building WiFi activity, specically from smartphones, to infer detailed spatial occupancy patterns in each building, and present an algorithm that learns from these patterns to derive a custom HVAC schedule. Our approach is adaptive and dynamically adjusts its schedules as occupancy patterns change, much like a learning thermostat. To evaluate our techniques, we analyze data from several thousand WiFi access points deployed in 112 oce buildings on a university campus. Our analysis reveals signicant dierences in occupancy patterns across and within buildings, motivating the need for our adaptive learning-based approach. Compared to the current static approach, our results demonstrate that learning HVAC schedules from mobile WiFi activity across the campus can yield a 37% reduction in waste time, a measure of energy savings, and a 3% reduction in miss time, a measure of user comfort. ACM Reference format: