This paper has been studied traffic accident using intelligence prediction algorithm. and wish to prevent accident by guiding in 2 km ahead the accident that occur in fog section and a snow-covered road, sudden roadworks and sharp curve section, etc and removing fog and snow automatically using the ubiquitous and intelligence technique. If we can predict of traffic accident, we can prevent the many traffic accident. In this paper, we present neural network approach for prediction of traffic accident. Computer simulation results prove that reducing the average vehicle waiting time which proposed considering prevention of traffic algorithm for optimal traffic cycle is better than fixed signal method which dose not using prevention of traffic algorithm.