risk management in ai inspection