Models and algorithms of adaptive method to detect filtration flow during horizontal well testing