The AI could also consider other factors that may or not be relevant: the judge or jury, the time of year, weather, characteristics of the defendant, etc.
Absolutely.