ANALYSIS AND DETECTION OF POTENTIALLY HAZARDOUS DRIVING SITUATIONS