A research team airs out the messy truth about AI in medicine — and gives hospitals a guide to fix it.