Advancing ambient intelligence in healthcare : granularity, efficiency, and privacy