In this paper, a traffic flow criterion is established which is based on extracting the features of the traffic flow and dividing its state. Combined with spatial and temporal dimensions, a new method is proposed to judge the congestion level of the current road according to the regional density and the time occupancy as the features of the traffic flow state. The simulation shows that this method has better accuracy and objectivity.