Accurate energy consumption prediction is essential for improving the driving experience. In the urban road scenario, we discussed the influencing factors of energy consumption and divided the modes from various perspectives. The differences in energy consumption characteristics and distribution laws for electric vehicles using the IDM and CACC car-following models under different traffic flows are compared. An energy consumption prediction framework based on the LightGBM model is proposed. According to the study, driving range, acceleration, accelerating time, decelerating time and cruising time all significantly impact the overall energy consumption of electric vehicles. There are apparent differences in energy consumption characteristics...