Detecting Social Interaction in a Smart Environment