Least mean square fourth based microgrid state estimation algorithm using the internet of things technology

This paper proposes an innovative internet of things (IoT) based communication framework for monitoring microgrid under the condition of packet dropouts in measurements. First of all, the microgrid incorporating the renewable distributed energy resources is represented by a state-space model. The IoT embedded wireless sensor network is adopted to sense the system states. Afterwards, the information is transmitted to the energy management system using the communication network. Finally, the least mean square fourth algorithm is explored for estimating the system states. The effectiveness of the developed approach is verified through numerical simulations.


Introduction
Due to environmental consciousness and energy crisis, the distributed energy resources (DERs) such as solar panels are integrated into the grid. As their generation pattern is intermittent in nature, it is required to monitor them closely. In order to monitor them, the internet of things (IoT) is the potential infrastructure as it provides the endless support and wide-area connectivity. The main technologies for the IoT are machine-to-machine interfaces, wireless sensor network (WSN) and embedded sensor and actuator schemes that facilitates sensing, control interaction as well as networking [1]. Obviously, an unreliable communication network exits between sensors and energy management system (EMS). The function of the EMS is to estimate the system states and maintain the grid stability. Driven by these motivations, this paper proposes a least mean square based state estimation algorithm considering the packet dropouts in the measurement under the umbrella of the IoT framework.
Extensive investigations on power system state estimations have been carried out in the literature. To begin with, the least mean squares (LMS) based power system dynamic state estimation is explored in [2,3]. Unfortunately, it is very difficult to tune the step size parameter of this LMS scheme. The normalized LMS (NLMS) algorithm is proposed for state estimations [2,4]. This NLMS process normalises the input signal so that the step size parameter can guarantee the stability of this algorithm. Afterwards, the variable step size based LMS algorithm for system state estimation is proposed in [5,6]. This approach provides an optimum convergence a1111111111 a1111111111 a1111111111 a1111111111 a1111111111 The rest of the article is organised as follows. In Section 2 presents the microgrid statespace model, and its estimation algorithm is in Section 3. The simulation results and conclusion are in Section 4 and 5, respectively.
Notation: Bold face lower and upper case letters are used to represent vectors and matrices, respectively; superscripts x 0 denotes the transpose of x and I is the identity matrix.

Modelling the microgrid
One of the vital characteristics of the smart grid is to integrate the renewable resources into the electricity network. To demonstrate, the schematic diagram of an isolated studied microgrid is illustrated in Fig 1 [12][13][14]. It can be observed that the microgrid is connected with the grid/ another microgrid through the point common coupling points (PCCs). Basically, the energy generating unit of a microgrid entails of AC/DC voltage sources, DC/AC converter and series RLC filter. The load is connected to the PCC, and the local loads are equivalent to resistive, capacitive and constant power load (CPL). After applying Kirchhoff's voltage and Kirchhoff's current laws, the dynamic of a microgrid in the dq-frame is expressed as follows [12][13][14]: Here, i, R, L, C, ω, v d , and v t are the current, resistor, inductor, capacitor, frequency, PCC voltage and line voltage, respectively. For instance, i td and i tq represent the line current in the d-q frame.
Usually, the CPL is connected to the AC bus via the rectifier circuit, RLC filter and converter. To clarify, Fig 2 shows the schematic diagram of a CPL in the considered microgrid. The dynamic equation of RLC dc-link filter is expressed as follows: Here, i, P in , v, L, and C represent the maximum current, converter/inverter input power, peak voltage, inductor and capacitor, respectively. For example, i dc and v out are the RLC filter current and output voltage, respectively. With appropriate firing angle and switching function in the rectifier circuit, the CPL line current i CPLd for Eq (5) is given by [15]: Here, the maximum magnitude of the stitching function S w is equal to ffi ffi [13]. Now the above nonlinear set of system equations is linearised around the operating point i is the operating point [12,13]. After simple algebraic manipulations, the continuous-time state-space model of a microgrid is expressed as follows: ð12Þ uncertainty. The process noise n is the zero mean Gaussian distribution [16][17][18] whose covariance matrix is Q. The system is expressed as a disrate-time state-space model as follows: where A = I + Δ t A c , B = Δ t B c , and Δ t is step size parameter.
In order to monitor the microgrid farm, the service provider deploys the IoT elements such as sensors around the microgrids. The IoT infrastructure for sensing and estimating the system state is illustrated in Fig 3 [19 , 20]. Basically, the voltage and current sensors are deployed to measure the microgrid states. Then it transmits to the energy management system through the internet which adds noise. The received signal at the energy management system is given by: where C(k) is the observation matrix, w(k) is the noise which considers zero mean Gaussian distribution with R(k) covariance matrix, λ(k) is the packet loss parameter with lðkÞ ¼
In order to transmit the sensing information to the EMS, the sensing information is quantized to obtain the bit information [19,20]. This is due to the fact that the digital modulation scheme is used for long distance signal transmission. So, the bit information is modulated using the binary phase shift keying (BPSK) to obtain the modulated signal m(k). The modulated signal is then transmitted through the internet, which causes the signal distortions. The received signal at the control center is written as follows.
where n(k) is the channel noise.

Proposed estimation algorithm
According to the steepest decent approach, the state updated rule is given by [2,3,24]: xðk þ 1Þ ¼xðkÞ À mDJðkÞ: Here,xðkÞ ¼ Axðk À 1Þ þ BuðkÞ is the predicted states,xðk À 1Þ is the previous estimated states, μ is the scalar step size parameter, J(k) is the objective function to be minimized and ΔJ (k) is the gradient decent. The cost function is defined by [2,3]: Here, e n (k) is the n-th error function, which is defined as follows: e n ðkÞ ¼ z n ðkÞ Àẑ n ðkÞ: Here,ẑ n ðkÞ ¼ lðkÞH nx ðkÞ and H n is the n-th row of the observation matrix. The minimization  of the cost function with respect to the predicted states lead to the following expression: From Eq (16) and Eq (19), the update state estimation is expressed by [2,3]: Here, K is the user defined matrix, which depends on the specific application [2,3]. In order to obtain the consistent estimation performance, the following normalization version is proposed: x Here, is the small positive value to avoid division by zero [25]. It can be seen that the proposed least mean square fourth algorithm is very simple, and it does not need to know the observation noise covariance as opposed to the KF scheme. When the communication is involved thenẑðkÞ is equivalently replaced by the dequantized output s n (k) i.e.,ẑ n ðkÞ % s n ðkÞ. This is due to the fact that the depending on the designed communication scheme, the infrastructure is equivalently reconstructedẑ n ðkÞ which is also considered by different application domain papers in [26,27].

Numerical simulation results
The effectiveness of the developed approach is verified through the numerical simulation. After modelling the microgrid, the developed scheme is applied to the microgrid state estimations. To do this, the simulation parameters are described in Table 1 [12,13], where Matlab is used as a simulator. The process and measurement noises are considered as zero mean white Gaussian noises with variances Q = 0.00001I and R = 0.00012I, respectively. The considered value of K is 0.16 × eye (8). The sampling step size parameter is 0.000001. The system is considered as a balanced load with unregulated microgrid. The proposed algorithm is tested on the microgrid with and without communication delays. The simulation results without delays are presented in Figs 4-9. First of all, Figs 4 and 5 show the direct-quadrature (dq) axis filter currents versus time slots. It can be seen that the proposed scheme is able to estimate these states within 0.00015-0.0002 seconds (time slot × step size = 200 × 0.000001). This is due to the fact that the developed approach is able to perfectly rectify the estimation errors as time proceeds. Moreover, the simulation results in Figs 6 and 7 illustrate the dq-frame load currents versus time. It can be observed that the actual states are matched with the estimated states within a short time. Furthermore, the point of common coupling voltages in the dq-frame are illustrated in Figs 8 and 9. Even if the common coupling voltages are changed with the local loads and renewable energy generation patterns, but the proposed algorithm can effectively track the system states. Other microgrid state    In practical situation, there may be the communication delays when sensing the system states. Considering 2 sample communication delays in the observation, the rectifier output current and voltage are demonstrated in Figs 10 and 11, respectively. It is clearly seen that the actual system states match the estimated states within 0.0004 seconds. As the estimation algorithm is designed without communication delays, so the proposed scheme will need more time to estimate the microgrid states as expected.

Conclusion and future work
This paper proposes a least mean square fourth algorithm considering the packet dropouts. First of all, the microgrid incorporating the renewable distributed energy resources is represented by a state-space model. Then the innovative IoT infrastructure is proposed for transferring the microgrid information to the energy management system for estimating the system states. The effectiveness of the developed approach is verified through numerical simulations. It can be seen that the developed approach is very effective in estimating the system states. The future work involves applying the suitable control algorithm so that the system will be stabilized.