a.i. diagnosis