16-825 Assignment 5: Point Cloud Classification and Segmentation

Andrew ID: robertre

All point clouds below are 360° rotating gifs.

1. Classification Model

Settings

ModelPointNet without transformation blocks: shared per-point MLP 3→64→64→128→1024 (1x1 Conv1d + BatchNorm + ReLU), max pool over points, then FC 1024→512→256→3 (BatchNorm + ReLU, dropout 0.3 before the last layer). 0.81M parameters.
Input10,000 points per object (x, y, z), no augmentation
Trainingcross-entropy loss, Adam (learning rate 1e-3), batch size 32, 250 epochs (31 min on one RTX PRO 6000 GPU, shared with another run)
Checkpointbest test accuracy (epoch 187)

Test accuracy: 0.979

ClassTest objectsWrongAccuracy
Chair617199.8%
Vase102892.2%
Lamp2341195.3%
All9532097.9%

Random test objects


Object 213. Ground truth: chair. Predicted: chair.

Object 233. Ground truth: chair. Predicted: chair.

Object 636. Ground truth: vase. Predicted: vase.

Failure cases (one per class)


Object 406. Ground truth: chair. Predicted: lamp.

Object 650. Ground truth: vase. Predicted: lamp.

Object 721. Ground truth: lamp. Predicted: vase.

Interpretation

The model is almost perfect on chairs (1 of 617 wrong) but makes more mistakes on vases (8 of 102) and lamps (11 of 234). Chairs make up 66% of the training set, and vases and lamps are both tall, round objects that are easy to confuse. Chair 406 is very thin with almost no seat, so from the side it looks like a lamp pole. Vase 650 sits on a tall pedestal that looks like a lamp base, and lamp 721 is a cylinder on thin legs that looks like a pot on a plant stand.

2. Segmentation Model

Settings

ModelShared per-point MLP 3→64→64 (local features), then 64→128→1024 and max pool (global feature). Each point gets its 64-d local feature joined with the 1024-d global feature (1088-d), then a per-point MLP 1088→512→256→128→6 (1x1 Conv1d + BatchNorm + ReLU). 0.87M parameters.
Input10,000 points per chair, 6 part labels per point
Trainingcross-entropy loss over all points, Adam (learning rate 1e-3), batch size 32, 250 epochs (47 min, GPU shared with another run)
Checkpointbest test accuracy (epoch 166)

Test accuracy: 0.904

Fraction of correctly labeled points over all 617 test chairs.

Results (ground truth vs. prediction)

ObjectGround truthPrediction
0
accuracy 0.944
1
accuracy 0.977
2
accuracy 0.910
351 (bad)
accuracy 0.484
96 (bad)
accuracy 0.503

Objects 0-2 are the first three test chairs. Objects 351 and 96 are the two test chairs with the lowest accuracy. Colors: cyan = back, red = seat, blue = legs/base, yellow = arms. Labels 0 (white) and 1 (magenta) are rare (less than 0.5% of points), and white points do not show on the white background.

Interpretation

The model does well on chairs with a standard shape (objects 0-2: 0.910-0.977), and most of its errors are at part boundaries, such as where the seat meets the back or the legs. The two bad cases are unusual chairs: object 351 (0.484) is a closed barrel with no legs, but the model still labels its bottom half as legs, and object 96 (0.503) is a sofa-like chair whose base is labeled as seat. The model seems to assign parts mostly by position, which works for typical chairs but fails when the layout is different.

3. Robustness Analysis

Both experiments use the Q1 and Q2 models without retraining, on the full test sets. The rows marked Q1/Q2 are the results from sections 1 and 2.

3.1 Experiment 1: Rotation

Procedure: Rotate every test point cloud about the Z axis (the front-back axis; Y is up) by 15°, 30°, 45°, 60° and 90°, so the objects tilt sideways. Then evaluate both models on the rotated clouds (--rot_deg in eval_cls.py and eval_seg.py).

RotationClassification accuracySegmentation accuracy
0° (Q1/Q2)0.9790.904
15°0.9490.822
30°0.7490.706
45°0.4960.602
60°0.4100.543
90°0.2500.398

Samples

0° (Q1/Q2)15°30°45°60°90°
Chair 213
chair

chair

chair

chair

chair

vase
Chair 233
chair

chair

vase

vase

vase

vase
Vase 636
vase

vase

vase

vase

vase

vase
Seg object 0
0.944

0.876

0.771

0.617

0.528

0.424
Seg object 1
0.977

0.878

0.862

0.692

0.614

0.393

Classification rows: the predicted class (wrong predictions in red). Segmentation rows: the predicted part labels and the accuracy of that object. The ground truth of objects 0 and 1 is in section 2.

Interpretation

The models are not rotation invariant. Classification drops from 0.979 to 0.749 at 30° and 0.250 at 90°, and segmentation drops from 0.904 to 0.706 at 30° and 0.398 at 90°. All training shapes are upright and we used no rotation augmentation or transformation block, so the learned features depend on the upright pose. At 90°, only 11 of 617 chairs are still classified as chairs (448 become vases), and the part labels follow the height instead of the real parts (object 0).

3.2 Experiment 2: Number of Points

Procedure: Evaluate both models with fewer points per object: 5000, 1000, 500, 100, 50 and 10, instead of 10,000. The same random subset of point indices is used for every object (--num_points, seed 0).

Points per objectClassification accuracySegmentation accuracy
10,000 (Q1/Q2)0.9790.904
5,0000.9760.904
1,0000.9710.901
5000.9670.891
1000.9230.827
500.7590.797
100.2740.709

Samples

10,000 (Q1/Q2)1,0005001005010
Chair 213
chair

chair

chair

chair

chair

lamp
Chair 233
chair

chair

chair

chair

chair

lamp
Vase 636
vase

vase

vase

vase

vase

lamp
Seg object 0
0.944

0.938

0.934

0.870

0.820

0.900
Seg object 1
0.977

0.985

0.994

0.980

0.960

0.500

Classification rows: the predicted class (wrong predictions in red). Segmentation rows: the predicted part labels and the accuracy of that object.

Interpretation

The models are robust to fewer points. With 500 points (5% of the input), classification only drops from 0.979 to 0.967 and segmentation from 0.904 to 0.891. The max pool keeps only the largest value of each feature, so a random subset that still covers the shape gives almost the same global feature. Accuracy drops below 100 points, and with 10 points the classifier predicts lamp for 926 of 953 objects. Segmentation still reaches 0.709 with 10 points because the position of a point alone says a lot about its part.

4. Bonus: Locality with PointNet++

Model

PointNet++ with single-scale grouping. Set abstraction layers pick centers with farthest point sampling, group the points in a ball around each center, and run a small PointNet (shared MLP + max pool) on each group in local coordinates, so the features describe local geometry. Sampling, ball query and nearest-neighbor search use PyTorch3D operations.

Set abstraction 1512 centers, radius 0.2, 32 points per ball, MLP 3→64→64→128
Set abstraction 2128 centers, radius 0.4, 64 points per ball, MLP 131→128→128→256
GlobalMLP 259→256→512→1024 on the 128 centers, then max pool
Classification headsame as Q1: FC 1024→512→256→3 (1.47M parameters in total)
Segmentation headfeature propagation back to all points: global feature joined to the 128 centers (MLP 1280→256→256), interpolated to the 512 centers (3 nearest neighbors, inverse-distance weights; MLP 384→256→128), interpolated to all 10,000 points (MLP 131→128→128→128), then 128→6 (1.39M parameters in total)
Trainingsame as Q1/Q2 (Adam 1e-3, batch size 32, 250 epochs). Best test accuracy at epoch 141 (cls) and epoch 213 (seg).

Test accuracy

ModelClassificationSegmentation
PointNet (Q1/Q2)0.9790.904
PointNet++0.9850.918
PointNet++, shuffled point order0.9770.903

The evaluation keeps the stored point order of each object. Ball query keeps the first 32 points of each ball in index order, and the dataset stores the points in a farthest-point-like order, so PointNet++ depends on this order. The last row shows the result when the points of each object are shuffled. PointNet does not depend on point order.

Classification

ClassWrong (PointNet)Wrong (PointNet++)
Chair (617)11
Vase (102)86
Lamp (234)117
All (953)2014

PointNet++ predicts the same classes as PointNet for the three random objects in section 1 (chair, chair, vase). Its failure cases, one per class:


Object 290. Ground truth: chair. Predicted: lamp.

Object 631. Ground truth: vase. Predicted: lamp.

Object 787. Ground truth: lamp. Predicted: vase.

Segmentation

ObjectGround truthPointNet (Q2)PointNet++
0
0.944

0.951
1
0.977

0.994
2
0.910

0.877
351
0.484

0.495
96
0.503

0.550
238
0.571

0.427

Objects 351 and 96 are the two worst chairs for PointNet; objects 238 and 351 are the two worst for PointNet++. Numbers are the accuracy of each object.

Discussion

PointNet++ improves both tasks: classification from 0.979 to 0.985 (14 errors instead of 20) and segmentation from 0.904 to 0.918. Grouping points in local balls lets the model use local geometry instead of only one global feature. Most chairs improve (objects 0 and 1: 0.951 and 0.994), but not all (object 2 drops from 0.910 to 0.877), and unusual chairs stay hard for both models (351: 0.495, 238: 0.427). The gain depends on the stored point order: with shuffled points, PointNet++ gives 0.977 and 0.903, about the same as PointNet.