Traffic congestion is a serious issue that requires data-driven solutions and intelligent technologies. This study proposes a congestion detection system and alternative route recommendation based on a combination of Decision Tree (DT) algorithms optimized using Bayesian Optimization (BO) for classifying traffic conditions, and Ant Colony Optimization (ACO) for determining optimal routes. Input…