Combining Expert Knowledge and Learning from Demonstration in Real-Time Strategy Games

  • Ricardo Palma
  • Antonio A. Sánchez-Ruiz
  • Marco Antonio Gómez-Martín
  • Pedro Pablo Gómez-Martín
  • Pedro Antonio González-Calero
Part of the Lecture Notes in Computer Science book series (LNCS, volume 6880)


Case-based planning (CBP) is usually considered a good solution to solve the knowledge acquisition problem that arises when developing AIs for real-time strategy games. Unlike more classical approaches, such as state machines or rule-based systems, CBP allows experts to train AIs directly from games recorded by expert players. Unfortunately, this simple approach has also some drawbacks, for example it is not easy to refine an existing case base to learn specific strategies when a long game session is needed to create a new trace. Furthermore, CBP may be too reactive to small changes in the game state and, at the same time, do not respond fast enough to important changes in the opponent’s strategy. We propose to alleviate these problems by letting experts to inject decision making knowledge into the system in the form of behavior trees, and we show promising results in some experiments using Starcraft.


Game Designer Behavior Tree Domain Theory Query Node Primitive Action 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    AIIDE: StarCraft AI competition. As Part of the Program of the Artificial Intelligence and Interactive Digital Entertainment Conference (2010)Google Scholar
  2. 2.
    Blizzard: Starcraft game (1998),
  3. 3.
    Flórez-Puga, G., Llansó, D., Gómez-Martín, M.A., Gómez-Martín, P.P., Díaz-Agudo, B., González-Calero, P.A.: Empowering Designers with Libraries of Self-validated Query-enabled Behaviour Trees. In: Artificial Intelligence for Computer Games, pp. 55–82. Springer, Heidelberg (2011)CrossRefGoogle Scholar
  4. 4.
    Isla, D.: Halo 3 - building a better battle. In: Game Developers Conference (2008)Google Scholar
  5. 5.
    Krajewski, J.: Creating all humans: A data-driven AI framework for open game worlds. Gamasutra (February 2009)Google Scholar
  6. 6.
    Lee, G.H.: Rule-based and case-based reasoning approach for internal audit of bank. Know.-Based Syst. 21(2), 140–147 (2008)CrossRefGoogle Scholar
  7. 7.
    Marling, C.R., Whitehouse, P.: Case-based reasoning in the care of alzheimer’s disease patients. In: Aha, D.W., Watson, I. (eds.) ICCBR 2001. LNCS (LNAI), vol. 2080, pp. 702–715. Springer, Heidelberg (2001)CrossRefGoogle Scholar
  8. 8.
    Millington, I., Funge, J.: Artificial Intelligence for Games, 2nd edn. Morgan Kaufmann, San Francisco (2009)Google Scholar
  9. 9.
    Muñoz-Avila, H., Aha, D.W., Nau, D.S., Weber, R., Breslow, L., Yamal, F.: Sin: integrating case-based reasoning with task decomposition. In: IJCAI 2001: Proceedings of the 17th International Joint Conference on Artificial Intelligence, pp. 999–1004 (2001)Google Scholar
  10. 10.
    Ontañón, S., Bonnette, K., Mahindrakar, P., Gómez-Martín, M.A., Long, K., Radhakrishnan, J., Shah, R., Ram, A.: Learning from human demonstrations for real-time case-based planning. In: Kuter, U., Muñoz-Avila, H. (eds.) Proceedings of the IJCAI 2009 Workshop on Learning Structural Knowledge From Observations (2009),
  11. 11.
    Ontañón, S., Mishra, K., Sugandh, N., Ram, A.: On-line case-based planning. Computational Intelligence 26(1), 84–119 (2010), MathSciNetCrossRefGoogle Scholar
  12. 12.
    Palma, R., González-Calero, P.A., Gómez-Martín, M.A., Gómez-Martín, P.P.: Extending case-based planning with behavior trees. In: 24th Florida Artificial Intelligence Research Society Conference (to appear, 2011)Google Scholar
  13. 13.
    Prentzas, J., Hatzilygeroudis, I.: Categorizing approaches combining rule-based and case-based reasoning. Expert Systems 24(2), 97–122 (2007)CrossRefGoogle Scholar
  14. 14.
    Weber, B.: Integrating expert knowledge and experience. In: AAAI Doctoral Consortium (2010)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2011

Authors and Affiliations

  • Ricardo Palma
    • 1
  • Antonio A. Sánchez-Ruiz
    • 1
  • Marco Antonio Gómez-Martín
    • 1
  • Pedro Pablo Gómez-Martín
    • 1
  • Pedro Antonio González-Calero
    • 1
  1. 1.Dep. Ingeniería del Software e Inteligencia ArtificialUniversidad Complutense de MadridSpain

Personalised recommendations