DeepCollide: Scalable Data-Driven High DoF Configuration Space Modeling using Implicit Neural Representations

Gabriel Guo, Judah Goldfeder, Aniv Ray, Tony Dear, Hod LipsonarXiv 2023

TL;DR

DeepCollide is a novel neural network-based approach for robot collision detection that learns the "collision function" directly from sampled data, bypassing the need for explicit geometric models. By leveraging implicit neural representations, it achieves constant-time inference and superior accuracy compared to current state-of-the-art methods, even in complex scenarios with up to 42 degrees of freedom.

What Problem Does This Paper Address?

Collision detection is the backbone of robot motion planning. Traditional algorithms like GJK or OBBTrees are fast but have a major catch: they require a complete geometric model (like a 3D mesh or a collection of boxes) of both the robot and its environment. In many real-world scenarios—such as a warehouse where packages are constantly moving and no cameras are present—geometric models are unavailable.

To solve this, researchers use "learning-based" collision checkers that learn from samples (e.g., a list of joint configurations labeled as "collision" or "free"). However, existing methods like Fastron or Support Vector Machines (SVMs) struggle to scale. Their inference speed often slows down as you give them more training data, and they struggle with the "curse of dimensionality" when robots have many degrees of freedom (DoF). DeepCollide aims to provide a solution that is both highly expressive and computationally scalable.

Methods

The authors introduce DeepCollide, an architecture based on Implicit Neural Representations (INRs). Instead of representing a 3D shape, this INR represents the binary collision status across the robot's configuration space.

Key components of the architecture (shown in Figure 2) include:

  • Forward Kinematics (FK) Kernel: Rather than feeding raw joint angles into the network, the model first transforms them into the Cartesian coordinates of the robot's limb centers. This provides a semantically meaningful representation where "close" points in the input space are more likely to have the same collision status.
  • Positional Encoding: Borrowing a technique from NeRF (Neural Radiance Fields), the model uses sinusoidal functions to map inputs to a higher-dimensional space. This allows the network to learn the "high-frequency" details of sharp collision boundaries that standard MLPs often smooth over.
  • MLP with Skip Connections: A 5-layer fully connected network serves as the core. Concatenative skip connections are used to preserve both low-level and high-level features throughout the network.
  • BatchNorm and Scalar Output: Batch normalization is used after every layer to stabilize training. Interestingly, the model outputs a continuous scalar "collision score" rather than a binary 0/1, which the authors found easier to train as it allows for a smoother transition between states.
Fig. 2: DeepCollide Architecture: We leverage multiple state- of-the-art techniques, including: forward kinematics kernel [12], positional encoding [34], BatchNorm [24], and skip connections [18]. J is the number of joint angles, and L is the number of frequencies.

Datasets

Because no standard benchmark exists for data-driven collision detection in high-DoF settings, the authors generated their own using the PyBullet physics engine.

  • Robot Model: They used the Kuka LBR iiwa 7 R800 (7 DoF).
  • Environments: They created various scenes with 1 to 6 robots (resulting in 7 to 42 DoF) and 10 to 60 randomly placed obstacles (cubes and spheres).
  • Data Scaling: Training sets ranged from 100 to 100,000 points, all uniformly sampled from the configuration space.
  • Ground Truth: Labels were generated using PyBullet’s internal GJK implementation.

Key Insights and Ideas

  • Constant-Time Inference: The most significant "aha" moment is the scalability. In kernel-based methods like Fastron, inference time is $O(N \cdot d)$, where $N$ is the number of support points. In DeepCollide, inference time is $O(d)$ and independent of the training set size. This means you can throw massive amounts of data at the model to improve accuracy without paying a price in real-time performance.
  • FK Kernel is a Game Changer: The authors confirmed that mapping joint angles to 3D space via the FK kernel significantly improves the model's ability to learn the collision function compared to using raw angles.
  • Handling the "Curse of Dimensionality": While high-DoF spaces are notoriously difficult to sample, the INR approach proved robust, maintaining high accuracy even at 42 DoF where previous methods began to falter.

Key Results

DeepCollide consistently outperformed the state-of-the-art (Fastron FK) across multiple metrics:

  • Speed-Accuracy Tradeoff: DeepCollide occupied the entire Pareto-optimal frontier for inference time vs. accuracy. It achieved higher accuracy while maintaining faster or comparable inference speeds (Figure 6).
  • Scalability with Data: As the training set size increased to 100,000 points, DeepCollide’s inference time remained flat, while Fastron’s inference time grew linearly and its training time grew near-quadratically.
  • High-DoF Performance: At 42 DoF, DeepCollide maintained an accuracy of ~85-90%, significantly higher than the median performance of Fastron FK.
Fig. 1: System Diagram: Given robots in a 3-dimensional workspace, DeepCollide can learn the collision detection function based on the joint configurations.

Limitations and Future Work

  • Uniform Sampling: The authors acknowledge that uniform sampling is inefficient. Future work will explore active learning, where the model identifies areas of high uncertainty (usually near obstacle boundaries) and requests more samples there.
  • Static Environments: While the model handles multiple moving robots, the environment obstacles in these tests were static. Extending this to fully dynamic environments without retraining is a key next step.
  • Integration with Planners: The current work focuses on the collision checker. The ultimate goal is to integrate DeepCollide into motion planners like RRT* to see how much it speeds up the end-to-end path-finding process.

Summary updated

BibTeX
@misc{guo2023deepcollide,
  author = {Gabriel Guo and Judah Goldfeder and Aniv Ray and Tony Dear and Hod Lipson},
  title = {{DeepCollide: Scalable Data-Driven High DoF Configuration Space Modeling using Implicit Neural Representations}},
  year = {2023},
  eprint = {2305.15376},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.15376},
}
Figure