how to implement ai inspection