Posts

Showing posts from March, 2014

Training an Artificial Intelligence Machine to Recognize Country Flags

Image
The AI machine was fed flag patterns like number of horizontal lines, vertical lines, colors, crescent, crosses, sun, stars, stripes, bars. It was then asked to cluster countries according to the degree of similarity of their flag patterns.  The result is in the map of six clusters. To test if the AI was good, I took the bottom right cluster (Pink) that contains Singapore. The countries placed near to Singapore are supposed to have flags with a high degree of similarity with Singapore's flag. Now look at the collage of flags image. The flags are: Top row from left: Singapore, Tunisia, Maldives Center from left: Turkey, Mauritania, Pakistan Bottom: Algeria, Comoros Islands, Indonesia. As you can see, although the colors of the flags vary, the flags do have similarities in terms of all of them having crescent and stars. So the AI was smart enough to recognize that the crescent and stars are the important variables.Although I gave all the patterns equal weighting in im...