LADRI: LeArning-based Dynamic Risk Indicator in Automated Driving System