I would like to assess driving styles, related to safety. For example I know about smart-phone applications, which assess driving style based on speed, acceleration, deceleration, etc. But what are the algorithms? How are the thresholds set in relation to safety? I would like to apply the approaches on vehicle fleet data. Thank you for your help.