Related Experiment Videos
Decision tree and reinforcement learning for contextual electricity consumption forecasting in buildings
Daniel Ramos1, Pedro Faria1, Pedro Campos2
1GECAD - Research Group on Intelligent Engineering and Computing for Advanced Innovation and Development, Polytechnic of Porto, Portugal.
Methodsx
|July 1, 2026
Summary
This study optimizes building energy prediction using context-specific forecasting. A decision tree identifies unique energy usage patterns, enabling a Multiarmed Bandit algorithm to select the best forecasting model for improved accuracy.
Area of Science:
- Energy Systems
- Artificial Intelligence
- Machine Learning
Background:
- Accurate energy consumption prediction is crucial for optimizing energy control and storage.
- Forecasting algorithms like Neural Networks, K-Nearest Neighbors (KNN), and XGBoost are vital for energy pattern estimation.
- Context-specific application of forecasting models is recommended for enhanced performance.
Purpose of the Study:
- To develop a method for predicting building energy consumption at five-minute intervals over a week.
- To leverage unique building contexts for more accurate energy demand forecasting.
- To dynamically select the most effective forecasting algorithm based on identified contexts.
Main Methods:
- Utilized K-Nearest Neighbors (KNN) and Artificial Neural Networks (ANN) for energy consumption prediction.
- Employed a decision tree to identify unique building contexts based on energy and sensor data patterns.
- Implemented a Multiarmed Bandit algorithm with reinforcement learning to select the optimal forecasting model for each context.
Main Results:
- Context identification using decision rules improved confidence bounds in evaluating forecasting algorithms.
- Achieved low SMAPE (Symmetric Mean Absolute Percentage Error) forecasting errors: 3.54% with KNN and 4.79% with ANN in the third context.
- Obtained SMAPE errors of 4.91% with KNN and 4.54% with ANN in the fourth context.
Conclusions:
- Context-specific forecasting significantly enhances the reliability of energy prediction models.
- The proposed method effectively identifies unique building energy consumption patterns.
- Dynamic algorithm selection via Multiarmed Bandit optimizes prediction accuracy for different contexts.
Related Concept Videos
Energy and Power Signals
In an electrical system with a resistor, voltage and current signals facilitate the measurement of power and energy across the resistor. For a continuous-time signal, the total energy over a time interval is defined as the integral of the square of the signal's magnitude over that interval. Mathematically, this is expressed as:
Electrical Energy
Using electric appliances for a longer period of time consumes more electrical energy and results in a higher electric bill. The energy produced by the transfer of electrons from one point to another is known as electrical energy. If power is delivered at a constant rate, the electrical energy can be defined as the product of power used by the device for a period of time. The energy unit on electric bills is the kilowatt-hour, where one kilowatt-hour is equivalent to 3.6 × 106 joules. The...
Energy Budgets and Reproductive Strategies
Organisms must balance energy intake with the energy required for growth, maintenance, and reproduction. These trade-offs result in a variety of survivorship and reproductive strategies, including semelparity and iteroparity. Semelparous species reproduce only once in their lifetime, often investing most available resources into that single reproductive event. Iteroparous species, by contrast, reproduce multiple times over their lifetimes, typically allocating fewer resources to any single...
Electrical Power
Electric power is the product of current and voltage, represented in units of joules per second, or watts. For example, cars often have one or more auxiliary power outlets with which you can charge a cell phone or other electronic devices. These outlets may be rated at 20 amps and 12 volts, so that the circuit can deliver a maximum power of 240 watts. Consider a 25 Watt bulb and a 60 Watt bulb. The conversion of electrical energy produces heat and light, while the kinetic energy lost by the...
Reinforcement Schedules
Positive reinforcement is a powerful method for teaching new behaviors to both animals and humans. B.F. Skinner demonstrated this with his experiments using rats in a Skinner box. When a rat pressed a lever, it received a food pellet. This immediate reward encouraged the rat to repeat the behavior. This method, where a reward follows every instance of the behavior, is known as continuous reinforcement. It is highly effective for establishing new behaviors quickly.
Once a behavior is learned,...
Once a behavior is learned,...
Heating and Cooling Curves
When a substance—isolated from its environment—is subjected to heat changes, corresponding changes in temperature and phase of the substance is observed; this is graphically represented by heating and cooling curves.
For instance, the addition of heat raises the temperature of a solid; the amount of heat absorbed depends on the heat capacity of the solid (q = mcsolidΔT). According to thermochemistry, the relation between the amount of heat absorbed or released by a substance, q, and its...
For instance, the addition of heat raises the temperature of a solid; the amount of heat absorbed depends on the heat capacity of the solid (q = mcsolidΔT). According to thermochemistry, the relation between the amount of heat absorbed or released by a substance, q, and its...