In this paper, we present the research behind the initiative started in Spanish harbours to control water quality degradation due to accidental pollution. This management system is already operationally running in the Barcelona harbour (NW and their inherent risk of accident but also Mediterranean Sea).