Risk analysis in complex systems: intelligent systems in finance