These false confessions would be not be so easy for the police to obtain if more people were educated on what their rights are.
People don't realise that they do not have to answer the police questions if they do not care to. First they should ask if they are being charged with a crime at that time. If not, they can get up and leave right there and then.
If they are being charged with a crime, they still have the right to have a lawyer present. Once this request is made the interrogation should come to an end right there.
Now if the police do not stop the questioning right there, then the person being questioned, should not say another word except for requesting that they want to leave or want a lawyer present. If they are put into a position like this, as soon as possible, they should let their lawyer know what took place.
It's surprising how many people do not know there legal rights when it comes to police interrogations.
Stay strong & don't let them trample on your rights!