On-board monitoring system for road traffic safety analysis