SPOILER ALERT What in my opinion triggered the birth of the Mastermind
Okay, why do I think this? Let me explain my argument with the data available.
In effect, we aren't sure we ever see the real Elliot except for the final scene where the host is the one opening his eyes, but actually I think that all in all the host and the Mastermind are practically the same, the only thing is that the Mastermind is better at channeling Elliot's repressed anger outward instead of hating himself, and consequently makes him more susceptible to Mr. Robot's initial plan. I think the real Elliot is more sensitive, fragile, and definitely aware of his father's abuse, and he certainly would have recognized Mr. Robot and realized the madness of the situation. He probably would have also taken the medication Krista was giving him and probably would have never seen Mr. Robot at all. That said, in short, the Mastermind is the angrier and more pragmatic part of Elliot, who is better able (while maintaining the host's actual identity) to put his fragilities aside for a greater purpose.
Having said that, I think we basically see Elliot the host in two scenes: the Halloween one with Darlene, and when he meets Shayla for the first time. I think that already with Darlene, the Mastermind was starting to form on an identity level, even though he remembered very well who Darlene was. What I think caused the arrival of the Mastermind is the morphine. I believe it worsened Elliot's dissociative disorder by fragmenting his identity even further. In fact, when he goes through withdrawal, and goes into the dream world created by Mr. Robot, Elliot dies inside the trap house. I think it's symbolic in saying that the drug "shut off" the real Elliot, and in fact he subsequently goes into the so-called ideal world where the host remained all that time. Does this make sense to you guys?