Tesis de pregrado: Aprendizaje Automático para creación de Inteligencia Artificial capaz de disparar cañones a objetivos móviles y estáticos en un escenario de Unity 3D
Autores
Editor
Universidad Central del Ecuador
Tipo de Material
Trabajo de grado - Pregrado
Fecha
Título de la revista
ISSN de la revista
Título del volumen
Cita bibliográfica
Cabrera Rojas, L. (2023). Aprendizaje Automático para creación de Inteligencia Artificial capaz de disparar cañones a objetivos móviles y estáticos en un escenario de Unity 3D. Universidad Central del Ecuador.
Resumen en español
Este trabajo de titulación consiste en la creación de una inteligencia artificial (IA) capaz de disparar proyectiles desde cañones a objetivos móviles y estáticos con uso del motor de videojuegos Unity 3D y el paquete ML-Agents. Adicionalmente se desarrolló un prototipo de videojuego en el que el jugador podrá batallar contra esta IA y en el cual se podrá probar la eficacia de la IA. Se crearon dos proyectos de Unity, uno para el entrenamiento de la IA y otro para la realización del videojuego. Para el entrenamiento de la IA se creó una escena de Unity con un cañón capaz de ser rotado en el eje x y en el eje y, para poder apuntar y el cañón también es capaz de disparar proyectiles a una determinada fuerza. Luego de implementar el paquete ML-Agents a este proyecto de Unity se entrenó a la IA mediante aprendizaje por refuerzo y aprendizaje por imitación, obteniendo variados resultados dependiendo de los parámetros, hiper parámetros y la función de recompensa usados en la red neuronal al entrenar la misma. Para el prototipo de videojuego se crearon tres escenas de Unity con tres entornos distintos para la simulación de tres niveles; en cada nivel el jugador tiene la opción de simplemente destruir el escenario con un cañón o batallar contra la IA de su elección, el jugador también es capaz de rotar un cañón en el eje x y en el eje y, el jugador adicionalmente es capaz de ajustar la cantidad de fuerza en el disparo del cañón, la IA tiene una fuerza fija.
Resumen en inglés
This project consists of the creation of an artificial intelligence (AI) capable of firing projectiles from cannons at moving and static targets, using the Unity 3D video game engine and the ML-Agents package. Additionally, a video game prototype was developed in which the player can battle against this AI and the effectiveness of the AI can be tested. Two Unity projects were created, one for training the AI and the other for making the game. For the training of the AI, a Unity scene was created with a cannon capable of being rotated in the x axis and in the y axis, to be able to aim; and the cannon is also capable of firing projectiles at a certain force. After implementing the ML-Agents package to this Unity project, the AI was trained through reinforcement learning and imitation learning, obtaining varied results depending on the parameters, hyper parameters and the reward function used in the neural network when training the same. For the video game prototype, three Unity scenes with three different environments were created for the simulation of three levels, in each level the player has the option to simply destroy the stage with a cannon or battle against the AI of his choice, the player also is able to rotate a cannon in the x axis and y axis, the player is additionally able to adjust the amount of force in firing the cannon, the AI has a fixed force.
Descripción
ilustraciones
