Advancements in technology, continuous innovation, and the emergence of the Industry 4.0 paradigm are driving Distribution System Operators toward increasingly competitive environments where flexible demand response mechanisms are essential. In many developing nations, however, the absence of standardized measurement frameworks across industrial process chains hinders the effective deployment of demand-side management models, leading to inefficiencies in data analysis and limiting the accurate assessment of large-scale consumers’ contributions to flexibility. To address this gap, the present study utilizes load profile data—specifically energy and power measurements obtained from utility meters—as input variables to generate disaggregated forecasts at 15-minute intervals across four defined time segments. The proposed approach is validated through performance metrics, with outcomes assessed using the Root Mean Square Error (RMSE) to quantify total methodological error. The framework integrates Machine Learning and Big Data techniques implemented in Python, employing Combinatorial Disaggregation Optimization alongside Factorial Hidden Markov Models to enhance prediction accuracy.
Limited understanding of consumption flexibility within electricity demand management initiatives, combined with insufficient standardization and data acquisition techniques for industrial energy use, constrains both operational efficiency and economic performance, ultimately reducing industries’ capacity to optimize resource utilization [1, 2]. The industrial sector accounts for a major share of total electricity demand in most countries; however, in developing economies, the adoption of advanced monitoring and innovation systems to track end-use energy consumption remains limited, negatively affecting global competitiveness [3, 4].
Implementing modern energy management strategies and technologies can significantly enhance productivity and competitive positioning, particularly in emerging markets. Increasingly, data-driven methodologies—especially those leveraging Machine Learning (ML)—are being adopted in research to process extensive datasets characteristic of Big Data (BD) and to address complex nonlinear challenges [5]. Segmenting and analyzing end-use energy consumption in industrial contexts enables a deeper understanding of inefficiencies and supports the evaluation of energy-saving measures before and after their implementation. Proper identification of classification features is therefore critical when examining energy usage across production systems [6].
Non-Intrusive Load Monitoring (NILM), also known as energy disaggregation, aims to determine the distribution of energy consumption across end uses. This approach opens new avenues for intelligent energy management by enabling behavioral changes in consumption patterns, while also assisting distribution utilities in forecasting aggregated demand and in designing pricing schemes, such as Time-of-Use (TOU) tariffs [7, 8].
Establishing standardized methods for collecting and managing industrial electricity consumption data is crucial. A lack of visibility into energy consumption across production stages leads to inefficiencies in both operational and financial management, thereby limiting the potential for optimization [9]. Continuous monitoring of electricity demand plays a key role in production planning, and disaggregating energy use at the process level provides actionable insights for more effective energy management [10, 11].
Industry 4.0 represents a global shift toward modernization, driven by advancements in information and communication technologies. This transformation involves integrating new communication protocols, enhanced cybersecurity measures, interconnected devices, and flexible user interfaces [12].
Within this framework, the Internet of Things (IoT) and Cyber-Physical Systems (CPS) are central to enabling predictive and intelligent production environments. By applying mathematical models to process-monitoring data, these systems identify behavioral patterns that can be utilized for forecasting, classification, and anomaly detection, which are core challenges of Industry 4.0 [12, 13]. In developed economies, industrial facilities are typically highly automated, incorporating advanced machinery and robotic systems. Data exchange is facilitated through cloud-based infrastructures, where each component performs specialized functions [3, 4].
Conversely, many Latin American countries face limitations in advancing Research and Development (R&D) due to structural characteristics of their production sectors and delayed innovation policies. Although awareness of Industry 4.0 challenges has increased in recent years, particularly regarding digital transformation and infrastructure optimization, significant gaps remain in technological adoption and human capital development [3, 14]. Differences across countries are largely influenced by the scale and effectiveness of governmental intervention, as well as institutional capacity to implement policies that support sustainable industrial value chains. In many emerging economies, clear strategic direction and policy consistency are still lacking [14]. Financial constraints further restrict organizations’ ability to invest in advanced equipment, infrastructure, and energy-efficient innovations, posing a major barrier to Industry 4.0 adoption [14, 15].
Globally, both governments and industries are placing growing emphasis on energy efficiency and the development of forward-looking indicators to guide policy-making in energy-intensive sectors [6, 16].
In developed countries, industries often rely on Supervisory Control and Data Acquisition (SCADA) systems to enhance energy awareness and operational efficiency. These systems enable real-time monitoring and control of industrial processes by integrating sensors, communication networks, and software interfaces that present data in user-friendly dashboards [17, 18].
Accurate measurement of electrical parameters is fundamental for effective load management and fault detection. Real-time communication systems facilitate the monitoring and control of electrical loads while integrating energy and production data at the operational level, providing detailed insights that support informed decision-making in energy management [17, 19].
Earlier research has attempted to categorize industrial processes by energy end use, often using the concept of unit processes. These are typically divided into production and support functions. While this classification has been widely adopted, it does not fully capture the diversity and complexity of industrial operations, as many processes do not fit neatly into this framework and lack hierarchical differentiation based on energy-use complexity [19].
Therefore, it is necessary to establish a more detailed stratification of industrial processes by identifying relevant classification criteria, including supply characteristics and production methodologies that influence energy consumption [19].
In Aslam et al. [19], a hierarchical framework for categorizing energy end-use processes is proposed, distinguishing different levels based on complexity, technological characteristics, and operational methods.
In Gan et al. [20], an IoT-based monitoring architecture is introduced, consisting of three layers: a data-acquisition layer for measuring energy-related variables, a transmission layer for sending data to cloud-based servers, and an application layer for real-time visualization and data analysis to support energy management.
In Czosnyka et al. [21], a structured methodology is presented to reduce energy consumption without compromising production efficiency. This approach involves three stages: first, deploying advanced energy management controllers that eliminate the need for additional measurement devices; second, equipping production lines with supplementary systems for measurement, communication, control, and energy recovery; and third, optimizing financial returns through improved operational efficiency. This work emphasizes the role of technological upgrades in enhancing manufacturing performance. Table 1 summarizes the key contributions in this research area.
Table 1. NILM state-of-the-art operational research summary.
Chapter | Topics | Subtopic | Bibliography |
Introduction | |||
Disaggregation of the Load Profile in the Industry and Application of Real Data | |||
Supervised Learning | |||
Unsupervised and semi-supervised learning | |||
Machine Learning algorithms for disaggregation | |||
Combinatorial optimization (CO) | |||
Hidden Markov Models (HMM) | |||
Factorial Hidden Markov models (FHMM) | |||
Evaluation Metrics | |||
Methodology for acquisition, structure, and analysis of information | NILMTK: Open Source Toolkit for Non-Intrusive Load Monitoring | ||
Information | Information Structure |
The purpose of this research is to develop a structured approach for evaluating the flexibility of energy and power demand that large-scale consumers can provide to Distribution System Operators. This is achieved by combining Non-Intrusive Load Monitoring (NILM) techniques with Machine Learning (ML) methods to decompose overall energy consumption into its constituent components. The proposed framework offers a practical solution for industries that lack advanced, process-level metering systems, enabling them to extract detailed information from aggregated load profiles, analyze internal consumption patterns, and ultimately contribute controllable energy blocks to the grid.
The principal contributions of this study are outlined below:
· To design a methodological framework capable of disaggregating electricity demand using data obtained from utility meters, specifically through 15-minute interval load profiles of large or significant consumers, thereby enabling correlation of demand response without disrupting production activities.
· To determine the extent of flexibility in demand-side management that industrial consumers can offer by analyzing disaggregated load data and evaluating the impact of adjustments in production processes.
· To assess the proposed methodology through advanced data analytics and ML techniques, with performance evaluated using error-based metrics.
In industrial environments, load profile disaggregation relies on Machine Learning algorithms to estimate the distribution of energy consumption according to end-use processes. The NILMTK framework incorporates multiple disaggregation approaches, including classification methods based on trained models. These approaches can be categorized into three primary learning paradigms: supervised, unsupervised, and semi-supervised learning.
In Buzachis et al. [22], an approach based on the Fast Fourier Transform (FFT) is applied within a residential context to analyze current waveforms. This method focuses on identifying and characterizing electrical loads and devices by analyzing spectral variations, aiming to detect anomalies and prevent operational faults in household electrical systems.
Supervised learning techniques are trained using a combination of aggregated load measurements at the point of delivery and detailed consumption data corresponding to individual industrial processes. These methods rely on labelled datasets during the training phase [23]. Two main strategies are typically employed: optimization-based approaches and pattern recognition techniques. Examples include clustering methods and Bayesian frameworks used to infer the probable operational states of processes [24, 25].
Unsupervised learning models are developed using only aggregated load profile data from the delivery point, without requiring labelled information during training [23, 25, 26]. In contrast, semi-supervised learning integrates both labelled and unlabeled datasets. Within NILM applications, semi-supervised approaches are the most widely adopted, as they tend to deliver superior performance. In conventional ML settings, training and testing datasets are usually drawn from the same labelled source. However, in NILM applications, training may use either labelled or unlabeled data, whereas testing is performed strictly on labelled datasets derived from the activity-specific dataset [23].
Machine Learning algorithms enable the decomposition of aggregated load profiles into individual end-use consumption patterns at the delivery point. These methods offer several key advantages [6]:
· They significantly reduce the cost associated with deploying large-scale metering infrastructure [19].
· They allow for the utilization of existing electrical infrastructure without requiring extensive modifications [19].
· They facilitate the implementation of demand-side management strategies and operational control mechanisms [19].
Combinatorial Optimization (CO), originally introduced by George Hart, is a disaggregation algorithm that minimizes the discrepancy between the estimated sum of individual process loads and the total consumption measured at the main electricity meter. The method identifies the optimal combination of process states by aggregating their respective energy contributions and comparing the result with the observed total demand.
The formulation of this problem, as expressed in Eq. 1, considers the load profile at the delivery point as a time series Y = {y1,y2,…,yk}, where k represents the number of samples. Each process is described by a binary state vector A = {a1,a2,…,an}, corresponding to nnn processes [23].
(1)
At each time step t, the solution involves identifying the state ai that minimizes the error et, which accounts for measurement noise.
The CO algorithm proceeds through several steps. First, it identifies steady-state conditions by detecting variations in the industrial load profile. Subsequently, clustering techniques are applied to locate transitions in the space defined by active power and time. Clusters exhibiting similar magnitudes but opposite signs are then paired, while unmatched clusters are associated with existing or newly formed groups using a maximum likelihood approach. Finally, the detected events—represented as disaggregated load curves—are mapped to the corresponding process labels in the validation dataset, as illustrated in Figure 1.

Figure 1. Flowchart of the CO algorithm.
Hidden Markov Models (HMMs) are widely used in NILM studies and have demonstrated strong performance, primarily because they incorporate temporal dependencies and state transitions into their learning structure [23, 33].
An HMM is based on a probabilistic framework in which the system is modeled as a Markov process with unknown parameters. The main objective is to infer these hidden parameters using observable data [23, 27, 33].
This Markov process can be visualized as a directed graph, where each node represents a possible state S = {1,2,…,n}, and the edges indicate transitions between these states, as illustrated in Figure 2.
Within this framework, a random variable X is defined over the set of states SSS, with Xt denoting the system state at time t. Since Xt is not directly observable, an output variable Y is instead measured, where Yt represents the observed value at time t [27].
Typically, the relationship between these variables is expressed as Yt = f (Xt), where f may represent a probability distribution, a constant mapping, or a more complex functional relationship. Figure 2 illustrates the temporal evolution of this Markov process: the upper sequence corresponds to the hidden system states over time, while the lower sequence reflects the observable outputs associated with each state [30].

Figure 2. Representation of the evolution of a hidden Markov model.
In Figure 2, the states Xt−1, Xt, and Xt+1 are produced by a Markov chain. Observers can only see the corresponding observation sequences Yt−1, Yt, Yt+1,… It should be noted that the observations also obey the Markov property with respect to the underlying hidden states.
A generalization of the standard HMM is the Factorial Hidden Markov Model (FHMM). This model employs multiple variables to describe the system state. Specifically, an FHMM consists of k separate state variables, X(0), X(1), …, X(k), corresponding to k independent HMMs operating in parallel over time.
The main goal of FHMMs is to analyze individual load patterns in industrial settings. The approach relies on several Markov chains running concurrently, with the overall observation defined as the sum of their individual outputs. In this setup, every chain models a distinct process, and the combined output reflects the total consumption recorded at the delivery point [23, 28].
An FHMM is essentially a collection of k HMMs that progress simultaneously and independently across time steps. For each individual HMM i, the state is denoted by X(i). Consequently, at every time t, there exists a full sequence of states for that chain: X0(i), X1(i), …, Xt(i). Each of these component HMMs can have its own number of states and its own emission distributions, indicated as fj(i) for the emission function of the j-th state in the i-th HMM [27].
Figure 3 represents the FHMM equivalent of Figure 2, where the top three rows illustrate three independent Markov chains whose states evolve separately. These states collectively determine the final observation of the FHMM, shown in the bottom row as Yt [27].

Figure 3. Representation of an FHMM.
The progress in algorithm development and the rapid growth of NILM have created a strong need for reliable ways to assess model performance. Evaluation metrics compare the disaggregated outputs (predictions) produced by trained models with ground-truth data in the validation set, which contains precise measurements of individual processes. NILMTK supports this assessment by offering built-in metric calculations through the Meter Group object when testing results on the validation dataset. The key metrics considered are the following:
This metric quantifies the difference between the total energy predicted by the model and the actual total energy used by the n industrial processes, expressed in kWh [8, 29].
It measures the deviation between the estimated and true power for each process at every time step. The accumulated power deviations are then divided by the process’s total energy consumption to obtain a normalised value [8].
This is the root-mean-square error calculated from the differences between the predicted and actual power values for each industrial process [8, 25, 29].
The F-Score evaluates how accurate and dependable the trained model is by computing the harmonic mean of Precision and Recall [8].
This section explains the functionalities available in NILM-TK for organizing and processing the dataset. It presents a systematic procedure for gathering data from multiple industries and large-scale consumers. The approach includes categorizing production and auxiliary processes based on an initial evaluation of their demand-response flexibility, which serves as the basis for further data examination.
Utilities are required to provide electrical power continuously, reliably, and securely through the distribution network operator. In vertically integrated markets, energy sales are managed by the DSO. These operations rely on digital platforms that gather technical and commercial data. Using disaggregation algorithms, such systems estimate the level of flexibility large consumers can provide to the DSO. The overall methodology used for building and consolidating the database in this research is presented in Figure 4.

Figure 4. The methodology proposed for acquiring and structuring information.
Figure 4 presents the designed approach used to collect raw data and systematically arrange it into a structured format suitable for analysis.
Non-intrusive load monitoring (NILM), also described as energy disaggregation, seeks to separate total electrical demand into the individual contributions of appliances or electrical circuits. The NILM Toolkit (NILMTK), an open-source Python-based framework, is specifically designed to support the evaluation and comparison of machine learning techniques for this task. It delivers a comprehensive workflow that spans from data processing and analysis to the application of performance metrics. To ensure accurate model training, the dataset must first be preprocessed to remove corrupted, missing, or implausible values, thereby ensuring data integrity throughout the learning phase [8, 30, 31].
For this investigation, data are sourced from large-scale energy consumers using a combination of acquisition strategies [24]. These include initial evaluations to estimate demand response flexibility, as well as the integration of advanced metering systems positioned at critical points across industrial environments, as depicted in Figure 5.

Figure 5. One-line diagram illustrating the measurements made in the industry.
Figure 5 presents a single-line schematic summarizing the arrangement of measurement points across the industrial system.
Through an initial evaluation focused on demand response flexibility, the study characterized how load profiles vary across different industrial sectors. This assessment incorporated factors such as production levels and seasonal consumption patterns observed across industries, including ceramics, plastics, and food processing. These variables enabled a detailed breakdown of how energy is ultimately utilized within companies, distinguishing between consumption assigned to core production activities and that used for auxiliary operations, as presented in Figure 6.

Figure 6. Initial evaluation of demand response flexibility.
Figure 6 presents the findings from the preliminary evaluation, which examined the detailed load behavior of sectors including ceramics, plastics, and food processing, with a visual summary provided in Figure 7.

Figure 7. Load trends of various industrial sectors.
The electricity consumption patterns for different industries were analyzed for the initial five months of 2019, representing a pre-COVID-19 period, which facilitated examining industrial behavior during the preliminary assessment and comparing it with measurements recorded before and throughout the pandemic, as illustrated in Figure 8.

Figure 8. Outcomes of the preliminary evaluation of industrial demand response.
To ensure reliable model training for energy disaggregation, it is crucial to obtain consumption data at strategic points within industrial operations. The smart meters collected information including date, time, phase currents (R, S, T in A), line voltages (RS, ST, TR in V), active power (kW), and power factor (pf).
For the disaggregation process, only the date, time, and active power (kW) of each process are utilized after appropriate data preprocessing. All input variables must be numeric, with dates and times converted to UNIX timestamp format as required by NILMTK [32]. The dataset is structured into two columns: the first represents the timestamp in 10-digit Unix Epoch format, and the second contains the active power of the production process in NILMTK-DF format. After reformatting, the industrial measurements are organized into channels based on the REDD database layout [32], as shown in Figure 9.

Figure 9. Configuration of the ecdiac dataset.
The ecdiac dataset consists of several fields: the first column records the date and time as a timestamp, and the remaining columns capture power consumption across various industrial process measurement channels. Table 2 provides a detailed overview of this dataset’s structure.
Table 2. Structure of the ecdiac dataset measurements.
Empty Cell | Delivery Point | Clinker M2 1 | Clinker M2 2 | Clinker P1 | Graiman 1–2 | Graiman pox | Tugal Vand |
2019–01–28 09:30:00 | 5764.0 | 0.0 | 110.0 | 848.0 | 3211.0 | 1287.0 | 363.0 |
2019–01–28 09:32:00 | 5733.0 | 0.0 | 183.0 | 856.0 | 3087.0 | 1346.0 | 363.0 |
2019–01–28 09:34:00 | 5708.0 | 0.0 | 109.0 | 830.0 | 3052.0 | 1357.0 | 345.0 |
2019–01–28 09:36:00 | 5798.0 | 0.0 | 184.0 | 846.0 | 3142.0 | 1301.0 | 351.0 |
2019–01–28 09:38:00 | 5770.0 | 0.0 | 110.0 | 844.0 | 3221.0 | 1322.0 | 348.0 |
… | … | … | … | … | … | … | … |
2020–11–01 13:20:00 | 5185.0 | 0.0 | 57.0 | 119.0 | 3744.0 | 918.0 | 344.0 |
2020–11–01 13:22:00 | 5099.0 | 0.0 | 58.0 | 116.0 | 3556.0 | 987.0 | 333.0 |
2020–11–01 13:24:00 | 4955.0 | 0.0 | 62.0 | 79.0 | 3501.0 | 981.0 | 336.0 |
2020–11–01 13:26:00 | 5205.0 | 0.0 | 62.0 | 79.0 | 3699.0 | 948.0 | 461.0 |
2020–11–01 13:28:00 | 5023.0 | 0.0 | 59.0 | 110.0 | 3428.0 | 961.0 | 467.0 |
Analyzing the load at the delivery point reveals the industry’s operational characteristics, highlighting both power consumption levels and the specific time intervals of the recordings. Figure 10 displays the load pattern observed at the industry’s point of delivery.

Figure 10. Load profile at the industry delivery point.

Figure 11. Consumption profiles of final energy use in industrial processes.
By examining the final energy consumption profiles across industrial processes, it becomes possible to obtain a clear breakdown of the overall load. This detailed view reveals the typical operating patterns and power-demand ranges for each process. Figure 11 displays these final-use energy consumption profiles for the different industrial activities.
Preprocessing of the dataset was performed using the NILMTK toolkit, while considering several key factors:
Gaps and missing values in the records are detected using metadata associated with each meter, primarily by adjusting the maximum sample period setting. This parameter specifies the maximum allowable interval between readings before the meter is considered inactive. The examination shows several time intervals where the metering equipment did not capture data as expected.
Uptime is calculated based on the maximum sample period defined in each meter’s metadata. Any period exceeding this limit without recorded data is interpreted as the meter being turned off. The abandonment (dropout) rate, however, refers exclusively to unintended data losses caused by problems in the data acquisition system, even when measurements should have been taken within the allowed time window.
The active power spectrogram provides valuable visual information to identify periods of increased operational activity within the industrial facility.
These statistics provide an overview of the facility’s total energy usage, along with average power values calculated daily, weekly, and monthly across the full dataset.
The activity register records time windows during which recorded power exceeds a specific threshold. This threshold is set based on the average consumption level observed for each meter.
After preprocessing, the time window used to construct the data matrix spans February 2019 to February 2020. This interval includes a disruption caused by the pandemic, making it necessary to handle atypical data points carefully to avoid distorting statistical results.
The monthly average energy consumption during this period was analyzed to identify the most appropriate segments for model training and validation.
Table 3 summarizes the total energy for the selected 13-month period. The data was divided into 70% for model training and 30% for validation. Training was performed on two separate intervals: February–April 2019 and June–September 2019. May and October were excluded from training due to their below-average energy consumption, which could negatively affect model performance. Validation was conducted using data from November 2019 to February 2020 (a total of 4 months).
Table 3. The monthly average energy of industrial processes from actual measurements.
Empty cell | kWh Feb 2019 | kWh Mar 2019 | kWh Abr 2019 | kWh May 2019 | kWh Jun 2019 | kWh Jul 2019 | kWh Aug 2019 | kWh Sep 2019 | kWh Oct 2019 | kWh Nov 2019 | kWh Dec 2019 | kWh Jan 2020 | kWh Feb 2020 |
Delivery point | 4621 | 4535 | 4235 | 3695 | 4363 | 4517 | 4428 | 4475 | 3455 | 4420 | 4123 | 4320 | 4230 |
Clinker M2 1 | 348 | 272 | 284 | 226 | 300 | 305 | 284 | 313 | 335 | 292 | 285 | 296 | 297 |
Clinker M2 2 | 311 | 310 | 349 | 276 | 414 | 400 | 376 | 398 | 376 | 340 | 320 | 337 | 327 |
Clinker P1 | 576 | 591 | 589 | 355 | 613 | 597 | 606 | 578 | 572 | 585 | 538 | 600 | 567 |
Graiman 1–2 | 2185 | 2159 | 2152 | 2090 | 1977 | 2025 | 2052 | 2048 | 1359 | 2084 | 1773 | 1921 | 1862 |
Graiman prox | 987 | 1031 | 679 | 537 | 875 | 996 | 992 | 977 | 658 | 956 | 1061 | 982 | 1013 |
Tugal | 239 | 197 | 206 | 227 | 209 | 220 | 142 | 186 | 174 | 187 | 176 | 209 | 215 |
In this phase, the focus shifts to building and utilizing the disaggregation models. The CO and FHMM algorithms are trained on the dataset, after which the trained models are exported for later use. The actual disaggregation step is performed by loading these saved models, which allow the system to produce the separated load component results. This complete procedure is shown in Figure 12.

Figure 12. Disaggregation model.
The creation of disaggregation models was based on the final energy end-use profiles from the various industrial processes included in the dataset. The available data was split into 70% for training and 30% for performance validation using the chosen evaluation metrics.
Models were trained at five sampling rates: 2, 5, 10, 15, and 30 minutes. To determine the most effective setups, three resampling approaches were tested: using the first valid value, calculating the mean, and calculating the median.
Since mean and median resampling involve recomputing the original signal, training with these methods was limited to the 5-minute, 10-minute, 15-minute, and 30-minute intervals.
Once trained, the models were loaded and applied to the overall load profile recorded at the industry’s point of delivery. This step utilized the Meter Group called valid_Main, which stores measurements from the facility’s primary electrical meter.
The first attempt at disaggregation covered the entire four-month validation period, yet the resulting metrics were unsatisfactory. Consequently, the process was repeated across several alternative time windows to improve accuracy. The additional windows tested were 12 hours, 24 hours (one full day), 336 hours (14 days), and 720 hours (30 days).
The diagram in Figure 13 illustrates the full methodology developed for disaggregating industrial load profiles. This approach is organized into five key stages. The fourth stage proved to be the most influential, as it incorporates the evaluation of disaggregation across varying time windows. Based on the metrics’ performance, the system determines whether to repeat the disaggregation using a different time interval.

Figure 13. Proposed methodology for the disaggregation of the load profile of the industry.
Gathering accurate electrical load profiles from the main delivery point and from individual industrial processes is a fundamental requirement. These profiles provide the necessary data foundation to ensure the disaggregation algorithms can be applied with confidence.
All collected measurements must be stored in HDF5 format. The database needs to properly organize all measurement channels related to the overall industry load, as well as the separate channels from each specific process.
During this stage, the dataset is examined in depth, including metadata and raw measurements. Preprocessing steps are applied using the NILMTK tools described earlier. The final output of this phase is a clean, structured data matrix that is ready for the disaggregation stage.
Here, the selected machine learning algorithms — CO and FHMM — are applied. They are responsible for both training the models on the prepared data and executing the load separation process.
The highest-performing model is chosen and rigorously checked against the evaluation metrics. This step enables a comprehensive interpretation and assessment of how well the disaggregation performed.
This stage consists of applying the performance metrics to the outputs generated by the disaggregation models. The aim is to determine which approach delivers the strongest results, confirm that the total of all predicted loads equals the measured aggregate load at the delivery point, and calculate the energy deviation percentage between predicted and actual values for every individual process.
Table 4 displays the models that achieved the strongest performance for each tested time window. The disaggregation performed on the first time window stood out as the most successful according to the evaluation metrics, particularly in its ability to accurately estimate each process.
Table 4. Models with better results for the time windows.
Time Windows | |||
12 h | 24 h (1 day) | 336 h (14 days) | 720 h (30 days – 1 month) |
CO-median 15 min. | FHMM-median 10 min. | FHMM-median 30 min. | FHMM-median 30 min. |
The evaluation metrics from the CO-median model at 15-minute resolution provide a clear picture of the model’s overall effectiveness. Among all processes, Clinker P1 achieved the strongest performance, recording an RMSE of 84,353 kW and a notably low EAE of 0.311 kWh. In contrast, the Tug-Vand process yielded considerably weaker results, with an RMSE of 200.64 kW and an EAE of 1,142 kWh. These large discrepancies stem primarily from the frequent and abrupt power fluctuations characteristic of the Tug-Vand process, which also accounts for a substantial portion of total energy use. Further details are presented in Table 5.
Table 5. CO-median model evaluation metrics 15 min.
Empty Cell | Clinker M2 1 | Clinker M2 2 | Clinker P1 | Graiman 1–2 | Graiman pox | Tugal-vanderbilt |
F1 (%) | 0.907 | 0.968 | 1000 | 1000 | 1000 | 0.979 |
EAE (kWh) | 0.373 | 0.949 | 0.311 | 0.083 | 0.439 | 1142 |
MNEAP | 0.193 | 0.192 | 0.052 | 0.031 | 0.050 | 0.351 |
RMSE (kW) | 158,797 | 145,486 | 84,353 | 139,859 | 111,287 | 200,640 |
Figure 14 shows the disaggregation outcomes produced by the CO-median model with 15-minute sampling over a 12-hour time window. These results are directly compared with the measured consumption for each process in the validation dataset.

Figure 14. Outcomes of the 12-hour energy disaggregation using the CO-median model at 15-minute intervals.
The aggregate of all process-level predictions generated by the CO-median model (using 15-minute sampling over the 12-hour window) was compared with the actual total load profile recorded at the industry’s delivery point. This comparison revealed a small energy difference of 0.388 kWh, corresponding to an error percentage of just 0.467%. Further visualization of this comparison is provided in Figure 15. Table 5 details the energy differences and percentage errors between the predicted and measured values (Table 6).

Figure 15. Aggregate disaggregation results of the OC model across processes at 15-minute intervals.
Table 6. Percentage error comparing the total disaggregation with the industry load profile using the CO-median model at 15-minute intervals.
Description | kWh |
Energy sum predictions | 82,699 |
Energy actual load profile | 83,086,967 |
Difference | 0.388 |
Mistake% | 0.467 |
Figure 16 illustrates the proportion of energy accurately allocated across the various processes, showing that, for certain methods, the discrepancy between predicted and measured energy does not exceed 1%.

Figure 16. Proportion of total energy accurately allocated by the CO-median 15 min model.
In most studies, Non-Intrusive Load Monitoring (NILM) has been primarily applied to residential consumption, typically leveraging public datasets such as REDD and UKDALE, which contain power usage data for common household devices such as televisions, kettles, and microwaves. In contrast, this work applies NILM to an industrial setting. Training was performed using the CO and FHMM algorithms, which operate through multiple stages, including detecting states within the load profile and clustering data to match similar magnitude patterns.
Analysis across various time windows revealed that disaggregation accuracy improved when conducted over a shorter 12-hour period with a 15-minute sampling interval, employing median resampling. Evaluation metrics indicated superior performance for processes exhibiting stable, patterned measurements and minimal abrupt state changes. Additionally, using mean and median resampling, FHMM-trained models across the last three time windows with 10–30 minute sampling intervals outperformed those trained using the CO algorithm.
The industrial sector is a key component of the Fourth Industrial Revolution, driving economic development and enhancing the quality of life. In developing nations, the expansion of R&D systems has lagged due to production-focused policies and delayed prioritization of innovation frameworks.
Industry 4.0 technologies, such as SCADA systems and advanced communication protocols, facilitate energy monitoring and data acquisition. Implementing these technologies and strategies to analyze final energy usage supports energy efficiency and optimizes process performance. The integration of IoT, Big Data storage, and machine learning enables industries to collect detailed information across the supply chain, anticipate events, and make informed decisions about production activities.
Machine learning techniques have become essential in tackling nonlinear industrial problems, with NILM providing a tool to optimize energy usage and reduce waste by analyzing detailed process-level consumption and overall industrial load profiles. NILM, or energy disaggregation, allows precise monitoring of each production process, supporting intelligent energy management, behavioral load adjustments, and the development of informed policies, such as Time-of-Use (TOU) pricing for utility companies.
BD = Big Data
CO = Combinatorial Optimization
CPS = Cyber-Physical Systems
DCS = Distributed Control System
DSM = Demand Side Management System
EAE = Error in Total Energy Assigned
FHMM = Factorial Hidden Markov Model
FFT = Fast Fourier Transform
ML = Machine Learning
NILM = Non-Intrusive Load Monitoring
NILM-TK = NILM Toolkit
PLC = Programmable Logic Controller
R&D = Research and Development
RMSE = Root Mean Square Error in Assigned Power
SCADA = Supervisory Control and Data Acquisition
TOU = Time-of-Use Tariffs
This work was developed under the auspices of the Polytechnic University of Valencia (Spain), the Polytechnic University Salesian (Cuenca, Ecuador), and the Catholic University of Cuenca (Ecuador).
The authors declare that they have no known competing financial interests or personal relationships that could have influenced the work reported in this paper.
Universitat Politécnica de Valencia provided Marco Toledo-Orozco reports. Marco Toledo-Orozco reports a relationship with Universitat Politécnica de Valencia that includes non-financial support. Marco Toledo-Orozco hasn´t patented the Methodology for the Disaggregation and Forecast of Demand Flexibility in Large Consumers with the Application of Non-Intrusive Load Monitoring Techniques. The author is a doctoral candidate in the Doctoral Program in Engineering and Industrial Production at the Polytechnic University of Valencia; his areas of interest are optimization methods, aggregator models, electrical markets, and electromobility. He belongs to the research group of the Energy Engineering Department at the Polytechnic University of Valencia.
None
None
Open Access The author(s) retain copyright. This article is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. It may be shared and adapted for non-commercial purposes with appropriate attribution, an indication of changes, and distribution of adaptations under the same license. Third-party material may be subject to separate terms identified in its credit line. View the license at https://creativecommons.org/licenses/by-nc-sa/4.0/.