Sounds like the movie “Minority Report.”
This whole idea may be as effective as vice enforcement, which isn’t.