COSAR : hybrid reasoning for context-aware activity recognition