\documentclass[11pt,twoside]{article}\makeatletter

\IfFileExists{xcolor.sty}%
  {\RequirePackage{xcolor}}%
  {\RequirePackage{color}}
\usepackage{colortbl}
\usepackage{wrapfig}
\usepackage{ifxetex}
\ifxetex
  \usepackage{fontspec}
  \usepackage{xunicode}
  \catcode`⃥=\active \def⃥{\textbackslash}
  \catcode`❴=\active \def❴{\{}
  \catcode`❵=\active \def❵{\}}
  \def\textJapanese{\fontspec{Noto Sans CJK JP}}
  \def\textChinese{\fontspec{Noto Sans CJK SC}}
  \def\textKorean{\fontspec{Noto Sans CJK KR}}
  \setmonofont{DejaVu Sans Mono}
  
\else
  \IfFileExists{utf8x.def}%
   {\usepackage[utf8x]{inputenc}
      \PrerenderUnicode{–}
    }%
   {\usepackage[utf8]{inputenc}}
  \usepackage[english]{babel}
  \usepackage[T1]{fontenc}
  \usepackage{float}
  \usepackage[]{ucs}
  \uc@dclc{8421}{default}{\textbackslash }
  \uc@dclc{10100}{default}{\{}
  \uc@dclc{10101}{default}{\}}
  \uc@dclc{8491}{default}{\AA{}}
  \uc@dclc{8239}{default}{\,}
  \uc@dclc{20154}{default}{ }
  \uc@dclc{10148}{default}{>}
  \def\textschwa{\rotatebox{-90}{e}}
  \def\textJapanese{}
  \def\textChinese{}
  \IfFileExists{tipa.sty}{\usepackage{tipa}}{}
\fi
\def\exampleFont{\ttfamily\small}
\DeclareTextSymbol{\textpi}{OML}{25}
\usepackage{relsize}
\RequirePackage{array}
\def\@testpach{\@chclass
 \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
  \ifnum \@lastchclass=7 5 \else
   \ifnum \@lastchclass=8 \tw@ \else
    \ifnum \@lastchclass=9 \thr@@
   \else \z@
   \ifnum \@lastchclass = 10 \else
   \edef\@nextchar{\expandafter\string\@nextchar}%
   \@chnum
   \if \@nextchar c\z@ \else
    \if \@nextchar l\@ne \else
     \if \@nextchar r\tw@ \else
   \z@ \@chclass
   \if\@nextchar |\@ne \else
    \if \@nextchar !6 \else
     \if \@nextchar @7 \else
      \if \@nextchar (8 \else
       \if \@nextchar )9 \else
  10
  \@chnum
  \if \@nextchar m\thr@@\else
   \if \@nextchar p4 \else
    \if \@nextchar b5 \else
   \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
   \fi \fi  \fi  \fi  \fi  \fi  \fi \fi \fi \fi \fi \fi}
\gdef\arraybackslash{\let\\=\@arraycr}
\def\@textsubscript#1{{\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}
\def\Panel#1#2#3#4{\multicolumn{#3}{){\columncolor{#2}}#4}{#1}}
\def\abbr{}
\def\corr{}
\def\expan{}
\def\gap{}
\def\orig{}
\def\reg{}
\def\ref{}
\def\sic{}
\def\persName{}\def\name{}
\def\placeName{}
\def\orgName{}
\def\textcal#1{{\fontspec{Lucida Calligraphy}#1}}
\def\textgothic#1{{\fontspec{Lucida Blackletter}#1}}
\def\textlarge#1{{\large #1}}
\def\textoverbar#1{\ensuremath{\overline{#1}}}
\def\textquoted#1{‘#1’}
\def\textsmall#1{{\small #1}}
\def\textsubscript#1{\@textsubscript{\selectfont#1}}
\def\textxi{\ensuremath{\xi}}
\def\titlem{\itshape}
\newenvironment{biblfree}{}{\ifvmode\par\fi }
\newenvironment{bibl}{}{}
\newenvironment{byline}{\vskip6pt\itshape\fontsize{16pt}{18pt}\selectfont}{\par }
\newenvironment{citbibl}{}{\ifvmode\par\fi }
\newenvironment{docAuthor}{\ifvmode\vskip4pt\fontsize{16pt}{18pt}\selectfont\fi\itshape}{\ifvmode\par\fi }
\newenvironment{docDate}{}{\ifvmode\par\fi }
\newenvironment{docImprint}{\vskip 6pt}{\ifvmode\par\fi }
\newenvironment{docTitle}{\vskip6pt\bfseries\fontsize{22pt}{25pt}\selectfont}{\par }
\newenvironment{msHead}{\vskip 6pt}{\par}
\newenvironment{msItem}{\vskip 6pt}{\par}
\newenvironment{rubric}{}{}
\newenvironment{titlePart}{}{\par }

\newcolumntype{L}[1]{){\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{){\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{){\raggedleft\arraybackslash}p{#1}}
\newcolumntype{P}[1]{){\arraybackslash}p{#1}}
\newcolumntype{B}[1]{){\arraybackslash}b{#1}}
\newcolumntype{M}[1]{){\arraybackslash}m{#1}}
\definecolor{label}{gray}{0.75}
\def\unusedattribute#1{\sout{\textcolor{label}{#1}}}
\DeclareRobustCommand*{\xref}{\hyper@normalise\xref@}
\def\xref@#1#2{\hyper@linkurl{#2}{#1}}
\begingroup
\catcode`\_=\active
\gdef_#1{\ensuremath{\sb{\mathrm{#1}}}}
\endgroup
\mathcode`\_=\string"8000
\catcode`\_=12\relax

\usepackage[a4paper,twoside,lmargin=1in,rmargin=1in,tmargin=1in,bmargin=1in,marginparwidth=0.75in]{geometry}
\usepackage{framed}

\definecolor{shadecolor}{gray}{0.95}
\usepackage{longtable}
\usepackage[normalem]{ulem}
\usepackage{fancyvrb}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{marginnote}

\renewcommand{\@cite}[1]{#1}


\renewcommand*{\marginfont}{\itshape\footnotesize}

\def\Gin@extensions{.pdf,.png,.jpg,.mps,.tif}

  \pagestyle{fancy}

\usepackage[pdftitle={Artificial Intelligence Assisted Consumer Privacy and Electrical Energy Management},
 pdfauthor={}]{hyperref}
\hyperbaseurl{}

	 \paperwidth210mm
	 \paperheight297mm
              
\def\@pnumwidth{1.55em}
\def\@tocrmarg {2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{3}
\clubpenalty=8000
\emergencystretch 3em
\hbadness=4000
\hyphenpenalty=400
\pretolerance=750
\tolerance=2000
\vbadness=4000
\widowpenalty=10000

\renewcommand\section{\@startsection {section}{1}{\z@}%
     {-1.75ex \@plus -0.5ex \@minus -.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\Large\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
     {-1.75ex\@plus -0.5ex \@minus- .2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\Large}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
     {-1.5ex\@plus -0.35ex \@minus -.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\large}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
     {-1ex \@plus-0.35ex \@minus -0.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\normalsize}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
     {1.5ex \@plus1ex \@minus .2ex}%
     {-1em}%
     {\reset@font\normalsize\bfseries}}


\def\l@section#1#2{\addpenalty{\@secpenalty} \addvspace{1.0em plus 1pt}
 \@tempdima 1.5em \begingroup
 \parindent \z@ \rightskip \@pnumwidth 
 \parfillskip -\@pnumwidth 
 \bfseries \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}\par
 \endgroup}
\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
\@ifundefined{c@section}{\newcounter{section}}{}
\@ifundefined{c@chapter}{\newcounter{chapter}}{}
\newif\if@mainmatter 
\@mainmattertrue
\def\chaptername{Chapter}
\def\frontmatter{%
  \pagenumbering{roman}
  \def\thechapter{\@roman\c@chapter}
  \def\theHchapter{\roman{chapter}}
  \def\thesection{\@roman\c@section}
  \def\theHsection{\roman{section}}
  \def\@chapapp{}%
}
\def\mainmatter{%
  \cleardoublepage
  \def\thechapter{\@arabic\c@chapter}
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \pagenumbering{arabic}
  \setcounter{secnumdepth}{6}
  \def\@chapapp{\chaptername}%
  \def\theHchapter{\arabic{chapter}}
  \def\thesection{\@arabic\c@section}
  \def\theHsection{\arabic{section}}
}
\def\backmatter{%
  \cleardoublepage
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \setcounter{secnumdepth}{2}
  \def\@chapapp{\appendixname}%
  \def\thechapter{\@Alph\c@chapter}
  \def\theHchapter{\Alph{chapter}}
  \appendix
}
\newenvironment{bibitemlist}[1]{%
   \list{\@biblabel{\@arabic\c@enumiv}}%
       {\settowidth\labelwidth{\@biblabel{#1}}%
        \leftmargin\labelwidth
        \advance\leftmargin\labelsep
        \@openbib@code
        \usecounter{enumiv}%
        \let\p@enumiv\@empty
        \renewcommand\theenumiv{\@arabic\c@enumiv}%
	}%
  \sloppy
  \clubpenalty4000
  \@clubpenalty \clubpenalty
  \widowpenalty4000%
  \sfcode`\.\@m}%
  {\def\@noitemerr
    {\@latex@warning{Empty `bibitemlist' environment}}%
    \endlist}

\def\tableofcontents{\section*{\contentsname}\@starttoc{toc}}
\parskip0pt
\parindent1em
\def\Panel#1#2#3#4{\multicolumn{#3}{){\columncolor{#2}}#4}{#1}}
\newenvironment{reflist}{%
  \begin{raggedright}\begin{list}{}
  {%
   \setlength{\topsep}{0pt}%
   \setlength{\rightmargin}{0.25in}%
   \setlength{\itemsep}{0pt}%
   \setlength{\itemindent}{0pt}%
   \setlength{\parskip}{0pt}%
   \setlength{\parsep}{2pt}%
   \def\makelabel##1{\itshape ##1}}%
  }
  {\end{list}\end{raggedright}}
\newenvironment{sansreflist}{%
  \begin{raggedright}\begin{list}{}
  {%
   \setlength{\topsep}{0pt}%
   \setlength{\rightmargin}{0.25in}%
   \setlength{\itemindent}{0pt}%
   \setlength{\parskip}{0pt}%
   \setlength{\itemsep}{0pt}%
   \setlength{\parsep}{2pt}%
   \def\makelabel##1{\upshape ##1}}%
  }
  {\end{list}\end{raggedright}}
\newenvironment{specHead}[2]%
 {\vspace{20pt}\hrule\vspace{10pt}%
  \phantomsection\label{#1}\markright{#2}%

  \pdfbookmark[2]{#2}{#1}%
  \hspace{-0.75in}{\bfseries\fontsize{16pt}{18pt}\selectfont#2}%
  }{}
      \def\TheFullDate{2020-01-15 (revised: 15 January 2020)}
\def\TheID{\makeatother }
\def\TheDate{2020-01-15}
\title{Artificial Intelligence Assisted Consumer Privacy and Electrical Energy Management}
\author{}\makeatletter 
\makeatletter
\newcommand*{\cleartoleftpage}{%
  \clearpage
    \if@twoside
    \ifodd\c@page
      \hbox{}\newpage
      \if@twocolumn
        \hbox{}\newpage
      \fi
    \fi
  \fi
}
\makeatother
\makeatletter
\thispagestyle{empty}
\markright{\@title}\markboth{\@title}{\@author}
\renewcommand\small{\@setfontsize\small{9pt}{11pt}\abovedisplayskip 8.5\p@ plus3\p@ minus4\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus2\p@
\belowdisplayshortskip 4\p@ plus2\p@ minus2\p@
\def\@listi{\leftmargin\leftmargini
               \topsep 2\p@ plus1\p@ minus1\p@
               \parsep 2\p@ plus\p@ minus\p@
               \itemsep 1pt}
}
\makeatother
\fvset{frame=single,numberblanklines=false,xleftmargin=5mm,xrightmargin=5mm}
\fancyhf{} 
\setlength{\headheight}{14pt}
\fancyhead[LE]{\bfseries\leftmark} 
\fancyhead[RO]{\bfseries\rightmark} 
\fancyfoot[RO]{}
\fancyfoot[CO]{\thepage}
\fancyfoot[LO]{\TheID}
\fancyfoot[LE]{}
\fancyfoot[CE]{\thepage}
\fancyfoot[RE]{\TheID}
\hypersetup{citebordercolor=0.75 0.75 0.75,linkbordercolor=0.75 0.75 0.75,urlbordercolor=0.75 0.75 0.75,bookmarksnumbered=true}
\fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}}

\date{}
\usepackage{authblk}

\providecommand{\keywords}[1]
{
\footnotesize
  \textbf{\textit{Index terms---}} #1
}

\usepackage{graphicx,xcolor}
\definecolor{GJBlue}{HTML}{273B81}
\definecolor{GJLightBlue}{HTML}{0A9DD9}
\definecolor{GJMediumGrey}{HTML}{6D6E70}
\definecolor{GJLightGrey}{HTML}{929497} 

\renewenvironment{abstract}{%
   \setlength{\parindent}{0pt}\raggedright
   \textcolor{GJMediumGrey}{\rule{\textwidth}{2pt}}
   \vskip16pt
   \textcolor{GJBlue}{\large\bfseries\abstractname\space}
}{%   
   \vskip8pt
   \textcolor{GJMediumGrey}{\rule{\textwidth}{2pt}}
   \vskip16pt
}

\usepackage[absolute,overlay]{textpos}

\makeatother 
      \usepackage{lineno}
      \linenumbers
      
\begin{document}

             \author[1]{Raziq  Yaqub}

             \author[2]{Sadiq  Ahmad}

             \affil[1]{  }

\renewcommand\Authands{ and }

\date{\small \em Received: 15 December 2019 Accepted: 4 January 2020 Published: 15 January 2020}

\maketitle


\begin{abstract}
        


Smart metering infrastructure brings unique benefits for Utility Companies as well as consumers, however, massive consumer data collected and transmitted by the smart meters have raised consumers? privacy concerns. This paper presents a novel solution that is based on Artificial Intelligence Agent that continuously computes the gap between ?Average Daily Demand? and ?Instantaneous Demand? of a consumer, and allows the Battery Banks to discharge just enough to fill the gaps and eliminate kinks in the energy usage graph to mask the energy usage. This novel approach offers several benefits, such as, it conceals the utility usage patterns and thus ensures privacy, eliminates excessive discharging and charging of batteries that lifts operational constraints of the batteries, employs scheduling that renders utility bill reduction as an add-on.

\end{abstract}


\keywords{AI, smart metering, privacy, scheduling, virtual power bank, adjusted-average daily demand.}

\begin{textblock*}{18cm}(1cm,1cm) % {block width} (coords) 
\textcolor{GJBlue}{\LARGE Global Journals \LaTeX\ JournalKaleidoscope\texttrademark}
\end{textblock*}

\begin{textblock*}{18cm}(1.4cm,1.5cm) % {block width} (coords) 
\textcolor{GJBlue}{\footnotesize \\ Artificial Intelligence formulated this projection for compatibility purposes from the original article published at Global Journals. However, this technology is currently in beta. \emph{Therefore, kindly ignore odd layouts, missed formulae, text, tables, or figures.}}
\end{textblock*}


\let\tabcellsep& 	 	 		 
\section[{Introduction}]{Introduction}\par
mart metering of electrical utilities is a promising technology. On the one hand, it enables consumers to manage the consumption efficiently, and on the other, the Utility Companies to manage the production competently \hyperref[b0]{[1]}. Though the technology is beneficial for both, the consumers have a major privacy concern \hyperref[b1]{[2,}\hyperref[b2]{3]}. It is because the massive data that flows from Smart Meter at consumer premises to the Utility Company \hyperref[b3]{[4]}\hyperref[b4]{[5]}\hyperref[b5]{[6]} corresponds to consumer's utility usage patterns and may reveal his privacy. For example, if the households are in the home or not, what times they are away; what appliances they use, and when, who has high-tag appliances, what times they watch TV, and even what TV channel they watch \hyperref[b6]{[7]}. Another type of privacy invasion can be with users of Plug-in Electric Vehicles (EV) where the charging data can be used to identify travel routines \hyperref[b7]{[8]}. The concern is even more serious for businesses, whose energy consumption patterns can disclose important business operation information to the competitors \hyperref[b8]{[9]}. Thus there is a need for a system that could mask consumption patterns, to assure consumer privacy.\par
Several methods have been proposed in the literature to provide security and privacy to Smart Meter users. For example, reference \hyperref[b1]{[2]} proposes a cryptography-based Time of Use protocols for preserving privacy. Though the encryption can provide data security, but not consumer privacy, as it encrypts the data, but cannot hide the energy consumption patterns. Reference \hyperref[b0]{[1]} proposes to add noise of special threshold to the data signal that moves from the consumer end to the Utility Company. The major drawback of this system is that the amount of noise and the inter symbol interference (ISI), depending upon medium, may result in a total loss of signal, i.e. loss of useful data. Reference \hyperref[b9]{[10]} uses a battery that sits in the middle of a consumer and the Utility Company. It draws energy from an Electric Utility Company at a constant rate and continuously feeds all the household loads at all times. Thus the battery masks all the real-time energy usage. Though the solution is promising, the drawback is that a battery always supplies the loads constantly. This requires a battery to be of quite a big capacity so that it could power a whole house at all times, which may be cost-prohibitive. The solution proposed in \hyperref[b10]{[11]} is vague, as it does not show (a) how to calculate the capacity of each load for each residential consumer, (b) the solution mandates customization to each residential consumer as it requires to calculate the capacity of each load at each home. Further, just scheduling, without knowing the utility company's peak rates and load factor cannot provide cost-saving in the energy bills. Thus the claims made are unrealistic.\par
Though Smart metering infrastructure brings unique benefits for Utility Companies as well as consumers, massive consumer data collected and transmitted by the smart meters have raised consumers' privacy concerns. This paper presents a novel solution that employs Artificial Intelligence Techniques to continuously compute the gap between "Average Daily Demand" and "Instantaneous Demand" of a consumer, and thus allows the Battery Banks to discharge just enough to fill the gaps and eliminate kinks in the energy usage graph, and thus to masks the energy usage. The accuracy of computing the Adjusted-average Daily Demand, holds a critical value in this approach. The higher the accuracy of Adjusted-average Daily Demand, the lesser the need for charging/discharging of the Battery Banks. To accomplish this, an Artificial Intelligence-based agent plays a vital role.\par
The approach not only overcomes the abovenoted shortcomings but also offers several benefits, such as, it conceals utility usage-patterns that ensures privacy, does not require higher capacity batteries and eliminates excessive charging/discharging of batteries that lifts the operational constraints of the batteries, employs scheduling that renders utility bill reduction as an add-on feature. Employs existing communication technologies such as e.g. 4G/5G, and Wi-Fi. In addition to the above-noted benefits, the proposed approach is economically as well technically viable as the installation of Battery Banks in residential, commercial, and industrial markets is becoming a norm due to the huge EV market, micro-grids, and home/community energy storage systems \hyperref[b11]{[12]}.\par
The rest of the paper is organized as follows. Section II presents the proposed solution, Section III presents simulation results, Section IV economic viability, and Section V concludes the work. 
\section[{II. Description of Proposed Solution}]{II. Description of Proposed Solution}\par
We propose an Artificial Intelligence assisted consumer privacy and energy management system. The schematic design of the proposed Artificial Intelligence Agent (AI-Agent) that is the brain of the whole architecture, is shown in figure \hyperref[fig_3]{1}. 
\section[{Figure 1: Design Schematic of AI-Agent}]{Figure 1: Design Schematic of AI-Agent}\par
The AI-Agent is a mini-computer, designed to achieve an explicit goal of "Consumer Privacy" and "Energy Management". The brain of the AI-Agent receives critical information through the environment, machine learning algorithm, and its knowledge base. It processes this information and makes intelligent decisions after any given sequence of percepts, and provides output. The Structure of Intelligent Agents can be viewed as the "System Architecture" and the "System Program". The system architecture consists of the following entities that an agent executes on, and is shown in figure \hyperref[fig_0]{2}.  As depicted in figure \hyperref[fig_1]{3}, the AI-Agent communicates and receives information from the Utility Server the forecasted load factor, and the complex tariff information for the next 24-hour on a daily basis through a Cloud. The Cloud network consists of a set of servers available to many users over the Internet. Utility companies are shifting to the cloud technology as it will Year 2020 ( )D © 2020 Global Journals\par
Artificial Intelligence Assisted Consumer Privacy and Electrical Energy Management save utility significant hardware and software purchasing costs. Also, it would provide the utility company to leverage data sharing and analysis. To address the Cybersecurity-related concerns such as unauthorized access to the cloud, the security policies are in place, or the data communication may be one way only, i.e. from the Cloud to AI-Agent. Though a two-way communication will have its numerous benefits. communicates and receives information from the Weather Server, it acquires forecasted weather information, such as temperature, humidity, rain, sun, etc. for the same 24 hours for the consumer's location. AI-Agent uses the real-time prevailing weather information in making smart decisions while scheduling the daily tasks, such as laundry, dishwashing, and setting the optimal values of various thermostats of water heater, air conditioner, refrigerator, etc., AI-Agent communicates and receives information from the Consumer's Smart and IP addressable Appliances that include home appliances such as, washer/dryer, dishwasher, boiler/water heater, air conditioner, refrigerator, etc., and other devices such as home security systems, and the user's calendar, etc.\par
to detect the user's presence at home and adjust thermostat levels for air conditioning, water heater, and refrigerator, etc. accordingly. AI-Agent receives information from the Graphical User Interface (GUI). Graphical Use Interface is integrated with AI-Agent. The consumer uses a Graphical User Interface to input his preferences. These preferences relate to tasks' priority, convenience, comfort, and financial affordability. (e.g., the desired temperature ranges of hot water, refrigerator, airconditioning, preferred time or priority for washing clothes, or dishes, etc.). The consumer may enter these parameters once and save them. The user may feed the parameters using the touchpad, voice recognition, or through a mobile App. Year 2020 ( ) D Artificial Intelligence Assisted Consumer Privacy and Electrical Energy Management AI-Agent communicates and receives information from the Energy-sources Tracker and Selector. It keeps a track record of the available energy sources and their status. Based on the command received from the AI-Agent, it selects the right combination of sources from the pool of available sources. The available sources in the pool, as shown in Figure \hyperref[fig_3]{1}, are Utility Company, Dedicated Battery Banks, and EV-Battery Banks when the EV(s) are parked in the consumer's garage, etc. EV-Battery Banks can be drained to meet the household energy demand, and top up again later when energy is surplus. Since EV adoption rate has increased exponentially recently, the EV-Battery Banks assumption will be a reality in the years to come \hyperref[b13]{[15,} {\ref 16]}.\par
AI-Agent communicates and receives information from the Task Completion Register. Task Completion Register monitors the appliances' task completion status, pending tasks status, and consequently makes a daily log. The Task Completion Register continuously acquires this information from the appliances and updates the AI-Agent.\par
Based on the parameters acquired from the Utility Server, the Weather Server, the Consumer's Smart Appliances, the Graphical User Interface, the Energysources Tracker and Selector, and the Task Completion Register, the AI-Agent computes the Adjusted-average Daily Demand (ADD). Traditionally, the Adjusted-average Daily Demand is calculated by the total energy used over a year divided by 365 days. However, our AI-Agent calculates it by totaling the energy rating and usage duration (kWh) of each consumer appliance that is scheduled by the scheduler for that day.\par
Scheduling is performed by the AI-Agent by comparing and contrasting the daily load factor and daily complex tariff information received from the Utility Server, consumer preferences and priorities, and prevailing weather conditions, etc. The AI-Agent schedules the daily tasks in a manner that less energy is consumed when the Utility Company has peak demand (and the tariff is high), and as maximum as possible loads/appliances (such as boiler heating, washing, drying, charging Battery Banks, etc.) are operated when the Utility Company has off-peak demand (and the tariff is low). This keeps the overall utility consumption at a low cost.\par
Though the AI-Agent performs careful scheduling, the things may not go as scheduled. For example, the user may override his own preferences knowingly or unknowingly, and/or may turn on the lights/devices/appliances unexpectedly or randomly. Thus despite careful and intelligent scheduling, the actual prevailing load conditions may be different than what planned. Thus another key job of the AI-Agent is to continuously compute the gap between Adjustedaverage Daily Demand and the current/prevailing actual load and directs Energy-sources Tracker and Selector to select the appropriate energy source in such a way that Utility Company always continues to provide Adjustedaverage Daily Demand, and any positive gap between the Current Load and the Adjusted-average Daily Demand is covered by charging the Battery Banks, and any negative gap between the Current Load and the Adjusted-average Daily Demand is covered by discharging the Battery Banks. Since the Battery Banks is used to cover up the gap only, our solution eliminates the excessive discharging and charging of batteries that lifts several operational constraints off the batteries. Thus computing the Adjusted-average Daily Demand accurately carries vital importance. The gap analysis is performed by the AI-Agent as discussed below in the following three scenarios: Scenario 1: If the CURRENT LOAD IS LESS THAN ADJUSTED-AVERAGE DAILY DEMAND, the AI-Agent selects the Utility Company from the pool of available sources to perform all scheduled tasks and uses the surplus energy (i.e. Adjusted-average Daily Demand minus Current Load) to charge the Battery Banks. Thus in this scenario, Utility Company acts as a "source" for feeding the appliances, as well as, charging Battery Banks. As an example to illustrate this scenario, suppose the current load in a given hour is 3kW and the Adjusted-average Daily Demand is 4.5kW, the AI-Agent selects Utility Company to perform all scheduled tasks and uses the surplus energy (i.e. 4.5kW minus 3kW = 1.5kW) to charge Battery Banks. 
\section[{Scenario 2: If the CURRENT LOAD IS EQUAL TO ADJUSTED-AVERAGE DAILY DEMAND, it again selects}]{Scenario 2: If the CURRENT LOAD IS EQUAL TO ADJUSTED-AVERAGE DAILY DEMAND, it again selects}\par
Utility Company from the pool of available sources, perform all scheduled tasks, and since, there is no surplus energy (i.e. Adjusted-average Daily Demand minus current load = 0), Utility energy is used to feed all the appliances, and not for charging the Battery Banks. For example, if the current load in a given hour is 4.5kW and the Adjusted-average Daily Demand is also 4.5kW, AI-Agent selects Utility to perform the scheduled tasks only and does not charge the Battery Banks at all. 
\section[{Scenario 3: If the CURRENT LOAD IS GREATER THAN ADJUSTED-AVERAGE DAILY DEMAND, it selects Utility}]{Scenario 3: If the CURRENT LOAD IS GREATER THAN ADJUSTED-AVERAGE DAILY DEMAND, it selects Utility}\par
Company and Battery Banks (Dedicated ones and/or EV-Battery Banks if available) to feed the scheduled loads. Under this scenario, since the existing load is greater than the Adjusted-average Daily Demand, Utility energy is used to feed some of the appliances whereas the Battery Banks to feed the rest of the load. For example, if the current load in a given hour is 7.5kW and the Adjusted-average Daily Demand is 4.5kW, AI-Agent selects Utility to feed the appliances that add up to 4.5 kW and selects the Battery Banks to feed the remaining 3kW load.\par
Thus, no matter whatever the current load is, the AI-Agent intelligently selects the available energy resources in such a way that Utility Company always Year 2020 ( )D © 2020 Global Journals\par
Artificial Intelligence Assisted Consumer Privacy and Electrical Energy Management continues to provide Adjusted-average Daily Demand, and any gap between Adjusted-Average Daily Demand and the Current Load is covered either discharging the Battery Banks or charging the Battery Banks. This strategy eliminates the excessive discharging and charging of batteries. Also, the higher the accuracy of the Adjusted-average Daily Demand, the lesser will be the frequency and depth of charging/discharging of the Battery Banks. This concept is further elaborated after explaining Figures \hyperref[fig_2]{3 and 4}.\par
Figure \hyperref[fig_2]{4} shows the hourly demand of a hypothetical consumer on a certain day. The AI-Agent computed the Adjusted-average Daily Demand = 4.5kW that day, which is represented by a blue/thick dotted line at 4.5kW of Y-axis in the Figure  {\ref .} The graph also shows that the consumer load is (a) less than the Adjusted-average Daily Demand for a sum of 16 hours (i.e. from 12:00 AM to 10:30 AM, from 11:30 AM to 02:00 PM, and from 09:00 PM to 12:00 A.M) and (b) greater than the Adjusted-average Daily Demand for the 7-hour duration (i.e. from 02:00 PM to 09:00 P.M.).  For Scenario 3 AI-Agent selects both, the Utility Company and the Battery Banks for the interval the load is greater than the Adjusted-average Daily Demand. AI-Agent selects the Utility Company to feed appliances load equivalent to 4.5 kW (sky blue color) and Battery Banks to feed surplus load equivalent to 1.5 kW for 7hour duration i.e. from 02:00 PM to 09:00 P.M (see red color).\par
From Figure \hyperref[fig_4]{5} graph we can infer that the Battery Banks were discharged for the 7-hour duration (red color). Thus the Battery Banks have to provide 1.5 x 7 = 10.5kWh/day. Considering 90\% depth of discharge, the Battery Banks are recommended to have a rating of about 12kWh. The Figure also shows that the Battery Banks are charged for 7 hours at about a maximum of 2.5kW and for 8 hours at about a maximum of 1.5kW. Thus the duration and rating are quite enough to get the Battery Banks fully charged.\par
To avoid over-charging or under-charging of Battery Banks, the AI-Agent has to carefully compute the value of Adjusted-average Daily Demand every day very carefully. For a scenario, when the daily demand is low, the AI-Agent adjusts the Adjusted-average Daily Demand at a lower level (e.g. let's say 2kW, instead of 4.5kW), conversely, for a scenario when the daily demand is high, the AI-Agent adjusts the Adjustedaverage Daily Demand at a higher level (e.g. let's say 6.5kW, instead of 4.5kW). Thus AI-Agent attempts to avoid a situation where Batteries become fully charged or under-charged, and the Utility energy ends-up adding the kinks to the Adjusted-average Daily Demand, hence defeating the masking effect.   
\section[{Simulation Results}]{Simulation Results}\par
As explained in section II, the higher the accuracy of the Adjusted-average Daily Demand, the lesser will be the frequency and need for charging/discharging the Battery Banks. Figure \hyperref[fig_7]{6} shows that when the proposed algorithm is not applied at all, the red graph (representing consumer's current load) fluctuates a lot over a 24-hour day. Thus there is neither privacy nor cost saving.  Figure \hyperref[fig_9]{8} shows the effect of AI-Agent's gap analysis and reveals that the step of gap analysis eliminates all the kinks, thus masking the consumer's usage pattern completely, as shown by the yellow line. Thus the beauty of the proposed solution is that it manages user privacy, as well as, energy.  
\section[{Validity and Economic Viability of the Proposal}]{Validity and Economic Viability of the Proposal}\par
Industry outlook shows that the global lithiumion battery market is expected to reach USD 93.1 billion by 2025  {\ref [15] [12]}. The driving forces behind this huge market are EVs, micro-grids grids, and home storage systems due to significant growth in the solar industry. References \hyperref[b13]{[15]} {\ref [16]} show that EV adoption rate has become exponential recently, thus the assumption of Dedicated Battery Banks and EV-Battery Banks in every home will be a reality in the years to come, thus the proposed approach is implementable practically.\par
Reference \hyperref[b15]{[17]} shows that the operation cost of a lithium-ion storage device is about \$0.10 (10 cents) per kW, per cycle (calculated by dividing the upfront cost by the number of cycles these batteries can be used for). For our proposed system that requires about 10 kWh battery, and needs charging/discharging once a day for an average house, the operation cost comes out to be about \$365 per year. On the other hand, our proposed scheduling step offers about a 25\% reduction in utility bills, as evident from our work in \hyperref[b12]{[13]}. If we assume that the average residential utility bill \$125 per month or \$1500 per year. The cost reduction through scheduling will be about \$375 that offset the cost of having a privacy feature. Further \hyperref[b15]{[17]} also shows that ESS batteries set a goal of \$100 per kWh capital cost for the batteries that can run for many thousands of cycles. References \hyperref[b16]{[18]}\hyperref[b17]{[19]}\hyperref[b18]{[20]} also indicate that the cost of operating such storage devices is declining rapidly. The math points to batteries that eventually cost a few cents per kWh. Thus the proposed approach is viable economically as well.\par
V. 
\section[{Conclusion}]{Conclusion}\par
This paper presents a novel solution that offers several features, such as it (a) masks consumers' utility usage data to conceal their utility usage patterns, thus preserves privacy, (b) offers scheduling that conserves energy, thus renders cost reduction in the utility bill, and also evens out the cost of Dedicated Battery Banks (c) it continuously computes gap between "Adjusted-average Daily Demand" and "Current Load" of a household and allows the battery to discharge only to fill the gaps, consequently eliminates the excessive discharging and charging of batteries, thus it lifts constraints on charging-discharging rates and temperature regulations, (d) is user-friendly, simple to implement, and efficient. Though we considered a residential user as an example in this paper, nothing prevents it to be used in industrial or commercial settings as well. Year 2020  \begin{figure}[htbp]
\noindent\textbf{2}\includegraphics[]{image-2.png}
\caption{\label{fig_0}Figure 2 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{3}\includegraphics[]{image-3.png}
\caption{\label{fig_1}Figure 3 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{4}\includegraphics[]{image-4.png}
\caption{\label{fig_2}Figure 4 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{1}\includegraphics[]{image-5.png}
\caption{\label{fig_3}For scenario 1}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{5}\includegraphics[]{image-6.png}
\caption{\label{fig_4}Figure 5 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{}\includegraphics[]{image-7.png}
\caption{\label{fig_6}}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{6}\includegraphics[]{image-8.png}
\caption{\label{fig_7}Figure 6 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{7}\includegraphics[]{image-9.png}
\caption{\label{fig_8}Figure 7 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{8}\includegraphics[]{image-10.png}
\caption{\label{fig_9}Figure 8 :}\end{figure}
   		 		\backmatter   			 
\subsection[{Acknowledgement}]{Acknowledgement}\par
The authors are also thankful to Dr. Zahid Saleem, Professor and Senior Vice President Development at Abasyn University Peshawar, Pakistan, for his continuous support, guidance, and help in teaching and helping conduct research. The authors are thankful to Dr. Muhammad Fasih Uddin Butt, Department of ECE, COMSATS University Islamabad, Pakistan, who had a great enthusiasm for collaboration and engaging his students in the research. Despite his busy life on his campus, he set-up meetings with the authors so that his students may learn the art of doing research and writing papers. The authors are thankful to the students, Ishtiaque Ahmed, Sidra Aslam, and Anas Ali Khan, who showed superb interest in getting involved in the research so that they may learn how to perform a literature survey, develop flowcharts, and write algorithms. 			  			  				\begin{bibitemlist}{1}
\bibitem[Asghar and Miorandi ()]{b0}\label{b0} 	 		\textit{A Holistic View of Security and Privacy Issues in Smart Grids},  		 			M R Asghar 		,  		 			D Miorandi 		.  		2013. Berlin Heidelberg: Springer. p. .  	 
\bibitem[Kabuli (2016)]{b18}\label{b18} 	 		‘A survey on smart metering and smart grid communication’.  		 			Y Kabuli 		.  	 	 		\textit{Renewable and Sustainable Energy Reviews}  		May 2016. 57 p. .  	 
\bibitem[Zhao et al. (2014)]{b9}\label{b9} 	 		‘Achieving differential privacy of data disclosure in the smart grid’.  		 			J Zhao 		,  		 			T Jung 		,  		 			Y Wang 		,  		 			X Li 		.  	 	 		\textit{IEEE INFOCOM 2014 -IEEE Conference on Computer Communications},  				April 2014. p. .  	 
\bibitem[Liu and Cheng ()]{b10}\label{b10} 	 		‘Achieving privacy protection using distributed load scheduling: A randomized approach’.  		 			Endong Liu 		,  		 			Peng Cheng 		.  	 	 		\textit{IEEE Transactions on Smart Grid}  		2017. 8 p. .  	 
\bibitem[Kudzu et al. ()]{b3}\label{b3} 	 		‘Communication network requirements for major smart grid applications in HAN, NAN and WAN’.  		 			M Kudzu 		,  		 			M Pipattanasomporn 		,  		 			S Rahman 		.  	 	 		\textit{Computer Networks}  		2014. 67 p. .  	 	 (Supplement C) 
\bibitem[Barcellona et al. (2018)]{b17}\label{b17} 	 		‘Economic viability for residential battery storage systems in grid-connected PV plants’.  		 			S Barcellona 		,  		 			L Piegari 		,  		 			V Musolino 		,  		 			C Ballif 		.  	 	 		\textit{IET Renewable Power Generation}  		February 2018. 12  (2)  p. .  	 
\bibitem[Black (2016)]{b16}\label{b16} 	 		\textit{Home Battery Market Expected to Match Solar Industry's Growth},  		 			M Black 		.  		 \url{http://techomebuilder.com/emagazine-articles-1/home-battery-market-expected-to-match-solar-industrys-growth}  		June 13. 2016.  	 
\bibitem[Naam (2015)]{b15}\label{b15} 	 		\textit{How Cheap Can Energy Storage Get? Pretty Darn Cheap},  		 			Ramez Naam 		.  		 \url{http://rameznaam.com/2015/10/14/how-cheap-can-energy-storage-get/}  		October 14, 2015.  	 
\bibitem[Delgado et al. ()]{b13}\label{b13} 	 		‘Impacts of plug-in electric vehicles in the portuguese electrical grid’.  		 			J Delgado 		,  		 			R Faria 		,  		 			P Moura 		,  		 			A T De Almeida 		.  	 	 		\textit{Transportation Research Part D: Transport and Environment}  		2018. 62 p. .  	 
\bibitem[Lopes et al. ()]{b14}\label{b14} 	 		‘Integration of electric vehicles in the electric power system’.  		 			J A P Lopes 		,  		 			F J Soares 		,  		 			P M R Almeida 		.  	 	 		\textit{Proceedings of the IEEE},  				 (the IEEE)  		2011. 99 p. .  	 
\bibitem[Grand View Research and Inc ()]{b11}\label{b11} 	 		\textit{Lithium-Ion Battery Market Worth \$93.1 Billion By},  		 			Grand View Research 		,  		 			Inc 		.  		 \url{https://www.grandviewresearch.com/press-release/global-lithium-ion-battery-market}  		2025. August 2017.  	 
\bibitem[Greveler et al. (2012)]{b6}\label{b6} 	 		‘Multimedia content identification through smart meter power usage profiles’.  		 			U Greveler 		,  		 			B Justus 		,  		 			D Loehr 		.  	 	 		\textit{Proc. Comput., Privacy, Data Protection (CPDP)},  				 (Comput., Privacy, Data Protection (CPDP)Brussels, Belgium)  		Jan. 2012. p. .  	 
\bibitem[Finster and Baumgart ()]{b1}\label{b1} 	 		‘Privacy-Aware Smart Metering: A Survey’.  		 			S Finster 		,  		 			I Baumgart 		.  	 	 		\textit{IEEE Communications Surveys \& Tutorials}  		2015. 17  (2)  p. .  	 
\bibitem[Molina-Markham et al. ()]{b8}\label{b8} 	 		‘Private memoirs of a smart meter’.  		 			A Molina-Markham 		,  		 			P Shenoy 		,  		 			K Fu 		,  		 			E Cecchet 		,  		 			D Irwin 		.  	 	 		\textit{Proc. 2nd ACM Workshop Embedded Sensing Systems for Energy-Efficiency Building (BuildSys)},  				 (2nd ACM Workshop Embedded Sensing Systems for Energy-Efficiency Building (BuildSys))  		2010. p. .  	 
\bibitem[Ancillotti et al. ()]{b4}\label{b4} 	 		‘Review: The role of communication systems in smart grids: Architectures, technical solutions and research challenges’.  		 			E Ancillotti 		,  		 			R Bruno 		,  		 			M Conti 		.  	 	 		\textit{Computer Communications}  		2013. 36 p. .  	 
\bibitem[Su et al. (2012)]{b7}\label{b7} 	 		‘Secure wireless communication system for smart grid with rechargeable electric vehicles’.  		 			H Su 		,  		 			M Qiu 		,  		 			H Wang 		.  	 	 		\textit{IEEE Communications Magazine}  		August 2012. 50  (8)  p. .  	 
\bibitem[Yaqub et al. ()]{b12}\label{b12} 	 		‘Smart energy-consumption management system considering consumers' spending goals (SEMS-CCSG)’.  		 			R Yaqub 		,  		 			S Ahmad 		,  		 			A Ahmad 		,  		 			M Amin 		.  	 	 		\textit{International Transactions on Electrical Energy Systems}  		2015. 26  (7)  p. .  	 
\bibitem[Xu and Wang (2013)]{b5}\label{b5} 	 		‘Wireless mesh network in smart grid: Modeling and analysis for time critical communications’.  		 			Y Xu 		,  		 			W Wang 		.  	 	 		\textit{IEEE Transactions on Wireless Communications}  		July 2013. 12  (7)  p. .  	 
\bibitem[Gentile et al. (2012)]{b2}\label{b2} 	 		‘Wireless network deployment in the smart grid: Design and evaluation issues’.  		 			C Gentile 		,  		 			D Griffith 		,  		 			M Souryal 		.  	 	 		\textit{IEEE Network}  		November 2012. 26  (6)  p. .  	 
\end{bibitemlist}
 			 		 	 
\end{document}
