AI for Flow Pattern Identification: One-dimensional Model