Maglev-Pentabot: Magnetic Levitation System for Non-Contact Manipulation using Deep Reinforcement Learning

Guoming Huang, Qingyi Zhou, Dianjing Liu, Shuai Zhang, Ming Zhou, Zongfu Yu · DOI

TL;DR

The Maglev-Pentabot is a novel magnetic levitation system that uses Deep Reinforcement Learning (DRL) to achieve high-speed, non-contact manipulation of gram-scale objects in 3D space. By combining an optimized five-electromagnet layout with a specialized "action remapping" technique to handle magnetic nonlinearities, the system achieves movement speeds of up to 96 mm/s—nearly 25 times faster than previous state-of-the-art microscopic systems.

What Problem Does This Paper Address?

Non-contact manipulation—moving objects without touching them—is a "holy grail" for industries like semiconductor manufacturing, biotech, and sterile medical processing. While technologies like ultrasonic or laser levitation work well at the microscopic scale (milligrams), scaling up to the macroscopic scale (grams) is notoriously difficult.

The primary challenge is the physics of magnetism: magnetic field intensity decays cubically ($1/d^3$) as you move away from the source. This creates extreme nonlinearity. Traditional controllers (like PID) struggle to manage multi-magnet systems where a tiny movement can cause the magnetic force to either vanish or "trap" the object against a magnet. Modeling these systems accurately enough for classical control is often computationally prohibitive.

Methods

The researchers developed the Maglev-Pentabot, named for its 3D configuration of five electromagnets (one central, four peripheral). Their approach combines hardware optimization with advanced AI control:

  1. Optimized Arrangement: Using numerical analysis, the team determined the optimal angles and polarities for the electromagnets to maximize the "controllable region" where the actuator can safely hover.
  2. DRL Control (SAC & PPO): They employed Deep Reinforcement Learning to bypass the need for a perfect mathematical model. For 2D tasks, they used Proximal Policy Optimization (PPO). For the more complex 3D environment, they utilized Soft Actor-Critic (SAC), which proved more robust due to its maximum entropy framework (encouraging better exploration).
  3. Action Remapping: This is the paper's "secret sauce." To prevent the DRL agent from getting stuck in high-force areas near the magnets, the authors introduced a weight function that flattens the magnetic field intensity growth during training. This "smooths" the environment, allowing the AI to learn effective strategies across the entire workspace.
  4. Vision-Based Feedback: A high-speed camera tracks a 0.8g magnetized ball. The state input for the DRL includes position, velocity, and acceleration data across multiple time steps to provide temporal context.

Datasets

As a robotics control paper, the "dataset" consists of real-time interaction data generated during training:

  • Training: The models were trained over $5 \times 10^6$ steps across three phases with progressively tighter reward constraints.
  • Evaluation Scenarios: The system was tested on 2D multi-target switching, 3D multi-target switching, and a complex "transportation" task involving moving a separate 1.0g load.

Key Insights and Ideas

  • Generalization is Possible: One of the most striking findings was that the DRL controller could perform a "transportation" task (picking up and moving a 1g load) even though it was never explicitly trained for it. It successfully adapted to the altered physics of the heavier load.
  • SAC > PPO for 3D: While PPO is a standard for many RL tasks, it failed to converge in the 3D maglev environment. The authors attribute SAC's success to its ability to utilize an offline replay buffer and its inherent drive for exploration (entropy maximization).
  • Overcoming the "Trap": Without action remapping, the actuator would frequently get "sucked" toward the magnets during early training, preventing the agent from learning how to navigate the center of the workspace. Remapping the actions effectively "tricked" the agent into exploring the full volume.

Key Results

  • Payload Capacity: Successfully controlled a 0.8g actuator and transported a 1.0g non-magnetic load (exceeding the actuator's own weight).
  • High Speed: Achieved an average moving speed of 96 mm/s in 3D space. For context, the authors note this is significantly faster than the ~4 mm/s reported in similar recent literature.
  • Precision: Maintained high levitation accuracy with relative mean errors of approximately 5-6% across the controllable range.
  • Generalization: Demonstrated the ability to navigate obstacles and transport objects without prior specific training for those trajectories.

Limitations and Future Work

  • Vertical Instability: The Z-axis (vertical) control remains the weakest link. Because the system must constantly fight gravity, any latency in the Arduino-to-PC communication loop causes visible "jitter" in the actuator.
  • Environmental Damping: To manage the high acceleration demands in air, the researchers had to fill the workspace with mineral oil to provide physical damping. Future work aims to optimize lower-level control to achieve the same stability in open air.
  • Scaling Up: The authors provide a theoretical framework suggesting this could scale to massive industrial applications (e.g., using Tokamak-style coils to move hundreds of kilograms), but this remains to be tested.

Summary updated

Abstract

Non-contact manipulation has emerged as a transformative approach across various industrial fields. However, current flexible 2D and 3D non-contact manipulation techniques are often limited to microscopic scales, typically controlling objects in the milligram range. In this paper, we present a magnetic levitation system, termed Maglev-Pentabot, designed to address this limitation. The Maglev-Pentabot leverages deep reinforcement learning (DRL) to develop complex control strategies for manipulating objects in the gram range. Specifically, we propose an electromagnet arrangement optimized through numerical analysis to maximize controllable space. Additionally, an action remapping method is introduced to address sample sparsity issues caused by the strong nonlinearity in magnetic field intensity, hence allowing the DRL controller to converge. Experimental results demonstrate flexible manipulation capabilities, and notably, our system can generalize to transport tasks it has not been explicitly trained for. Furthermore, our approach can be scaled to manipulate heavier objects using larger electromagnets, offering a reference framework for industrial-scale robotic applications.
BibTeX
@misc{huang2025maglev,
  author = {Guoming Huang and Qingyi Zhou and Dianjing Liu and Shuai Zhang and Ming Zhou and Zongfu Yu},
  title = {{Maglev-Pentabot: Magnetic Levitation System for Non-Contact Manipulation using Deep Reinforcement Learning}},
  year = {2025},
  eprint = {2511.21149},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.21149},
}
Figure