Captive Imagination
September 10, 2010, 04:02:51 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: jSeamless 1.0 Beta 7 is Available http://www.jseamless.org
 
   Home   Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Artificial Intelligence API Started  (Read 6171 times)
0 Members and 1 Guest are viewing this topic.
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« on: August 24, 2006, 12:43:39 PM »

Just a heads up, we have just started working on an AI API that will be completely implementation agnostic like JGN but have many features for artificial intelligence support in game development.

If you have any ideas or found any good online resources related to AI please post them as the more information the better.
Logged
wolfgang
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #1 on: November 03, 2006, 10:14:08 AM »

Hello,

I'm not sure how you want to move forward with this, so have you got any ideas on what is to be included in the API? We'll need to make an outline of the proposed API so if you've started on anything like rough designs / ideas etc it would be useful to see.

Also it might be useful to know what peoples development experience is of making AI API's and make a repository of resources etc. What do you think? Wink
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #2 on: November 04, 2006, 09:11:11 AM »

Well, it's still rather rough.  My wife is reading a few books on AI currently in her spare time and I've got a bit of experience creating basic AI.  I have been spending a little bit of time recently learning about natural language comprehension because I'd like to write a system that can understand normal chat and respond intelligently.  That way in the game you can type in a chat message and the AI will respond like any other player in the game would to something like, "Hey Joey, watch my back" and they could intelligently respond and obey.  That is a very small portion of what I'm wanting to develop in this API, but it's something I've done work on in the past and recently found an API that is helping:

http://nlp.stanford.edu/software/lex-parser.shtml

Essentially I would love to develop a general purpose AI system that will help create game bots. Feel free to post your ideas and we can just collaborate in here for a while to firm up ideas.
Logged
wolfgang
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #3 on: March 10, 2007, 08:40:01 PM »

Hi Darkfrog,

This is still rather rough, but the basic idea is that the agent (computer character) implements the CTRNNWatcher interface, when the CTRNN is updated it calls the watchers pre- and post-update methods. In these methods the inputs are given to the input neurons of the CTRNN, and the output neurons outputs can be retrieved.

The input neurons get given their input from sensors (I haven't given this code yet because its changing a lot!!) or can just be set directly. I'm developing a 'range sensor' at the mo for my research project (the sensors need a lot of work, there could be lots of pre-made sensors e.g. light sensors, range sensors, sound sensors etc, but all the sensors are built to the same interface so they can be extended by the game developer).

The output neurons receive their output state when the update method of the CTRNN is called, in my robot simulator these values set the rotational speed of two motors that drives wheels.

The CTRNN can be built from XML and saved to XML (this is a bit rough at the mo but it works), they can also be built from a genotype (this is something for my project but can definately be expanded to allow all sorts of GA's to evolve the CTRNN (this would be especially useful for AI researchers wanting to build robot simulations in jME!!)).

Thats it for the moment, but its something that can be extended Smiley These NN's are very useful (especially for people wanting to build robot sims) so I'm very interested in working on it and maybe creating a more general purpose API Cheesy



CTRNN background (just in case your not familiar with them)
-----------------------------------------------------------------------------

A CTRNN is a dynamical system so the concept is rather different to that of a bog-standard feed forward (backprop) net. They are inherently recurrent in nature and so the concept of feeding input through a network to find a discrete output is non-existent. Each neuron is updated simultaneously according to this equation:

tau * dyj/dt = -yj + sum(wij * ai) + Input

where:
  tau = membrane potential or time constant of neuron
  y = neuron state at time t
  b = neuron bias
  ai(y + b) = activation of neuron ni, usually sigmoid function (1/1 + e(-(y + b)))
  sum(wij * ai) = sum of all connecting neurons ni activation * weight to neuron nj
  Input = input value to this neuron (if its an input neuron)

The neurons produce a spiking behaviour dependent on the value of tau and so do not produce discrete output. This NN is surprisingly powerful and can be used to control very complex behaviour. As is the case with most recent AI research especially evolutionary robotics.

Tell me what you think.

* CTRNN.java (10.79 KB - downloaded 347 times.)
* CTRNNWatcher.java (0.56 KB - downloaded 215 times.)
* Neuron.java (2.48 KB - downloaded 214 times.)
* ctrnn.xml (0.79 KB - downloaded 216 times.)
Logged
ScarFreewill
Newbie
*
Offline Offline

Posts: 41


View Profile
« Reply #4 on: November 04, 2007, 03:30:20 PM »

Do you have any plans for speech synthesis systems?
FreeTTS doesn't look to bad... though you wouldn't want any dependencies hey?
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #5 on: November 04, 2007, 04:07:38 PM »

Speech synthesis is a planned result of the API being developed, but initially we're just going for a text recognition and cognition system.
Logged
Mindgamer
Newbie
*
Offline Offline

Posts: 24



View Profile WWW
« Reply #6 on: June 14, 2008, 03:31:31 PM »

Any updates on this? Sounds very interesting...
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #7 on: June 14, 2008, 06:33:54 PM »

Nothing official.  I haven't had much time to work on game-related stuff lately, so hopefully within the next six months there will some more activity here.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.226 seconds with 20 queries.