skip to main content
10.1145/3547578.3547604acmotherconferencesArticle/Chapter ViewAbstractPublication PagesiccmsConference Proceedingsconference-collections
research-article

Design and Implementation of NPC AI based on Genetic Algorithm and BP Neural Network

Authors Info & Claims
Published:19 September 2022Publication History

ABSTRACT

In real game scenes, there may be a problem that it is impossible to collect a large amount of data to train NPC's correct behavior. This paper implements a method of training the neural networks to control game NPC behavior based on an improved genetic algorithm. This method optimizes the weights of the fixed network structure through the genetic algorithm, realizes the self-evolution of the neural network, and improves the fitness function and the selection and crossover mutation method in the traditional genetic algorithm, so as to be suitable for game production. Testing in two real game scenes shows that game NPC can acquire intelligent behavior capabilities using this algorithm.

References

  1. Liu Wei, Wang Muxuan. 2016, Talking about artificial intelligence and game thinking. Science and Society, 6(3):18.Google ScholarGoogle Scholar
  2. Zhu Daqi, Shi Hui, 2006. "The Principle and Application of Artificial Neural Networks" . Science Press..Google ScholarGoogle Scholar
  3. Funge J D.2004. Artificial intelligence for computer games: an introduction[M]. New York: PETERS A K, Ltd.Google ScholarGoogle Scholar
  4. Holland J H. 1992, Adaptation in Natural and Artificial Systems: An Introductory Analysis With Applications to Biology, Control, and Artificial Intelligence. Quarterly Review of Biology, 6(2): 126–137.Google ScholarGoogle Scholar
  5. D Silver, A Huang, CJ Maddison, A Guez, LSifre. 2016 Mastering the game of Go with deep neural networks and tree search. Nature, 529(7587):484-489.Google ScholarGoogle ScholarCross RefCross Ref
  6. Miikkulainen R, Liang J, Meyerson E, 2019. Evolving deep neural networks. Artificial Intelligence in the Age of Neural Networks and Brain Computing. Academic Press, 293-312.Google ScholarGoogle Scholar
  7. Ding S, Zhang Y, Chen J, et al. 2013. Research on using genetic algorithms to optimize Elman neural networks. Neural Computing and Applications.23)2(:293-297.Google ScholarGoogle Scholar
  8. Liang J, Meyerson E, Hodjat B, 2019. Evolutionary neural Auto-ML for deep learning. Genetic and Evolutionary Computation Conference, 401-409.Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. S. Yang, Y. Tian, C. He, 2021. A Gradient-Guided Evolutionary Approach to Training Deep Neural Networks. IEEE Transactions on Neural Networks and Learning Systems, 3061630.Google ScholarGoogle Scholar
  10. Wu Yafeng. 2015. Unity Game Case Development Encyclopedia. Beijing: People's Posts and Telecommunications Press.Google ScholarGoogle Scholar

Index Terms

  1. Design and Implementation of NPC AI based on Genetic Algorithm and BP Neural Network

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Other conferences
      ICCMS '22: Proceedings of the 14th International Conference on Computer Modeling and Simulation
      June 2022
      271 pages
      ISBN:9781450396547
      DOI:10.1145/3547578

      Copyright © 2022 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 19 September 2022

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article
      • Research
      • Refereed limited
    • Article Metrics

      • Downloads (Last 12 months)72
      • Downloads (Last 6 weeks)5

      Other Metrics

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    HTML Format

    View this article in HTML Format .

    View HTML Format