Assessment of Energy Use Based on an Implementation of IoT, Cloud Systems, and Artiﬁcial Intelligence

: Nowadays products are developed at a rapid pace, with shorter and shorter times between concept and go to market. With the advancement in technology, product designers and manufacturers can use new approaches to obtain information about their products and transform it into knowledge that they can use to improve the product. We developed the Poket Framework platform to facilitate the generation of product knowledge. In order to increase the reliability and safety in operation of electrical equipment, an evaluation is proposed, through tests and studies, using the original Poket Framework platform. Thus, several tests and studies were performed, which included testing and analyzing the correct integration in several use cases and remote data acquisition, and testing and analysis of the Poket Framework using literature established data sets of household appliances and electrical systems. Possible evolutions and Poket platform extensions are also considered.


Introduction
Advances in the field of digital communications have allowed remote control and monitoring of equipment and installations in real time, the interconnection of industrial complexes, laboratories located at long distances of hundreds of kilometers, etc. [1][2][3][4].
The term "Industry 4.0" was first introduced publicly in 2011 by a group of representatives from various fields (such as business, politics, and academia), as part of an initiative to increase German competitiveness in the manufacturing industry. The German federal government adopted the idea in its High Technology Strategy for 2020. Subsequently, a working group was formed to provide further advice on the implementation of Industry 4.0 [5,6]. "Industry 4.0" is a term often used to refer to the development process in production management and chain production. The term also refers to the fourth industrial revolution. The fourth industrial revolution encompasses areas that are not normally classified as industry, such as smart cities, for example [7].
Although the terms "Industry 4.0" and "fourth industrial revolution" are often used interchangeably, "Industry 4.0" factories have machines that are complemented by connectivity and wireless sensors, connected to a system that can view the entire production line and take decisions about its own operation [8][9][10].
The digitization of the production process has benefited from other novel technologies, such as blockchain [11]. There are also innovative approaches to sensor data manipulation and storage using blockchain technologies, thus providing decentralization, transparency, and immutability [12,13].
In essence, Industry 4.0 is the trend towards automation and data exchange in technologies and manufacturing processes that include cyber-physical systems (CPS), the 1.
Interconnection: The ability of machines, devices, sensors, and people to connect and communicate with each other through the Internet of Things (IoT) or Internet of People (IoP).

2.
Transparency of information: The transparency offered by Industry 4.0 technology provides operators with a wealth of useful information needed to make the right decisions.

3.
Technical assistance: First, the ability of maintain systems to support people by aggregating and visualizing information comprehensively to make informed decisions and resolve urgent issues in a short time. Second, the ability of physical cybernetic systems to physically support people by performing a series of unpleasant, too strenuous, or unsafe tasks for their human counterpart. 4.
Decentralized decisions: The ability of physical cybernetic systems to make decisions on their own and to perform their tasks as autonomously as possible. Only in case of exceptions, interferences or conflicting objectives, tasks are delegated to a higher level.
Industry 4.0 provides sustainable production for the environment through environmentally friendly manufacturing processes, green supply chain management, and green products [24]. These concepts refer to both manufacturing and logistics and they represent a link between the real world and the virtual world, where "reality" is determined by cyber-systems featuring a certain level of artificial intelligence [25]. "Industry 4.0" is an abstract and complex multi-component term when we take a closer look at society and current digital trends. To understand how extensive these components are, here are some examples of digital technologies that are part of the concept: mobile devices [26], Internet of Things (IoT) platforms [27], location detection technologies [28], advanced human-machine interfaces [29], authentication and fraud detection [30,31], 3D printing [32], smart sensors [33,34], data analysis and advanced algorithms [35,36], multi-level customer interaction and customer profiling [37], augmented reality [38], and cloud [39]. Mainly, these technologies can be summarized in four major components, defining the term "Industry 4.0" or "smart factory": • Cyber-physical systems; • Internet of things; • Cloud computing; • Cognitive computing.
With the help of cyber-physical systems that monitor physical processes, a virtual copy of the physical world can be designed. Thus, these systems have the ability to make decentralized decisions on their own and achieve a high degree of autonomy. As a result, Industry 4.0 is a network with a wide range of new technologies to create value [40].
Vertically, Industry 4.0 integrates organization-wide processes, for example, product development, manufacturing, logistics, and service processes, while horizontally, Industry 4.0 includes internal operations from suppliers to customers, plus all key partners.
In the following sections we present the Poket framework designed to monitor and record product parameters in the broader context of Industry 4.0. The system uses data analysis and data visualization algorithms to create product knowledge to be used to improve the product design, the manufacturing process, the maintenance and service procedures, etc. Section 2 presents the general methods and materials used to create the Poket framework, followed by several experiments in different contexts in Section 3, including one use case with data gathered from our custom use case in Section 3.1 and standard literature datasets used to test the Poket data analysis tool in Section 3.2. The final discussions and conclusions are presented in Section 4.

Materials and Methods
Integrating new methods of data collection and analysis, for example, by expanding existing products or creating new digitized products, helps companies generate product usage data and thus refine products to better meet customer needs.
Generating customer satisfaction is a multi-stage process that never ends, because customer needs are constantly changing. Therefore, companies are expanding their offerings by establishing disruptive digital business models to provide their customers with digital solutions that best meet their needs.
The business potential of the Fourth Industrial Revolution lies not only in optimizing the operational processes, but also in its services for a wide range of applications. Therefore, the Internet of Things is complemented by the so-called "Internet of Services", because smart products offer their capabilities as smart services.
There are four industrial revolutions, starting with the 18th century mechanization based on the invention of the steam engine. At the end of the 19th century came the next massive technological advancements in the field of industries and the use of new energy sources: electricity, gas, and oil. Adding chemical synthesis, methods of communication, the automobile and the plane makes this the Second Industrial Revolution one of the most important [41].
Building on the third industrial revolution that included the creation of computers and the Internet, Industry 4.0 takes technology to the next evolution by blurring the lines between the digital and the physical world. Industry 4.0 is an all-encompassing term to refer to how computers, data, and automation evolve and come together to change the way work is done, and especially, the fabrication process. Elements such as automation, Artificial Intelligence (AI), IoT and others are becoming more widespread. While past industrial revolutions have essentially focused on the progress of technology, Industry 4.0 is more about the development of technology and its impact on everyday life.
The topic of integrating sensors, networks, cloud, and artificial intelligence into complete systems with objectives such as automatic decision making, knowledge generation or monitoring is in progress. Sensor networks are nowadays used in various configurations, wired or wireless, only by monitoring or operating, independently or connected to Industry 4.0. The multitude of data taken and taken, determined a specific approach in terms of architecture and data. An important role is played by virtual representation and modeling of sensor networks [42].
The virtual model is used to evaluate performance and cost-effectiveness indicators, showing that the sensor-cloud architecture outperforms the traditional wireless network by increasing sensor life, decreasing power consumption, improving sensor availability and data reliability in monitoring remote, stabilization of multi-agent sensor systems. All of the above come together into the data acquisition part of Poket, using sensors and single board computers to gather product data and send it through the Internet to a cloud system responsible for receiving, processing, storing, and serving information.
Clustering is one of the most commonly used exploratory data analysis techniques that can provide an image of the data structure. It can be seen as the task of identifying groups so that the data in the same cluster are very similar, while the data points in different clusters are very different. The decision of the similarity measure to be used is application specific. Clustering analysis can be done based on the characteristics in which we try to find subgroups based on similarities [43,44].
An example of analysis uses K-means. K-means clustering is one of the simplest and most popular unsupervised machine learning algorithms. Usually, unsupervised algorithms make inferences from data sets using only input vectors without referring to known or labeled results [45].
The goal of K-means is simple: group similar data points and search for underlying patterns. Thus, K-means looks for a fixed number (k) of clusters in a data set. A cluster refers to a collection of data points aggregated together because of certain similarities. The "means" in K-means refer to data mediation; that is, finding the central statistical indicator.
The algorithms described above are used by the artificial intelligence component of the Poket system in order to transform sensor data into product knowledge.
The first equipment used to test in a real environment the possibility of obtaining data from electronic devices, was a commercial product developed by ALI6 srl-Italy. HyREI is a complex electronic device capable of managing the production of electricity from renewable and non-renewable sources, in a rational and efficient way, satisfying the partial or total energy needs of domestic and/or industrial consumers.
HyREI is a SMART GRID equipment capable of creating customized electrical networks. It is an extremely flexible and modular product, adaptable to different applications and scalable for different powers, from 500 W to 1000 kW and over.
The monitored product consists of a hybrid energy production, storage and management system using the electrical management and control panel (HyREI), which, combined with a photovoltaic system and energy storage batteries, is able to ensure energy savings and autonomy, even in the absence of a direct connection to the power supply.
HyREI is an integrated SMART GRID equipment, which was created to meet the partial or total energy needs of electricity users of any kind. HyREI is an extremely flexible and modular system, suitable for off-grid or on-grid installations being a support of the electricity network in standby mode and is able to meet electricity needs by optimizing production from renewable energy sources, energy accumulation, and distribution based on user needs, Figure 1.
The equipment provides consumers with electricity in the form of alternating current, through an inverter, which converts the direct current from the bus of renewable sources and storage batteries into alternating current, Figure 2.
For a system of 1 kW rated power, it consists of: • Photovoltaic system (4 photovoltaic panels) for a total power of approximately 1 kWp; • Pack with 4 batteries 240 Ah @ 12V, 5 h autonomy (42.8 A at 10.2 Volts); • Electrical control panel and system management (HyREI).
The Poket platform was designed and developed to gather data and generate knowledge about intelligent products. By feeding product usage information back to the earlier design and production phases and forwards to support areas (e.g., maintenance), the project aims to provide key players effective instruments to create better uses, services, design improvements, and then added value. The equipment provides consumers with electricity in the form of alternating current, through an inverter, which converts the direct current from the bus of renewable sources and storage batteries into alternating current, Figure 2.
For a system of 1 kW rated power, it consists of:  The Poket platform was designed and developed to gather data and generate knowledge about intelligent products. By feeding product usage information back to the earlier design and production phases and forwards to support areas (e.g., maintenance), the project aims to provide key players effective instruments to create better uses, services, design improvements, and then added value.  The equipment provides consumers with electricity in the form of alternating current, through an inverter, which converts the direct current from the bus of renewable sources and storage batteries into alternating current, Figure 2.
For a system of 1 kW rated power, it consists of:  Photovoltaic system (4 photovoltaic panels) for a total power of approximately 1 kWp;  Pack with 4 batteries 240 Ah @ 12V, 5 h autonomy (42.8 A at 10.2 Volts);  Electrical control panel and system management (HyREI). The Poket platform was designed and developed to gather data and generate knowledge about intelligent products. By feeding product usage information back to the earlier design and production phases and forwards to support areas (e.g., maintenance), the project aims to provide key players effective instruments to create better uses, services, design improvements, and then added value. Development of the Poket framework platform took into account reliability issues that often affect IoT implementations. Further details of the Poket configuration and our research into reliability improving techniques in five main areas of the Sensor-Cloud Systems: network communication performance, auto recovery, local backup, automated software testing, and system security are presented in a separate article [46].
During the experimental phase, the Poket platform was introduced in parallel with the HyREI control system, in order to record its characteristic parameters (current, voltage, and temperature) and, finally, to analyze the recorded data, Figure 3. that often affect IoT implementations. Further details of the Poket configuration and our research into reliability improving techniques in five main areas of the Sensor-Cloud Systems: network communication performance, auto recovery, local backup, automated software testing, and system security are presented in a separate article [46].
During the experimental phase, the Poket platform was introduced in parallel with the HyREI control system, in order to record its characteristic parameters (current, voltage, and temperature) and, finally, to analyze the recorded data, Figure 3.

Product Monitoring and Analysis of a Hybrid Power System
In the first phase, the correct operation of data acquisition and storage was tested, using the Poket platform. The system is currently in the monitoring phase, to obtain more data and to allocate analysis. Table 1 is an extract (from 09/11/2020 to 10/11/2020) of the data obtained (voltage and output current at the inverter and the temperature of the photovoltaic panel).

Product Monitoring and Analysis of a Hybrid Power System
In the first phase, the correct operation of data acquisition and storage was tested, using the Poket platform. The system is currently in the monitoring phase, to obtain more data and to allocate analysis. Table 1 is an extract (from 09/11/2020 to 10/11/2020) of the data obtained (voltage and output current at the inverter and the temperature of the photovoltaic panel).  Figure 4 shows the acquired and processed data (power output from the inverter calculated from the voltage and current of power line and temperature of the photovoltaic panels) of the same HyREI equipment over 30 days (from 12/10/2020 to 11/11/2020).  Figure 4 shows the acquired and processed data (power output from the inverter calculated from the voltage and current of power line and temperature of the photovoltaic panels) of the same HyREI equipment over 30 days (from 12/10/2020 to 11/11/2020). To provide users with a data analysis tool using machine learning, the "Dataiku" tool has been integrated into the Poket platform. To integrate the data acquired by the Poket portal into the Dataiku tool, it is possible to use the connection to the MySQL Manunet database.
Monitoring data was uploaded to the Poket data analysis section. By using the tool provided by 'Dataiku', it is possible to perform a simplified analysis of the data acquired through the Poket portal. In particular, once the dataset has been uploaded, it is possible to perform machine learning and data grouping analyzes to identify the "hidden" links between use cases and to create added value for designers and users.
Given the purpose of the system and the inertia in the variation of renewable energy sources (in this case HyREI was connected to a photovoltaic system), it was decided to perform sampling at a rate of about four samples per hour. To provide users with a data analysis tool using machine learning, the "Dataiku" tool has been integrated into the Poket platform. To integrate the data acquired by the Poket portal into the Dataiku tool, it is possible to use the connection to the MySQL Manunet database.
Monitoring data was uploaded to the Poket data analysis section. By using the tool provided by 'Dataiku', it is possible to perform a simplified analysis of the data acquired through the Poket portal. In particular, once the dataset has been uploaded, it is possible Energies 2021, 14, 3202 9 of 21 to perform machine learning and data grouping analyzes to identify the "hidden" links between use cases and to create added value for designers and users.
Given the purpose of the system and the inertia in the variation of renewable energy sources (in this case HyREI was connected to a photovoltaic system), it was decided to perform sampling at a rate of about four samples per hour.
Once the features have been identified, it is possible to select the type of algorithm that will be used in the data analysis. Once the training procedure has been performed, the interface provides a comparison of the results of different algorithms using different metrics. Figure 5 shows the scatter plot of the results of the three-cluster group, while Figure 6 shows the scatter plot of the results of the five-cluster group Once the features have been identified, it is possible to select the type of algorithm that will be used in the data analysis. Once the training procedure has been performed, the interface provides a comparison of the results of different algorithms using different metrics. Figure 5 shows the scatter plot of the results of the three-cluster group, while Figure 6 shows the scatter plot of the results of the five-cluster group In particular, by dividing the data into three clusters, Figure 5, the algorithm highlighted three centroids with increasing powers. The first centroid, yellow in color, appears at low temperatures and powers; the second centroid, red in color, appears at medium temperatures and high powers; the third centroid, green, appears at high temperatures and medium powers. These results and this graph are an important source for a designer, as they show very important information about the sizing of the electricity generation system.
From the graph, in fact, it can be seen that as the temperature increases (an event that certainly corresponds to a higher irradiation), electricity production increases to a certain value, beyond which there is a deterioration in system performance. This, from a design point of view, may be related to an undersizing of the electrical cables which, having an inadequate section, implies a loss of energy caused by the Joule effect, when the currents involved increase. This consideration is one of many that can be made through data analysis. In particular, by dividing the data into three clusters, Figure 5, the algorithm highlighted three centroids with increasing powers. The first centroid, yellow in color, appears at low temperatures and powers; the second centroid, red in color, appears at medium temperatures and high powers; the third centroid, green, appears at high temperatures and medium powers. These results and this graph are an important source for a designer, as they show very important information about the sizing of the electricity generation system.
From the graph, in fact, it can be seen that as the temperature increases (an event that certainly corresponds to a higher irradiation), electricity production increases to a certain value, beyond which there is a deterioration in system performance. This, from a design point of view, may be related to an undersizing of the electrical cables which, having an inadequate section, implies a loss of energy caused by the Joule effect, when the currents involved increase. This consideration is one of many that can be made through data analysis. The same data can be summarized through an interface that allows reporting of both the data set and the spreadsheets in the form of a table, Figure 7.

Data Testing and Analysis from Electrical Appliances and Systems
To evaluate the potential of the Poket framework, in addition to validation tests on HyREI, additional studies and data analyzes were performed using different data sets found in the literature. The reason for this choice was to validate the idea behind the Poket framework, namely to provide small and medium-sized enterprises with an efficient The same data can be summarized through an interface that allows reporting of both the data set and the spreadsheets in the form of a table, Figure 7. The same data can be summarized through an interface that allows reporting of both the data set and the spreadsheets in the form of a table, Figure 7.

Data Testing and Analysis from Electrical Appliances and Systems
To evaluate the potential of the Poket framework, in addition to validation tests on HyREI, additional studies and data analyzes were performed using different data sets found in the literature. The reason for this choice was to validate the idea behind the Poket framework, namely to provide small and medium-sized enterprises with an efficient

Data Testing and Analysis from Electrical Appliances and Systems
To evaluate the potential of the Poket framework, in addition to validation tests on HyREI, additional studies and data analyzes were performed using different data sets found in the literature. The reason for this choice was to validate the idea behind the Poket framework, namely to provide small and medium-sized enterprises with an efficient For more comprehensive tests, the "UK-DALE" data set, present in the literature and widely used in sectoral studies, was chosen [47]. UK-DALE is an open access data set from the UK that records household electricity consumption at a sampling rate of 16 kHz for the whole house and 1/6 Hz for individual appliances. This is the first open access data set in the UK to have this temporal resolution. The authors recorded data from five houses, one of which was recorded for 655 days, the longest duration we know of for any set of energy data at this sampling rate.
The individual device monitoring systems used for the UK-DALE dataset have a button to allow users to turn the connected device on and off. The authors recorded the activity of this switch in a channel_ <X> _button_press.dat file. If the switch has just been activated, a "1" is recorded. If the switch has just been turned off, a "0" is recorded. The reason behind recording the events related to storing a switch is that they provide (imperfect) information about room use. Startup events should be a perfectly clean record (ie the only possible reason for a data startup event to occur is that the user pressed the switch). Unfortunately, deactivation events can include false positive signals. From time to time, electronic devices stop spontaneously (an event that is indistinguishable from the actual push of a button). Moreover, if the power is interrupted and returned within 12 s, it will be recorded as a shutdown event.
Dataiku's machine learning capabilities allow analysts, regardless of their level of experience, to reap the benefits of data science without advanced coding or training. Dataiku's visual and automated platform covers the entire data flow, making data science and machine learning an extension rather than a limit to the current skills of analysts. Dataiku integration can be seen as an asset for using the Poket platform even by users who are not very good at machine learning. Once the data was uploaded, it was possible, through the graphical interface, to stack the individual files and analyze them using grouping algorithms and evaluate the "hidden" content useful for the analysis phase.
Using the clustering algorithms, no interesting data can be derived from the grouping, Figure 8, while useful information can be obtained by representing the use of kettles over time, Figure 9. From this graph, in fact, it can be deduced that such devices are usually used in a discontinuous manner and are therefore not subject to wear and tear due to incorrect heat dissipation during their use. system capable of transforming information into knowledge throughout the life cycle of the product. For more comprehensive tests, the "UK-DALE" data set, present in the literature and widely used in sectoral studies, was chosen [47]. UK-DALE is an open access data set from the UK that records household electricity consumption at a sampling rate of 16 kHz for the whole house and 1/6 Hz for individual appliances. This is the first open access data set in the UK to have this temporal resolution. The authors recorded data from five houses, one of which was recorded for 655 days, the longest duration we know of for any set of energy data at this sampling rate.
The individual device monitoring systems used for the UK-DALE dataset have a button to allow users to turn the connected device on and off. The authors recorded the activity of this switch in a channel_ <X> _button_press.dat file. If the switch has just been activated, a "1" is recorded. If the switch has just been turned off, a "0" is recorded. The reason behind recording the events related to storing a switch is that they provide (imperfect) information about room use. Startup events should be a perfectly clean record (ie the only possible reason for a data startup event to occur is that the user pressed the switch). Unfortunately, deactivation events can include false positive signals. From time to time, electronic devices stop spontaneously (an event that is indistinguishable from the actual push of a button). Moreover, if the power is interrupted and returned within 12 s, it will be recorded as a shutdown event.
Dataiku's machine learning capabilities allow analysts, regardless of their level of experience, to reap the benefits of data science without advanced coding or training. Dataiku's visual and automated platform covers the entire data flow, making data science and machine learning an extension rather than a limit to the current skills of analysts. Dataiku integration can be seen as an asset for using the Poket platform even by users who are not very good at machine learning. Once the data was uploaded, it was possible, through the graphical interface, to stack the individual files and analyze them using grouping algorithms and evaluate the "hidden" content useful for the analysis phase.
Using the clustering algorithms, no interesting data can be derived from the grouping, Figure 8, while useful information can be obtained by representing the use of kettles over time, Figure 9. From this graph, in fact, it can be deduced that such devices are usually used in a discontinuous manner and are therefore not subject to wear and tear due to incorrect heat dissipation during their use.  The same consideration arose when evaluating a typical use of non-professional printers. To fully understand the potential of the idea behind the Poket system, another data set available in the literature was considered. Energy consumption data include actual power, reactive power, Root Mean Square (RMS) current, RMS voltage, frequency, and voltage phase relative to current. Two hundred and twenty-five devices were recorded in two one-hour sessions. The database is balanced with 15 different brands/models divided into 15 categories. The database is made available free of charge to the scientific community for the reproducibility of the experiment [48]. Figure 10 shows the power trends absorbed during typical printer use; from the absorbed power it is possible to derive the moments of activation and use by a user of the device itself. The same consideration arose when evaluating a typical use of non-professional printers. To fully understand the potential of the idea behind the Poket system, another data set available in the literature was considered. Energy consumption data include actual power, reactive power, Root Mean Square (RMS) current, RMS voltage, frequency, and voltage phase relative to current. Two hundred and twenty-five devices were recorded in two one-hour sessions. The database is balanced with 15 different brands/models divided into 15 categories. The database is made available free of charge to the scientific community for the reproducibility of the experiment [48]. Figure 10 shows the power trends absorbed during typical printer use; from the absorbed power it is possible to derive the moments of activation and use by a user of the device itself. The same consideration arose when evaluating a typical use of non-professional printers. To fully understand the potential of the idea behind the Poket system, another data set available in the literature was considered. Energy consumption data include actual power, reactive power, Root Mean Square (RMS) current, RMS voltage, frequency, and voltage phase relative to current. Two hundred and twenty-five devices were recorded in two one-hour sessions. The database is balanced with 15 different brands/models divided into 15 categories. The database is made available free of charge to the scientific community for the reproducibility of the experiment [48]. Figure 10 shows the power trends absorbed during typical printer use; from the absorbed power it is possible to derive the moments of activation and use by a user of the device itself. The data show that, in most cases (approximately 90%), printers are used intermittently and therefore, if equipped with preheating systems, this is not energy sustainable; stand-by should therefore be less energy consuming. In some printers there is a standby power consumption of up to 30W; from an energy point of view, the size, and operation of this printer model should be reviewed. From this analysis it is clear how important it is for a designer and a user to identify the problems behind the use of products.

Data Analysis and Prediction Examples Using the Poket Platform
An example of the use of the Poket platform for the analysis of data regarding the comparison of energy consumption in three different sites is shown, Figure 11. In particular, a data set describing the consumption of two hotels and a chemical production site was identified. In addition to the time stamp, both energy consumption and temperatures in degrees Celsius were reported in the data set with a sampling time of 10 s. The data show that, in most cases (approximately 90%), printers are used intermittently and therefore, if equipped with preheating systems, this is not energy sustainable; stand-by should therefore be less energy consuming. In some printers there is a standby power consumption of up to 30W; from an energy point of view, the size, and operation of this printer model should be reviewed. From this analysis it is clear how important it is for a designer and a user to identify the problems behind the use of products.

Data Analysis and Prediction Examples Using the Poket Platform
An example of the use of the Poket platform for the analysis of data regarding the comparison of energy consumption in three different sites is shown, Figure 11. In particular, a data set describing the consumption of two hotels and a chemical production site was identified. In addition to the time stamp, both energy consumption and temperatures in degrees Celsius were reported in the data set with a sampling time of 10 s.
After pre-processing, various analyzes of the data were performed. Figure 12 shows the data flow developed. Using the graphical interface, it is possible to trace all the results obtained to analyze them and evaluate any "hidden" information from the acquired data. Below are the consumption trends for the three places of interest, depending on the temperature, Figures 13-15. After pre-processing, various analyzes of the data were performed. Figure 12 shows the data flow developed. Using the graphical interface, it is possible to trace all the results obtained to analyze them and evaluate any "hidden" information from the acquired data. Below are the consumption trends for the three places of interest, depending on the temperature, Figures 13-15.          From the data it is possible to point out that for the chemical plant site there are no obvious correlations between temperature trends and consumption. With regard to the data from the two hotel sites, it is clear that, in the first case, energy consumption triples from an external temperature of 10 °C to a temperature of −10 °C, whereas, in the second case, the variation is 20% compared to the value recorded at 10 °C. These data suggest that, in the case of the ID18 site, the insulation system of the entire property should be revised, as there are exponential energy losses at low temperatures.
Through the Poket platform it is also possible to perform value prediction analysis. Figure 16 shows the comparison between the energy consumption values present in the database and the consumption values predicted by the regression obtained in the previous training phase on another data section. This predictive approach, applied to energy consumption data, can be extended to predict the behavior of machines and appliances and can be a valid help for end users. In addition, this approach gives the way for predictive machine maintenance. Predictive maintenance is one of the most interesting concepts among many related to Industry 4.0, i.e., what is now unanimously defined as the fourth industrial revolution. In particular, the ability to predict with increasing accuracy any malfunctions or failures affecting machinery and equipment is of great interest to all companies that would suffer a significant economic and productive response to the temporary interruption of their activity.  From the data it is possible to point out that for the chemical plant site there are no obvious correlations between temperature trends and consumption. With regard to the data from the two hotel sites, it is clear that, in the first case, energy consumption triples from an external temperature of 10 • C to a temperature of −10 • C, whereas, in the second case, the variation is 20% compared to the value recorded at 10 • C. These data suggest that, in the case of the ID18 site, the insulation system of the entire property should be revised, as there are exponential energy losses at low temperatures.
Through the Poket platform it is also possible to perform value prediction analysis. Figure 16 shows the comparison between the energy consumption values present in the database and the consumption values predicted by the regression obtained in the previous training phase on another data section. This predictive approach, applied to energy consumption data, can be extended to predict the behavior of machines and appliances and can be a valid help for end users. In addition, this approach gives the way for predictive machine maintenance. Predictive maintenance is one of the most interesting concepts among many related to Industry 4.0, i.e., what is now unanimously defined as the fourth industrial revolution. In particular, the ability to predict with increasing accuracy any malfunctions or failures affecting machinery and equipment is of great interest to all companies that would suffer a significant economic and productive response to the temporary interruption of their activity. From the data it is possible to point out that for the chemical plant site there are no obvious correlations between temperature trends and consumption. With regard to the data from the two hotel sites, it is clear that, in the first case, energy consumption triples from an external temperature of 10 °C to a temperature of −10 °C, whereas, in the second case, the variation is 20% compared to the value recorded at 10 °C. These data suggest that, in the case of the ID18 site, the insulation system of the entire property should be revised, as there are exponential energy losses at low temperatures.
Through the Poket platform it is also possible to perform value prediction analysis. Figure 16 shows the comparison between the energy consumption values present in the database and the consumption values predicted by the regression obtained in the previous training phase on another data section. This predictive approach, applied to energy consumption data, can be extended to predict the behavior of machines and appliances and can be a valid help for end users. In addition, this approach gives the way for predictive machine maintenance. Predictive maintenance is one of the most interesting concepts among many related to Industry 4.0, i.e., what is now unanimously defined as the fourth industrial revolution. In particular, the ability to predict with increasing accuracy any malfunctions or failures affecting machinery and equipment is of great interest to all companies that would suffer a significant economic and productive response to the temporary interruption of their activity.

Discussion
The original Poket framework was successfully used to assess the energy usage in several scenarios, both real case experiments and scientific dataset found in the literature. In the first experiment, using a hybrid AC/DC power system, our system was able to correctly monitor current parameters as well as automatically provide clustering information using the k-means method. The most significant centroid appears at low temperatures and powers, suggesting that is the usage scenario that would benefit the most from efficiency and reliability improving product engineering. Furthermore, we see that electricity production increases to a certain value, beyond which there is a deterioration in system performance. This, from a design point of view, may be related to an under-sizing of the electrical cables, leading to a loss of energy caused by the Joule effect when the currents involved increase.
The second experiment analyzed in this paper used a data set found in the literature under the name UK-DALE, containing household appliances electricity consumption from five houses in UK, recorded over a period of two years. This data set was loaded into the Poket framework and processed by the clustering algorithm and the timeline data representation algorithm. The most pregnant centroid was visible as a sustained consumption around the 2400 W mark, attributed to heating systems and kettles.
A third experiment also used a data set found in the literature, containing nonprofessional printing devices. In total, 225 devices are recorded, covering 15 categories of printer brands and models. The Poket system was able to showcase significant differences between the printers in this dataset and prove its valuable contribution to product knowledge generation, that in turn can be used to improve the products themselves.
The next experiment presented in this paper covers three business locations: two hotels and a chemical production site. The influence of outside temperature on the business energy consumption was measured and the results show that for the chemical plant site there are no obvious correlations between temperature trends and consumption. In the case of the first hotel the energy consumption grew significantly while the external temperature went down and sub-freezing. The second hotel has the lowest energy requirement while the outside temperature is between 10 and 15 • C, with slight rise when heating or cooling systems are used.
The last experiment was designed to test the predictive algorithm built into the Poket system. The results were very promising when predicting energy consumption based on historical data. In addition, this approach leads the way for predictive machine maintenance, one of the most interesting concepts related to what is now unanimously defined as the fourth industrial revolution. For the Poket system, the tests were used for the optimization and integration phases. Various tests have been performed to cover various issues that may affect the Poket system. In terms of network communication, this is a complex issue, with a multitude of modules and protocols involved. At the same time, cloud sensor systems use distributed equipment that is most often limited in terms of power consumption, computing power, memory, and storage.
So far, with IoT advances, a significant part of the research effort has been in comparing different communication protocols that could be used in related applications and scenarios. These efforts include comparisons based on the different characteristics of these protocols (the underlying transport protocol, the interaction model, security, and quality of service), as well as the strengths and weaknesses of their individual performance in different systems related to the Internet of Things. In general, there is no comparative study of all the protocols mentioned in a scenario covering a broader architectural paradigm that combines IoT systems, the cloud transition zone and cloud computing, leaving it as a major challenge for future research. The next step towards this goal would be to evaluate the performance of the various protocols examined in a useful application scenario. The use of solutions with multiple communication protocols presents, in fact, an important new direction of research: interoperability and their interaction models.