Fused deposition modeling optimal process parameter prediction method based on residual neural network

Through the method based on residual neural network, the fused deposition molding process parameters are predicted in real time, which solves the problem of difficult quality control of fused deposition molded parts in the existing technology, achieves efficient quality control and stability of fused deposition molded parts, and improves FDM Efficiency and consistency of the printing process.

CN118683059AActive Publication Date: 2024-09-24XI AN JIAOTONG UNIV

Patent Information

Application Number
CN202410906791.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-24
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

The existing technology lacks effective online monitoring technology to predict fused deposition modeling process parameters in real time, resulting in difficulty in quality control of fused deposition molded parts and affecting their widespread use in key application fields.

Method used

Using a method based on residual neural network, the RGB image at the 3D printer nozzle is collected in real time through the image acquisition device, and then input into the trained residual neural network after preprocessing to predict the nozzle flow rate, nozzle lateral movement speed, nozzle temperature and The four printing parameters of the Z-axis offset use the shared backbone and attention modules to extract features and divide them into high, normal and low categories to achieve online control.

Benefits of technology

It significantly improves the quality control and efficiency of the FDM printing process, ensures the stability and consistency of product quality, and improves the adaptability and flexibility of the monitoring system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118683059A
    Figure CN118683059A
Patent Text Reader

Abstract

The invention discloses a fused deposition modeling optimal process parameter prediction method based on a residual neural network, and the method comprises the steps: connecting an image collection device with a 3D printer nozzle to collect fused deposition RGB images P1, P2... Pn at the 3D printer nozzle, and marking the coordinates of the tip of the current printer nozzle and printing parameters; the RGB images P1, P2... Pn are subjected to random rotation, zooming and random cutting for preprocessing, and preprocessed images N1, N2... Nn are obtained; the images N1, N2... Nn are processed based on a residual neural network, images are collected in real time in the printing process of the randomly downloaded model, and the images collected in real time are subjected to random rotation, zooming and random cutting for preprocessing; and inputting the preprocessed image into the trained residual neural network, and outputting prediction results of classification of the four printing parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of real-time monitoring of additive manufacturing, and in particular to a method for predicting optimal process parameters of fused deposition modeling based on a residual neural network. Background Art

[0002] Additive manufacturing technology, also known as 3D printing, is a new manufacturing technology that is different from traditional subtractive manufacturing and equal material manufacturing. It is a rapid prototyping method through layer-by-layer stacking. Among them, fused deposition modeling (FDM) is a branch of the field of additive manufacturing. It is another widely used 3D printing technology after photocuring rapid prototyping and laminated solid rapid prototyping. It has the advantages of low cost, simple operation, and rapid prototyping, and is widely used in various fields. At the same time, FDM is widely used in the production of desktop 3D printing equipment due to its low noise, non-toxicity, and pollution-free characteristics.

[0003] Despite the above advantages, people's concerns about the quality control of fused deposition modeling parts still limit the application of fused deposition modeling. The molded parts often hinder key applications in some fields due to their internal and surface defects. Therefore, it is of great significance to develop an online monitoring technology for real-time prediction of process parameters to control the quality of fused deposition modeling parts. However, there is little research on the combination of optimal process parameter prediction and image processing.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the invention and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art. Summary of the invention

[0005] In view of the problems existing in the prior art, the present invention proposes a method for predicting the optimal process parameters of fused deposition modeling based on residual neural network. The online monitoring technology controls the quality of fused deposition modeling parts and ensures the stability and consistency of product quality.

[0006] The present invention is achieved through the following technical solutions:

[0007] A method for predicting optimal process parameters of fused deposition modeling based on residual neural network includes:

[0008] S1: The image acquisition device is connected to the nozzle of the 3D printer to acquire the RGB images P1, P2...Pn of the melt deposition at the nozzle of the 3D printer and mark them with the current printer nozzle tip coordinates and printing parameters;

[0009] S2: preprocessing the RGB images P1, P2...Pn by random rotation, scaling and random cropping to obtain preprocessed images N1, N2...Nn;

[0010] S3: Process the images N1, N2...Nn based on a residual neural network, wherein:

[0011] S3.1: The residual neural network inputs the images N1, N2...Nn, and outputs classification predictions of the four printing parameters of the nozzle flow, nozzle lateral speed, nozzle temperature and Z-axis offset for the images N1, N2...Nn. The classification predictions are divided into three categories: high, normal and low. The four output heads of nozzle flow, nozzle lateral speed, nozzle temperature and Z-axis offset share feature extraction with the shared backbone. The input data passes through the backbone network, through multiple convolutional layers and pooling layers, and features are extracted layer by layer. All feature extraction operations in this process are shared among all output heads. The features extracted by the backbone network generate a high-dimensional feature representation in the fully connected layer of the last layer. The feature representation contains all the information of the input data. The shared features are then passed to each output head in parallel. The weight of the shared backbone is updated by the sum of the losses of each individual output head during the back propagation process of training.

[0012] S3.2: Input the complete material deposition image of the first layer in contact with the substrate during printing into the residual neural network to obtain the training result,

[0013] S3.3: Input all the image acquisition data during the material printing process into the residual neural network to obtain the training results.

[0014] S3.4: Balance each of the 81 parameter classification combinations contained in the data set to the same number, obtain a new data set and input it into the residual neural network to obtain the training result;

[0015] S3.5: The training process is divided into three stages: In the first stage, the network is trained on a sub-dataset that only contains the first layer of printed images and has a fill rate of 100%, so that the characteristics of each parameter are more obvious and easy to learn; In the second stage, the best performing model in the first stage is retrained on the complete dataset containing all 3D geometric images using the transfer learning method, allowing the network to apply the features learned from the simple dataset to the more complex complete dataset. This process is repeated three times; In the third stage, transfer learning is used again, but only the fully connected layer of each output head is retrained. A balanced sub-dataset is used, which contains an equal number of samples of each possible 81 parameter combinations. The weights of the feature extraction network backbone are frozen to keep the learned common features. When the verification loss does not drop significantly in several epochs, the model is considered to have converged;

[0016] S4: acquiring images in real time during the printing process to be optimized, and preprocessing the images acquired in real time by random rotation, scaling, and random cropping;

[0017] S5: The preprocessed image is input into the trained residual neural network, and the prediction results of four types of printing parameter classification are output.

[0018] In the method for predicting optimal process parameters of fused deposition modeling based on residual neural network, in step S2, preprocessing the RGB images P1, P2...Pn by random rotation, scaling and random cropping includes:

[0019] S2.1: The acquired RGB images P1, P2…Pn are randomly rotated by 10° in any direction, and then a small perspective transformation with a probability of 0.1 is applied. The image is then automatically cropped to a square area of ​​320×320 pixels focused on the nozzle tip using the nozzle tip coordinates saved during data acquisition.

[0020] S2.2: Cropping a random square portion of the 320×320 image with an area ratio between 0.9–1.0 and resizing it to 224×224 pixels as the input size of the neural network, then applying a horizontal flip with a probability of 0.5 to the image, and then applying ±10% color jitter to the brightness, contrast, hue, and saturation of the image;

[0021] S2.3: Normalize the channels in the transformed image using the pixel mean and standard deviation of each channel across all images in the dataset.

[0022] In the method for predicting optimal process parameters of fused deposition modeling based on residual neural network, the printing parameters include nozzle movement speed, z-axis height, nozzle flow rate, and nozzle temperature.

[0023] In the method for predicting optimal process parameters of fused deposition modeling based on residual neural network, the shared network backbone includes 3 attention modules and 6 residual modules.

[0024] In the optimal process parameter prediction method for fused deposition modeling based on residual neural network, the attention module consists of two branches, mask and trunk. The trunk branch is constructed by residual blocks to perform feature processing of the network, and the mask branch downsamples and then upsamples to learn the attention mask for the output features of the weighted module.

[0025] Compared with the prior art, the present invention has the following advantages:

[0026] The present invention collects the material deposition image at the nozzle in real time during the printing process and uploads it online to a trained deep network model. The model outputs real-time classification predictions of four printing parameters, provides data support for online regulation of printing process parameters, improves the adaptability and flexibility of the monitoring system, and significantly improves the quality control and efficiency of the FDM printing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] By reading the detailed description of the preferred specific embodiments below, various other advantages and benefits of the present invention will become clear to those of ordinary skill in the art. The drawings in the specification are only for the purpose of illustrating the preferred embodiments and are not considered to be limitations of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative work. Moreover, the same reference numerals are used to represent the same components throughout the drawings.

[0028] In the attached picture:

[0029] Figure 1 It is a schematic flow chart of a method for predicting optimal process parameters of fused deposition modeling based on a residual neural network provided by the present invention;

[0030] Figure 2 is a schematic diagram of a neural network provided by an embodiment of the present invention;

[0031] Figure 3 Schematic diagram of residual block structure;

[0032] Figure 4 The training process of a multi-head convolutional neural network.

[0033] The present invention is further explained below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION

[0034] The specific embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the specific embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0035] It should be noted that certain words are used in the specification and claims to refer to specific components. Those skilled in the art should understand that technicians may use different nouns to refer to the same component. This specification and claims do not use the difference in nouns as a way to distinguish components, but use the difference in the functions of the components as the criterion for distinction. As mentioned throughout the specification and claims, "including" or "comprising" is an open term, so it should be interpreted as "including but not limited to". The subsequent description of the specification is a preferred embodiment of the present invention, but the description is based on the general principles of the specification and is not intended to limit the scope of the present invention. The scope of protection of the present invention shall be determined by the attached claims.

[0036] To facilitate understanding of the embodiments of the present invention, further explanation will be given below by taking specific embodiments as examples in conjunction with the accompanying drawings, and each of the accompanying drawings does not constitute a limitation on the embodiments of the present invention.

[0037] like Figures 1 to 4 As shown in FIG. 1 , the optimal process parameter prediction method of fused deposition modeling based on residual neural network includes the following steps:

[0038] S1: The image acquisition device is connected to the nozzle of the 3D printer to acquire the RGB images P1, P2...Pn of the melt deposition at the nozzle of the 3D printer and mark them with the current printer nozzle tip coordinates and printing parameters;

[0039] S2: preprocessing the RGB images P1, P2...Pn by random rotation, scaling and random cropping to obtain preprocessed images N1, N2...Nn;

[0040] S3: Process the images N1, N2...Nn based on a residual neural network, wherein:

[0041] S3.1: The residual neural network inputs the images N1, N2...Nn, and outputs classification predictions for the four printing parameters (nozzle flow, nozzle lateral speed, nozzle temperature and Z-axis offset) of the images N1, N2...Nn. The classification predictions are divided into three categories: high, normal and low. The four output heads (nozzle flow, nozzle lateral speed, nozzle temperature and Z-axis offset) share feature extraction with the shared backbone. The input data first passes through the backbone network, and then passes through multiple convolutional layers and pooling layers to extract and abstract high-level features layer by layer. All feature extraction operations in this process are shared among all output heads. The features extracted by the backbone network generate a high-dimensional feature representation in the last layer (fully connected layer). This representation contains all the important information of the input data. These shared features are then passed to each output head in parallel. The weights of the shared backbone are updated by the sum of the losses of each individual output head during the back-propagation process of training.

[0042] S3.2: Input the complete material deposition image of the first layer in contact with the substrate during printing into the residual neural network to obtain the training result,

[0043] S3.3: Input all the image acquisition data during the material printing process into the residual neural network to obtain the training results.

[0044] S3.4: Balance each of the 81 parameter classification combinations contained in the data set to the same number, obtain a new data set and input it into the residual neural network to obtain the training result;

[0045] S3.5: The training process is divided into three main stages: In the first stage, the network is trained on a sub-dataset containing only the first layer of printed images and a fill rate of 100%, making the characteristics of each parameter more obvious and easy to learn; In the second stage, the best performing model in the first stage is retrained on the complete dataset containing all 3D geometric images using the transfer learning method, allowing the network to use the features learned from the simple dataset and apply these features to the more complex complete dataset. This process is repeated three times; In the third stage, transfer learning is used again. However, only the fully connected layer of each output head is retrained, using a balanced sub-dataset containing an equal number of samples for each possible 81 parameter combinations (four parameters, each of which can be low, medium or high). The weights of the feature extraction network backbone are frozen to keep the learned common features.

[0046] S4: acquiring images in real time during the printing process to be optimized, and preprocessing the images acquired in real time by random rotation, scaling, and random cropping;

[0047] S5: The preprocessed image is input into the trained residual neural network, and the prediction results of four types of printing parameter classification are output.

[0048] In a preferred embodiment of the method for predicting optimal process parameters of fused deposition modeling based on residual neural network, in step S2, preprocessing the RGB images P1, P2...Pn by random rotation, scaling and random cropping includes:

[0049] S2.1: The acquired RGB images P1, P2…Pn are randomly rotated by 10° in any direction, and then a small perspective transformation with a probability of 0.1 is applied. The image is then automatically cropped to a square area of ​​320×320 pixels focused on the nozzle tip using the nozzle tip coordinates saved during data acquisition.

[0050] S2.2: Cropping a random square portion of the 320×320 image with an area ratio between 0.9–1.0 and resizing it to 224×224 pixels as the input size of the neural network, then applying a horizontal flip with a probability of 0.5 to the image, and then applying ±10% color jitter to the brightness, contrast, hue, and saturation of the image;

[0051] S2.3: Normalize the channels in the transformed image using the pixel mean and standard deviation of each channel across all images in the dataset.

[0052] In a preferred implementation of the method for predicting optimal process parameters of fused deposition modeling based on residual neural network, the printing parameters include nozzle flow rate, nozzle lateral movement speed, nozzle temperature and Z-axis offset.

[0053] In a preferred implementation of the method for predicting optimal process parameters of fused deposition modeling based on a residual neural network, the shared network backbone includes 3 attention modules and 6 residual modules.

[0054] In a preferred embodiment of the method for predicting the optimal process parameters of fused deposition modeling based on a residual neural network, the attention module consists of two branches, a mask and a trunk. The trunk branch is constructed by a residual block to perform feature processing of the network, and the mask branch downsamples and then upsamples to learn an attention mask for the output features of the weighted module.

[0055] In one embodiment, the printer nozzle continuously performs printing, and a camera fixed to the printer nozzle takes a material deposition image at the nozzle every 0.5 seconds. A sensor arranged in the printer simultaneously collects the coordinates of the printer nozzle and four printing parameters (nozzle movement speed, z-axis height, nozzle flow rate, and nozzle temperature) during shooting, and stores these parameters as image tags.

[0056] The residual neural network for detecting the forming process consists of a shared backbone network and four output heads, which correspond to four process parameters, namely material extrusion rate, nozzle movement speed, nozzle temperature, and Z-axis offset distance. The schematic diagram of the network structure is shown in Figure 2 shown.

[0057] The shared backbone network used to extract image features consists of six residual blocks and three attention models. Each residual block includes a convolutional layer, batch normalization, activation function activation, and a pooling layer. The schematic diagram of the residual block structure is shown in Figure 3 As shown in the figure, the ReLu function is used to activate the output of the convolutional layer after batch normalization, and the activation value is sent to the next layer.

[0058] After extracting the feature information of the forming process image using a shared backbone network consisting of six serially connected residual blocks, its output result is flattened into a column vector. Then, a fully connected layer is used to map the image features to the four process parameter states, which means that the four output heads use the feature information extracted by the shared backbone together. During the training process, the weights of the shared backbone network are updated using the total loss of the four output heads, which means that the shared backbone network can learn the interactive relationship between process parameters and the association between each process parameter and the forming state image, so that it can propose multiple process parameter adjustment methods for a poor forming state.

[0059] In order to obtain an effective and stable multi-head convolutional network to predict accurate process parameter states, the training process of the multi-head convolutional network is divided into three parts, such as Figure 4As shown. First, the network training is carried out using images with obvious state characteristics of process parameters in the training set. Due to the obvious state characteristics, the multi-head convolutional neural network can effectively and quickly capture image information and detect important features; then, the pre-trained multi-head convolutional neural network model is fine-tuned on the complete training set to improve its state recognition ability for images with non-obvious features; finally, considering the imbalance of the training set samples, that is, affected by the forming characteristics, too low Z-axis offset will cause the nozzle and the hot bed to collide and cause forming failure, so the number of samples with too high Z-axis offset is much greater than that with too low offset. In order to alleviate the interference of sample imbalance on the prediction performance of the multi-head convolutional neural network, the transfer learning method is used in the final stage of the training process to freeze the network weights of the shared backbone, and use the samples with balanced distribution to fine-tune the weights of the fully connected layer to obtain good process parameter state prediction results. Finally, the accuracy of the training model is tested on the test set. The classification accuracy of each parameter on the test set is: flow rate 87.1%, lateral velocity 86.4%, Z offset 85.5%, hot end temperature 78.3%.

[0060] Although the embodiments of the present invention are described above in conjunction with the accompanying drawings, the present invention is not limited to the above specific embodiments and application fields, and the above specific embodiments are only illustrative and instructive, rather than restrictive. A person of ordinary skill in the art can also make many forms under the guidance of this specification and without departing from the scope of protection of the claims of the present invention, all of which belong to the protection of the present invention.

Claims

1. A method for predicting optimal process parameters of fused deposition modeling based on residual neural network, characterized in that: The steps include: S1: The image acquisition device is connected to the nozzle of the 3D printer to acquire the RGB images P1, P2...Pn of the melt deposition at the nozzle of the 3D printer and mark them with the current printer nozzle tip coordinates and printing parameters; S2: preprocessing the RGB images P1, P2...Pn by random rotation, scaling and random cropping to obtain preprocessed images N1, N2...Nn; S3: Process the images N1, N2...Nn based on a residual neural network, wherein: S3.1: The residual neural network inputs the images N1, N2...Nn, and outputs classification predictions of the four printing parameters of the nozzle flow, nozzle lateral speed, nozzle temperature and Z-axis offset for the images N1, N2...Nn. The classification predictions are divided into three categories: high, normal and low. The four output heads of nozzle flow, nozzle lateral speed, nozzle temperature and Z-axis offset share feature extraction with the shared backbone. The input data passes through the backbone network, through multiple convolutional layers and pooling layers, and features are extracted layer by layer. All feature extraction operations in this process are shared among all output heads. The features extracted by the backbone network generate a high-dimensional feature representation in the fully connected layer of the last layer. The feature representation contains all the information of the input data. The shared features are then passed to each output head in parallel. The weight of the shared backbone is updated by the sum of the losses of each individual output head during the back propagation process of training. S3.2: Input the complete material deposition image of the first layer in contact with the substrate during printing into the residual neural network to obtain the training result, S3.3: Input all the image acquisition data during the material printing process into the residual neural network to obtain the training results. S3.4: Balance each of the 81 parameter classification combinations contained in the data set to the same number, obtain a new data set and input it into the residual neural network to obtain the training result; S3.5: The training process is divided into three stages: In the first stage, the network is trained on a sub-dataset that only contains the first layer of printed images and has a fill rate of 100%, so that the characteristics of each parameter are more obvious and easy to learn; In the second stage, the best performing model in the first stage is retrained on the complete dataset containing all 3D geometric images using the transfer learning method, allowing the network to apply the features learned from the simple dataset to the more complex complete dataset. This process is repeated three times; In the third stage, transfer learning is used again, but only the fully connected layer of each output head is retrained. A balanced sub-dataset is used, which contains an equal number of samples of each possible 81 parameter combinations. The weights of the feature extraction network backbone are frozen to keep the learned common features. When the verification loss does not drop significantly in several epochs, the model is considered to have converged; S4: acquiring images in real time during the printing process to be optimized, and preprocessing the images acquired in real time by random rotation, scaling, and random cropping; S5: The preprocessed image is input into the trained residual neural network, and the prediction results of four types of printing parameter classification are output.

2. The method for predicting optimal process parameters of fused deposition modeling based on residual neural network according to claim 1 is characterized in that: Preferably, in step S2, preprocessing the RGB images P1, P2...Pn by random rotation, scaling and random cropping includes: S2.1: The acquired RGB images P1, P2…Pn are randomly rotated by 10° in any direction, and then a small perspective transformation with a probability of 0.1 is applied. The image is then automatically cropped to a square area of ​​320×320 pixels focused on the nozzle tip using the nozzle tip coordinates saved during data acquisition. S2.2: Cropping a random square portion of the 320×320 image with an area ratio between 0.9–1.0 and resizing it to 224×224 pixels as the input size of the neural network, then applying a horizontal flip with a probability of 0.5 to the image, and then applying ±10% color jitter to the brightness, contrast, hue, and saturation of the image; S2.3: Normalize the channels in the transformed image using the pixel mean and standard deviation of each channel across all images in the dataset.

3. The method for predicting optimal process parameters of fused deposition modeling based on residual neural network according to claim 1, characterized in that: The printing parameters include nozzle moving speed, z-axis height, nozzle flow rate, and nozzle temperature.

4. The method for predicting optimal process parameters of fused deposition modeling based on residual neural network according to claim 1, characterized in that: The shared network backbone includes 3 attention modules and 6 residual modules.

5. The method for predicting optimal process parameters of fused deposition modeling based on residual neural network according to claim 4, characterized in that: The attention module consists of two branches, a mask and a trunk. The trunk branch is constructed by residual blocks to perform feature processing of the network, and the mask branch downsamples and then upsamples to learn an attention mask for the output features of the weighted module.

Citation Information

Patent Citations

  • Numerical control device, additive manufacturing device, and control method for additive manufacturing device

    CN114599475A

  • Fair and controllable image generation method based on structured network priori knowledge

    CN116109719A

  • Laser additive manufacturing defect monitoring method based on spatio-temporal information fusion

    CN117593255A

Cited By

  • Continuous fiber composite 3D printing process parameter optimization method and system

    CN119773238A

  • A continuous fiber composite material 3D printing process parameter optimization method and system

    CN119773238B