This sounds almost exactly like the plot of the anime "Psycho-Pass".
The story takes place in an authoritarian future dystopia, where omnipresent public sensors continuously scan the Psycho-Pass of every citizen in range. The sensors measure mental state, personality, and the probability that the citizen will commit crimes, alerting authorities when someone exceeds accepted norms. To enforce order, the officers of the Public Safety Bureau carry hand weapons called Dominators.
The weapons themselves only activate if the intended target has a sufficiently high "crime coefficient", as dictated by a central AI. It's pretty interesting (if you can tolerate a pretty high level of graphic animated violence).
The story takes place in an authoritarian future dystopia, where omnipresent public sensors continuously scan the Psycho-Pass of every citizen in range. The sensors measure mental state, personality, and the probability that the citizen will commit crimes, alerting authorities when someone exceeds accepted norms. To enforce order, the officers of the Public Safety Bureau carry hand weapons called Dominators.
The weapons themselves only activate if the intended target has a sufficiently high "crime coefficient", as dictated by a central AI. It's pretty interesting (if you can tolerate a pretty high level of graphic animated violence).
https://en.wikipedia.org/wiki/Psycho-Pass