GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nguyentantu0706-source/ifc-semantic-classifier: Geometry-first BIM semantic classification and IFC auditing with PointNet and IfcOpenShell

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
artifacts
artifacts
 
 
data
data
 
 
reports
reports
 
 
scripts
scripts
 
 
src/ifc_semantic_classifier
src/ifc_semantic_classifier
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CITATION.cff
CITATION.cff
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

IFC Semantic Classifier

Tests Python 3.10+ Dataset: IFCNet License: MIT

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.

IFC entity point clouds

Results

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.

Model comparison

More experiment visuals

Training curves

Training history

PointNet confusion matrix

PointNet confusion matrix

Performance by IFC class

Per-class F1

Learned geometry space

PointNet embeddings

What is included

  • 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.

Quick start

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.

Audit an IFC file

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.

Dataset

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.

Repository layout

├── 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/

Limitations and next steps

  • 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.

License and attribution

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.

About

Geometry-first BIM semantic classification and IFC auditing with PointNet and IfcOpenShell

Topics

bimcomputer-visiondeep-learningifcopenconstructionpoint-cloudpointnetsemantic-classification

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.