The UK is considering chemical castration and microchip implantation:
Strategists think the injections – effectively the “chemical castration” of sexual predators to suppress their urges – would help prevent attacks . . .
. . . Other ideas include installing microchips in the mentally ill to monitor their behaviour and sending text messages to parents to warn them a paedophile is at large in their area.