/ Модель

Характеристики

Лицензия
Своя лицензия
Библиотека
onnx
Опубликована
18 ноя 2026

hackathon-team2-ifcnet-gcn

ЭмбеддингиТекст → embedding

ONNX-автоэнкодер на графовых свёртках анализирует геометрию отдельных IFC-элементов, оценивает необычность формы и выдаёт векторы для поиска похожих элементов.

102скачиваний за 30 дней0лайковвеса обновлены28 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Это экспериментальная модель графового автоэнкодера, созданная командой 2 программы MaAI при IAAC Barcelona для анализа геометрии отдельных элементов IFC. Она преобразует форму элемента в облако из 1 024 точек и граф ближайших соседей, кодирует его тремя слоями GCN в 32-мерный вектор и восстанавливает облако точек. Модель предназначена для оценки необычности формы по ошибке восстановления и поиска похожих элементов по латентному вектору. Репозиторий содержит веса в формате ONNX; число параметров — 1 745 184. Обучение проводилось на 18 нормальных классах IFCNetCore; IFC-класс, имя и свойства элемента во вход не подаются. Лицензия указана как other, а использованный набор данных IFCNetCore не имеет указанной лицензии и применялся только в некоммерческой учебной работе.

Это исследовательский прототип для геометрии BIM и отдельных элементов IFC, а не надёжный самостоятельный инструмент проверки проектов. В испытании на двух не встречавшихся при обучении классах — лестницах и ограждениях — ROC AUC составил 0,534, полнота при выбранном пороге — 22%; модель слабее рассмотренных CNN- и PointNet-базовых подходов. Нормализация удаляет размер и положение, поддерживается только один элемент на IFC-файл, а целые здания не обрабатываются.

Сценарии применения

  • оценка необычности геометрии отдельного элемента IFC
  • поиск похожих BIM-элементов по форме
  • извлечение 32-мерных векторов геометрии IFC
  • исследовательское сравнение форм элементов IFCNetCore

Ограничения

Качество выявления аномалий низкое: ROC AUC 0,534, а при выбранном пороге обнаруживается 22% необычных элементов; модель проверялась только на двух классах аномалий. Она нормализует размер и положение, обрабатывает один элемент на IFC-файл и не поддерживает целые здания.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

IFC element check: GCN graph autoencoder (IAAC MaAI, Team 2)

A small graph autoencoder that reads the 3D geometry of one IFC building element and answers two questions:

  1. Is this element unusual? The model rebuilds the element's shape; a large reconstruction error means it does not look like the 18 normal element types it learned.
  2. What is it similar to? The 32-number latent vector can be compared with other elements to find the most similar ones.

It works directly on the IFC geometry, not on rendered images. Only geometry goes into the model: the IFC class, name and properties are never used as input.

IFC elements as graphs

How an IFC element becomes model input

IFC file -> triangle mesh (IfcOpenShell, world coordinates, metres)
         -> 1,024 points sampled on the surface (area-weighted, seed 42)
         -> centred and scaled into the unit sphere (shape only, no size or position)
         -> each point linked to its 16 nearest points (kNN graph)
InputShapeMeaning
x[1024, 3] float32normalised x, y, z of each point (node features)
edge_index[2, 16384] int64kNN edges, row 0 = neighbour, row 1 = point
OutputShapeMeaning
reconstruction[1, 1024, 3]the rebuilt point cloud
latent[1, 32]the latent vector (for similarity search)

The exact preprocessing settings are stored in config.json. Use the same code (ifc_graph.py in the GitHub repo) to prepare new elements.

Model

  • Encoder: 3 graph convolution layers (GCNConv, 3 → 64 → 128 → 128, ReLU), global mean pooling, linear layer to a 32-number latent vector.
  • Decoder: MLP (32 → 256 → 512 → 1,024 × 3) that outputs 1,024 points.
  • Parameters: 1,745,184.
  • Loss: symmetric squared Chamfer distance (computed on a fixed subset of 256 points to keep CPU memory low).
  • Training: trained on CPU, normal classes only; the best checkpoint is chosen by validation Chamfer distance.

GCN autoencoder: from an IFC element to a score and a shape vector

Training

Adam (learning rate 1e-3, weight decay 1e-5), batch size 4, 30 epochs on a laptop CPU, 4,434 training graphs from the 18 normal classes (833 for validation). Training and validation loss fall together and stay close, so the model does not overfit; the curve is still going down slowly at epoch 30, so longer training could help. The exported checkpoint is epoch 29 (lowest validation Chamfer distance, 0.0158).

Training and validation loss per epoch

Reconstructions

Top: the input points of six test elements. Bottom: what the model rebuilds from the 32-number latent vector. Simple, boxy shapes (door, wall) come back well and score low; the stair is rebuilt as a generic blob and is the only one above the threshold (FLAG). The railing is also unseen, but it is a thin, simple shape and still scores below the threshold, which is exactly why recall is low.

Original vs reconstruction

Anomaly score and threshold

  • Score: squared Chamfer distance between the input points and the reconstruction (first 256 points).
  • Threshold: 0.039336, the 95th percentile of the score on normal validation elements.
  • Decision: score > threshold → unusual.

Data

IFCNetCore (Emunds et al. 2021, arXiv 2106.09712): 7,930 single-element IFC files in 20 classes. 7,927 were converted (99.96 %); 3 failed (2 IfcPlate shapes IfcOpenShell could not build, 1 IfcValve that crashed the geometry engine).

  • Normal classes (18): used for training.
  • Anomaly classes (2): IfcStair and IfcRailing, never seen in training, used only to test anomaly detection.
  • Test set: 2,377 elements, of which 143 are anomalies.

IFCNet has no licence stated. It is used for non-commercial academic coursework only and is not re-uploaded here.

Results

InputModelROC AUCPrecisionRecallP@5 (similarity)
2D rendersconv_64 (CNN)0.8910.4670.6270.534
3D point cloudPointNet AE (pn_64)0.586 (kNN 0.739)0.2680.3080.465
IFC graphGCN AE (this model)0.5340.2310.2170.386
  • kNN = alternative anomaly score: mean cosine distance of the latent vector to its 5 nearest normal training elements.
  • P@5 = share of the 5 most similar elements (by latent vector) that have the same IFC class. Baselines: random 0.06; raw point coordinates 0.380.

All models compared

Anomaly score on the test set. Left: the score of the normal test elements (blue) and the unseen stairs and railings (orange). Most unseen elements score as low as normal ones; only the tail above the threshold is caught. Right: the ROC curve stays close to the diagonal (AUC 0.53). At the threshold the model flags 22 % of the unusual elements and 5 % of the normal ones.

Score histogram and ROC curve

Similarity search. Four test queries and their 5 nearest test elements by latent vector. The neighbours share the overall proportions (tall and thin, flat, bent) more than the IFC class, which is why P@5 is only 0.39.

Query elements and their 5 most similar elements

What this means. The graph model works end to end on real IFC geometry, but in this first version it is the weakest of our three approaches:

  • Anomaly detection is only a little better than chance (AUC 0.53), and it finds 22 % of the unseen stairs and railings.
  • Similarity search (P@5 0.386) is only just above the raw-coordinate baseline (0.380): the latent vector captures shape about as well as the raw points, not better.
  • Likely reasons: mean pooling over 1,024 points blurs the shape into one vector, the MLP decoder cannot rebuild fine details, and training was short (CPU only).

How to use

import json
import numpy as np
import onnxruntime as ort
from huggingface_hub import hf_hub_download
import ifc_graph  # from the GitHub repo: 02_model_server/ifc_graph.py

repo = "iaac-maai/hackathon-team2-ifcnet-gcn"
cfg = json.load(open(hf_hub_download(repo, "config.json")))
sess = ort.InferenceSession(hf_hub_download(repo, "model.onnx"))

points, edge_index, _ = ifc_graph.ifc_to_arrays("element.ifc")
recon, latent = sess.run(None, {"x": points, "edge_index": edge_index})

n = cfg["score_points"]
d = ((recon[0, :n, None, :] - points[None, :n, :]) ** 2).sum(-1)
score = d.min(1).mean() + d.min(0).mean()
print("score", score, "unusual", score > cfg["threshold"])

Or call the live server with gradio_client:

from gradio_client import Client, handle_file
client = Client("https://hackathon-team2-ifcnet.onrender.com")
print(client.predict(handle_file("element.ifc"), api_name="/predict"))  # score, threshold, unusual
print(client.predict(handle_file("element.ifc"), api_name="/embed"))    # latent vector

Limitations

  • Not reliable on its own. Use it as a research prototype, not as a checker for real projects.
  • Only two anomaly classes (stairs and railings); "unusual" here means "not one of the 18 learned types", not "badly modelled".
  • Size is removed by the normalisation, so a wrongly scaled element looks normal.
  • One element per IFC file; whole building models are not supported yet.
  • One seed, short CPU training, 1,024 points per element.

Next steps

A stronger encoder (e.g. DGCNN / EdgeConv), a better decoder, keeping real dimensions, using IFC relations between elements as graph edges, and longer GPU training.

Files in this repository

FileWhat it is
model.onnxthe exported GCN autoencoder (used by the model server)
config.jsonpreprocessing settings, threshold and test metrics
house.ifcsmall house we modelled in Revit (7.8 MB), used by the app's whole-model check; 03_app/scripts/build_house.py downloads it
*.pngthe figures on this card

Authors and AI use

Team 2: Bars Babila, Samiha Abeda Nur, Emmanuel Marquez, Karthikeyan Saravanan. AI assistants were used for code and documentation support; the AI usage disclosure is in the GitHub repository README.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · onnx

Нельзя запустить

Модель выложена только в формате ONNX, рантайм загружает PyTorch-веса.

Ревизия весов
3f43d43

0 моделей