isLeaking based on line fitting