With the development of the automobile industry, artificial intelligence, big data, 5G, and other technologies, the Internet of Vehicles (IoV) industry has entered a stage of rapid development. In this paper, a pollutant diffusion model based on an artificial neural network is designed in the context of a vehicle network. The application of artificial neural networks in haze prediction is studied. This paper first analyzes the causes and influencing factors of haze and selects the most representative and relatively large meteorological factors from temperature, wind, relative humidity, and several pollutant factors. Through training and simulation, a haze prediction model in the Beijing, Tianjin, and Hebei regions of China is established. Finally, according to the collected meteorological data, the pollutant diffusion model is established. The model is deduced by a standard mathematical formula, which makes the prediction results more accurate and rigorous, and the main conclusions and feasible scientific suggestions are obtained. The simulation results show that the method is effective. By strengthening the service system of the IoV, meteorological services can be more intelligent, and the information acquisition and service ability of the vehicle network can be effectively improved.