A future version of AirPods could perform its ear detection using pressure built up within the ear canal, allowing it to be more selective on when it turns on and off and reducing the chance of accidental activation when placed on a table or another surface.
Source:: Apple Insider