Skip to main content
QUICK REVIEW

[Paper Review] Combining Vision, Machine Learning and Automatic Control to Play the Labyrinth Game

Kristoffer Öfjäll, Michael Felsberg|arXiv (Cornell University)|Feb 1, 2016
Time Series Analysis and ForecastingComputer Science4 references4 citations
TL;DR

This paper presents a hybrid control system that combines a PID controller with a locally weighted projection regression (LWPR) learning controller to navigate a ball through a physical labyrinth game. By using computer vision for ball tracking and leveraging online learning from self-generated experiences, the system outperforms the initial PID controller, especially in handling nonlinear dynamics and position-dependent changes in the maze, with LWPR-4 achieving the best performance in complex scenarios including obstacle-rich environments.

ABSTRACT

The labyrinth game is a simple yet challenging platform, not only for humans but also for control algorithms and systems. The game is easy to understand but still very hard to master. From a system point of view, the ball behaviour is in general easy to model but close to the obstacles there are severe non-linearities. Additionally, the far from flat surface on which the ball rolls provides for changing dynamics depending on the ball position. The general dynamics of the system can easliy be handled by traditional automatic control methods. Taking the obstacles and uneaven surface into accout would require very detailed models of the system. A simple deterministic control algorithm is combined with a learning control method. The simple control method provides initial training data. As the learning method is trained, the system can learn from the results of its own actions and the performance improves well beyond the performance of the initial controller. A vision system and image analysis is used to estimate the ball position while a combination of a PID controller and a learning controller based on LWPR is used to learn to navigate the ball through the maze.

Motivation & Objective

  • To develop a robust control system for navigating a ball through a physical labyrinth game with complex dynamics.
  • To address the challenge of nonlinear behaviors near obstacles and uneven surfaces where traditional control fails.
  • To evaluate the effectiveness of combining deterministic control (PID) with online machine learning (LWPR) for adaptive control in real-world robotic tasks.
  • To demonstrate that learning from self-generated data can surpass the performance of the initial controller without requiring detailed system models.
  • To validate the approach across multiple scenarios with increasing complexity, including dynamic changes in system behavior.

Proposed method

  • A vision system tracks the ball's position in real time using image analysis.
  • A dual-axis PID controller provides initial control and generates training data for the learning system.
  • The LWPR algorithm learns the inverse dynamics of the system by mapping current state and desired state to required control signals.
  • The LWPR-2 and LWPR-4 variants differ in input dimensionality: LWPR-2 uses velocity and desired velocity, while LWPR-4 adds absolute position to improve handling of spatially varying dynamics.
  • The system switches to the PID controller when the learning model lacks sufficient data in a region, ensuring stability during training.
  • Training data is generated online from the system's own actions, enabling continual performance improvement through self-supervised learning.

Experimental results

Research questions

  • RQ1Can a hybrid control system combining a simple PID and a learning controller outperform the PID alone in navigating a complex physical labyrinth?
  • RQ2How does the inclusion of absolute position in the input space affect the learning controller’s ability to handle position-dependent dynamics in the maze?
  • RQ3To what extent can a learning controller adapt to sudden changes in system behavior, such as reversed or offset control signals in different maze regions?
  • RQ4Can the learning controller generalize well enough to handle severe nonlinearities near maze edges and obstacles?
  • RQ5Does online self-training from the system’s own actions lead to performance gains beyond the initial controller’s capability?

Key findings

  • In Scenario 1 (sine path), the LWPR-2 controller achieved a mean RMSE of 3.5 (±0.5), significantly lower than the PID’s 6.0 (±0.8), demonstrating improved tracking performance.
  • In Scenario 2a (constant offset in bottom half), the LWPR-4 controller achieved a mean RMSE of 6.5 (±1.6), outperforming both PID (15.5 ±1.6) and LWPR-2 (11.5 ±1.8), showing better adaptation to dynamic changes.
  • In Scenario 2b (control reversal in bottom half), only the LWPR-4 controller succeeded, achieving a mean RMSE of 5.6 (±1.1), while PID and LWPR-2 failed (DNF), highlighting the importance of spatial state awareness.
  • In Scenario 3 (real maze path with obstacles), only the LWPR-4 controller could maintain stable control, achieving a mean RMSE of 3.8 (±0.6), while PID and LWPR-2 exhibited increasing oscillations.
  • The system’s performance improved over time due to online learning from self-generated data, with the LWPR-4 controller eventually surpassing the initial PID controller despite starting untrained.
  • The addition of absolute position to the input space (LWPR-4) was critical for handling spatially varying dynamics, confirming the necessity of richer state representation in complex environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.