Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20pt,42pt] Implementation, training and model validation using the approach from Sidhant Gupta #81

Closed
10 tasks done
ThomasKittler opened this issue Oct 21, 2022 · 3 comments · Fixed by #98
Closed
10 tasks done

Comments

@ThomasKittler ThomasKittler moved this to 🆕 Ideas (∞) in NILM Integration for FAIR Nov 7, 2022
@ThomasKittler ThomasKittler moved this from 🆕 Ideas (∞) to 📋 Backlog in NILM Integration for FAIR Nov 7, 2022
@ThomasKittler ThomasKittler moved this from 📋 Backlog to 🏗 In progress in NILM Integration for FAIR Nov 7, 2022
@ThomasKittler ThomasKittler self-assigned this Nov 7, 2022
@mariahirsch
Copy link
Contributor

Labelling training data more difficult than anticipated: there is no threshold value for peaks in Apparent Power Spectra that works as a switch detection for all appliances. Even the sum of the individual spectrum of a single time step is not comparable, although switches are clearly to be seen.

This are the sums of a time series of switches of a blow dryer:

Image

And the sums of a time series of switches of an LED bulb:

Image

Note the difference on the y axis.

@mariahirsch
Copy link
Contributor

New approach: norm spectra before switch detection via sum of spectrum. Examples:

LED bulb:

Image

or

blow dryer:

Image

For switch detection: Once any switch event is detected for a normed, background subtracted spectrum, the detection of the switch direction (on or off) is preferrably done with the <switching_offset>th next spectrum. This approach is more robust against peaks resulting from mechanical switches.

@mariahirsch
Copy link
Contributor

Hyperparameter tuning: 70% of training data used for fitting the classifier, 30% for validation.

Parameters tested: n_neighbors, feature scaling methods, number of peaks in power spectrum taken into account

Best results so far:

  • for all appliances (including all similar appliances, e.g. two blow dryers etc):

Image

MaxAbsScaler with n_neighbors of 1 and the 3 most prominent peaks in the power spectrum leads to a validation accuracy score of 0.808

  • for only different kinds of appliances (both blow dryers map to the same output class, etc), using same number of peaks and scaling method as above:

Image

  • for different kinds of appliances using the 9 most prominent peaks in the power spectrum leads to an accuracy score of 0.992:

Image

@ThomasKittler ThomasKittler moved this from 🏗 In progress to Finished Implementation in NILM Integration for FAIR Dec 14, 2022
@ThomasKittler ThomasKittler changed the title [20pt] Implementation, training and model validation using the approach from Sidhant Gupta [20pt,42pt] Implementation, training and model validation using the approach from Sidhant Gupta Dec 14, 2022
Repository owner moved this from Finished Implementation to 🔖 Selected in NILM Integration for FAIR Dec 16, 2022
@RalphSteinhagen RalphSteinhagen moved this from 🔖 Selected to ✅ QA-Accepted/Merged (∞) in NILM Integration for FAIR Dec 16, 2022
@ThomasKittler ThomasKittler removed their assignment Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: QA-Accepted/Merged (∞)
2 participants