A Framework to Capture Dynamic Traffic Trends from Historical Sensor Data