Maybe your cat has noticed you shuffling your feet strangely on the carpet before the random shocks happen?