=Paper= {{Paper |id=Vol-3132/Paper_17.pdf |storemode=property |title=Web Application for an Information System for Diagnosing the Quality of Electricity Consumers Using Cloud Technologies |pdfUrl=https://ceur-ws.org/Vol-3132/Paper_17.pdf |volume=Vol-3132 |authors=Nikolay Kiktev,Alexey Kutyrev,Dmitriy Khort,Oleksii Kalivoshko |dblpUrl=https://dblp.org/rec/conf/iti2/KiktevKKK21 }} ==Web Application for an Information System for Diagnosing the Quality of Electricity Consumers Using Cloud Technologies== https://ceur-ws.org/Vol-3132/Paper_17.pdf
Web Application for an Information System for Diagnosing the
Quality of Electricity Consumers Using Cloud Technologies

Nikolay Kiktev a,b, Alexey Kutyrev c, Dmitriy Khort c and Oleksii Kalivoshko d
a
  National University of Life and Environmental Sciences of Ukraine, Heroiv Oborony str., 15, Kyiv, 03041,
Ukraine
b
  Taras Shevchenko National Univercity of Kyiv, Volodymyrs’ka, 64/13, Kyiv, 01601, Ukraine
c
  Federal Scientific Agroengineering Center VIM, 1-st Institutsky proezd, 5, Moscow, 109428, Russia
d
  National Science Center “Institute of Agrarian Economics”, Heroiv Oborony str., 10, Kyiv, 03041, Ukraine

                             Abstract.
                             The work is devoted to the development of software for an automated system for
                             diagnosing the quality of electricity consumers using cloud technologies. The WEB
                             interface of the system is designed and developed for interactive interaction and
                             visualization of indicators with the output of tables and graphs for analysis, graphical
                             representation and display of the results of diagnostics of electricity quality. Data
                             modeling was performed using the Google Colab service and implemented in the Phyton
                             language. Dynamic database is designed in MySQL DBMS. The web interface is
                             implemented using HTML, JS and PHP. The PhpStorm application and the local
                             OpenServer server were used for the construction.

                             Keywords 1
                              electricity, quality, vector measurements, dynamic database, algorithm, program,
                             application, real time chart, web-interface

    1. Introduction.
   The relevance of scientific research and development, to which this work is devoted, is due to the
unsolved problem of creating an automated system for diagnosing the quality of electricity of consumers
using renewable sources of electricity. Currently, some customers of energy companies use devices for
generating electricity (solar panels, windmills, etc.). And to save costs or to generate income, they also
return energy to the grid. Since the electricity company is legally obliged to buy electricity produced by
consumers, it wants to make sure that this will not damage the network. Now the network must be
measured and monitored to ensure that the power coming into the network from other sources has the
same quality and standards that the client equipment expects from it.
   The quality of electricity is the quality of equipment that consumes this energy; it cannot guarantee its
quality at the place of consumption.
   The tasks of electricity quality management in enterprises (including agricultural) are an important
task to improve the functioning of electrical equipment, computer equipment, especially servers, network
equipment and other devices. Uninterrupted operation of electrical devices affects the quality of

Information Technology and Implementation (IT&I-2022), December 01–03, 2021, Kyiv, Ukraine
EMAIL: nkiktev@ukr.net (A.1); alexeykutyrev@gmail.com (A.2); dmitriyhort@mail.ru (A.3); alek-k@ukr.net (А.4)
ORCID: 0000-0001-7682-280X (A.1); 0000-0001-7643-775X (A.2); 0000-0001-6503-0065 (A.3); 0000-0003-0417-4529 (A.4)
          ©️ 2022 Copyright for this paper by its authors.
          Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
          CEUR Workshop Proceedings (CEUR-WS.org)


                                                                                                                    176
production and the final product, as well as the service life of electrical equipment. These tasks should be
based on:
     monitoring (continuous control) of electricity quality indicators at all levels of electricity
consumption;
     information support of electricity supply to consumers;
     setting requirements for the consumer and the system;
     application of synchronized vector measurement technology for monitoring and quality
management of electricity supply and electricity consumption (WAMS-technologies);
     developed, substantiated and timely applied measures to prevent reduction of electricity quality
(NPP);
     assessment of the impact of nuclear power plants on the reliability of electricity supply, etc.
   The article is devoted to the description of software development for the automated system of
diagnostics of quality of consumers of the electric power with use of cloud technologies. The authors
designed and developed a WEB-interface system for interactive interaction and visualization of
indicators. The program should display tables and graphs for analysis, graphical representation and
display of the results of diagnostics of electricity quality.

   2. Literary review.
    Many publications have been devoted to the study of the quality of electricity. Scientists from the
National Technical University of Ukraine "Kyiv Polytechnic Institute" investigated a system for
monitoring the quality of electrical energy in decentralized power supply systems [8]. Scientists of the
Institute of Electrodynamics of the National Academy of Sciences of Ukraine have developed a recording
device (SP) "Regina-CH", which in its technical and functional characteristics is not inferior to the best
foreign analogues [9]. The device provides registration of instantaneous values of currents and voltages,
storage and processing of measurement results; their reflection in the form most informative for personnel
(text messages, graphs, tables, waveforms, etc.), as well as the transmission of information to any level of
the control hierarchy with its binding to the signals of the exact time.
    These devices are an integral part of the transient mode monitoring system (SMPR), integrated into a
local area network that combines measuring transducers or other lower-level monitoring devices and a
data acquisition server (Fast Ethernet 100 Mbit/s, TCP/IP). A top-level remote computer is installed in the
dispatch center (DC) of the united energy system of the UES (NEC "Ukrenergo") and the corresponding
electrical system to receive information from the switching server [9].
    Intelligent electronic devices ENIP-2 manufactured by eNergoservice Engineering Center LLC
(Arkhangelsk, Russia) [10] measure synchronized vectors (synchrophasors) of currents and voltages
(PMU, Phasor Measurement Unit), as well as synchronized measurements of the parameters of the power
system mode according to the current values of current and voltage and the main harmonic and transfer of
parameters to automated technological control systems via digitally galvanically isolated Ethernet
interfaces.
    These devices are intended for use in transient monitoring systems (WAMS) and in automated process
control systems of a new generation of WACS, in substation automated control systems and automated
dispatch control systems, in automatic process control systems of active adaptive networks, mode
automation. ENIP-2 devices can directly transmit data when connected to the local network of a
substation or power plant, or through devices for collecting and transmitting data of synchronized PDC
measurements or through similar devices for collecting and transmitting technological information.
    SMPR is a multi-level distributed automated system for collecting, processing and storing data of
synchronized vector measurements of parameters of electromechanical transients and steady-state modes.
In the EU countries, this class of systems is called Wide Area Measurement System (WAMS) [11]. One


                                                                                                        177
of these systems was developed by the company "Parma" (St. Petersburg, Russia). Digital process
recorders PARMA RP4.11 and PARMA RP4.12 - microprocessor devices combining the functionality of
autonomous emergency event recorders, synchronized vector measurement devices are used as the main
element of the lower level of the SMPR (the level of energy facilities). At the upper level of the SMPR, a
specialized software package WAProtector is used - this is a specialized SCADA, which is focused on
working in real time with large volumes of synchronized vector measurements obtained using the
IEEEC37.118.2-2011 protocol. The program allows you to create custom algorithms designed to solve
problems of monitoring and ensuring the stability of the power system in real time. Other devices for
measuring the quality of electricity, including synchronized vector measurements, are presented in the
catalog [7].
    The issues of the efficiency of the use of energy resources and their impact on production
technologies, as well as environmental safety were studied by scientists from China, the European Union,
Brazil [2-4], etc. Justification of the effectiveness of the use of renewable energy sources is actively
engaged in the European Union. In the work of American researchers [5], a microfaser (PMU) is
described - a device using intelligent inverters that support the Internet of Things (IoT). The automation
of vector measurement systems was also carried out by Croatian researchers, who developed an algorithm
for detecting and protecting distributed generation of a microgrid [12].
    Ukrainian researchers were engaged in the development of methods for effective management of
electricity quality, including the use of renewable energy sources. In the dissertation work of L.A.
Kopylova (Ukraine) [1], an intelligent automated control system for power consumption and power
supply of an industrial enterprise was developed. Intelligent control methods are represented by fuzzy
logic. I.S. Goncharenko's dissertation research is devoted to determining the optimal options for
connecting renewable energy sources to electric grids [6]. The work determines the optimal connection
points, capacity and type of renewable energy sources.
    The development of software tools for statistical analysis in systems using restorative energy is
described in the works of Ukrainian researchers N. Kiktev, V. Osipenko et al. [14, 17]. The use of cloud
technologies and the Internet of Things in automation systems was carried out by researchers at the
National University of Biological and Environmental Sciences of Ukraine [15]. Students of Taras
Shevchenko National University of Kyiv took part in the development of software applications for the
diagnosis of electricity quality [13].
    The objective of the study is to create a distributed information management control system and a web
application for diagnosing the quality of electricity using renewable sources.

   3. Materials and methods
    3.1.    Power quality diagnostics technology using synchronized vector
            measurements
  Generally, the process of diagnosing the quality of electricity by the method of synchronized vector
measurements can be represented in the form of a block diagram (Fig. 1).
  The standards set the following indicators of the quality of electrical energy [1, 2]:
    steady-state voltage deviation δ𝑈𝑦;
    the scope of the voltage change δ𝑈𝑡;
    flicker dose 𝑃𝑡;
    the distortion coefficient of the sinusoidal voltage curve 𝐾𝑈;
    the coefficient of the harmonic component of the voltage 𝐾𝑈 (𝑛)
    the coefficient of stress asymmetry in the reverse sequence 𝐾2𝑈;
    the coefficient of stress asymmetry in the zero sequence 𝐾0𝑈;

                                                                                                      178
           frequency deviations Δ𝑓;
           duration of voltage failure Δ𝑡𝑛;
           pulse voltage 𝑈;
           temporary overvoltage coefficient 𝐾 𝑈.

                                                Optimization
             Microgrid


                                              Making decisions                        Diagnosis

           Vector
        measurements                            Forecasting

        I    U    f   d                                               Quality parameters
                              Vector data

        Data collection
                                              Data processing                         Quality control
            server

                                                                Data for evaluation

  Figure 1: Block diagram of the power quality diagnostics technology using synchronized vector
measurements

    3.2.         Formation of input information.
    The input information is represented by the readings of 4 recorders of electricity indicators (PMU
devices), which are located in 4 different locations:
     Central PMU (Kiev region);
     West PMU (Lviv region);
     East PMU (city of Slavyansk);
     South PMU (city of Kherson).
    Data modeling was performed using the Google Colab service and implemented in the Phyton
language. Four program codes generate real-time indicators in parallel and are written to the MySQL
database. According to these indicators, the voltage and frequency deviation is calculated. This web
interface should provide an opportunity to view indicators from measuring devices connected to the
electricity network in different places. These indicators should be presented both in tabular form and in a
more user-friendly form - graphical.

    3.3.         Choice of system development technology.
   To create the database itself, the HeidiSQL software environment is used - this is free software, the
purpose of which is ease of learning. "Heidi" allows you to view and edit data and structures from
computers running in one of the MariaDB, MySQL, Microsoft SQL, PostgreSQL and SQLite database
systems. MySQL was chosen as the system, which is the most popular database management system
(DBMS). In order for parameters with PMU to be entered into the database, the Python language was
used. It generates different values of frequency, voltage and current. One of the main requirements for
web interfaces is their identical appearance and the same functionality when working in different
browsers. The classic and most popular method of creating web interfaces is using HTML with CSS and

                                                                                                        179
JavaScript, usually using server-side scripting languages.

    3.4.    Architecture of synchrophasor technology.
    Synchrophasor technology (CT) is usually the use of input data from a PMU synchrophasor for
monitoring. It includes a large variety of sensitive tools for transferring data from the PMU to the rest of
the network, as well as for sending this data for processing by various applications. ST is presented in the
form of a three-level structure [16].
    1) Measurement level
    The measuring layer (level) includes current and voltage transformers, analog units and PMUs, which
have a built-in GPS for data timestamp. They are used at substations and are designed to collect analog
data from transformers.
    2) Data collection level
    After data collection, PMU units send data to vector data concentrators (PDCs), which are devices that
combine data from a certain number of measuring instruments. They receive phase measurements from
individual remote PMUs through the communication medium and store this data in the DBMS. The PDC
function is data processing, synchronization and storage, through its monitoring system it also provides
information about system performance parameters such as latency, data quality, frame rate, etc.
    In the standard configuration, PMU units connect the main substations in transmission systems and
transmit measurements in real time viaInternet or other means of communication, in particular, fiber-
optic. This data is collected by a local PDC, where it is aggregated into a DBMS. Local PDCs belonging
to various enterprises can also be connected to a centralized PDC.
    3) Application Layer / Energy management layer of the Global Measurement System (WAMS)
    This layer is part of the CT, through which the PDC sends data to the control stations via
communication channels. Since the data is provided in real time (that is, without taking into account the
transmission delay), they provide a real-time network scenario. Applications are being developed to use
this data to provide better visibility of the system. The architecture of the system software is shown in
Fig. 2.


           Central PMU
                                                    Server (Query Processing)


                                                                                  DataBase
            East PMU                                                              (MySQL)




           West PMU




           South PMU                                                         Web interface (View)



Figure 2: Information system software architecture

                                                                                                        180
   3.5.     Database structure. Data to be processed.
  The system uses the following tables: locations, pmus, indicators, quality. The following indicators
were used as input data for building the interface:
    date and time;
    frequency indicator;
    voltage indicator;
    amperage indicator;
    voltage deviations;
    frequency deviations.

   3.6.     Stages of creating an information system.
   Stage 1. Construction of a simulation model of four devices for generating electricity indicators. The
simulation model is implemented using the Google Colab service in Python with the MySQL library [13].
   Stage 2. Designing and creating a database for storing indicator values. The database is hosted on a
remote server and runs on MySQL. The program works as a server providing "multi-user access" to
database objects. The HeidiSQL application shown in Fig. 3 was used to build the database.
   Stage 3. Construction of an analytical system for determining the quality of electricity using a
mathematical apparatus (Fig. 4). The analytical system is implemented using the Google Colab service in
Python. A fragment of the code for calculating the quality of electricity is shown in Fig. 5.
   Stage 4. Defining user requirements for the web interface.




Figure 3: Designing a dynamic database in a HeidiSQL application
   Stage 5. Designing and building a web interface of an information system for the diagnosis of
electricity quality. The web interface is implemented using HTML, JS and PHP (a scripting programming
language, was created to generate HTML pages on the web server side). The PhpStorm application and
the local OpenServer server were used for the construction.
   Stage 6. Buying a domain for hosting on the web and configuring web hosting.
   Stage 7. The deployment of the program code to the web server. The developed application is hosted
on a web server using the FileZilla application.

                                                                                                     181
Figure 4: Dynamic data in the indicators table




Figure 5: A fragment of the program code for calculating the quality of electricity indicators

                                                                                                 182
   4. Results
    Demonstration of the application. The main page of the web interface is shown in Figure 6. On the
main page, you can view the power grid indicators from 4 different recorders by selecting the appropriate
tab shown in Fig. 6. The constructed frequency graph from the first recorder is shown in Fig. 7. Similarly
to the user, graphs of voltage indicators are displayed on the screen and Amperage is shown. The next
block of the web interface consists of a tabular representation of electricity quality indicators.




Figure 6: The main page of the web interface
   This page contains information about working measuring devices. Four tabs of input indicators for
quality assessment are shown in Fig. 7. And the last section is graphs, where information about the
quality of electricity is presented.

   5. Discussion and perspective
    Directions for further research. In the future, it is planned to develop this project as follows:
    - connection of several types of PMU devices (purchased as part of a research project), their
integration into the system and collection of information in various facilities;


                                                                                                      183
   - application of optimization and decision-making methods for quality management at the points of
connection of sources of restored generation (an example of solving the problem of multicriteria
optimization is given in the work of a Ukrainian researcher H. Hnatiienko [18]);
   - statistical processing and analysis of the data obtained for forecasting electricity quality indicators.




Figure 7: Frequency deviation graph

   6. Conclusions.
   The paper considers the urgent task of diagnosing the quality of electricity consumers on the basis of
modern synchrophasor technologies, as well as building a convenient interface for visual representation of
electricity quality indicators. To determine the quality of electricity, some of the following parameters are
presented: frequency, voltage and amperage, according to which the diagnostics of the quality of
electricity is tested. Designed and developed a web interface for interactive interaction and visualization
of indicators with tables and graphs. This information is input for subsequent analysis, graphical
representation and output of electricity quality results. The developed software can help to quickly
analyze the quality of electrical energy, as well as learn about power failures at an early stage.

   7. References
[1] Kopylova L.O. Intelligent automated control system for power consumption and power supply of an
    industrial enterprise. [Intelektual`na avtomatyzovana systema keruvannya elektrospozhyvannyam ta
    elektropostachannyam promyslovogo pidpry`yemstva]. Dissertation for the degree of Cand. tech.
    sciences. - Kyiv, NUFT, 2018. -- 248 p. (In Ukranian).
[2] Alberto Borghetti, Carlo Alberto Nucci, Mario Paolone. Synchronized Phasors Monitoring During
    the Islanding Maneuver of an Active Distribution Network. IEEE Transactions on Smart Grid, Vol.
    2, No. 1, March 2011. - pp. 1-8. DOI: 10.1109/ISGT.2010.5434733.
[3] Marco Lixia, Andrea Benigni, Alessandra Flammini, Carlo Muscas, Ferdinanda Ponci, and
    Antonello Monti. A Software-Only PTP Synchronization for Power System State Estimation with
    PMUs. IEEE Transactions on Instrumentation and Measurement, Vol. 61, No. 5, May 2012. – pp.
    1476 – 1485. DOI: 10.1109/TIM.2011.2180973.

                                                                                                         184
[4] Dileep G. A survey on smart grid technologies and applications. Renewable Energy, Vol.
     146, February 2020. – pp. 2589-2625. DOI: 10.1016/j.renene.2019.08.092.
[5] Abinash Singh, Balwinder Singh Surjan. Microgrid: a Review. IJRET: International Journal of
     Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308, 2014. - pp. 185-
     198. DOI: 10.1.1.678.1850.
[6] І.С. Goncharenko. Determining the best options for connecting renewable energy sources to
     electricity grids [Vyznachennya optymal`nyx variantiv pry`yednannya vidnovlyuvanykh dzherel
     energiyi do elektrychnykh merezh]. The dissertation on competition of a scientific degree of the
     candidate of technical sciences. tech. Science. Kyiv, Institute of Electrodynamics of NAS of Ukraine,
     2017. - 145 p. (In Ukranian).
[7] Instruments            for           assessing         the         quality        of         electricity.
     https://www.icsgroup.ru/upload/iblock/e92/09_FlukeEnergyQualityMeters.pdf
[8] Ye. T. Volodarskyi, A. V. Voloshko. System monitoring electrical quality energy in decentralized
     systems power supply [Systema monitoryngu yakosti elektrychnoyi energiyi v decentralizovanykh
     systemakh elektropostachannya]. Eastern-European Journal of Enterprise Technologies (ISSN 1729-
     3774), № 3/8 (69), 2014. – pp. 10-17. (In Ukranian).
[9] B.S. Stogniy, O.V. Кyrylenko, О.F. Butkevych, M.F. Sopel. Application of means of monitoring of
     transitional regimes in UES of Ukraine at the decision of problems of dispatching management
     [Zastosuvannya zasobiv monitoryngu perexidnykh rezhymiv v OES Ukrayiny pry rozv'yazanni zadach
     dyspetchers`kogo keruvannya]. Technical Electrodynamics, № 7, 2009. - p. 27-35. (In Ukranian).
[10] ENIP-2 with support for synchronized vector measurements. Operation Manual [JeNIP-2 s
     podderzhkoj sinhronizirovannyh vectornyh izmerenij Rukovodstvo po ekspluatacii]. CJSC
     “Engineering Center. "Energoservice". Fleishman I.L. 23.08.2013. – 35 p. (In Russian).
[11] Transient monitoring systems (SMPR/ WAMS) [Sistemy monitoringa perehodnyh
     rezhimov (SMPR/WAMS)] (In Russian). https://parma.spb.ru/ingeeniring/sistemy/sistemy-
     monitoringa- perekhodnykh-rezhimov-sapr-wams/
[12] Srdjan Skok, Kristijan Frlan, Krešimir Ugarković. Detection and Protection of Distributed
     Generation from Island Operation by Using PMUs. Energy Procedia 141, December 2017. - pp.
     438-442. DOI: 10.1016/j.egypro.2017.11.057.
[13] Bronovyts`kyj V.V., Prokhorenko A.A., Kiktiev M.O. Information system for assessing the quality
     of electricity in educational institutions [Informacijna systema ocinky yakosti elektrychnoyi energiyi
     u navchal`nykh zakladakh]. International scientific-practical conference "The state of the educational
     process in today's challenges", Dnipro, 12.02.2021. - c. 52-55. (In Ukranian).
[14] N. Kiktev, V. Osypenko, N. Shkurpela, A. Balaniuk. Input Data Clustering for the Efficient
     Operation of Renewable Energy Sources in a Distributed Information System. 2020 IEEE 15th
     International Conference on Computer Sciences and Information Technologies (CSIT). Zbarazh,
     Ukraine, 23-26 Sept. 2020. – pp. 9-12. DOI: 10.1109/CSIT49958.2020.9321940.
[15] N. Kiktev, T. Lendiel, V. Osypenko. Application of the internet of things technology in the
     automation of the production of compound feed and premixes. Selected Papers of the 7th International
     Conference "Information Technology and Interactions" (IT&I-2020). Conferece Proceedings, Kyiv,
     Ukraine, December 02-03, 2020. CEUR Workshop Proceedings, 2021, vol. 2833, pp. 124–133.
[16] Muhammad Usama Usman, M. Omar Faruque. Applications of synchrophasor technologies in power
     systems. Journal of Modern Power Systems and Clean Energy, vol. 7 (2019). - pр. 211–226.
[17] Kiktev, N., Osypenko, V., Kalivoshko, O., Kutyrev, A. Information system for decision-making in
     the management of renewable energy sources in the microgrid system, CEUR Workshop
     Proceedings, 2021, 3018, pp. 101–110.
[18] Hnatiienko H. Choice Manipulation in Multicriteria Optimization Problems / Selected
     Papers of the XIX International Scientific and Practical Conference "Information
     Technologies and Security" (ITS 2019), pp. 234–245 (2019).


                                                                                                         185