A control mechanism along with an AI driven solution for safe autonomous driving in roundabouts