Resource-Efficient Vehicle-to-Cloud Communications Leveraging Machine Learning