smart diagnosis