The anime Psycho Pass has mapped all this out in full, better watch that.
In short mood detection is ultra refined and remote, via cctv type installations. Probable criminal activity is intercepted before action is taken and pre-criminals treated for their mental health.