Bayesian Filtering Outside of Email?
clonebarkins asks: "Is anybody out there using Bayesian filtering for stuff other than to get rid of spam? For example, how useful would Bayesian filtering be to identify news stories/blog entries in the RSS feeds I monitor? Is there any software out there using Bayesian filtering to do this sort of thing already? Are other types of filters better for these purposes?" What other areas can you think of where Bayesian filtering may prove useful?
.. imagine, filtering out MS fud stories and dupes!
"Derp de derp."
Slashdot Dupes.
And, as a more insightful suggestion, troll posts marked as redundant in slashdot stories. There have been a few "attacks" on slashdot which could have been prevented by simply blocking 'repeat' posts.
Bayesian needs pre-determined "bins" of data to assign a new piece of information to --that's a limited approach that will break down for news articles or generic Web pages. A combination of context- and collaborative-filtering is a much better approach IMSHO (that's my newsbot, BTW).
Here's an enhancement request I filed for Firefox. This is something I think would be a nice use of Baysian filtering.
See their technology overview. I believe they have a number of (ugh!) patents on Bayesian text analysis. They were founded by a Dr. Michael Lynch to productize research he did at Cambridge U.
For those of you who don't know, phylogenetics is a set of techniques for working out a 'family tree' of taxa (taxa = basically units of analysis, normally species or genetic sequences). The main reason for doing this is that it gives an objective way of testing evolutionary hypotheses. For example - If I predict a certain protein has evolved through stages A, B then C, but my tree shows a pattern of A - C - B, I can reject that hypothesis.
Phylogenetics is extremely powerful and has allowed us to investigate many many cool things (like the origin of modern humans in Africa, and the migrations out of). The problem is that there is a *huge* number of trees to search to find the optimal set of trees. The formula (IIRC) is 5N-2!!, where N is the number of taxa. So, 10 taxa (species or whatever) has 34 million trees, and when you get up to a real dataset it gets much worse: There are 10^132 ways of connecting my 77 taxa dataset.
Bayesian approaches can really really speed up this process. We used to have to do a large number (100-1000) of heuristic analyses and then bootstrap (a resampling procedure) these to get a confidence interval, of say, a date of a divergence time or a model fit. These Bayesian techniques allow us to do, say, 10 long runs whilst simultaneously estimating parameters.
Sooo much faster (ie - that 77 taxa dataset mentioned before - instead of ~250 hours x 1,000, I can do the same in about ~100 hours x 10.
There are some problems - it possibly over-estimates support (ie underestimated uncertainty in the data) for taxa groupings, compared to the bootstrap method. This isn't terribly surprising given the hill-climbing approach these algorithms use, but no-one's really sure whether this is a good or bad thing (since no-ones really sure how to interpret the alternative bootstrap support)
Fantastic software: Mr Bayes: Bayesian Inference of Phylogeny
and BAMBE: Bayesian Analysis in Molecular Biology and Evolution
henry -- the human evolution news relay
and especially how it applied to rss feeds, but that's not all. You could apply it to search results, friendster-type profiles, etc. Maybe that's what google has planned with their personalized search engines...
For those who still bravely (foolishly) venture onto usenet, it would be nice to replace kill files with something Bayesian. There may be such a reader already but I haven't seen it (nevermind something cross-platform, which is a must for me).
Well, the latest version of MT-Newswatcher for Mac OS X utilizes Bayesian filtering to filter Spam out of newsgroup postings. Maybe not the most unusual application of things Bayesian, but a welcome one nonetheless.
It works great to sort pr0n! And it's much more useful than getting rid of spam too.
It could help for slashdot. Unfortunately, the site is only given a small portion of a machine, so the added complexity would probably cost the parent company too much.
First off, the spam filters are actually classification algorithms, not filters---the name filter is incorrectly used almost exclusively by spam classification software--and worse yet they're really only referring to a specific classifier (the "Naive Bayes" algorithm) rather than to classifiers in general. "Bayesian" filters are things like Kalman Filters, Particle Filters and Hidden Markov Models which are used in any number of fields, but not really germane to the tasks you're asking about I think. Using "Bayesian Classification" in Google will probably yield more fruitful results.
It sounds like you want to extend the naive bayes classifier to more than two categories and, in the best case, learn new categories from the data. Both can be done and have been done with varying degrees of success. You might try here for some pointers to more information about how it is done (the algorithm itself has been around since the '60s---people only think its something new). Unfortunately for things like RSS and email you're going to run into two problems: you really want to do your classification on-line and your data are actually quite sparse and your prior is usually uninformative so its going to be hard to do the actual classification. But, who knows, its still an active topic of research.
Try visiting http://www.mackmo.com/nick/blog/java/?permalink=cl assifier4jnntprss.txt
"I now have Classifier4J and nntp//rss working together to do Bayesian classification of RSS feeds. There are a few things still to work out (perfomance and usability to name two), but I'm pretty pleased with it, since it was something I whipped up in a couple of hours. AFAIK it is the first Bayesian/RSS thing that has got far enough to have a screenshot..."
My friend has done this with his growlmurrdurr aggregator. It uses SpamBayes along with a set of "this sucks", "this is yay" buttons on displayed feeds to highlight them appropriately.
Also, I'm not certain, but I strongly suspect that Google is using some sort of Bayesian filtering as at least part of their criteria for Google News.
Random and weird software I've written.
I'm working on a project for my Senior Project that could take the Bayes method to identify webpages that are 'good' or 'bad' for a proxy or bridge based connection filtering or bandwidth limiting application.
Now, obviously for webpages its a bit easier to say 'good' 'bad', but this app (www.bandwidtharbitrator.com) already has some regular expressions for apps like Kazaa, Bittorrent, in the hopes of limiting the bandwidth. I wonder if a Bayesian system could be adapted to this domain? I considered it, but the person in charge of that part of the project is using a diff-like method (which I find silly).
Are there easy-to-plug-into APIs and libraries like that we could use to do all the 'hard work'? Is SpamBayes up to the task?
--onyx--
What other areas can you think of where Bayesian filtering may prove useful?
Family discussions?
I would expect such blatant racism on Fark, but on Slashdot? Mods please ban this asshole.
the technology developed at MS research to get the paperclip (the office help animate hate attractor) to work is based on a bayes net.
t ml
http://www.wired.com/news/print/0,1294,43065,00.h
I have a friend at university who is using it to analyse news stories and make predictions about stock increase/decrease (Masters degree project). It seems to be working well enough that if you followed exactly what was guessed so far you would have made money, however i still wouldnt trust real money (the gains are quite small, and obviously the risk is still high). However, combined with human knowledge this really does look like a potentially very interesting bit of software.
I know, it's in mail, but as far as I know, opera's mail client (in the actual beta 7.5 at least) uses bayesian filtering to sort non-spam messages in your views. Opera learns where to sort mails when you drag and drop mails from one view to another so you don't have to set up rules (you can do, if you want but you don't have to).
Consider, for instance, the total amount of sunlight hitting your computer screen. Most people would like an automatic system to control their window blinds to keep that amount to an acceptable level, but the system cannot know a priori what that level will be for a given user. So we let the system set the blinds to a setting deemed acceptable for the average user and use the user's manual interventions to build up a list of bad settings, corresponding to the setting immediately before the intervention, and good settings, corresponding to the setting immediately after the intervention.
The system will then attempt to minimize the probability of the user rejecting its settings by applying Bayes' theorem.
I've done only preliminary exploration of this idea so far but the results are encouraging, and we plan to do a full-scale experiment this summer.
I have a short answer. Yes.
My students and I are buidling a filter for the web. We're really not ready to tlak about it yet, but it is working well and we hope to get something "out there" soon (next year?).
We take care of the technical needs of many schools throughout the area and every one of them wants web content filtering.
We typically setup squid and squidguard for them and grab blacklists from a regional database the schools put together.
The first thing you can't help but notice is that it sucks. Even with the various schools additions it doesn't block much of what it should and blocks quite a bit it shouldn't. All of the same problems come into play with these hardcoded blacklists that come into play with spam.
So I'm wondering, is there any filter for squid (or another linux based web proxy) which uses a more intelligent method such as bays?
Is anybody out there using Bayesian filtering for stuff other than to get rid of spam?
Look out for most content management systems - most of them happen to make use of some or other form of Bayesian algorithms to "cleanse" the content and/or extract attributes. After all, your "filter" is nothing but a set of rules built on a test/clean data, with which you compare your actual data.
For example, how useful would Bayesian filtering be to identify news stories/blog entries in the RSS feeds I monitor?
Do you monitor similar/same RSS feeds from different sources? What factors differentiate these two sources? Do you have know the ground rules/criteria to determine sanctity for the same/similar RSS feed from these different sources?
Is there any software out there using Bayesian filtering to do this sort of thing already?
Don't know about that. Though I'm sure you can download some Bayesian implementation from the web and hook it up with your RSS feeds.
What other areas can you think of where Bayesian filtering may prove useful?
There are already content management (catalogs), and attribute extraction (ESS systems for large corporations need to exchange data with several suppliers via supplier catalogs).
http://efil.blogspot.com/
I am trying to setup Popfile to sort mailing list messages into multiple buckets: very interesting, mildly interesting, worthless and so forth. I belong to several high-volume mailing lists and I've been wishing for an easier way to find what I care about without having to skim several hundred messages to find it. I am hoping the classifier will eventually pick up on what people and topics I like best.
This would be a great application for system logs. You think your e-mail is full of spam and worthless junk, try going through MB of multiple sysem logs a day. I know there are logwatch tools, but AFAIK, they're regex based. A Bayesian approach would be great, as it would learn what I care about and what I don't. Heck, I might be able to convince work I need to write on now. Time to Google and see if such a thing exists.
I am, and always will be, an idiot. Karma: Coma (mostly effected by
When the original "plan for spam" article came out, I got excited about it and incorporated it into a suggestion tracking system I was working on. The end result was nice. In the system, the user would look at email and associate it with existing suggestions or bug reports. The system learned what words were associated with which suggestions or bugs, and would show the user a list of suggestions which might be relevant for the email he was viewing. It worked surprisingly well.
Free, legal music for iTunes users.
Findory.com (run by a Slashdot user) filter's news based on user preferences. It stores preferences automatically using cookies and require no registration.
Read my blog: HansMast.com