Real-Time Traffic Management Using Cyber-Physical Systems and Machine Learning Techniques