Capsule Neural Network based Height Classification using Low-Cost Automotive Ultrasonic Sensors

Maximilian Pöpperl, Raghavendra Gulagundi, Senthil Yogamani, Stefan MilzarXiv 2019

TL;DR

Researchers have developed a way to turn low-cost, low-performance automotive ultrasonic sensors into high-precision height classifiers using Capsule Neural Networks (CapsNets). By reshaping raw ultrasonic signals into multi-channel "images," the system achieves 99.6% accuracy in identifying object height—a critical metric for autonomous vehicles deciding whether to drive over an obstacle or stop.

What Problem Does This Paper Address?

While high-end ultrasonic sensors are staples in medical imaging, the automotive industry relies on cheap, low-performance hardware to keep vehicle costs down. As we move toward autonomous driving, these sensors face a "performance gap." Specifically, self-driving systems need to know the height of objects (like curbs or debris) to determine if they are drivable.

Current automotive algorithms usually rely on simple thresholds, which struggle with noise and environmental changes. Standard Deep Learning approaches like Convolutional Neural Networks (CNNs) are often too computationally heavy for in-car processing units or lose vital spatial information during the "pooling" layers. The authors sought a method that provides medical-grade classification accuracy using the restrictive hardware found in modern cars.

Methods

The authors propose a two-stage pipeline: Preprocessing and Classification.

  1. Signal Conditioning: The raw ultrasonic signal is converted into a "complex envelope." They use an IQ-mixer to extract both the real and imaginary parts of the signal, ensuring no information is lost during down-conversion.
  2. Reorganization (The "Secret Sauce"): To make the data digestible for a neural network, they downsample the signal from 110 kHz to 6.5 kHz (reducing data points by a factor of 16.8) and reshape the resulting 196 points into a 14x14 grid.
  3. Image Conversion: They treat the real and imaginary parts of the signal as color channels (Red and Green) in a 2D image. This allows them to use computer vision architectures on 1D sensor data.
  4. Capsule Neural Network (CapsNet): Unlike standard CNNs that use "max-pooling" (which throws away spatial information), CapsNets use "routing-by-agreement." This architecture is better at preserving the relative positions of features, which is crucial when you've artificially reshaped a 1D signal into a 2D grid.

Datasets

The study utilized a custom-built dataset:

  • Size: 21,600 measured responses from a single Valeo ultrasonic sensor.
  • Diversity: Data was collected across various ground types (asphalt, gravel, grass), weather conditions (dry, wet), and temperatures (5°C to 25°C).
  • Classes: Objects were manually labeled into four height categories:
  • Lowest (<10cm): Drivable.
  • Low (10-30cm): Drivable with care/reduced speed.
  • High (30-50cm): Non-drivable, but car doors can open over them.
  • Highest (>50cm): Non-drivable, doors blocked.

Key Insights and Ideas

  • Phase Information is Vital: One of the biggest "aha" moments was the comparison between using "absolute" (magnitude-only) data versus "complex" (real + imaginary) data. Using complex data boosted CapsNet accuracy from 90.6% to 99.6%. The phase of the ultrasonic reflection contains critical clues about object height that magnitude alone misses.
  • CapsNets > CNNs for Reshaped Data: Standard CNNs assume that pixels near each other in a grid are physically related. In a reshaped 1D signal, this isn't strictly true. CapsNets handle this "artificial" neighborhood better than CNNs because they don't rely on aggressive pooling, which would otherwise smear the signal's features.
  • Real-Time Feasibility: Despite the complexity of Capsule Networks, the authors demonstrated that their optimized architecture is fast enough for real-time automotive use, requiring only ~178 µs per prediction.

Key Results

  • Accuracy: The complex CapsNet achieved a staggering 99.6% validation accuracy.
  • Efficiency: The CapsNet approach was both more accurate and faster (178 µs) than a comparable complex CNN (98.9% accuracy, 213 µs).
  • Safety Bias: The confusion matrix revealed that when the network did fail, it tended to predict that low objects were "high" rather than vice versa. In autonomous driving, this is a "safe" failure—it's better to stop for a drivable object than to crash into a non-drivable one.

Limitations and Future Work

  • Static Scenarios: The current dataset only considers static objects and sensors. Real-world driving involves dynamic movement, which introduces Doppler shifts and other complexities.
  • Single Sensor Focus: The paper focuses on a single sensor. The authors suggest that using a sensor array (e.g., a full front bumper) could further increase accuracy and help determine other properties like object width or material.
  • Hardware Integration: While the prediction time is low on a dedicated GPU (Nvidia Quadro M2000M), the next step is testing performance on actual low-power automotive embedded microcontrollers.

Summary updated

BibTeX
@misc{popperl2019capsule,
  author = {Maximilian Pöpperl and Raghavendra Gulagundi and Senthil Yogamani and Stefan Milz},
  title = {{Capsule Neural Network based Height Classification using Low-Cost Automotive Ultrasonic Sensors}},
  year = {2019},
  eprint = {1902.09839},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.09839},
}
Figure