AdSense uses a variety of signals to determine whether a user has clicked on a ad. These signals include the user's IP address, time of day, and browser type. If any of these signals are not consistent with what was expected, AdSense can determine that the user may have clicked on an invalid ad.