Rig up a conductive section on the seat that is electrically isolated from the rest of the bike. Then hook up a 15,000volt powersupply that completes the circuit when someone sits on the bike and grabs the handlebars.
The only downside here is forgetting to disarm the system before you get on the bike. That's the main reason I've never done it.