Analysis and prediction of emotions using human-robot and driver-vehicle interactions