"认为" is much more sure than "以为". means "I belive, I feel" .
以为 contains meaning of "I guess" but actually not happen or not true.
我认为他是个伟大的科学家。He is a great scientist indeed.
我以为他是个伟大的科学家。 I think he is a great scientist at first, but now I don't think so!