Text this: High-viscosity biphasic flow characterization in a pipeline: application to flow pattern classification and leak detection