You are on page 1of 11

This article was downloaded by:

On: 21 January 2011


Access details: Access Details: Free Access
Publisher Taylor & Francis
Informa Ltd Registered in England and Wales Registered Number: 1072954 Registered office: Mortimer House, 37-
41 Mortimer Street, London W1T 3JH, UK

Drying Technology
Publication details, including instructions for authors and subscription information:
http://www.informaworld.com/smpp/title~content=t713597247

Computer-Vision System for Control of Drying Processes


A. I. Martynenkoa
a
School of Engineering, University of Guelph, Guelph, ON, Canada

To cite this Article Martynenko, A. I.(2006) 'Computer-Vision System for Control of Drying Processes', Drying
Technology, 24: 7, 879 — 888
To link to this Article: DOI: 10.1080/07373930600734067
URL: http://dx.doi.org/10.1080/07373930600734067

PLEASE SCROLL DOWN FOR ARTICLE

Full terms and conditions of use: http://www.informaworld.com/terms-and-conditions-of-access.pdf

This article may be used for research, teaching and private study purposes. Any substantial or
systematic reproduction, re-distribution, re-selling, loan or sub-licensing, systematic supply or
distribution in any form to anyone is expressly forbidden.

The publisher does not give any warranty express or implied or make any representation that the contents
will be complete or accurate or up to date. The accuracy of any instructions, formulae and drug doses
should be independently verified with primary sources. The publisher shall not be liable for any loss,
actions, claims, proceedings, demand or costs or damages whatsoever or howsoever caused arising directly
or indirectly in connection with or arising out of the use of this material.
Drying Technology, 24: 879–888, 2006
Copyright # 2006 Taylor & Francis Group, LLC
ISSN: 0737-3937 print/1532-2300 online
DOI: 10.1080/07373930600734067

Computer-Vision System for Control of Drying Processes


A. I. Martynenko
School of Engineering, University of Guelph, Guelph, ON, Canada

quantifying of morphological,[4,12] color,[13,14] and textural[6]


Computer-vision system (CVS) for control of a drying process features of agricultural and food materials. Selection of the
with a portable CCD camera with IEEE-1396 interface and config- minimal set of non-correlated features, sufficient for
urable software LabView 7.0 and IMAQTM 6.1 was developed. An discrimination of object attributes in an informational space,
object area was continuously monitored through the CVS by was recognized as one of the most important issues in image
extracting the green plane from the RGB color space followed by
thresholding and pixel counting. An object color was continuously analysis.[7,15] Usually it requires careful image pre-processing:
monitored through the CVS as color intensity in the hue- segmentation, pixels clustering, optimal thresholding, and
saturation-intensity (HSI) color space. The observability of a drying advanced data analysis.[3,16] To improve a computer vision
process was provided due to online image analysis and correlation of systems a variety of learning techniques were developed.[17]
image attributes (area, color, texture) with physical parameters of An application of computer vision for apple slices dehy-
drying (moisture, quality). A relationship between area shrinkage
dration has been recently reported.[8] Experiments showed
Downloaded At: 03:29 21 January 2011

and moisture content was used for online estimation of actual moist-
ure content. A relationship between color intensity and quality was significant changes in the shape, color and texture of apple
used for online estimation of quality degradation. slices, produced by drying. However, the gap between
Experimental study of the CVS for ginseng drying showed image attributes and physical parameters of drying (moist-
advantages of computer-vision for online monitoring of important ure, quality) essentially limits the use of computer vision
state variables, such as moisture content and material quality. Color
measurements demonstrated high sensitivity of quality to drying for control of drying processes.
conditions: drying at 50C resulted in significant color changes The objective of this study was to develop a CVS for
and unacceptable quality degradation. The quality of roots in automated control of a drying process with practical appli-
three-stage (38-50-38C) drying process was compatible with recom- cation for ginseng root drying. Ginseng root is a good
mended isothermal (38C) drying due to significant (30–40%) example of temperature-sensitive biomaterial,[18] which
reduction of drying time. This control strategy was used in a pilot
batch dryer for temperature control with respect to quality. Testing requires careful thermal processing. The best temperature
of a pilot dryer with embedded CVS proved stability and robustness for ginseng root has been reported as 38C;[19,20] however,
of control strategy, combined with high accuracy in the estimation of drying at this temperature to target moisture 0.1 g=g (db)
moisture content (8–14% of error with 95% confidence). The takes about two weeks. Increasing the temperature to
composite moisture measurements at the endpoint demonstrated 45–50C essentially accelerates drying; however this results
uniform drying of root mixture to target moisture content 0.1 g/g
(db) with minor variations between individual roots in the range of in undesirable browning.[19] To avoid quality degradation
0.07–0.12 g/g. Li[21] proposed a three-stage temperature control 38-50-
38C; changing air temperature according to the critical
Keywords Color; Ginseng; Machine-vision; Moisture; Quality; root moisture content. As highlighted by Davidson
Shrinkage et al.,[22] a lot of complex mechanisms are involved in qual-
ity changes, which make it difficult to control.
INTRODUCTION A ginseng quality is specified as a desirable color, tex-
The use of computer-vision for industrial control keeps ture, and moisture content.[23] All of these variables are
on growing.[1,2] Recent advances in software development measurable with computer-vision. It follows that appropri-
essentially extended the area of computer-vision applica- ate control of ginseng drying can be developed on the
tions for fruit grading,[3] cereal grain classification,[4–7] basis of computer vision and online image processing. To
apple slices dehydration,[8] and food inspection.[9–11] achieve the objective, the procedures of image segmen-
Computer-vision offers a tremendous resolution for the tation, feature extraction, and data analysis for ginseng
roots were developed. Relationships between image
Correspondence: A. Martynenko, School of Engineering, attributes and physical parameters of drying (moisture
University of Guelph, Guelph, ON, Canada N1G 2W1; E-mail: and quality) were established.
omartyne@uoguelph.ca

879
880 MARTYNENKO

MATERIALS AND METHODS


Computer-Vision System
The hardware consisted of a portable compact CCD
Fire-i camera (Unibrain Inc.) with a built-in 4.65 mm lens
with anti-reflective coating connected to a personal com-
puter (P4, 2.4GGz) using PCI IEEE-1394 FireWire adapter
(Unibrain Inc.). The software consisted of NI-IMAQ data
acquisition driver for IEEE-1394, LabVIEW 7.0 and
IMAQ6.1TM Vision Builder (National Instruments). Digi-
tal camera and data acquisition interface were configured FIG. 1. Image segmentation.
with a measurement and automation explorer NI-MAX
(National Instruments). The camera was mounted on a ver-
tical stand, which provided easy vertical movement and
stable support. The depth of field was enough to obtain The block-scheme of image segmentation procedure is
quality images with a high contrast of boundaries and high shown in Fig. 1. An original color image was filtered twice:
color resolution. The image resolution was 0.1 mm=pixel in RGB color space to extract morphological features and
and 0.08 mm=pixel in the horizontal and vertical directions, in HSI (hue-saturation-intensity) color space to extract
respectively. Twenty-four-bit RGB-images were converted color features.
to square pixels with the resolution 0.01 mm2=pixel.
Uniform illumination was provided with SYLVANIA
CF15EL=830 diffuse fluorescent bulbs with a corrected Feature Extraction
color temperature of 4200 K and a color reproduction Morphological Features. The software library of NI-
Downloaded At: 03:29 21 January 2011

index about 95%. Image capturing, processing, and sub- IMAQ 6.1 enabled the quantification of surface area,
sequent analysis were performed online using a LabVIEW length, width, radius, shape factor, and their statistical
graphical interface. (mean and variance) characteristics. Length-to-width
ratio was used for the identification of object orientation
in the XOY plane. To distinguish the object area from
Image Analysis isolated small clusters of pixels, the procedure of multi-
An image analysis included image segmentation, threshold filtering with next particle analysis was applied.
features extraction, and data analysis. Image segmentation Object area was determined as the largest object on the
was designed to separate region of interest (ROI) from binary image. Overall surface area was obtained by the
background. Extraction of morphological, color, and conversion of ‘‘1’’ pixels of binary image into area
textural features was provided every hour with the library through the conversion coefficient of 0.01 mm2=pixel with
of virtual instruments, embedded in NI-IMAQ6.1. Image the next multiplication by p for cylindrical geometry.
features, determined as time-dependent variables, were
Color Features. Color features were extracted as means
used further in data analysis to calculate physical (moisture
and variances of red (R), green (G), and blue (B) channels
and quality) and rate (drying rate, quality degradation)
in RGB color space and color intensity (I) in HSI color
parameters of drying.
space. To avoid effects of size sampling on color intensity
distribution, the number of pixels for each intensity line
Image Segmentation was normalized with respect to the overall number of
The first step of the image analysis was image segmen- pixels in the extracted area. The histogram of color
tation. This algorithm, based on edge detection, operated intensity was treated as a fuzzy variable with lightness
by finding the optimal threshold in RGB color space that as a support. Average color intensity was calculated from
maximizes the difference between images. The output intensity histogram on the basis of center-of-gravity
[0,256] gray image was then converted into binary [0,1] defuzzification.[24] Means and variances were used to test
image with 1 assigned to the object and 0 assigned to the statistical hypothesis (F-test) of color changes on each
background. This binary image was used for two purposes: interval of observation.
(a) estimation of morphological features (area) and (b) The flow chart of features extraction is shown in Fig. 2.
masking original color image for extraction of color and
textural features. Multiplication of the original image on
its binary mask enabled a conversion of all background Drying Chamber
pixels to zero intensity pixels and elimination this class Drying of ginseng roots was carried out in a specially
from next calculations. designed drying chamber (Fig. 3). For automated monitoring
COMPUTER-VISION SYSTEM FOR CONTROL OF DRYING PROCESSES 881

FIG. 3. Experimental drying chamber with computer-vision system.


Downloaded At: 03:29 21 January 2011

thermocouple measurements was 0.1C and the relative


error between measurements was 0.05C. Air relative
humidity was measured using a humidity sensor HIH-
3602C (Honeywell Inc.) with a sensitivity of 25 mV=% RH
and an accuracy of 2%. Air flow rate was measured with
an anemometer ALNOR-6350 (Cole-Palmer) with an accu-
racy of 5%. Root weight was measured continuously with a
digital balance HF-8000 (A&D Engineering) with a serial
interface to the control computer. Data from the thermo-
couples, humidity sensors and the digital balance were
recorded continuously by National Instruments Lab VIEW
7.0 through a data acquisition interface card.

Samples
FIG. 2. Flow chart of feature extraction.
The ginseng roots were obtained from Hare Farms
(Waterford, Ontario) in October 2004. Both harvests were
taken from four-year ginseng plots. Ginseng population
contained roots of different shapes and sizes in the range
of visual color and area changes during drying the
from 4 to 40 mm in diameter. Fresh ginseng roots were
chamber was made from a 190-cm-long Plexiglas tube with
stored in a refrigerator at 5  2C during the experimental
an inside diameter of 40 cm. It was connected to an air
study period (3 months). Prior to each drying experiment,
conditioning unit that produced constant airflow with regu-
roots were washed and care was taken to drain the roots
lated temperature and humidity. Temperatures of air and
and remove surface water.
root were measured with identical T-type thermocouples
with a spherical junction 0.85 mm in diameter. Measure-
ments with the thermocouples were made using an interface Data Analysis
card NI PCI-6220 (National Instruments) with built in Data analysis was provided to relate the set of morpho-
cold-junction compensation in the control computer. Based logical, color, and textural features with the set of physical
on the calibration, absolute error associated with the parameters of drying (moisture, quality). Moisture content
882 MARTYNENKO

was calculated from continuous weighing on a dry matter was tested on the basis of Fisher criteria with 0.95 confi-
basis (g=g): dence level. The average moisture content and color of
mðtÞ  mdm ginseng roots in each batch were determined on the basis
X¼ ð1Þ of composite sample measurements.
mdm
The dry matter weight (mdm) was determined after each
experiment based on 24-hour oven drying at 102C. Aver- RESULTS AND DISCUSSION
age moisture values were estimated at hourly intervals.
An exponential equation was used to describe moisture Image Segmentation
changes over time: The first step in image analysis was image segmentation.
The original color images of the ginseng batch at the begin-
X ðtÞ ¼ Xe þ ðX0  Xe Þekt ð2Þ ning (a) and at the end of drying (b) are shown in Figs. 4a
and b. Images represent the random mixture of ginseng
or in dimensionless form: roots without a contrast background, so it makes difficult
X ðtÞ  Xe to segment underlying layers by simple filtering.[8] Hence,
wðtÞ ¼ ¼ ekm t ð3Þ the special algorithm of image segmentation, relevant to
X0  Xe
physical shrinkage of ginseng roots, was developed. Pre-
Equilibrium moisture content (Xe, g=g db) was determined vious experiments showed that the area shrinkage of
from ginseng sorption isotherms.[21] The effect of root fully-exposed ginseng roots at the end of drying is about
maturity on equilibrium moisture content was neglected. 0.5  0.5 of the initial area.[25] This knowledge was used
The initial moisture content (X0) was verified based on as the reference point to normalize area ratio in the range
the mass measurements at the end of the experiment and [1,0] with 1 assigned to the initial state (fresh roots) and
0 to the final state (dried roots).
Downloaded At: 03:29 21 January 2011

analysis of dry matter weight. In each experiment, the final


target for moisture content was 0.1 g=g db. To quantify the shrinkage-relevant difference between
The accuracy of the computer vision system was evalu- Figs. 4a and b, both images were decomposed on red, green,
ated as errors in area, color and texture estimation. The and blue planes in RGB color space. Histograms of color
error in area estimation due to isolated or small clusters distribution in R, G, and B for ginseng roots showed that
of pixels, mainly located at the boundaries of adjacent all red pixels were concentrated in the region of high color
regions was evaluated by comparison with binary images, intensities with saturation at 255, blue pixels in the range
obtained with reference high-resolution (1392  1040) of low color intensities from 140 to 0 (interfering with
CCD camera DFW-SX900 (Sony Corp., Japan) with an background pixels), and green pixels were distributed
automatic adjustment of white balance and 25-mm F=1.4 over the entire intensity scale with maximum in the range
Mega Pixel Iris (model 23FM25SP, Tamron) lens. The error 160–200.[25] Mean values of R, G, and B color distributions
in color estimation was evaluated by comparing standard show some difference caused by drying (Table 1).
color indices from bright yellowish to beige, corresponding It follows that drying caused the shift of red, green, and
to the color of the ginseng roots. These indices were calcu- blue color intensities to lower numbers. This shift of aver-
lated in XYZ color space, provided by a standard Minolta age color intensity can be used as the measure of specific
colorimeter (CR-300, Japan). To avoid possible effects of color sensitivity. The differences in red and blue color
non-uniform lighting, each sample was imaged three times intensities were not statistically significant. The green plane
for different angle orientation of roots (0, 120, 240) in the appeared to be the most sensitive channel, providing the
plane of measurement. The color was calculated as the aver- best discrimination between fresh and dry ginseng roots
age of three measurements. The error in texture estimation images. The most significant changes in green occurred in
was evaluated by using a set of samples with calibrated grids the range of [150 . . . 210]. Hence the median value 180
of different sizes. Performance in the estimation of period- was chosen as the optimal threshold for conversion of a
ical components was estimated as a signal-to-noise ratio grey image into binary image.
in power spectrum density function, calculated with FFT. Binary images (Figs. 4c and d) were filtered from orig-
All experiments were carried out with three replications inal color images in the green plane with the next thresh-
in a random order to exclude the influence of uncontrolled olding at 180. Corrected binary images were used as the
changes including ageing and moisture loss. The correla- mask for color intensity images.
tions between morphological, color and textural features
were tested with cross-correlation analysis (SAS 9.1). The Morphological Features (Shrinkage)
significance of features and their interactions was tested Structural changes in ginseng roots during drying were
by standard ANOVA procedures. Adequacy of linear rela- accompanied by volumetric shrinkage and a decrease in
tionships between image attributes and physical parameters the projected area. The surface area of roots was calculated
COMPUTER-VISION SYSTEM FOR CONTROL OF DRYING PROCESSES 883

FIG. 5. Kinetics of area shrinkage in drying process (circles, points of


observation; solid line, exponential fit).
FIG. 4. Segmentation of original images of fresh (a) and dry (b) ginseng
roots with thresholding and conversion to binary images (c, d).
(Eq. (3)). The coefficient of determination (0.995) of
exponential fit reflected good accuracy of image analysis
from binary image (Figs. 4c and d). The ratio between for surface area estimation. The exponential behavior of
initial area A0 (Fig. 4c) and endpoint area Ae (Fig. 4d) in area shrinkage is going along with the results presented
the batch corresponded to real physical shrinkage of
Downloaded At: 03:29 21 January 2011

by Fernandez et al.[8]
individual roots (0.55–0.45). Area shrinkage n(t) was calcu- The relationship between dimensionless values of
lated as a time-dependent dimensionless variable, changing shrinkage and moisture content is shown in Fig. 6. It was
from 1 (initial state) to 0 (dried state): linear in the range from 0.9 to 0.1 of moisture content:
Ai  Ae
ni ¼ ð4Þ w ¼ an þ b ð6Þ
A0  Ae
The example of area shrinkage of ginseng roots during with a ¼ 1.0124, b ¼ 0.0755, standard error 0.016, and
100 h of drying at temperature 38C, relative humidity R2 ¼ 0.99. The linear relationship between shrinkage and
12% and air flow rate 1 m=s is presented in Fig. 5. Kinetics moisture ratio in this range could be related to the phenom-
of shrinkage followed exponential behavior in all experi- enon of free water evaporation.[26] A small deviation from
ments over the range of experimental conditions from linearity at the beginning of drying (1–0.9) can be explained
38C to 50C, from 12 to 25% relative humidity, and air
velocity from 1 m=s to 3 m=s. In time domain it could be
expressed as an exponential model:

nðtÞ ¼ expkS t ð5Þ


with ks ¼ 0.042 h1, which corresponds to the drying
rate constant km calculated from continuous weighing

TABLE 1
Averagea color intensity of fresh and dry roots in RGB
color space
Fresh Dry Difference p-Value
Red (R) 250  2.5 249  12.5 1 0.7645
Green (G) 185  15 151  17.5 34 0.0189
Blue (B) 50.5  8.8 44  10.4 6.5 0.4141
a
Mean values and standard deviations (95% confidence) were
calculated from four identical drying experiments (38C tempera- FIG. 6. Relationship between area shrinkage and moisture ratio (trian-
ture, 1 m=s air velocity, and 12% relative humidity). gles, 38C; circles, 50C; line, regression).
884 MARTYNENKO

by the effect of quick collapse of porous cellular structure. be used as a process variable for monitoring of quality
Deviation from linearity at the end of drying (below 0.1) degradation in ginseng drying process.
can be related to critical water content 0.25–0.3 g=g (db).
Below this critical point the area shrinkage is not correlated
EVALUATION OF THE CVS PERFORMANCE FOR
with moisture losses.
FEEDBACK CONTROL
Performance of the CVS for control of drying processes
Color Features (Color Intensity) was tested in industrial conditions on pilot batch dryer.
Color intensity was extracted as a mean value of histo- Since the bulk average moisture content cannot be mea-
gram of color intensity distribution in HSI color space. sured directly, it was estimated using CVS observer. Esti-
Kinetics of color changes during drying at different air mated moisture content was used as a global feedback
temperatures are presented in Fig. 7. parameter for the identification of the drying stage and
It follows that color degradation was proportional to dry- adjustment of the drying conditions according to the speci-
ing time and air temperature. The rate of color degradation fied control strategy. Subsequently, the control system
was 0.056 h1 at the temperature 38C, and 0.29 h1 at the consisted of three modules: CVS observer, estimator, and
temperature 50C. The increase of rate with temperature controller (Fig. 8).
can be explained with Arrhenius-type temperature depen- CVS observer identified area shrinkage n(t) and color
dence of non-enzymatic browning.[27] From drying experi- C(t) of ginseng roots in the batch as a time-dependent pro-
ments at the recommended temperature 38C it was cess variable. The estimator was a real-time module, which
concluded that the acceptable level of ginseng browning is used the information from the CVS observer about shrink-
above 158 of color intensity. However, 40 h drying at age at a particular temperature T to estimate the rate con-
50C resulted in unacceptable browning of ginseng roots stant ks,T by fitting to the exponential model (Eq. (5)). It
(color intensity 154). Three-stage drying (38-50-38C) was running in a regime of continuous loop execution in
Downloaded At: 03:29 21 January 2011

provided color intensity at the end of drying at the threshold the range i ¼ 3, . . . , 1, delivering a dynamic set of coeffi-
value 158. It seems that three-stage drying can be a good cients {n0, ks, ne} of shrinkage model.
alternative of isothermal drying, providing acceptable From inputs ks,T, Xe, and Xc1,2,3 the estimator calculated
material quality, which is compatible with isothermal 38C current bulk average moisture content Xi (Eq. (2)) and time
drying. estimate test to the next critical control point Xc:
Color changes measured by image analysis and standard
colorimeter gave high average correlation with R2 ¼ 0.95. 1 Xi  Xe
test ¼ ln ð7Þ
These results were similar to those, reported for chromatic ks;T Xc  Xe
parameters ‘‘a’’ and ‘‘b’’ in lab color space, reported by
Krokida et al.[28] and Fernandez et al.[8] It follows that The estimate of moisture and time {Xi, test} were used as
color intensity of root surface, measured with CVS, can an input to the digital controller to adjust the drying tem-
perature according to moisture content.A three-stage strat-
egy of ginseng drying[21] entailed online identification of
three critical control points: bulk average moisture content
Xc1 ¼ 1.0 g=g (db) to change the drying temperature from
38 to 50C; bulk average moisture content Xc2 ¼ 0.25 g=g
db to turn back from 50 to 38C; and bulk average moist-
ure content Xc3 ¼ 0.1 g=g db to stop drying. Observer and
controller were developed as reconfigurable LabVIEW

FIG. 7. Color changes of ginseng roots at different drying scenarios: (a)


isothermal drying at 38C (diamonds); (b) isothermal drying at 50C (rec- FIG. 8. The structure of computer vision control system for ginseng
tangles); (c) non-isothermal drying 38-50-38C (triangles). Air velocity drying: n(t), area shrinkage; C0, Ci, initial and current color; X0, Xe, Xc,
1 m=s, relative humidity 12%. Xi, initial, equilibrium, critical, and current moisture content, respectively.
COMPUTER-VISION SYSTEM FOR CONTROL OF DRYING PROCESSES 885

applications with an extensive set of optimized functions TABLE 2


for image processing, blob analysis, spatial measurements, Accuracy of moisture prediction in critical control points
calibration, and advanced logic control of digital I=O Critical moisture
devices. content (g=g) Mean SSE RMSE
The performance of the CVS for online identification of
the pair {Xi, test} was evaluated on the basis of batch Xc1 ¼ 1.0 0.94 0.0613 0.062
drying experiments, which included isothermal drying Xc2 ¼ 0.25 0.24 0.0114 0.021
experiments (38C) and three-stage (38-50-38C) drying Xc3 ¼ 0.1 0.1 0.0054 0.014
experiments with three different root distributions. The
performance evaluation included the estimation of the
shrinkage-moisture relational model for moisture and are presented in Table 2. The predictive model had a
time prediction. Online identification of the critical control tendency to underestimate the value of moisture content.
points was provided by three alternative ways: (a) CVS The linear relationship between shrinkage and moisture
estimation of area shrinkage and shrinkage=moisture rates (Eq. (6)) was evaluated in a series of three-stage
relationship (Eq. (6)); (b) the exponential model (Eq. (2)); (38-50-38C) batch drying experiments. Exponential fitting
and (c) experimental measurements. The CVS estimation of shrinkage kinetics at correspondent stages of drying
of shrinkage was used for the exponential approximation approximated the rate constants ks. A comparison of ks
of shrinkage rate constant ks,38 (Eq. (5)) and calculation of from shrinkage measurements versus km from weight
moisture content (Eq. (6)). Equation (7) was employed to measurements for two temperatures (38C and 50C) is
predict the drying time to reach critical control points. shown in Fig. 10.
Hence, performance of CVS for accurate estimation of It follows that the estimate of ks-value from shrinkage
critical control points (t1, t2, and t3) was tested with respect analysis was close to the experimental km-value only for
Downloaded At: 03:29 21 January 2011

to both predicted and experimental data. 38C (coefficient of determination R2 ¼ 0.93 and
RMSE ¼ 0.0008 h1). However, for high temperature
Testing of Accuracy in Moisture Estimation (50C) there was no linear relationship between the esti-
The shrinkage=moisture relational model (Eq. (6)) was mated ks-values and experimental km. At 50C the drying
used to predict moisture content in the critical control rate was slower than shrinkage kinetics. It can be con-
points with the bulk moisture content Xc1 ¼ 1.0 g=g, cluded that for high (50C) temperature the shrinkage-
Xc2 ¼ 0.25 g=g, Xc3 ¼ 0.1 g=g (db). The real values of bulk moisture model has a tendency to overestimate the real
average moisture content were determined from balance kinetics of moisture transfer.
readings in three-stage batch drying experiments (Fig. 9). Taking into account the temperature 38C for the third
Prediction error was calculated as a sum of squared errors stage of drying, the shrinkage-moisture relational model
(SSE) with respect to each control point. It followed that was used for estimation of average moisture content at
moisture content in the critical control point could be pre-
dicted with a standard error of 4–6%. Results of calculation

FIG. 9. Estimation of moisture in critical control points with CVS for FIG. 10. Relationship between estimated ks and km and for three-stage
nine three-stage batch drying experiments. batch drying at 38C (circles) and 50C (squares).
886 MARTYNENKO

TABLE 3
Moisture content at the endpoint of drying: estimation vs.
experiment
Average bulk
moisture content
Composition Measured
Experiment of root sizes Estimate value Deviation
10 ‘‘Normal’’ 0.1 0.13 0.03
11 0.1 0.14 0.04
12 ‘‘Small’’ 0.1 0.09 0.01
13 0.1 0.07 0.03
14 0.1 0.09 0.01
15 ‘‘Large’’ 0.1 0.11 0.01
16 0.1 0.10 0.00
17 0.1 0.11 0.01

the endpoint. The results of the experimental estimation of FIG. 11. Estimation of time in critical control points with CVS for
average moisture content and direct moisture measure- three-stage batch drying experiments.
ments at the endpoint of drying are summarized in Table 3.
The discrepancy between the estimated and measured
values of bulk average moisture content may be related
Downloaded At: 03:29 21 January 2011

to non-uniform drying conditions in the batch. However,


from Table 3 it follows that the moisture content at the
endpoint could be predicted as an interval estimate from
0.08 to 0.12 with 95% confidence. The standard error of
estimation of moisture content at the endpoint was
0.0176 g=g.

Testing of Accuracy in Time Estimation


A performance evaluation of CVS for time estimation
was done on the basis of nine batch experiments (3 iso-
thermal and 6 three-stage) with some variation in size
assortment (normal, large, and small) and moisture con-
tent. The time to the critical control point was estimated
from the recurrent approximation of the shrinkage rate fac-
tor ks for isothermal conditions and Eq. (7). The results of
the time estimation with the shrinkage=moisture relational
model are shown in Fig. 11.
The standard error of linear regression was 3.09 h with
the coefficient of determination 0.99. The accuracy in the
estimation of critical control points in time domain was
10% with 95% confidence. It follows that the model could
be successfully used for the control of ginseng drying and is
robust to uncertainty in size assortment, initial moisture
content and drying conditions. The results of testing the
computer-vision intelligent controller in isothermal drying
are shown in Fig. 12a, and results of testing the com-
puter-vision intelligent controller in three-stage batch dry-
ing in Fig. 12b.
From the experimental data it follows that the estimator
gives an overestimation of drying time at t1 and t2, while FIG. 12. Accuracy of prediction of critical control points with CVS-esti-
the exponential predictor gives an underestimation at the mator and predictor for isothermal (a) and three-stage (b) drying.
COMPUTER-VISION SYSTEM FOR CONTROL OF DRYING PROCESSES 887

first critical control point t1 and an overestimation at the controller (Lab View 7.0). Experiments showed the
second point t2. At the endpoint of drying, the estimation stability and robustness of the control system, combined
of t3 was close to the prediction. with high accuracy in the estimation of drying time
The error in estimating the critical control points was (8–14% of error with 95% confidence). The discrepancy
not evenly distributed on the drying cycle. For the first between the estimation of moisture from the shrinkage=
critical control point (Xc1 ¼ 1.0 g=g), the error of time moisture relational model and direct measurements did
prediction was greatest (11%). For the second critical point not exceed 20%. Composite moisture measurements at
(Xc2 ¼ 0.25 g=g), the error was about 8%. The minimal the endpoint demonstrated the uniform drying of root
error 5% occurred at the endpoint of drying (Xc3 ¼ mixture to the average moisture content of 0.1 g=g, with
0.1 g=g). It follows that towards the end of drying the accu- minor variations between individual roots in the range of
racy of time prediction increases. The moisture content 0.07–0.12 g=g.
estimate X(t) was used as a dynamic variable in global con- The results demonstrated the feasibility of CVS as an
trol loop, providing observability of the drying process. accurate online tool for a closed-loop food drying. Data
Color degradation was estimated as an independent extracted from image analysis represent both quality
dynamic variable with another model (see Fig. 7). This factors perceived by consumers (color, texture) and process
estimate was used to prevent quality degradation below parameters (moisture content, drying rate), important for
specified threshold. Errors for estimation of moisture con- the development of ‘‘smart’’ drying technologies.
tent and quality were calculated as discrepancy between
estimation from the observer and direct measurements.
Additionally, the user-friendly graphical interface was ACKNOWLEDGMENTS
developed. The operator was able to specify drying con- I would like to express my gratitude to Dr. Valerie
ditions (temperatures for each stage of drying, relative Davidson and Dr. Ralph Brown, who helped me very
much with valuable comments. I would like to express spe-
Downloaded At: 03:29 21 January 2011

humidity, air velocity, size), initial, equilibrium, and critical


moisture contents, as well as the rate of image sampling. cial acknowledgement to Scott Noble for his help in the
Online estimates of shrinkage, color, and moisture content development of IMAQ Vision Builder control applications.
in each stage of drying were displayed online. The quality
of drying process was indicated ‘‘EXCELLENT,’’ ‘‘HIGH,’’
‘‘SATISFACTORY,’’ or ‘‘NON SATISFACTORY.’’ If REFERENCES
quality was within an allowable threshold, then ‘‘DRYING 1. Cassasent, D.P. Intelligent Robots & Computer Vision XXII: Algo-
IN PROGRESS’’ was displayed. Otherwise it was displayed rithms, Techniques, and Active Vision; SPIE: Philadelphia, 2004.
‘‘CORRECTION’’ and correction of the drying regime was 2. Banerjee, P. Virtual Manufacturing; John Willey: London, 2001.
3. Blasco, J.; Aleixos, N.; Molto, E. Machine-vision system for auto-
required. matic quality grading of fruit. Biosystems Engineering 2003, 85 (4),
415–423.
4. Majumdar, S.; Jayas, D.S. Classification of cereal grains using
CONCLUSIONS machine vision. I. Morphology models. Transactions of the ASAE
2000, 43 (6), 1669–1675.
Experimental study of the computer-vision system
5. Majumdar, S.; Jayas, D.S. Classification of cereal grains using
(CVS) for control of ginseng drying showed advantages machine vision. II. Color models. Transactions of the ASAE 2000,
of computer-vision for online monitoring of important 43 (6), 1677–1680.
state variables, such as shrinkage, color, and texture. Area 6. Majumdar, S.; Jayas, D.S. Classification of cereal grains using
shrinkage was identified from image morphological attri- machine vision. III. Texture models. Transactions of the ASAE
2000, 43 (6), 1681–1687.
butes, providing sufficient discriminatory information
7. Majumdar, S.; Jayas, D.S. Classification of cereal grains using
about moisture loss in the range from 2.6 to 0.3 g=g and machine vision. IV. Combined morphology, color and texture models.
temperatures from 38 to 50C. Moisture was determined Transactions of the ASAE 2000, 43 (6), 1689–1694.
from the relationship between area shrinkage and moisture 8. Fernandez, L.; Castillero, C.; Aguilera, J.M. An application of image
content with 8% error and 95% confidence. analysis to dehydratation of apple discs. Journal of Food Engineering
Color measurements demonstrated high sensitivity of 2005, 67, 185–193.
9. Graves, M.; Batchelor, B.G.; Lee, M.L. Machine Vision for the Inspec-
quality to drying conditions. Drying at 50C resulted in sig- tion of Natural Products; Springer-Verlag: 2003.
nificant color changes and unacceptable quality degradati- 10. Gunasekaran, S. Nondestructive Food Evaluation: Techniques to Ana-
on. However, the quality of three-stage (38-50-38C) drying lyze Properties and Quality; Marcel Dekker: 2000.
was compatible with recommended isothermal (38C) dry- 11. Lu, W.; Sun, D.W. Computer vision systems for rapid quality inspec-
tion of agricultural and food products. In: Technology Innovation and
ing due to significant (30–40%) reduction in drying time.
Sustainable Agriculture; 2000; 201–206.
Online estimates of moisture and color were used for 12. Ni, B.; Paulsen, M.R.; Reid, J.F. Size grading of corn kernels with
temperature control in the pilot batch dryer with embedded machine vision. In 1997 ASAE Annual International Meeting Technical
computer-vision observer (IMAQTM Vision Builder) and Papers, Paper No. 973046, 1997.
888 MARTYNENKO

13. Lotch, P. Full color image analysis as a tool for quality control and 21. Li, X. Improved Ginseng Drying with Three-Stage Temperature
process development in the food industry. In 1997 ASAE Annual Control; M.Sc. Thesis. University of Guelph: Guelph, ON, 2002.
International Meeting Technical Papers, Paper No. 973006, 1997. 22. Davidson, V.J.; Li, X.; Brown, R.B. Forced-air drying of ginseng
14. Tao, Y.; Heineman, P.H.; Varghese, Z.; Morrow, C.T.; Sommer, H.J., roots: 1. Effects of air temperature on quality. Journal of Food Engin-
III. Machine vision for colour inspection of potatoes and apples. eering 2004, 63, 361–367.
Transactions of the ASAE 1995, 38 (5), 1555–1561. 23. Grade and Quality Standards of Products of Processed American
15. Sonka, M.; Hlavac, V.; Boyle, R. Image Processing, Analysis, and Ginseng; The State Standard of People’s Republic of China GB=T
Machine Vision; PWS Publishing: CA, 1999. 17356.1-98, 1998.
16. Da Fontoura, L.; Marcondes, R., Jr. Shape Analysis and Classi- 24. Jang, J.S.R.; Sun, C.T.; Mizutani, E. Neuro-Fuzzy and Soft Comput-
fication: Theory and Practice; CRC Press: NJ, 2001. ing; Prentice-Hall.
17. Du, C.J.; Sun, D.W. Learning techniques used in computer vision for 25. Martynenko, A.I. Computer-Vision Control System for Ginseng
food quality evaluation: A review. Journal of Food Engineering 2006, Drying; Ph.D. Thesis. University of Guelph: Guelph, ON, 2005.
72, 39–55. 26. Ratti, C. Shrinkage during drying of foodstuffs. Journal of Food
18. Kudra, T.; Strumillo, C. Thermal Processing of Biomaterials; Gordon Engineering 1994, 23, 91–105.
and Breach Science Publishers: Amsterdam, 1998. 27. Labuza, T. Water Activity and Sorption Isotherms; IFT Short Course,
19. Li, Y.R.; Morey, R.V. Thin-layer drying rates and quality of cultivated University of Minnesota.
American ginseng. Transactions of ASAE 1987, 30 (3), 842–847. 28. Krokida, M.K.; Maroulis, Z.B.; Saravacos, G.D. The effect of the
20. Sokhansanj, S.; Bailey, W.G.; van Dalfsen, K.B. Drying of North method of drying on the colour of dehydrated products. International
American ginseng roots (Panax quinquefolius L.). Drying Technology Journal of Food Science and Technology 2001, 36 (1), 53–59.
1999, 17 (10), 2293–2308.
Downloaded At: 03:29 21 January 2011

You might also like