AI framework for assessing risk