EM algorithm for partially known labels