Shyamalan conceived the idea for Split years before he actually wrote the screenplay.
The character of Kevin had been in one of the early drafts of Shyamalan's Unbreakable, but he had pulled the character out, stating there were balancing issue at that time.