Fused deposition modeling process parameter real-time regulation and control system and method
Through the combination of multi-head convolutional network model and parameter state judger, real-time control of fused deposition modeling process parameters is achieved, which solves the problem of quality defects in the process, improves the accuracy and strength of the product, and is suitable for the production of multiple types of printers. need.
Patent Information
- Application Number
- CN202410906673.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-08
AI Technical Summary
Quality defects caused by various uncertain factors during the fused deposition modeling process, especially low precision and poor strength of small-sized parts, hinder the large-scale application of the process. Existing control methods are difficult to effectively solve the problem of multiple models of printers producing different structures. Process parameter control requirements for parts.
A multi-head convolutional network model is used to predict the process parameter state based on the fused deposition area image, and real-time process parameter adjustment is realized through the parameter state judger and proportional corrector, including dynamic adjustment of material extrusion rate, nozzle moving speed and Z-axis offset distance. .
Real-time correction of various process parameters of different printing systems and structural parts is achieved, reducing the problems of unfusion and low geometric accuracy, ensuring the quality of fused deposition molding products, reducing deployment costs, and avoiding manual intervention.
Smart Images

Figure CN118650877A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of additive manufacturing, and in particular to a real-time control system and method for fused deposition modeling process parameters. Background Art
[0002] Different from cutting processing characterized by subtractive forming, or forging and casting characterized by equal material forming, additive manufacturing technology characterized by accumulation forming has the characteristics of mold-free rapid free forming, full digitalization, high flexibility, and arbitrary multi-material composite manufacturing. It provides convenience for the manufacture of complex curved structure parts and has been widely used in the fields of automobiles, aerospace, industrial design, etc., and has been praised by the media as "one of the twelve major technologies for the future economy."
[0003] According to the different process characteristics, additive manufacturing technology can be divided into photo-stereolithography, laser selective melting, laser selective sintering, fused deposition modeling and other processes. Fused deposition modeling technology is an additive manufacturing process that extrude materials through a nozzle or orifice. It has the advantages of low cost and almost no post-processing. However, the fused deposition modeling process is affected by various uncertain factors, and is prone to quality defects such as low precision and poor strength of small-sized parts, which hinders the large-scale application of the fused deposition modeling process. How to regulate the process parameters of the molding process to ensure the quality of the molded parts is a difficult problem that the industry needs to solve urgently.
[0004] Most existing control methods are offline control, focusing on suppressing a certain process defect when a specific model of printer manufactures a single part. Such methods are difficult to solve the need for process parameter control when multiple models of printers produce parts with different structures in actual production, and cannot avoid the generation of multiple types of process defects.
[0005] 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
[0006] In view of the problems existing in the prior art, the present invention proposes a real-time control system and method for fused deposition molding process parameters. Based on a multi-head convolutional network model, the system takes the fused deposition area image as input, outputs a process parameter state prediction statement, obtains the optimal process parameter state prediction statement through a parameter state judge, and adjusts the fused deposition molding process parameters in real time through proportional control based on this statement and its occurrence frequency.
[0007] The present invention is achieved through the following technical solutions:
[0008] A real-time control system for fused deposition modeling process parameters includes:
[0009] A printer for fused deposition modeling,
[0010] a camera, which is directed toward the printer to capture an image of the fused deposition area,
[0011] A local server is connected to the camera to crop and scale the molten deposition area image and normalize the RGB channels to obtain an input image.
[0012] A multi-head convolutional network model is implanted in the local server, and the multi-head convolutional network model predicts the state of the printer process parameters according to the input image and outputs a process parameter state prediction statement.
[0013] A parameter state judger, which is connected to the multi-head convolutional network model to pass the process parameter state prediction statement to the process parameter state prediction sequence in the parameter state judger and find the best process parameter state prediction statement,
[0014] A proportional corrector is connected to the parameter state judger and the local server, and the optimal process parameter state prediction statement and the optimal process parameter state predicted frequency p are input to the proportional corrector to output the process parameter adjustment amount and send it to the local server.
[0015] The driver unit is connected to the local server and the printer. The local server generates an adjustment command based on the process parameter adjustment amount and sends it to the driver unit. The driver unit executes the adjustment command to update the printer process parameters.
[0016] In the real-time control system for fused deposition modeling process parameters, when the updating of the printer process parameters is completed, the driver unit sends a completion instruction to the local server.
[0017] In the real-time control system for fused deposition molding process parameters, the printer process parameters include material extrusion rate, nozzle movement speed, nozzle temperature and Z-axis offset distance, the parameter state prediction sequence includes material extrusion rate prediction sequence, nozzle movement speed prediction sequence, nozzle temperature prediction sequence, and Z-axis offset distance prediction sequence, and the process parameter adjustment amount includes material extrusion rate adjustment amount, nozzle movement speed adjustment amount, nozzle temperature adjustment amount, and Z-axis offset distance adjustment amount.
[0018] In the real-time control system for fused deposition modeling process parameters, the proportional corrector includes a linear mapping unit and a proportional amplification unit.
[0019] In the real-time control system for fused deposition modeling process parameters, the driver unit is a driver built into the printer.
[0020] The method for real-time control of fused deposition modeling process parameters of the real-time control system of fused deposition modeling process parameters comprises the following steps:
[0021] In the first step, the camera takes an image of the molten deposition area and sends it to a local server;
[0022] In the second step, the local server crops and scales the image of the molten deposition area with the extrusion nozzle as the center of the image, and normalizes the RGB channels as the input image of the multi-head convolutional network model;
[0023] In the third step, the multi-head convolutional network model predicts the printer process parameter state according to the input image and outputs a process parameter state prediction statement, and transmits the prediction statement to the process parameter state prediction sequence in the parameter state judger;
[0024] The multi-head convolutional network model is composed of a Resnet50 network and a fully connected network. The multi-head convolutional network model inputs the cropped original image. The network output layer includes 12 neurons. The neurons in the network output layer are divided into four equal parts, each corresponding to a different process parameter. The three neurons contained in each part correspond to the three states of the process parameter, namely "high", "low" and "good".
[0025] Among them, the process of the multi-head convolutional network model predicting the process parameter state and outputting the process parameter state prediction statement is as follows: the multi-head convolutional network receives the cropped original image, first uses the Resnet50 network for image processing, extracts the key features of the image that pay attention to the information associated with the process parameter state in the image, and the output of the Resnet50 network is flattened as the fully connected network input layer. The image information related to the process parameters extracted by the Resnet50 network will be linked to the printer process parameter state through the fully connected network to achieve the mapping from image information to the printer process parameter state, that is, output the process parameter state prediction statement.
[0026] In the fourth step, when the process parameter state prediction sequence is completely filled, the parameter state judger searches for the best process parameter state prediction statement, and sends the best process parameter state prediction statement and the best process parameter state prediction statement occurrence frequency p to the proportion corrector;
[0027] The process of the parameter state judgement device searching for the best process parameter state prediction statement is as follows: when a process parameter state prediction sequence is filled, the parameter state judgement device first calculates the frequency of occurrence of each process parameter state prediction statement in the state prediction sequence, that is, the percentage of the three state prediction statements of "high", "low" and "good" in the process parameter state prediction sequence, and the parameter state judgement device compares the process parameter state prediction statement with the highest frequency in the process parameter state prediction sequence with the threshold value θ of the process parameter state prediction sequence. When the frequency of the process parameter state prediction statement with the highest frequency is greater than the sequence threshold value, the parameter state judgement device determines that the prediction statement is the best process parameter state prediction statement of the process parameter under the current state, otherwise, the best process parameter state prediction statement is determined to be "good".
[0028] In the fifth step, the proportional corrector determines whether to adjust the process parameters according to the optimal process parameter state prediction statement. If it is determined to adjust, the relevant process parameter adjustment amount is output according to the percentage of the optimal process parameter prediction statement occupying the parameter state prediction sequence. The adjustment process consists of two stages: linear mapping and proportional amplification.
[0029] In the sixth step, after the local server receives the process parameter adjustment value output by the proportional corrector, it sends an adjustment command to the driver unit. The driver unit executes the adjustment command and updates the printer process parameters. When the update is completed, the driver unit sends a completion instruction to the local server.
[0030] In the method for real-time control of fused deposition modeling process parameters, the camera shooting frequency is 2 Hz.
[0031] In the method for real-time control of fused deposition modeling process parameters, during the image cutting, scaling and normalization process, the image is first cropped to 320×320ppi and then scaled to 224×224ppi, and the method used for normalization is mean variance normalization.
[0032] In the real-time control method of fused deposition modeling process parameters, the linear mapping process operation is as follows: linearly map the percentage of the optimal process parameter prediction statement in the interval [θ, 1] occupying the parameter state prediction sequence to the interval [I, 1]. The lower limits of the two sets of mapping intervals are both positive values. θ and I perform single process parameter state prediction and proportional control by cutting off the connection between other output heads in the multi-head neural network and the proportional controller.
[0033] In the real-time control method of fused deposition modeling process parameters, the proportional amplification operation is: multiplying the mapping value on the [I, 1] interval by the amplification coefficient ±K to obtain the adjustment amount of the fused deposition modeling process parameters.
[0034] Compared with the prior art, the present invention has the following advantages:
[0035] The present invention can realize real-time correction of various process parameters of different printing systems and different structural parts in the molding process, reduce problems such as unfusion and low geometric accuracy of small-sized parts, and ensure the quality of fused deposition molding process products. At the same time, the deployment of cameras is low-cost and the control process does not require human intervention, which extends the universal applicability of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] 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.
[0037] In the attached picture:
[0038] Figure 1 A flow chart of the method for real-time control of fused deposition modeling process parameters provided by the present invention;
[0039] Figure 2 is a schematic diagram of a printer in this embodiment;
[0040] Figure 3 is a schematic diagram of image adjustment in this embodiment;
[0041] Figure 4 Schematic diagram of a multi-head convolutional network model in this embodiment;
[0042] Figure 5 is a schematic diagram of a parameter state determiner in this embodiment;
[0043] Figure 6 is a schematic diagram of the ratio corrector in this real-time example;
[0044] Figure 7 Schematic diagram of residual block structure;
[0045] Figure 8 The training process of a multi-head convolutional neural network.
[0046] The present invention is further explained below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION
[0047] 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.
[0048] 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.
[0049] 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.
[0050] like Figures 1 to 8 As shown, the real-time control system of fused deposition modeling process parameters includes:
[0051] A printer for fused deposition modeling,
[0052] a camera, which is directed toward the printer to capture an image of the fused deposition area,
[0053] A local server is connected to the camera to crop and scale the molten deposition area image and normalize the RGB channels to obtain an input image.
[0054] A multi-head convolutional network model is implanted in the local server, and the multi-head convolutional network model predicts the state of the printer process parameters according to the input image and outputs a prediction statement.
[0055] A parameter state judger, which is connected to the multi-head convolutional network model to pass the process parameter state prediction statement to the process parameter state prediction sequence in the parameter state judger and find the best process parameter state prediction statement,
[0056] A proportional corrector is connected to the parameter state judger and the local server, and the optimal process parameter state prediction statement and the optimal process parameter prediction statement occurrence frequency p are input to the proportional corrector to output the process parameter adjustment amount and send it to the local server.
[0057] The driver unit is connected to the local server and the printer. The local server generates an adjustment command based on the process parameter adjustment amount and sends it to the driver unit. The driver unit executes the adjustment command to update the printer process parameters.
[0058] In a preferred embodiment of the real-time control system for fused deposition modeling process parameters, when the updating of the printer process parameters is completed, the driver unit sends a completion instruction to the local server.
[0059] In a preferred embodiment of the real-time control system for fused deposition molding process parameters, the printer process parameters include material extrusion rate, nozzle movement speed, nozzle temperature and Z-axis offset distance, the parameter state prediction sequence includes material extrusion rate prediction sequence, nozzle movement speed prediction sequence, nozzle temperature prediction sequence, and Z-axis offset distance prediction sequence, and the process parameter adjustment amount includes material extrusion rate adjustment amount, nozzle movement speed adjustment amount, nozzle temperature adjustment amount, and Z-axis offset distance adjustment amount.
[0060] In a preferred embodiment of the real-time control system for fused deposition modeling process parameters, the proportional corrector includes a linear mapping unit and a proportional amplification unit.
[0061] In a preferred embodiment of the real-time control system for fused deposition modeling process parameters, the driver unit is a built-in driver of the printer.
[0062] The method for real-time control of fused deposition modeling process parameters of the real-time control system of fused deposition modeling process parameters comprises the following steps:
[0063] In the first step, the camera takes an image of the molten deposition area and sends it to a local server;
[0064] In the second step, the local server crops and scales the image of the molten deposition area with the extrusion nozzle as the center of the image, and normalizes the RGB channels as the input image of the multi-head convolutional network model;
[0065] In the third step, the multi-head convolutional network model predicts the printer process parameter state according to the input image and outputs a process parameter state prediction statement, and transmits the prediction statement to the process parameter state prediction sequence in the parameter state judger;
[0066] The multi-head convolutional network model is composed of a Resnet50 network and a fully connected network. The multi-head convolutional network model inputs the cropped original image. The network output layer includes 12 neurons. The neurons in the network output layer are divided into four equal parts, each corresponding to a different process parameter. The three neurons contained in each part correspond to the three states of the process parameter, namely "high", "low" and "good".
[0067] Among them, the process of the multi-head convolutional network model predicting the process parameter state and outputting the process parameter state prediction statement is as follows: the multi-head convolutional network receives the cropped original image, first uses the Resnet50 network for image processing, extracts the key image features that note the information associated with the process parameter state in the image, and the output of the Resnet50 network is flattened as the fully connected network input layer. The image information related to the process parameters extracted by the Resnet50 network will be linked to the printer process parameter state through the fully connected network to achieve the mapping from image information to the printer process parameter state, that is, output the process parameter state prediction statement. The multi-head convolutional network output data type is a binary code of 100010001100. When the multi-head convolutional network outputs the process parameter state prediction statement, the output code is first divided into four equal parts, and each sub-code corresponds to a process parameter state prediction statement. For example, "100" corresponds to the prediction statement "high", "010" corresponds to the prediction statement "low", and "001" corresponds to the prediction statement "good". Therefore, when the multi-head convolutional network outputs the code 100010001100, the corresponding process parameter state prediction statement is: the material extrusion rate is high, the nozzle movement speed is low, the nozzle temperature is good, and the Z-axis offset distance is high.
[0068] In the fourth step, when the process parameter state prediction sequence is completely filled, the parameter state judger searches for the best process parameter state prediction statement, and sends the best process parameter state prediction statement and the best process parameter state prediction statement occurrence frequency p to the proportion corrector;
[0069] The process of the parameter state judgement device searching for the best process parameter state prediction statement is as follows: when a process parameter state prediction sequence is filled, the parameter state judgement device first calculates the frequency of occurrence of each process parameter state prediction statement in the state prediction sequence, that is, the percentage of the three state prediction statements of "high", "low" and "good" in the process parameter state prediction sequence, and the parameter state judgement device compares the process parameter state prediction statement with the highest frequency in the process parameter state prediction sequence with the threshold value θ of the process parameter state prediction sequence. When the frequency of the process parameter state prediction statement with the highest frequency is greater than the sequence threshold value, the parameter state judgement device determines that the prediction statement is the best process parameter state prediction statement of the process parameter under the current state, otherwise, the best process parameter state prediction statement is determined to be "good".
[0070] In the fifth step, the proportional corrector determines whether to adjust the process parameters according to the optimal process parameter state prediction statement. If it is determined to adjust, the relevant process parameter adjustment amount is output according to the percentage of the optimal process parameter prediction statement occupying the parameter state prediction sequence. The adjustment process consists of two stages: linear mapping and proportional amplification.
[0071] In the sixth step, after the local server receives the process parameter adjustment value output by the proportional corrector, it sends an adjustment command to the driver unit. The driver unit executes the adjustment command and updates the printer process parameters. When the update is completed, the driver unit sends a completion instruction to the local server.
[0072] In a preferred implementation of the method for real-time control of fused deposition modeling process parameters, the camera shooting frequency is 2 Hz.
[0073] In a preferred embodiment of the method for real-time control of fused deposition modeling process parameters, during the image cutting, scaling and normalization process, the image is first cropped to 320×320ppi and then scaled to 224×224ppi, and the normalization method used is mean variance normalization.
[0074] In a preferred embodiment of the method for real-time control of fused deposition modeling process parameters, the linear mapping process is operated as follows: the percentage of the best process parameter prediction statement in the interval [θ, 1] occupying the parameter state prediction sequence is linearly mapped to the interval [I, 1]. The lower limits of the two mapping intervals are both positive values. In the process of controlling a single process parameter, θ and I are obtained by cutting off the connection between other output heads in the multi-head neural network and the proportional controller, and performing single process parameter state prediction and proportional control, and weighing the molding effect and the control effect. The reason for considering the molding effect is that there is randomness in the printing process that does not affect the molding effect. When the sequence threshold θ is small, the parameter state judger is sensitive to such randomness and may frequently output wrong statements to interfere with the normal printing process. When the sequence threshold θ is large, the parameter state judger will tend to think that the process parameter state is good and does not need to be adjusted. This preference will lead to molding failure. The parameter I is selected with full consideration of the response effect of the control process. When the proportional coefficient K is determined, a smaller process parameter adjustment range is obtained for a too large I value, and a larger process parameter adjustment range is obtained for a too small I value. When the frequency of the optimal process parameter state prediction statement changes significantly, an excessively large I value will result in a small adjustment of the process parameters, weak control effect, and difficulty in meeting timely response requirements; an excessively small I value will result in a large adjustment of the process parameters, causing a large overshoot in the response process, and even causing control system oscillation, leading to molding failure.
[0075] In a preferred embodiment of the method for real-time control of fused deposition modeling process parameters, the proportional amplification operation is: multiplying the mapping value on the [I, 1] interval by the amplification coefficient ±K to obtain the adjustment amount of the fused deposition modeling process parameters.
[0076] In one embodiment, Figure 1As shown, a real-time control system for fused deposition modeling process parameters includes a printer, a camera, a local server, a multi-head convolutional network model, a parameter state judger, a ratio corrector and a driver unit. The printer, such as Figure 2 As shown in the figure, it is the controlled object in this embodiment. The targets to be adjusted of the controlled object are four process parameters: material extrusion rate, nozzle moving speed, nozzle temperature and Z-axis offset distance; the camera is connected to the above-mentioned printer to obtain the image of the printer's fused deposition molding area, and the shooting frequency is 2Hz; the local server is connected to the above-mentioned camera, and the task includes receiving the image taken by the camera, and performing shearing, scaling, and RGB channel normalization processing on the image to generate a multi-head convolutional network model input, such as Figure 3 In addition, the local server is also responsible for converting the output of the scale corrector into adjustment instructions and sending them to the driver unit; in the above image cutting, scaling, and normalization process, the image is first cropped to 320×320ppi, and then scaled to 224×224ppi, and the normalization method used is mean variance normalization.
[0077] The multi-head convolutional network model is implanted in the above-mentioned local server, such as Figure 4 As shown, the multi-head convolutional network model input is a cut and scaled image of the fused deposition modeling area centered on the nozzle, and its function is to predict the current process parameter state according to the model input graph and output the process parameter state prediction statement; the parameter state judger, such as Figure 5 As shown, the parameter state judger is connected to the above-mentioned multi-head convolutional network model, the input is the process parameter state prediction statement, and the output is the optimal process parameter prediction statement and the occurrence frequency p of the optimal process parameter prediction statement; the proportion corrector, such as Figure 6 As shown, it is connected to the above-mentioned state parameter judger, the input is the optimal process parameter state prediction statement and the frequency p of the optimal process parameter prediction statement, and the output is the process parameter adjustment amount. The conversion process between the two includes linear mapping and proportional amplification; the driver unit is connected to the local server, and its function is to execute the adjustment instructions issued by the local server and adjust the fused deposition molding process parameters in real time.
[0078] The parameter state judger includes a process parameter state prediction sequence. The number of process parameter state prediction sequences is the same as the number of process parameters to be adjusted. The length and threshold of the process parameter state prediction sequence are obtained through repeated debugging under the premise of fully considering the requirements of real-time control and judgment confidence. In this embodiment, there are four types of process parameter state prediction sequences included in the parameter state judger, namely: material extrusion rate prediction sequence, nozzle movement speed prediction sequence, nozzle temperature prediction sequence, and Z-axis offset distance prediction sequence.
[0079] The material extrusion rate prediction state prediction sequence is 16, and the sequence threshold is 0.720;
[0080] The nozzle movement speed prediction state prediction sequence 13, the sequence threshold is 0.700;
[0081] The nozzle temperature prediction state prediction sequence is 10, and the sequence threshold is 0.850;
[0082] The Z-axis offset distance prediction state prediction sequence is 14, and the sequence threshold is 0.700;
[0083] The linear mapping process is operated as follows: the percentage of the best process parameter prediction statement in the interval [θ, 1] that occupies the parameter state prediction sequence is linearly mapped to the interval [I, 1]. The lower limits of the two sets of mapping intervals are both positive values. θ and I are obtained by cutting off the connection between other output heads in the multi-head neural network and the proportional controller, performing single process parameter state prediction and proportional control, and weighing the molding effect and control effect.
[0084] The operation of the proportional amplification process is: multiply the mapping value on the [I, 1] interval by the amplification coefficient ±K to obtain the adjustment amount of the fused deposition modeling process parameter. The positive or negative amplification coefficient is determined according to the parameter state judgment result. When the parameter state judgment result is "low", the amplification coefficient is positive, otherwise it is negative.
[0085] The amplification factor K is limited by the printer itself and is determined by comprehensively considering the applicable range of each process parameter of the printer and the I value in the linear mapping process.
[0086] In one embodiment, a method for real-time control of fused deposition modeling process parameters comprises the following steps:
[0087] In the first step, an image of the molten deposition area is captured by a camera and sent to a local server;
[0088] In the second step, the image of the molten deposition area is cropped and scaled with the extrusion nozzle as the image center, and the RGB channels are normalized to obtain the input of the multi-head convolutional network model;
[0089] In the third step, the multi-head convolutional network model predicts the state of the printer process parameters according to the input image, outputs a process parameter state prediction statement, and transmits the process parameter state prediction statement to the process parameter state prediction sequence in the parameter state judger;
[0090] In the fourth step, when the process parameter state prediction sequence is filled, the parameter state judger will find the best process parameter state prediction statement, and send the best process parameter state prediction statement and the best process parameter state statement occurrence frequency p to the proportion corrector;
[0091] In the fifth step, the proportional corrector determines whether to adjust the process parameters according to the optimal process parameter state prediction statement. If it is determined to adjust, the relevant process parameter adjustment amount is output according to the occurrence frequency p of the optimal process parameter state prediction statement. The adjustment process consists of two stages: linear mapping and proportional amplification.
[0092] In the sixth step, after the local server receives the process parameter adjustment value output by the proportional corrector, it sends an adjustment command to the driver unit. The driver unit executes the adjustment command and updates the printer process parameters. When the update command is executed, the driver unit sends a completion instruction to the server.
[0093] In the method described, steps one, two, three, four, five and six constitute a complete real-time control process.
[0094] In the method, in the third step, the prediction sentence includes "high", "low", and "good".
[0095] In the method, in the third step, the clarity of the captured image is positively correlated with the process parameter judgment ability of the multi-head convolutional network model.
[0096] In the method, in the third step, the number of heads of the multi-head convolutional network model is the same as the number of controlled process parameters.
[0097] In the method, in the third step, the number of process parameter state prediction sequences in the parameter state determiner is equal to the number of process parameters to be adjusted.
[0098] In the method, in the third step, the length of the parameter state prediction sequence needs to comprehensively consider the response time setting of the printer firmware and hardware. A shorter state prediction sequence may cause the parameter adjustment frequency to exceed the printer firmware and hardware response time, causing the printer process parameters to oscillate, which is not conducive to the smooth progress of the fused deposition modeling process; an excessively long state prediction sequence affects the real-time adjustment of the process parameters.
[0099] In the method, in the fourth step, the optimal process parameter state prediction statement is the prediction statement that occupies the largest percentage of the process parameter state prediction sequence length and is greater than the sequence threshold, and the frequency of occurrence is the percentage of the prediction statement that occupies the process parameter state prediction sequence length. If there is no prediction statement that occupies a percentage of the parameter state prediction sequence length that is greater than the sequence threshold, the optimal process parameter prediction statement is considered to be "good".
[0100] In the above method, in the fourth step, the process parameter state prediction sequence threshold is obtained by debugging.
[0101] In the method, in the fifth step, if the optimal process parameter state prediction statement received by the proportional corrector is "good", no adjustment is applied to the process parameters, and the process parameters are maintained to continue molding.
[0102] In the method, in the fifth step, if the optimal process parameter state prediction statement received by the proportional corrector is "high" or "low", the process parameters are adjusted.
[0103] In the method, in the fifth step, the linear mapping stage operation in the adjustment process is: linearly map the frequency p of the optimal process parameter prediction statement located in the interval [θ, 1] to the interval [I, 1], and the lower limits of the two sets of mapping intervals are both positive values. In the process of single process parameter control, the connection between other output heads in the multi-head neural network and the proportional controller is cut off to perform single process parameter state prediction and proportional control, and the molding effect and control effect are weighed.
[0104] In the method, in the fifth step, the proportional amplification stage operation in the adjustment process is: multiply the mapping value on the [I,1] interval by the amplification coefficient ±K to obtain the adjustment amount of the fused deposition modeling process parameters. The positive or negative amplification coefficient is determined according to the parameter state judgment result. When the optimal process parameter state prediction statement is "low", the amplification coefficient is positive, otherwise it is negative.
[0105] In the method, in the sixth step, considering the response time of the printer firmware and hardware when executing commands, the current parameter update must be performed after the driver has executed the last parameter adjustment command, otherwise it will cause the printer process parameters to oscillate.
[0106] 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 7 shown.
[0107] 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 8 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.
[0108] 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.
[0109] 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 8 As 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%.
[0110] 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 real-time control system for fused deposition modeling process parameters, characterized in that: These include, A printer for fused deposition modeling, a camera, which is directed toward the printer to capture an image of the fused deposition area, A local server is connected to the camera to crop and scale the molten deposition area image and normalize the RGB channels to obtain an input image. A multi-head convolutional network model is implanted in the local server, and the multi-head convolutional network model predicts the process parameter state of the printer according to the input image and outputs a process parameter state prediction statement, A parameter state judger is connected to the multi-head convolutional network model to store the process parameter state prediction statement into the process parameter state prediction sequence in the parameter state judger, and find the best process parameter state prediction statement, The proportional corrector is connected to the parameter state judger and the local server, inputs the optimal process parameter state prediction statement and the optimal process parameter state prediction statement occurrence frequency p, outputs the process parameter adjustment amount and sends it to the local server, The driver unit is connected to the local server and the printer. The local server generates an adjustment command based on the process parameter adjustment amount and sends it to the driver unit. The driver unit executes the adjustment command to update the printer process parameters.
2. A real-time control system for fused deposition modeling process parameters according to claim 1, characterized in that: Preferably, when the updating of the printer process parameters is completed, the driver unit sends a completion instruction to the local server.
3. A real-time control system for fused deposition modeling process parameters according to claim 1, characterized in that: The printer process parameters include material extrusion rate, nozzle movement speed, nozzle temperature and Z-axis offset distance. The parameter state prediction sequence includes material extrusion rate prediction sequence, nozzle movement speed prediction sequence, nozzle temperature prediction sequence, and Z-axis offset distance prediction sequence. The process parameter adjustment amount includes material extrusion rate adjustment amount, nozzle movement speed adjustment amount, nozzle temperature adjustment amount, and Z-axis offset distance adjustment amount.
4. A real-time control system for fused deposition modeling process parameters according to claim 1, characterized in that: The scale corrector includes a linear mapping unit and a scale amplification unit.
5. A real-time control system for fused deposition modeling process parameters according to claim 1, characterized in that: The driver unit is a driver built into the printer.
6. A method for real-time control of fused deposition modeling process parameters according to the real-time control system for fused deposition modeling process parameters according to any one of claims 1 to 5, characterized in that: The steps include: In the first step, the camera takes an image of the molten deposition area and sends it to a local server; In the second step, the local server crops and scales the image of the molten deposition area with the extrusion nozzle as the center of the image, and normalizes the RGB channels as the input image of the multi-head convolutional network model; In the third step, the multi-head convolutional network model predicts the printer process parameter state according to the input image and outputs a process parameter state prediction statement, and transmits the prediction statement to the process parameter state prediction sequence in the parameter state judger; The multi-head convolutional network model is composed of a Resnet50 network and a fully connected network. The multi-head convolutional network model inputs the cropped original image. The network output layer includes 12 neurons. The neurons in the network output layer are divided into four equal parts, each corresponding to a different process parameter. The three neurons contained in each part correspond to the "high", "low" and "good" states of the process parameter. Among them, the process of the multi-head convolutional network model predicting the process parameter state and outputting the process parameter state prediction statement is as follows: the multi-head convolutional network receives the cropped original image, first uses the Resnet50 network for image processing, extracts the key features of the image that pay attention to the information associated with the process parameter state in the image, and the output of the Resnet50 network is flattened as the fully connected network input layer. The image information related to the process parameters extracted by the Resnet50 network will be linked to the printer process parameter state through the fully connected network to achieve the mapping from image information to the printer process parameter state, that is, output the process parameter state prediction statement. In the fourth step, when the process parameter state prediction sequence is completely filled, the parameter state judger searches for the best process parameter state prediction statement, and sends the best process parameter state prediction statement and the best process parameter state prediction statement occurrence frequency p to the proportion corrector; The process of the parameter state judgement device searching for the best process parameter state prediction statement is as follows: when a process parameter state prediction sequence is filled, the parameter state judgement device first calculates the frequency of occurrence of each process parameter state prediction statement in the state prediction sequence, that is, the percentage of the three state prediction statements of "high", "low" and "good" in the process parameter state prediction sequence, and the parameter state judgement device compares the process parameter state prediction statement with the highest frequency in the process parameter state prediction sequence with the threshold value θ of the process parameter state prediction sequence. When the frequency of the process parameter state prediction statement with the highest frequency is greater than the sequence threshold value, the parameter state judgement device determines that the prediction statement is the best process parameter state prediction statement of the process parameter under the current state, otherwise, the best process parameter state prediction statement is determined to be "good". In the fifth step, the proportional corrector determines whether to adjust the process parameters according to the optimal process parameter state prediction statement. If it is determined to adjust, the relevant process parameter adjustment amount is output according to the percentage of the optimal process parameter prediction statement occupying the parameter state prediction sequence. The adjustment process consists of two stages: linear mapping and proportional amplification. In the sixth step, after the local server receives the process parameter adjustment value output by the proportional corrector, it sends an adjustment command to the driver unit. The driver unit executes the adjustment command and updates the printer process parameters. When the update is completed, the driver unit sends a completion instruction to the local server.
7. A method for real-time control of fused deposition modeling process parameters according to claim 6, characterized in that: The camera capture frequency is 2 Hz.
8. A method for real-time control of fused deposition modeling process parameters according to claim 6, characterized in that: During the image cropping, scaling, and normalization process, the image was first cropped to 320×320 ppi and then scaled to 224×224 ppi. The normalization method used was mean-variance normalization.
9. A method for real-time control of fused deposition modeling process parameters according to claim 6, characterized in that: The linear mapping process is operated as follows: linearly map the percentage of the optimal process parameter prediction statement in the interval [θ,1] that occupies the parameter state prediction sequence to the interval [I,1]. The lower limits of the two sets of mapping intervals are both positive values. θ and I perform single process parameter state prediction and proportional control by cutting off the connection between other output heads in the multi-head neural network and the proportional controller.
10. A method for real-time control of fused deposition modeling process parameters according to claim 9, characterized in that: The proportional amplification operation is: multiplying the mapping value in the interval [I, 1] by the amplification coefficient ±K to obtain the adjustment amount of the fused deposition modeling process parameter.
Citation Information
Patent Citations
Convolutional neural network evaluation of additive manufacturing images, and additive manufacturing system based thereon
CN111372755A
3D printer stacking disorder alarm system and method based on target detection
CN113306136A
Powder material 3D intelligent printing system
CN117382173A
System and method of enhancing reliability of fused deposition modelling (FDM) process using a nozzle camera and artificial intelligence
US20230221708A1
