Minority Report (2002)

"In the future, criminals are caught before the crimes they commit, but one of the officers in the special unit is accused of one such crime and sets out to prove his innocence."

Directed by Steven Spielberg

Writing credits: 
Philip K. Dick 
Scott Frank
Jon Cohen