REAM: A Framework for Resource Efficient Adaptive Monitoring of Community Spaces