Text this: Energy-based approach to the assessment of traffic flow