how ai-driven inspection works