How is risk quantified and measured by the AI?