A Prototype Learning Framework using EMD: Application to Complex Scenes Analysis