To characterize the dynamic interaction properties of heterogeneous traffic flow in the complex human–vehicle–road environment and to enhance the safety and efficiency of connected autonomous vehicles (CAVs), this study analyzes the self-driven particle characteristics and safety interaction behavior of CAVs based on molecular interaction potential. The molecular dynamics of potential interaction functions are employed to establish a dynamic quantization model for car-following (CF) safety potential, referred to as the molecular force field quantization model. To calibrate the model parameters, the Artificial Bee Colony Algorithm and the highD dataset are utilized, subsequently validating the reasonableness and effectiveness of the molecular dynamics model for vehicle tracking. The simulation results demonstrate that the proposed model can more accurately fit actual CF data, significantly improving vehicle travel safety and efficiency. Moreover, the profile of vehicle acceleration shows a lower mean absolute error and root mean square error compared to actual data, indicating that the model provides superior anti-interference fluctuation resistance and stability in CF scenarios. Overall, the proposed model effectively captures the microscopic CF behavior and vehicle–vehicle safety interactions, offering a theoretical foundation for further research into vehicle-following dynamics.