Accurate and resource-aware classification based on measurement data