The rapid expansion of urban areas and the increasing number of vehicles on the road have resulted in accidents, traffic congestion, economic repercussions, environmental deterioration, and excessive fuel consumption. A dependable traffic management system is necessary to anticipate and regulate urban traffic patterns. Traffic forecast aids in the prevention of traffic issues. Urban traffic predictions often utilise historical and current traffic flow data to forecast road conditions. This article presents a traffic flow prediction system that utilises the Internet of Things (IoT), machine learning, and feature selection. Internet of Things (IoT) devices located on highways or within cars gather sensor data in real-time. The input data set comprises both real-time Internet of Things (IoT) data and historical traffic statistics. The input data is stored in a centralized cloud. The data is subjected to preprocessing in order to eliminate any unwanted interference and identify any exceptional values. The accuracy and root mean square error are contingent upon the process of feature selection. Particle swarm optimization identifies and extracts crucial features from input data. The classification model is constructed using K Nearest Neighbor, Multi layer Perceptron, and Bayes network approaches. The UCI traffic data is used for conducting experiments. The dataset has 47 attributes and 2102 occurrences. The accuracy of traffic flow prediction using PSO KNN is 96 %. The PSO KNN algorithm achieved a Mean Square Error (MSE) of 0.00289 and a Root Mean Square Error (RMSE) of 0.0595.
Read full abstract