Functional Safety of AI-based Self-learning systems