Skip to content

ikergarcia1996/NeuroEvolution-Flappy-Bird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flappy Bird: Human vs NEAT vs MLP

The goal of the project is to apply NEAT to evolve the network architecture of Deep Neural Networks for improving their performance on a given classification task, in this case the game Flappy Bird, the goal is to determine if for a given input the bird must jump or no to avoid hitting the pipes. This repository contains a Jupyter Notebook where is possible to compare a Human, a Neat implementation and a multilayer perceptron playing Flappy Bird.

INPUT

Input

For both, neuroevolution algorithm and multilayer perceptron the input is the same:

1) Distance in the X axis from the bird to the next pipe.
2) Distance in the Y axis form the bird to the lowest point of the pipe in the top.
3) Distance in the Y axis from the bird to the highest point of the pipe in the top
4) Distance in the Y axis from the bird to the top of the map.
5) Distance in the Y axis from the bird to the bottom of the map.

INPUT

Results

In this project we probe that NEAT can improve the performance of a DNN. We found that NEAT can be useful to reduce the complexity of our models. NEAT is able to produce networks that produce similar results to the MLP but much less complex. We have been able to use NEAT to reduce the complexity of our model. We went from 20 neurons and 98 weights in the MLP to 7-8 neurons and 6-10 weights, with is a huge complexity reduction.

More information available in the documentation.

INPUT

Authors

Iker García Ferrero - ikergarcia1996
Gonzalo Pierola - Guamedo

How to run

To run this project you need Python and Jupyter Notebook. Also you will need to install all the python libraries specified in the "README.md" inside the "Jupyter Notebook" folder.

Documentation

Documentation is available in the releases section with the corresponding release.

Flappy Bird Game

The implementation of the Flappy Bird Game that we used for this project is based on this code: Gamedevlapse: Create Flappy Bird in Python [Time Lapse] (youtube)