The 2002 movie Minority Report told the story of a future in which law enforcement could tell who would commit crimes in the future.  The police then arrested those people before they could commit the crimes.