Training-Free Agentic Computer Vision for Structural Component Detection in 2D Structural Framing Plans
Organizations: Department of Civil and Environmental Engineering University of Alberta
Abstract
Converting structural framing plans into editable finite-element model drafts is labor-intensive and susceptible to transcription errors. Existing building-component recognition systems generally depend on task-specific neural detectors, whereas language-model agents in structural engineering typically operate on text or model data rather than on drawings. To the authors' knowledge, this work is the first to apply an agentic vision-language layer to structural-component detection and model drafting from framing-plan PDFs without task-specific detector training or fine-tuning. A deterministic stage extracts geometric primitives, estimates scale by dimension-ratio consensus, recognizes five entity classes using an explicit drafting grammar, and assembles an editable layout. The agentic stage constrains typed corrections through deterministic candidates, operation-specific admission tests, change-level review, and fail-closed transactions. Evaluation used an author-generated benchmark of 100 plans, divided equally between a development half used for all rule revisions and a seed-disjoint held-out half generated after the rules were frozen and evaluated once. All scores are end-to-end results for the complete framework on the held-out half. Scale estimates were within 0.1% of the generator reference for every drawing. Recall and precision were 0.922/0.997 for columns, 0.886/0.990 for beams, 1.000/1.000 for walls, 1.000/1.000 for braces, and 1.000/0.964 for openings. A controlled study repeated two corruptions three times on three development drawings. Calibration passed all nine trials, whereas member repair satisfied every strict end-state criterion in five of nine trials. Because both benchmark halves share a generator, the evaluation does not address independently drafted plans, raster input, analytical connectivity, or solver validation.
Figures & tables
| Rule | Statement |
|---|---|
| Hatched-band wall | The rule classifies a qualifying diagonal-stroke corridor between adjacent columns as a shear wall; thickness is twice , and the raw value must reach 100 mm before capping and rounding. |
| X-in-rectangle opening | The rule classifies two long diagonals with coincident midpoints whose endpoints form an inked rectangle as a framed floor opening. |
| X-mark eraser | Under the supported grammar, two short diagonals (4–22 mm on paper) crossing at a shared midpoint are treated as a symbol and removed before member chaining. |
| Angle-gated dedup | The duplicate test for centerlines measures offset to an infinite line and therefore requires parallelism within ; without the gate, joists whose midpoints lie on a perpendicular girder’s line are deleted. |
| Dimension-line exclusion | Segments riding a dimension line already matched by the scale resolver are treated as annotation rather than members. |
| Void rule | Candidates whose midpoints fall strictly inside a detected opening region are removed as opening-symbol remnants. |
| Constant | Value | Role |
|---|---|---|
| Scale resolution | ||
| Text-to-line offset, angle | 12 mm paper, | Pairing a dimension string with its line |
| Text parameter window | Text must project into the line’s middle | |
| Terminator | tick mm at , or arrowhead within 1.6 mm | Both ends required |
| Outlier band | Minimum band for near-zero MAD | |
| Reference-scale snap | relative | 15 configured scales |
| Constant | Value | Role |
| Overlay rendering | ||
| Composition width | 1600 px, px/mm | Drawing legible without oversized payloads |
| Halo width, opacity | , | Drawn ink stays black inside a colored halo |
| Content crop margin | 42 mm paper | Keeps grid bubbles and two dimension chains |
| Model invocation | ||
| Provider model | gemini-3.5-flash [ 44 ] | Pinned pretrained model used in the reported runs |
| Family | Designed to test |
|---|---|
| core-l | L-, T-, and C-shaped shear-wall cores and perimeter panels on regular grids: wall symbols, walls replacing beams, and variable-thickness wall geometry |
| core-u | Twin U-, box-, and C-cores with variable bay counts: multi-core layouts and core-adjacent framing |
| skew-wing | A wing rotated – with sloped connector beams and rotated dimension chains: rotated lattices and skew-aware scale |
| chamfer | Chamfered corners producing diagonal edge beams and trimmed slabs |
| atrium | A multi-bay central void with corner diagonals: large-opening semantics and building-scale X symbols |
| braced | Up to six X-braced perimeter bays: brace signs against beam marks on shared edges |
| Class | Recall | Precision | Recall hits / ground truth | Precision hits / detections |
|---|---|---|---|---|
| Columns | 0.922 | 0.997 | 998 / 1,082 | 998 / 1,001 |
| Beams | 0.886 | 0.990 | 2,412 / 2,721 | 2,390 / 2,413 |
| Walls | 1.000 | 1.000 | 194 / 194 | 194 / 194 |
| Braces | 1.000 | 1.000 | 47 / 47 | 47 / 47 |
| Openings | 1.000 | 0.964 | 80 / 80 | 80 / 83 |
| Columns | Beams | Walls | Braces | Openings | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Family | R | P | R | P | R | P | R | P | R | P |
| atrium | 0.969 | 1.000 | 0.939 | 0.993 | 1.000 | 1.000 | – | – | 1.000 | 0.769 |
| braced | 1.000 | 1.000 | 0.893 | 0.995 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 |
| chamfer | 1.000 | 1.000 | 0.873 | 1.000 | 1.000 | 1.000 | – | – | 1.000 | 1.000 |
| core-l | 1.000 | 1.000 | 0.982 | 1.000 | 1.000 | 1.000 | – | – | 1.000 | 1.000 |
| core-u | 1.000 | 1.000 | 0.971 | 1.000 | 1.000 | 1.000 | – | – | 1.000 | 1.000 |
| Columns | Beams | Walls | Braces | Openings | |||||||
| Cut | R | P | R | P | R | P | R | P | R | P | |
| US | 25 | 0.933 | 0.994 | 0.903 | 0.987 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 |
| CA | 25 | 0.912 | 1.000 | 0.869 | 0.994 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 0.930 |
| steel | 17 | 0.926 | 1.000 | 0.883 | 0.986 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 |
| concrete | 17 | 0.917 | 1.000 | 0.880 | 0.995 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 |
| timber | 16 | 0.924 | 0.991 | 0.897 | 0.991 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 0.897 |
| Drawing | Member repair | Complete entity recovery | Calibration |
|---|---|---|---|
| st-us-01 | 0/3 | 0/3 | 3/3 |
| co-us-02 | 3/3 | 3/3 | 3/3 |
| co-ca-03 | 2/3 | 3/3 | 3/3 |
| Aggregate | 5/9 | 6/9 | 9/9 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Case | Family | Notation | Material | Scale | Cols | Beams | Walls | Braces | Open. |
|---|---|---|---|---|---|---|---|---|---|
| atrium-06 | atrium | US | timber | 3/16 ′′ | 24/25 | 54/56 | 2/2 | 0/0 | 2/2 |
| atrium-07 | atrium | CA | steel | 1:75 | 24/25 | 53/56 | 2/2 | 0/0 | 2/2 |
| atrium-08 | atrium | US | concrete | 3/16 ′′ | 24/25 | 53/56 | 2/2 | 0/0 | 2/2 |
| atrium-09 | atrium | CA | timber | 1:75 | 24/25 | 49/56 | 2/2 | 0/0 | 2/2 |
| atrium-10 | atrium | US | steel | 3/16 ′′ | 30/30 | 66/69 | 2/2 | 0/0 | 2/2 |
| braced-06 | braced | CA | concrete | 1:75 | 20/20 | 47/53 | 4/4 | 6/6 | 1/1 |