XPENG RoboticsCompany & role details

Robot-Arm Segmentation for Background Filtering

A DDRNet-23slim binary segmentation workflow with paired image–mask preparation, hard-example training, and original-resolution arm masks for robotic self-filtering.

Illustration of robotic-arm image annotation and binary segmentation masks that separate the visible arm from its background.
Project summary illustration.

Tools & Skills

  • Semantic Segmentation
  • DDRNet
  • CNN
  • Hard-Example Mining
  • Image Annotation
  • Model Evaluation

Problem and contribution

A robot’s own arm can occupy a substantial part of its camera view. Separating it from the surrounding scene provides a mask that other perception stages can use to exclude self-observations.

I prepared the labeling workflow, monitored annotation quality, trained a binary segmentation model, and iterated with additional data. The implementation uses DDRNet-23slim with a custom robotic-arm dataset.

Dataset preparation

The dataset contains paired RGB images and pixel masks with two classes: background and arm. A separate ignore label is available for pixels excluded from training.

Preprocessing standardizes filenames so image–mask pairs stay aligned, converts the input mask into binary labels, and prepares training and validation folders. The dataset loader reads both inputs together and applies matching spatial transforms.

The data workflow was important to the project: a boundary or pairing error directly changes which pixels a downstream system would exclude.

Model training

The selected configuration uses a pretrained DDRNet-23slim backbone, 512 × 512 training images, AdamW, and a polynomial learning-rate schedule with warmup.

The loss uses online hard-example mining cross entropy, emphasizing difficult pixels rather than treating every easy background pixel as equally informative. DDRNet’s interacting resolution branches combine spatial detail with broader context for the binary prediction.

Inference and outputs

The inference path normalizes the RGB image, resizes it while respecting the model’s stride, predicts class logits, and restores them to the original image size. A per-pixel class selection produces the binary mask; a color overlay supports inspection against the camera image.

Output Use
Arm / background label map Identify the robot’s visible arm
Overlay on the original image Review boundaries, missed arm regions, and false positives
Trained model checkpoint Reuse the learned segmentation model in downstream integration

Outcome

The project delivered the annotation, training, and inference workflow for robotic-arm masks. These masks provide an input to self-filtering in perception; the segmentation demo itself produces predictions and visualizations rather than demonstrating an entire closed-loop robot pipeline.

Project diagram

100%Drag or scroll to explore

Project image

Click outside the image or press Escape to close.