183 points · by qrv3w · 10y ago · 72 comments
https://github.com/schollz/find/blob/master/FAQ.md#how-does-...
That's an accurate description, though I'd avoid the negative terminology. The system does derive its data from nearby WiFi routers, but it is in no way exploitative, like real parasites. WiFi scanning is something all smartphones do all the time, so this system merely tries harnessing it into something useful at the same time.
As for the technical side - this system uses a Naive Bayes estimator for the signal levels from mac addresses, as well as the presence of mac addresses it sees during scans. Before it can be used it needs to "learn" by visiting all the locations you want to identify. After learning it "tracks" by classifying the location used the Naive bayes estimators.
> How do you compare the current fingerprint of a user with the one stored in database?
The fingerprints are used to generate priors. Basically a prior is the probability for encountering router X with signal strength Y in room Z. These are real probabilities. When I classify a location, it uses these probabilities and Bayes law to determine new "Bayes probability."
> How do you determine the probability for classification?
You are now referring to the probability on the dashboard (the webpage) I assume. Thanks for the question. This is inherently confusing, since really it is NOT a real probability so its a bit of a misnomer. Lets call them my "probability estimate." Technically speaking, the Bayes probabilities (real) are taken and normalized to the standard normal distribution. Then I determine the "probability estimates" by the proportion of the exponent of the standard normal normalized Bayes probabilities.
There are other microcontrollers with Wifi and similar capabilities that are even cheaper, like the ESP8266 at around $5, but I haven't worked with those before.
EDIT: I just saw you want it to wake up every five seconds --- in that case sleep won't help much and you'll need a big battery for a month of use, since wakeup and scanning for networks takes a few seconds. Waking up less often (eg. every 15min) would be more feasible, but it really depends on your intended use.
A typical apartment or business has 10s to 100s of routers nowadays that your smartphone can "see" when it scans. Thus, the movement of a single router never really hinders the signal that much.
Still, I might try to add some bootstrapping to the software so that tracking locations can be used to "relearn" places to later test if the routers have been moving around.
I can't track my children, I can't track my wife's iPhone. I couldn't even track myself if I left my phone in the charger. It would be neat to track my positioning and run some statistics but I wouldn't say it's useful.
I ask because Ive had to wave my arms about far too often in public restrooms due to motion sensors deactivating the lights when spending too long on the toilet. Having that happen in my own home would be annoying enough to warrant the additional complexity of FIND (or ditch home automation entirely)
I've seen in the past some Android apps that do this, not sure now what's the situation.
EDIT: found some paper about it and how it worked: http://hkr.diva-portal.org/smash/get/diva2:475619/FULLTEXT02...
The paper you linked is also discussing use of WiFi and Bluetooth.
Edit: here's a good overview: http://stackoverflow.com/a/7835988
It really depends on how many routers are in your area. For places in cities, there are tons and tons of routers so its very easy to get pretty good resolution. For places more remote, you might not see many routers and then you would be for more limited in your resolution.
I'm looking at this for gaming applications. Don't need milimeter accuracy but +- 30cm would be good.
There have also been many other projects like http://wearnotch.com/
For now, External distance cameras (Kinect-like) seems to be the most accurate and usable method. Something like what these quadcopters use: https://www.youtube.com/watch?v=AiCFtmdrvHM
I know that this already exists in many variations: https://github.com/schollz/find/blob/master/FAQ.md#doesnt-th...
Still, I've never seen one that is open-source that works pretty well, so I thought I'd put mine out there.
Seems like that should be in the first 3 lines of the description, not near the end of the FAQ.
Very cool project.
"The WiFi fingerprints are also the same across all devices so that learning using one device is guaranteed to work across all devices."
https://github.com/schollz/find/blob/master/FAQ.md#doesnt-th...
Does it accommodate mobile APs on smart phones or personal hot spot devices? Seems those might confuse it in an enterprise setting.
Also, I would assume that the software will differentiate APs with the same SSID as in an enterprise situation and rely on MAC IDs. But just so I don't have to assume, can you confirm that it does?
Yes, it will differentiate APs with the same SSID as it relies on MAC IDs. I use it at my university with no problem (which is an enterprise situation).
> Does it accommodate mobile APs on smart phones or personal hot spot devices?
It uses mobile hot spot information, however if the hot spots disappear it will not affect the results too badly, as long as there are some permanent AP fixtures. Anecdotally, I've used this system in airports (which house many personal hotspots) and it still has good recognition.
It still wouldn't work so well, though, for basic use cases like "turn on the dimmer lights to 40% if I enter the bathroom in the middle of the night".