Skip to main content
QUICK REVIEW

[Paper Review] Plane Geometry Diagram Parsing

Mingliang Zhang, Fei Yin|arXiv (Cornell University)|May 19, 2022
Data Visualization and AnalyticsComputer Science5 citations
TL;DR

This paper proposes PGDPNet, an end-to-end deep learning model for plane geometry diagram parsing that combines a modified instance segmentation module for geometric primitive extraction and a graph neural network (GNN) for relation reasoning using geometric and structural priors. The method achieves state-of-the-art performance on both PGDP5K and IMP-Geometry3K, significantly improving primitive detection, relation parsing, and geometry formal language generation.

ABSTRACT

Geometry diagram parsing plays a key role in geometry problem solving, wherein the primitive extraction and relation parsing remain challenging due to the complex layout and between-primitive relationship. In this paper, we propose a powerful diagram parser based on deep learning and graph reasoning. Specifically, a modified instance segmentation method is proposed to extract geometric primitives, and the graph neural network (GNN) is leveraged to realize relation parsing and primitive classification incorporating geometric features and prior knowledge. All the modules are integrated into an end-to-end model called PGDPNet to perform all the sub-tasks simultaneously. In addition, we build a new large-scale geometry diagram dataset named PGDP5K with primitive level annotations. Experiments on PGDP5K and an existing dataset IMP-Geometry3K show that our model outperforms state-of-the-art methods in four sub-tasks remarkably. Our code, dataset and appendix material are available at https://github.com/mingliangzhang2018/PGDP.

Motivation & Objective

  • Address the challenge of accurate geometric primitive extraction and relation parsing in complex, cluttered plane geometry diagrams.
  • Overcome limitations of traditional methods like Hough transform and rule-based systems that fail under layout complexity and primitive interference.
  • Develop an end-to-end framework that jointly optimizes primitive detection, classification, and relation reasoning for improved geometry problem solving.
  • Build a large-scale, fine-grained annotated dataset (PGDP5K) to support future research in geometry diagram parsing.
  • Integrate geometric prior knowledge into a GNN-based reasoning module to enhance structural and semantic relation prediction.

Proposed method

  • Propose a geometric segmentation module (GSM) using a dual-branch network: a semantic segmentation branch and a segmentation embedding branch to perform pixel-level instance segmentation of geometric primitives.
  • Model the diagram parsing task as a heterogeneous scene graph generation (SGG) problem, where geometric primitives are nodes and relations are edges with multi-edge support.
  • Design a graph neural network (GM) module that aggregates visual, spatial, and structural features to predict primitive relations and classify text content.
  • Integrate GSM and GM into an end-to-end trainable model, PGDPNet, to jointly optimize primitive extraction and relation reasoning.
  • Incorporate geometric prior knowledge into the GNN through structured message passing and spatial encoding to improve reasoning on spatial relationships.
  • Train the entire model end-to-end on the newly constructed PGDP5K dataset with instance-level annotations for primitives and relations.

Experimental results

Research questions

  • RQ1Can a deep learning-based approach outperform traditional methods in extracting geometric primitives from complex, overlapping diagrams?
  • RQ2Can a graph neural network effectively model heterogeneous node types and multi-edge relationships in plane geometry diagrams?
  • RQ3To what extent does integrating geometric prior knowledge improve relation reasoning in diagram parsing?
  • RQ4How does end-to-end training of primitive detection and relation reasoning affect overall parsing performance compared to pipeline approaches?
  • RQ5Can a large-scale, fine-grained dataset like PGDP5K serve as a reliable benchmark for advancing plane geometry diagram parsing?

Key findings

  • PGDPNet achieves 57.2% and 57.4% improvements in the 'Totally Same' metric for geometry formal language generation on PGDP5K and IMP-Geometry3K, respectively, compared to InterGPS.
  • The GNN module improves non-geo2geo relation reasoning by 11.0% and 6.5% on PGDP5K and IMP-Geometry3K, respectively, over the baseline without GNN.
  • When used in the InterGPS problem solver, PGDPNet boosts accuracy from 57.5% (using InterGPS’s own parser) to 74.1%, a 16.6% relative improvement.
  • On the IMP-Geometry3K dataset, PGDPNet achieves 99.17% 'Likely Same' and 91.51% 'Totally Same' on the All relation type, outperforming prior methods.
  • The model shows robustness in primitive detection and relation parsing, with high recall and precision across diverse diagram layouts and primitive types.
  • Failure cases reveal that reliance on visual cues alone can misclassify text labels (e.g., mistaking an angle label as a radius), indicating the need for textual semantics integration in future work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.