Enhancing AV traffic safety through pedestrian detection, classification and communication