NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Self learning robot using real-time neural networks

Chirag Gupta, Chikita Nangia, Chetan KumararXiv 2020

Introduction

Traditional robotic systems often rely on "hard-coded" logic—explicit instructions for every possible movement. While effective in controlled environments, this approach fails in unpredictable scenarios like deep-space exploration, defense operations, or navigating complex, uncharted terrain where external communication is impossible.

This paper addresses the challenge of on-device, real-time learning. The researchers investigated whether a robot with a simple physical structure—a chassis with a two-jointed arm—could use sensor feedback to "evolve" its own movement patterns to achieve a specific goal (moving forward in a straight line) entirely on its own.

Methods

The researchers employed a classic machine learning architecture adapted for an embedded environment. The physical robot consists of a chassis with a two-jointed arm controlled by two servos.

Diagram of the robot's physical structure including the chassis and two-jointed arm.

Neural Network Architecture

The system uses a three-layer feedforward Artificial Neural Network (ANN) consisting of:

  • Input Layer: One neuron receiving an arbitrary value.
  • Hidden Layer: A variable number of neurons (tested up to 25+).
  • Output Layer: Two neurons representing the target angles for the servo motors.

The Learning Loop

Learning is achieved through Backpropagation to calculate error and Gradient Descent to optimize weights and biases. The robot uses an MPU6050 accelerometer and gyroscope to measure its actual movement. If the movement deviates from the desired straight line, an error is calculated and fed back into the algorithm to adjust the servo angles for the next "generation" of movement.

Process flow chart detailing the neural network training loop and hardware feedback mechanism.

Software Stack

The neural network logic was implemented in Java 8 for object-oriented efficiency, while hardware interfacing (servos and sensors) was handled via Python to leverage existing Raspberry Pi libraries.

Datasets and Real-time Learning

This study does not use a static, pre-existing dataset. Instead, it utilizes real-time generated sensor data. Training data is generated dynamically during each iteration of the robot's movement. The network maps internal weights to servo angles, and the resulting physical displacement (measured by the MPU6050) serves as the ground truth for error calculation.

Key Insights and Results

  • Local Autonomy: The study successfully executed the entire training loop on a $35 Raspberry Pi 3 Model B, proving that edge AI for robotics can achieve autonomous learning without cloud or external processing.
  • Hidden Layer Diminishing Returns: Learning efficiency improved with more hidden neurons but capped at approximately 25 neurons for this specific task; beyond this, added complexity did not yield faster convergence.
  • Dynamic Learning Rates: A high learning rate (>0.4) helps the robot explore solutions quickly, but the authors suggest a dynamic approach—starting high to find a general solution and decreasing it to fine-tune movement.
  • Physical Constraints: Mechanical integrity (e.g., using over 30 nut-bolts) and a low center of gravity were found to be as critical as the code, as the "jerks" during the learning process could otherwise destabilize the hardware.

Performance Cases

  • Case 1: With a learning rate of 0.8 and a strict error tolerance of 1°, the robot learned to move in a straight line in 148 generations.
  • Case 2: With a lower learning rate of 0.5 and a looser error tolerance of 5°, it took 156 generations to converge.

Limitations and Future Work

The current robot is limited by task simplicity, focusing on a single arm and objective. Future research is needed to verify if the observed neuron efficiency cap scales linearly with task complexity. Additionally, the researchers noted that the trial-and-error nature of real-time learning puts significant strain on physical components, suggesting that future work should explore ways to minimize mechanical stress during the learning phase.

Summary updated

BibTeX
@misc{gupta2020self,
  author = {Chirag Gupta and Chikita Nangia and Chetan Kumar},
  title = {{Self learning robot using real-time neural networks}},
  year = {2020},
  eprint = {2001.02103},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.02103},
}
Figure