A Robot Learning to Play a Mobile Game Under Unknown Dynamics

Wonjun Yoon, Sol-A. Kim, Jaesik ChoiarXiv 2016 · arXiv

Abstract

This paper presents an end-to-end robotic architecture designed to bridge the gap between physical manipulation and digital interaction. We demonstrate a humanoid robot, Baxter, successfully playing the mobile game 2048 on a physical smartphone. The system addresses the challenges of "non-physical state changes"—where robotic actions modify a digital environment rather than physical space—by integrating Computer Vision for state recognition, Deep Reinforcement Learning (DRL) for strategic planning, and iterative Linear Quadratic Regulators (iLQR) for precise motion control. Experimental results show that the physical robot achieves a performance level nearly identical to software-only simulations, with only a 2% performance gap in reaching the 128-tile milestone.

Introduction

As robotic systems move beyond industrial assembly lines into human-centric environments, they must learn to interact with ubiquitous smart devices. Unlike traditional tasks such as block stacking or furniture assembly, interacting with a smartphone involves "non-physical state changes." When a robot swipes a touchscreen, the physical displacement of the device is negligible, yet the internal state of the software changes significantly.

Experimental setup showing the Baxter robot (a) and the smartphone interface for the game 2048 (b).

This interaction paradigm introduces three primary hurdles: abstract feedback from a digital "black box," long-horizon goals requiring coordinated sequences of actions, and the need for high-precision, low-force actuation to avoid damaging fragile glass surfaces. This research proposes a modular framework to overcome these challenges using a combination of deep learning and classical control theory.

System Architecture

The proposed architecture is divided into three functional modules: Recognition, Planning, and Actuation. This decoupling allows the system to handle high-level strategic logic separately from low-level motor control.

The end-to-end architecture: (a) State recognition via CNN, (b) Action planning via Deep Q-Learning, and (c) Actuation and control for the Baxter robot.

1. Recognition (Computer Vision)

To perceive the game state, a camera mounted on the robot's arm captures the smartphone screen. The system first employs Canny edge detection to localize the screen boundaries. Subsequently, a Convolutional Neural Network (CNN) identifies the numerical value of each tile. The CNN, featuring 500 hidden nodes, was trained on a custom dataset of over 14,000 images captured under varying lighting conditions and motion blur. To enhance robustness, the training set was expanded to 84,204 images through data augmentation techniques, including random rotations and translations.

2. Planning (Deep Q-Learning)

Strategic decision-making is handled by a Deep Q-Learning (DQL) agent. Given the slow execution speed of physical robotic arms, real-time training on the Baxter robot is infeasible. Instead, the agent is trained in a high-speed simulated 2048 environment. The game state is represented as a bit string of the 4x4 board, and the network outputs the optimal move from four possible actions: Up, Down, Left, or Right.

3. Actuation (iLQR Control)

Translating a strategic command (e.g., "Swipe Left") into physical motion requires delicate control. The system utilizes an iterative Linear Quadratic Regulator (iLQR) to optimize the trajectory of Baxter’s 7-joint arm. This ensures the robot's end-effector follows a smooth, precise path across the touchscreen, maintaining the necessary contact to register a swipe without applying excessive force.

Experimental Results

The system was evaluated by comparing the performance of the physical Baxter robot against a pure software simulation and a random-move baseline. The primary metric was the success rate in reaching specific tile values (128 and 256).

Target Value Random Moves Deep Q (Simulator) Deep Q (Baxter Robot)
Reach 128 53.98% 92.81% 90.74%
Reach 256 7.09% 54.35% 54.00%

The results demonstrate a remarkably small "Baxter gap." The physical robot's performance was within 2% of the simulator for the 128-tile goal and nearly identical for the 256-tile goal. This indicates that the vision system and the iLQR controller provided highly reliable state estimation and execution, effectively bridging the sim-to-real gap.

Conclusion and Future Work

This research successfully demonstrates that a humanoid robot can master a digital game through physical interaction by treating software state changes as a valid feedback loop. The decoupling of strategy and motion planning proves to be an effective method for handling complex, non-physical environments.

Future work will focus on reducing latency, as physical execution remains significantly slower than digital processing. Additionally, the team aims to develop systems that can learn motor skills and task planning simultaneously, eventually expanding these capabilities to the manipulation of diverse Internet of Things (IoT) devices.

Summary updated

BibTeX
@misc{yoon2016robot,
  author = {Wonjun Yoon and Sol-A. Kim and Jaesik Choi},
  title = {{A Robot Learning to Play a Mobile Game Under Unknown Dynamics}},
  year = {2016},
  eprint = {1603.01303},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1603.01303},
}
Figure