Machining feature and topological relationship recognition based on a multi-task graph neural network
工程技术TOPEI检索SCI升级版 工程技术1区SCI基础版 工程技术2区IF 9.9Highlights
- •Release a new dataset called MFTRCAD containing labels for machining features and topological relationships.
- •Develop a multi-task graph neural network called MFTReNet for machining feature and topological relationship recognition.
- •Propose a learning task and a corresponding prediction method for topological relationship extraction.
- •MFTReNet outperforms other state-of-the-art methods on various open-source datasets.
Abstract
Keywords
1. Introduction
- •Based on the 3D model construction script of [18], the first multi-layer part dataset oriented towards machining features and topological relationship recognition is presented. The dataset contains over 20 k 3D CAD models labeled with instance-level machining features and topological relationships in STEP format. This dataset provides researchers with an environment for evaluating MFR methods that are more complex and closer to genuine parts.
- •A novel multi-task graph neural network architecture MFTReNet for machining feature recognition is proposed, which efficiently combines geometric and topological information from neutral B-Rep data. The architecture explicitly separates task-specific and shared knowledge and constructs information routing for knowledge fusion. This improves knowledge-sharing efficiency and solves the negative transfer problem exhibited by multi-task learning in MFR.
- •The learning task for topological relationship recognition and corresponding prediction methods are proposed. Thus, the connection and mapping between the bottom-level geometric information, the middle-level feature information, and the top-level topological relationship information are realized. The automated extraction of machining features and their topological relationships lays the foundation for the intelligent planning of subsequent machining processes.
2. Related work
2.1. Machining feature recognition via deep learning
2.1.1. Two-stage methods
2.1.2. One-stage methods
2.2. Datasets for machining feature recognition
3. Methodology
3.1. Overview of the proposed approach

Fig. 1. The pipeline of the proposed framework.
3.2. Dataset creation

Fig. 2. Flowchart for automated dataset generation.
3.2.1. 3D CAD models generation
Table 1. Topological relationship categories and their definitions.
| Relationship Type | Definition | Number of related features |
|---|---|---|
| Coplanar | Sketches of multiple features are drawn on the same plane of the part body, and the types of features can be different. | |
| Circle Array | Sketches of multiple features are obtained by circular array operations, and the features are of the same type. | |
| Line Array | Sketches of multiple features are obtained by a linear array operation, and the features are of the same type. | |
| Mirror | Sketches of multiple features are obtained by mirroring operations, and the features are of the same type. | |
| Intersecting | Sketches of multiple features with overlap on the same plane | |
| Transition | Edges imposed by rounds and chamfers are part of pre-existing features. | |
| Depend-on | The sketch of the current feature is applied to the face of an existing feature. |
3.2.2. Multi-task label design

Fig. 3. An example of label design in MFTRCAD.
3.2.3. Topological and geometric information extraction
Table 2. Geometric features of faces and edges.
| Element | Feature | Definition | Dimension |
|---|---|---|---|
| Face | Type | One-hot code characterizing the geometric type of the face (plane, cylinder, cone, sphere, torus, revolution, extrusion, offset, or other) | 9D |
| Area | The area of the face | 1D | |
| Centroid | The centroid coordinates of the face | 3D | |
| Rational | Is a rational B-spline surface | 1D | |
| UV Grid | Coordinates(3D), normal vectors(3D) and visibility(1D) of each grid point | 7D | |
| Edge | Type | One-hot code characterizing the geometric type of the edge (circular, closed, elliptical, straight, hyperbolic, parabolic, Bezier, non-rational B-Spline, rational B-Spline, offset, or other) | 11D |
| Length | The length of the edge | 1D | |
| Convexity | One-hot code characterizing the convexity of the edge (concave, convex, or smooth) | 3D | |
| U Grid | Coordinates(3D), tangent(3D), normal vectors to the left neighboring surface(3D) and normal vectors to the right neighboring surface(3D) for each grid point | 12D |
3.3. MFTReNet: Machining feature and topological relationship recognition network

Fig. 4. The architecture of MFTReNet.
3.3.1. Geometric information encoder

Fig. 5. The architecture of geometric information encoder.
3.3.2. Topological information encoder

Fig. 6. The architecture of the GNN Block.

Fig. 7. The architecture of topological information encoder.
3.3.3. Multi-task head

Fig. 8. The architecture of multi-task head.
4. Experimental results and discussion
4.1. Experiment on MFCAD++ dataset
Table 3. Semantic accuracy on MFCAD++.
| Network | Semantic Segmentation | Number of parameters | |
|---|---|---|---|
| PointNet++ | 85.88 | − | 1.42 M |
| DGCNN | 85.98 | − | 0.53 M |
| Hierarchical CADNet | 97.37 | − | 9.76 M |
| AAGNet | 99.26 ± 0.02 | 98.66 ± 0.02 | 0.38 M |
| MFTReNet | 99.30 ± 0.01 | 98.63 ± 0.01 | 0.36 M |
4.2. Experiment on MFInstSeg dataset
Table 4. Semantic segmentation and instance grouping performance on MFInstSeg.
| Network | Semantic Segmentation | Instance Grouping | Number of parameters | ||
|---|---|---|---|---|---|
| ASIN | 86.46 ± 0.45 | 79.15 ± 0.82 | 98.29 ± 0.07 | 73.20 ± 0.86 | 6.08 M |
| AAGNet | 99.15 ± 0.03 | 98.45 ± 0.04 | 99.94 ± 0.01 | 98.84 ± 0.07 | 0.41 M |
| MFTReNet | 99.56 ± 0.02 | 98.43 ± 0.03 | 99.95 ± 0.01 | 98.90 ± 0.02 | 0.58 M |
4.3. Experiment on MFTRCAD dataset
Table 5. Face-level performance on MFTRCAD test set.
| Network | Semantic Segmentation | Instance Grouping |
|---|---|---|
| PointNet++ | 67.89 ± 0.08 | − |
| DGCNN | 67.97 ± 0.07 | − |
| Hierarchical CADNet | 78.39 ± 0.03 | − |
| ASIN-seg | 68.57 ± 0.41 | − |
| ASIN-ins | − | 81.37 ± 0.09 |
| ASIN-full | 66.23 ± 0.76 | 72.55 ± 0.12 |
| AAGNet-seg | 79.45 ± 0.02 | − |
| AAGNet-ins | − | 82.44 ± 0.02 |
| AAGNet-full | 75.77 ± 0.03 | 74.98 ± 0.04 |
| MFTReNet-seg | 87.07 ± 0.03 | − |
| MFTReNet-ins | − | 81.33 ± 0.03 |
| MFTReNet-full | 89.88 ± 0.02 | 85.35 ± 0.03 |
Table 6. Feature-level performance on MFTRCAD test set.
| Network | Recognition & Localization | Relationship Prediction |
|---|---|---|
| ASIN-full | 60.43 ± 0.93 | − |
| AAGNet-full | 70.38 ± 0.15 | − |
| MFTReNet-rel | − | 92.48 ± 0.02 |
| MFTReNet-full | 85.47 ± 0.05 | 98.10 ± 0.01 |

Fig. 9. MTL Gain of the multi-task models.

Fig. 10. Visual cases of three tasks of MFTReNet.
4.4. Ablation experiments
Table 7. The results of ablation experiments.
| Network Architecture | Semantic Segmentation | Instance Grouping | Relationship Prediction |
|---|---|---|---|
| Default | 89.88 ± 0.02 | 85.35 ± 0.03 | 98.10 ± 0.01 |
| Hard Parameter Sharing | 86.26 ± 0.05(−3.62) | 80.94 ± 0.04(−4.41) | 97.67 ± 0.02(−0.43) |
| 2 GNN Blocks | 84.45 ± 0.02(−5.43) | 74.33 ± 0.03(−11.02) | 95.88 ± 0.02(−2.22) |
| 3 GNN Blocks | 84.49 ± 0.02(−5.39) | 73.98 ± 0.02(−11.37) | 95.37 ± 0.01(−2.73) |
| No Semantic Links | 86.20 ± 0.03(−3.68) | 80.60 ± 0.04(−4.75) | 96.74 ± 0.02(−1.36) |
| Use Arithmetic Average Loss | 77.96 ± 0.06(−11.92) | 80.85 ± 0.07(−4.50) | 96.37 ± 0.03(−1.73) |

Fig. 11. Visualization of ablation experiment results.

Fig. 12. Change of validation loss using different loss combination functions.
4.5. Case study

Fig. 13. Recognition result of genuine parts.
5. Conclusion
- •To realize intelligent process planning, it is necessary to investigate how to realize the mapping and correlation between process information, such as roughness and tolerance in the MBD model, and the extracted machining features.
- •The multi-task learning architecture used in MFTReNet explicitly separates shared knowledge from task-specific knowledge. However, the lack of constraints between individual encoding modules may result in feature redundancy, which affects model performance.
- •The dataset currently covers a limited number of feature types and relationship types, which restricts the application scenarios of the model, so the combination of unsupervised learning and heuristic learning is subsequently considered to enhance the generalized capability of the model further.
Funding
CRediT authorship contribution statement
Declaration of competing interest
Appendix A. . Dataset statistics

Fig. 14. Some models in the MFTRCAD

Fig. 15. Distribution of feature types in MFTRCAD

Fig. 16. Distribution of topological relationship types in MFTRCAD
Appendix B. . Referenced open-source code repositories
- •PointNet++ implementation: https://github.com/yanx27/Pointnet_Pointnet2_pytorch
- •DGCNN implementation: https://github.com/AnTao97/dgcnn.pytorch
- •Hierarchical CADNet implementation: https://gitlab.com/qub_femg/machine-learning/hierarchical-cadnet
- •ASIN implementation: https://github.com/HARRIXJANG/ASIN-master
- •AAGNet implementation: https://github.com/whjdark/AAGNet
References
- [1]Toward new-generation intelligent manufacturingEngineering, 4 (2018), pp. 11-20
- [2]Towards the design of intelligent CAD systems: an ontological approachAdv. Eng. Inf., 21 (2007), pp. 153-168, 10.1016/j.aei.2006.11.003
- [3]Engineering knowledge formalization and proposition for informatics development towards a CAD-integrated DfX system for product designAdv. Eng. Inf., 51 (2022), Article 101537, 10.1016/j.aei.2022.101537
- [4]A critical review of feature recognition techniquesCADandA, 17 (2020), pp. 861-899, 10.14733/cadaps.2020.861-899
- [5]A feature-extraction-based process-planning systemInt. J. Adv. Manuf. Technol., 38 (2008), pp. 1192-1200
- [6]Process planning using adjacency-based feature extractionInt. J. Adv. Manuf. Technol., 20 (2002), pp. 817-823
- [7]MBD based 3D CAD model automatic feature recognition and similarity evaluationIEEE Access, 9 (2021), pp. 150403-150425
- [8]A review of automated feature recognition with rule-based pattern recognitionComput Ind, 59 (2008), pp. 321-337, 10.1016/j.compind.2007.09.001
- [9]A review of machining feature recognition methodologiesInt. J. Comput. Integr. Manuf., 23 (2010), pp. 353-368
- [10]A novel and smart interactive feature recognition system for rotational parts using a STEP fileInt. J. Adv. Manuf. Technol., 104 (2019), pp. 261-284
- [11]Automatic machining feature recognition based on MBD and process semanticsComput. Ind., 142 (2022), Article 103736
- [12]Machining feature recognition based on a novel multi-task deep learning networkRob. Comput. Integr. Manuf., 77 (2022), Article 102369
- [13]Featurenet: machining feature recognition based on 3d convolution neural networkComput. Aided Des., 101 (2018), pp. 12-22
- [14]An integrated approach to determining the sequence of machining operations for prismatic parts with interacting featuresJ. Mater. Process. Technol., 73 (1998), pp. 234-250
- [15]A method for discovering typical process sequence using granular computing and similarity algorithm based on part featuresInt. J. Adv. Manuf. Technol., 78 (2015), pp. 1781-1793
- [16]A knowledge-based process planning framework for wire arc additive manufacturingAdv. Eng. Inf., 45 (2020), Article 101135, 10.1016/j.aei.2020.101135
- [17]W. Cao, T. Robinson, Y. Hua, F. Boussuge, A.R. Colligan, W. Pan, Graph representation of 3D CAD models for machining feature recognition with deep learning, in: International Design Engineering Technical Conferences and Computers and Information in Engineering Conference, American Society of Mechanical Engineers, 2020: p. V11AT11A003.
- [18]Hierarchical cadnet: learning from b-reps for machining feature recognitionComput. Aided Des., 147 (2022), Article 103226
- [19]AAGNet: a graph neural network towards multi-task machining feature recognitionRob. Comput. Integr. Manuf., 86 (2024), Article 102661
- [20]Faster r-cnn: towards real-time object detection with region proposal networksAdv. Neural Inf. Proces. Syst., 28 (2015)
- [21]A brief survey on semantic segmentation with deep learningNeurocomputing, 406 (2020), pp. 302-321
- [22]D. Bolya, C. Zhou, F. Xiao, Y.J. Lee, Yolact: Real-time instance segmentation, in: Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019: pp. 9157–9166.
- [23]FedAWR: an interactive federated active learning framework for air writing recognitionIEEE Trans. Mob. Comput. (2023)
- [24]A federated learning-based license plate recognition scheme for 5G-enabled internet of vehiclesIEEE Trans. Ind. Inf., 17 (2021), pp. 8523-8530
- [25]A real-time 3-dimensional object detection based human action recognition modelIEEE Open J. Comput. Soc., 5 (2024), pp. 14-26, 10.1109/OJCS.2023.3334528
- [26]Intersecting machining feature localization and recognition via single shot multibox detectorIEEE Trans. Ind. Inf., 17 (2020), pp. 3292-3302
- [27]A novel learning-based feature recognition method using multiple sectional view representationJ. Intell. Manuf., 31 (2020), pp. 1291-1309
- [28]A hybrid framework for manufacturing feature recognition from CAD models of 3-axis milling partsAdv. Eng. Inf., 57 (2023), Article 102073
- [29]A hybrid learning framework for manufacturing feature recognition using graph neural networksJ. Manuf. Process., 85 (2023), pp. 387-404
- [30]A novel method for intersecting machining feature segmentation via deep reinforcement learningAdv. Eng. Inf., 59 (2024), Article 102256
- [31]A machining feature recognition approach based on hierarchical neural network for multi-feature point cloud modelsJ. Intell. Manuf., 34 (2023), pp. 2599-2610
- [32]WeZhu, Machining feature recognition method based on improved mesh neural networkIranian J. Sci. Tech., Tran. Mech. Eng., 47 (2023), pp. 2045-2058
- [33]Highly interacting machining feature recognition via small sample learningRob. Comput. Integr. Manuf., 73 (2022), Article 102260
- [34]Machining feature recognition based on deep neural networks to support tight integration with 3D CAD systemsSci. Rep., 11 (2021), p. 22147
- [35]Recursive encoder network for the automatic analysis of STEP filesJ. Intell. Manuf., 34 (2023), pp. 181-196
- [36]Approaching STEP file analysis as a language processing task: a robust and scale-invariant solution for machining feature recognitionJ. Comput. Appl. Math., 427 (2023), Article 115166
- [37]P.K. Jayaraman, A. Sanghi, J.G. Lambourne, K.D. Willis, T. Davies, H. Shayani, N. Morris, Uv-net: Learning from boundary representations, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021: pp. 11703–11712.
- [38]T. Paviot, pythonocc, (2022). doi: 10.5281/zenodo.7471333.
- [39]M. Fey, J.E. Lenssen, Fast graph representation learning with PyTorch geometric, in: ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019.
- [40]A comprehensive survey on graph neural networksIEEE Trans. Neural Networks Learn. Syst., 32 (2020), pp. 4-24
- [41]L. Wu, P. Cui, J. Pei, L. Zhao, X. Guo, Graph neural networks: foundation, frontiers and applications, in: Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, 2022: pp. 4840–4841.
- [42]Multitask learningMach. Learn., 28 (1997), pp. 41-75
- [43]H. Tang, J. Liu, M. Zhao, X. Gong, Progressive layered extraction (ple): A novel multi-task learning (mtl) model for personalized recommendations, in: Proceedings of the 14th ACM Conference on Recommender Systems, 2020: pp. 269–278.
- [44]Residual gated graph convnetsarXiv Preprint arXiv:1711.07553 (2017)
- [45]Principal neighbourhood aggregation for graph netsAdv. Neural Inf. Proces. Syst., 33 (2020), pp. 13260-13271
- [46]S. Brody, U. Alon, E. Yahav, How attentive are graph attention networks?, arXiv Preprint arXiv:2105.14491 (2021).
- [47]T.N. Kipf, M. Welling, Semi-supervised classification with graph convolutional networks, arXiv Preprint arXiv:1609.02907 (2016).
- [48]T.-Y. Lin, P. Goyal, R. Girshick, K. He, P. Dollár, Focal loss for dense object detection, in: Proceedings of the IEEE International Conference on Computer Vision, 2017: pp. 2980–2988.
- [49]B. Zhang, P. Wonka, Point cloud instance segmentation using probabilistic embeddings, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021: pp. 8883–8892.
- [50]D. Misra, Mish: A self regularized non-monotonic activation function, arXiv Preprint arXiv:1908.08681 (2019).
- [51]P. Izmailov, D. Podoprikhin, T. Garipov, D. Vetrov, A.G. Wilson, Averaging weights leads to wider optima and better generalization, arXiv Preprint arXiv:1803.05407 (2018).
- [52]Pointnet++: deep hierarchical feature learning on point sets in a metric spaceAdv. Neural Inf. Proces. Syst., 30 (2017)
- [53]Dynamic graph cnn for learning on point cloudsACM Tran. Graph. (Tog), 38 (2019), pp. 1-12
Cited by (7)
Comprehensive material painting feature recognition based on spatial model
2025, Systems and Soft ComputingA knowledge graph construction and causal structure mining approach for non-stationary manufacturing systems
2025, Robotics and Computer Integrated ManufacturingSpatio-temporal graph convolutional network with domain generalization: A novel rotating machinery RUL prediction method in small samples
2025, Advanced Engineering InformaticsSFRGNN-DA: An enhanced graph neural network with domain adaptation for feature recognition in structural parts machining
2025, Journal of Manufacturing SystemsAlgorithms for big data mining of hub patent transactions based on decision trees
2025, EPJ Web of ConferencesA hybrid feature recognition method based on Loop Attributed Adjacency Graph and based on hint
2025, Proceedings of SPIE the International Society for Optical Engineering

