Apparently they use it to calculate recidivism. Then that report is used by the judge to calculate the sentence. It's already being used in some places in the US
As far as I know, the algorithms used for these are in fact rule-based at this point, not neural networks. Which actually is not much better, since these systems are still propietary and black box. This is of course horrible for a functioning sense of justice, since the decisions made are now (partly) dependent on opaque decisions made by an algorithm of a company without any arguments you can contest or inspect. Furthermore, it has been shown that these algorithms frequently are racially biased in various ways.