In the future, convicts entering prisons would be fitted with a small microchip in their brain. This chip would monitor the individuals behavior, as well as the chemical reactions in his body. Whenever the inmate was contemplating violence, or about to do something that was against regulations, he would receive a warning message in his mind that would be visible to him. If he continued with a crime, he would receive a painful shock. The pain would increase in increments until he fell back in line. At that point, the chip would reset and tell the pain to stop, and he would go about his business. If he continued with breaking that rule, the agony would eventually kill him.
The microchip would remain in the convicts brain until he was released from prison. Those who are released on parole would have the chip removed after their time was finished. People who have served their time but were still considered a potential danger to society (pedophiles, rapists, potential repeat murderers,) would remain with the chip throughout their lives. The chip would activate whenever these people felt the "urges" that caused their behavior and serve as a deterrent to future crime.
How can the American government integrate this program in a democratic nation and avoid questions of human rights violations? Does the perception of civil liberties need to change in order for this to happen? How can it convince the public that it is in their best interests?