Pattern recognition algorithm for analysis of chugging direct contact condensation