Jump to content

Energy Usage Dataset: Difference between revisions

Created page with "<strong>Predictive model and dataset for energy management optimisation</strong> thumb|right|<div style="font-size:88%;line-height: 1.5em">Image 1: Snapshot from the SunSync Dataset</div> == Asset Description == <p style="line-height: 1.5em"> This asset provides a predictive model and dataset aimed at optimising energy management processes. Built using a decision tree classifier and trained on historical energy usage data, the model f..."
 
No edit summary
Line 60: Line 60:
The predictive model is a Decision Tree Classifier built using scikit-learn, a popular machine learning library in Python. The model was trained to predict outcomes based on the dataset's features, focusing on optimizing decisions related to energy management.
The predictive model is a Decision Tree Classifier built using scikit-learn, a popular machine learning library in Python. The model was trained to predict outcomes based on the dataset's features, focusing on optimizing decisions related to energy management.
</p>
</p>
<br>


== Usage ==
== Usage ==
Line 68: Line 66:
Before using this asset, ensure you have:  
Before using this asset, ensure you have:  
* Python installed on your system (recommended version 3.9 or newer)
* Python installed on your system (recommended version 3.9 or newer)
* Required Python libraries such as scikit-learn and pandas installed. You can install them with pip: pip install scikit-learn pandas  
* Required Python libraries such as scikit-learn and pandas installed.  
** You can install them with pip: ''pip install scikit-learn pandas''
</p>
</p>
<br>
<br>
Line 80: Line 79:
** data = pd.read_csv('Output_data.csv')  
** data = pd.read_csv('Output_data.csv')  


 
=== Model Usage ===
The asset is Available ''(Note: For demonstration purposes, we use the casting product image data for quality inspection dataset available at [https://www.kaggle.com/datasets/ravirajsinh45/real-life-industrial-dataset-of-casting-product Kaggle]. However, a similar logic could be applied to other industries and product lines.)''
* Loading the Model: Ensure that the model file (model.joblib) is in the same directory or provide the correct path. Load the model using joblib:
</p>
** import joblib
 
** model = joblib.load('model.joblib')
=== Walkthroughs===
* Prepare the Data: Make sure the dataset columns match the model's expected input format. This might involve feature engineering or scaling
* Instructions available [https://github.com/giorgosfatouros/Quality-Control-in-Industry-with-CV-and-TinyML?tab=readme-ov-file#instructions here]</li>
input_features = data[[
* Detailed step-by-step demontration of the Quality Control asset can be found [https://github.com/giorgosfatouros/Quality-Control-in-Industry-with-CV-and-TinyML/blob/main/Quality%20control%20on%20production%20lines%20with%20TinyML_v2.pdf here]</li>
        'rootNodeIsRun_value',
        'upcoming_watt_hours',
        'dailyWattage_watt_hours',
        'remaining_watt_hours',
        'dc_input_power',
        'ac_input_power',
        'ac_output_power',
        'dc_output_power',
        'power_generation',
        'total_battery_percent',  
        'ac_output_on',
        'dc_output_on',
        'ac_input_voltage',
        'internal_dc_input_voltage' ] ]
* Make Predictions: Use the loaded model to make predictions on new data
** predictions = model.predict(input_features)


=== Licence===
=== Licence===
MIT License, licence link [https://github.com/giorgosfatouros/Quality-Control-in-Industry-with-CV-and-TinyML/blob/main/LICENSE here]
Open source


== Resources ==
== Resources ==
<ul>
<ul>
<li>Notebook available in [https://github.com/giorgosfatouros/Quality-Control-in-Industry-with-CV-and-TinyML Github]</li>
<li>Input data, output data and data model available in [https://github.com Github]</li>
<li>Created by [https://expertai-lux.com/ ExpertAI-Lux S.à r.l]</li>
<li>Created by [https://www.pbn.hu/main.php?Lang=EN/ PBN] / [https://www.am-lab.hu/main.php?Lang=EN/ am-LAB Digital Innovation Hub]</li>
<li>Contact george.fatouros@expertai-lux.com / george.makridis@expertai-lux.com</li>
<li>Contact gyula.gal@pbn.hu / martin.dan@pbn.hu</li>
</ul>
</ul>


Line 101: Line 115:
==== Acknowledgement====
==== Acknowledgement====
<p style="font-size:90%;line-height: 1.5em">
<p style="font-size:90%;line-height: 1.5em">
''This work is an update of ExpertAI-Lux S.à r.l work in the context of the H2020 [https://www.airegio-project.eu/ AI REGIO project] (Grant Agreement No 952003). Further updates performed in the context of the AI REDGIO 5.0 project, concern; (1) leveraging tensorflow lite with the aim of being able to deploy on an edge device, and (2) post-training quantization with the aim of making the model more resource-efficient.''
''The dataset was created in the framework of the AI REDGIO 5.0 project as DF XIII PBN am-LAB (HUNGARY): SUNSYNC: AI SOLUTION FOR OPTIMIZING RECYCLING IN INDUSTRY AT THE LEVEL OF AM-LAB’S DF.''
</p>
</p>


== Relevant Categories==
== Relevant Categories==
[[Category:Jupyter Notebook]][[Category:Computer Vision]][[Category:Deep Learning]][[Category:Edge AI]][[Category:Quality Control]][[Category:Machine Vision]][[Category:Cloud-based]][[Category:Edge]]
[[Category:Model]][[Category:Dataset]][[Category:Machine_Learning]][[Category:Process_Optimisation]][[Category:Resource_Planning]][[Category:IoT]][[Category:Cloud-based]][[Category:Edge]]

Revision as of 15:08, 12 July 2024

Predictive model and dataset for energy management optimisation

Image 1: Snapshot from the SunSync Dataset


Asset Description

This asset provides a predictive model and dataset aimed at optimising energy management processes. Built using a decision tree classifier and trained on historical energy usage data, the model forecasts upcoming power needs and identifies optimal decision states. This implementation helps organizations streamline their energy usage, improve resource planning, and enhance the efficiency of their energy systems, whether through preventive maintenance or better alignment of generation with consumption.


Dataset and Model Details

Dataset Overview

The dataset comprises 3,466 entries each represented by 17 features that capture a variety of system metrics and states related to energy usage. These features include measurements of power (input and output), wattage predictions, battery status, and operational flags. The data format is primarily numerical with timestamps, facilitating time series analysis and predictive modelling.


Key attributes include:

Feature Description
Id A unique identifier for a specific device or data entry in the system.
Timestamp A record of the date and time when an event, measurement, or data entry took place.
rootNodeIsRun_value A status flag indicating whether the recycling module (energy consumer) is currently running.
Upcoming Watt Hours A forecast of the amount of energy (in watt-hours) expected to be generated in the upcoming hour.
Daily Wattage (Watt Hours) The total amount of energy predicted to be generated in a day, measured in watt-hours.
Remaining Watt Hours An indication of the amount of energy (in watt-hours) left to produce for the remainder of the day.
DC Input Power The power (in watts) entering the system as Direct Current (DC), typically from solar panels or other DC sources.
AC Input Power The power (in watts) entering the system as Alternating Current (AC), potentially from the solar panel or other AC sources.
AC Output Power The power (in watts) being supplied by the system in AC form, to power devices.
DC Output Power The power (in watts) being supplied by the system in DC form, possibly for charging batteries or powering DC devices.
Power Generation The total power (in watts) being generated by solar panels at the moment.
Total Battery Percent The current charge level of the battery system, expressed as a percentage of its total capacity.
AC Output On A status flag indicating whether the AC output of the system is currently active or turned on.
DC Output On A similar status flag indicating whether the DC output of the system is active or turned on.
AC Input Voltage The voltage level (in volts) of the AC power entering the system.
Internal DC Input Voltage The voltage level (in volts) of the internal DC power within the system.
decision A binary target variable representing a decision state.

Model Details

The predictive model is a Decision Tree Classifier built using scikit-learn, a popular machine learning library in Python. The model was trained to predict outcomes based on the dataset's features, focusing on optimizing decisions related to energy management.

Usage

Prerequisites

Before using this asset, ensure you have:

  • Python installed on your system (recommended version 3.9 or newer)
  • Required Python libraries such as scikit-learn and pandas installed.
    • You can install them with pip: pip install scikit-learn pandas


Loading the Asset

  • Download/Access Dataset: Ensure you have access to the dataset file (Output_data.csv).
  • Load the Data: Use pandas to load the CSV file into a DataFrame:
    • import pandas as pd
    • data = pd.read_csv('Output_data.csv')

Model Usage

  • Loading the Model: Ensure that the model file (model.joblib) is in the same directory or provide the correct path. Load the model using joblib:
    • import joblib
    • model = joblib.load('model.joblib')
  • Prepare the Data: Make sure the dataset columns match the model's expected input format. This might involve feature engineering or scaling

input_features = data[[

       'rootNodeIsRun_value', 
       'upcoming_watt_hours', 
       'dailyWattage_watt_hours', 
       'remaining_watt_hours', 
       'dc_input_power', 
       'ac_input_power', 
       'ac_output_power', 
       'dc_output_power', 
       'power_generation', 
       'total_battery_percent', 
       'ac_output_on', 
       'dc_output_on', 
       'ac_input_voltage', 
       'internal_dc_input_voltage' ] ] 
  • Make Predictions: Use the loaded model to make predictions on new data
    • predictions = model.predict(input_features)

Licence

Open source

Resources


Acknowledgement

The dataset was created in the framework of the AI REDGIO 5.0 project as DF XIII PBN am-LAB (HUNGARY): SUNSYNC: AI SOLUTION FOR OPTIMIZING RECYCLING IN INDUSTRY AT THE LEVEL OF AM-LAB’S DF.

Relevant Categories