In the anime Psycho-Pass plot takes place in the future(2113) and there are devices that ckecks mental state, personality of all citizens and assesses the probability that the citizen will commit a criminal act. It was not ideal result either-the system also got corrupt/bad.
Every dystopian world in the future, has governments or a corporation who monitor citizens "for their own safety"