How to carry out an AI diagnostic?