Biogas from human waste has the potential to generate electricity for millions of homes while improving health and protecting the environment, a United Nations University institute said on Tuesday.