# Playing Flappy Bird Based on Motion Recognition Using a Transformer Model and LIDAR Sensor

**Authors:** Iveta Dirgová Luptáková, Martin Kubovčík, Jiří Pospíchal

PMC · DOI: 10.3390/s24061905 · Sensors (Basel, Switzerland) · 2024-03-16

## TL;DR

This paper uses a transformer model and LIDAR sensor data to teach an agent to play Flappy Bird, outperforming existing methods.

## Contribution

The novelty is using LIDAR-based sensory input with a transformer model for reinforcement learning in Flappy Bird.

## Key findings

- The agent learned to avoid collisions using ray casting measurements from LIDAR.
- The model outperformed existing approaches in the Flappy Bird game environment.

## Abstract

A transformer neural network is employed in the present study to predict Q-values in a simulated environment using reinforcement learning techniques. The goal is to teach an agent to navigate and excel in the Flappy Bird game, which became a popular model for control in machine learning approaches. Unlike most top existing approaches that use the game’s rendered image as input, our main contribution lies in using sensory input from LIDAR, which is represented by the ray casting method. Specifically, we focus on understanding the temporal context of measurements from a ray casting perspective and optimizing potentially risky behavior by considering the degree of the approach to objects identified as obstacles. The agent learned to use the measurements from ray casting to avoid collisions with obstacles. Our model substantially outperforms related approaches. Going forward, we aim to apply this approach in real-world scenarios.

## Full-text entities

- **Diseases:** injury to people or property (MESH:C000719191), LIDAR (MESH:D020795)
- **Species:** Homo sapiens (human, species) [taxon 9606]
- **Mutations:** A2C

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC10975254/full.md

## Figures

14 figures with captions in the complete paper: https://tomesphere.com/paper/PMC10975254/full.md

## References

50 references — full list in the complete paper: https://tomesphere.com/paper/PMC10975254/full.md

---
Source: https://tomesphere.com/paper/PMC10975254