In an Intelligent Connected Vehicle(ICV),improving the effectiveness of driving data is crucial for improving vehicle safety.Only accurate and reliable driving data can provide a reliable basis and support for vehicle safety.Compared with the conventional anomaly analysis,the analysis of ICV data validity is accompanied by various data anomalies(e.g.,sensor anomalies,driving behavior,and malicious tampering).Researchers of intelligent networked vehicles are attempting to identify a method to combine the vehicle's data characteristics,driving style,and traffic-flow characteristics to provide an effective data-anomaly detection method.For an ICV system,a TE-PSO-SVM data-validity detection algorithm based on particle swarm optimization is designed by combining driving style and traffic-flow theory to effectively detect driving data.First,the driving-style recognition coefficient Rad is defined and the driving-style quantitative model is designed.Second,a traffic-flow model is established,which combines the driving style and traffic-flow theory with vehicle-state data to predict vehicle speed via the Long Short-Term Memory(LSTM)network.Finally,the TE-PSO-SVM algorithm is used to detect the validity of the data.Owing to the diversity of ICV data,the detection accuracy of a single model is limited in scenarios where multiple types of anomalies coexist.To fully utilize the advantages of multiple models,a model pool is constructed,and a Reinforcement Learning-Based Model Selection(RLBMS)algorithm is proposed.Experiments on real dataset highD show that the F1 value of the TE-PSO-SVM algorithm model is 8.1 percentage points higher than that of the conventional SVM model under different noise environments.Compared with the result of the algorithm with the highest detection rate in the model pool,the F1 value of the RLBMS algorithm model in different noise environments is approximately 1.7 percentage points higher on average,which further improves the accuracy of data-validity detection.