You are currently viewing a new version of our website. To view the old version click .
Energies
  • Article
  • Open Access

14 December 2018

An Efficient Energy Management Approach Using Fog-as-a-Service for Sharing Economy in a Smart Grid

,
,
,
,
and
1
Department of Computer Science, COMSATS University Islamabad, Islamabad 44000, Pakistan
2
Department of Computer Science, Information Technology University, Lahore 54000, Pakistan
3
College of Computer and Information Sciences, King Saud University, Riyadh 11543, Saudi Arabia
4
Federal Urdu University of Arts, Science and Technology, Islamabad 44000, Pakistan
This article belongs to the Special Issue Building renewable energy and thermal energy storage system 2018

Abstract

An unprecedented opportunity is presented by smart grid technologies to shift the energy industry into the new era of availability, reliability and efficiency that will contribute to our economic and environmental health. Renewable energy sources play a significant role in making environments greener and generating electricity at a cheaper cost. The cloud/fog computing also contributes to tackling the computationally intensive tasks in a smart grid. This work proposes an energy efficient approach to solve the energy management problem in the fog based environment. We consider a small community that consists of multiple smart homes. A microgrid is installed at each residence for electricity generation. Moreover, it is connected with the fog server to share and store information. Smart energy consumers are able to share the details of excess energy with each other through the fog server. The proposed approach is validated through simulations in terms of cost and imported electricity alleviation.

1. Introduction

Microgrids are encouraging sources to solve the energy crisis and carbon emission problems around the globe. Microgrids usually consist of renewable energy sources (RESs), i.e., wind power generation, solar panel, tidal, etc. Due to the many advantages of microgrids, many countries have mandates for the utility companies to increase the power generation from renewable sources. The California government made a decision and signed a bill with utilities that all electricity providers must provide 33% of their total supply from renewable sources. Furthermore, a microgrid can operate in two modes: grid-connected mode and islanded mode. In a grid-connected mode, the microgrid is connected with external grids and able to share electricity with them; however, in an islanded mode, a microgrid is restricted to share energy with the external grid. Nowadays, both academia and industry are focusing on the challenges of microgrids, i.e., integration with the smart grid network, intermittent nature, optimal power flow, etc. A lot of solutions have been proposed to tackle the intermittent nature of microgrid energy generation [1]. Weather (wind speed, temperature and irradiations) can be forecasted by the deep neural network (DNN), artificial neural network (ANN) or any other prediction model.
A lot of research studies focus on a novel concept sharing economy or power trading in a smart grid. A smart home that is powered by a microgrid for its own electricity generation can sell its extra electricity to neighbors or an external grid. Our previous paper [2] proposes an optimization method for electricity consumers to earn a maximum profit through power trading, where smart homes try to purchase electricity in off-peak hours; however, they sell out when rates are the highest and, in this way, they earn the profit. In a sharing economy, smart homes share excess electricity with each other and alleviate imported electricity from the external grid. In this way, they minimize their electricity bills. For this purpose, a platform is required that provides secure communication and data storage services, and high computation power to deal with a huge amount of requests coming from several consumers from a community.
In this regard, cloud computing has been used as an efficient way for home energy management (HEM). Cloud computing provided three main services: Infrastructure-as-a-Service, Software-as-a-Service and Platform-as-a-Service to meet with storage and high computing issues [3]. The cloud computing paradigm is a centralized computing model; this means that all the requests and data need to be sent to a centralized system. With the passage of time, data processing capabilities of the clouds are being improved; however, the network bandwidth has not been increased appreciably [4]. To cope with such challenges of cloud computing, the concept of fog computing is introduced. It enhances the services of the cloud to the edge of the network and makes communication, computation and storage closer to end-users and edge devices. It also improves security, privacy, network bandwidth, mobility, low-latency, etc., [5,6]. Therefore, in this paper, fog computing is used as a platform to tackle energy management related issues in the smart grid.
The main contributions of our work are described below:
  • We formulate the energy management and sharing economy problem and present the optimal approach to tackle this problem based on fog computing.
  • We propose a cost and imported electricity minimization scheme to make the environment greener.
  • A fog based platform is developed to store data and share energy among smart users.
  • An ANN based model is developed in this work to forecast weather information for the microgrid.
The remainder of the paper is organized as follows. Related work is disclosed in the next section and Section 3 describes the proposed system model. Section 4 presents the performance evaluation and simulation results’ discussion. In the last, Section 5 uncovers the conclusion and the future directions.

3. System Model

This section explains the complete system model including energy consumption model, pricing model, microgrid integration model and the sharing economy model. Furthermore, we formulate the cost and imported electricity alleviation problem on the basis of these models.
In this paper, we develop a system for the future smart grid to alleviate the electricity cost and imported power from the commercial grid. Figure 1 depicts our proposed system model in which we have n number of smart homes connected with the fog server. The fog server is a platform that provides the services for the power sharing and trading. Each smart home has a smart meter that acts as a communication medium with the fog server. Each home has its own green energy sources, i.e., wind turbine and solar energy known as a home microgrid. Each user fulfills his energy demand from the home microgrid in the first step and deficit energy is shared by the neighbours and then, if any home still needs energy, it is provided by the commercial grid.
Figure 1. System model.

3.1. Electricity Pricing

The time of use (ToU) pricing signals are considered in this work to calculate the cost of electricity, which is imported from the commercial grid and it is shown by ρ ( t ) in time t ϵ T . Actually, utilities provide different pricing schemes to motivate the consumers to manage their electricity consumption. Thus, in order to reduce electricity costs, consumers try to schedule their appliances in off-peak intervals. The ToU pricing scheme is divided into three blocks: on-peak, mid-peak and off-peak hours. In on-peaks, electricity rates are high and consumers pay a minimum cost in off-peak hours; however, in mid-peak, rates are a little bit higher than off-peak but less than on-peak hours.

3.2. Electricity Cost Calculation

Each consumer pays electricity costs against purchased electricity from the utility company. However, according to our proposed model, we try to reduce the imported electricity by energy sharing among prosumers. First, they consume electricity from their own green sources, i.e., solar cell and wind turbine. The hourly power generated by microgrid is calculated as:
E n ( t ) = m = 1 M φ m ( t ) ,
where E n ( t ) shows the energy generated by all microgrid units in time interval t. The term m presents the single microgrid unit and all units are indicated by M. φ m is a generated electricity from any microgrid unit. Furthermore, the total hourly electricity generation by all smart homes is expressed by:
E n t o t a l ( t ) = h = 1 H m = 1 M φ m ( t ) ,
where h and H show the single and total homes, respectively. Thus, users can consume their own produced energy and deficit load is imported from the utility. The total load and imported energy of multiple homes are calculated by Equations (3) and (4), respectively:
σ t o t a l ( t ) = h = 1 H l o a d ( t ) ,
γ ( t ) = σ t o t a l E n t o t a l ,
where
γ ( t ) = 1 , I f γ ( t ) > 0 , 1 , I f γ ( t ) < 0 , 0 , o t h e r w i s e .
In Equation (5), 1 means that load is greater than generation and electricity is imported from the commercial grid. However, when γ ( t ) = −1, electricity is exported to other consumers and, in case of 0, no electricity will be exported or imported.
ToU pricing signals are taken into account for electricity cost calculation. The hourly electricity cost against all consumers is calculated as:
υ ( t ) = γ ( t ) × ρ ( t ) .
Here, υ ( t ) shows total electricity cost at time slot t and ρ ( t ) describes a pricing signal at a specific time interval. Furthermore, the total cost for a whole day against all consumers is expressed by Equation (7):
υ ( T ) = t = 1 T γ ( t ) × ρ ( t ) .

3.3. Microgrid

A microgrid is also integrated in this work to make the environment greener and minimize electricity cost. It contains a solar panel and a wind turbine. An ANN model is also developed to forecast wind speed and temperature for more accurate energy management in a fog environment. The microgrid units are explained below.
  • Solar panel: We integrate solar panels to convert solar energy into power. The electricity is generated by solar panel in direct current (DC); therefore, an inverter is also installed to convert generated electricity to alternating current (AC). Furthermore, a solar panel totally depends on irradiation and temperature. When solar has high irradiation, a panel generates maximum electricity and vice versa. We calculate the generated electricity from the solar panel by the following equation [21]:
    P t p v = η p v × A p v × I r r t ( 1 0.005 ( T e m p t 25 ) ) .
    Here, P t p v presents the generated electricity from the solar panel on an hourly basis. The efficiency and the area of a solar panel are denoted by η p v and A p v , respectively. I r r t and T e m p t show the irradiations and temperature, respectively.
  • Wind turbine: A wind turbine is also installed at each residence to make the environment greener and reduce electricity cost. According to the survey of a global wind energy council, total worldwide electricity generation from the wind turbines reached 318,137 MW in 2013 with an increment of 200,000 MW in the last five years [22]. Furthermore, there is a direct relation between wind speed and electricity generation from the wind turbine. When wind speed is high, the electricity generation is also maximal. However, manufacturers define the upper (cut-out) and lower (cut-in) bounds of wind speed for electricity generation. When wind speed is lower than cut-in speed or higher than cut-out speed, the wind turbines are shut down due to safety reasons and no electricity would be generated. We can calculate produced electricity from a wind turbine by the following equation [21]:
    P t w t = 1 / 2 · C p · ( λ ) · ρ · A · ( V t w t ) 3 ,
    where electricity generated from the wind turbine is shown by P t w t and C p shows the power coefficient. The wind turbine generates electricity on the basis of area swept by rotor blades A, air density ρ and V t w t (wind speed).

3.4. ANN Model for Weather Prediction

ANN is developed and inspired by the neural structure of the human brain. The neurons in ANN are trained the same as that of the human brain with the known (previous) data. To minimize the faulty learning, the errors are fed back and weights are optimized. An ANN consists of three basic layers: input layer, hidden layer and output layer. The input layer is the first layer of the ANN model and the data values exist in this layer. The output layer contains output nodes against each class and this is the last layer of ANN architecture. In addition, a hidden layer exists in between the input and output layer; it may be one or multiple hidden layers in ANN [23]. In this work, we develop an ANN based prediction model for wind speed and temperature prediction, the same as [23]. Figure 2 shows the general architecture of the wind speed prediction model.
Figure 2. Structure of the wind speed prediction model.

3.5. Fog-as-a-Service Platform

We also have considered the fog-as-a-service platform for proper energy management in the residential community. Each smart consumer is connected with fog server to share information about excess or deficit energy. Fog stores data for all homes, i.e., energy generation from a solar panel and wind turbine, load demand, off-peak hours, on-peak hours and electricity tariffs. Our developed ANN model also takes data from the fog server for the prediction of weather. Furthermore, when any user has excess energy generation, the fog shares this energy to needy consumers and, because of this, electricity cost is reduced. Thus, in this way, every user shares his excess energy or, when traveling to another city, his complete generated energy is consumed by other users.

4. Performance Evaluation

In this section, the performance of the proposed approach is evaluated in order to show its productiveness. The performance parameters are cost and imported electricity reduction through the sharing economy in a fog based environment.

4.1. Simulation Environment

We consider two scenarios to perform simulations: a small town consisting of 20 smart homes and a community of 100 homes. The electricity requirement of each home is met by the microgrids and the utility company. Each smart home is connected with a microgrid, which contains the solar panel and the wind turbine for green energy to avoid carbon emissions. Moreover, according to our system model, each home is capable of sharing his excess energy to other smart homes using fog services. The electricity consumption of all homes is examined during a day for the purpose of cost and imported electricity alleviation. The whole day is mapped into 24 intervals (1 h each) [24]. Furthermore, in order to calculate the cost of imported electricity, ToU pricing signals are considered. Moreover, it is assumed that the microgrid is already installed in a residence. This work does not consider the operational and capital cost of the microgrid.

4.2. Simulation Results and Discussion

In the simulations, we calculate the electricity consumption from green sources, imported electricity and energy cost. Furthermore, energy consumers are able to share their excess energy via fog services. Because of this, in peak price hours, the end users use excess energy of other homes instead of purchasing from the utility or grid. The total electricity demand of all smart homes and electricity tariff are presented in Figure 3. It is clearly observed from this Figure that the electricity rates are divided into three blocks: off-peak, mid-peak and on-peak hours. Electricity price is maximum in on-peak hours and minimum in off-peak hours. The electricity demand is also maximum in on-peak hours, so it is challenging to minimize the cost and imported electricity in these time intervals.
Figure 3. Hourly demand for 20 homes and electricity prices.
The electricity generation from a microgrid is depicted in Figure 4 and it is clearly seen that electricity generation from the solar panel is 0 in the morning and night times. In addition, when solar has high irradiation, the electricity generation is at a maximum, i.e., there is a maximum generation in time slots 10–16 due to high irradiation and temperature. Electricity generation from the wind turbine totally depends on wind speed. The wind turbine generates maximal energy when wind speed is high and vice versa. Figure 5 presents the relationship between wind speed and electricity generation from a wind turbine. It clearly shows that the wind turbine totally relies on wind speed. Figure 6 discloses the relationship between temperature and the power generation from the solar panel. It is clearly seen that, when the temperature is increasing, electricity generation is also increasing in that time slot because a solar panel depends on solar irradiation and temperature.
Figure 4. Hourly electricity generation from a microgrid for one home.
Figure 5. The relationship between wind speed and electricity generation.
Figure 6. The relationship between temperature and electricity generation.
In this work, an ANN is developed to forecast the wind speed and temperature for the microgrid electricity generation. The fog makes a decision based on the forecasted electricity generation. The forecasted and real wind speeds are presented in Figure 7, which clearly shows that our developed ANN forecasts close to accurate values. Due to more accurate values of wind speed, fog can easily decide to share energy from one smart home to another. We forecast the wind speed by ANN on the basis of historical data. Furthermore, Figure 8 presents the actual and forecasted values of temperature (c) on an hourly basis for one day. We also have predicted the temperature values for three days to validate the flexibility of our proposed ANN model. The forecasted temperature for the next three days is depicted in Figure 9. Our ANN forecasts the temperature very quickly and shows close to accurate results.
Figure 7. Forecasted and real wind speed for one day.
Figure 8. Forecasted and real temperature for one day.
Figure 9. Forecasted and real temperature for three days.
Figure 10 shows the total electricity demand and imported electricity from the commercial grid against 20 smart consumers. Actually, first electricity demand is met by own green energy sources, i.e., solar panel and wind turbine, then met by energy sharing of different users and then deficit demand is imported from a commercial grid. In high peak hours, the fog server tries to reduce electricity purchasing from the external grid and meet the load requirement of each consumer by energy sharing. This fact is clearly shown in Figure 10, electricity demand is high in peak hours; however, minimum electricity is imported in these hours due to energy sharing. Furthermore, when we implement our proposed approach in a large town consisting of 100 homes, we also have achieved optimized results. Figure 11 shows the total demand and the imported electricity against 100 smart homes. It is clearly observed from results that imported electricity is at a minimum in high peak hours as compared to original demand.
Figure 10. Demand and imported electricity for 20 homes.
Figure 11. Demand and imported electricity for 100 homes.
Figure 12 indicates the hourly electricity consumption cost for 20 homes with and without microgrid integration and energy sharing. The electricity cost for 100 homes with and without integrating microgrids along with energy sharing is presented in Figure 13. When electricity consumers have their own microgrid and also connected with the fog server to share their excess energy, then they pay a minimum hourly electricity cost to the commercial grid, which is clearly seen in Figure 12 and Figure 13. In time slots 7–18, consumers have a minimum cost when they are connected to a fog server for sharing energy. In another case, when they are not connected to a fog server, they will pay a maximum bill in time slots 7–18 due to high price hours. Pricing signals are depicted in Figure 3. We have also examined the performance while considering a microgrid with and without energy sharing in both cases: 20 homes and 100 homes. Figure 14 and Figure 15 depict the hourly electricity cost of 20 and 100 smart homes, respectively. Furthermore, results are taken with and without considering the sharing economy. Results indicate that users are enjoying a minimum cost in peak hours due to a sharing economy. On the contrary, when consumers are not adopting this approach, they pay the maximum cost during peak hours. In addition, it is affirmed from the simulation results that our proposed approach is flexible for small and large scale communities.
Figure 12. Hourly electricity cost with and without microgrid and energy sharing for 20 homes.
Figure 13. Hourly electricity cost with and without microgrid and energy sharing for 100 homes.
Figure 14. Hourly electricity cost with and without energy sharing for 20 homes.
Figure 15. Hourly electricity cost with and without energy sharing for 100 homes.
The total cost of 20 homes in a day is shown in Figure 16. We can observe from results that, when consumers are connected with fog, the cost is minimum and users pay the maximum cost when they have no microgrid integration and fog server.
Figure 16. Total electricity cost for 20 homes.

4.3. Performance Comparison

In this section, we discuss the performance of the proposed fog based energy efficient approach in different scenarios. The two types of residential communities are considered for implementation: a community having 20 homes and a community of 100 smart homes. First, we implement for 20 homes and Figure 15 and Figure 16 show the hourly and total cost, respectively. Our proposed approach efficiently reduces the cost and imported electricity. Furthermore, the electricity cost is minimum when smart homes are connected with a fog server. The electricity cost saved using our proposed approach is 65.85% and 67.033% for 20 and 100 homes, respectively. The comparative analysis is also presented in Table 1.
Table 1. Performance comparison.

5. Conclusions and Future Work

The evolution of cloud computing brings a big influence on old models of computing. The fog computing model is a powerful supplement of cloud computing. We can use fog-based computing models to solve multiple problems instead of using traditional methods. In this paper, we have proposed a fog based approach to share energy among consumers in the smart grid. All consumers are connected with the fog server to communicate with each other and store information. Furthermore, the microgrid is installed at each residence for power generation, which consists of the solar panel and the wind turbine. When any consumer has excess energy or is outside the city, his energy is shared with other users. In this way, imported electricity and cost are reduced. Simulation results disclose that our proposed novel fog based approach efficiently alleviates the imported electricity by 54.41% and energy cost by 65.85% for a community of 20 homes. The total cost and imported electricity are reduced up to 67.033% and 55.44% for 100 homes, respectively.
In the future, we will implement our proposed approach in the industrial sector. Furthermore, the implementation of the same approach in real-time problems will be another direction of our research.

Author Contributions

A.K., S.A. and K.A. proposed and implemented the idea. S.I.H., M.A. and N.J. completed the mathematical modelling. All authors together refined the manuscript. Finally, S.A. and N.J. responded to the queries of the reviewers.

Funding

The authors extend their appreciation to the Deanship of Scientific Research at King Saud University for funding this work through research group NO (RG-1438-034).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Maffei, A.; Srinivasan, S.; Castillejo, P.; Martínez, J.F.; Iannelli, L.; Bjerkan, E.; Glielmo, L. A Semantic-Middleware-Supported Receding Horizon Optimal Power Flow in Energy Grids. IEEE Trans. Ind. Inform. 2018, 14, 35–46. [Google Scholar] [CrossRef]
  2. Aslam, S.; Javaid, N.; Khan, F.A.; Alamri, A.; Almogren, A.; Abdul, W. Towards Efficient Energy Management and Power Trading in a Residential Area via Integrating a Grid-Connected Microgrid. Sustainability 2018, 10, 1245. [Google Scholar] [CrossRef]
  3. Buyya, R.; Yeo, C.S.; Venugopal, S.; Broberg, J.; Brandic, I. Cloud computing and emerging IT platforms: Vision, hype, and reality for delivering computing as the 5th utility. Future Gener. Comput. Syst. 2009, 25, 599–616. [Google Scholar] [CrossRef]
  4. Hu, P.; Dhelim, S.; Ning, H.; Qiu, T. Survey on fog computing: Architecture, key technologies, applications and open issues. J. Netw. Comput. Appl. 2017, 98, 27–42. [Google Scholar] [CrossRef]
  5. Choo, K.-K.R.; Lu, R.; Chen, L.; Yi, X. A foggy research future: Advances and future opportunities in fog computing research. Future Gener. Comput. Syst. 2018, 78, 677–679. [Google Scholar] [CrossRef]
  6. Osanaiye, O.; Chen, S.; Yan, Z.; Lu, R.; Choo, K.R.; Dlodlo, M. From cloud to fog computing: A review and a conceptual live VM migration framework. IEEE Access 2017, 5, 8284–8300. [Google Scholar] [CrossRef]
  7. Al Faruque, M.A.; Vatanparvar, K. Energy management-as-a-service over fog computing platform. IEEE Internet Things J. 2016, 3, 161–169. [Google Scholar] [CrossRef]
  8. Chekired, D.A.; Khoukhi, L. Smart grid solution for charging and discharging services based on cloud computing scheduling. IEEE Trans. Ind. Inform. 2017, 13, 3312–3321. [Google Scholar] [CrossRef]
  9. Tang, S.; Yuan, J.; Zhang, Z.; Du, D.Z. iGreen: Green scheduling for peak demand minimization. J. Glob. Optim. 2017, 69, 45–67. [Google Scholar] [CrossRef]
  10. Hasan, M.S.; Kouki, Y.; Ledoux, T.; Pazat, J.L. Exploiting Renewable sources: When Green SLA becomes a possible reality in Cloud computing. IEEE Trans. Cloud Comput. 2017, 5, 249–262. [Google Scholar] [CrossRef]
  11. Zahoor, S.; Javaid, S.; Javaid, N.; Ashraf, M.; Ishmanov, F.; Afzal, M.K. Cloud–Fog–Based Smart Grid Model for Efficient Resource Management. Sustainability 2018, 10, 2079. [Google Scholar] [CrossRef]
  12. Wang, P.; Liu, S.; Ye, F.; Chen, X. A Fog-based Architecture and Programming Model for IoT Applications in the Smart Grid. arXiv, 2018; arXiv:1804.01239. [Google Scholar]
  13. Lombardi, P.; Schwabe, F. Sharing economy as a new business model for energy storage systems. Appl. Energy 2017, 188, 485–496. [Google Scholar] [CrossRef]
  14. Long, C.; Wu, J.; Zhou, Y.; Jenkins, N. Peer-to-peer energy sharing through a two-stage aggregated battery control in a community Microgrid. Appl. Energy 2018, 226, 261–276. [Google Scholar] [CrossRef]
  15. Liu, Y.; Zuo, K.; Liu, X.A.; Liu, J.; Kennedy, J.M. Dynamic pricing for decentralized energy trading in micro-grids. Appl. Energy 2018, 228, 689–699. [Google Scholar] [CrossRef]
  16. Noor, S.; Yang, W.; Guo, M.; van Dam, K.H.; Wang, X. Energy Demand Side Management within micro-grid networks enhanced by blockchain. Appl. Energy 2018, 228, 1385–1398. [Google Scholar] [CrossRef]
  17. Chaudhary, P.; Rizwan, M. Energy management supporting high penetration of solar photovoltaic generation for smart grid using solar forecasts and pumped hydro storage system. Renew. Energy 2018, 118, 928–946. [Google Scholar] [CrossRef]
  18. Zhang, C.; Wu, J.; Zhou, Y.; Cheng, M.; Long, C. Peer-to-Peer energy trading in a Microgrid. Appl. Energy 2018, 220, 1–12. [Google Scholar] [CrossRef]
  19. Li, L.; Ye, H.; Sun, Y.; Han, H.; Li, X.; Su, M.; Guerrero, J.M. A communication-free economical-sharing scheme for cascaded-type microgrids. Int. J. Electr. Power Energy Syst. 2019, 104, 1–9. [Google Scholar] [CrossRef]
  20. Mi, Y.; Zhang, H.; Fu, Y.; Wang, C.; Loh, P.C.; Wang, P. Intelligent Power Sharing of DC Isolated Microgrid Based on Fuzzy Sliding Mode Droop Control. IEEE Trans. Smart Grid 2018. [Google Scholar] [CrossRef]
  21. Shirazi, E.; Jadid, S. Optimal residential appliance scheduling under dynamic pricing scheme via HEMDAS. Energy Build. 2015, 93, 40–49. [Google Scholar] [CrossRef]
  22. Global Wind Energy Council. 2014. Available online: http://www.gwec.net/global-figures/wind-energy-global-status (accessed on 30 October 2108).
  23. Ahmad, A.; Javaid, N.; Guizani, M.; Alrajeh, N.; Khan, Z.A. An accurate and fast converging short-term load forecasting model for industrial applications in a smart grid. IEEE Trans. Ind. Inform. 2017, 13, 2587–2596. [Google Scholar] [CrossRef]
  24. Aslam, S.; Iqbal, Z.; Javaid, N.; Khan, Z.A.; Aurangzeb, K.; Haider, S.I. Towards efficient energy management of smart buildings exploiting heuristic optimization with real time and critical peak pricing schemes. Energies 2017, 10, 2065. [Google Scholar] [CrossRef]

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.