Capturing human behaviour through wearables by computational analysis of social dynamics