A Novel Privacy Preserving Scheme for Smart Grid-Based Home Area Networks