Who owns an AI-generated invention?

Who owns an AI-generated invention?
Again about AI and Copyright: who owns an AI generated invention? This seems to be quite the topic as ethics and moral rights are kicking in the AI research field, so what about creativity?