Giter Site home page Giter Site logo

Comments (7)

mjcumming avatar mjcumming commented on May 28, 2024

This looks like a great way to solve for location in 3D. I have a few more ESP32's on the way and will try and see if there is a way to harvest data.

from ad-espresense-ips.

iamandymcinnes avatar iamandymcinnes commented on May 28, 2024

With the issues you mentioned about python versions, what about moving the logic to the esp32s? Something like this: https://github.com/eloquentarduino/micromlgen

This was also quite interesting in terms of modelling the data: https://github.com/filipsPL/cat-localizer

from ad-espresense-ips.

DTTerastar avatar DTTerastar commented on May 28, 2024

Cat localizer is very cool. The problem w/ one esp doing the ML is we need all the data from all nodes.

from ad-espresense-ips.

Appyx avatar Appyx commented on May 28, 2024

My proposal:
Why not use a docker container already prepared for scikit or XGBoost. This could run anywhere since only a mqtt python lib is necessary to communicate. When everything is working, we could just restart the container with a parameter so that it skips the training phase.
This can then easily be transformed into an addon which runs inside HomeassistantOS. (Not sure if training on ARM is easy tbh)

In production the user could simply switch the addon to training-mode and send the labels (rooms) via mqtt or some other input strategy to the container.
When the user is finished he switches the addon back to non-training mode.

I guess I will try this out with scikit and a simple random forest.
Should be straight forward:
rssi1 rssi2 rssi3 rssi4 rssi5... = room1
rssi1 rssi2 rssi3 rssi4 rssi5... = room2
...
Missing rssi values could be handled by waiting for a fixed amount of time to collect all readings and providing 0 as value for missing stuff.

My only issue right now is that I might have to wait 10 seconds for all readings to arrive since the ESPs do not send readings at the same time. Can we improve the 5 second delay per reading?

Also, how could we handle different devices since they have different rssi strength depending on the device. We would need some sort of normalizing as preprocessing step I guess.

from ad-espresense-ips.

DTTerastar avatar DTTerastar commented on May 28, 2024

Very cool stuff. I think that is a good approach. Using appdaemon leads to pain. I was thinking adding a select dropdown of what room the device is in, then when you switch it to another room use that as a new training point.

from ad-espresense-ips.

Appyx avatar Appyx commented on May 28, 2024

I like the idea of a dropdown. Maybe even the already defined rooms in Home Assistant could be utilized somehow in a polished version.

However, I realized after posting my comment that this does not solve the issue of accurate positioning in a coordinate system. I doubt that regression training would be as easy as classification because how would you know the exact values of your position while recording data.

Unsupervised training would be interesting research stuff in that area. Maybe it's possible to figure out clusters (rooms) automatically.

But simple classification would be a good first step to room occupancy, which might be enough for most use cases.

Another idea that I read somewhere here or in the ESPresense issues: We could try to utilize other stationary devices like Echo Dots to improve the rssi readings of nearby placed ESPs to basically figure out the noise levels.
Could just be an additional dimension in the supervised classification approach.

from ad-espresense-ips.

DTTerastar avatar DTTerastar commented on May 28, 2024

Yes, this wouldn't try and do any coordinate system. Just the "room" it's in.

from ad-espresense-ips.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.