Professional Documents
Culture Documents
1 s2.0 S2351978921000457 Main
1 s2.0 S2351978921000457 Main
com
Available online at www.sciencedirect.com
ScienceDirect
ScienceDirect
Available online at www.sciencedirect.com
Procedia Manufacturing 00 (2020) 000–000
www.elsevier.com/locate/procedia
ScienceDirect
Procedia Manufacturing 00 (2020) 000–000
www.elsevier.com/locate/procedia
49th SME North American Manufacturing Research Conference, NAMRC 49, Ohio, USA
49th SME North American Manufacturing Research Conference, NAMRC 49, Ohio, USA
A digital twin strategy for major failure detection in fused deposition
A digital twin strategy formodeling
major failure detection in fused deposition
processes
modeling processes
Christopher M. Henson*, Nathan I. Decker, Qiang Huang
Christopher M. Henson*, Nathan I. Decker, Qiang Huang
Daniel J. Epstein Department of Industrial and Systems Engineering, Andrus Gerontology Center, 3715 McClintock Ave GER 240, Los Angeles, CA 90089,
United States of America
Daniel J. Epstein Department of Industrial and Systems Engineering, Andrus Gerontology Center, 3715 McClintock Ave GER 240, Los Angeles, CA 90089,
* Corresponding author. Tel.: +1-213-740-4893; fax: +1-213-740-1120. E-mail address: cmhenson@usc.edu
United States of America
* Corresponding author. Tel.: +1-213-740-4893; fax: +1-213-740-1120. E-mail address: cmhenson@usc.edu
Abstract
Abstract
Part distortion during additive manufacturing (AM) may lead to catastrophic failure and significant waste of resources. Existing work often
focuses on identification
Part distortion and detection
during additive of individual
manufacturing (AM)rootmay causes
lead such as melt pool
to catastrophic geometries
failure or extruderwaste
and significant clogging to preventExisting
of resources. part failures.
work Since
often
the end-effect
focuses of major print
on identification failures can
and detection be the result
of individual rootofcauses
multiple
sucherror sources
as melt pool (including
geometriesunknowns), relying on
or extruder clogging to detection
prevent partof individual root
failures. Since
causes may misclassify some failed prints as successful. Instead, detecting end-effects or part distortion could provide early
the end-effect of major print failures can be the result of multiple error sources (including unknowns), relying on detection of individual root warning of major
failures regardless
causes may of potential
misclassify some error
failedsources.
prints asDistortion detection,
successful. Instead,however,
detectingcurrently involves
end-effects computationally
or part distortion couldexpensive simulation
provide early andof
warning analysis
major
of sensing data. One promising solution is to adopt digital twin strategy to quickly compare model prediction to features extracted
failures regardless of potential error sources. Distortion detection, however, currently involves computationally expensive simulation and analysis from in situ
sensing data.
of sensing This
data. study
One extendssolution
promising the digital twin
is to strategy
adopt to twin
digital majorstrategy
distortion detection
to quickly by developing
compare (1) a multi-view
model prediction optical
to features sensingfrom
extracted system for
in situ
movable print beds and (2) failure detection methods by analyzing multi-view of part images layer by layer. Since the digital twin
sensing data. This study extends the digital twin strategy to major distortion detection by developing (1) a multi-view optical sensing system for of actual prints
at specific
movable layers
print bedsare
andgenerated
(2) failureoffline, delay
detection can be
methods byreduced
analyzing tomulti-view
determine ofif part
a significant enough
images layer quality
by layer. departure
Since hastwin
the digital occurred to justify
of actual prints
termination
at of the print.
specific layers In the experimental
are generated evaluation
offline, delay can be of this approach
reduced for a FDM
to determine if a machine with
significant a moving
enough printdeparture
quality bed, failure
haswas rapidlytodetected
occurred justify
in two of theofthree
termination test prints,
the print. In the while in the remaining
experimental evaluationprint, failure
of this was successfully
approach detectedwith
for a FDM machine afteraamoving
short delay.
print bed, failure was rapidly detected
in two of the three test prints, while in the remaining print, failure was successfully detected after a short delay.
©
© 2019
2021The TheAuthors,
Authors.Published by Elsevier
Published B.V. B.V.
by Elsevier
Peer
This
© review
2019is The under
an open thePublished
responsibility
access
Authors, articleby of the
under thescientific
Elsevier CC committeelicense
B.V.BY-NC-ND of NAMRI/SME
(http://creativecommons.org/licenses/by-nc-nd/4.0/)
Peer-review
Peer underthe
review under responsibility
responsibilityofofthe
theScientific CommitteeofofNAMRI/SME
scientific committee the NAMRI/SME
Keywords: Shape deformation, in situ optical sensing, multi-view, failure detection, cyber-physical system
Keywords: Shape deformation, in situ optical sensing, multi-view, failure detection, cyber-physical system
determine if a process failure had occurred. Grasso et al. [15] and take action to cancel the print.
proposed a K-means clustering approach for automatic
detection of missing material defects, most common in Finally, one promising methodology for detecting print
complex geometries, using in-situ thermal-image data. They errors on a delta configuration FDM 3D printer was proposed
were able to successfully demonstrate this through the by Nuchitprasitchai et al. [24]. Their approach first generated
identification of zones that exhibit a low cooling rate indicative simulated images as a ground truth against which recorded
of overheating. Khanzadeh et al. [16] developed a methodology images could be compared. As the print progressed, they
for detecting changes in process parameters through tensor captured images of the part with a single camera, which were
decomposition of thermal image streams. Though these present then processed to segment regions of the captured image that
an interesting case study, they are more instructive in their contained the printed part vs. the background. Regions of the
overarching application than in their implementation due to the image containing the part were then aligned and compared with
significant differences between PBF processes and fused the simulated ground truth images. Errors were detected when
deposition modelling (FDM). the two images deviated from each other significantly. One
disadvantage of this proposed hardware setup is that it was
A separate body of work exists studying the detection of a designed to be compatible with a delta configuration (6-axis 3D
variety of defects in consumer grade 3D printers. Many newer printer) in which the printed part remains completely stationary
machines, including the Prusa MK3S, have been outfitted by during the print. The vast majority of FDM printers use a
the manufacturer with sensors which can detect clogged cartesian coordinate system layout (3-axis), and thus move the
extruder and/or temperature sensors for automated tracking of part being printed throughout the process. This significantly
print bed/extruder temperature. However, these systems are complicates efforts to capture and monitor the progress of a
incapable of detecting any defects which occur while the print as the part being printed becomes a moving target. A
printer is operating nominally. One common example of this is system that can account for and overcome this movement
material slumping due to a lack of support and difficult during the print is needed in order for this approach to
overhangs. Liu et al. [17] devised a method of error detection generalize and apply to the majority of FDM printers. An
involving two digital microscopes which are mounted to additional feature that is needed is the ability to monitor
observe newly deposited material to monitor for a change in the multiple views of a print simultaneously as this greatly
process parameters through the detection of surface defects. improves the effectiveness of the system overall. Finally, it
Both these approaches focus on the material just after it has would be desirable to automate the cancelation of a print once
been deposited, any defect which may occur later in the print a failure has been detected.
could, therefore, remain undetected. An example of such a
defect is the shrinkage or warping that the material undergoes There are varying limitations that can be found in the
over the course of time following deposition, a defect their literature, including the inability to detect small errors
approach would fail to detect Baumann et al. [18] developed a occurring during nominal operation, a limited focus on only
methodology for capturing and segmenting images of a given one error mode, lack of in situ detection, and an inability to
part during the orienting process to catch detachment, missing handle a moving printbed. The approach we propose in this
material flow, deformed object, and surface errors. Their paper is capable of online failure detection under nominal
approach achieved a respectable detection rate of 60-80% but operating conditions of a 3D printer with a moving print bed.
had a similarly high false positive rate of 60-80%. Acoustic Our proposed approach makes use of a PRUSA MK3S, three
emissions have been demonstrated as an effective way to HD webcams which are situated surrounding the print bed, and
characterize failure modes [19] as well as successfully adapt finally a computer running MATLAB to perform all the
this capability for detection of those failure modes in real time necessary analysis (We also make use of MeshMixer for
[20]. Their methodology, however, is geared towards the modifying STL files).
detection of defects which are accompanied by a detectable
change in sound which narrows the scope of what can be In this paper we will introduce the developed methodology
detected. For example, geometric deformation due to which consists of three components: digital twin image
insufficient support structure would likely not be detectable by simulation, in-situ data collection, finally image comparison
analysing acoustic emissions. Straub [21] proposed a for failure detection. We will discuss the results of our study
multicamera approach to detecting significant departures in in detecting the catastrophic failures which occurred in the
quality stemming from dry printing (when filament has been three selected prints. We will conclude with a summary of our
exhausted) and early job termination. This approach is work and a brief discussion of future research we hope to
instructive as it uses a multi-sensor approach but is limited to conduct based on this research.
the detection of large amounts of missing material that result
when the printer runs out of filament. An augmented reality- 2. Methodology
based method has also been presented as a useful tool for error
detection by Ceruti et al. [22] whereby a digital version of the Any failure during printing that will result in a deformation
printed part can be rendered at various stages of completion and of the part is eventually propagated to the part, and evident in
superimposed over the actual part being printed. Through the that part. We propose to evaluate the success or failure of a
use of Speeded Up Robust Features, [23] discrepancies given print therefore, based on how the printed object compares
between the digital model and the manufactured part can be to the corresponding design object. By repeating this evaluation
detected. This approach is very interesting as it presents an process throughout the course of the print we can monitor for
application of a digital twin for the purpose of defect detection, defects and terminate the print upon detecting a departure from
however the detection of a defect still requires a user to monitor
Christopher M. Henson et al. / Procedia Manufacturing 53 (2021) 359–367 361
Author name / Procedia Manufacturing 00 (2020) 000–000 3
the design. This approach consists of three major components The triangular mesh is specifically re-meshed so that each
which can be described as follows: 1) the generation of a triangle has an approximate edge length of 0.5 mm, this is done
ground-truth expectation in the form of 2D images which to ensure an even distribution of vertices about the surface of
simulates the part as it would be seen by our three cameras, see the mesh.
figure 1 for image of camera setup, at a given stage of
completion depending on what layer has been completed. 2)
The identification of which pixels from a captured image
belong to the printed part and which pixels belong to the static
background. And 3) comparing the resulting matrices from
parts (1) and (2) in order to determine if and when a defect
occurs.
entering into a camera converges to a single point defined for a The Möller-Trumbore algorithm is a quick computational
given camera. In this work, three separate cameras 𝒄𝒄1 , 𝒄𝒄2 , and method for evaluating this condition. It is proposed in [25] and
𝒄𝒄3 are used. A point 𝒗𝒗𝑛𝑛 that is visible to a given camera 𝒄𝒄𝑘𝑘 is implemented by [26]. This algorithm was utilized to create
𝒗𝒗𝒏𝒏 𝒄𝒄𝒌𝒌 that connects the point to
one for which the line segment ̅̅̅̅̅̅ three sets 𝑽𝑽𝒄𝒄𝟏𝟏 , 𝑽𝑽𝒄𝒄𝟐𝟐 , and 𝑽𝑽𝒄𝒄𝟑𝟑 containing all of the points that are
the pinhole location does not intersect the shape’s mesh at any theoretically visible to each camera. For the camera perspective
location between the two endpoints. shown in Figure 4, application of the algorithm generates the
points shown in Figure 5, which is shown at a slightly different
angle to clarify which points are included, and which are not.
A set of visible points is generated for each camera in the
system. Next, each of these sets is rendered in order to produce
a 2D image. The first step in this process is to project each 3D
point in a given set into a 2D point falling on an image plane
simulating the cameras. This is done according to the pinhole
model illustrated in Figure 6.
̃′𝒏𝒏 = 𝐊𝐊 [ 𝐑𝐑 | 𝐭𝐭 ] 𝒗𝒗
𝑠𝑠 𝒗𝒗 ̃𝒏𝒏 (4)
𝑓𝑓𝑥𝑥 0 𝑢𝑢0
𝐊𝐊 = [ 0 𝑓𝑓𝑦𝑦 𝑤𝑤0 ] (5)
0 0 1
Fig. 5. Visible points identified by the Möller-Trumbore algorithm. and [ 𝐑𝐑 | 𝐭𝐭 ] is a standard joint rotation-translation matrix
describing how the vertices of the object have been
Christopher M. Henson et al. / Procedia Manufacturing 53 (2021) 359–367 363
Author name / Procedia Manufacturing 00 (2020) 000–000 5
rotated/translated in relation to the camera. determined, the simulated image matrix can be generated
according to the following procedure. First, a matrix of zeros is
𝒓𝒓𝟏𝟏𝟏𝟏 𝒓𝒓𝟏𝟏𝟏𝟏 𝒓𝒓𝟏𝟏𝟏𝟏 𝒕𝒕𝟏𝟏 created with the same dimensions (I, J) of the measured images.
[ 𝐑𝐑 | 𝐭𝐭 ] = [𝒓𝒓𝟐𝟐𝟐𝟐 𝒓𝒓𝟐𝟐𝟐𝟐 𝒓𝒓𝟐𝟐𝟐𝟐 𝒕𝒕𝟐𝟐 ] (6) Then, functions are defined to translate a given point 𝒗𝒗′𝑎𝑎 =
𝒓𝒓𝟑𝟑𝟑𝟑 𝒓𝒓𝟑𝟑𝟑𝟑 𝒓𝒓𝟑𝟑𝟑𝟑 𝒕𝒕𝟑𝟑 [𝑢𝑢𝑎𝑎 , 𝑤𝑤𝑎𝑎 ]𝑻𝑻 in 2D space to a pixel in matrix space (𝑖𝑖𝑎𝑎 , 𝑗𝑗𝑎𝑎 ). These
could be, for example:
This process can be completed quickly using the method
utilized in [27] and implemented in [28]. It results in three 1
𝑖𝑖𝑎𝑎 = ⌊𝑝𝑝𝑤𝑤 − 𝑤𝑤𝑎𝑎 ∙ 𝑏𝑏 + ⌋ (9)
separate sets of 2D points that correspond to each set of vertices 2
as seen by each camera 𝑽𝑽′𝒄𝒄𝟏𝟏 , 𝑽𝑽′𝒄𝒄𝟐𝟐 , and 𝑽𝑽′𝒄𝒄𝟑𝟑 . For example, the
set of 𝑁𝑁𝒄𝒄𝟏𝟏 2D vertices visible to Camera 1 can be expressed as 𝑗𝑗𝑎𝑎 = ⌊𝑝𝑝𝑢𝑢 + 𝑢𝑢𝑎𝑎 ∙ 𝑏𝑏 +
1
⌋ (10)
2
𝑥𝑥1 𝑦𝑦1
𝑽𝑽′𝒄𝒄𝟏𝟏 = [ ⋮ ⋮ ] (7) where (𝑝𝑝𝑤𝑤 , 𝑝𝑝𝑢𝑢 ) is the location in pixel space of the origin of the
𝑥𝑥𝑁𝑁𝒄𝒄 𝑦𝑦𝑁𝑁𝒄𝒄 u and w coordinate system, and b is a scaling factor with
𝟏𝟏 𝟏𝟏
dimensions of pixels per unit distance. Then for each pixel
An example of the resulting set of 2D vertices is shown in coordinate that is obtained from the 2D point cloud, the set of
Figure 7. Once this is established, it is necessary to turn each pixel points
2D point set into a set of black and white binary image
matrices for use in analysis. Because we want to monitor the (𝑖𝑖, 𝑗𝑗) ∶ (𝑖𝑖, 𝑗𝑗) ∈ [𝑖𝑖 − 0.25 ∙ 𝑏𝑏, 𝑖𝑖 + 0.25 ∙ 𝑏𝑏]
status of the 3D print as it is being constructed, it is necessary
to construct a set of ground truth images for each camera × [𝑗𝑗 − 0.25 ∙ 𝑏𝑏, 𝑗𝑗 + 0.25 ∙ 𝑏𝑏] (11)
depicting what the object should look like after each layer is
printed. If L layers are printed, then there should be L are made equal to 1 in the simulated image matrix S. Figure 8
simulated images in each set. Because the part will be illustrates the result of this process. It should be noted that
progressively constructed from the ground up, each image while the difference between the CAD file and the collected in-
will contain a greater amount of the printed object. One situ print shape prior to cooling is on the order of 100m, we
simplifying factor in this effort is the fact that the height of are interested in deformations which are on the order of 1mm
each layer is known, allowing for the determination of which or greater taking into consideration the size and geometry of
points will be visible after a given layer l. the parts. For our study, deformation due to thermal expansion
was not necessary to consider but could be necessary for higher
resolution cameras or for different parts.
unobstructed view. In our experimental setup, this motion was order to make the segmentation more consistent, each of these
introduced into the G-code following the completion of each images is automatically cropped according to the extents of the
layer. The G-code was further modified to pass a message over ground truth images, leaving enough room around the part in
USB to the software controlling image acquisition that would case of defects.
indicate when the part had reached the required location. Once
this message is received by the software, an image is captured
by each of the cameras, stored, processed, and analyzed. It is
important to note that this can only be done using a printer that
supports open source hardware control. Some closed systems,
such as MakerBot printers, do not allow for this level of custom
access. After image acquisition is complete, the remainder of
the print can continue. This process is illustrated in Figure 9.
The top part of the figure shows the part as it is being printed,
while the bottom section illustrates how the part is moved into
the view of the cameras after a layer is completed.
Fig. 10. Top: Raw image captures following completion of the 91 st layer.
Bottom: Cropped images for minimization of part misidentification.
The final result of this process can be seen in Figure 11. One If 𝐶𝐶𝑖𝑖𝑖𝑖 = 1, this is considered an event. The result of this
advantage of using a simplistic approach like this as opposed comparison can be seen in Figure 12. In order for a failure to
to a more complicated algorithm is that results are be declared at a given layer, a criterion should be established
computationally cheap to acquire and can be obtained directly based on the prevalence of events. For this demonstration,
following the collection of the images. failure is detected when there are at least 50 event detections
across at least two of the three images. We chose 50 event
detections empirically based on the resolution of the cameras
and the geometry of the parts we decided to test. Once failure
has been detected; the printer can be sent a command to
terminate the print. For reference, Figure 13 shows what the
cropped unsegmented images look like, in other words what the
Fig. 11. Cropped binary-image following completion of the 91st layer. part actually looked like after the 100th layer.
Fig. 14. Left: Part #1. Middle: Part #2. Right: Part #3.
4. Conclusion
Table 1: User layer classification vs Auto layer classification performed using This study develops a multi-camera sensing system and
the proposed approach.
approach for the detection of catastrophic failures during
Classification Accuracy printing. This approach builds upon the digital twin concept by
Class. User Class. Auto Class. comparing in-situ images of the print bed with images
Part 1
Pass 21-92 21-93 generated from the design mesh file. We focus on optical
Fail 93-107 94-107 information, which is accessible and easy to collect, for the
Pass 21-93 21-93
Part 2
Fail 94-106 94-106
purpose of quickly detecting significant departures in quality.
Pass 21-93 21-93
Part 3 The methodology presented begins with the pre-print
Fail 94-106 94-106
simulation of ground truth images, followed by processing of
images of the print which are captured during the printing
process, and finally the real-time comparison of the ground-
truth images with the captured images to determine if the print
should be terminated or not. Preliminary accuracy results
suggest that this approach is very promising although more
testing is needed for a more thorough assessment. We were able
to demonstrate a system which can monitor a print from
multiple view angles as well as also accommodate a process
where the object being monitored is moving within the viewing
space. One significant limitation of this approach, however, has
to do with part concavity; any part geometry which is hidden
from camera view cannot be monitored using this approach
potentially leading to undetected deformations of the part. We
plan to address this issue in subsequent work.
References