Detecting Fertility and Early Embryo Development of Chicken Eggs Using Near-Infrared Hyperspectral Imaging

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Food Bioprocess Technol (2013) 6:2503–2513

DOI 10.1007/s11947-012-0933-3

ORIGINAL PAPER

Detecting Fertility and Early Embryo Development of Chicken


Eggs Using Near-Infrared Hyperspectral Imaging
L. Liu & M. O. Ngadi

Received: 15 February 2012 / Accepted: 9 July 2012 / Published online: 2 August 2012
# Springer Science+Business Media, LLC 2012

Abstract Early detection of infertile and non-hatchable day 3, and 84.1 % at day 4. A perfect detection of fertility
eggs would benefit hatcheries and poultry breeding farms prior to incubation was obtained using only the first three
by saving space, handling costs, and preventing contamina- bands of maximum responses of MS. The classification
tion from exploder eggs. Therefore, it would be advanta- results suggested the usefulness of the image texture infor-
geous to the hatchery industry of developing a non- mation for detection of early embryo development. Promis-
destructive, rapid, and accurate method to detect the fertility ing results were also obtained when only the first three
and embryo development of eggs. For this purpose, a near- bands with maximum response of spectral transmission
infrared hyperspectral imaging system was developed to characteristics were used, which indicated the potential in
detect fertility and early embryo development. A total of applying hyperspectral imaging techniques to develop a
174 white-shell chicken eggs including 156 fertile eggs and real-time system for detecting fertility and early embryo
18 infertile eggs were used in this study and all eggs were development of chicken eggs.
incubated in a commercial incubator for 4 days. Hyperspec-
tral images were captured for all eggs on each day of Keywords Hyperspectral imaging . Egg . Fertility . Embryo
incubation. After imaging on each day, developing embryos development . Image texture . Gabor filter . PCA . K-means
in randomly selected eggs were stopped by injecting sodium clustering
azide (NaN3). All the eggs were divided into two classes,
fertile eggs and non-fertile eggs (including infertile eggs and
dead embryos), and the data set of each class varied with Introduction
day of incubation. The region of interest (ROI) of each
hyperspectral image was segmented and the image texture Hatchability of eggs is a critical economic factor for hatch-
information was extracted from the ROI of spectral images eries and poultry breeding farms. It is influenced by many
using Gabor filters. Two types of spectral transmission factors such as breeder flock problem, fertility, egg han-
characteristics termed MS and MG, were obtained by aver- dling, etc. Early detection of non-fertile and non-hatchable
aging the spectral information of ROI and Gabor-filtered eggs would allow hatcheries to remove them before transfer
ROI, respectively. The dimensionality of the spectral trans- to the incubator/hatcher, thus saving space, handling costs,
mission characteristics were reduced by PCA. The first three and contamination from exploder eggs. In the poultry in-
PCs were used for K-means clustering, as well as the first dustry, candling is widely used to assess flock fertility so
three bands with maximum responses of each spectral trans- that infertile eggs and dead embryos can be removed from
mission characteristic. The best classification results were the incubator. However, since candling is labor consuming,
100 % at day 0, 78.8 % at day 1, 74.1 % at day 2, 81.8 % at only few eggs in the incubator are candled for determination
of flock fertility, which means most non-fertile and non-
hatchable eggs will remain in the incubator until they are
L. Liu : M. O. Ngadi (*) moved to the hatcher. Therefore, the development of an
Department of Bioresource Engineering, McGill University,
efficient, non-destructive, and accurate method for detecting
Macdonald Campus 21, 111 Lakeshore Road,
Ste-Anne-de-Bellevue, QC, Canada H9X 3V9 the fertility and the embryo development of eggs would be
e-mail: michael.ngadi@mcgill.ca advantageous to the hatchery industry.
2504 Food Bioprocess Technol (2013) 6:2503–2513

Some researchers have attempted to detect fertility and results in both studies indicated that development of proper
embryo development with computer vision technology. Das HSI-based techniques for accurate prediction is necessary
and Evans (1992a, b) developed machine vision systems to for detecting early embryo development and/or fertility prior
determine fertility of hatching eggs by combining image to incubation.
histogram characterization with neural network classifiers. When observing the contents of the egg in a dark
The classification results reached 93.9 % at day 4 of incu- room with candling, the living embryo appears as a dark
bation, 93.5 % at day 3, and 67.6 % at day 2. Bamelis et al. spot in the large end of the egg surrounded by a faint
(2002) applied the spectrophotometric method to detect outline of blood vessels, while dead embryos sometimes
embryo development of chicken eggs during the first 12 days appear as a ring or smear of blood in the egg or a dark
of incubation. Embryo development of chicken eggs was spot dried to the inside of the shell. The infertile egg
stopped by injecting sodium azide at different times during brightly transmits light in comparison. The appearance of
incubation. They concluded that the embryo development blood vessels in embryo indicated that spectral imaging
can be detected using visible light transmission from in the near-infrared (NIR) region might produce better
108 h (day 4.5) of incubation, which is not directly detection results than in the visible light. In addition,
linked with the formation of blood, but with the forma- most organic materials have excellent transmittance and
tion of sub-embryonic fluid which causes the yolk to reflectance properties within the NIR range (Williams
become translucent. 2003). Thus, the possibility of using image texture fea-
Recently, the advanced hyperspectral imaging technique ture for detecting fertility and embryo development
has been applied to detect egg fertility and embryo devel- should be considered as they could possibly bring im-
opment (Lawrence et al. 2006; Smith et al. 2008). Hyper- provement for the fertility and embryo detection.
spectral imaging combines the conventional 2-D digital A 2-D Gabor filter is a linear filter which is a sinu-
imagery with spectroscopy. A hyperspectral image contains soidal modulated Gaussian function in the spatial do-
not only spatial information, but also spectral information main. The 2-D Gabor filter is well-known to have the
for each pixel in the image. This information is extracted to ability to achieve certain optimal joint localization prop-
form a 3-D “hypercube” which can be analyzed to ascertain erties in the spatial domain and in the spatial frequency
minor and/or subtle physical and chemical features in an domain (Daugman 1985). The kernel of 2-D Gabor filter
object. Thus, a hyperspectral image can be used not only to is similar to the response of the 2-D receptive field
detect physical and geometric characteristics such as color, profiles of simple cells in the visual cortex of mamma-
size, shape, and texture but also to extract some intrinsic lian brains (Daugman 1980) and thus is similar to those
chemical information such as water, fat, and protein. The of the human visual system. This ability exhibits desir-
technology clearly has a promising future for food quality able characteristics of capturing salient visual properties
and safety inspections (Polder et al. 2002; Lee et al. 2005). such as spatial localization, orientation selectivity, and
In Lawrence et al. (2006), the hyperspectral imaging spatial frequency. These characteristics make it very ef-
technique was used for detecting early embryo development fective and particularly appropriate for image texture
of hatching eggs at the first 3 days of incubation. Both representation, analysis, and discrimination (Manjunath
Mahalanobis distance (MD) classification and partial least and Ma 1996; Clausi and Ed Jernigan 2000).
squares regression (PLSR) were used to build the prediction The objective of this study was to develop an efficient
model based on the hyperspectral images of hatching eggs. and accurate system based on hyperspectral imaging tech-
The authors claimed that the embryo classification results nique to determine fertility of hatching eggs prior to incu-
based on the MD model with all eggs over all the incubation bation and embryo development during the first 4 days of
days were about 96 % at day 0, 92 % at day 1, and 100 % at incubation.
days 2 and 3, while the PLSR model based on eggs only
from days 0 and 3 produced 100 % classification accuracy at
days 2 and 91.7 % at day 1. The extremely promising results Materials and Methods
encouraged more research in this area. The same research
group later introduced infertile eggs to evaluate the hyper- Eggs and Sample Evolution
spectral imaging system and a predictive modeling tech-
nique for determining fertility prior to incubation and A total of 174 freshly laid white eggs including 156 fertile
embryo development during the first 3 days of incubation eggs and 18 infertile eggs were collected from the McGill
(Smith et al. 2008). However, the prediction model pro- University Farm in five batches over 3 months. On day 0
duced much lower classification results both on validation (just prior to incubation), all eggs were first imaged by the
data (71 % for day 0, 63 % for day 1, 65 % for day 2, and hyperspectral imaging system and then a total of 20 fertile
83 % for day 3) and verification data (50.8 % overall). The eggs over five batches were randomly selected for inducing
Food Bioprocess Technol (2013) 6:2503–2513 2505

dead embryo (stopping embryo development). Each of the


20 fertile eggs was injected with a 100 μl of a 5 % sodium
azide (NaN3) solution using a sterile needle through a tiny
hole drilled at the sharp end of the egg (Bamelis et al. 2002).
After imaging and injecting, all eggs were immediately
incubated in a 2362N Circulated Air Hova-Bator incubator
(G.Q.F. Manufacturing Co., Savannah, GA, USA) at 100 °F
and 55 % relative humidity, and were turned every hour. On
days 1, 2, 3, and 4 of incubation, eggs were removed for
imaging in sequence and then immediately replaced in the
incubator with a process of no more than 3 min. After all
eggs were imaged on each incubation day, a total of 20
fertile eggs were randomly selected, removed, and injected
with NaN3, and then replaced in the incubator. After 7 days
of incubation, eggs were candled and broken out to deter-
mined fertility and embryo viability. Out of the total number
of eggs studied, one, two, and one eggs that were injected on
days 1, 2, and 3, respectively, were broken.
Table 1 lists the sample evolution during the first 4 days
of incubation. A total of six groups were obtained on day 4
of incubation: fertile eggs (n076), infertile eggs (n018), Fig. 1 The hyperspectral imaging system used in the study
eggs injected (i.e., stopped embryo development) on days 0
(n020), 1 (n019), 2 (n018), and 3 (n019). Note that the
number of eggs with stopped embryo development varied Headwall Photonics Inc. USA), an InGaAs camera
because of broken eggs. For each day of incubation, there connected to the spectrograph, a conveyer (Donner
were two classes: fertile eggs and non-fertile eggs. In the 2200 series, Donner Mfg. Corp., USA) driven by a
rest of the paper, non-fertile eggs specifically include infer- stepping motor (MDIP22314, Intelligent motion system
tile eggs and dead embryos. The numbers of eggs in the two Inc., USA) with a user-defined speed, a tungsten halo-
classes varied with the time of incubation as shown in gen lamp (50 W) providing back illumination to eggs,
Table 1. an enclosure supporting the system, a data acquisition
and preprocessing software (Hyperspec, Headwall Pho-
Hyperspectral Imaging System and Image Preprocessing tonics Inc. USA) and a PC.
The system collected spectral images in a wavelength
Figure 1 shows the laboratory near-infrared (NIR) hyper- range between 900 and 1,700 nm with a spectral resolution
spectral imaging system used in the study. This imaging of 2.8 nm. Egg samples vertically placed on a wood board
system consisted of a line-scan spectrograph (Hyperspec™, were conveyed to the field of view of the camera with a
predefined speed which was decided by trial-to-error to
avoid image distortion. The halogen lamp was placed right
Table 1 Egg sample evolution during the first 4 days of incubation underneath the camera. The two parameters of the prepro-
cessing software, i.e., system integration time and the
Incubation time Before imaging After imaging frames used for calculating the output signal, were set at
5,000 ms and eight, respectively. The output hypercube is
Total Fertile Non-fertile eggs Injected eggs
eggs eggs (infertile eggs, (stopped embryo, 800 rows×320 columns×167 bands.
dead embryo) broken eggs ) Image preprocessing was conducted to calibrate the spec-
tral images by percent transmission. A dark and a white
Day 0 174 156 18 (18, 0) 20 (20, 0) image was obtained for calculating the percent transmission
Day 1 174 136 38 (18, 20) 20 (19, 1) of the output spectral images by covering the lens with a
Day 2 173 116 57 (18, 39) 20 (18, 2) cap, and allowing the light to go through the lens, respec-
Day 3 171 96 75 (18, 57) 20 (19, 1) tively. Thus, the pixel values of each plane of the output
Day 4 170 76 94 (18, 76) – hypercube are between 0 (corresponding to the dark image
There are two classes (fertile vs. non-fertile) on each day of incubation
that means no light transmitted) and 1 (corresponding to the
based on fertility and six groups for all egg samples according to the white image that means all light from the halogen lamp
injection time (marked in italics) transmitted).
2506 Food Bioprocess Technol (2013) 6:2503–2513

Fig. 2 An example of spectral


images at the same wavelength
(1,076 nm) on different days of
incubation

Day 0 Day 1 Day 2 Day 3 Day 4

Gabor Filter mask for each egg and then to segment each egg from the
original image.
The objective of using Gabor filter was to extract useful In order to extract useful and helpful image texture
image texture information to facilitate the classification information of eggs, Gabor filters were applied to the
of fertile and non-fertile eggs (infertile eggs and dead ROI of hyperspectal images. An oriented Gabor filter
embryos). All operations in this section were performed G0, which is a Gaussian function modulated by an
using MATLAB 7.3.0 (The MathWorks, Inc., MA, oriented harmonic function, can be defined as follows
USA). (Ma et al. 2002):
A hyperspectral image captured by the imaging system  2 
1 x þ y2
described in “Hyperspectral Imaging System and Image G0 ðx; y; f ; σ; θÞ ¼ exp 
2pσ2 2σ2
Preprocessing” normally consists of four eggs. The selection
of region of interest (ROI) of a sample image is to create a  cos½2pf ðx cos θ þ y sin θÞ; ð1Þ

Fig. 3 Selection of ROI. a The


spectral image at 1,076 nm, b
the mask for ROI, and c four
separated regions of interest

(a) (b) (c)


Food Bioprocess Technol (2013) 6:2503–2513 2507

Fig. 4 The region of interest


and the corresponding Gabor-
filtered images

Filtered ROI

Circular Gabor
Filter

ROI

Oriented Gabor
Filter

Filtered
ROI

0° 45° 90° 135°

where (x, y) is the coordinate of point in 2-D space, f is In order to make the Gabor filter more robust against
the frequency of the sinusoidal wave, σ is the standard differences in brightness, both Gabor filters were tuned to
deviation of the Gaussian envelope, and θ controls the zero DC (direct current, i.e., the baseline) with the application
orientation of the Gabor filter. When only the spatial of the following formula (Zhang et al. 2003):
frequency information accounts for the major differences
among texture, an isotropic Gabor filter G1 can be used P
n P
n
G½i; j
with the following form: e
Gg ¼ Gg 
i¼n j¼n
; ð3Þ
 2  ð2n þ 1Þ2
1 x þ y2
G1 ðx; y; f ; σ; θÞ ¼ exp 
2pσ2 2σ2 where g00,1, (2n+1)2 is the size of the filter. The adjusted
h pffiffiffiffiffiffiffiffiffiffiffiffiffiffii e was used to convolute the ROI of each sample
Gabor filter G
 cos 2pf x2 þ y2 ð2Þ
image, respectively.

Fig. 5 Typical spectral images


(at the wavelength of 1,076 nm)
of different groups at day 4. a
Infertile eggs, dead embryos at
b day 0, c day 1, d day 2, e
day 3, and f fertile eggs
2508 Food Bioprocess Technol (2013) 6:2503–2513

Spectral Transmission Characteristics baseline filtering method was also used to remove baseline
from the original spectral transmission characteristics. In the
Two types of spectral transmission characteristics MS and MG rest of the paper, the spectral transmission characteristics MS
were used for further data analysis. MS was the mean spectra and MG refer to the characteristics without noise and baseline.
of ROI (i.e., mean value of all pixels in ROI in the current
wavelength) over the spectral range of 900–1,700 nm, while Data Analysis
MG was the mean spectra of the Gabor-filtered ROI over the
same spectral range. Each spectral transmission characteristic In the stage of data classification, spectral transmission char-
was a 167×1 vector and was denoised by a 5×1 mean filter. A acteristics obtained in “Hyperspectral Imaging System and

Fig. 6 Typical curves of


spectral transmission
characteristics a MS, b MG1,
and c–f MG00–03 for different
groups of eggs at day 4
Food Bioprocess Technol (2013) 6:2503–2513 2509

Image Preprocessing” were first projected onto a lower di- dimensional linear space such that the variance of the pro-
mensional linear space to extract useful features and then the jected data is maximized. In this study, PCA was employed
extracted features were classified by using typical unsuper- to extract no redundant features from spectral information
vised classification methods, i.e., K-means clustering. All for efficient and effective classification.
operations in this section were performed using MATLAB The K-means clustering (Hartigan and Wong 1979) algo-
7.3.0 (The MathWorks, Inc., Mass., USA). rithm is a well-known unsupervised classification method
Principal component analysis (PCA), also known as Kar- which generates a specific number of disjoint, flat (non-hierar-
hunen–Loeve transform, is widely used for dimensionality chical) clusters by minimizing the sum, over all clusters, of the
reduction, loss data compression, and feature extraction. within-class distances from each object to its cluster center. The
This technique projects the data orthogonally onto a lower K-means method has been widely used in image analysis and

Fig. 7 Evolution of the peak


transmission of a MS, b MG1,
and c–f MG00–03 in different
groups. Mean of each group at
different time are presented,
error bars show SEM
2510 Food Bioprocess Technol (2013) 6:2503–2513

computer vision due to its simplicity and speed. In this study, bars illustrate the standard error of mean (SEM). For all
the egg samples were classified using K-means clustering. spectral transmission characteristics of infertile eggs, a sharp
decrease of the average peak transmission happened at day 1
of incubation versus prior to incubation, while the average
Results and Discussions peak transmission was constant (MS, MG00, and MG01) or
change little (MG02, MG03, and MG1) after 24 h of incu-
Spectral Transmission Characteristics bation. In contrast, the average peak transmission of fertile
eggs varies with different types of spectral transmission
Figure 2 shows the evolution of spectral images of the same characteristics. The average peak value of MS for fertile
set of eggs captured by the hyperspectral imaging system, eggs kept decreasing during incubation and dropped down
where all eggs were fertile and all spectral images at the more at days 3 and 4 than days 1 and 2, while the average
same wavelength of 1,076 nm. The region of interest (ROI) peak transmission of MG00–03 kept increasing during the
of each hyperspectral image (Fig. 3a), i.e., the egg areas, first 72 h of incubation and then significantly decreased at
was segmented using a predefined mask (Fig. 3b. A pixel in day 4 that is 1 day earlier than the observation of a signif-
Fig. 3a remains unchanged if the corresponding pixel in icant decrease of the 577:610 nm ratio in fertile eggs
Fig. 3b is marked white, otherwise set to zero.) and four reported in Bamelis et al. (2002). A big difference of the
regions of interest (Fig. 3c) were obtained for each hyper- average peak transmission between fertile eggs and infertile
spectral image, as shown in Fig. 3. Each ROI was filtered by eggs was observed at day 0 (prior to incubation) and day 4
an isotropic Gabor filter G e 1 and four oriented Gabor filters, (after 96 h of incubation), which indicated that fertile and
e e e e
i.e., G00 , G01 , G02 , G03 , along 0,π/4,π/2,3π/4, respectively, infertile eggs could be totally classified at the 2 days.
and the corresponding Gabor-filtered ROI images were The groups of treatments after different periods of incu-
obtained as illustrated in Fig. 4, where f00.05, σ020, and bation show various evolution profiles with different injec-
n041 for all Gabor filters based on trial and error. tion time. The developing embryos stopped at days 0 and 1
Typical spectral images of different groups at day 4 are produced similar evolution profiles with the infertile eggs
shown in Fig. 5 and the corresponding typical curves of except no significant decrease at day 1, while the eggs
spectral transmission characteristics, MS and MG, are injected at day 3 had a similar profile as fertile eggs except
shown in Fig. 6. All spectral transmission characteristics that signification decrease at day 4 was not so sharp as
are very close to 0 in the range of 900–950 and 1,155– fertile eggs. The embryos injected at day 2 showed a mixed
1,700 nm and thereby no deviation can be found among profile which had similar evolution as fertile eggs during the
different groups. The largest deviation between the 6 groups first 3 days and no significant decrease happened at day 4.
examined in this study can be found at the wavelength of For all spectral transmission characteristics, the later
1,076 nm where the peak value for every spectral transmis- injected eggs produced the larger difference with the first
sion characteristics were produced, no matter MS or MG injected group, which is same as the result in Bamelis et al.
were used. The peak observed in the NIR region was due to
the water and fat absorption bands related to O–H and C–H
stretching second where the NIR light has the high penetra-
tion power through water and fat (Anderson et al. 2006).
The peak transmission value for fertile eggs at day 4 was
minimal among all groups, which indicates that the values
of spectral transmission characteristics around the peak
could be used to discriminate the fertile eggs from non-
fertile eggs. In addition, the deviation between fertile eggs
and injected embryos at day 3 (injection at day 3, the last
injected embryos in this study) was larger in MG than MS.
This indicated the possibility of improvement of detecting
recent dead embryos (within 24 h) using image texture
information.

Evolution of Spectral Transmission

The evolution of average peak values of spectral transmis-


sion characteristics for different groups is shown in Fig. 7, Fig. 8 Cumulative percent variance explained by principal compo-
where the marker face presents the average value and error nents of different spectral transmission characteristics over all days
Food Bioprocess Technol (2013) 6:2503–2513 2511

Fig. 9 Distribution of egg


samples in the space spanned
by the first three PCs which
were obtained from MS and
MG1 at days 0 and 4 of
incubation. Only fertile (with
red marker) and infertile (with
blue marker) eggs are shown on
day 0, while fertile eggs, dead
embryos (with green marker),
and infertile eggs are shown on
day 4. The view of each plot
was adjusted for the possible
best discrimination of classes

(a) MS on Day 0 (b) MS on Day 4

(c) MG1 on Day 0 (d) MG1 on Day 4

(2002). The average peak transmission became constant for classification. Figure 9 shows the principal component
after 24 h of injection. score plots of the first three PCs for MS and MG1 (along the
vertical direction) at days 0 and 4 of incubation (along the
PCA horizontal direction) as well as the percentage of variance
explained by each PC. A sample score is the map of the
The cumulative percentage of variance explained by princi- original data into the space spanned by the principal com-
pal components of MBRS and MBRG over all incubation ponents. Principal component score plots visualize the dis-
days is shown in Fig. 8. The first three PCs explained at crimination of classes based on the plotted PC scores. Three
least 99 % of the variance of data for all spectral transmis- different data sets, i.e., dead embryos, fertile eggs, and
sion characteristics over all days and thereby were selected infertile eggs, are shown in Fig. 9. The data sets of fertile

Table 2 Accuracy (percent) of K-means clustering based on the first three PCs

Incubation MS MG00 MG01 MG02 MG03 MG1


time
Fertile Non- Total Fertile Non- Total Fertile Non- Total Fertile Non- Total Fertile Non- Total Fertile Non- Total
fertile fertile fertile fertile fertile fertile

Day 0 76.3 100 78.8 75.7 100 78.2 75.7 100 78.2 62.5 100 66.5 75.0 100 77.7 75.7 100 78.2
Day 1 63.6 68.4 64.7 63.6 71.1 65.3 64.4 63.2 64.1 66.7 50.0 62.9 63.6 65.8 64.1 65.2 60.5 64.1
Day 2 77.9 45.6 67.1 97.4 24.6 72.9 99.1 24.6 74.1 82.3 15.8 60.0 100 21.1 73.5 99.1 24.6 74.1
Day 3 77.9 68.0 73.5 72.6 54.7 64.7 72.6 54.7 64.7 72.6 54.7 64.7 72.6 54.7 64.7 72.6 53.3 64.1
Day 4 93.4 66.0 78.2 89.5 75.5 81.8 89.5 71.3 79.4 86.8 75.5 80.6 86.8 73.4 79.4 90.8 78.7 84.1

The overall best classification results for all eggs on the corresponding incubation day are in italics
2512 Food Bioprocess Technol (2013) 6:2503–2513

Table 3 Accuracy (percent) of K-means clustering based on the first three bands of maximum responses

Incubation MS MG00 MG01 MG02 MG03 MG1


time
Fertile Non- Total Fertile Non- Total Fertile Non- Total Fertile Non- Total Fertile Non- Total Fertile Non- Total
fertile fertile fertile fertile fertile fertile

Day 0 100 100 100 100 77.8 97.7 78.3 88.9 79.4 93.4 11.1 84.7 73.7 94.4 75.9 98.7 100 98.8
Day 1 63.6 68.4 64.7 63.6 71.1 65.3 64.4 68.4 65.3 74.2 63.2 71.8 60.6 81.6 65.3 77.3 65.8 74.7
Day 2 59.3 50.9 56.5 51.3 63.2 55.3 63.7 61.4 62.9 81.4 36.8 66.5 69.0 47.4 61.8 62.8 54.4 60.0
Day 3 77.9 69.3 74.1 64.2 64.0 64.1 83.2 56.0 71.2 66.3 40.0 54.7 84.2 49.3 68.8 83.2 48.0 67.7
Day 4 92.1 69.2 79.4 88.2 77.7 82.4 88.2 72.3 79.4 86.8 76.6 81.2 86.8 74.5 80.0 90.8 76.6 82.9

The overall best classification results for all eggs on the corresponding incubation day is in italics

eggs and dead embryos vary with different days of incuba- (78.8 %) and day 3 (81.8 %) compared to the first three
tion. Non-fertile eggs consist of only infertile eggs on day 0 bands with maximum response of either MS or MG1 used,
(prior to incubation) and include infertile eggs and dead while a slightly lower result on day 0 (99.4 %). Comparable
embryos on the other days of incubation. The size of each results on day 2 (70.0 %) and day 4 (81.2 %) were obtained
data set on different days of incubation is listed in Table 1. with the combination of first three bands of MS and MG1,
which were a little lower than the results from the first three
K-Means Clustering PCs of MG1 (74.1 % at day 2 and 84.1 % at day 4). One
possible explanation is that the first three PCs which are
An unsupervised classification method, K-means clustering, obtained by all of 167 wavebands include more information
was employed to investigate the ability of spectral transmission than the first three bands. However, the use of first three
characteristics to discriminate fertile and non-fertile eggs. The bands with maximum response is more suitable for a real-
first three PCs of each spectral transmission characteristics time system and thereby for the industrial application.
were used for classification and the corresponding results were Comparing the results listed in Tables 4 and 3, the combi-
shown in Table 2. Since the largest deviation among nation of MS and MG1 produces much better results at day 1
different groups was found around the waveband where (78.8 vs. 74.7 %), day 2 (70.0 vs. 66.5 %), and day 3 (81.8 vs.
the maximal responses of MS and MG were produced 74.1 %) than the use of either MS or MG1, while the classifi-
(as shown in Fig. 6), the first three bands with maxi- cation accuracy obtained by this combination is slightly lower
mum responses (i.e., 1,066, 1,071, and 1,076 nm) of than MS at day 0 (99.4 vs. 100 %) and MG1 at day 4 (81.2 vs.
each spectral transmission characteristic were also used 82.9 %). This suggested that the image texture information is
for classification and the K-means clustering results more suitable for detecting early embryo development than
were listed in Table 3. detection of fertility especially prior to incubation. The lower
A very promising result, i.e., 100 % accuracy for classi- classification results at days 1 and 2 indicated that the embryo
fication of fertile and infertile eggs prior to incubation development is more difficult to be detected during the first
(day 0), was obtained when using the first three bands of 2 days of incubation, which is consistent with the fact that
maximum responses of MS. During the incubation days
(day 1–4), the highest classification results over different
spectral transmission characteristics between Tables 2 and 3 Table 4 Accuracy (percent) of K-means clustering based on the first
were 74.7 % at day 1 (by first three bands of MG1), 74.1 % three bands with maximum responses of MS and MG1
at day 2 (by first three PCs of MG1), 74.1 % at day 3 (by Incubation time First three maximal response bands of MS+MG1
first three bands of MS), and 84.1 % at day 4 (by first three
PCs of MG1). The results showed that MS and MG1 pro- Fertile Non-fertile Total
duced better results than other spectral transmission charac-
Day 0 99.3 100 99.4
teristics no matter the first three PCs or first three bands of
Day 1 83.3 63.2 78.8
maximum responses used, which indicated the possibility of
Day 2 86.7 36.8 70.0
obtaining better classification results when combining MS
Day 3 89.5 72.0 81.8
and MG1.
Day 4 90.8 73.4 81.2
Table 4 shows the K-means clustering results using the
first three bands of maximum responses of MS and MG1 (a The overall best classification results for all eggs on the corresponding
total of six bands). Higher results were produced on day 1 incubation day are in italics
Food Bioprocess Technol (2013) 6:2503–2513 2513

blood formation starts in the developing embryo from day 2 eggs using visible light transmission. British Poultry Science.,
43, 204–212.
(Romanoff 1960; Bodemer 1970).
Bodemer, C. W. (1970). Modern embryology. London: Holt, Rinehart
& Winston.
Clausi, D. A., & Ed Jernigan, M. (2000). Designing Gabor filters for
Conclusions optimal texture separability. Pattern Recognition., 33(1), 1835–
1849.
Das, K., & Evans, M. D. (1992a). Detecting fertility of hatching eggs
The evolution of average peak values of spectral transmis- using machine vision: I. Histogram characterization method.
sion characteristics showed that the later injected eggs pro- Transactions of ASAE, 35, 1335–1341.
duced the larger difference with the first injected group and Das, K., & Evans, M. D. (1992b). Detecting fertility of hatching eggs
using machine vision: II. Neural network classifiers. Transactions
the average peak transmission of MS and MG remained of ASAE, 35, 2035–2041.
constant or change little after 24 h of injection. The best Daugman, J. G. (1980). Two-dimensional spectral analysis of cortical
unsupervised classification results for all eggs were 100 % receptive field profiles. Vision Research., 20, 847–856.
at day 0, 78.8 % at day 1, 74.1 % at day 2, 81.8 % at day 3, Daugman, J. G. (1985). Uncertainty relation for resolution in space,
spatial frequency, and orientation optimized by two-dimensional
and 84.1 % at day 4. The 100 % classification result at day 0
visual cortical filters. Journal of the Optical Society of America A,
means a perfect detection of fertility prior to incubation. The 2(7), 1160–1169.
lower classification results at days 1 and 2 indicates that the Hartigan, J. A., & Wong, M. A. (1979). A k-means clustering algo-
detection of embryo development is more difficult during rithm. Applied Statistics, 28(1), 100–108.
Lawrence, K. C., Smith, D. P., Windham, W. R., Heitschmidt, G. W., &
the first 2 days of incubation, which is consistent with the
Park, B. (2006). Egg embryo development detection with hyper-
period of blood formation in the developing embryo. The spectral imaging. Internation Journal of Poultry Science, 5(10),
classification results show that the image texture informa- 964–969.
tion is more useful to detect early embryo development than Lee, K. J., Kang, S., Kim, M. S., & Noh, S. H. (2005). Hyperspectral
imaging for detecting defect on apples. ASAE Paper No. 053075,
to detect fertility of chicken eggs especially prior to incuba- St Joseph, Michigan.
tion. In addition, the promising results produced by the first Ma, L., Tan, T., Wang, Y., & Zhang, D. (2002). Personal identification
three bands with maximum response (i.e., 1,066, 1,071, and based on iris texture analysis. IEEE Transactions on Pattern
1,076 nm) of MS (spectral transmission characteristic) and Recognition and Machine Intelligence, 25(12), 1519–1533.
Manjunath, B. S., & Ma, W. Y. (1996). Texture feature for browing and
MG1 (isotropic Gabor filter-based spectral transmission
retrieval of image data. IEEE Transactions on Pattern Analysis
characteristic) indicates the potential of hyperspectral imag- and Machine Intelligence, 18(8), 837–842.
ing techniques in building a real-time system for detection Polder, G., Heijden, G. W. A. M., & Young, I. T. (2002). Spectral
of fertility and early embryo development of chicken eggs. image analysis for measuring ripeness of tomatoes. Transactions
of ASAE, 45(4), 1155–1161.
Romanoff, A. L. (1960). The avian embryo. New York: Macmillan.
Smith, D. P., Lawrence, K. C., & Heitschmidt, G. W. (2008). Fertility
References and embryo development of broiler hatching eggs evaluated with
a hyperspectral imaging and predictive modeling system. Inter-
national Journal of Poultry Science., 7(10), 1001–1004.
Anderson, R. R., Farinelli, W., Laubach, H., Manstein, D., Yaroslavsky, Williams, P. (2003). Near-infrared technology: getting the best out of
A. N., Gubeli, J., et al. (2006). Selective photothermolysis of lipid- light. 2.0.2 ed. PDK Projects, Inc., Nanaimo, British Columbia,
rich tissues: a free electron laser study. Lasers in Surgery and Canada.
Medicine, 38, 913–919. Zhang, D., Kong, W. K., You, J., & Wong, M. (2003). Online palm-
Bamelis, F. R., Tona, K., De Baerdemaeker, J. G., & Decuypere, E. M. print identification. IEEE Transactions on Pattern Recognition
(2002). Detection of early embryonic development in chicken and Machine Intelligence, 25(9), 1041–1050.

You might also like