AI-Powered Workplace Safety: From Risk Detection To Accident Prevention