When it comes to ethics, artificial intelligence is just intelligence, not a person with rights and responsibilities.
It's owner is the person in which custody these machines live in and they should be fully responsible for actions of their machines.
Even if they act human, they are just machines owned by someone and they should be treated as such.