Can geometry reveal when a BIM object has the wrong IFC class? This project learns the visual shape of BIM components, then compares a model's prediction with the semantic class declared in an IFC file.
It is deliberately more BIM-specific than a generic object-detection demo:
the input is 3D entity geometry, the labels are IFC classes, and the final
workflow audits real .ifc files with IfcOpenShell.
The benchmark uses 5,010 objects, ten classes from IFCNetCore, and the official IFCNet test split. The official training split is divided deterministically into train and validation subsets.
| Model | Input | Accuracy | Macro F1 |
|---|---|---|---|
| Extra Trees baseline | 18 rotation-stable geometry descriptors | 74.23% | 73.74% |
| Compact PointNet | 512 sampled XYZ points | 78.56% | 78.37% |
The test set contains 1,502 objects; 2,986 are used for training and 522 for validation. The compact model is small enough to train on a laptop CPU or Apple Silicon while still showing the value of learned 3D features.
More experiment visuals
- reproducible download and split generation for IFCNetCore;
- an interpretable baseline built from dimensions, covariance eigenvalues, density, radial statistics, and distribution moments;
- a compact PointNet classifier with class weighting and geometry augmentation;
- nine publication-style charts plus an interactive 3D geometry gallery;
- an IFC audit CLI that tessellates represented products with IfcOpenShell, predicts their semantic class, and exports CSV plus an interactive 3D viewer;
- trained checkpoints, metrics, predictions, tests, and GitHub Actions CI.
uv is the fastest setup route:
git clone https://github.com/nguyentantu0706-source/ifc-semantic-classifier.git cd ifc-semantic-classifier uv venv --python 3.12 uv pip install --python .venv/bin/python -r requirements.txt make prepare # download IFCNetCorePly and build the 5,010-row manifest make baseline make pointnet make report make test
make pointnet defaults to 28 epochs. The reported checkpoint was trained for
24 epochs with 512 points per object:
PYTHONPATH=src .venv/bin/python scripts/train_pointnet.py \ --epochs 24 --batch-size 64 --n-points 512
The trainer automatically selects CUDA, Apple MPS, or CPU in that order.
PYTHONPATH=src .venv/bin/python scripts/audit_ifc.py model.ifc \ --report reports/ifc_audit.csv \ --viewer reports/ifc_audit_viewer.html
The CSV contains the GlobalId, name, declared IFC class, predicted class, confidence, and a mismatch flag for every represented product that can be tessellated. The viewer colors suspected mismatches red.
Example output from an actual IFCNetCore entity:
| Declared | Predicted | Confidence | Flagged |
|---|---|---|---|
| IfcWall | IfcRailing | 99.47% | Yes |
That example is intentionally retained: a confident mistake is a useful reminder that confidence is not correctness. The tool is a screening aid for model review, not an IFC validator and not an automatic relabeling system.
IFCNet provides single-entity IFC files and corresponding point-cloud representations. This experiment selects:
IfcAirTerminal, IfcBeam, IfcDoor, IfcDuctFitting, IfcDuctSegment,
IfcPipeFitting, IfcPipeSegment, IfcRailing, IfcSlab, and IfcWall.
Raw archives are downloaded from the official RWTH Aachen dataset site and are excluded from Git. The generated manifest is committed so the exact benchmark composition is auditable. IFCNetCore is licensed under CC BY 4.0; please cite the dataset authors when using it.
├── artifacts/ # trained models, predictions, metrics
├── data/processed/manifest.csv # reproducible benchmark membership/splits
├── reports/ # static figures and interactive HTML viewers
├── scripts/
│ ├── prepare_dataset.py
│ ├── train_baseline.py
│ ├── train_pointnet.py
│ ├── make_report.py
│ └── audit_ifc.py
├── src/ifc_semantic_classifier/
│ ├── data.py # PLY loading, sampling, augmentation
│ ├── features.py # interpretable geometry features
│ ├── pointnet.py # compact PointNet
│ └── audit.py # IFC tessellation and semantic audit
└── tests/
- IFCNet entities are isolated objects, while production BIM models contain context, assemblies, duplicates, and exporter-specific geometry.
- Ten classes do not cover the full IFC schema.
- A geometry-only model cannot resolve classes that differ primarily by use or relationships rather than shape.
- Useful next steps are hierarchical labels, graph/context features, calibrated uncertainty, and evaluation on complete models from unseen authoring tools.
The code is released under the MIT License. Dataset files remain under IFCNetCore's CC BY 4.0 license and are not redistributed in this repo.





