Imagine a 6-axis robotic arm, the Quetzal, that needs to grab an object. To do so, it must calculate exactly how to rotate each joint: this is the "inverse kinematics" problem, a non-trivial mathematical puzzle. Researchers trained two deep neural networks, a CNN and an LSTM, using data generated by the Denavit-Hartenberg model. The CNN won the challenge: 95.9% accuracy, minimal error, and, most importantly, it responds in under a second. Everything runs on a web interface built with Streamlit, accessible anywhere. No supercomputer needed: just a browser. It is a step forward for collaborative robotics and school labs, where time and resources matter. The solution is scalable, portable to cloud and fog computing, and paves the way for smarter, more autonomous robotic arms ready to work alongside us in factories or classrooms.
The study, published in *Technologies*, addresses the inverse kinematics of the 6-DoF Quetzal manipulator. The training dataset was synthesized via the Denavit-Hartenberg (D-H) kinematic model, covering the arm's operational workspace. Two deep learning architectures were compared: a Long Short-Term Memory (LSTM) and a Convolutional Neural Network (CNN) with four convolutional layers and a 4-timestep input. The loss function used was Mean Squared Error (MSE); evaluation metrics included Mean Absolute Error (MAE) and angular accuracy. The CNN outperformed: 95.9% accuracy, MSE 0.003, and MAE 0.040, with significantly faster training times than the LSTM. Real-time inference (<1 s) is enabled by a hybrid web app developed in Python 3.10 with TensorFlow 2.15 and Streamlit 1.16, containerized via Anaconda. The web architecture allows offline training and online deployment, ensuring portability across edge, fog, or cloud infrastructures. This data-driven approach bypasses analytical or iterative numerical methods (e.g., Newton-Raphson), often slow or prone to singularities, offering a deterministic, low-latency solution ideal for collaborative and educational robotics.
