**Frame challenge - It can't be done**

We can't even predict the weather 1 year ahead let alone a crime that is going to be committed in 20 years. Your AI is effectively an omniscient god.

If it predicts that someone will commit a horrendous crime when they are 20 years old, there are two things that can happen:

1. The person *does* commit the crime. In which case the prediction was correct but no-one was able to stop it. This makes the AI worthless for stopping crimes.

2. The person is locked up for life and doesn't commit the crime, in which case the AI incorrectly predicted the future.

Basically your AI has to correctly simulate everything that happens in the nearby universe for decades ahead but also include everything that could change in the meantime. It has to predict the "free will" of every single human from now until then plus attacks by animals, future inventions, cosmic events such as Earth being destroyed.

If this AI could do this, it is effectively a universe in miniature. There are all the paradoxes of time travel here plus a few new ones.