GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dylanbahenda/NILM-Load-Disagregation-XAI: Non-Intrusive Load Monitoring (NILM) via seq2point regression. Comparing a 1D-CNN and Decision Tree with interpretability via Grad-CAM and decision paths

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
Load_Disaggregation_XAI.ipynb
Load_Disaggregation_XAI.ipynb
 
 
README.md
README.md
 
 

Repository files navigation

XAI for Load Disaggregation (NILM)

This repository contains the load disaggregation project developed for the Ambient Intelligence and Domotics course at the Università degli Studi di Milano-Bicocca.

The goal of this project is Non-Intrusive Load Monitoring (NILM) via seq2point regression: given a sliding window of the aggregate mains power signal, predict the power consumption of individual appliances (kettle, microwave, washing machine, and dishwasher) at the window midpoint.

Explainable AI (XAI) techniques are applied to compare and interpret the decision-making processes of the models.

Features and Methodology

  • Task Formulation: Seq2point regression using a 60-step (6-minute) context window of aggregate mains power.
  • Compared Models:
    • Multi-Output Decision Tree: Baseline model operating on handcrafted statistical features (mean, standard deviation, min, max, etc.).
    • 1D-CNN: Deep learning model operating directly on raw normalized mains windows to capture temporal dependencies.
  • Explainable AI (XAI):
    • Decision paths are extracted and visualized for the Decision Tree to understand feature splits.
    • Grad-CAM (Gradient-weighted Class Activation Mapping) is adapted for the 1D-CNN regression model to identify which temporal regions in the mains aggregate signal trigger appliance predictions.

Project Structure

  • Load_Disaggregation_XAI.ipynb: Main Jupyter notebook containing environment configuration, data loading, preprocessing, feature engineering, model training, parameter sensitivity analysis, and XAI visualizations.
  • data/:
    • house2_df.pkl: Preprocessed house dataset.
  • scripts/:
    • prepare_dataset.py: Script to load raw measurements and output the cleaned pickle file.
    • nilm_utils.py: Utility functions for metrics computation, prediction plotting, Grad-CAM activation mapping, and XAI comparisons.

Authors

  • Bahenda Yvon Dylan Ntegano

About

Non-Intrusive Load Monitoring (NILM) via seq2point regression. Comparing a 1D-CNN and Decision Tree with interpretability via Grad-CAM and decision paths

Topics

load-disaggregationnilmseq2pointxai

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.