IP Library Granted Patent US 12,406,519
Granted Patent B1
US 12,406,519 · App. 17/877,560 · Granted Sep 2, 2025

Techniques for extracting links and connectivity from schematic diagrams

Inventors: Marc-André Gardner (Quebec, CA); Simon Savary (Quebec, CA); Evan Rausch-Larouche (Quebec, CA); Raphaël Melancon (Quebec, CA); Karl-Alexandre Jahjah (Quebec, CA)
Assignee: Bentley Systems, Incorporated
G06V30/422G06V30/19167G06V30/414
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,406,519
App. No.
17/877,560
Granted
Sep 2, 2025
Kind
B1
Abstract

In example embodiments, techniques are provided for using a combination of multiple ML models and signal processing to extract links and connectivity from a schematic diagram in an image-only format. A first ML model (i.e. link segmenter) may produce a first set of predictions about the positions of link segments in the schematic diagram (e.g., in the form of a segmentation map). A second ML model (i.e. keypoint detector) may produce a second set of predictions about starting and stopping points of link segments in the schematic diagram (e.g., in the form of one or more heatmaps). A signal processing module may combine the first set of predictions and the second set of predictions to produce a description of links and connectivity they provide (e.g., combining the segmentation map with data from the one or more heatmaps). The results of the combining may be saved as a graph connectivity matrix.

Claims (54)

1. A method for extracting links and connectivity from a schematic diagram in an image-only format, comprising:

producing, using a first machine learning (ML) model executing on one or more computing devices, a first set of predictions about positions of link segments in the schematic diagram;

producing, using a second ML model executing on the one or more computing devices, a second set of predictions about starting and stopping points of link segments in the schematic diagram;

performing an optimization, by a signal processing module executing on the one or more computing devices, to combine the first set of predictions about the positions of link segments and the second set of predictions about starting and stopping points of link segments to produce a description of links and connectivity they provide between symbols in the schematic diagram, wherein the optimization associates portions of link segments with starting and stopping points, applies a cost to each possible association, and selects a set of associations that provides a globally optimal cost minimum; and

outputting the description of links and connectivity in a machine-readable format.

2. The method of claim 1 , wherein the first set of predictions about the positions of link segments comprises a segmentation map that, for each position in the schematic diagram, indicates a probability the position in the schematic diagram is part of a link.

3. The method of claim 1 , wherein the first ML model that produces the first set of predictions about the positions of link segments is structured according to a convolutional neural network architecture adapted for semantic segmentation.

4. The method of claim 1 , wherein the first ML model consumes, in addition to the schematic diagram in the image-only format, a mask of detected symbols in the schematic diagram.

5. The method of claim 1 , wherein the second set of predictions about the positions of link segments is based on one or more heatmaps that, for each position in the schematic diagram, indicates a probability the position in the schematic diagram is a connection point.

6. The method of claim 1 , wherein producing the second set of predictions about starting and stopping points of link segments, further comprises:

classifying the starting and stopping points as either an associated connection point or a floating connection point,

wherein the second set of predictions about starting and stopping points of link segments is based on a first heatmap that, for each position in the schematic diagram, indicates a probability the position in the schematic diagram is an associated connection point, and a second heatmap that, for each position in the schematic diagram, indicates a probability the position in the schematic diagram is a floating connection point.

7. The method of claim 1 , wherein the second ML model that produces the second set of predictions about starting and stopping points of link segments is structured according to a deep neural network architecture adapted for anchorless object detection.

8. The method of claim 1 , wherein the second ML model consumes, in addition to the schematic diagram in the image-only format, a mask of detected symbols in the schematic diagram and one or more masks of detected text regions in the schematic diagram.

9. The method of claim 1 , wherein the description of links and connectivity comprises a graph connectivity matrix that indicates, for each symbol in the schematic diagram, which other symbols it is connected to by a link.

10. The method of claim 1 , wherein the performing an optimization comprises:

vectorizing the link segments in the first set of predictions and inserting nodes,

wherein and the portions of link segments that the optimization associates with starting and stopping points are the nodes inserted into the first set of predictions.

11. The method of claim 1 , further comprising:

predicting, using the first ML model, a link type based on a visual appearance of one or more line segments depicting the link in the schematic diagram; and

associating at least one link in the description of links and connectivity with a respective link type.

12. The method of claim 1 , further comprising:

predicting, using the first ML model, a flow direction based on a visual appearance of an arrow of a line segment depicting the link in the schematic diagram; and

associating at least one link in the description of links and connectivity with a respective flow direction.

13. The method of claim 1 , wherein the machine-readable format is a JavaScript Object Notation (JSON) file.

14. A computing device comprising:

a display screen;

a processor; and

a memory coupled to the processor and configured to store a schematic diagram in an image-only format and a schematic diagram data extraction application that includes a first machine learning (ML) model and a second ML model, the schematic diagram data extraction application when executed operable to:

predict, using the first ML model, a set of link segments to produce a segmentation map that indicates positions of link segments;

predict, using the second ML model, a set of discrete connection points from the schematic diagram to produce one or more heatmaps that indicate positions of starting and stopping points of link segments;

perform an optimization to combine the segmentation map and data from the one or more heatmaps to produce a description of links and connectivity they provide between symbols in the schematic diagram, wherein the optimization associates portions of link segments from the segmentation map with the starting and stopping points of link segments from the one or more heatmaps, applies a cost to each possible association, and selects a set of associations that provides a globally optimal cost minimum; and

output the description of links and connectivity in a machine-readable format.

15. The computing device of claim 14 , wherein the segmentation map, for each position in the schematic diagram, indicates a probability the position in the schematic diagram is part of a link, and the one or more heatmaps, for each position in the schematic diagram, indicates a probability the position in the schematic diagram is a connection point.

16. The computing device of claim 14 , wherein the description of links and connectivity comprises a graph connectivity matrix which indicates, for each symbol in the schematic diagram, which other symbols it is connected to by a link.

17. A non-transitory computing device readable medium having instructions stored thereon, the instructions when executed by one or more computing devices operable to:

produce a first set of predictions about the positions of link segments in the schematic diagram;

produce a second set of predictions about starting and stopping points of link segments in the schematic diagram;

combine the first set of predictions and second set of predictions to produce a description of links and connectivity they provide between symbols in the schematic diagram by

vectorizing the link segments in the first set of predictions and inserting nodes, and

performing an optimization to associate the nodes inserted into the first set of predictions with starting and stopping points from the second set of predictions, the optimization to associate a cost to each possible association and the optimization to select a set of associations that provides a globally optimal cost minimum; and

output the description of links and connectivity in a machine-readable format.

18. The non-transitory electronic-device readable medium of claim 17 , wherein the first set of predictions about the positions of link segment in the schematic diagram are produced using a first machine learning (ML) model and the second set of predictions about starting and stopping points of link segments in the schematic diagram are produced using a second ML model.

19. The non-transitory electronic-device readable medium of claim 17 , wherein the first set of predictions about the positions of link segments comprises a segmentation map that, for each position in the schematic diagram, indicates a probability the position in the schematic diagram is part of a link, and the second set of predictions about the positions of link segments is based on one or more heatmaps that, for each position in the schematic diagram, indicates a probability the position in the schematic diagram is a connection point.

20. The non-transitory electronic-device readable medium of claim 19 , wherein the description of links and connectivity comprises a graph connectivity matrix which indicates, for each symbol in the schematic diagram, which other symbols it is connected to by a link.

21. A method for extracting links and connectivity from a schematic diagram in an image-only format, comprising:

producing, using a first machine learning (ML) model executing on one or more computing devices, a first set of predictions about positions of link segments in the schematic diagram;

producing, using a second ML model executing on the one or more computing devices, a second set of predictions about starting and stopping points of link segments in the schematic diagram;

combining, by software executing on the one or more computing devices, the first set of predictions and second set of predictions to produce a description of links and connectivity they provide between symbols in the schematic diagram by

vectorizing the link segments in the first set of predictions and inserting nodes, and

performing an optimization to associate the nodes inserted into the first set of predictions with starting and stopping points from the second set of predictions, the optimization to associate a cost to each possible association and the optimization to select a set of associations that provides a globally optimal cost minimum; and

outputting the description of links and connectivity in a machine-readable format.

22. The method of claim 21 , wherein the first set of predictions about the positions of link segments comprises a segmentation map that, for each position in the schematic diagram, indicates a probability the position in the schematic diagram is part of a link, and the second set of predictions about the positions of link segments is based on one or more heatmaps that, for each position in the schematic diagram, indicates a probability the position in the schematic diagram is a connection point.

23. The method of claim 21 , wherein the description of links and connectivity comprises a graph connectivity matrix that indicates, for each symbol in the schematic diagram, which other symbols it is connected to by a link.

Assignments (2)
SECURITY INTEREST Recorded Oct 25, 2024
From: BENTLEY SYSTEMS, INCORPORATED
To: PNC BANK, NATIONAL ASSOCIATION
Reel/Frame 069268/0042 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 6, 2023
From: GARDNER, MARC-ANDRÉ; SAVARY, SIMON; RAUSCH-LAROUCHE, EVAN; MELANCON, RAPHAËL; JAHJAH, KARL-ALEXANDRE
To: BENTLEY SYSTEMS, INCORPORATED
Reel/Frame 062604/0770 →
References Cited (89)
US 5097422A · Corbin, II et al. · 1992 [cited by applicant]
US 5111413A · Lazansky et al. · 1992 [cited by applicant]
US 5164911A · Juran et al. · 1992 [cited by applicant]
US 5351197A · Upton et al. · 1994 [cited by applicant]
US 5594809A · Kopec et al. · 1997 [cited by applicant]
US 5617327A · Duncan · 1997 [cited by applicant]
US 5625798A · Badders et al. · 1997 [cited by applicant]
US 7574048B2 · Shilman et al. · 2009 [cited by applicant]
US 8775934B2 · Nasle et al. · 2014 [cited by applicant]
US 8837294B2 · Frishberg et al. · 2014 [cited by applicant]
US 8977527B2 · McKim et al. · 2015 [cited by applicant]
US 9015016B2 · Lorenz et al. · 2015 [cited by applicant]
US 9721157B2 · Frank et al. · 2017 [cited by applicant]
US 9811251B2 · Kling et al. · 2017 [cited by applicant]
US 10558780B1 · Kukal et al. · 2020 [cited by applicant]
US 11475307B2 · Sharma · 2022 [cited by examiner]
US 11501470B2 · Hassan et al. · 2022 [cited by applicant]
US 11521026B2 · Lapointe et al. · 2022 [cited by applicant]
US 11593666B2 · McCarthy et al. · 2023 [cited by applicant]
US 11842035B2 · Jahjah et al. · 2023 [cited by applicant]
US 12175337B2 · Gardner et al. · 2024 [cited by applicant]
US 20010033694A1 · Goodman et al. · 2001 [cited by applicant]
US 20030130992A1 · Tyan et al. · 2003 [cited by applicant]
US 20050155030A1 · DeWitt, Jr. et al. · 2005 [cited by applicant]
US 20070022399A1 · Tsai et al. · 2007 [cited by applicant]
US 20070201752A1 · Gormish et al. · 2007 [cited by applicant]
US 20080052638A1 · Frank et al. · 2008 [cited by applicant]
US 20080063279A1 · Vincent et al. · 2008 [cited by applicant]
US 20090074300A1 · Hull et al. · 2009 [cited by applicant]
US 20090100050A1 · Erol et al. · 2009 [cited by applicant]
US 20090292514A1 · McKim et al. · 2009 [cited by applicant]
US 20090313245A1 · Weyl et al. · 2009 [cited by applicant]
US 20110007366A1 · Sarkar et al. · 2011 [cited by applicant]
US 20120116559A1 · Davis et al. · 2012 [cited by applicant]
US 20120134576A1 · Sharma et al. · 2012 [cited by applicant]
US 20120284012A1 · Rodriguez et al. · 2012 [cited by applicant]
US 20130173632A1 · Birdwell et al. · 2013 [cited by applicant]
US 20140009612A1 · King · 2014 [cited by applicant]
US 20140080428A1 · Rhoads et al. · 2014 [cited by applicant]
US 20140336992A1 · Kling et al. · 2014 [cited by applicant]
US 20150269431A1 · Haji et al. · 2015 [cited by applicant]
US 20160161930A1 · Jirkovsky et al. · 2016 [cited by applicant]
US 20170061031A1 · Jammikunta · 2017 [cited by examiner]
US 20170351708A1 · Lahmann et al. · 2017 [cited by applicant]
US 20180114101A1 · Desai et al. · 2018 [cited by applicant]
US 20190012424A1 · Brookshire · 2019 [cited by applicant]
US 20200005094A1 · Sinha et al. · 2020 [cited by applicant]
US 20200175211A1 · Kang et al. · 2020 [cited by applicant]
US 20200175372A1 · Sharma et al. · 2020 [cited by applicant]
US 20200184278A1 · Zadeh et al. · 2020 [cited by applicant]
US 20200387553A1 · Tyulyaev · 2020 [cited by examiner]
US 20210096523A1 · Stump et al. · 2021 [cited by applicant]
US 20210174128A1 · Charnock et al. · 2021 [cited by applicant]
US 20210278960A1 · Mabote · 2021 [cited by applicant]
US 20210279271A1 · Khanafer et al. · 2021 [cited by applicant]
US 20220044146A1 · Gardner et al. · 2022 [cited by applicant]
US 20220319219A1 · Tsibulevskiy et al. · 2022 [cited by applicant]
US 20240119751A1 · Gardner et al. · 2024 [cited by applicant]
EP 3660743A1 · 2020 [cited by applicant]
JP 3445394B2 · 2003 [cited by applicant]
WO WO2014075174A1 · 2014 [cited by applicant]
WO WO2020005541A1 · 2020 [cited by applicant]
WO WO2021021624A1 · 2021 [cited by applicant]
Gao, W., Zhao, Y., & Smidts, C. (2020). Component detection in piping and instrumentation diagrams of nuclear power plants based on neural networks. Progress in Nuclear Energy, 128, 103491. (Year: 2020). [cited by examiner]
Moon, Y., Lee, J., Mun, D., & Lim, S. (2021). Deep learning-based method to recognize line objects and flow arrows from image-format piping and instrumentation diagrams for digitization. Applied sciences, 11(21), 10054.… [cited by examiner]
K. Duan, S. Bai, L. Xie, H. Qi, Q. Huang and Q. Tian, “CenterNet: Keypoint Triplets for Object Detection,” 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Korea (South), 2019, pp. 6568-6577 (Yea… [cited by examiner]
Tan, W. C., Chen, I. M., Pan, S. J., & Tan, H. K. (Aug. 2016). Automated design evaluation on layout of piping and instrumentation diagram using histogram of connectivity. In 2016 IEEE International Conference on Automa… [cited by examiner]
Bunke, Horst, “Automatic Interpretation of Lines and Text in Circuit Diagrams,” J. Kittler, K. S. Fu, and L. F. Pau (editors), D. Reidel Publishing Company, Pattern Recognition Theory and Applications, 1982, pp. 297-310. [cited by applicant]
Duda, Richard O., et al., “Use of the Hough Transformation to Detect Lines and Curves in Pictures,” Association of Computing Machinery, Inc., Graphics and Image Processing, Communications of the ACM, vol. 15, No. 1, Jan… [cited by applicant]
“European Search Report and Written Opinion,” European Application No. 21 150 316.4-1207, Applicant: Bentley Systems, Incorporated, Date of Mailing: Jun. 8, 2021, pp. 1-10. [cited by applicant]
“European Search Report and Written Opinion,” European Application No. 21 150 319.8-1207, Applicant: Bentley Systems, Incorporated, Date of Mailing: Jun. 9, 2021, pp. 1-8. [cited by applicant]
Julca-Aguilar, Frank D., et al., “Symbol Detection in Online Handwritten Graphics Using Faster R-CNN,” IEEE, 2018 13 [cited by applicant]
Mani, Shouvik, et al., “Automatic Digitization of Engineering Diagrams using Deep Learning and Graph Search,” IEEE, 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Jun. 14, 2020, p… [cited by applicant]
Moon, Yoochan, et al., “Deep Learning-Based Method to Recognize Line Objects and Flow Arrows from Image-Format Piping and Instrumentation Diagrams for Digitization,” MDPI, Applied Sciences, vol. 11, No. 10054, Oct. 27, … [cited by applicant]
Moreno-Garcia, et al., “New Trends on Digitisation of Complex Engineering Drawings,” Springer, Neural Computing and Applications, vol. 31, Jun. 13, 2018, pp. 1695-1712. [cited by applicant]
Paliwal, Shubham, et al., “Digitize-PID: Automatic Digitization of Piping and Instrumentation Diagrams,” arXiv, arXiv: 2109.03794v1 [cs.CV], Sep. 8, 2021, pp. 1-13. [cited by applicant]
Rezvanifar, Alireza, et al., “Symbol Spotting on Digital Architectural Floor Plans Using A Deep Learning-Based Framework,” IEEE, 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Jun… [cited by applicant]
U.S. Appl. No. 17/034,844, filed Sep. 28, 2020 by Marc-André Lapointe, et al. for Classifying Individual Elements of an Infrastructure Model, pp. 1-27. [cited by applicant]
U.S. Appl. No. 17/128,912, filed Dec. 21, 2020 by Karl-Alexandre Jahjah, et al. for Techniques for Labeling, Reviewing and Correcting Label Predictions for P&IDS, pp. 1-44. [cited by applicant]
U.S. Appl. No. 17/129,205, filed Dec. 21, 2020 by Marc-André Lapointe, et al. for Techniques for Extracting Machine-Readable Information From P&IDS, pp. 1-29. [cited by applicant]
Yu, Eun-seop, et al., “Features Recognition from Piping and Instrumentation Diagrams in Image Format Using a Deep Learning Network,” MDPI, Engines, vol. 12, No. 4425, Nov. 21, 2019, pp. 1-19. [cited by applicant]
Zhou, Xingyi, et al., “Objects as Points,” arXiv, arXiv: 1904.07850v2 [cs.CV], Apr. 25, 2019, pp. 1-12. [cited by applicant]
Adam, S., et al., “Symbol and Character Recognition: Application to engineering Drawings,” Springer-Verlag 2000, International Journal on Document Analysis and Recognition, IJDAR, vol. 3, Dec. 2000, pp. 89-101. [cited by applicant]
Ghadekar, Premanand, et al., “Automatic Digitization of Engineering Diagrams Using Intelligent Algorithms,” Science Publications, Journal of Computer Science, vol. 17, No. 9, Sep. 28, 2021, pp. 848-854. [cited by applicant]
Kang, Sung-O, et al., “A Digitization and Conversion Tool for Imaged Drawings to Intelligent Piping and Instrumentation Diagrams (P&ID),” MDPI, Energies, vol. 12, No. 2593, Jul. 5, 2019, pp. 1-26. [cited by applicant]
Kim, Byung Chui, et al., “End-to-End Digitization of Image Format Piping and Instrumentation Diagrams at an Industrially Applicable Level,” Oxford University Press, Oxford, CDE, Journal of Computational Design and engin… [cited by applicant]
Llados, Josep, et al., “Symbol Recognition: Current Advances and Perspectives,” Springer-Verlag Berlin Heidelberg, GREC 2002, Graphics Recognition Algorithms and Applications, LNCS, Lecture Notes in Computer Science, vo… [cited by applicant]
Rahul, Rohit, et al., “Automatic Information Extraction from Piping and Instrumentation Diagrams,” arXiv, arXiv:1901.11383v1 [cs.CV], Jan. 28, 2019, pp. 1-10. [cited by applicant]
U.S. Appl. No. 19/092,793, filed Mar. 27, 2025 by Marc-André Gardner, et al. for Techniques for Extracting Associations in Schematic Diagrams, pp. 1-38. [cited by applicant]