An intelligent intrusion detection system for external communications in autonomous vehicles