Skip to content
Microsystems, Electronics and Acoustics
ISSN 2523-4447 · e‑ISSN 2523-4455 Open Access · CC BY-SA 4.0
Vol. 24 · Issue 6 · 2019 Dec 27, 2019 Electronic Systems and Signals

Machine Learning for a Power Consumption and Generation Prediction

DZ
Dmytro Serhiyovych Zaruba Corresponding Національний технічний університет України «Київський політехнічний інститут імені Ігоря Сікорського» Ukraine
MS
Mykhailo Yuriyovych Shvets Національний технічний університет України «Київський політехнічний інститут імені Ігоря Сікорського» Ukraine
YK
Yurii Vitaliyovich Khokhlov Національний технічний університет України «Київський політехнічний інститут імені Ігоря Сікорського» Ukraine
Pages17-21 PublishedDec 27, 2019
VOL 24 · ISS 6 · 2019 View issue

Abstract

The paper is devoted to the preparation and analysis of data sets in order to improve the prediction of the amount of consumed and generated electrical energy volumes using machine learning methods. The importance level and influence on predicting the time of day, month, year, temperature, humidity, atmospheric pressure, and other factors were determined. The dataset used in this article contains the data of smart house equipped by photovoltaic cells for the own generation of electrical energy that covers the part of house’s demand. There are following values in dataset: «time», consumed electrical energy («use [kW]»), generated electrical energy («gen [kW]»), «temperature», «humidity», «visibility», «pressure», «windSpeed», «cloudCover», «windBearing», the temperature as it felt by human «apparentTemperature», precipitation intensity «precipIntensity», «dewPoint», precipitation probability «precipProbability». The data was collected during 11 months with a data fixing period of 1 minute. Before the data analysis and further learning it’s necessary to execute preliminary processing. At first stage, it was investigated how large is the part of missed and zero values in dataset. The second stage includes elimination of outliers that are situated at anomaly distance from other values in random sample. These outliers could be caused by measurement errors, wrong measuring units use. Also, it could be correct but extremum values. The purification procedure includes defining the lower and the upper quartiles of existing data for the distribution of used energy. For effective learning of the model it is necessary to choose the values that are most important and suitable for training. Pearson’s correlation coefficient was used to estimate numerically the level and positivity of linear connections between the pairs of values as well as to estimate their influence to the used and generated energy. Among the values with the high level of correlation only one was chosen that helped increasing adequacy, generalization and results interpretation. As a result of correlation analysis three parameters were selected for the training - «apparentTemperature», «dewPoint» and «precipProbability». Use of proposed preprocessing methods allows increasing the predictions exactness by 25% for the used energy and by 2% for the generated energy. The initial dataset was divided as follows: 70% of values were considered as the training samples and 30% - as testing ones. To compare the training methods three models of machine learning from the library Scikit-learn in programming language Python were considered: «Linear», «Random forest», «k nearest neighbors». The determination coefficient R² was used as a metrics to estimate the exactness. The diagrams of numerical values of R² coefficient for the parameters of generation and consumption of electrical energy and for three considered models of machine learning were built. Among the tested model the best result was demonstrated for the “Random forest” model (84% for the used energy and by 95% for the generated energy). Additional exactness increasing could be reached by use of more amount of testing samples and parameters during the analysis and more time intervals of observation as well as additional methods of data preprocessing.

Keywords

References

  1. A. D. Papalexopoulos and T. C. Hesterberg, “A regression-based approach to short-term system load forecasting,” IEEE Trans. Power Syst., vol. 5, no. 4, pp. 1535–1547, 1990, DOI: 10.1109/59.99410.
  2. E. A.-J. Al-Shareef, A.J., E.A. Muhammad, “One Hour Ahead Load Forecasting Using Artificial Neural Network for the Western Area of Saudi Arabia,” Int. J. Electr. Syst. Sci. Eng., vol. 37, p. 7, 2008, URL: https://www.researchgate.net/publication/238738216_One_Hour_Ahead_Load_Forecasting_Using_Artificial_Neural_Network_for_the_Western_Area_of_Saudi_Arabia .
  3. E. A. Feinberg and D. Genethliou, “APPLIED MATHEMATICS FOR POWER SYSTEMS, Chapter 12; LOAD FORECASTING,” Short-Term Load Forecast. Proc. IEEE, vol. 75, pp. 269–285, 1987, URL: http://www.ams.sunysb.edu/~feinberg/public/lf.pdf
  4. I. Moghram and S. Rahman, “Analysis and evaluation of five short-term load forecasting techniques,” IEEE Trans. Power Syst., vol. 4, no. 4, pp. 1484–1491, 1989, DOI: 10.1109/59.41700.
  5. G. M. Rao, I. Narasimhaswamy, and B. S. Kumar, “Deregulated power system load forecasting using artificial intelligence,” 2010 IEEE Int. Conf. Comput. Intell. Comput. Res. ICCIC 2010, pp. 136–140, 2010, DOI: 10.1109/ICCIC.2010.5705745.
  6. S. Dowdy, S., Wearden, “Statistics for research, by Shirley Dowdy and Stanley Wearden. New York: Wiley, 1983, 537 pp.,” J. Policy Anal. Manag., vol. 3, no. 4, pp. 637–637, 2007, DOI: 10.1002/pam.4050030448.
  7. D. P. Francis, A. J. S. Coats, and D. G. Gibson, “How high can a correlation coefficient be? Effects of limited reproducibility of common cardiological measures,” Int. J. Cardiol., vol. 69, no. 2, pp. 185–189, 1999, DOI: 10.1016/S0167-5273(99)00028-5.
  8. N. R. Draper and H. Smith, “Applied Regression Analysis: Third Edition,” Wiley Ser. Probab. Stat., vol. 47, no. 3, p. 706, 1998, DOI: 10.1198/tech.2005.s303.
  9. Bakhrushin V. Ye., “Programmnaya Realizatsiya Metodov Analiza Nelineynykh Statisticheskikh Svyazey V Sisteme [Software Implementation of Non-Linear Statistical Relations Analysis Methods in a System],” Software Systems And Computing Methods, vol. 2, no. 2, pp. 228–238, 2014, DOI: 10.7256/2305-6061.2014.2.11477.
  10. S. A. Glantz and B. K. Slinker, “Primer of Applied Regression and Analysis of Variance,” McGraw-Hill, p. 777, 1990, URL: https://books.google.com/books?id=UcR6QgAACAAJ&pgis=1 .
  11. A library of scikit-learn Python programming languages. URL: https://scikit-learn.org/stable/_downloads/scikit-learn-docs.pdf
§ 06 — Related

Similar articles in this journal

Related peer-reviewed studies published in this journal.
View all issues

Quasistatic Identification of The Shading Structure of Solar Panels by The Method of Cardinal Number Vectors

PhD, Assoc. Prof. Olena Olehivna Abakumova, Dr.Sc.(Eng.), Prof. Valerii Yakovych Zhuikov, Mykola O. Lukianov

In the article the problem of identification the shading structure of solar panels is considered. The relevance of the study is conditioned by the necessity of rapid and…

#solar panels #photovoltaic surface #shadow structure modeling #quasistatic identification
p. 362283.1-362283.7
10.20535/2523-4455.mea.362283

A A Complex Method for Non-invasive Fetal Electrocardiogram Signal Extraction and Cardiac Arrhythmia Classification

Dmytro A. Shevchuk, PhD, Assoc. Prof. Nataliia Heorhiivna Ivanushkina

This study is devoted to the development of a complex method for extracting the fetal electrocardiogram (fECG) from non-invasive abdominal recordings and for the…

#abdominal electrocardiogram #fetal electrocardiogram #arrhythmia #blind source separation
p. 356487.1-356487.11
10.20535/2523-4455.mea.356487

Simulation Modeling of a Filter-Compensating Converter for a Three-Phase Three-Wire Network

Ivan Andriiovych Vakulenko, PhD, Assoc. Prof. Dmytro Anatoliiovych Mykolaiets, PhD, Assoc. Prof. Kateryna Serhiivna Klen

This paper addresses the critical issue of power quality degradation in modern power systems caused by the proliferation of non-linear loads. The study focuses on the…

#filter-compensating converter #three-phase three-wire network #power quality #total harmonic distortion
p. 361138.1-361138.6
10.20535/2523-4455.mea.361138

Similar Articles

1-10 of 34

You may also start an advanced similarity search for this article.