Learning-based VANET Communication and Security Techniques