Wednesday 10 February 2010

Fuzzy Logic - Circles

Fuzzy Circles

Was reading a short article online (here) about using Fuzzy Logic in games and a possible variance of the methods proposed came to mind.

In the article it is mentioned how Fuzzy Logic sets can be represented as triangles - and how these intersecting triangles (from a group of sets) can be used to determine actions (of a game character AI in the article concerned).

An alternative method - it seems to me - might be to use Circles instead of triangles for/to represent the sets.

And additionally to use colours.

Thus - one the circle are sectors, each representing certain parameters within the Set, such as don`t move, move forward, move to the left, move to the right, move ...etc - and each of the sectors represented also by a colour - say blue for don`t move and so on.

Then have a group of sets (for instance to determine movement) represented by a group of circles each circle being arranged concentrically around the next - so a cirlce divided into many smaller circles - and each circle being divided into sectors which are themselves allocated colours.

So - as the AI comes upon a situation the various circles move and line up in a specific way - but, and here`s where this might be interesting (though might be of little use or perhaps has been done already) - what the overall objective or maybe motive of the AI is is to get a "Good Feeling"/"Be Happy" -

And this Happiness results from the colour of - lets say Gold.

As the circles move back and forth the colours mixing from inner to outer (or vice versa) circle will result, when these colours are combined - in another colour.

Thus the nearer the colour is to Gold (Happiness) the more the AI seeks to do this - and thus chooses that Result as its course of action.

This might produce some unusual and interesting results in the Game and the AI itself might prove to be an interesting "character"?

Potentially it might even be possible for the AI itself to program (learn) its various component circles from experiences and thus refine its ability to find Gold (Happiness) - further thought needed......

Anyway idea offered to any who might be interested - to play with and So on.....

....................................................................
If of course - in a less simplistic Model - there are more circles determining behavious - then there combined Colour output - still seeking Gold (Happiness) might prove even more interesting.

Picturing for instance something like the Chakra "model" - and each Chakra being one of the multiple circles and each providing colour - and these combining..... and so on....

tbc praps.....................................


With that method proposed of using colours - and the blending of colours with the objective of a particular colour -

Might it be that a game AI would actually have an equivalent to the sub/un-conscious?

If its objective was to create the colour gold - from the output of each of its sets - individually as a particular set of concentric circles - and most importantly collectively as a result of the combined output (colours) of these sets/concentric circles -

Then what was happening within the circles would be of less concern than the actual output(s) - it might even be that the game AI would be "blind" to the actual contents of the circles/sets - aware only of the final coulour output(s)?

That in a sense might well be a computer version of having an sub or unconscious?

Might that actually create the (pre)conditions necessary for an actual and Conscious AI to emerge?

I`m not sure but I`m beginning to wonder - will post this also on my Idea Stall Blog just in case it might be of interest to any in the IT/Programming/AI research world.

.........................................................

Maybe "AI`s" with such a nature might be tried out in the world of SIMS, it might be interesting?

It would be fascinating though if the ability for such an "AI" to truly achieve Gold(happiness) was blocked if others were themselves prevented from the opportunity to also seek/achieve Gold(happiness). ie one circle set - with a particular set of colurs(?) that is related to that - that all others have the opportunity to seek/achieve Gold.

And of course the more an indivdual AI assists others to have the opportunity to also seek/achieve Gold(Happiness) then the nearer that "AI" will be to achieving its own true Gold(happiness).

(Apart from that article mentioned at top I also read back in about 1998 "Fuzzy Thinking : The New Science Of Fuzzy Logic" by Bart Kosko + a few other articles in magazines and online over the years. So the use of Fuzzy Logic has been, you might say, germinating in my mind for a fair old time)