1. An apparatus comprising: a sensing circuit configured to sense a touch sensor panel and thereby capture a touch image; and one or more processors coupled to the sensing circuit capable of: identifying one or more contact patches from the touch image; and for a respective contact patch of the one or more contact patches: determining a confidence value of the respective contact patch based on an area of the respective contact patch, a signal density of the respective contact patch, and a distance between a location of the respective contact patch and an edge of the touch sensor panel closest to the respective contact patch, wherein the confidence value is indicative of a likelihood that the respective contact patch corresponds to a liquid contacting the touch sensor panel; in accordance with a determination that the confidence value of the respective contact patch meets a threshold, processing the touch image excluding the respective contact patch to determine one or more touch inputs; and in accordance with a determination that the confidence value of the respective contact patch fails to meet the threshold, processing the touch image including the respective contact patch to determine the one or more touch inputs.