The proposed automated mesh generation method for automotive plastic parts is founded on a technical architecture comprising three core modules: (1) an AI-based intelligent feature recognition module, (2) a point cloud registration module, and (3) a segmentation-fitting mid-surface generation module.
Accurate recognition of typical features, such as clips and backing plates, in automotive plastic parts constitutes a critical prerequisite for automated mid-surface mesh generation. The primary challenges in this task are as follows: (1) plastic parts are typically thin-walled, small in scale, and geometrically diverse; (2) features such as clips and backing plates exhibit considerable variations in dimension and curvature, making unified modeling difficult using conventional approaches; and (3) local features often share high topological similarity, which frequently leads to misclassification.
To address these challenges, a dedicated point cloud dataset of automotive plastic part features is constructed in this study, and an AI-based recognition module is developed using an enhanced PointNet++ architecture. The module performs feature-level semantic segmentation on input point clouds, thereby establishing a reliable geometric-semantic foundation for subsequent automated mesh generation.
2.1. Construction of the Automotive Plastic Part Feature Dataset
Due to the absence of annotated datasets for typical features of automotive plastic parts in publicly available resources, a dedicated point cloud dataset was constructed in this study. The dataset comprises three-dimensional coordinates, normal vectors, and semantic labels for each point. Based on differences in structural function and morphology, the typical features are categorized into two main classes: plastic clips and backing plates, as illustrated in
Figure 2.
To improve the efficiency and consistency of dataset construction, a fully automated workflow was developed, starting from original geometric models. As shown in
Figure 3, the procedure involves the following steps. Initially, all geometric files stored in a specified directory are traversed. Each file undergoes mesh generation and quality control to produce a structure suitable for point cloud extraction. Subsequently, key attributes, including centroid coordinates, normal vectors, face identifiers, and classification labels, are automatically retrieved from the mesh elements. Finally, an intelligent algorithm selects an optimal projection direction for region partitioning and exports the point cloud data in TXT format according to predefined standards, ensuring that each file satisfies the required point count and data dimensionality for subsequent processing.
It is worth noting that due to the large size of the original components, the geometric models were segmented into smaller blocks during dataset construction to adequately capture fine features such as clips. In the dataset derived from ten vehicle models, the clip label was designated as 50 and the backing plate label as 51. The complete dataset comprises 132,000 samples, aggregated from the ten models, including instances containing only backing plates. After 16 rounds of systematic model iteration and dataset quality optimization, the optimal model was ultimately identified. Notably, this model was not trained on the full expanded dataset of 132,000 samples but rather on a carefully curated subset consisting of samples with “at least one intact clip” (31,000 samples). This decision was validated through multiple comparative experiments.
Parallel training and testing were conducted on three derived datasets, namely, “only intact clips,” “at least one intact clip,” and “full dataset with backing plates removed.” The “at least one intact clip” dataset demonstrated unique advantages. It preserves the real-world industrial scenario where clips and backing plates coexist, providing a foundation for contrastive learning between the two component types, thereby avoiding the lack of contextual relevance observed in the “only intact clips” dataset. Simultaneously, by enforcing the core condition of “at least one intact clip,” low-quality samples with severely damaged clips or ineffective features were effectively excluded. This mitigates the interference caused by such samples during model training, as encountered in the “full dataset with backing plates removed” configuration.
Table 1 presents a comprehensive record of the iterative model development process and serves as an ablation study to validate the design choices. To investigate the impact of dataset composition, a series of comparative experiments was conducted by training models on various data configurations. First, models trained on the raw dataset (Version 1) were compared against those trained after the removal of pure backing plate data (Versions 4, 8, 11, and 14). The substantial improvement in recognition accuracy, for instance, from 32.53% in Version 1 to 61.4% in Version 4, demonstrates that eliminating redundant, non-discriminative samples is essential for effective feature learning.
Furthermore, an ablation study on feature completeness was performed by contrasting models trained exclusively on “only complete clips” (Versions 6, 9, 12, and 15) with those trained on samples containing “at least one complete clip” (Versions 7, 10, 13, and 16). The results indicate that the “at least one complete clip” strategy, adopted in the final model (Version 16), achieves the optimal balance. This configuration benefits from the simultaneous presence of both clips and backing plates, facilitating contrastive learning, while effectively excluding severely incomplete samples that could otherwise degrade model performance.
The final optimized dataset, comprising 31,000 samples with at least one complete clip, was randomly partitioned into training (80%), validation (10%), and test (10%) sets. The class distribution in the test set is approximately balanced with respect to the point counts for clips and backing plates, reflecting real-world application scenarios.
Moreover, to account for pose variation in real scanning scenarios, a data augmentation strategy based on random 3D rotation was applied. Specifically, random rotation matrices about the x-, y-, and z-axes were generated and used to synchronously transform both point coordinates and their associated normal vectors. This approach simulates different placement angles and viewing perspectives without increasing the volume of physical data, thereby reducing the risk of pose-specific overfitting and enhancing the model’s capacity to learn intrinsic geometric features.
Following the methodology described above, a specialized point cloud dataset comprising 132,000 samples was constructed, as illustrated in
Figure 4. This dataset provides a high-quality foundation for subsequent feature recognition and mesh generation tasks.
2.2. Plastic Part Feature Recognition Model Based on PointNet++
To address the complex local geometry and detailed features characteristic of plastic parts, PointNet++ is adopted as the feature recognition model in this study, as illustrated in
Figure 5 [
31]. In contrast to PointNet, the PointNet++ architecture progressively expands the receptive field through a hierarchical procedure of sampling, grouping, and feature extraction. This approach effectively integrates local geometric details with global semantic information, thereby enhancing its capability to capture intricate local features. A systematic model training framework was developed based on the PointNet++ architecture, with targeted improvements in three aspects: data preprocessing, training process control, and parameter optimization.
- (1)
Data Preprocessing
To eliminate variations in point cloud scale and spatial position, input point clouds were first normalized through two specific steps: coordinate centering and scale normalization. Coordinate centering was performed by computing the mean of each coordinate dimension and translating the geometric center of the point cloud to the origin, thereby removing positional offsets introduced by different scanning setups. Scale normalization was subsequently applied to fit the entire point cloud within a unit sphere based on the maximum distance from the origin. This process mitigates interference caused by dimensional differences, for instance, clip lengths varying between 5 and 15 mm, enabling the model to focus on geometric morphology rather than absolute size and thereby improving cross-sample generalization.
To satisfy the fixed-dimensional input requirement of the model, a farthest-point sampling strategy was employed to uniformly sample each point cloud frame to 8192 points. It was determined that 1024 points were insufficient to adequately characterize clip details given their size variation. In this method, an initial point was randomly selected, and subsequent points were iteratively chosen as the farthest from the existing set until the target number was reached. During sampling, the 3D coordinates, normal vector, and class label of each point were preserved, resulting in a sample matrix of size 8192 × 8, as shown in
Figure 6. This ensures a standardized input format with complete feature information.
- (2)
Training Process Control
During training, the number of input points per sample and the feature extraction levels were both set to 16. The input point clouds were processed through three Set Abstraction (SA) modules for hierarchical feature extraction:
In SA Layer 1, 2048 points were sampled with a neighborhood radius of 0.05. After being processed by an MLP with dimensions of 64 → 128 and max-pooling, a 256-dimensional feature was output, capturing local details such as clip edges and backing plate textures.
In SA Layer 2, 512 points were sampled with a radius of 0.1. Following transformation by an MLP (128 → 256), a 512-dimensional feature was generated, encoding medium-scale structural relationships.
In SA Layer 3, 128 points were sampled with a radius of 0.2. After processing through an MLP (256 → 512), a 1024-dimensional feature was obtained, representing global semantics.
Each SA operation followed the workflow of sampling, neighborhood query, feature transformation, and aggregation, progressively increasing the level of feature abstraction. Subsequently, Feature Propagation (FP) layers were employed to restore high-level features to the original point cloud resolution via trilinear interpolation using the three nearest neighbors. The 1024-dimensional global feature was first upsampled to 512 points and concatenated with the corresponding feature from SA Layer 2, forming a 1536-dimensional vector. This vector was further upsampled to 2048 points and concatenated with the SA Layer 1 feature (256-dimensional) and the original 6-dimensional geometric features (coordinates and normals), resulting in a final 1798-dimensional feature vector. Through the use of skip connection mechanisms, the model achieves deep fusion of multi-level features, preserving the semantic discriminative power of high-level features while integrating geometric details from low-level features. This provides a robust foundation for subsequent precise segmentation.
To further improve the accuracy of segmentation boundaries, negative log-likelihood loss was adopted as the optimization objective. This loss function assigns greater weight to misclassified points, particularly those in transition regions between clips and backing plates, thereby reinforcing the model’s learning on difficult samples and effectively enhancing boundary segmentation precision.
To ensure training stability and mitigate overfitting, a combination of performance monitoring and regularization techniques was applied. Every five epochs, classification accuracy, precision, recall, and F1-score were evaluated on both the training and validation sets, with loss and accuracy curves visualized, as shown in
Table 2. Dropout was introduced between the SA and MLP layers to reduce neuron co-adaptation, and an L2 regularization term was added to the optimizer to constrain parameter magnitudes.
- (3)
Parameter Optimization
The model was updated via backpropagation using the Adam optimizer. Gradients were computed layer by layer from the loss layer, encompassing MLP weights, convolution kernels, batch normalization parameters, and bias terms, thereby ensuring effective gradient propagation to the input. The hyperparameters of the Adam optimizer were set as
β1 = 0.9,
β2 = 0.999, with an initial learning rate of 1 × 10
−3. A piecewise decay schedule was applied, reducing the learning rate to 1 × 10
−4 at epoch 100 and further to 1 × 10
−5 at epoch 130, as shown in
Figure 7. This strategy enabled rapid convergence in the early stages, with loss decreasing by more than 60% within the first 50 epochs, while facilitating stable fine-tuning in later phases, thereby mitigating gradient vanishing or oscillation and promoting robust convergence to an optimal state. Upon completion of training, the network weights were saved in a .pth file.
Regarding the evaluation of feature recognition performance, a comprehensive assessment was conducted from two perspectives: segmentation accuracy and engineering usability.
Mean Intersection over Union (mIoU) reflects the overlap between predicted and ground-truth regions, with higher values indicating more precise segmentation.
Visual Recognition Accuracy was assessed by deploying the trained model within a CAE software environment. Unlabeled point clouds, containing only coordinates, normals, and face IDs, were input into the model, and the recognized clip regions were highlighted in the CAE interface based on point-to-face mapping. Engineers then visually compared these regions with the original geometry to compute a practical accuracy rate. This evaluation emphasizes the method’s effectiveness for deployment in real industrial scenarios. The visual recognition result is shown in
Figure 8.