2008-01-27

AI agents learn to play Ms. Pac-Man - and sometimes do it better than humans

Istvan Szita and Andras Lorincz from the Department of Information Systems at Eotvos University in Hungary have taught AI agents to play Ms. Pac-Man. Their paper on this, “Learning to Play Using Low-Complexity Rule-Based Policies: Illustrations through Ms. Pac-Man”, was published in the Journal of Artificial Intelligence Research. The study showed that AI agents can successfully be taught how to strategize through reinforcement learning.

Szita and Lorincz chose the game Ms. Pac-Man for their study because it enabled them to test a variety of teaching methods. In the original Pac-Man, released in 1979, players must eat dots, avoid being eaten by ghosts, and score big points by eating flashing ghosts. The player's movements here depend heavily on the movements of ghosts, whose routes are, however, deterministic, enabling players to find patterns and predict future movements. In Ms. Pac-Man the ghosts' routes are randomized, so that players can't figure out an optimal action sequence in advance. This means players must constantly watch the ghosts' movements, and make decisions based on their observations. In their study, Szita and Lorincz taught their AI agent to do the same.

Hungarian researchers used the "cross-entropy method" for the learning process of their AI, and rule-based policies to guide how the agent should transform its observations into the best action. The scientists gave their Ms Pac-Man program a selection of possible scenarios, such as “if ghost nearby”, and possible actions, such as “move away”. The program randomly combined scenarios with actions to produce rules, and then played games using random combinations of those rules to deduce which ones work best.

When the program has to make a decision, it checks its rule list, starting with the rules with highest priority, important for situations in which two rules conflict. The most important rule, it decided, was to avoid being eaten by ghosts. The next rule says that if there is an edible ghost on the board, then the agent should chase it, because eating ghosts results in the highest points. The AI agent also knows that if all moves seem equally good, it shouldn’t turn back as the dots in that direction have already been eaten.

The resulting program narrowly outperformed average human players. However, it failed to evolve certain tactics that humans find useful, such as waiting for ghosts to approach before eating a power dot to maximize the potential effect of the dot. In other words – there is still much to learn for this AI agent. Phew!

"Electronic Mufti" - AI designed to issue Islamic fatwas

French researchers are working on an AI engine that can issue fatwas, or Islamic edicts, allegedly more accurately than a human can. The device will be known as the “Electronic Mufti” and will depend on Artificial Intelligence to issue opinions on contemporary Muslim affairs and matters. Will it revolutionize the field of Islamic jurisprudence? Or is it just a hoax?

The system will hold a database of the writings and proclamations of various Islamic historical figures. The user selects a person, for example Jesus or the Prophet Mohammad, and then queries it on a specific contemporary situation. The “Electronic Mufti” would then simulate a proclamation or edict from that person.

Engineer Dr. Anas Fawzi, who is part of the team based in France describes the device as “a very large capacity computer on which all the information that is relevant to a given [historical] figure is uploaded; everything that has been mentioned in history books or chronicled documents that indicate his/her responses and attitudes towards all positions adopted in his/her life. Through a process that relies on AI, the computer then simulates responses based on the available data so that the answers are the expected response that the person in question would give if they were alive”.

The device deduces the expected response through consulting thousands of examples that have been uploaded on to the machine, pertaining to that person whilst taking into account their reactions so that it may relate the expected response in accordance with their personality as created by the Artificial Intelligence apparatus.

Dr. Fawzi admits that it would be highly controversial – if not downright contentious – to implement this technology. However, he claims to have consulted with several Islamic scholars and clerics in elevated positions who have assured him that such a device is not “haram” (prohibited by Islam). “But there are fears and scepticism regarding misuse and causing any misrepresentation or defamation to the figure of the Prophet. There are also fears in terms of Arab and Islamic public opinion and their acceptance of a machine such as this”, said Dr. Fawzi.

2008-01-23

Intelligent Avatar in Second Life


InteliWISE Second Life bot from Making Waves on Vimeo.

On January 23rd, 2008, InteliWISE introduced into Second Life the first intelligent avatar which is able to talk with other Residents. The Polish engineers were the first in the world to offer such a solution to SL users. The first intelligent avatar in the InteliWISE seat in Second Life was created in cooperation with the Making Waves company.

"If a 'real' employee leaves the virtual world, their avatar does so too – that's how it was in Second Life until now. Because of this fact, the seats of many companies, embassies or even whole cities are empty if one visits them during their creators' sleeping hours. At InteliWISE we have created an avatar – a virtual employee, which never sleeps, and thanks to AI algorithms and its 'learning' process, the virtual employee can talk to hundreds of clients at the same time" - says Marcin StrzaƂkowski, InteliWISE CEO. "Our virtual employee is directed at the companies and institution which want to present themselves in the best possible way in Second Life. This is a revolutionary solution, and has a great impact on service quality – companies which use the avatar are able to fully control a conversation. Thanks to this, companies can easily fill in gaps in their information about clients and gain valuable knowledge about which questions are most frequently asked to the virtual agents."

The InteliWISE solution is directed at the companies, cities and consultants who have an alter ego in Second Life. Thanks to the employment of AI by the avatar, it is possible for the company to fully represent itself, even after its "real" working hours. The creators of the intelligent avatar hope, that due to its constant presence and professional manner, it will also convince individual Second Lifers to use InteliWISE avatars. The solution makes it possible to search the chat history and check the actual interest shown in offered products and services.

The enterprise is innovative on a worldwide scale, therefore, the algorithms and solutions have been presented for a patent application a.o. in the USA. InteliWISE is the first company in the world, to have combined in one AI algorithms, speech synthesis and 3D character visualization to create an avatar that looks and moves like a human being. From the point of view of companies who care about optimum self-presentation in Second Life, it is important that InteliWISE prepares the whole product “from A to Z”, creating the employee's look, adding voice, and most importanantly – teaching it what to talk about. As Second Life is visited by the international community, the intelligent avatar speaks English, but there is no difficulty to make it speak Polish as well.

One can visit and talk to the avatar at the virtual InteliWISE seat in Second Life at www.secondlife.inteliwise.com. Teleportation is possible only for those who have an account in Second Life.