Pattern identification and analysis in urban flows