선정목록으로
Real-Time Sensing of Output Polymer Flow Temperature and Volumetric Flowrate in Fused Filament Fabrication Process
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(24) 패션(코오롱FnC)
기본 정보
- 저자
- DOI
- 10.3390/ma15020618
- 저널
- Materials
- 발행년도
- 2022
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 13
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/ma15020618
- 토픽
- Injection Molding Process and Properties
- OpenAlex ID
- W4206191560
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (21) 에폭시수지, (24) 패션(코오롱FnC)
- R&D 측면
- 공정·제조
- 확신도
- 0.80
- 근거 용어
- Fused Filament Fabrication, thermoplastic, polymer flowrate, melt temperature, in-situ process monitoring
- 판단 근거
- 본 논문은 3D 프린팅(FFF) 공정 중 고분자 용융물의 온도와 유량을 실시간으로 측정하는 센싱 기술을 다룹니다. 이는 코오롱인더스트리의 엔지니어링 플라스틱 컴파운드 및 기능성 고분자 소재의 정밀 가공 및 품질 관리 공정 기술에 응용될 수 있습니다.
- R&D 활용 포인트
- 고분자 컴파운드 소재의 3D 프린팅용 피드스탁 개발 시, 공정 변수(온도, 유량) 제어를 통한 제품 품질 균일성 확보 및 실시간 공정 모니터링 시스템 구축에 활용 가능합니다.
- 평가 입력
- 본문 63,853자 중 30,032자 발췌
초록
In this paper we addressed key challenges in engineering an instrumentation system for sensing and signal processing for real-time estimation of two main process variables in the Fused-Filament-Fabrication process: (i) temperature of the polymer melt exiting the nozzle using a thermocouple; and (ii) polymer flowrate using extrusion width measurements in real-time, in-situ, using a microscope camera. We used a design of experiments approach to develop response surface models for two materials that enable accurate estimation of the polymer exit temperature as a function of polymer flowrate and liquefier temperature with a fit of R2=99.96% and 99.39%. The live video stream of the deposition process was used to compute the flowrate based on a road geometry model. Specifically, a robust extrusion width recognizer REXR algorithm was developed to identify edges of the deposited road and for real-time computation of extrusion width, which was found to be robust to filament colors and materials. The extrusion width measurement was found to be within 0.08 mm of caliper measurements with an R2 value of 99.91% and was found to closely track the requested flowrate from the slicer. This opens new avenues for advancing the engineering science for process monitoring and control of FFF.
본문 63,853자
본문 펼치기
# _materials_
_Article_
## Real-Time Sensing of Output Polymer Flow Temperature and Volumetric Flowrate in Fused Filament Fabrication Process
Rakshith Badarinath and Vittaldas Prabhu *
Department of Industrial and Manufacturing Engineering, The Pennsylvania State University,
University Park, PA 16802, USA; rakshith.badarinath@psu.edu
* Correspondence: vittal.prabhu@psu.edu
Abstract: In this paper we addressed key challenges in engineering an instrumentation system
for sensing and signal processing for real-time estimation of two main process variables in the
Fused-Filament-Fabrication process: (i) temperature of the polymer melt exiting the nozzle using a
thermocouple; and (ii) polymer flowrate using extrusion width measurements in real-time, in-situ,
using a microscope camera. We used a design of experiments approach to develop response surface
models for two materials that enable accurate estimation of the polymer exit temperature as a function
of polymer flowrate and liquefier temperature with a fit of _R_ <sup>2</sup> = 99.96% and 99.39%. The live video
stream of the deposition process was used to compute the flowrate based on a road geometry model.
Specifically, a robust extrusion width recognizer (REXR) algorithm was developed to identify edges
of the deposited road and for real-time computation of extrusion width, which was found to be robust
to filament colors and materials. The extrusion width measurement was found to be within 0.08 mm
of caliper measurements with an _R_ <sup>2</sup> value of 99.91% and was found to closely track the requested
flowrate from the slicer. This opens new avenues for advancing the engineering science for process
monitoring and control of FFF.
[���������](https://www.mdpi.com/article/10.3390/ma15020618?type=check_update&version=3)
[�������](https://www.mdpi.com/article/10.3390/ma15020618?type=check_update&version=3)
Citation: Badarinath, R.; Prabhu, V.
Real-Time Sensing of Output
Polymer Flow Temperature and
Volumetric Flowrate in Fused
Filament Fabrication Process.
_Materials_ 2022, _15_, 618. [https://](https://doi.org/10.3390/ma15020618)
[doi.org/10.3390/ma15020618](https://doi.org/10.3390/ma15020618)
Academic Editor: Antonino Recca
Received: 14 December 2021
Accepted: 11 January 2022
Published: 14 January 2022
Publisher’s Note: MDPI stays neutral
with regard to jurisdictional claims in
published maps and institutional affil
iations.
Copyright: © 2022 by the authors.
Licensee MDPI, Basel, Switzerland.
This article is an open access article
distributed under the terms and
conditions of the Creative Commons
Attribution (CC BY) license [(https://](https://creativecommons.org/licenses/by/4.0/)
[creativecommons.org/licenses/by/](https://creativecommons.org/licenses/by/4.0/)
4.0/).
Keywords: fused filament fabrication; additive manufacturing; real-time sensing; melt temperature
estimation; polymer flowrate; vision-based measurement; robotics; image processing; response
surface design
1. Introduction
Fused filament fabrication (FFF) continues to be among the most widespread additive
manufacturing (AM) processes for making polymeric functional prototypes and, in several
cases, end-use parts. At present, FFF is most widely used because of its economic appeal
and capability to process a variety of thermoplastics, and in scales large enough to fabricate
car bodies, boat hulls, and large tooling [1,2]. In an FFF process, a thermoplastic feedstock,
usually available as spooled filament, is fed into the hot-end portion of an extrusion system,
where it is heated, melted, and forced through a nozzle. The resulting molten polymer,
called a road, is deposited to complete a cross-section of the part, and the stacking of
consecutive cross-sections results in the final three-dimensional part. Some of the current
challenges in industrializing AM are variability in product quality and the need for rapid
qualification of parts. In-situ process monitoring via process sensing and process control
has recently gained a lot of attention from researchers and is the most important venue for
realizing the challenge of industrialization and the development of robust AM processes.
Continuous sensing of key process parameters not only helps to better understand the
physics of the FFF process but can also help detect process drifts and track product quality
in-situ. When combined with process control, online adjustment of process parameters can
potentially aid in process corrections leading to consistent product quality and reduced
material wastage due to failure avoidance. Furthermore, with recent interest in sustainable
manufacturing involving efforts to develop green composite feedstocks for FFF using
_Materials_ 2022, _15_, 618 2 of 20
recycled materials and agricultural waste [3], wherein properties of the feedstock and thus
the resulting part could vary within a part and between batches, the need for process
monitoring becomes ever more vital.
The dynamics of the FFF process can be viewed as a two-input, two-output system
as shown in Figure 1. In the FFF process, the melt temperature of the polymer exiting the
nozzle ( _Tout_ ) is a function of heat input into the liquefier block, the rate at which filament
is fed into the extruder ( _vE_ ) for a given filament material properties including thermal
conductivity, density, and specific heat capacity. It is important to note that in FFF systems,
the deposition velocity ( _vd_ ), i.e., the velocity of the motion system, is directly coupled with
_vE_ and usually dictates _vE_ for a required road geometry. The liquefier temperature ( _TL_ )
is the temperature of the liquefier block inside which the polymer melts and is typically
well-controlled in FFF printers through a PID control. The liquefier block houses the heater
element, nozzle, and a temperature sensor that is typically mounted axially along the
length of the nozzle. The liquefier temperature ( _TL_ ) directly affects _Tout_ and it is intuitive
that the higher the _TL_, the higher the _Tout_ will be. Additionally, for a fixed _TL_, studies
have shown that _Tout_ decreases with increasing _vE_ [4]. This is due to the fact that as _vE_
increases, the residence time and thus time for the polymer to melt shortens, reducing
_Tout_ . In extreme cases when _vE_ exceeds the hot-end melt capacity, the backpressure and
thus the feeding force increase exponentially within the nozzle, leading to skipped steps
or nozzle jams [5]. Similarly, the output volumetric flowrate ( _Qout_ ) from the nozzle, also
referred to as “polymer flowrate” in this paper, is also dependent on _TL_ and _vE_ . For a fixed
_TL_, increasing _vE_ increases _Qout_ according to the road geometry model [6]. At higher _vE_
where under-extrusion is present, increasing _TL_ for the same _vE_ reduces the viscosity of the
molten polymer, back pressure in the nozzle, and leads to increased polymer flowrate.
Figure 1. FFF multi-input multi-output (MIMO) model to represent process dynamics.
_Tout_ is an important process variable to monitor in real-time as it directly influences
the inter-layer bond strength and thus the macro-mechanical properties of the part being
printed [7–10]. There have been few notable efforts to measure the polymer melt temperature and pressure inside the nozzle to better understand the physics of the FFF process.
Coogan et al. [11] developed an in-line rheometer consisting of load cell and thermocouple
to measure viscosity, pressure, and melt temperature of the polymer flow inside the nozzle.
Several corrections were applied to the raw data such as correcting for entrance effects to
obtain accurate viscosity measurements. In a similar effort, Anderegg et al. [12] developed
a new nozzle design consisting of a pressure transducer and a thermocouple to measure
the temperature and pressure of the polymer melt. A 6.5 <sup>_◦_</sup> C drop in melt temperature was
observed at the higher flowrates even with a calibrated PID temperature loop. Most of the
temperature sensors used today in FFF printers are either thermistors or thermocouples and,
due to the nature of these temperature sensors, the resulting temperature measurements
are only accurate in the installation location. Most extruder designs feature temperature
sensors that are usually not in direct contact with the nozzle or are mounted co-axial or far
away from the nozzle. In these cases, the temperatures measured by temperature sensors
are not representative of actual molten polymer temperature within the nozzle and that
exiting the nozzle. Some studies have shown that these temperature differences can be
up to 20 <sup>_◦_</sup> C [13]. Furthermore, the reviewed literature on thermal modeling of melt flow
within the liquefier [14–16] fails to adequately account for radial and axial variations in
_Materials_ 2022, _15_, 618 3 of 20
temperature field within liquefier, leading to discrepancies in experimentally measured
values of temperatures, pressures, and feeding forces [4]. This is also a result of limited
available measurements of the temperature profile in the liquefier.
Another method commonly used for temperature measurement is non-contact infrared
(IR) imaging where the accuracy of the measurement depends on the emissivity. Based on
existing literature, an IR camera is used for measuring spatial and temporal temperature
profiles in the printed part for process monitoring [17,18], to understand strength evolution
and influencing process parameters [10,19,20], and to validate analytical models for part
strength prediction [9]. However, when measuring nozzle temperatures using an IR camera,
it is important to note that the emissivity of the metal nozzle changes when heated and the
surface becomes contaminated quickly during the printing process. Therefore, IR cameras
are rarely used for measuring the temperature of the nozzle in commercial FFF 3D printers.
It is not feasible to obtain contact-based temperature measurements of the molten
polymer exiting the nozzle and hence non-contact measurements based on IR imaging can
be used. Unfortunately, the IR temperature measurements are limited by line of sight, which
makes it impractical for production environments. Furthermore, IR sensors and associated
instrumentations are far more expensive and bulkier than thermocouples. Therefore, in
this paper, we used a design of experiments approach to develop a response surface model
that enables accurate estimation of _Tout_ as a function of inputs: _TL_ and _Q_ =
- _π_ 4 _d_ <sup>2</sup> _<u>f</u>_ <sup>_× vE_</sup>
,
where _d f_ is the diameter of the filament, and is valid for the entire operating space of
the FFF process, using an IR camera-based _Tout_ measurements and contact-based nozzle
thermocouple measurements.
For the in-situ measurement of the polymer flowrate ( _Qout_ ), we used a vision-based
approach to first measure the extrusion width ( _w_ ) during deposition, and then calculate
_Qout_ from _w_ using road geometry model [6]. There are several studies on using vision-based
techniques for process monitoring and defect detection for the FFF process. Fang et al. [21]
implemented an online process-monitoring system to detect the processing defects during
FFF-based ceramic components fabrication using process signature extracted from layerwise optical imaging. Cheng and Jafari [22] used image intensity transformations to
extract defect signatures from 2D layer-wise images and classified defects into two types:
randomly occurring defects and anomalies. The defects were correlated to flowrate control
to minimize such defects in the printed part. In related work, Liu et al. [23] demonstrate an
online image-based closed-loop quality control for identification and correction of over-fill
and under-fill defects during FFF using 2D layer-wise images. A textural analysis-based
image classification algorithm was used for defect detection and a PID feedback controller
was used for adjusting printer parameters. Additionally, statistical process control methods
such as quality charts have been used to evaluate the quality of layer contours using 2D
layer-wise images obtained using machine vision [24,25]. Furthermore, there are studies
in the existing literature that attempt to (i) reconstruct layer contours in 3D using single
or multiple camera setups to identify defects [26–28], (ii) use laser scanners for 2D defect
detection [29], and (iii) use deep learning methods (e.g., CNN) for 2D defect detection and
classification [30].
However, none of the above literature attempt to “measure” road geometry in-situ.
Additionally, all the studies deal with layer-wise images or 3D images and not imaging at
the road geometry level. It is important to note that the dimensions at road level dictate
layer-wise and overall part-wise quality. To the best of our knowledge, this is the first work
that attempts to measure extrusion width and resulting volumetric flowrate in-situ during
deposition. This work aimed for in-situ real-time estimation of _Tout_ and measurement of _w_
and _Qout_ process variables in the FFF process during deposition. The experimental testbed,
including details on sensor instrumentation and signal flows, is described in Section 2. The
IR imaging approach to estimate _Tout_ is discussed in Section 3. In Section 4, the vision-based
approach to measure extrusion width is presented in detail along with validation of the
measurements. Conclusions and future work are discussed in Section 5.
_Materials_ 2022, _15_, 618 4 of 20
2. Experimental Testbed
In our previous work on integration and evaluation of robotic FFF system [6], we
engineered a fully functional research testbed in which integration and real-time synchronization of robot motion and extrusion controller was achieved by (1) communicating
space-variant process parameters in real-time using TCP/IP sockets, and (2) analog and
digital I/O interfacing to ensure that the extrusion velocity and deposition velocity matched
closely by building upon an analytical process model. To further gain a fundamental understanding of the FFF process, we instrumented it with sensors. A new thermocouple was
installed at the nozzle hex region that can provide accurate temperature measurements of
polymer melt within the nozzle. A current sensor was installed to measure current consumption by the resistive heating element in the hot-end. A schematic of the instrumented
experimental testbed and associated signal flow is illustrated in Figure 2a. Figure 2b,c show
the experimental system used in this paper consisting of a Bondtech BMG extruder [31]
that features dual gripping gears and a closed-loop servo motor with torque feedback
capability [32]. These changes allow for improved reliability of the developed robotic FFF
system and help monitor filament feed force through torque feedback. Additionally, the
extrusion system was also instrumented with a microscope camera [33] to measure road
geometry during printing and is discussed in detail in Section 4. The video acquisition
using the camera for in-situ extrusion width measurement was triggered by a digital I/O
signal between PLC and the Nvidia Jetson TX2 board. The timing of when to trigger
and stop video acquisition was embedded into the robot program at the time of program
generation by considering the (x, y) coordinates of the path to be printed.
Figure 2. ( a ) Overview of architecture and signal flow for the robotic FFF testbed; ( b ) Updated robotic
FFF extrusion system with Servo motor, Bondtech extruder, and USB microscope camera; ( c ) Closer
view at the hot-end portion of the extruder showing the installed nozzle thermocouple.
_Materials_ 2022, _15_, 618 5 of 20
3. Output Polymer Flow Temperature Estimation
_3.1._ _Experimental Setup_
The experimental setup for estimating the temperature of the molten polymer immediately exiting the nozzle is shown in Figure 3a. The polymer exit temperature was
measured by IR imaging using an Optris Pi 400 IR camera [34] and Optris PIX Connect
process monitoring software (rel. 3.2.3023.0) [35]. The IR camera allows for a measurement
speed of 80 Hz and has an optical resolution of 382 _×_ 288 pixels. The resulting IR image
containing locations of temperature measurement through crosshairs is shown in Figure 3b.
The crosshair ‘Melt-1” was set to measure the polymer immediately exiting the nozzle and
is the temperature of interest. To calibrate and validate IR measurements, the 0.6 mm brass
nozzle was modified to accommodate a thermocouple as shown in Figure 3c. A _φ_ 1.60-mm
hole was drilled through the hex portion of the nozzle and the tip of the J-type thermocouple wire [36] was inserted into the nozzle and fastened in place using silver solder.
Care was taken to not insert the tip of the thermocouple into the internal channel of the
nozzle, which could obstruct the polymer flow. With this setup, the tip of the thermocouple
measures molten polymer temperature inside the nozzle.
Figure 3. ( a ) IR camera setup for measurement of the polymer exit temperature ( b ); IR image showing
locations of crosshairs; ( c ) Modified brass nozzle with thermocouple.
The first step in acquiring reliable temperature readings from the IR camera is to
calibrate the emissivity value using a known reference. Given the short distance (<3 mm)
between the location of the nozzle thermocouple and nozzle opening, the emissivity value
was adjusted such that _Tout_ measured at crosshair “Melt-1” (placed immediately below
the nozzle opening) using the IR camera was equal to the temperature measured by the
nozzle thermocouple ( _Tnz_ ). This method of calibration resulted in an emissivity value of
0.82. It is infeasible to measure _Tout_ by placing a thermocouple immediately below the
nozzle opening, as it leads to a build-up of molten polymer on the thermocouple and
flow obstruction. A secondary emissivity calibration method based on data in the existing
literature was used. The emissivity value of 0.92 was used for molten polymer (PLA and
PETG) [37,38]. The results of DOE using both emissivity calibration methods are provided
in Section 3.3.
_Materials_ 2022, _15_, 618 6 of 20
_3.2._ _Experimental Design_
Designed experiments were used to predict the temperature of the molten polymer
immediately exiting the nozzle as a function of input volumetric Flowrate ( _Qin_ ) and liquefier
temperature ( _TL_ ). _Qin_ is primarily driven by _vE_, i.e., _Qin_ = _π_ 4 _d_ <sup>2</sup> _<u>f</u>_ <sup>_× vE_</sup> <sup>where</sup> <sup>_d f_</sup> <sup>is the filament</sup>
diameter. A central composite response surface design with alpha = 1, i.e., face-centered
design was chosen.
temperature ( _TL_ ). _Qin_ is primarily driven by _vE_, i.e., _Qin_ =
_πd_ <sup>2</sup> _<u>f</u>_
Table 1 summarizes the list of factors and their levels. For a face-centered design, axial
points are at the center of each face of the factorial space and the design required three
levels of each factor. The “Mid” level was calculated as the mid-point between high and low
levels. Additionally, the high level for _Q_ was selected such that it was close to the maximum
rated value for the extruder and there were no inconsistencies in polymer flow at _TLLow_ .
This selection of factor levels ensures that the entire feasible FFF process space is evaluated
and the resulting output temperature ( _Tout_ ) estimation covers the entire operating region.
There was a total of 28 runs, including two replicates per factor-level combination, and all
runs were randomized. The experiment was carried out for two different materials, PLA
and PETG, to understand material-dependent temperature influence on _Tout_ .
Table 1. Experimental design setup for output melt temperature prediction.
Factors Symbol
Target Liquefier
Temperature ( <sup>_◦_</sup> C) _TL_
Levels
Low High
PLA: 185 235
PETG: 215 265
Volumetric Flowrate
_Q_ 3 13
(mm <sup>3</sup> /s)
Materials PLA and PETG
Central Composite
Design Type
( _α_ = 1) Face centered
Blocks 2
Replicates 2
With the IR camera mounted at a fixed distance from the extruder, as shown in
Figure 3a, molten polymer was extruded in free air for all runs in the experimental design
for a period of 60 s, which is an adequate time to measure steady-state temperature
dynamics. The extended period of extrusion mitigated the influence of non-steady state
extrusion, e.g., overheating of residual polymer between runs and pressure build-up in the
nozzle. The temperature at the “Melt-1” crosshair was recorded vs. time as a temperaturetime diagram log in Optris PIX Connect software. Simultaneously, the thermocouple
temperatures were also logged in the PLC. Finally, to obtain the value of the response
variable _Tout_, a region of steady state temperatures was chosen and averaged, as illustrated
in Figure 4.
_3.3._ _Results and Discussion_
Figure 5 summarizes the temperature measurements obtained using the IR camera
and nozzle thermocouple for all combinations of DOE runs. Key observations that can be
made are as follows:
(1) _TL_ is the temperature measured by the axial thermocouple in the liquefier block and it
remained constant irrespective of _vE_ . This demonstrates that the PID temperature loop was
tuned correctly and resulted in excellent tracking of _TL_ with commanded temperatures.
(2) ∆ _TTC_ = _TL −_ _Tnz_ is the temperature difference between liquefier temperature measured by axial thermocouple and nozzle temperature measured by installed nozzle
thermocouple. Similarly, ∆ _TIR_ = _TL −_ _TIR_ is the temperature difference between
the liquefier temperature measured by axial thermocouple and temperature of the
_Materials_ 2022, _15_, 618 7 of 20
polymer exiting the nozzle measured using the IR camera. There was a general trend
of ∆ _T_ increasing with increasing _vE_ . This is due to the shortened residence time of
polymer within the nozzle as _vE_ increases. Additionally, ∆ _T_ increased with increasing
_TL_ . This showed an increasing temperature gradient in the liquefier block because
of larger convective heat losses with increasing _TL_ and the entire heat input was not
necessarily absorbed by the nozzle. This could be potentially minimized through
some insulation of the liquefier block.
(3) There was an average of a 15 <sup>_◦_</sup> C difference between _TL_ and _Tnz_, i.e., the polymer melt
temperature within the nozzle was 15 <sup>_◦_</sup> C colder than commanded liquefier temperature
for all combinations of _TL_ and _vE_ . This temperature difference should be accounted for
in the commanded liquefier temperature to achieve desired melt viscosity.
(4) ( _Tout_ = _Tnz_ ) _>_ ( _Tout_ = _TIR_ ), i.e., nozzle thermocouple measurements tend to slightly
overestimate _Tout_ compared with IR camera temperatures. This is potentially due to
the nozzle thermocouple being mechanically fastened to the walls of the conductive
brass nozzle.
(5) There was an average of a 25 <sup>_◦_</sup> C difference between _TL_ and _Tout_ measured using the
IR camera.
(6) Even though PETG has a higher melting temperature compared with PLA, the average
temperature difference ∆ _TIR_ was roughly the same for both materials.
Figure 4. Temperature time diagram constructed using IR and thermocouple temperature data
showing various temperatures during step input test. Red regions are the time-series data selected in
the stable regime for analysis.
Finally, for analysis of the DOE, ∆ _TIR_ with _e_ = 0.92 values are used.
Equations (1) and (2) describe the resulting response surfaces that can be used for
predicting _Tout_ as a function of _Q_ and _TL_ for PLA and PETG and which had excellent fits of
_R_ <sup>2</sup> = 99.96% and _R_ <sup>2</sup> = 99.39% respectively. Figure 6a,b shows the relationship between the
response variable _Tout_ and two predictor variables ( _Q_ and _TL_ ) as a 3D surface plot for PLA
and PETG respectively.
_Tout_ ( _PLA_ ) = _−_ 5.98 + 0.9187 _× TL_ + 2.361 _× Q −_ 0.06197 _× Q_ <sup>2</sup>
(1)
_−_ 0.01159 _× TL × Q_
_Tout_ ( _PETG_ ) = 10.00 + 0.8414 _× TL −_ 0.433 _× Q −_ 0.0801 _× Q_ <sup>2</sup> (2)
_Materials_ 2022, _15_, 618 8 of 20
Figure 5. Summary of IR and nozzle thermocouple measurements averaged for all combinations
of DOE runs. ∆ _TTC_ = _TL −_ _Tnz_ and ∆ _TIR_ = _TL −_ _TIR_ . The dotted lines in the ∆ _TIR_ plots represent
_Tout_ = _TIR_ = _Tnz_ measured with emissivity _e_ = 0.82 calibrated based on the nozzle thermocouple
while solid lines represent _Tout_ = _TIR_ measured with emissivity _e_ = 0.92 and calibrated based on
existing literature. _TLLow_, _TLmid_, and _TLhigh_ are based on Table 1.
Figure 6. Results of response surface analysis for predicting _Tout_ for ( a ) PLA ( b ) PETG.
4. Vision-Based Polymer Flowrate Estimation
An in-situ vision-based approach was used to measure the extrusion width during
printing. For this purpose, the extruder tool assembly was instrumented with a USB
microscope camera mounted at an angle and pointed towards the nozzle as shown in
Figure 2. (a) Overview of architecture and signal flow for the robotic FFF testbed; (b) (a).
_Materials_ 2022, _15_, 618 9 of 20
The camera can record videos at 20 frames per second (FPS) and each frame has a native
resolution of 1280 _×_ 720 pixels.
_4.1._ _Camera Calibration_
To measure extrusion width using the camera, a calibration procedure was performed
to determine the “mm per pixel” value which is used to convert image pixels into a physical
distance measurement. The camera calibration procedure is illustrated in Figure 7 and
involves measuring the number of pixels between two features in an image whose physical
distance is well defined and known (e.g., a ruler). A metal ruler with fine hatch marks was
used as a calibration device. Since the camera is mounted at an angle and the resulting
image acquired by the camera is skewed, the first step is to correct for image perspective
using the _warp_ _transform_ technique [39]. The original skewed image was corrected for
warp using _warp_ _transform_, which is a perspective transform method that requires four
non-collinear points on the input-skewed image and known distances between points to
compute a 3 _×_ 3 transformation matrix. Open-source computer vision library _OpenCV_ [40]
was used for all the image processing steps in this section. Next, the perspective corrected
output image was converted into a grayscale image, filtered using a 5 _×_ 5 gaussian kernel
to denoise, and then converted to a binary image using _Otsu’s thresholding technique_ [41,42].
The image was then re-sized to contain the only region of interest (ROI), i.e., scale hatch
marks. Finally, Table A1 provides the pseudocode of the algorithm to identify and compute
the mean distance between hatch marks to obtain mm per pixel value. Using this calibration
method, the average mm-per-pixel value was computed to be 0.004992.
Figure 7. Sequence of steps in mm-per-pixel calibration procedure starting from top left, original
image, 4-point selection, perspective corrected image, binary image of scale graduations (H = total
number of hatch marks in the image).
_4.2._ _In-Situ Vision-Based Extrusion Width Measurement_
To measure the extrusion width using the camera during printing, the continuous
video feed from the camera was processed through a sequence of image processing operations as illustrated in Figure 8. A test specimen consisting of continuous paths with regions
of varying deposition speeds was printed to evaluate the performance of the vision-based
extrusion width measurement approach and is shown in Figure 9. The single wall test specimen was printed using White PLA material at a layer height of 0.20 mm and was 20 layers
tall (4 mm). The specimen consisted of five equal-length (200 mm) regions that were printed
at varying deposition speeds starting from 10 mm/s up to 50 mm/s incrementing 10 mm/s.
Due to the location of the camera, as shown in Figure 2a, the output polymer flow and thus
the resulting road formation could only be seen through the camera when the extruder
tool moved from front to back on the build plate. The road of the previous layer could be
_Materials_ 2022, _15_, 618 10 of 20
viewed when the extruder tool moved in the opposite direction. The five deposition paths
with varying speeds in the test specimen were designed to be printed from the front of the
build plate to the back for this purpose.
Figure 8. Sequence of image processing steps used and corresponding algorithms-(1) four-point
perspective correction, (2) Bilateral Filtering, (3) Image re-sizing, (4) Adaptive Gaussian Thresholding,
(5) Multi-pass morphological closing, (6) REXR algorithm.
Figure 9. ( a ) Test specimen for in-situ vision-based extrusion width measurement consisting of
deposition paths of varying speeds highlighted in a blue dashed rectangle (200 mm). ( b ) Caliper measurement scheme at red intervals (20 mm). Yellow lines are locations of repeatability measurements
in the vicinity of a single red interval.
4.2.1. Sequence of Image Processing Operations to Measure Extrusion Width
Each frame in the video sequence was processed through a series of image processing
operations to identify road edges and measure the extrusion width in real-time. The initial
sequence of operations is similar to that used in the camera calibration procedure. In the
last stage, an algorithm was developed for robust road edge detection and extrusion width
measurement and is explained in Section 4.2.2. All the image processing operations were
run on an Nvidia Jetson TX2 embedded hardware board as shown in Figure 2a. First, the
_Materials_ 2022, _15_, 618 11 of 20
image frame in the video sequence was corrected for perspective using the _four-point warp_
_transform_ method that used the same 3 _×_ 3 transformation matrix obtained during camera
calibration, resulting in a normal top-down view of the image of the deposited road. Next,
the perspective corrected image was converted to grayscale and filtered using _bilateral_
_filtering_ [43], which is effective in noise removal while keeping edges sharp by taking into
account intensity difference between the pixels for determining the filter weights. An ROI
was chosen from the filtered image to speed up image processing and was then converted
into a binary image using the _adaptive_ _gaussian_ _thresholding_ method [41]. The resulting
binary image contained not so well-defined edges of the road, usually consisting of noisy
pixels and holes in the foreground object. To obtain a clearer definition of the road edges,
morphological operations such as _dilation_ and _erosion_ [44] were performed in that sequence,
which is also known as the _closing_ operation to remove small holes inside the foreground
extrusion width and small black points on the road. Rectangular kernels of size 8 _×_ 2 and
5 _×_ 2 were used for dilation and erosion operations respectively. Finally, the resulting
binary image was processed using an algorithm to accurately identify edges of the current
road and measurement of extrusion width, which is described next.
4.2.2. Robust Extrusion Width Recognizer (REXR) Algorithm
Starting with the binary image _B_ _∈_ R <sup>_m×n_</sup> of the deposited road obtained from the
sequence of image processing operations up to morphological closing operation discussed
in the previous section, the REXR algorithm scanned the image first across all the columns
in a given row (along _n_ direction) before moving onto the next row of pixels (along the
_m_ direction). Any transition from a white pixel to a black one could be a starting pixel of
a potential road edge and vice versa. Let _N_ _∈_ R <sup>_m×_</sup> <sup>1</sup> represent the column vector of the
number of edges found across all _n_ columns and for each row _m_ . _e_ represents the maximum
number of edges (white to black transitions) found across all the rows of the image, i.e.,
_e_ = max( _N_ ). Let _Es ∈_ R <sup>_m×e_</sup> denote the matrix containing pixel locations where there is a
white to black transition, i.e., _Bi_, _j_ = 0, and _Ee ∈_ R <sup>_m×e_</sup> denote the matrix containing pixel
locations where there is a black to white transition, i.e., _Bi_, _j_ = 255.
Typically, a well-defined image of a road should have two edges, but in real conditions,
there are cases where the image could have more than two edges. For example, if the
extrusion width of the currently deposited layer is narrower than that of the previously
deposited layer, the edges of the previous layer will be visible in the image and the total
number of edges in the image may exceed two. Additionally, there could be noisy black
pixels that could result in “pseudo-edges”. The REXR algorithm aims to identify the correct
set of edges of the road being deposited even in cases of poor edge definition (i.e., missing
edge pixels or discontinuity in edges). The algorithm computes starting and ending pixel coordinates of the left and right edges of the road, i.e., _ele f t_ ( _x_ 1, _y_ 1), _ele f t_ ( _x_ 1, _y_ 2), _eright_ ( _x_ 2, _y_ 1),
and _eright_ ( _x_ 2, _y_ 2), using _Es_, _Ee_, and _e_ . The _x_ coordinates of _ele f t_ and _eright_ represent the
average pixel location of the road edges. In cases where _e_ = 2, the _x_ coordinates of _ele f t_ and
_eright_ are given by Equations (3) and (4) respectively.
_ele f t_ ( _x_ 1) = 2 <sup><u>1</u></sup>
_m_
∑
_i_ =1
_k_ 1 _i_ + _k_ 2 _i_
_∀_ _k_ 1 _∈_ _Esm_,1[ _e_ ]; _k_ 2 _∈_ _Eem_,1[ _e_ ] _where e_ = 2
(3)
(4)
_eright_ ( _x_ 2) = <sup><u>1</u></sup> 2
_m_
∑
_i_ =1
_k_ 1 _i_ + _k_ 2 _i_
_∀_ _k_ 1 _∈_ _Esm_,2[ _e_ ]; _k_ 2 _∈_ _Eem_,2[ _e_ ] _where e_ = 2
Finally, the extrusion width ( _w_ ) is given by Equation (5)
_w_ = _eright_ ( _x_ 2) _−_ _ele f t_ ( _x_ 1) (5)
In cases where _e >_ 2 due to reasons described above, “true” left and right road edges
were computed using _Es_ and _Ee_ matrices using Equations. For case _e_ = 3, the start pixel
_Materials_ 2022, _15_, 618 12 of 20
locations of “true” left” and right edges were calculated using Equations (6) and (7). The
end pixel locations of “true” left and right edges ( _Ee_ <sup>ˆ</sup> _l_ and _Ee_ <sup>ˆ</sup> _r_ ) were also computed using
Equations (6) and (7) by replacing _Es_ with _Ee_ .
_Es_ ˆ _l_ = [ _k_ ] _∀_ _k ∈{Esm_,1 _} where e_ = 3 _and Esi_, _j_ _<_ <sup>_<u>n</u>_</sup> (6)
2
_Es_ ˆ _r_ = [ _k_ ] _∀_ _k ∈{Esm_,1 _} where e_ = 3 _and_ <sup>_<u>n</u>_</sup> 2 <sup>_<_</sup> <sup>_Esi_</sup> <sup>,</sup> <sup>_j_</sup> <sup>_<_</sup> <sup><u>3</u></sup> 4 <sup>_<u>n</u>_</sup> (7)
The _x_ coordinates of _ele f t_ and _eright_ were calculated based on pixel locations in vectors
_Es_ ˆ _l_ and _Es_ <sup>ˆ</sup> _r_ according to Equations (8)–(15).
_A i f_ _Es_ ˆ _l̸_ = ∅ _AND_ _Es_ ˆ _r_ = ∅ _AND length_ - _Es_ ˆ _l_ - _>_ _eth_
_B i f_ _Es_ ˆ _l_ = ∅ _AND_ _Es_ ˆ _r̸_ = ∅ _AND length_ - _Es_ ˆ _r_ - _>_ _eth_ _AND e_
_B i f_ _Es_ ˆ _l_ = ∅ _AND_ _Es_ ˆ _r̸_ = ∅ _AND length_ - _Es_ ˆ _r_ - _>_ _eth_ _AND e_ = 3
_C i f_ _Es_ ˆ _l_ = ∅ _AND_ _Es_ ˆ _r̸_ = ∅ _AND length_ - _Es_ ˆ _r_ - _>_ _eth_ _AND e ≥_ 2
_A i f_ _Es_ ˆ _l̸_ = ∅ _AND_ _Es_ ˆ _r_ = ∅ _AND length_
_̸_ - _Es_ ˆ _r_
_̸_ - _Es_ ˆ _r_
- _>_ _eth_ _AND e_ = 3 (8)
- _>_ _eth_ _AND e ≥_ 2
- _Es_ ˆ _l_
_ele f t_ ( _x_ 1) =
### A = 2 1 ∑( Es ˆ l + Ee ˆ l ) (9)
_B_ = <sup><u>1</u></sup> 2
_p_
∑
_i_ =1
_k_ 1 _i_ + _k_ 2 _i_
_∀_ _k_ 1 _∈_ _Esm_,1[ _e_ ]; _k_ 2 _∈_ _Eem_,1[ _e_ ] _where e_ = 3
(10)
(11)
_C_ = 2 <sup><u>1</u></sup>
_p_
∑
_i_ =1
_k_ 1 _i_ + _k_ 2 _i_
_∀_ _k_ 1 _∈_ _Esm_,1[ _e_ ]; _k_ 2 _∈_ _Eem_,1[ _e_ ] _where e_ = 2
- _Es_ ˆ _r_
_th_ _AND e ≥_ 2 (12)
- _>_ _eth_
_D i f_ _Es_ ˆ _l̸_ = ∅ _AND_ _Es_ ˆ _r_ = ∅ _AND length_
_D i f_ _Es_ ˆ _l̸_ = ∅ _AND_ _Es_ ˆ _r_ = ∅ _AND length_ - _Es_ ˆ _l_ - _>_ _eth_ _AND e_ = 3
_E i f_ _Es_ ˆ _l̸_ = ∅ _AND_ _Es_ ˆ _r_ = ∅ _AND length_ - _Es_ ˆ _l_ - _>_ _eth_ _AND e ≥_ 2
_Es_ ˆ _l̸_ = ∅ _AND_ _Es_ ˆ _r_ = ∅ _AND length_ - _Es_ ˆ _l_ - _>_ _eth_ _AND e ≥_ 2
_F i f_ _Es_ ˆ _l_ = ∅ _AND_ _Es_ ˆ _r̸_ = ∅ _AND length_ - _Es_ ˆ _r_ - _>_ _eth_
- _Es_ ˆ _l_
- _Es_ ˆ _l_
_eright_ ( _x_ 2) =
_D_ = 2 <sup><u>1</u></sup>
_p_
∑
_i_ =1
_k_ 1 _i_ + _k_ 2 _i_
_∀_ _k_ 1 _∈_ _Esm_,3[ _e_ ]; _k_ 2 _∈_ _Eem_,3[ _e_ ] _where e_ = 3
(13)
(14)
_E_ = <sup><u>1</u></sup> 2
_p_
∑
_i_ =1
_k_ 1 _i_ + _k_ 2 _i_
_∀_ _k_ 1 _∈_ _Esm_,2[ _e_ ]; _k_ 2 _∈_ _Eem_,2[ _e_ ] _where e_ = 2
### F = 1 2 ∑( Es ˆ r + Ee ˆ r ) (15)
Finally, for the case _e_ = 4, the same set of Equations could be used to compute “true”
left and right edges with an additional scenario when both _Es_ ˆ _l_, _Es_ ˆ _r̸_ = ∅. In that case,
vectors _Ee_ <sup>ˆ</sup> _l_ and _Ee_ <sup>ˆ</sup> _r_ were also computed using Equations (6) and (7) using elements where
_e_ = 4. Cases where _e >_ 4 typically consist of regions of noisy non-significant edges whose
pixel length is less than the threshold _eth_, which can be eliminated to identify true edges. In
all cases of _e_, the extrusion width ( _w_ ) was calculated according to Equation (5).
_4.3._ _Validation of Vision-Based Extrusion Width Measurements_
To validate the extrusion width measurements obtained using vision, the extrusion
width of the printed test specimen was also measured using calipers along the length of
the deposition path. Measurements were taken at an equal interval of 20 mm over the total
length (200 mm) of the deposition region as shown in Figure 9a. Furthermore, five measurements were taken in the vicinity of a single 20 mm interval for repeatability as illustrated
using yellow lines in Figure 9b. This resulted in a total of 50 caliper measurements per one
200 mm long deposition path. There was a total of five such deposition paths in the test
specimen, one for each deposition speed, i.e., 10 mm/s to 50 mm/s. A link to the video
_Materials_ 2022, _15_, 618 13 of 20
illustrating the working of the vision-based extrusion width measurement approach in real
time and associated code is provided in the Supplementary Materials section of this paper.
Figure 10 show the results of the vision-based extrusion width measurement in comparison to caliper measurements and target or slicer specified extrusion width for five
different deposition speeds. The _X_ -axis in each figure represents the frame number in the
video sequence. All the extrusion width measurements were taken using vision for the last
(i.e., 20th) layer. To denoise and smoothen the vision-based extrusion width measurements
computed for each frame of the video sequence, a moving averaging filter with a window
size of 20 samples was used. As evident from Figure 10, the vision-based extrusion width
measurements were in very good agreement with caliper measurements with an average
error of less than 0.08 mm.
Figure 10. Validation of the vision-based extrusion width measurements with caliper-based measurements for various deposition speeds ( a ) 30 mm/s, ( b ) Summary of measurements for 10, 20, 40 and
50 mm/s. Note: w-Target is the designed wall thickness.
_Materials_ 2022, _15_, 618 14 of 20
Additionally, the robustness of the vision-based extrusion width measurement approach was evaluated for various filament colors and polymer materials and the results
are provided in Appendix A.2. As evident from Figure A1, the tested filament colors
and materials did not affect the measurement accuracy of the extrusion width. Figure A2
provides error metrics (MAE and RMSE) for the performance of the vision-based extrusion
width measurement for different color filaments and materials. With maximum MAE and
RMSE values of 0.0325 mm and 0.0371 mm respectively, the vision-based measurement
approach can be confidently used for real-time process monitoring.
_4.4._ _Polymer Flowrate Estimation_
Using vision-based extrusion width ( _w_ ) measurements, it is possible to calculate the
output volumetric flowrate ( _Qout_ ) using the road geometry model. In our previous work
on robotic FFF System [6], we presented and experimentally validated the road geometry
model that is based on the flow guidelines provided by the open-source slicing software
“slic3r” for modeling the resulting road geometry [45]. In the FFF process, a thermoplastic
fed into the hot-end at a rate ( _vE_ ) defined by the deposition head
filament of diameter
_d f_
velocity ( _vd_ ) and pushed out of a nozzle with a circular orifice with a diameter ( _dn_ ) results
in a rectangular road with semi-circular ends [46]. The road takes this geometry when
molten plastic out of the nozzle is deposited onto the bed, or a previous layer separated by
a small distance equal to layer height ( _h_ ).
The cross-sectional area of the deposited road is given by,
- _π ×_ <sup>_<u>h</u>_</sup> <sup>2</sup>
4
(16)
_Aroad_ = ( _w × h_ ) _−_
��1 _−_ <sup>_<u>π</u>_</sup>
4
- _× h_ <sup>2�</sup>
= (( _w −_ _h_ ) _× h_ ) +
The output volumetric flowrate ( _Qout_ ) can be calculated using road cross-sectional
area ( _Aroad_ ) and deposition velocity ( _vd_ ) as follows,
_Qout_ = _Aroad × vd_ (17)
The average layer height - _h_ ˆ - is measured using a custom robot-based dial indicator
probing method wherein the overall height of the test specimen is measured at the same
caliper measurement points and is divided by the number of layers. Typically, the actual
layer height will be the same as the commanded layer height ( _h_ ), i.e., _h_ <sup>ˆ</sup> <sup>_∼_</sup> = _h_ because
layer height is largely dictated by the positioning accuracy of the _Z_ -axis motion system.
Moreover, as shown in our previous work [6], bed leveling and compensation algorithms
can be effectively used to account for any deviations in print bed surface to achieve the
requested road geometry.
The average layer height
- _h_ ˆ
Figure 11a shows a box plot of _Qout_ calculated using _w_ for different _vd_ . Figure 11b plots
-
the actual volumetric flowrate ( _QActual_ ) vs. requested volumetric flowrate _Qrequested_ for
the entire tested operating region of the FFF process. The dotted black line represents the
ideal case of volumetric flowrate conservation assumption, i.e., ( _Qin_ = _Qout_ ), resulting
in a 45 <sup>_◦_</sup> line. _QActual_ = _Qout_ (blue line) was computed according to Equation (17) using
average measured values for _w_ and _h_ . With an _R_ <sup>2</sup> value of 99.91%, the _Qout_ calculated
vision-based extrusion width measurement is in agreement with the requested volumetric
the actual volumetric flowrate ( _QActual_ ) vs. requested volumetric flowrate
_Qrequested_
-
flowrate _Qrequested_ and demonstrates that _Qout_ can be reliably measured using the vision
approach using the proposed REXR algorithm.
flowrate
_Qrequested_
_Materials_ 2022, _15_, 618 15 of 20
Figure 11. Output volumetric flowrate calculated using vision-based extrusion width measurements
and part height measurements. ( a ) Box plot showing for _Qout_ for different deposition velocities;
( b ) _Qout_ calculated using vision (blue line) vs. requested from the slicer. The dotted black line shows
an ideal case where measured _Qout_ = requested _Qout_ .
_4.5._ _Frame Processing Time Considerations_
An important consideration in deploying vision-based measurement techniques, in
addition to measurement accuracy, is the achievable measurement sampling rate, i.e., how
quickly measurements can be made. In general, all video cameras have a metric to describe
the acquisition rate called “frames per second (FPS)”, but the measurement sampling rate
will be limited by the computing time required for image processing. The camera used in
this study had a rated video acquisition rate of 20 FPS; however, based on experimental
_Materials_ 2022, _15_, 618 16 of 20
data, the actual achievable video acquisition rate was found to be 13–14 FPS. To evaluate
the average time required to process a single frame and to determine the measurement
sampling rate achievable, the complete sequence of image processing steps described in
Sections 4.2.1 and 4.2.2 were timed during execution on the Nvidia Jetson TX2 board and
PC with an Intel Core i5-7300U CPU + 8 GB RAM. Figure 12 shows the average frame
processing times (FPT) on PC and Nvidia board along with the number of frames available
for different deposition velocities in the test specimen. As the deposition velocity increased,
the length of the video acquisition and the number of frames decreased for the same
deposition path length. The vision-based extrusion width measurement approach took
about 0.687 s on PC and 1.78 s on the Nvidia board to process a single frame, resulting in a
sampling rate of about 1.45 and 0.56 samples per second, respectively. Finally, as evident
from Figure 12, the FPT remained the same irrespective of deposition velocity.
Figure 12. Summary of frame processing time (FPT) for in-situ extrusion width measurement.
5. Conclusions and Future Work
In this paper, we engineered an instrumentation system consisting of sensors and
signal processing for real-time estimation of two main process variables in the FFF process:
(i) temperature of the polymer melt immediately exiting the nozzle ( _Tout_ ) and (ii) output
volumetric flowrate ( _Qout_ ), also referred to as “Polymer flowrate”, using extrusion width
( _w_ ) measurements. We designed experiments to develop a response surface model for
estimation of _Tout_ as a function of process inputs: deposition velocity ( _vd_ ) and liquefier
temperature ( _TL_ ) and for two materials: PLA and PETG, which is valid over the entire
operating region of the FFF process. A regular 0.6 mm brass nozzle was modified to
include a thermocouple in the hex region where polymer melting occurs. The temperature
measured using the nozzle thermocouple was used for emissivity calibration of IR-based
temperature measurements of polymer exiting the nozzle. The resulting emissivity value
differed from ones available in existing literature, indicating the nozzle thermocouple
measures a mixture of nozzle wall and polymer temperatures. On average, the temperature
of the polymer immediately exiting the nozzle was found to be 15 to 20 <sup>_◦_</sup> C colder than the
temperature reported from the stock thermocouple in the hot-end. The resulting response
surface models can be used for estimating _Tout_ as a function of input filament volumetric
flowrate ( _Q_ ) and _TL_ for PLA and PETG materials and had excellent fits of _R_ <sup>2</sup> = 99.96%
and 99.39% respectively. For estimating _Qout_, we used a vision-based approach utilizing a
continuous video sequence from a USB microscope camera to measure _w_ during deposition.
A sequence of image processing operations available in the OpenCV library was applied
_Materials_ 2022, _15_, 618 17 of 20
to each frame of the video sequence to correct for camera orientation, denoising, ROI
extraction, and binarization. An algorithm called “robust extrusion width recognizer”
(REXR) was developed to accurately identify road edges and measure extrusion width
from binary images. Vision-based extrusion width measurements obtained during printing
of a single-walled test specimen with regions of varying deposition velocity showed
excellent agreement with caliper measurements with a maximum error of 0.08 mm and
were robust to tested filament colors and materials. Finally, _Qout_ computed based on the
road geometry model using measured _w_ and _h_ values had a fit of _R_ <sup>2</sup> = 99.91% and closely
matched the requested volumetric flow rate from the slicer.
One of the future research opportunities that arises from this work is to use the realtime estimations of process variables for feedback process control to improve part quality.
While the measurement rate of vision-based extrusion width is acceptable for process
monitoring, it needs to be improved for real-time control. Additionally, due to the location
of the camera, extrusion width in the blind-spot regions during deposition could not be
measured at this time. This could be addressed by having multiple cameras or a camera
positioning mechanism around the nozzle. Our future and ongoing work will address
these and other advances.
Supplementary Materials: Developed code for vision-based extrusion width measurement is available on GitHub: [https://github.com/rakshithb/FFF-Vision, accessed on 13 December 2021; Video of](https://github.com/rakshithb/FFF-Vision)
vision-based extrusion width measurement approach on YouTube: [https://youtu.be/pUR17u_Hyds,](https://youtu.be/pUR17u_Hyds)
accessed on 13 December 2021.
Author Contributions: Conceptualization, R.B. and V.P.; methodology, software, validation, formal
analysis, writing—original draft preparation, R.B.; writing—review and editing, R.B and V.P.; visualization, R.B.; supervision, project administration, funding acquisition, V.P. All authors have read and
agreed to the published version of the manuscript.
Funding: This research received no external funding.
Institutional Review Board Statement: Not applicable.
Informed Consent Statement: Not applicable.
Data Availability Statement: The data presented in this study are available on request from the
corresponding author.
Conflicts of Interest: The authors declare no conflict of interest.
List of Abbreviations
CNN Convolutional Neural Networks
CV Computer Vision
FFF Fused Filament Fabrication
FPS Frames Per Second
FPT Frame Processing Time
I/O Input/Output
MIMO Multi-Input Multi-Output
PETG Polyethylene terephthalate glycol
PID Proportional Integral Derivative
PLA Polylactic Acid
PLC Programmable Logic Controller
ROI Region of Interest
TCP/IP Transmission Control Protocol/Internet Protocol
USB Universal Serial Bus
_Materials_ 2022, _15_, 618 18 of 20
Appendix A
_Appendix A.1._ _Pseudocode for Camera Calibration_
Table A1. Pseudocode to compute average mm/pixel value for camera calibration.
Pseudocode to Compute Average mm/pixel Value
Input: Binary image of scale graduations; size: _m_ _×_ _n_
Output: average mm/pixel value
1. Scan the image first across rows and then across columns. A hatch start has a black to white
pixel transition while a hatch end has the opposite transition. Obtain ma-trices containing
locations of hatch mark start and end: _hs_ _{_ _size_ : ( _H_ _×_ _n_ ) _}_ and _he_ _{_ _size_ : ( _H_ _×_ _n_ ) _}_ . Compute
center of hatch marks using start and end matrices _hc_ _{_ _size_ : ( 1 _×_ _H_ ) _}_ where _H_ is the total
number of hatch marks found in the image.
FOR _i_ in range (number of columns in the binary image)
_|_ RESET index k and hatch marks counter H
_|_ FOR _j_ in range (number of rows in the binary image)
_|_ _|_ IF pixel value at location [ _i_, _j_ ] _≥_ 250
_|_ _|_ _|_ IF found_hatch_flag IS FALSE
_|_ _|_ _|_ _|_ SET found_hatch_flag to TRUE
_|_ _|_ _|_ _|_ record location of hatch start: _hs_ [ _i_ ][ _k_ ] = _j_
_|_ _|_ _|_ _|_ INCREMENT index k
_|_ _|_ _|_ _|_ INCREMENT hatch marks counter _H_
_|_ _|_ _|_ END IF
_|_ _|_ ELSE (i.e., check if a black pixel is found)
_|_ _|_ _|_ IF found_hatch_flag IS TRUE
_|_ _|_ _|_ _|_ record location of hatch end: _he_ [ _i_ ][ _k_ _−_ 1 ] = _j_ _−_ 1
_|_ _|_ _|_ _|_ SET found_hatch_flag to FALSE
_|_ _|_ _|_ END IF
_|_ _|_ END IF
_|_ END FOR
_|_ Compute center of hatch marks _hc_ [ _i_ ] = <sup><u>1</u></sup> 2 <sup>∑</sup> _l_ <sup>_H_</sup> = 1 <sup>(</sup> <sup>_hs_</sup> <sup>[</sup> <sup>_i_</sup> <sup>,</sup> <sup>_l_</sup> <sup>] +</sup> <sup>_he_</sup> <sup>[</sup> <sup>_i_</sup> <sup>,</sup> <sup>_l_</sup> <sup>])</sup>
END FOR
2. Let _hc_ = [ _hc_ 1, _hc_ 2, _hc_ 3, . . ., _hcH_ ] then the distance between the center of hatch marks is
_d_ = [ _d_ 1, _d_ 2, . . ., _dH_ _−_ 1 ] = [ _hci_ + 1 _−_ _hci_ ] _∀_ _i_ = 1, 2, . . ., _H_
3. The average mm-per-pixel value is the average of all elements in 1-D row vector _d_ .
_Appendix A.2._ _Robustness Evaluation of Vision-Based Extrusion Width Measurement Approach_
Figure A1. Summary of vision-based extrusion width measurements for different colored filaments
and materials.
_Materials_ 2022, _15_, 618 19 of 20
Figure A2. Mean Absolute Error (MAE) and Root Mean Square Error (RMSE) metrics for performance
evaluation of FFF vision for different colored filaments and materials.
References
1. Curran, S.; Chambon, P.; Lind, R.; Love, L.; Wagner, R.; Whitted, S.; Smith, D.; Post, B.; Graves, R.; Blue, C.; et al. Big Area Additive
Manufacturing and Hardware-in-the-Loop for Rapid Vehicle Powertrain Prototyping: A Case Study on the Development of a
3-D-Printed Shelby Cobra. In _Proceedings of the SAE Technical Papers_ ; SAE International: Warrendale, PA, USA, 2016.
2. Moreno Nieto, D.; Casal López, V.; Molina, S.I. Large-format polymeric pellet-based additive manufacturing for the naval industry.
_Addit._ _Manuf._ 2018, _23_, 79–85. [[CrossRef]](http://doi.org/10.1016/j.addma.2018.07.012)
3. Scaffaro, R.; Maio, A.; Gulino, E.F.; Alaimo, G.; Morreale, M. Green composites based on pla and agricultural or marine waste
prepared by fdm. _Polymers_ 2021, _13_, 1361. [[CrossRef] [PubMed]](http://doi.org/10.3390/polym13091361)
4. Serdeczny, M.P.; Comminal, R.; Pedersen, D.B.; Spangenberg, J. Experimental and analytical study of the polymer melt flow
through the hot-end in material extrusion additive manufacturing. _Addit._ _Manuf._ 2020 . [[CrossRef]](http://doi.org/10.1016/j.addma.2019.100997)
5. Nienhaus, V.; Smith, K.; Spiehl, D.; Dörsam, E. Investigations on nozzle geometry in fused filament fabrication. _Addit._ _Manuf._
2019, _28_, 711–718. [[CrossRef]](http://doi.org/10.1016/j.addma.2019.06.019)
6. Badarinath, R.; Prabhu, V. Integration and evaluation of robotic fused filament fabrication system. _Addit._ _Manuf._ 2021, _41_ .
[[CrossRef]](http://doi.org/10.1016/j.addma.2021.101951)
7. Turner, B.N.; Strong, R.; Gold, S.A. A review of melt extrusion additive manufacturing processes: I. Process design and modeling.
_Rapid Prototyp._ _J._ 2014, _20_, 192–204. [[CrossRef]](http://doi.org/10.1108/RPJ-01-2013-0012)
8. Coogan, T.J.; Kazmer, D.O. Bond and part strength in fused deposition modeling. _Rapid Prototyp._ _J._ 2017, _23_, 414–422. [[CrossRef]](http://doi.org/10.1108/RPJ-03-2016-0050)
9. Bartolai, J.; Simpson, T.W.; Xie, R. Predicting strength of additively manufactured thermoplastic polymer parts produced using
material extrusion. _Rapid Prototyp._ _J._ 2018, _24_, 321–332. [[CrossRef]](http://doi.org/10.1108/RPJ-02-2017-0026)
10. Kuznetsov, V.E.; Solonin, A.N.; Tavitov, A.; Urzhumtsev, O.; Vakulik, A. Increasing strength of FFF three-dimensional printed
parts by influencing on temperature-related parameters of the process. _Rapid Prototyp._ _J._ 2020, _26_, 107–121. [[CrossRef]](http://doi.org/10.1108/RPJ-01-2019-0017)
11. Coogan, T.J.; Kazmer, D.O. In-line rheological monitoring of fused deposition modeling. _J. Rheol._ 2019, _63_, 141–155. [[CrossRef]](http://doi.org/10.1122/1.5054648)
12. Anderegg, D.A.; Bryant, H.A.; Ruffin, D.C.; Skrip, S.M.; Fallon, J.J.; Gilmer, E.L.; Bortner, M.J. In-situ monitoring of polymer flow
temperature and pressure in extrusion based additive manufacturing. _Addit._ _Manuf._ 2019, _26_, 76–83. [[CrossRef]](http://doi.org/10.1016/j.addma.2019.01.002)
13. Pollard, D.; Ward, C.; Herrmann, G.; Etches, J. Filament Temperature Dynamics in Fused Deposition Modelling and Outlook for
Control. _Procedia Manuf._ 2017, _11_, 536–544. [[CrossRef]](http://doi.org/10.1016/j.promfg.2017.07.147)
14. Bellini, A.; Guc˛eri, S.; Bertoldi, M. Liquefier Dynamics in Fused Deposition. _J. Manuf._ _Sci._ _Eng._ 2004, _126_, 237. [[CrossRef]](http://doi.org/10.1115/1.1688377)
15. Phan, D.D.; Swain, Z.R.; Mackay, M.E. Rheological and heat transfer effects in fused filament fabrication. _J._ _Rheol._ 2018,
_62_, 1097–1107. [[CrossRef]](http://doi.org/10.1122/1.5022982)
16. Osswald, T.A.; Puentes, J.; Kattinger, J. Fused filament fabrication melting model. _Addit._ _Manuf._ 2018, _22_, 51–59. [[CrossRef]](http://doi.org/10.1016/j.addma.2018.04.030)
17. Ferraris, E.; Zhang, J.; Van Hooreweder, B. Thermography based in-process monitoring of Fused Filament Fabrication of polymeric
parts. _CIRP Ann._ 2019, _68_, 213–216. [[CrossRef]](http://doi.org/10.1016/j.cirp.2019.04.123)
18. Vanaei, H.R.; Deligant, M.; Shirinbayan, M.; Raissi, K.; Fitoussi, J.; Khelladi, S.; Tcharkhtchi, A. A comparative in-process
monitoring of temperature profile in fused filament fabrication. _Polym._ _Eng._ _Sci._ 2021, _61_, 68–76. [[CrossRef]](http://doi.org/10.1002/pen.25555)
19. Seppala, J.E.; Migler, K.D. Infrared thermography of welding zones produced by polymer extrusion additive manufacturing.
_Addit._ _Manuf._ 2016, _12_, 71–76. [[CrossRef]](http://doi.org/10.1016/j.addma.2016.06.007)
20. Malekipour, E.; Attoye, S.; El-Mounayri, H. Investigation of Layer Based Thermal Behavior in Fused Deposition Modeling Process
by Infrared Thermography. _Procedia Manuf._ 2018, _26_, 1014–1022. [[CrossRef]](http://doi.org/10.1016/j.promfg.2018.07.133)
_Materials_ 2022, _15_, 618 20 of 20
21. Fang, T.; Jafari, M.A.; Danforth, S.C.; Safari, A. Signature analysis and defect detection in layered manufacturing of ceramic
sensors and actuators. _Mach._ _Vis._ _Appl._ 2003, _15_, 63–75. [[CrossRef]](http://doi.org/10.1007/s00138-002-0074-1)
22. Cheng, Y.; Jafari, M.A. Vision-Based Online Process Control in Manufacturing Applications. _IEEE Trans._ _Autom._ _Sci._ _Eng._ 2008,
_5_, 140–153. [[CrossRef]](http://doi.org/10.1109/TASE.2007.912058)
23. Liu, C.; Law, A.C.C.; Roberson, D.; Kong, Z. Image analysis-based closed loop quality control for additive manufacturing with
fused filament fabrication. _J. Manuf._ _Syst._ 2019, _51_, 75–86. [[CrossRef]](http://doi.org/10.1016/j.jmsy.2019.04.002)
24. Wu, Y.; He, K.; Zhou, X.; DIng, W. Machine vision based statistical process control in fused deposition modeling. In Proceedings
of the 2017 12th IEEE Conference on Industrial Electronics and Applications, ICIEA 2017, Siem Reap, Cambodia, 18–20 June 2017;
pp. 936–941.
25. He, K.; Zhang, Q.; Hong, Y. Profile monitoring based quality control method for fused deposition modeling process. _J. Intell._
_Manuf._ 2019, _30_, 947–958. [[CrossRef]](http://doi.org/10.1007/s10845-018-1424-9)
26. Holzmond, O.; Li, X. In situ real time defect detection of 3D printed parts. _Addit._ _Manuf._ 2017, _17_, 135–142. [[CrossRef]](http://doi.org/10.1016/j.addma.2017.08.003)
27. Shen, H.; Sun, W.; Fu, J. Multi-view online vision detection based on robot fused deposit modeling 3D printing technology. _Rapid_
_Prototyp._ _J._ 2019, _25_, 343–355. [[CrossRef]](http://doi.org/10.1108/RPJ-03-2018-0052)
28. Moretti, M.; Rossi, A.; Senin, N. In-process monitoring of part geometry in fused filament fabrication using computer vision and
digital twins. _Addit._ _Manuf._ 2021, _37_, 101609. [[CrossRef]](http://doi.org/10.1016/j.addma.2020.101609)
29. Li, L.; McGuan, R.; Kavehpour, P.; Candler, R.N. Precision enhancement of 3D printing via in situ metrology. In Proceedings of the
Solid Freeform Fabrication 2018: 29th Annual International Solid Freeform Fabrication Symposium—An Additive Manufacturing
Conference, SFF 2018, Austin, TX, USA, 13–15 August 2018; pp. 251–260.
30. Jin, Z.; Zhang, Z.; Gu, G.X. Autonomous in-situ correction of fused deposition modeling printers using computer vision and deep
learning. _Manuf._ _Lett._ 2019, _22_, 11–15. [[CrossRef]](http://doi.org/10.1016/j.mfglet.2019.09.005)
31. New Bondtech Mini Geared (BMG) Extruder for E3D Hotends. Available online: [https://www.bondtech.se/product/bmg-](https://www.bondtech.se/product/bmg-extruder/)
[extruder/ (accessed on 13 December 2021).](https://www.bondtech.se/product/bmg-extruder/)
32. Teknic CPM-SDSK-2331S-RLN|Torque = 620 oz-in, Speed = 2520 rpm. Available online: [https://www.teknic.com/model-info/](https://www.teknic.com/model-info/CPM-SDSK-2331S-RLN/)
[CPM-SDSK-2331S-RLN/ (accessed on 10 January 2020).](https://www.teknic.com/model-info/CPM-SDSK-2331S-RLN/)
33. Amazon.com Wireless Digital Microscope Handheld USB HD Inspection Camera 50 _×_ -1000 _×_ Magnification. Available online:
[https://www.amazon.com/Microscope-Magnification-Inspection-Compatible-Smartphone/dp/B07PVMRZQH (accessed on 15](https://www.amazon.com/Microscope-Magnification-Inspection-Compatible-Smartphone/dp/B07PVMRZQH)
November 2019).
34. Optris Extremely Fast and Accurate Infrared Cameras Optris PI400/PI450. Available online: [https://www.optris.com/thermal-](https://www.optris.com/thermal-imager-pi400i-pi450i)
[imager-pi400i-pi450i (accessed on 13 December 2021).](https://www.optris.com/thermal-imager-pi400i-pi450i)
35. Optris GmbH IR Camera Software Optris PI Connect for Thermographic Analysis. Available online: [https://www.optris.com/](https://www.optris.com/pix-connect)
[pix-connect (accessed on 15 August 2020).](https://www.optris.com/pix-connect)
36. McMaster-Carr Thermocouple Probe for Surfaces, Iron Probe, 12 Feet Long Cable|McMaster-Carr. Available online: [https:](https://www.mcmaster.com/9251T76/)
[//www.mcmaster.com/9251T76/ (accessed on 15 December 2019).](https://www.mcmaster.com/9251T76/)
37. Morgan, R.V.; Reid, R.S.; Baker, A.M.; Lucero, B.; Bernardin, J.D. _Emissivity Measurements of Additively Manufactured Materials_ ; Los
Alamos National Lab: Los Alamos, NM, USA, 2017. [[CrossRef]](http://doi.org/10.2172/1341825)
38. Optris Infrared Sensing, L. OPTRIS IR Product Manual Emissivity Tables. Available online: [https://www.optris.com/infrared-](https://www.optris.com/infrared-cameras?file=tl_files/pdf/Downloads/BrochuresUS/Optrisbasicbrochure.pdf)
[cameras?file=tl_files/pdf/Downloads/BrochuresUS/Optrisbasicbrochure.pdf (accessed on 25 June 2021).](https://www.optris.com/infrared-cameras?file=tl_files/pdf/Downloads/BrochuresUS/Optrisbasicbrochure.pdf)
39. OpenCV OpenCV: Geometric Transformations of Images. Available online: [https://docs.opencv.org/4.5.2/da/d6e/tutorial_py_](https://docs.opencv.org/4.5.2/da/d6e/tutorial_py_geometric_transformations.html)
[geometric_transformations.html (accessed on 10 May 2021).](https://docs.opencv.org/4.5.2/da/d6e/tutorial_py_geometric_transformations.html)
40. Itseez Open Source Computer Vision. Available online: [https://opencv.org/ (accessed on 10 May 2021).](https://opencv.org/)
41. OpenCV OpenCV: Image Thresholding. Available online: [https://docs.opencv.org/4.5.2/d7/d4d/tutorial_py_thresholding.html](https://docs.opencv.org/4.5.2/d7/d4d/tutorial_py_thresholding.html)
(accessed on 10 May 2021).
42. Otsu, N. Threshold selection method from gray-level histograms. _IEEE Trans._ _Syst._ _Man Cybern._ 1979, _SMC-9_, 62–66. [[CrossRef]](http://doi.org/10.1109/TSMC.1979.4310076)
43. A Gentle Introduction to Bilateral Filtering and Its Applications. Available online: [http://people.csail.mit.edu/sparis/bf_course/](http://people.csail.mit.edu/sparis/bf_course/#intro)
[#intro (accessed on 12 January 2021).](http://people.csail.mit.edu/sparis/bf_course/#intro)
44. OpenCV OpenCV: Morphological Transformations. Available online: [https://docs.opencv.org/4.5.2/d9/d61/tutorial_py_](https://docs.opencv.org/4.5.2/d9/d61/tutorial_py_morphological_ops.html)
[morphological_ops.html (accessed on 10 May 2021).](https://docs.opencv.org/4.5.2/d9/d61/tutorial_py_morphological_ops.html)
45. Hodgson, G.; Ranelluci, A.; Moe, J. Slic3r Manual—Flow Math. Available online: [http://manual.slic3r.org/advanced/flow-math](http://manual.slic3r.org/advanced/flow-math)
(accessed on 20 December 2020).
46. Serdeczny, M.P.; Comminal, R.; Pedersen, D.B.; Spangenberg, J. Experimental validation of a numerical model for the strand
shape in material extrusion additive manufacturing. _Addit._ _Manuf._ 2018, _24_, 145–153. [[CrossRef]](http://doi.org/10.1016/j.addma.2018.09.022)
섹션 본문
섹션 본문이 없습니다.
참고문헌 26건
- Big Area Additive Manufacturing and Hardware-in-the-Loop for Rapid Vehicle Powertrain Prototyping: A Case Study on the Development of a 3-D-Printed Shelby Cobra SAE technical papers on CD-ROM/SAE technical paper series · 2016 10.4271/2016-01-0328
- Large-format polymeric pellet-based additive manufacturing for the naval industry Additive manufacturing · Elsevier BV · 2018 10.1016/j.addma.2018.07.012
- Green Composites Based on PLA and Agricultural or Marine Waste Prepared by FDM Polymers · Multidisciplinary Digital Publishing Institute · 2021 10.3390/polym13091361
- Experimental and analytical study of the polymer melt flow through the hot-end in material extrusion additive manufacturing Additive manufacturing · Elsevier BV · 2019 10.1016/j.addma.2019.100997
- Integration and evaluation of robotic fused filament fabrication system Additive manufacturing · Elsevier BV · 2021 10.1016/j.addma.2021.101951
- A review of melt extrusion additive manufacturing processes: I. Process design and modeling Rapid Prototyping Journal · Emerald Publishing Limited · 2014 10.1108/rpj-01-2013-0012
- Bond and part strength in fused deposition modeling Rapid Prototyping Journal · Emerald Publishing Limited · 2017 10.1108/rpj-03-2016-0050
- Predicting strength of additively manufactured thermoplastic polymer parts produced using material extrusion Rapid Prototyping Journal · Emerald Publishing Limited · 2018 10.1108/rpj-02-2017-0026
- Increasing strength of FFF three-dimensional printed parts by influencing on temperature-related parameters of the process Rapid Prototyping Journal · Emerald Publishing Limited · 2019 10.1108/rpj-01-2019-0017
- In-line rheological monitoring of fused deposition modeling Journal of Rheology · American Institute of Physics · 2018 10.1122/1.5054648
- Filament Temperature Dynamics in Fused Deposition Modelling and Outlook for Control Procedia Manufacturing · Elsevier BV · 2017 10.1016/j.promfg.2017.07.147
- Liquefier Dynamics in Fused Deposition Journal of Manufacturing Science and Engineering · ASM International · 2004 10.1115/1.1688377
- Rheological and heat transfer effects in fused filament fabrication Journal of Rheology · American Institute of Physics · 2018 10.1122/1.5022982
- Thermography based in-process monitoring of Fused Filament Fabrication of polymeric parts CIRP Annals · Elsevier BV · 2019 10.1016/j.cirp.2019.04.123
- A comparative in‐process monitoring of temperature profile in fused filament fabrication Polymer Engineering and Science · Wiley · 2020 10.1002/pen.25555
- Investigation of Layer Based Thermal Behavior in Fused Deposition Modeling Process by Infrared Thermography Procedia Manufacturing · Elsevier BV · 2018 10.1016/j.promfg.2018.07.133
- Signature analysis and defect detection in layered manufacturing of ceramic sensors and actuators Machine Vision and Applications · Springer Science+Business Media · 2003 10.1007/s00138-002-0074-1
- Vision-Based Online Process Control in Manufacturing Applications IEEE Transactions on Automation Science and Engineering · Institute of Electrical and Electronics Engineers · 2008 10.1109/tase.2007.912058
- Image analysis-based closed loop quality control for additive manufacturing with fused filament fabrication Journal of Manufacturing Systems · Elsevier BV · 2019 10.1016/j.jmsy.2019.04.002
- Machine vision based statistical process control in fused deposition modeling 2017 10.1109/iciea.2017.8282973
- Profile monitoring based quality control method for fused deposition modeling process Journal of Intelligent Manufacturing · Springer Science+Business Media · 2018 10.1007/s10845-018-1424-9
- Multi-view online vision detection based on robot fused deposit modeling 3D printing technology Rapid Prototyping Journal · Emerald Publishing Limited · 2018 10.1108/rpj-03-2018-0052
- Autonomous in-situ correction of fused deposition modeling printers using computer vision and deep learning Manufacturing Letters · Elsevier BV · 2019 10.1016/j.mfglet.2019.09.005
- Emissivity Measurements of Additively Manufactured Materials 2017 10.2172/1341825
- A Threshold Selection Method from Gray-Level Histograms IEEE Transactions on Systems Man and Cybernetics · Institute of Electrical and Electronics Engineers · 1979 10.1109/tsmc.1979.4310076
- A gentle introduction to bilateral filtering and its applications 2007 10.1145/1281500.1281602