Skip to Content
Applied SciencesApplied Sciences
  • Article
  • Open Access

13 January 2026

27 Pages

An Intelligent Process Planning Method for Shaft Parts Based on Multi-Graph Fusion: From Feature Recognition to Process Route Generation

,
,
and
Shenzhen Key Laboratory of Mold Advanced Manufacturing Technology, College of Mechatronics and Control Engineering, Shenzhen University, Shenzhen 518060, China
*
Author to whom correspondence should be addressed.

Abstract

Conventional process planning methods—typically driven by rules or expert heuristics—struggle to handle complex structural components, often yielding low efficiency and limited optimization. This paper proposes an intelligent process planning method for shaft parts based on multi-graph fusion. The framework integrates three core stages—machining feature recognition, machining scheme decision-making, and process route planning—into an end-to-end pipeline that transforms 3D models directly into executable machining routes. First, machining features are automatically identified using an attributed adjacency graph (AAG) representation coupled with a graph attention network (GAT). Next, the system leverages process knowledge and machining parameters to assign the optimal processing scheme for each feature. Finally, a sequence prediction model built on a machining-element directed graph (MEDGraph) generates process routes that satisfy manufacturing constraints. Experimental results demonstrate recognition and planning accuracies of 98.97% and 96.14%, respectively, underscoring the robustness and effectiveness of the proposed framework. This work establishes a unified pathway from design geometry to process execution, offering a powerful enabler for intelligent and adaptive manufacturing.

1. Introduction

Process planning plays a critical role in linking product design and manufacturing. For shaft parts, which are widely used in aerospace, automotive, and machine tool industries, the rationality of their machining process routes directly impacts product quality, manufacturing cost, and production efficiency. Despite continuous advancements in smart manufacturing technologies, process planning in manufacturing enterprises still relies heavily on manual experience, leading to issues such as low efficiency, weak reusability, and insufficient adaptability to complex manufacturing tasks [1]. Concurrently, the vast amounts of historical process data and standardized knowledge accumulated by enterprises have not yet been fully exploited.
With recent advances in artificial intelligence, research in process planning has gradually shifted from rule- and expert knowledge-based approaches towards data-driven methods. Technologies such as deep learning and graph neural networks have demonstrated promising performance in manufacturing feature recognition, process scheme recommendation, and process route optimization. However, current research still faces two major limitations. First, studies predominantly focus on isolated stages such as feature recognition, scheme decision-making, or operation generation, lacking an integrated modeling framework that spans the entire workflow. Moreover, the expression and utilization of manufacturing semantics (e.g., process attributes, tooling equipment, machining elements) are insufficient, making it difficult for planning outcomes to reflect knowledge associations within the engineering context.
To address the aforementioned issues, a multi-stage integrated process planning method for shaft parts is proposed in this study, which takes a 3D model as input and outputs a complete process route. The method encompasses three core steps: machining feature recognition, machining scheme decision-making, and process route generation, along with the construction of corresponding datasets and a model system.
The structure of this paper is as follows: Section 2 reviews related research. Section 3 introduces the fundamental concepts used in this study and details the dataset construction. Section 4 elaborates on the proposed methodology. Section 5 presents the experimental results and analysis. Section 6 provides the conclusions and future prospects.

3. Data Acquisition

Constructing large-scale and diverse datasets is essential for training and evaluating deep learning models. To meet the requirements of the proposed process route planning approach for shaft-type parts, three dedicated datasets were developed in this study: a machining feature recognition dataset, a feature–process decision dataset, and a process route planning dataset.

3.1. Construction of the Machining Feature Recognition Dataset

The creation of the machining feature recognition dataset primarily involves three stages: automatic generation of shaft-type parts, construction of the AAG, and definition of feature labels. The overall creation process is illustrated in Figure 2.
Figure 2. The workflow for building the machining feature recognition dataset.
This feature recognition dataset is generated using parametric modeling technology. By programmatically constructing over 2000 three-dimensional models, it simulates the distribution patterns of machining features in real shaft-type parts. The models cover typical feature combinations, with both their geometric and topological structures validated for process rationality, thereby providing effective data support for deep model training. Although the sample size is approximately 2000, each part contains multiple feature nodes and topological relationships, such that the number of effective data units available for supervised learning far exceeds the nominal sample count. Combined with the advantages of graph neural networks in small-sample scenarios and the recognition accuracy exceeding 98% achieved in experiments, the scale of this dataset is sufficient to support adequate model convergence and generalization.
The automatic generation of parts is designed to reflect actual turning machining logic while ensuring coverage of typical features across diverse geometric scales. Based on the practical sequence of turning operations, a cylindrical blank with an arbitrary length and diameter is first constructed. Subsequently, different diameters of external cylindrical features are generated by random segmentation. Following this, in accordance with the typical order of feature generation in turning operations, external conical features and relief groove features are randomly generated sequentially, and finally, through-holes or blind holes are generated. To ensure the rationality of the dataset, the generated shaft-type parts generally exhibit a spindle shape. At the same time, to guarantee full coverage of feature types and diversity in shape, structure, and scale, each three-dimensional model contains 4 to 20 machining features. Furthermore, the parameters of each feature (such as the diameter range of external cylinders, the taper range of external cones, and the size range of relief grooves) are randomly selected within reasonable intervals for actual shaft-type part machining, thus covering typical geometric feature combinations and diverse actual machining scales of shaft-type parts.
After generating the 3D models of the parts, this study adopts the method of AAGNet [9] to structurally represent the 3D models using Attribute Adjacency Graphs (AAG). AAG integrates topological structure with face and edge attributes, enabling a complete description of machining features within the model. Specifically, an undirected graph (FAG) is first constructed based on face adjacency relationships. Then, attribute information of faces and edges is extended to form a complete AAG, with its attribute definitions provided in Table 1.
Table 1. Face and edge attributes.
To support supervised training, the dataset provides two types of labels for each model: semantic segmentation labels and instance segmentation labels. The semantic segmentation labels assign each face to a specific feature category (e.g., plane, cylindrical surface, etc.). The instance segmentation labels, in the form of an adjacency matrix, identify the face connectivity relationships within the same feature instance and distinguish face nodes belonging to different feature instances.

3.2. Construction of the Feature–Process Decision Dataset

To train and validate the feature–process decision model, a new dataset was further constructed on the basis of the feature recognition dataset. This dataset incorporates enriched process information and machining schemes, forming the feature–process decision dataset. The overall construction workflow is illustrated in Figure 3.
Figure 3. Workflow for constructing the feature–process decision dataset.
During the construction of the feature machining scheme decision dataset, a systematic feature machining scheme library was first established. This involved organizing common machining process paths and equipment parameters, clarifying the machining steps, applicable scopes, and typical process constraints for each scheme, thereby providing a knowledge base for subsequent scheme generation. Table 2 presents partial examples of external cylindrical surface machining schemes from this library. Subsequently, the existing machining feature recognition dataset was expanded. This expansion specifically included supplementing material information and related process parameters for the shaft-type parts. By integrating the process knowledge contained in the feature machining scheme library and applying a fuzzy comprehensive evaluation method, the optimal machining scheme was determined for each machining feature.
Table 2. Feature–process scheme library (partial).
This study established an evaluation index system composed of material properties, feature types, machining accuracy, and surface roughness, which was applied to the fuzzy comprehensive evaluation of machining schemes. The weights assigned to each index are as follows: part material 0.444, feature type 0.312, machining accuracy 0.122, and surface roughness 0.122. Based on the determined indices and weights, a single-factor fuzzy evaluation was conducted to establish the fuzzy relationship matrix between machining schemes and feature requirements under each index. The weight vector and the fuzzy relationship matrix were then synthesized through computational operations to obtain the comprehensive evaluation results for each scheme. The optimal machining scheme was subsequently selected based on the ranking of these scores. Through the above process, the constructed dataset primarily consists of two parts: one is the extended attribute adjacency graph of the part and its feature attributes (including workpiece material, feature type, machining accuracy, surface roughness, etc.); the other is the labels, which represent the optimal machining scheme for each corresponding machining feature.

3.3. Construction of the Process Route Planning Dataset

To provide the data foundation required for building the process route planning model, a dataset was constructed that incorporates machining elements and their sequential dependencies. Based on feature–process schemes, the dataset was systematically decomposed into a collection of machining elements, with machining attributes and process constraints explicitly defined. Furthermore, machining workflows were represented in the form of graph structures, thereby supporting subsequent path generation and optimization. The overall workflow for constructing the process route planning dataset is illustrated in Figure 4.
Figure 4. Workflow for constructing the process route planning dataset.
Based on the previously determined feature–process schemes, each scheme was refined into multiple machining elements, thereby constructing a machining unit set that contains complete operation information. Each machining unit corresponds to a specific machining step and is associated with key attributes such as machining type, equipment and tool requirements, and machining stage. On this basis, typical process rules commonly applied in modern manufacturing practices—such as datum priority, roughing priority, surface finishing priority, and major-surface priority—were incorporated to further clarify the sequential dependencies among machining elements, thereby forming a structured set of process constraints.
To formally represent machining elements and their dependencies, a machining-element directed graph (MEDGraph) was constructed. In this graph, each node represents a machining unit, while each directed edge indicates the precedence constraint between two machining elements. Each machining unit can be expressed as a quadruple:
m e = ( I D , f i , S , T )
In this framework, ID denotes the unique identifier of a machining unit, fi represents the machining feature, S denotes the machining stage (e.g., roughing, semi-finishing, and finishing), and T refers to the cutting tool. The construction of the MEDGraph involves initializing the graph, traversing machining elements, identifying constraint relationships, and creating the corresponding nodes and edges, thereby forming a complete directed graph structure.
To extract machining unit sequences from the MEDGraph, an improved topological sorting algorithm is employed, combined with a backtracking strategy to generate multiple candidate sequences. Subsequently, an evaluation function is constructed to select the optimal machining unit sequence from these candidates. The evaluation function considers machining cost (equipment, tools, time, etc.), machining efficiency (processing time, equipment utilization), and machining quality (accuracy, surface roughness) to compute an overall score for each sequence. The sequence with the highest score is selected as the optimal process route.
The dataset constructed based on the aforementioned method consists of two parts: first, the machining unit directed graph and its node features; second, the labels, which are the corresponding optimal machining unit sequences.

4. Methods

To address the issues of heavy reliance on manual intervention and insufficient flexibility in traditional machining process route planning, this paper proposes an intelligent process planning method for shaft parts based on multi-graph fusion. The overall framework, as illustrated in Figure 5, comprises three core components: feature recognition, feature machining scheme decision-making, and machining process route planning.
Figure 5. The pipeline of the proposed framework.
In the feature recognition stage, the system analyzes the 3D model of the shaft part to extract its topological and attribute information, constructing an AAG. With the aid of a graph neural network, machining features are classified and identified, thereby obtaining structured feature information.
In the process scheme decision-making stage, the method integrates the feature recognition results with the part’s process requirements. It analyzes the machining constraints (such as material, accuracy, surface quality, etc.) for each feature and, based on the existing process scheme library, employs a decision-making model to match each feature with its optimal machining scheme. This results in a process scheme set covering all features.
In the process route planning stage, the system further decomposes the machining schemes into machining elements, constructing a dependency graph to clarify sequential constraints. A process planning model based on directed graphs is then utilized for learning and optimization, ultimately generating a machining unit sequence that satisfies the process requirements and is globally optimal, thereby completing the part’s process route planning.
The proposed method achieves intelligent generation of a complete process route directly from a 3D model. It organically combines feature recognition, scheme decision-making, and route planning across three levels, providing a new approach for the efficient machining of shaft parts. The following sections will elaborate on these three aspects in detail.

4.1. Machining Feature Recognition

The machining feature recognition task involves understanding the structure of complex 3D geometric models, where different neighboring patches and topological relationships contribute unequally to feature semantics. For instance, critical datum planes or key connecting edges have a significantly greater impact on determining feature types than other auxiliary faces. Therefore, the model must be capable of automatically distinguishing the importance of different neighbors to more accurately extract local geometric patterns relevant to feature semantics. Based on these task characteristics, this paper selects the graph attention network (GAT). The attention mechanism of GAT can adaptively learn the influence of different neighbors on the target node, thereby highlighting key geometric elements when aggregating neighborhood information. Compared to traditional GCNs that use uniform neighborhood weights, GAT can effectively handle industrial CAD graph data with heterogeneous geometric structures and strong topological differences through learnable attention weights, and demonstrates improved expressive power and generalization performance even in scenarios with limited data.
Building on this, this paper proposes a GAT-based machining feature recognition model capable of processing nodes, edges, and their attributes in graph-structured data. Through two branches—semantic segmentation and instance segmentation—the model simultaneously achieves classification and localization identification of machining features. Figure 6 illustrates the overall architecture of the model, which consists of three core modules: the feature encoder, the graph encoder, and the feature classifier.
Figure 6. Architecture of the machining feature recognition model.
The feature encoder integrates local topological information of edges with their original attributes to generate enhanced edge representations. Specifically, for each edge, the source node features (10D), target node features (10D), and original edge features (4D) are concatenated to form a 24D composite vector. This vector is then transformed through a multilayer perceptron (MLP) to produce enhanced edge features in a latent feature space. By replacing the original edge features in the graph with these enhanced features, an enriched graph representation that captures local structural information is constructed. The enhanced edge features, together with the node features, serve as the input to the graph encoder, supporting subsequent message passing and feature aggregation.
The graph encoder employs a GAT architecture, which models dependencies within the graph by dynamically computing attention weights among nodes. In this architecture, each node adaptively attends to the importance of its neighbors, thereby effectively exploiting contextual information during feature updating. The attention mechanism in GAT mainly involves two steps: attention coefficient computation and feature aggregation. First, the attention module evaluates the relevance between a target node and its neighboring nodes, assigning an importance weight to each neighbor. Then, the aggregation module performs a weighted summation of the neighbors’ features according to these weights, yielding a summary vector that captures local context. This summary vector is typically combined with the node’s original features (e.g., via concatenation or addition) and passed through a nonlinear activation function to complete the feature update. By stacking multiple graph attention layers, the encoder progressively captures more complex relational patterns among nodes, thereby achieving deep modeling of graph-structured features.
The feature classifier consists of two components: semantic segmentation and instance segmentation. For semantic segmentation, a Softmax classifier is employed to assign each node to its corresponding machining feature category (e.g., hole, slot, or cone). For instance, segmentation, an MLP is used to generate linkage scores between pairs of nodes, indicating whether two nodes belong to the same feature instance. The outputs of these two tasks are optimized using different loss functions and are jointly used to produce the final predictions of the model.
Regarding the loss functions, cross-entropy (CE) loss is adopted for semantic segmentation to quantify the discrepancy between predicted probabilities and ground-truth labels. The total semantic segmentation loss is computed as the average of the losses across all nodes and is denoted as Ls.
L s = − 1 N ∑ i = 1 N ∑ i = 1 K t i l o g ( p i )
Here, K denotes the number of classes, which is 5 in the machining feature recognition dataset. pi represents the predicted probability vector for a node belonging to class i, while ti is the one-hot label vector, where y ^ i = 1 if the label corresponds to class i, and y ^ i = 0 otherwise. N denotes the total number of nodes.
For instance, segmentation, the loss function is the binary cross-entropy (BCE) loss, which measures the discrepancy between the predicted linkage scores S and the ground-truth adjacency matrix A. The ground-truth adjacency matrix is a binary matrix, where each element explicitly indicates whether a connection exists between two nodes. The total instance segmentation loss, Li, is obtained by averaging the BCE losses across all node pairs.
B C E ( t , p ) = − t l o g ( p ) − ( 1 − t ) l o g ( 1 − p )
L i = 1 N 2 ∑ i , j = 1 N B C E ( A i j , S i j )
Here, Aij denotes the ground-truth adjacency value between nodes i and j, while Sij represents the predicted linkage score between nodes i and j. N is the total number of nodes.

4.2. Feature–Process Decision

After completing machining feature recognition, this study further selects the most suitable machining scheme for each feature. Since the determination of machining schemes depends on process constraint relationships between a feature and its local neighborhood—such as relative dimensions, structural connectivity, and machining compatibility—a model capable of effectively modeling the local structural dependencies of “node-edge-node” is required. Based on these task characteristics, this paper selects the Message Passing Neural Network (MPNN) as the core framework. MPNN integrates node and edge attributes through an explicit message-passing mechanism, allowing it to directly represent local dependencies related to process semantics. Moreover, compared to models relying on attention mechanisms, MPNN offers more stable computation and lower memory overhead, making it more suitable for the industrial data in this study, which involves a large number of nodes and relatively regular graph structures.
Building on this, the study constructs the feature machining decision model shown in Figure 7, which automatically selects the optimal machining scheme for each feature from the extended attribute adjacency graph. The model consists of three key components: a feature encoder, a graph encoder, and a machining scheme decision module. The input to the model is an extended attribute adjacency graph containing node and edge attributes, and the output is the corresponding machining scheme category for each feature. Table 3 lists the face and edge attributes included in this extended attribute adjacency graph.
Figure 7. Architecture of the feature–process decision model.
Table 3. Face and edge attributes of the extended AAG.
The attribute encoder employs an MLP to encode the node and edge attributes of the extended AAG, generating corresponding feature vectors. These encoded vectors are then assigned to the respective nodes and edges in the graph, forming an enhanced graph representation that serves as the input to the graph encoder.
The message passing module is built upon an MPNN architecture, which captures the dependencies among nodes and edges through iterative message passing. Each node updates its representation by aggregating information from its neighboring nodes. The message passing process involves three steps: message computation, aggregation, and update. Specifically, the message computation function generates messages based on node and edge features; the aggregation function collects messages from neighbors; and the update function refines the node representation using the aggregated messages. The graph encoder consists of multiple stacked message-passing layers, each employing different aggregation functions (e.g., sum, mean, or max) to capture diverse structural features of the graph.
In this study, the process scheme decision is formulated as a node classification task. The decision module applies a Softmax classifier to assign each node to one of the predefined machining scheme categories. The primary objective is to accurately classify all nodes into 15 machining scheme classes, thereby learning the complex mapping between graph-structured data and process schemes, and predicting the most suitable scheme for each machining feature.
Regarding the loss function, cross-entropy (CE) loss, denoted as LCE, is also adopted for the process scheme decision.
L C E = − 1 N ∑ i = 1 N ∑ i = 1 K y i ( n ) l o g ( p i ( n ) )
Here, K denotes the number of machining scheme categories, which is 15 in the feature–process decision task. N is the number of training samples. y i ( n ) represents the ground-truth label of the n-th sample, where y i ( n ) = 1 if the sample belongs to class i, and y i ( n ) = 0 otherwise. p i ( n ) denotes the predicted probability that the n-th sample belongs to class i.

4.3. Process Route Planning

In the process route planning task, machining elements inherently form a directed graph structure with sequential dependencies. Therefore, a GCN that can directly process graph topology is selected as the core model. Compared to models such as GAT or MPNN, which rely on attention mechanisms or more complex message-passing methods, GCN demonstrates greater robustness in scenarios with limited industrial process data, clear machining logic, and stable structural relationships. It also incurs lower computational costs and can effectively capture local and global process dependency patterns through convolutional operations. Furthermore, the process constraint-aware convolutional mechanism proposed in this paper can naturally embed process semantics such as datum precedence and rough-finish sequencing within the GCN framework. This enables the model to simultaneously learn process rules while aggregating graph structural information, making it better aligned with the engineering characteristics of process route planning.
Consequently, this paper designs a process route planning model based on GCN, allowing it to accurately learn the mapping from “machining unit dependencies–process rules–optimal route” from historical process data. This enables the generation of machining routes that satisfy process logic constraints for new parts. The model takes the machining unit directed graph of the part as input and outputs the globally optimal machining unit sequence. The model architecture includes a feature encoding module, a graph convolutional module, and a ranking module, as illustrated in Figure 8.
Figure 8. Architecture of the process route planning model.
The feature embedding module employs an MLP to encode the node attributes of the MEDGraph, generating corresponding feature vectors. These encoded vectors are then assigned to their respective nodes, resulting in an enhanced MEDGraph that serves as the input to the graph convolution module.
The graph convolution module takes the enhanced MEDGraph as input and outputs updated node representations as well as their coordinate representations after convolutional operations. This module is composed of three primary convolutional layers. Batch normalization is applied to all convolutional layers, and a ReLU activation function is employed after each primary convolution layer. These layers are responsible for extracting shared feature representations from the input graph by propagating and aggregating information through node features and adjacency relationships, thereby updating the node representations.
In the graph convolution module, each convolutional layer enables nodes to aggregate information from neighboring nodes and connecting edges. As the network deepens, higher-level and more global structural features are progressively abstracted, enhancing the model’s capacity to perceive the entire graph. This process allows each node to capture not only larger-scale local information but also global context, enriching the network’s representational power. Typically, each convolutional layer is followed by a ReLU activation function to strengthen the non-linear expressive capability of the model. In addition, batch normalization is applied to all graph convolution layers to accelerate training and improve model stability.
The main responsibility of the sequencing module is to map the node feature vectors output from the graph convolution module into a ranking score vector. This ranking score vector represents the ranking scores of all nodes in the graph, with each node corresponding to a unique score. By sorting the nodes in ascending order of these scores, a reasonable machining sequence can be generated.
Specifically, the sequencing module uses a linear layer to transform the node feature vectors—obtained after multiple graph convolution operations—into ranking score vectors. During training, the model learns to accurately predict node sequences by minimizing the mean squared error (MSE) loss between the predicted ranking score vector and the ground-truth ranking score vector. The loss function is defined as follows:
M S E ( y , y ^ ) = 1 N ∑ i = 1 N ( y i − y ^ i ) 2
Here, y = [ y 1 , y 2 , … , y N ] denotes the ground-truth ranking score vector, y ^ = [ y ^ 1 , y ^ 2 , … , y ^ N ] denotes the predicted ranking score vector, and N is the number of nodes in the machining unit directed graph. Based on the ranking score vector, the module can output the optimal sequence of machining elements, ultimately achieving the goal of process route planning.

5. Experiments and Results Analysis

5.1. Experimental Setup

To comprehensively validate the effectiveness of the proposed method, this study automatically constructs a dataset containing 3D models and complete process flows based on typical manufacturing process rules and historical machining documents. This comprehensive dataset consists of three sub-datasets designed to support the three tasks of feature recognition, machining scheme decision-making, and process route planning. These sub-datasets provide the necessary inputs and labels for training, validation, and testing at each stage of the model.
All datasets are randomly divided into a training set (80%, totaling 1600 samples), a validation set (15%, totaling 300 samples), and a test set (5%, totaling 100 samples). The training set is used for learning model parameters, the validation set for performance evaluation during training, and the test set for final generalization ability assessment. Furthermore, to enhance evaluation reliability, a ten-fold cross-validation method is applied to the training set. The training set is equally divided into 10 subsets, with 9 subsets used for training and 1 subset for validation in each iteration. This process is repeated 10 times, and the average performance is taken as the evaluation result of the model during the training phase. The experiments are conducted on a high-performance workstation equipped with an AMD Ryzen 7 7840HS processor, 1 TB of memory, and an NVIDIA RTX 4050 GPU. The deep learning platform used is PyTorch 2.1.0, the graph neural network tool is DGL 2.2.1, and the optimizer is ADAM.

5.2. Experimental Results

To verify the effectiveness of the sub-models in the tasks of feature recognition, process scheme decision, and process route planning, a comprehensive evaluation was conducted on the loss convergence, prediction accuracy, and generalization ability during training.
The loss and accuracy curves of the feature recognition model for semantic segmentation during training and validation are shown in Figure 9, while the corresponding confusion matrix on the test dataset is presented in Figure 10. The accuracy of all models was obtained through ten-fold cross-validation. In the feature recognition model, the semantic segmentation task achieved a training accuracy of 99.21% and a test accuracy of 98.97%. The instance segmentation task attained a training accuracy of 99.95% and a test accuracy of 99.71%. The training and validation performance of the instance segmentation task is illustrated in Figure 11. For the machining scheme decision-making task, the training and test accuracies were 98.58% and 98.14%, respectively. The corresponding loss and accuracy curves are shown in Figure 12, and the confusion matrix on the test dataset is given in Figure 13. The process route planning task achieved training and test accuracies of 96.87% and 96.14%, respectively. The loss and accuracy curves of the process route planning model during training and validation are presented in Figure 14. The accuracy for each task was calculated as follows: feature recognition was based on the proportion of correctly classified samples for semantic segmentation and the proportion of correctly segmented samples for instance segmentation; machining scheme decision-making was determined by comparing the consistency between predicted and actual schemes; and process route planning was evaluated based on the proportion of samples with exact matches.
Figure 9. Loss and accuracy curves of the feature recognition model for semantic segmentation on the training and validation sets.
Figure 10. Confusion matrix for the semantic segmentation task on the test dataset.
Figure 11. Loss and accuracy curves for instance segmentation of the feature recognition model on the training and validation sets.
Figure 12. Loss and accuracy curves of the feature machining decision model on the training and validation sets.
Figure 13. Confusion matrix for the machining scheme decision-making task on the test dataset.
Figure 14. Loss and accuracy curves of the process route planning model on the training and validation sets.
The training process demonstrated that all sub-models converged well, with loss curves rapidly declining and then stabilizing. The training and validation accuracy curves remained closely aligned, showing no significant signs of overfitting. Furthermore, confusion matrices indicated that both the feature recognition and machining scheme decision-making models exhibited high classification precision and reliability on the test set.
In summary, all three sub-models achieved high accuracy and stable generalization performance, primarily attributed to their reasonable structural design and process semantic modeling. Feature recognition integrates geometric and topological information through attribute adjacency graphs and graph attention networks, enhancing the ability to identify complex structures. Machining scheme decision-making employs attribute encoding and nonlinear mapping to achieve precise matching under multiple constraints. Process route planning models operation dependencies based on the machining unit directed graph, balancing process rules with overall rationality. These designs collectively validate the effectiveness and feasibility of graph neural networks in integrated process planning.
When designing this process planning framework, we fully considered the requirements for computational efficiency and resource consumption in industrial applications. The relevant performance metrics are provided in Table 4. Based on the results in the table, it can be observed that the feature recognition module, built on the GAT architecture, maintains high inference efficiency despite involving attention weight calculations, particularly under the scale of attribute adjacency graphs typical for shaft parts. The machining scheme decision-making module effectively controls model size and memory usage by adopting the lightweight MPNN, making it more suitable for deployment in embedded process systems. The process route planning module utilizes the structurally concise GCN, whose local aggregation mechanism results in linear complexity, enabling stable inference times even on samples containing multiple machining elements. The entire framework, from 3D model input to process route generation, can be completed within the order of hundreds of milliseconds, meeting the real-time requirements of actual production. Furthermore, all three modules are constructed based on graph-structured data, endowing them with strong structural generalization and scalability. When new types of shaft parts are introduced, only the corresponding samples need to be supplemented, without requiring significant modifications to the overall architecture.
Table 4. Computational efficiency and resource consumption of each model.
To further validate the effectiveness of our approach, this study conducted comparative experiments on machining feature recognition using the publicly available MFCAD and MFCAD++ datasets, comparing the results with our self-constructed shaft part dataset. All experiments were based on the same model architecture and training configuration to ensure comparability of the results. Table 5 presents the recognition performance on the three datasets.
Table 5. Recognition performance on the three datasets under our proposed feature recognition model.
The above results show that our method achieved the highest recognition accuracy of nearly 99% on the shaft part dataset. However, on public datasets such as MFCAD and MFCAD++, which feature more complex characteristics and are primarily focused on milling parts, the accuracy decreased compared to existing methods. This is mainly because the public datasets contain a wider variety of part types, with more complex feature morphologies and spatial relationships. In contrast, the design of our model is more tailored to shaft parts, utilizing lower input feature dimensions and a lighter network architecture. Consequently, it struggles to maintain the same level of performance in more complex scenarios. Overall, the comparative experiments validate the high reliability and accuracy of our method in the context of shaft parts, while also indicating that there is still room for improvement in the recognition of complex milling-type parts.
We also conducted various ablation studies to evaluate the impact of node attributes, edge attributes, and certain important attribute features on network performance. The ablation experimental results for each model are presented in Table 6.
Table 6. Ablation study results for each model.
For the feature recognition model, the removal of node attributes led to a significant performance drop, indicating their critical role in distinguishing the geometric forms of shaft-type features. In contrast, the impact of edge attributes was relatively weaker. For the feature machining decision model, the absence of attributes such as machining accuracy, material type, and related process properties noticeably degraded model performance. This demonstrates that these attributes are directly linked to the logic of machining scheme selection and are core factors for the model’s decision-making accuracy. For the process route planning model, node attributes also had a significant influence, as their removal led to a substantial decline in planning accuracy. Comparatively, removing individual node attributes like the machining stage or machining feature had a lesser effect on performance. This is primarily because the results of process route planning are determined by a combination of multiple feature attributes and process constraint relationships, exhibiting stronger multi-factor coupling characteristics. Overall, the ablation experiments validate the importance of various input attributes in different models. They also highlight that model design must adequately consider the contribution of each attribute to its specific task.

5.3. Case Study

To verify the effectiveness of the proposed intelligent process planning method for shaft parts based on multi-graph fusion, the typical shaft part shown in Figure 15 was selected as a case study for full-process analysis and experimental validation.
Figure 15. 3D model of the example part.
First, a 3D model is created based on the part engineering drawing, and corresponding process information is assigned to each feature. During the creation of the 3D model, features such as keyways, threads, chamfers, and fillets are removed. Subsequently, feature recognition is performed to identify all features within the part. The recognition results are shown in Figure 16. The model’s recognition results are consistent with the actual features, indicating that the feature recognition model possesses strong capability in identifying machining features.
Figure 16. Machining feature recognition results for the example part.
Next, by inputting the feature recognition results and machining process information into the feature machining decision model, the machining scheme for each machining feature can be obtained. The machining scheme set for the features of this part is presented in Table 7.
Table 7. Machining feature recognition results of the example part.
Based on the machining scheme set, a machining unit set is constructed and input into the process route planning model, thereby obtaining the predicted sequence of machining steps. Additionally, to meet the validation requirements of this study, the process documentation for this example part was organized and structured, resulting in an actual machining sequence derived from the experience of human process experts. A comparison between the model-predicted sequence and the actual machining sequence is presented in Table 8, from which it can be observed that differences occur mainly between the 14th and 27th machining steps, while the remaining steps are identical.
Table 8. Comparison between the predicted and actual machining sequences for the example part.
From the discrepancy analysis, it can be observed that after the “Cylindrical Surface 9—Rough turning” step, the model tends to continue the rough machining phase, thus sequentially scheduling steps such as rough turning of circular grooves and rough turning of cones. In contrast, in the actual process, operators prefer to first complete the semi-finishing of the external cylindrical surfaces by changing tools while maintaining the original clamping setup, before proceeding with operations like rough turning of grooves and cones.
The case study demonstrates that the model-predicted machining sequence is highly consistent with the actual machining sequence in terms of overall order. Both encompass typical processes such as rough and semi-finishing machining and strictly adhere to the fundamental process principle of “roughing before finishing.” This indicates that the proposed process route planning model can not only effectively learn the topological dependencies between machining steps but also maintain process rationality and execution norms during sequence generation, thereby providing preliminary validation of the effectiveness of the proposed method.

6. Conclusions

This study proposes an intelligent process planning method for shaft parts based on multi-graph fusion, establishing a three-stage integrated technical system that progresses from machining feature recognition to feature machining scheme decision-making, and finally to process route planning. To support model training, a multi-source dataset covering feature recognition, scheme decision-making, and route planning was autonomously constructed, addressing the gaps in process semantic annotation and missing process parameters. Methodologically, a feature recognition model based on a GAT, a scheme decision-making model based on an MPNN, and a process-constraint-aware GCN embedding process rules were designed, achieving a unified representation of diverse process information and the integration of process constraints. Experimental results show that the proposed method can achieve fully automated conversion from a 3D model to a complete process route without manual intervention. It attains a high level of feature recognition accuracy, scheme decision-making rationality, and route planning consistency. The generated machining sequences show strong alignment with real process sequences, significantly enhancing the intelligence and industrial adaptability of process planning for shaft parts and providing effective technical support for the development of intelligent manufacturing.
Although the method proposed in this paper has achieved significant results in experimental validation, several issues remain for further research and refinement. First, it is necessary to further enhance the model’s generalization ability for different types of parts and more complex, diverse machining scenarios, thereby improving its applicability in real industrial environments. Second, the interpretability and trustworthiness of the model require further strengthening to meet the practical demands for decision transparency and stability in industrial applications. Additionally, although the method has been validated on public datasets and real part case studies, comprehensive industrial-level manufacturing validation—such as systematic testing on actual machining equipment or within real production line environments—still poses certain challenges. This research is largely constrained by the accessibility of real process data and manufacturing resources. Future work will strengthen collaboration with industry to gradually introduce more real parts, actual process plans, and manufacturing process data, enabling a more comprehensive evaluation of the proposed method’s performance in real production environments.
At the same time, for the tasks of machining scheme decision-making and process route planning, there is still a lack of structured, standardized, and publicly accessible benchmark datasets. This limitation hinders systematic comparison and reproducibility across different methods to some extent. Follow-up research will actively explore shareable data organization formats, progressively improve the transparency of synthetic data generation rules, and further validate and compare the proposed method based on available standard data. Ultimately, by integrating more efficient deep learning architectures, richer representations of geometric and process knowledge, and continuous industrial validation, we aim to build a more intelligent, reliable, and scalable automated process planning system.

Author Contributions

Conceptualization, X.P.; methodology, Z.D. and Z.S.; software, Z.D. and Z.S.; validation, Z.D. and Z.S.; investigation, S.M. and X.P.; manuscript writing and review, X.P., Z.D., Z.S. and S.M.; visualization, S.M. and Z.D.; project administration, X.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Shenzhen Natural Science Foundation (Basic Research Fund), grant number JCYJ20250604182633045.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The datasets presented in this study are available from the author Z.D. via 2310295122@email.szu.edu.cn, on reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. ElMaraghy, H.A. Flexible and reconfigurable manufacturing systems paradigms. Int. J. Flex. Manuf. Syst. 2005, 17, 261–276. [Google Scholar] [CrossRef] [Scilit]
  2. Lambourne, J.; Willis, K.D.D.; Jayaraman, P.K.; Sanghi, A.; Meltzer, P.; Shayani, H. BRepNet: A topological message passing system for solid models. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Virtual, 19–25 June 2021; pp. 12768–12777. [Google Scholar] [CrossRef] [Scilit]
  3. Ma, L.; Yang, J. Adaptive recognition of machining features in sheet metal parts based on a graph class-incremental learning strategy. Sci. Rep. 2024, 14, 10656. [Google Scholar] [CrossRef] [Scilit]
  4. Park, J.H.; Lim, S.; Yeo, C.; Joung, Y.-K.; Mun, D. DFGAT for recognizing design features from a B-rep model for mechanical parts. Robot. Comput.-Integr. Manuf. 2025, 93, 102938. [Google Scholar] [CrossRef] [Scilit]
  5. Zhang, S.; Guan, Z.; Jiang, H.; Wang, X.; Tan, P. BrepMFR: Enhancing machining feature recognition in B-rep models through deep learning and domain adaptation. Comput. Aided Geom. Des. 2024, 111, 102318. [Google Scholar] [CrossRef] [Scilit]
  6. Colligan, A.R.; Robinson, T.T.; Nolan, D.C.; Hua, Y.; Cao, W. Hierarchical CADNet: Learning from B-Reps for Machining Feature Recognition. Comput.-Aided Des. 2022, 147, 103226. [Google Scholar] [CrossRef] [Scilit]
  7. Wang, P.; Yang, W.-A.; You, Y. A hybrid learning framework for manufacturing feature recognition using graph neural networks. J. Manuf. Process. 2023, 85, 387–404. [Google Scholar] [CrossRef] [Scilit]
  8. Zheng, X.; Chen, H.; He, F.; Liu, X. SFRGNN-DA: An enhanced graph neural network with domain adaptation for feature recognition in structural parts machining. J. Manuf. Syst. 2025, 81, 16–33. [Google Scholar] [CrossRef] [Scilit]
  9. Wu, H.; Lei, R.; Peng, Y.; Gao, L. AAGNet: A graph neural network towards multi-task machining feature recognition. Robot. Comput.-Integr. Manuf. 2024, 86, 102661. [Google Scholar] [CrossRef] [Scilit]
  10. Xia, M.; Zhao, X.; Hu, X. Machining feature and topological relationship recognition based on a multi-task graph neural network. Adv. Eng. Inform. 2024, 62, 102721. [Google Scholar] [CrossRef] [Scilit]
  11. Li, Y.; Bwar, K.H.; Chai, R.; Tse, K.M.; Chai, B.X. Adaptive Multi-View Hypergraph Learning for Cross-Condition Bearing Fault Diagnosis. Mach. Learn. Knowl. Extr. 2025, 7, 147. [Google Scholar] [CrossRef] [Scilit]
  12. Yang, D.; Li, Y.; Liu, X.; Deng, T.; Liu, C.; Xu, K. A data-driven approach for volume feature recognition based on cell graph. Int. J. Comput. Integr. Manuf. 2025, 38, 844–860. [Google Scholar] [CrossRef] [Scilit]
  13. Liang, J.; Zhang, S.; Zhang, Y.; Huang, R.; Xu, C.; Wang, Z.; Zhang, H. A knowledge graph-based approach to modeling & representation for machining process design intent. Adv. Eng. Inform. 2024, 62, 102645. [Google Scholar] [CrossRef] [Scilit]
  14. Xiao, Y.; Zheng, S.; Shi, J.; Du, X.; Hong, J. Knowledge graph-based manufacturing process planning: A state-of-the-art review. J. Manuf. Syst. 2023, 70, 417–435. [Google Scholar] [CrossRef] [Scilit]
  15. Zhang, L.; Wu, H.; Chen, Y.; Wang, X.; Peng, Y. A knowledge-guided process planning approach with reinforcement learning. J. Eng. Des. 2024, 36, 1527–1550. [Google Scholar] [CrossRef] [Scilit]
  16. Duan, J.; Duan, Y. Toward a framework of extracting typical machining process routines based on knowledge representation learning. Adv. Eng. Inform. 2024, 60, 102431. [Google Scholar] [CrossRef] [Scilit]
  17. Zhang, Y.; Zhang, S.; Huang, R.; Huang, B.; Liang, J.; Zhang, H.; Wang, Z. Combining deep learning with knowledge graph for macro process planning. Comput. Ind. 2022, 140, 103668. [Google Scholar] [CrossRef] [Scilit]
  18. Hussong, M.; Ruediger-Flore, P.; Klar, M.; Kloft, M.; Aurich, J.C. Selection of manufacturing processes using graph neural networks. J. Manuf. Syst. 2025, 80, 176–193. [Google Scholar] [CrossRef] [Scilit]
  19. Wang, Z.; Zhang, S.; Zhang, H.; Zhang, Y.; Liang, J.; Huang, R.; Huang, B. Machining feature process route planning based on a graph convolutional neural network. Adv. Eng. Inform. 2024, 59, 102249. [Google Scholar] [CrossRef] [Scilit]
  20. Zhang, H.; Wang, W.; Zhang, S.; Zhang, Y.; Zhou, J.; Wang, Z.; Huang, B.; Huang, R. A novel method based on deep reinforcement learning for machining process route planning. Robot. Comput.-Integr. Manuf. 2024, 86, 102688. [Google Scholar] [CrossRef] [Scilit]
  21. Wu, W.; Huang, Z.; Zeng, J.; Fan, K. A fast decision-making method for process planning with dynamic machining resources via deep reinforcement learning. J. Manuf. Syst. 2021, 58, 392–411. [Google Scholar] [CrossRef] [Scilit]
  22. Guo, K.; Liu, R.; Duan, G.; Liu, J. A Deep reinforcement learning method with multiple starting nodes for dynamic process planning decision making. Comput. Ind. Eng. 2024, 194, 110359. [Google Scholar] [CrossRef] [Scilit]
  23. Xiao, B.; Zhao, Z.; Xu, B.; Li, Y.; Zhang, W.; Huan, H.; Su, H. A novel method for intelligent reasoning of machining step sequences based on deep reinforcement learning. J. Manuf. Syst. 2025, 80, 626–642. [Google Scholar] [CrossRef] [Scilit]
  24. Zhang, H.; Wang, W.; Wang, Y.; Zhang, Y.; Zhou, J.; Huang, B.; Zhang, S. Employing deep reinforcement learning for machining process planning: An improved framework. J. Manuf. Syst. 2025, 78, 370–393. [Google Scholar] [CrossRef] [Scilit]
  25. Feng, C.; Huang, Y.; Wu, Y.; Zhang, J. Feature-based optimization method integrating sequencing and cutting parameters for minimizing energy consumption of CNC machine tools. Int. J. Adv. Manuf. Technol. 2022, 121, 503–515. [Google Scholar] [CrossRef] [Scilit]
  26. Chu, H.; Dong, K.; Yan, J.; Li, Z.; Liu, Z.; Cheng, Q.; Zhang, C. Flexible process planning based on predictive models for machining time and energy consumption. Int. J. Adv. Manuf. Technol. 2023, 128, 1763–1780. [Google Scholar] [CrossRef] [Scilit]
  27. Wang, J.; Zheng, H.; Zhao, S.; Zhang, Q. Energy-aware remanufacturing process planning and scheduling problem using reinforcement learning-based particle swarm optimization algorithm. J. Clean. Prod. 2024, 476, 143771. [Google Scholar] [CrossRef] [Scilit]
  28. Zubair, A.F.; Abu Mansor, M.S. Automatic feature recognition of regular features for symmetrical and non-symmetrical cylinder part using volume decomposition method. Eng. Comput. 2018, 34, 843–863. [Google Scholar] [CrossRef] [Scilit]
  29. Zubair, A.F.; Abu Mansor, M.S. Embedding firefly algorithm in optimization of CAPP turning machining parameters for cutting tool selections. Comput. Ind. Eng. 2019, 135, 317–325. [Google Scholar] [CrossRef] [Scilit]
  30. Elmesbahi, A.; Buj-Corral, I.; El Mesbahi, J.; Bensaid, O. New STEP-NC-compliant system to automate process planning for the turning process. Int. J. Adv. Manuf. Technol. 2023, 128, 2419–2457. [Google Scholar] [CrossRef] [Scilit]
  31. Ma, H.; Zhou, X.; Liu, W.; Niu, Q.; Kong, C. A customizable process planning approach for rotational parts based on multi-level machining features and ontology. Int. J. Adv. Manuf. Technol. 2020, 108, 647–669. [Google Scholar] [CrossRef] [Scilit]
  32. Li, Y.; Zhou, T. Research on Intelligent Planning Method for Turning Machining Process Based on Knowledge Base. Machines 2025, 13, 417. [Google Scholar] [CrossRef] [Scilit]
  33. Takamori, R.; Nakatsuji, H.; Nishida, I. Automated process planning system to machine organic shapes by combining turning and milling. J. Adv. Mech. Des. Syst. Manuf. 2024, 18, JAMDSM0038. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.