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