You are on page 1of 6

A digitalization strategy for quality control in food

industry based on Artificial Intelligence techniques

J. A Garcı́a-Esteban, B. Curto, V. Moreno I. González-Martı́n I. Revilla, A. Vivar-Quintana


Department of Computer Science Department of Analytical Food Technology
and Automatics and Food Chemistry E.P.S. de Zamora
Faculty of Sciences Faculty of Chemistry University of Salamanca
University of Salamanca University of Salamanca

Abstract—In food products marketing, ensuring to the con- economic cost and time, and in many cases the measures
sumer identical organoleptic properties is vital for maintaining can be subjective due to the tasters state (tiredness, sensory
the client fidelity. Systematically achieve it by using as sensory fatigue, etc). Unfortunately, this involves that no every lots
information the valuations of a tasting panel, is unfeasible. can be assessed with this evaluation procedure, furthermore
Routinely, to assemble a tasting panel involves organizational and it is performed off-line, when the product has been finalized.
economics costs, as well as the sensory fatigue and the subjectivity
Therefore, the food industry needs measuring tools that can
of the panel members.
reproduce the human sensory evaluations, and manufacturing
In this paper is proposed a vitualization strategy or compu- paradigms that allow to manage the on-line quality control
tational model focused on food products quality control, based through the measurements and the manufacturing activities.
on cooperation and data exchange between the main agents
involved in the process: quality managers, professional tasters, In this regard, “Process analytical technology” (PAT) is a
production managers, inspection authorities, etc. Virtualization paradigm designed to analyse and control, during the manufac-
(digitalization) is supported on a ICatador cloud platform which turing process, the quality and safety of industrial products in
has intelligent algorithms embedded to predict the food sensory order to assure that the final obtained product fulfills with the
properties. These algorithms have Near InfraRed Spectroscopy quality standards. PAT allows to increase the efficiency in the
data of the product samples as input. on-line quality control process and during the manufacturing
As a validation scenario, our virtualization approach has been process. In addition, it allows continuous system learning,
applied to the ripening cheese elaboration. Thanks to advanced which will facilitate continuous improvement [1], [2], [3]. The
visualization techniques, the quality manager can immediately PAT application can be implemented through virtualization.
and systematically know the merit figure related to a product The virtualization is a innovative tool to effect food industry
sensory quality. The ICatador solution, has two profitable aspects. processes. Within food engineering and quality control, virtual-
Sensory analysis is performed without routinely gathering a ization is a computational model which represents the activities
professional tasting panel. As a huge amount of data coming carried out in a food engineering process, such as it can be the
from the elaboration process itself are available, the intelligent
algorithms are enriched by these data for the adaptation to the
quality control of products [4], [5]. The virtualization used in
product elaboration process. In this way, we will be able to food industry can be considered as a transformation towards
fine-tune continuously the machine-learning algorithms to the the fourth industrial revolution or industry 4.0 [6], [7], [8].
particular process and use them intelligently to increase the In this sense, “Cloud Computing” (CC) is a essential
competitiveness.
technology to achieve the food companies vitualization. CC
Keywords—Virtualization of Food Quality Control, Food Sen- supports the transformation of the industry from a traditional
sory Predictions, Food Machine Learning Estimation business model to a more collaborative, distributed and global
business model. More specifically, “Cloud Manufacturing” will
I. I NTRODUCTION allow cooperation and manifacturing activities at different
places, departments or organizations [9]. Consecuently, the
Today, determining and predicting the quality and ensuring industry will be more efficient and competitive and products
food safety is crucial for the successful marketing of products quality will improve, which implies an increase of the con-
in the food industry. One of the ways to evaluate quality and sumer satisfaction and, therefore, of the sales [6]. By the
acceptability of a product is through a sensory analysis carried hand of the CC, “Big Data” (BD) appears as a technology
out by a professional tasters panel. The tasting panel, across which allows to analyse the large amount of data that a
his senses, scores the food sensory attributes (texture, odour, company can have and use it intelligently to increase its global
flavour, ...), according to a defined sensory profile. The tasters competitiveness. Proper use of BD can help notably to the
are previously training by following a methodology, like QDA efficiency increment in the productivity and quality.
(Quantitative Descriptive Analysis).
In this paper is presented ICatador, a software platform
Food sensory attributes can only be accurately determined based on Cloud Computing which virtualizes the quality
through tests performed by a tasters panel, because no any control process of cheeses. The platform allows, on the one
tool can replace the human senses. However, to accomplish hand, to keep the traditional control methods (tasters panel) by
sensory measures is very labor-intensive and involves a high virtualizing their work, increasing the efficiency and allowing

l-))) 

Authorized licensed use limited to: Universidad Nacional de Ingeniería. Downloaded on November 30,2022 at 22:39:17 UTC from IEEE Xplore. Restrictions apply.
the cooperation and the information exchange in a distributed can be had for each product type and, inclusive, several
way. On the other hand, using the NIRS (Near InfraRed profiles for the same product type, if the quality standards
Spectroscopy) technology as an instrumental measure, the are modified. Automatically, tasters will have, through the
platform incorporates Artificial Neural Networks, as a compu- platform, the sensory attributes which they will have to score.
tational intelligent technique (Big Data), to reproduce/predict The procedure, the related legislation, the description of the
the tasters valuations about the food sensory attributes. attributes, and in general any documentation type which helps
in the process will can be defined by the organizer.
II. V IRTUALIZATION S TRATEGY The inspection technician will be the responsible of making
The design goal in the virtualization is to transfer the the instrumental measures of each sample. This task can be
acquisition of food organolectic properties from a tasting room carried out manually in the laboratory or at the line production
to the production chain and to tend towards at-line quality through a mobile device and, in the best case, automatically
model. at line. Once the particular type of product is configuring,
the instrumental measures will be registered in the platform.
ICatador will predict automatically the sensory attributes of
this product through the obtained functions via supervised
learning. This functions, one for each attribute, are embedded
in the cloud platform.
Another actor involved in the process virtualization is
the responsible of supervising the products quality from the
tasting data. The cloud platform makes easier the work of
this user, because it allows him to add, delete or modify
products, and it is possible to update the complete information
concerning them, such as their composition, the quality and
the origin of their components, food production date, ... The
most remarkable feature of ICatador is that quality manager
can check and visualize immediately, the valuations that tasters
have made and the values predicted by the machine learning
algorithm (artificial tasting). He can compare the human scores
with predictions, so that it can feedback the ratings and adjust
prediction functions to correct deviations.
Figure 1. Conceptual scheme of the virtualization of the tasting process

The virtualization core is set of algorithms based on III. C LOUD PLATFORM IMPLEMENTATION
machine learning techniques. It is about a supervised learning ICatador system is developed to be used in cloud from
in which a set of functions will be obtained that will allow any device type (PCs, tablets, smartphones...) so that it can be
to predict the valuations of a professional taster, having as accessible from any place and any moment.
input data a measurement provided by an instrument, such as
a NIR spectrometer. The ultimate aim is not to replace the ICatador has a MVC (Model-View-Controller) architecture.
tasters panel, but to accelerate the tasting process by means of Views are developed in HTML, the controllers in Javascript us-
alternative and objective valuation sources. ing the open source framework AngularJS. Finally, data model
Within this virtualization strategy, different actors have is developed in a MySQL database. Model has functionalities
been defined, each with a different role. All of them collaborate which allow selecting automatically the sensory profile to
in the quality control process of the food product, from which a product belongs, making that this fact fully transparent
different places of the company or the other companies. The to users who only have to introduce or consult data. For the
virtualization strategy is supported in a cloud platform, which communication between the data base and the controllers we
we have called ICatador, whereby the collaborative process is use a DAO (Data Access Object) pattern, which is developed
established. in PHP, making easier maintenance works.

One of the main actors is the professional taster. The tasters To make easier the ICatador adaptation to new sensory
will value the product following a traditional methodology. profiles or to changes in existing ones, a template system has
They will use ICatador to introduce their scores directly though been implemented which will allow to add, modify or delete
mobile devices, laptop or desktop computers. Initially, this sensory profiles according to the needs of the users. All of it
information provided to the system will be used to train the is transparent for them with a dynamic adaptation.
prediction algorithm. In successive phases this information will
be used to optimize the algorithms of supervised learning. Graphics and visual representations have been developed
using the D3.js library which allows the graphic representation
The organizer of taste panel will define the sensory profile from the data. Therefore, thanks to this library, the system can
according to the product type. The sensory profile contains create different graphical visualizations (histograms, parallel
the organoleptic attributes to be evaluated by professional coordinates, radars) to represent the sensory attributes infor-
tasters, such as flavour, aroma, texture, etc. Different profiles mation, either from human or artificial scores.



Authorized licensed use limited to: Universidad Nacional de Ingeniería. Downloaded on November 30,2022 at 22:39:17 UTC from IEEE Xplore. Restrictions apply.
IV. R ESULTS
The proposed virtualization strategy is applicable to any
food industry. In this section its application to the cheese
elaboration is described, it is the most consumed dairy deriva-
tive. The strategy, supported on the ICatador platform, allows
to perform a predictive valuation of the cheese organoleptic
characteristics, such as attributes related to flavour, texture,
aspect, odour and other relevant sensations.
As main result, ICatador is the cloud platform that can be
used by cheese producers and quality regulatory agencies for
on-line quality control of their products, following the PAT
guidelines though the virtualization strategy which we have
proposed. The quality manager, tasters, tasting panel organizer
and the production line inspection technician collaborate (Fig.
1), from different places, on the quality control tasks. The
contributions of each agent are combined to increase the
efficiency and to fulfil demands of the food industry.
The cheeses with 16 different known compositions and
varying percentages of cow’s, ewe’s and goat’s milk were
elaborated at University of Salamanca. The sensory and in-
strumental tests have been performed on 64 cheese samples,
with different composition and maturation time. In 4 moments
during the ripening process, a sample of each of 16 com- Figure 2. New product entry in ICatador
positions was taken for analytical test, both laboratory (NIR
spectroscopy) and sensory.
B. Sensory Measures
In our work, the sensory evaluations were performed by a
panel of 8 members trained in the use of the QDA methodol- The sensory profile of the cheese was carried out by a
ogy. As instrumental measures we have used the data of NIR panel formed by 8 members trained in the use of the QDA
spectroscopy of the cheese samples, which is based on the methodology [15], which provides an objective description
electromagnetic radiation absorption in the band from 780 to of the products in terms of perceived sensory attributes. The
2500 nm. Near InfraRed (NIR) spectroscopy is well-known in panel was integrated by 75% women and 25% men, with ages
material sensing, and its major benefit is that it doesn’t need between 23 and 42 years old.
any sample preparation, furthermore, it is nondestructive and
can yield a response on-line. Applications of NIR spectroscopy Panel members were trained [16], [17] on the sensory
data can be found in medical and biomedical studies, food sci- profile of cheese during 18 sessions. During the training was
ence, forestry, and the pharmaceutical and petroleum industries encouraged that the group developed a common vocabulary for
[10]. the evaluation of the sensory characteristics, which contained
simple and specific terms that made easier the description
Regarding to the predictive models, Artificial Neural Net- of products. In the QDA methodology, reference scales are
works (ANNs) are used as machine learning paradigm. They used to evaluate the texture intensity [18], olfactory-taste
are computational techniques which are adapted perfectly to parameters, and also some foods are proposed as standards
discover non-linear trends between variables [11], [12], as is in to stablish the scale [19]. Specifically, the organiser had set
our case the Near InfraRed spectrum and the sensory attributes. the sensory profile with 17 sensory attributes, framed within
of: flavour (rancid, acid, salty and intense), texture (greasy
A. Cheese samples feeling, creaminess, granularity, chewiness, hardness), aspect
(homogeneity, colour), odour (intensity, lactic acid, rancid
The cheeses used in our work were elaborated in a con- odour), other sensations (spicy, retronasal, throat residue).
trolled way in the pilot plant of the Food Technology Area During the training, the evaluators along with the organizer
at the University of Salamanca. With milk collected directly agreed the established reference standards, the terminology
from farmers of Zamora (Spain), two elaboration processes definitions and the evaluation techniques. For quantification
were preformed: 122 cheeses in winter and 112 in summer. the intensity of each attribute, 8 point scales are used, where
Its composition was variable but well known: 16 compositions “0” is the lack of parameter, “1” is the minimal intensity and
of cheeses were elaborated with different percentages between “7” is the maximum intensity for each of the parameters [19].
0% and 100% [13], [14] of raw milk from ewe, goat and cow.
After each elaboration process, they were moved to a drying In the evaluation phase, the cheeses were scored by pan-
chamber where the temperature (15o C) and the relative damp elists according to the description list defined during the
(70%) were controlled until the end of their maturation. training. The sensory measures on which our work is based
correspond to 4 tasting sessions of the elaborated cheeses,
In ICatador, the quality manager introduces the products coinciding to 4 different moments of the ripening.
(Fig. 2) which will be evaluated, with all the data concerning
them (type of milk, production lot, elaboration date, ...). In ICatador, the organizer of the panel draws up the



Authorized licensed use limited to: Universidad Nacional de Ingeniería. Downloaded on November 30,2022 at 22:39:17 UTC from IEEE Xplore. Restrictions apply.
Figure 4. Histogram of the panel scores of a determinate sample
Figure 3. “Aspect” and “texture” of sensory profile used by the tasters

our tasting this task can be done manually from the laboratory,
sensory profile (Fig. 3) with the attributes (fully configurable), or from any place of the manufacturing plant, but, thanks
identifies the products to be tasted, selects the tasters according to actual technological innovation, this information can be
to their characteristics stored in the Database, chooses the help incorporated automatically
regulation and documentation and, once the tasting is done,
scores the tasters. Through forms (Fig. 3), the tasting panel The recorded information constitutes the instrumental mea-
members will enter their evaluations directly into the platform, sures which are used for neural network off-line training and
once they are identified, using mobile devices such as tablets validation. When the platform is running on-line, the NIR
or smartphones. By the product identifier, ICatador recovers records of each cheese sample constitute the instrumental
the sensory profile which the product belongs. Automatically, measures for the sensory attributes prediction through ANN.
the sensory attributes, that tasters have to enter, will be showed The quality manager can observe the NIR spectra of each
together with the working procedure and the help descriptions. sample (Fig. 5) to detect possible errors.
The quality manager can visualize the attribute scores com-
pleted by tasters, individually or on average, through graphs
as a histogram (Fig. 4).
This sensory information constitutes the training data and
the neural networks validation.

C. Instrumental measures based on NIRS spectroscopy


The NIR technology is based on the electromagnetic ra-
diation absorption in the band from 780 to 2500 nm [13],  
[14] and provides a spectrum represented as values of log R1
where R is the reflectance against the wavelength. The NIR
spectra were obtained with an analyser Foss NIR 5000 in the
band of 1100-2000 nm with a spectral resolution of 2 nm. The
recording of NIR spectra was performed applying the carbon Figure 5. NIR spectra corresponding to a cheese sample
fiber probe directly on the cheese slices of 1 cm of thickness,
at room temperature (20-23 o C). To minimize sampling error,
all the samples were analysed three times. Previously to each D. Prediction model based on Artificial Neural Networks
record, the probe window was cleaned to minimize the cross-
The mathematical model used to estimate the sensory
contamination [13].
characteristics of the cheese samples is based on ANNs, which
The spectral analyser generates a file with the data of the are framed within no-lineal statistical data modeling tools.
NIR spectroscopy of the sample. The inspection technician, Specifically, a Multi-Layer Perceptron (MLP) ANN was used,
in production, incorporates the file in the ICatador Database, where the processing elements (PE) are structured in three
selecting the date and the product identification. Actually, in layers: an input layer where the instrumental measures will be



Authorized licensed use limited to: Universidad Nacional de Ingeniería. Downloaded on November 30,2022 at 22:39:17 UTC from IEEE Xplore. Restrictions apply.
entered, an intermediate or hidden and an output layer where
the sensory attribute to be evaluated is obtained.
The software application JavaNNS (Java Neural Network
Simulator) has been used as design, training and validation tool
of the ANN. The ANN model used is implemented within the
application as a “multi layer perceptron network”. After several
trials, the network model is constituted as follows:
• An input layer with three processing elements (PE),
whose inputs are the principal components (PCA) of
the NIR spectra. The NIR spectra that we record
ranges from 1100 to 2000 nm with a spectral reso-
lution of 2 nm. With 3 scores of Principal Compo-
nents from NIR spectrum, the 99.98% of the spectral
variability is expressed. In this way the spectral infor-
mation is compressed and the number of input values
is reduced from 451 to 3.
• A hidden layer with 5 PE
• A output layer with 1 PE which corresponds to the
modelled sensory characteristic. Figure 6. Artificial tasting (discontinuous line) of the attributes of “texture”
against the average of professional tasters (continuous line)
For each sensory characteristic, a network, with the previ-
ously topology commented, is built. These ANNs were trained
using the 80% of the dataset, randomly selected for each ANN.
Once each ANN was trained, we proceeded to evaluate its
accuracy on the test dataset formed by the remaining 20%.
These data were not shown during the training and were
selected randomly for each ANN.
To value the model performance, the squared correlation
coefficient R2 has been calculated for each of the trained
neural network. The obtained values are between 0.73 and
0.87, which is a high level of tuning. The ANNs which get a
better tuning correspond to those that predict the intensity of
flavour, chewiness and greasy feeling (texture) with values of
0.87, 0.86 and 0.87, respectively. On the contrary, the lowest
values of R2 are got in the characteristics rancid (odour), salty
(flavour) and throat residue with values of 0.73, 0.73 and 0.74.

E. Sensory attributes prediction in ICatador


After the training and validation of each neural network
(which is performed off-line) with Deep-Learning techniques,
the quality manager, in his daily work, can use ICatador to
predict the sensory attributes of a product. An artificial tasting
(tasting based on ANN) is extraordinarily simple and it can Figure 7. Artificial tasting (discontinuous line) of the attributes of “aspect”
against the average of professional tasters (continuous line)
be performed anywhere in which a NIR analyser is available.
The starting point is the NIR record that is performed of a
product sample and, then it is enter to ICatador through a file.
V. C ONCLUSIONS
After its loading, when the option “Artificial tasting” is clicked,
the platform ICatador calculates the organoleptic attribute In food industry, the quality control operations based on
predictions which have been configured for this product by the sensory analysis are restricted to the availability of the
the quality manager. experts, which implies relatively high economic costs, a certain
Using advanced visualization techniques, the results, degree of subjectivity associated with the sensory fatigue, and,
grouped by categories, are displayed through graphs of parallel in addition of the arduous organisational task. This restrictions
coordinates (Fig. 7) or radars. The quality manager, at a glance, impose that the quality control are reduced to certain lots.
can have the “merit figure” of the considered sample (Fig. 6) As an alternative approach, the machine learning tech-
to detect the deviations from the expected quality. The merit niques along with instrumental measures appear as an intel-
figures are grouped according to the attribute typologies. The ligent solution to obtain a reliable estimate of the sensory
result will be stored in the Database for subsequent analysis parameters of the food products.
for the system participants (quality managers, production man-
agers, etc.). In this work, a virtualization strategy of the food man-



Authorized licensed use limited to: Universidad Nacional de Ingeniería. Downloaded on November 30,2022 at 22:39:17 UTC from IEEE Xplore. Restrictions apply.
ufactured process, supported on a cloud platform, has been [13] M. González-Martı́n, P. Severiano-Pérez, I. Revilla, A. Vivar-Quintana,
presented. The core of the virtualization is a suite of intelligent J. Hernández-Hierro, C. González-Pérez, and I. Lobos-Ortega, “Pre-
algorithms (ANNs) which calculate organoleptic attributes diction of sensory attributes of cheese by near-infrared spectroscopy,”
Analytica Chimica Acta, 2011.
estimates using NIR spectrometry data from samples as input.
[14] I. González-Martı́n, J. Hernández-Hierro, R. Morón-Sancho,
J. Salvador-Esteban, A. Vivar-Quintana, and I. Revilla, “Determination
As a study case, the virtualization strategy has been ap- of the percentage of milk (cow’s, ewe’s and goat’s) in cheeses with
plied to the cheese manufacturing process. Through the cloud different ripening times using near-infrared spectroscopy technology
ICatador platform the main agents (quality manager, tasters, and a remote reflectance fibre-optic probe,” Analytica Chimica Acta,
tasting organizer, quality inspector) collaborate and exchange 2007.
information from different points and, in addition, instrumental [15] J. M. Murray, C. Delahunty, and I. A. Baxter, “Descriptive sensory
data are systematically incorporated. This collaborative model analysis: past, present and future,” Food Research International, 2001.
based on the data, will allow to have a wide range of data [16] “ISO 11035: 1994:sensory analysis – identification and selection of
descriptors for establishing a sensory profile by a multidimensional
coming from the production process itself. In this way, the approach,” 1994.
intelligent algorithm suite can be tuned and adapted to the
[17] “ISO 4121: 2003: Sensory analysis – guidelines for the use of quanti-
process itself to avoid deviations. tative response scales,” 2003.
Through the proposed approach, cheese manufactured com- [18] J. R. Piggot and R. G. Mowat, “Sensory aspects of maturation of
cheddar cheese by descriptive analysis,” Journal of Sensory Studies,
panies can carry out an intelligent production based on the 1991.
data, they can ensure that final product gathers the same [19] P. Bárcenas, F. P. Elortondo, and M. Albisu, “Sensory changes during
sensory characteristics fixed in the production goals. ripening of raw ewes’ milk cheese manufactured with and without the
addition of a starter culture,” Food Science, 2003.

ACKNOWLEDGEMENTS

This work has been supported by the General Foundation


of the University of Salamanca through the Plan TCUE 2015-
2017, co-financed by European Regional Development Fund
(ERDF) and the Castilla - León Council.

R EFERENCES
[1] S. Grassi and C. Alamprese, “Advances in NIR spectroscopy applied
to process analytical technology in food industries,” Current Opinion
in Food Science, 2017.
[2] A. S. Rathore and G. Kapoor, “Implementation of quality by design
towards processing of food products,” Preparative Biochemistry and
Biotechnology, 2017.
[3] W. Sommeregger, B. Sissolak, K. Kandra, M. von Stosch, M. Mayer,
and G. Striedner, “Quality by control: Towards model predictive control
of mammalian cell culture bioprocesses,” Biotechnology Journal, 2017.
[4] F. Erdogdu, F. Sarghini, and F. Marra, “Mathematical modeling for
virtualization in food processing,” Food Engineering Reviews, 2017.
[5] I. S. Saguy, “Challenges and opportunities in food engineering: Mod-
eling, virtualization, open innovation and social responsibility,” Journal
of Food Engineering, 2016.
[6] K.-B. Oio, V.-H. Lee, G. W.-H. Tan, T.-S. Hew, and J.-J. Hew,
“Cloud computing in manufacturing: The next industrial revolution in
malaysia?” Expert Systems with Applications, 2017.
[7] N. Efendioglu and R. Woitsch, “A modelling method for digital service
design and intellectual property management towards Industry 4.0:
Caxman case,” International Conference on Serviceology, 2017.
[8] H. Ruohomaa, J. Kantola, and V. Salminen, “Value network develop-
ment in Industry 4.0 environment,” Advances in Intelligent Systems and
Computing, 2018.
[9] D. Mourtzis and E. Vlachou, “Cloud-based cyber-physical systems and
quality of services,” The TQM Journal, 2016.
[10] R. M. Balabin and R. Z. Safieva, “Biodiesel classification by base stock
type (vegetable oil) using near infrared spectroscopy data,” Analytica
Chimica Acta, vol. 689, no. 2, pp. 190–197, 2011.
[11] R. K. Boccorh and A. Paterson, “An artificial neural network model for
predicting flavour intensity in blackcurrant concentrates,” Food Quality
and Preference, 2002.
[12] J. C. Cancilla, S. C. Wang, P. Dı́az-Rodrı́guez, G. Matute, J. D. Cancilla,
D. Flynn, and J. S. Torrecilla, “Linking chemical parameters to sensory
panel results through neural networks to distinguish olive oil quality,”
Journal of Agricultural and Food Chemistry, 2014.



Authorized licensed use limited to: Universidad Nacional de Ingeniería. Downloaded on November 30,2022 at 22:39:17 UTC from IEEE Xplore. Restrictions apply.

You might also like