Showing posts with label Research Ideas. Show all posts
Showing posts with label Research Ideas. Show all posts

Sunday, June 14, 2009

Pornographic Classifier

According to a BBC article, China's new "Green Dam Youth Escort" software, intended to serve as a filter for offensive material (such as pornography), has some classification errors. In particular, it was reported that
I went on the internet to check out some animal photos. A lovely little naked pig was sent onto the black list. Pitiful little pig!," read one comment.

"I was curious, so I looked up some photos of naked African women. Oh, they were not censored!

which is amusing to say the least.

The comments do suggest that a key component of their pornographic classifier involves color, specifically the proportion of skin-colored pixels, though this approach apparently has its weaknesses.

Having some experience with image processing as well as classification, there are a few other possible approaches to constructing a pornographic classifier. Rather than using only color information, it might be advisable to perform object recognition to search for a few key areas of interest, i.e. exposed private parts. A combination of shape (since the outlines of some private parts are considerably unique) and color information should be able to identify these body areas with some effectiveness; alternatively, standard object recognition techniques can be used, though these may be more suitable for the specific rather than the general.

Another approach (which is simpler and less accurate) may be to use the color information to generate an outline of the human frame (by segmentation), and to then see how many colors are contained in the frame. The theory is that many colors indicates the presence of clothes; the advantage is that one is unconcerned with the actual skin color itself. Of course, the issue is that whether the segmented region is human- this in itself is a worthy sub-problem, though one workaround is to identify a head region, and if there is none it is not a human.

Generally, though, the problem of creating a classifier to identify pornographic images is considerably difficult. The above ideas may be suitable for images with only one human subject, but the classification task can be made much more difficult by other complications. Such complications include multiple subjects and non-realistic images (i.e. computer generated images or drawings). In fact, circumventing such pornographic classifiers may be extremely simple indeed.

Wednesday, July 09, 2008

Good-Enough Random Number Generators from Complex Systems

Given a sufficiently complex system, it might be possible to create a good-enough random number generator.

Of course, the definition of a complex system is lacking. In my usage, a complex system is one where it is extremely difficult to predict the next state of the system, as there are too many variables to consider. Such systems tend to exist in the real world, where there are many chaotic factors.

In particular, I believe that something that is inadvertently created by many users is considerably complex. For example, the number of web users online, or the number of students on campus at any moment, are both figures that are complex and difficult to predict.

One possible way to implement a good-enough random number generator from a complex system is as follows:

Using a number (for example, three) of seed words, google the seed words. Access the first document of the results, and analyze the document. Use the total number of words in the document, modulo by a small base, as the random number.

For repeated number generation, take the fourth, first, and fifth most frequent terms of the document as seed words for the next query, following the same procedure for repeated searches.

While it is possible that the same seed words would appear after some number of searches, the dynamic nature of the web (documents continuously being created and destroyed), the results would vary from search to search. Furthermore, the Google server being used might vary from time to time too.

Such a random number generator would be difficult to analyze and to predict the results of. However, it might be possible to control the results if the adversary were to be able to control the first seed words. For example, a search for a set of hapaxes would lead to a single document result, which could be planted by the adversary. Subsequent results could then be controlled in the same manner.

It would be interesting, though, to analyse the statistical qualities of such a random number generator. If any patterns were discovered, it could be indicative of a sort of pattern in online documents/search engines.

PS: The numbers in the random number generator are actually "nothing up my sleeve" numbers. They are the digits of PI. In base ten, of course.