Comments (7)
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.
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.
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.
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.
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.
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.
Yes, this wouldn't try and do any coordinate system. Just the "room" it's in.
from ad-espresense-ips.
Related Issues (17)
- AppDaemon install issues. HOT 5
- how to use HOT 102
- device_tracker or device_tracker.see HOT 4
- Install in Docker - Error HOT 5
- ERROR: unable to select packages: python3-3.9.5-r1: HOT 5
- mqtt namespace question HOT 1
- Error: Unexpected error loading module: /conf/apps/ad-espresense-ips/espresense-ips.py: HOT 2
- Help! Getting confused over coordinates HOT 2
- Unable to decode MQTT message HOT 1
- FloorPlan creator for ESPresenseIPS HOT 11
- espresense/ips captures all ble devices HOT 2
- Precision improvement - Wrong values polluting calculations HOT 12
- App has 0 callbacks on Appdaemon after new setup HOT 1
- Queried IDs not mapped in IPS HOT 2
- Should we start over? HOT 4
- Thoughts on dealing with multiple floors HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ad-espresense-ips.