Natural Language Robot Programming: NLP integrated with autonomous robotic grasping

Muhammad Arshad Khan, Max Kenney, Jack Painter, Disha Kamale, Riza Batista-Navarro, Amir Ghalamzan EarXiv 2023 · DOI

Introduction

As robotic systems transition from highly controlled industrial environments to collaborative workspaces and domestic settings, the interface for human-robot interaction becomes critical. Traditional programming methods, such as teach pendants or complex scripting, are often inaccessible to non-experts. While deep-learning-based Natural Language Processing (NLP) has made strides, these models typically require massive labeled datasets and often lack the precision needed for physical manipulation tasks.

This research introduces Natural Language Robot Programming (NLRP), a grammar-based framework designed to bridge the gap between intuitive speech and high-precision robotic control. By leveraging dependency parsing and a structured command hierarchy, NLRP enables users to direct robotic arms through everyday language without the need for extensive training data.

Methodology and Framework Architecture

The NLRP framework converts spoken instructions into executable robot trajectories through a multi-stage pipeline. Spoken commands are first converted to text and analyzed using the spaCy library for dependency parsing. This identifies the grammatical relationships between verbs (actions) and their dependents (objects, directions, and magnitudes). These are then mapped into Spatial Description Clauses (SDCs), consisting of four primary components: Event, Object, Place, and Path.

Overview of the NLRP Dictionary and command hierarchy, illustrating the flow from speech to robot action.

To ensure flexibility, the framework utilizes a custom dictionary linked to the WordNet lexical database. This allows the system to recognize synonyms and expand its vocabulary for new objects or actions through simple text updates. On the hardware side, a Mask-RCNN model (pre-trained on the COCO dataset) identifies objects in the scene, while a calibrated depth camera calculates grasp poses for a Franka Panda robotic arm.

Experimental Results

The system was validated through a user study involving nine participants performing pick-and-place operations. The study focused on two primary metrics: task completion time and the number of commands required to achieve the goal.

Performance metrics from the user study, showing task completion times and the number of Spatial Description Clauses (SDCs) used by participants.

On average, participants completed the tasks in 447.2 seconds using approximately 45 SDC commands. Subjective evaluations using the NASA Task Load Index (TLX) yielded an average cognitive workload score of 62, indicating that while the system is intuitive, it still requires focused attention. The System Usability Scale (SUS) score was 58.7; while the authors describe this as high, it is generally considered marginal in standard benchmarks, suggesting room for further refinement in the user interface.

Conclusion and Future Directions

The NLRP framework demonstrates that a grammar-based approach to robot programming can provide a robust, low-data alternative to end-to-end neural networks. By grounding language in structured spatial clauses, the system achieves reliable performance in manipulation tasks. Future work will focus on integrating Large Language Models (LLMs) to handle higher-level reasoning and expanding the library of primitive skills to include more complex interactions, such as operating machinery or navigating cluttered environments.

Summary updated

BibTeX
@misc{khan2023natural,
  author = {Muhammad Arshad Khan and Max Kenney and Jack Painter and Disha Kamale and Riza Batista-Navarro and Amir Ghalamzan E},
  title = {{Natural Language Robot Programming: NLP integrated with autonomous robotic grasping}},
  year = {2023},
  eprint = {2304.02993},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.02993},
}
Figure