Classification of buildings by occupancy