AI that determines risk of death helps save lives in hospital trial