{"title":"Design and Implementation of NPC AI based on Genetic Algorithm and BP Neural Network","authors":"Meili Zhu, Lili Feng","doi":"10.1145/3547578.3547604","DOIUrl":null,"url":null,"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.","PeriodicalId":381600,"journal":{"name":"Proceedings of the 14th International Conference on Computer Modeling and Simulation","volume":"20 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-06-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 14th International Conference on Computer Modeling and Simulation","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3547578.3547604","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
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.