This is still unclear. I can think of several possibilities:
1. Genos is the AI and his memories is fake. ( I don't think so though )
2. Dr. Kuseno is the mastermind stole Dr.Bofoi data and making the machine god series and just faking his death.
3. Drive Knight or his creator is the true master...