Strathclyde Hyperspectral Imaging
Academic: Professor and lecturer
2 post docs (sponsored by
(sponsored by Gilden and AZ)
research and HSI applications
HSI imaging facility donated by Gilden Photonics
About the centre
UK Hyperspectral Imaging Conferences
April 2010 May 2011
Gilden Photonics, Gooch
, Hamamatsu, Mapping Solutions
, Herriot Watt ,
INGV, Rome 15
16 May 2012
HSI Community building activities & partners
Beef quality assessment
Drug dissolution process
Finger print detection
Chinese tea classification
New data processing tools
Band selection /data reduction methods
Quantitative Assessment of Beef Quality
with Hyperspectral Imaging
using Machine Learning Techniques
, Stephen Marshall
and Charlotte Maltin
Hyperspectral Imaging Centre, University of Strathclyde, Glasgow, U. K.
Scottish Agricultural College (SAC), Edinburgh, U. K.
IVABS, Massey University, Palmerston North, N. Z.
Quality Meat Scotland, Ingliston Newbridge, U. K.
Machine Learning for Prediction
Experiments Results and Discussions
NIR Hyperspectral Imaging System 
Hyperspectral imaging of
meat in NIR spectral ranges
To predict meat quality of
Image processing and
machine learning techniques
like neural network are used
for prediction & classification.
NIR sampling over 700
2500nm is preferred to allow spectra
acquired in three modes, reflection, transmission and
, and also enables response to key food
components like C
H and N
H molecular bonds.
et al  used selected bands on a trained neural network
for prediction of drip loss, pH and surface colour of pork, and the
prediction correlation coefficients are 0.77, 0.56 and 0.86.
 employed PCA for data reduction and partial least
square regression for prediction of surface colour, tenderness and
pH of beef. The correlations are 0.88, 0.73 and 0.81;
 used similar linear regression on beef data captured
under commercial conditions and the correlation is less than 35%
for surface colour, pH and
2. Feature Selection
Usually the spectral profiles are used as features yet some
spectral bands or their combinations are more distinguishable
than others thus feature selection is desirable.
2. Feature Selection
1) Spectral redundancy makes it possible for feature
selection and data reduction;
2) Band selection is not used here as though it is found to
yield good results [1, 10]. Instead, principal component
analysis (PCA) is utilised as it is a standard one which has
been integrated in many existing development tools like
3) We apply PCA to the original spectral data and then
select the dominant principal components as new features
for training and prediction.
3. Machine Learning for Prediction
1) Linear regression and its variations are widely used for
prediction of relevant parameters, such as partial least
square regression (PSLR) in , the general linear models
(GLM) in  and multi
linear regression (MLR) in .
2) Since the parametric models are not necessary linear,
machine learning approaches is preferred where support
vector machine (SVM) is employed.
3) SVM enables effective regression and prediction for both
linear and non
linear cases and it general outperforms
neural network in machine learning.
3. Support Vector Machine (SVM)
respectively refer to a weight vector and a
can be determined in the training process through
minimizing a cost function, and
refers to a (nonlinear) mapping
to map the input vector
into a higher dimensional space for
easily separated by a linear hyperplane as illustrated below.
This figure illustrates the
concept of SVM where a
linearly separable in the
mapped feature space.
Kernel Functions & Evaluation
LibSVM is used for the
implementation of the
SVM in both training
The correlation is
defined to the right for
4. Experimental Datasets
Our data is the one used in  captured under
The data is acquired using a NIR spectrometer at
Quality Meat Scotland  and the spectrum ranges
from 350nm to 1800nm with a spectral resolution of
The mean and median values in the absorbance form
from 10 repetitive scans are recorded for processing.
The data samples are 234 in total.
fold cross validation scheme is used for
4. Experimental Results
components = 13
components = 20
: Correlation of predicted
M. longissimus dorsi
force values to the ground truth under various kernel functions
and number of principal components.
4. Analysis of Results
Polynomial kernel function produces the best results;
and increasing the number of principal components
helps to improve the prediction.
Linear kernel function and RBF kernel function tend to
yield much worse results.
the number of
principal components does not certainly improve the
results from RBF kernel, though slightly better results
can be found for linear kernel.
This on one hand indicates that polynomial kernel
function seems the best choice for this application. On
the other hand, it explains why linear models used in 
generated the poor results.
4. Experimental Results
. Correlation values between the ground
truth and the extracted principal components.
For some principal
are as high as 0.2
It is possible to
data prediction, and
this will be
investigated in the
1) We have applied SVM for data prediction in food
quality analysis and found polynomial kernel to
yield the best results;
2) Using PCA for dimension reduction, we have
significantly improved the prediction of M.
shear force correlation values
from less than 0.35 to about 0.533;
3) How to apply our approach to predict other
parameters and also to evaluate the possibility in
choosing principal components for prediction will
be investigated in the near future.
The authors would like to thank colleagues in
industry and the Scottish Agricultural College for
their help in providing and collecting the data.
Thank you for your attention!