Related Experiment Video
Updated: Aug 10, 2025

04:15
Author Spotlight: Enhancing Engineering Education via WebVR-Based Online Laboratories
Published on: February 23, 2024
1.1K
Reinforcement learning approach to control an inverted pendulum: A general framework for educational purposes.
Sardor Israilov1,2, Li Fu1, Jesús Sánchez-Rodríguez1,3
1Université Côte d'Azur, CNRS, INPHYNI, Valbonnes, France.
Plos One
|February 13, 2023
Summary
Reinforcement learning, a machine learning approach, can effectively control systems like the inverted pendulum. This study demonstrates its practical application and intuitive understanding through experiments and simulations.
Area of Science:
- Control Theory
- Machine Learning
- Artificial Intelligence
Background:
- Machine learning, particularly reinforcement learning (RL), is a growing paradigm in control theory.
- RL is often perceived as less intuitive than model-based methods, hindering experimental design and implementation.
- There is a need to bridge the gap between theoretical RL concepts and practical, intuitive understanding through experimentation.
Purpose of the Study:
- To propose a general framework for reproducing successful reinforcement learning experiments and simulations.
- To provide a comprehensive understanding of RL algorithms by applying them to the classic inverted pendulum benchmark.
- To discuss the implementation and robustness of RL on real-world systems.
Main Methods:
- Utilized the inverted pendulum as a benchmark system for control strategy evaluation.
- Implemented and compared two RL algorithms: basic Q-Learning and Deep Q-Networks (DQN).
- Conducted both physical experiments and simulations using a virtual environment.
Main Results:
- High-accuracy control of the inverted pendulum was achieved within hours of learning.
- Simulations offered insights into the impact of physical parameters on control performance.
- The feasibility and robustness of the RL approach were successfully tested.
Conclusions:
- Reinforcement learning can be effectively applied to control problems like the inverted pendulum, achieving high accuracy.
- The proposed framework facilitates a more intuitive understanding and practical implementation of RL algorithms.
- The study highlights the potential of RL for real-world control applications.
Related Concept Videos
Physical Pendulum
1.8K
When a rigid body is hanging freely from a fixed pivot point and is displaced, it oscillates similar to a simple pendulum and is known as a physical pendulum. The period and angular frequency of a physical pendulum are obtained by using the small-angle approximation and drawing parallels with a spring-mass system. The small-angle approximation (sinθ=θ) is valid up to about 14°.
When dealing with complicated systems, the mass moment of inertia is an important parameter, as it...
When dealing with complicated systems, the mass moment of inertia is an important parameter, as it...
1.8K
Simple Pendulum
4.8K
A simple pendulum consists of a small diameter ball suspended from a string, which has negligible mass but is strong enough to not stretch. In our daily life, pendulums have many uses, such as in clocks, on a swing set, and on a sinker on a fishing line.
The period of a simple pendulum depends on two factors: its length and the acceleration due to gravity. The period is completely independent of any other factors, such as mass or maximum displacement. For small displacements, a pendulum...
The period of a simple pendulum depends on two factors: its length and the acceleration due to gravity. The period is completely independent of any other factors, such as mass or maximum displacement. For small displacements, a pendulum...
4.8K
Torsional Pendulum
5.7K
A torsional pendulum involves the oscillation of a rigid body in which the restoring force is provided by the torsion in the string from which the rigid body is suspended. Ideally, the string should be massless; practically, its mass is much smaller than the rigid body's mass and is neglected.
As long as the rigid body's angular displacement is small, its oscillation can be modeled as a linear angular oscillation. The amplitude of the oscillation is an angle. The role of mass is played...
As long as the rigid body's angular displacement is small, its oscillation can be modeled as a linear angular oscillation. The amplitude of the oscillation is an angle. The role of mass is played...
5.7K
Linear Approximation in Time Domain
113
Nonlinear systems often require sophisticated approaches for accurate modeling and analysis, with state-space representation being particularly effective. This method is especially useful for systems where variables and parameters vary with time or operating conditions, such as in a simple pendulum or a translational mechanical system with nonlinear springs.
For a simple pendulum with a mass evenly distributed along its length and the center of mass located at half the pendulum's length,...
For a simple pendulum with a mass evenly distributed along its length and the center of mass located at half the pendulum's length,...
113
Rigid Body Equilibrium Problems - I
4.8K
A rigid body is said to be in static equilibrium when the net force and the net torque acting on the system is equal to zero. To solve for rigid body equilibrium problems, do the following steps.
4.8K
Rigid Body Equilibrium Problems - II
7.4K
A rigid body is in static equilibrium when the net force and the net torque acting on the system are equal to zero.
Consider two children sitting on a seesaw, which has negligible mass. The first child has a mass (m1) of 26 kg and sits at point A, which is 1.6 meters (r1) from the pivot point B; the second child has a mass (m2) of 32 kg and sits at point C. How far from the pivot point B should the second child sit (r2) to balance the seesaw?
Consider two children sitting on a seesaw, which has negligible mass. The first child has a mass (m1) of 26 kg and sits at point A, which is 1.6 meters (r1) from the pivot point B; the second child has a mass (m2) of 32 kg and sits at point C. How far from the pivot point B should the second child sit (r2) to balance the seesaw?
7.4K

