Towards an Intelligent System for Risk Prevention and Management