This paper gives and analyses data-driven prediction models for the energy usage of appliances. Data utilized include readings of temperature and humidity sensors from a wireless network. The building envelope is meant to minimize energy demand or the energy required to power the house independent of the appliance and mechanical system efficiency. Approximating a mapping function between the input variables and the continuous output variable is the work of regression. The paper discusses the forecasting framework FOPF (Feature Optimization Prediction Framework), which includes feature selection optimization: by removing non-predictive parameters to choose the best-selected feature hybrid optimization technique has been approached. k-nearest neighbors (KNN) Ensemble Prediction Models for the data of the energy use of appliances have been tested against some bases machine learning algorithms. The comparison study showed the powerful, best accuracy and lowest error of KNN with RMSE = 0.0078. Finally, the suggested ensemble model's performance is assessed using a one-way analysis of variance (ANOVA) test and the Wilcoxon Signed Rank Test. (Two-tailed P-value: 0.0001).

Many research studies have been introduced to understand the energy appliances which use in buildings. The appliances represent a significant portion (between 20% and 30%) of the electrical energy demand appliances, such as televisions and consumer electronics operating in standby, attributed to a 10.2% increase in electricity consumption. Many Regression models for energy can be used to comprehend the connections between different factors and evaluate their effect [

Prediction models of electrical vitality utilization in structures can be helpful for various applications. For example, it is used to decide sufficient estimating of photovoltaics and vitality stockpiling. In addition, lessen power flow into the grid, model predictive control applications where the heaps are required for demand-side management (DSM) and demand-side response (DSR). Furthermore, it uses to evaluate building performance simulation analysis [

The power utilization in residential structures is clarified by two primary factors: the sort and number of electrical apparatuses and the utilization of the machines by the inhabitants. In addition, the structure in various areas could likewise decide the utilization of the devices.

In the indoor condition close to the region of the apparatus, for example, the temperature, mugginess, vibrations, light, and commotion. Typically, the two components are interrelated [

The no-free lunch NFL theorem and attempts to address existing flaws inspired us to create the suggested optimization method. Unfortunately, there is no one-size-fits-all meta-heuristic that can solve all optimization issues. It explains why some meta-heuristics are better at solving certain optimization problems than others. As a result, additional optimizations continue to be offered. Slow convergence, the balance between exploration and exploitation, and stagnation into local optima are some of the shortcomings of existing optimization methods addressed by our suggested optimization algorithm [

The main goal of this paper is to understand the relationships between appliances' energy consumption and different predictors. And introduce prediction models can deal with appliances energy dataset. The outline of this paper is proposed our framework (Feature Optimization Prediction framework) FOPF discuss its performance compared with different models (linear regression, Artificial Neural Network, and Random Forest) to predict energy consumption.

Many research discusses electricity load prediction to identify the parameters. Typically studies have used models such as multiple regression, neural networks, support vector machines, etc., for forecasting the electricity demand. The models ordinarily have considered parameters such as wind speed, open-air temperature, end of the week, occasions, worldwide sun-powered radiation, and hour of the day [

Most paper in this topic highlights the following points [

The vitality utilization of appliances to a significant portion of the collected power request

The vitality utilization of appliances might be separated into different commitments and here and there may incorporate HVAC (heating, ventilation, and air conditioning)

Is the weather agent enough to improve the apparatuses' vitality utilization expectation?

Could the temperature and dampness estimations from a remote system help in the vitality expectation?

Which parameters are the most significant in vitality expectation?

Meta-heuristic optimization algorithms have grown in popularity due to their ease of use and flexibility compared to traditional and precise optimization methods such as Greedy Search and Local Search. Furthermore, those meta-heuristic optimization algorithms are versatile because they may be used in various domains and applications without requiring significant design and implementation adjustments. Likewise, owing to their stochastic character, they can avoid local optima by exploring the search space extensively and avoiding stagnation in local optima [

On various optimization issues, such as temperature prediction, battery storage optimization, and leukemia detection [

The point of regression analysis is to anticipate a result dependent on verifiable information. However, in some genuine relapse issues, one regularly experiences uncertain information, including non-useful highlights, which significantly expands the blunder of the calculations. To beat this issue, we propose FOPF, which comprises two stages: First Phase: Feature Selection Optimization, Second Phase: Training Ensemble Model. As shown in

Feature analysis is usually recommended before regression analysis.

“The data set is at 10 min for about 4.5 months. The house temperature and humidity conditions were monitored with a ZigBee wireless sensor network.”

We removed rows that contain null values or contains any missing data.

As shown in the equation for scaling, we used Min-Max-Scalar to bring the attribute's value between 0 and 1.

IG ranks each feature according to its entropy and selects the most important features according to the prespecified threshold to complete feature selection for the preprocessed dataset hybrid optimization technique has been approached by equipping it with three powerful algorithms. The first set of rules is PSO, in which individuals are shifting influenced with the aid of their local best positions and by the high-quality global position. The 2d optimizer in our proposed hybrid approach is Grey Wolf Optimizer. GWO is a swarm-primarily based meta-heuristic optimizer that mimics the social hierarchy and the foraging conduct of the grey wolves. Individuals in GWO circulate influenced utilizing the three leader's alpha, beta, and delta areas. The third is a genetic algorithm that accrues convergence with decorating the position of a selected solution around randomly selected leaders called Mutation operator random modifications one or more additives of the offspring.

Velocity is the position Change of a particle. During this time, the position of the particle is changed. At the flight, the particle's velocity is randomly accelerated toward its previous best position and a neighborhood best solution

GWO is originated from mathematically formulating the hunting behavior used by the grey wolves hunting technique as shown in

The position of each wolf is updated using the following equations:

where t refers to the current iteration,

The random modification of portions of a solution, which enhances population diversity and provides a means for escape from a local optimum, is presented. The addition of new traits to the population pool may be beneficial, in which case the mutated person has a high fitness value and is likely to be selected many times, or it may be detrimental, in which case the individual is removed from the population pool. Mutation operator involves creating three indices randomly in range over [1, n] where n is the population size.

In chromosomes or solution representations, they are swapping portions of the solution with another. The basic function is to offer mixing and convergence of solutions in a subspace. Crossover between the new mutant solution vector Vi and the original solution vector Xi according.

Elitism or fittest's survival is defined as the use of high-fit solutions to pass on to future generations, which is generally done in the form of some sort of best-solution selection.

In addition to feature selection Optimization, we have divided the dataset into two parts: training data (75%) and testing data (25%). The original dataset contains 19737 records. The training data comprises 14804 records, and the testing data contains 4933 records. The training data is used to train (linear regression, Artificial Neural Network, and Random Forest) used to calculate the error, and the accuracy of each then compared the results with our proposed KNN ensemble.

Linear regression constitutes the relation between two variables by fitting a linear equation to the observed data. One variable is regarded as an explanatory variable, while the other is viewed as a dependent variable. A modeler may, for example, use a linear regression model to connect people's weights to their heights. Linear regression is used to model the linear relationship between a based variable and one or more dependent variables. The linear regression model was able to predict the value with RMSE = 0.0131.

An artificial neural network is made up of three or more linked layers. Input neurons make up the first layer. These neurons send input to deeper layers, then deliver the final output data to the output layer. Inner layers are concealed and are produced by units that use a series of transformations to adjust the information received from layer to layer. Multi-Layer perceptron (MLP) is a type of feedforward neural network with one or more hidden layers among the input and output layers. MLP layers are entirely connected, meaning that a neuron in one layer is hooked up to all neurons within the following layer. Each connection has a distinctive weight value. MLP is educated with a backpropagation algorithm. The network was able to predict the value with RMSE = 0.0944.

Because it uses both bagging and feature randomness to generate an uncorrelated forest of decision trees, the random forest technique extends the bagging method. Feature bagging is another term for feature randomness. Assures minimal correlation among decision trees by generating a random selection of features. A fundamental distinction between decision trees and random forests is this. Random forests only evaluate a subset of the available feature splits, whereas decision trees consider all. The random forest algorithm comprises a group of decision trees, each of which is made up of a bootstrap sample selected from a training set. Combines a couple of decision trees to enhance the generalizability and the robustness over an unmarried choice tree. The Random Forest was able to predict the value with RMSE = 0.0123.

Ensemble approaches, which combine several regressors, have received much interest in the recent two decades as potential strategies for improving the regression performance of weak learners. In many real-world applications, these approaches reduce regression error significantly and, in general, are more resistant to non-informative data characteristics than individual models. However, using an ensemble to improve KNN performance is a difficult challenge. Because KNN is already a stable regressor, the “traditional” ensemble approaches of bagging and boosting do not work with it. The component regressors must be correct to improve performance using an ensemble.

The ensemble method is combining the output of algorithms by giving each weight. Ensemble techniques turn out to be one of all the good-sized techniques in improving the foreseeing potential of standard models as shown in

The output value of K training records became chosen as the nearest friends are used to predict the output cost of the unknown testing statistics. KNN regression use the subsequent formula

KNN Ensemble was able to predict the value of the lowest error in comparison with others by RMSE = 0.0078.

KNN gives the lowest error compared to the three-based model. KNN can control overfitting and handle missing values. This method seeks the understanding of crowds in predicting KNN regression. RMSE, MAE Results was shown in

L.R | N.N | R.F | K.N.N ensemble | |
---|---|---|---|---|

Number of values | 19 | 19 | 19 | 19 |

Minimum | 0.0101 | 0.0844 | 0.0113 | 0.0071 |

25% Percentile | 0.0131 | 0.0944 | 0.0123 | 0.0078 |

Median | 0.0131 | 0.0944 | 0.0123 | 0.0078 |

75% Percentile | 0.0131 | 0.0944 | 0.0123 | 0.0078 |

Maximum | 0.0231 | 0.0999 | 0.0193 | 0.0079 |

Range | 0.013 | 0.0155 | 0.008 | 0.0008 |

Mean | 0.01357 | 0.09411 | 0.01272 | 0.007753 |

Std. Deviation | 0.002568 | 0.002684 | 0.001677 | 0.0001679 |

Std. Error of Mean | 0.000589 | 0.000616 | 0.0003848 | 0.00003852 |

Sum | 0.2579 | 1.788 | 0.2417 | 0.1473 |

In statistics, estimation refers to many techniques for calculating the value of a population's property based on observations from a sample selected from the population.

We will need evidence to back our strategy in order to make a confident and trustworthy conclusion. This is where the ANOVA idea comes in handy as in

ANOVA table | SS | DF | MS | F (DFn, DFd) | P value |
---|---|---|---|---|---|

Treatment (between columns) | 0.09798 | 3 | 0.03266 | F (3, 72) = 7851 | |

Residual (within columns) | 0.0003 | 72 | 4.16E-06 | ||

Total | 0.09828 | 75 |

The Q-Q plot, also known as a quantile-quantile plot, is a graphical tool that may be used to determine if a collection of data is likely to have come from a theoretical distribution such as a Normal or exponential distribution, which is shown in

Internally, histograms are used to summarize data and offer size estimates for searches, as shown in

The compression methods introduce many optimization algorithms such as genetic algorithm GA and practical swarm optimization PSO and grey wolf optimization GWO, which appear to be a strong the proposed framework FOPF quality and reducing the limitations of cost and superiority as results show in

L.R | N.N | R.F | K.N.N ensemble | |
---|---|---|---|---|

Theoretical median | 0 | 0 | 0 | 0 |

Actual median | 0.0131 | 0.0944 | 0.0123 | 0.0078 |

Number of values | 19 | 19 | 19 | 19 |

Wilcoxon Signed Rank Test | ||||

Sum of signed ranks (W) | 190 | 190 | 190 | 190 |

Sum of positive ranks | 190 | 190 | 190 | 190 |

Sum of negative ranks | 0 | 0 | 0 | 0 |

P value (two tailed) | <0.0001 | <0.0001 | <0.0001 | <0.0001 |

Exact or estimate? | Exact | Exact | Exact | Exact |

P value summary | ∗∗∗∗ | ∗∗∗∗ | ∗∗∗∗ | ∗∗∗∗ |

Significant (alpha=0.05)? | Yes | Yes | Yes | Yes |

How big is the discrepancy? | ||||

Discrepancy | 0.0131 | 0.0944 | 0.0123 | 0.0078 |

FOPF | GA | PSO | GWO | |
---|---|---|---|---|

Number of values | 19 | 19 | 19 | 19 |

Minimum | 0.007100 | 0.009901 | 0.008800 | 0.008500 |

25% Percentile | 0.007800 | 0.01011 | 0.009800 | 0.009500 |

Median | 0.007800 | 0.01011 | 0.009800 | 0.009500 |

75% Percentile | 0.007800 | 0.01011 | 0.009800 | 0.009500 |

Maximum | 0.007900 | 0.02011 | 0.01888 | 0.02950 |

Range | 0.0008000 | 0.01021 | 0.01008 | 0.02100 |

Mean | 0.007753 | 0.01099 | 0.01066 | 0.01103 |

Std. Deviation | 0.0001679 | 0.002731 | 0.002756 | 0.005037 |

Std. Error of Mean | 3.852e-005 | 0.0006264 | 0.0006323 | 0.001156 |

Sum | 0.1473 | 0.2089 | 0.2025 | 0.2095 |

Appliance energy consumption was ranked first in significance for energy forecasting: feature ranking and data filtering to eliminate non-predictive factors. Although FOPF has high performance in the feature Selection case, it depends on a hybrid optimization technique. Therefore, using various machine learning techniques, there is a need to control energy consumption by employing various optimization techniques and forecasting demand. Nevertheless, the comparative results show the performance. Furthermore, they can be justified because the KNN Ensemble is appropriate for dealing with appliances' energy forecasting and a positive correlation between appliances' consumption and weather conditions.