A comparison study of pattern recognition algorithms implemented on a microcontroller for use in an electronic tongue for monitoring drinking waters

https://doi.org/10.1016/j.sna.2011.09.039Get rights and content

Abstract

A portable electronic tongue has been developed using an array of eighteen thick-film electrodes of different materials forming a multi-electrode array. A microcontroller is used to implement the pattern recognition. The classification of drinking waters is carried out by a Microchip PIC18F4550 micro-controller and is based on neural networks algorithms. These algorithm are initially trained with the multi-electrode array on a Personal Computer (PC) using several samples of waters (still, sparkling and tap) to obtain the optimum architecture of the networks. Once it is trained, the computed data are programmed into the microcontroller, which then gives the water classification directly for new unknown water samples. A comparative study between a Fuzzy ARTMAP, a Multi-Layer Feed-Forward network (MLFF) and a Linear Discriminant Analysis (LDA) has been done in order to obtain the best implementation on a microcontroller.

Introduction

Sensors based on electrochemical techniques are used to determine the concentration of specific chemical compounds, or the accurate measurement of physiochemical parameters. But generally they have an important drawback; namely that of susceptibility to interference from other species that mask the species of interest. However this drawback can be converted to advantage if, instead of looking for that type of accurate measurement, another kind 7 measurement of a rather more qualitative nature is employed, such as the discrimination or classification of samples of complex chemical nature. Under this concept, electronic tongue systems that employ different sets of non-specific electrodes were developed some years ago [1]. Each of the electrodes provides a signal that is proportional to the set of species in the system under analysis. As electronic tongue systems tend to produce a qualitative result, multivariate analysis techniques are generally required in order to process the data obtained from the measurements.

Various electrochemical techniques have been used in electronic tongues, such as potentiometry [2], voltammetry [3] or impedance spectroscopy [4]. These have been used in several applications, including waste water control [5] and food analysis [6].

Potentiometric techniques have as their main desirable feature simplicity of measurement method and electronic equipment. Various different types of electrodes have been used in potentiometry, such as membranes [7] or metal surfaces [8]. In this latter electrode, a voltage is obtained that is proportional to the concentrations of all species present in solution and hence its quantification is difficult to determine whenever the aqueous medium is complex [9].

A method for obtaining a multi-electrode of easy construction and simple operation is to employ inks from thick-film hybrid circuit technology [10] because there are many different types of inks and each has a key chemical element that can become the active element of the sensor.

Most systems of electronic tongues remain in the laboratory version, which requires the presence of a computer and, specially above all, two separate processes, one for taking measurements and another for data processing. If it is desired for these systems to have industrial application however, it is necessary to unify these two phases into a single system. The best method for achieving a single system is the use of microcontrollers in systems which, in addition to the measurement of potential, are able to perform the analysis of relevant data using a software program implemented in the microcontroller memory. Thus portable electronic tongues are becoming popular as they offer simplicity, reliability and use in field [11]. Some systems using microprocessors have been presented as electronic tongues [12] but the system presented in this communication has as its main novelty the development and comparison of three types of pattern recognition algorithms. Pattern recognition algorithms have become a critical component in the implementation of electronic tongues and noses and have been used successfully in these applications [13]. For implementation in portable equipment the algorithm must be transferable to a microcontroller which has a limited amount of memory. Thus the perfect pattern recognition algorithms will require high accuracy, to work fast to work in real-time and have low memory requirements in order to be implemented in a microcontroller. Not all pattern recognition algorithms are able to reach each of these requirements. In this communication three pattern recognition algorithms have been used, Fuzzy ARTMAP, Multi-Layer Feed-Forward (MLFF) and Linear Discriminant Analysis (LDA).

MLFF is the most popular type of artificial neural network (ANN); basically it is formed basically by three layers of neurons (input, hidden and output). They require a training stage, where the weights of each neuron are set, and another validation stage [14]. The Fuzzy ARTMAP network uses the so-called adaptive resonance method and is based on the use of prior actions to predict subsequent steps [15]. For LDA the method is a probabilistic parametric classification technique and maximizes the variance between categories and minimizes the variance within categories, by means of a data projection from a high dimensional space to a low dimensional space. In this way, a number of orthogonal linear discriminant functions equal to the number of categories minus one are obtained [16], [17]. Such algorithms have been used in electronic noses [18] and electronic tongue systems [19] giving important benefits such as: simplicity of implementation of computer algorithm, speed of calculation and the attainment of good and reliable results with a small number of measures.

The aim of this paper is to present a potentiometric electronic tongue system that uses an electrode assembly constructed in thick film technology whose data analysis system consists of a pattern recognition algorithm implemented on a microprocessor system. As an example application of this system, an analysis has been made of various types of drinking water that have different concentrations and types of salts. The implemented pattern recognition algorithm is able to perform a classification of these water samples using the data obtained from potentiometric measurements. This example can be extended to other industrial applications such as quality control of water purification, wastewater discharges, quality control of drinks and, in general, in cases where it is appropriate to conduct qualitative measures quickly, easily, economically, and not necessarily carried out by specialized personnel.

Section snippets

Samples

A total of five Spanish natural mineral waters of different brands (Bezoya, Bronchales, Cortes, Lanjarón and Solán), one sparkling water (Primavera) and tap water from Valencia City have been selected as representative samples and they have been studied by using the array of electrodes described below. The names and concentrations (in mg/L) of the main ions for the used mineral waters are listed in Table 1.

Electrodes

A wide range of electrodes with different surfaces were selected in order to explore

Data analysis

The procedure for working with artificial neural networks consists of two stages, a first stage of training of the network and a second stage for its verification. The training stage is performed with some of the available measures. At this stage the network categories are set out (in our case the seven different types of water). The data form six electrodes for each measurement are applied as an input vector. With these data the coefficients of the algorithm that configures the network are

Results and discussion

The artificial neural networks were firstly trained with the array data obtained from several samples of still, sparkling and tap water. Training was done in a PC to obtain the optimum architecture of the network. Nine samples more were acquired after training and all of them were classified by the microcontroller system. The results are presented in Table 3 where Bezoya is called number 1, Bronchales number 2, Cortes number 3, tap water number 4, Lanjaron number 5, Primavera number 6 and Solan

Conclusion

A microcontroller-based electronic tongue system, capable of discriminating between drinking water samples has been successfully developed. An 82.5% recognition rate has been achieved for the samples tested. This intelligent system may find application in the area of water quality monitoring.

Pattern recognition algorithms have been applied to the classification. The main memory requirement for the algorithms can be minimized sufficiently to fit in the limited memory space of a microcontroller.

Acknowledgements

Dr. E. Garcia gratefully acknowledges financial support (grant BEST/2010/138) from the Generalitat Valenciana and (grant PAID-00-10) from the Universidad Politécnica de Valencia during his stay at the University of Southampton. We also thank MICINN (MAT2009-14564-C04-02).

Eduardo García-Breijo received his M.Sc. degree in Electronic Engineering at Universitat de València (Spain) in 1997, and received his Ph.D. degree in 2004 at Universidad Politécnica de Valencia (UPV). He is an assistant professor of Electronics Engineering Department of the Universidad Politécnica de Valencia (UPV). He is a member of the Institute of Molecular Recognition and Technological Development (IDM). His main areas of interest are the development of multisensors in thick-film

References (37)

  • R.E. Shaffer et al.

    A comparison study of chemical sensor array pattern recognition algorithms

    Analytica Chimica Acta

    (1999)
  • D. Svozil et al.

    Introduction to multi-layer feed-forward neural networks

    Chemometrics and Intelligent Laboratory Systems.

    (1997)
  • R. Martínez-Máñez et al.

    An electronic tongue design for the qualitative analysis of natural waters

    Sensors and Actuators B

    (2005)
  • K. Iizuka et al.

    Differentiation of soy sauce by pattern recognition analysis of mid- and near-IR spectra

    Journal of Food Composition and Analysis

    (1999)
  • E. Llobet et al.

    Fuzzy ARTMAP based electronic nose data analysis

    Sensors and Actuators B

    (1999)
  • C. Di Natale et al.

    Multicomponent analysis on polluted waters by means of an electronic tongue

    Sensors and Actuators

    (1997)
  • B. Martín-del-Brío et al.

    Self-organizing maps for embedded processor selection

    Microprocessors and Microsystems

    (2005)
  • D. Svozil et al.

    Introduction to multi-layer feed-forward neural networks

    Chemometrics and Intelligent Laboratory Systems

    (1997)
  • Cited by (41)

    • The measurement principles, working parameters and configurations of voltammetric electronic tongues and its applications for foodstuff analysis

      2018, Journal of Food Engineering
      Citation Excerpt :

      Moreover, the miniaturized SPEs are disposable and suitable for working with sample microvolumes, and their disposable character avoids cleaning stages (Apetrei et al., 2013; Blanco et al., 2015). García-Breijo et al. (2011) fabricated 18 electrodes using several inks with different active elements (RuO2 of 10 Ω/sq and 1 M Ω/sq, Cu, Ag, and Pt) based on screen-printing technology to classify five Spanish natural mineral waters. Three thick film printer screens were made on an alumina substrate for preparing those SPEs, the conductive layer working as an electronic interconnect for the signal, the active layer and the upper protection layer. (

    View all citing articles on Scopus

    Eduardo García-Breijo received his M.Sc. degree in Electronic Engineering at Universitat de València (Spain) in 1997, and received his Ph.D. degree in 2004 at Universidad Politécnica de Valencia (UPV). He is an assistant professor of Electronics Engineering Department of the Universidad Politécnica de Valencia (UPV). He is a member of the Institute of Molecular Recognition and Technological Development (IDM). His main areas of interest are the development of multisensors in thick-film technology, pattern recognition and microcontrollers.

    John Atkinson began his career in 1970 as a Merchant Navy, Radio and Electronics Officer. In 1981 he graduated from the University of Essex with a first class honours degree in Computer Engineering. He was subsequently a Senior Engineer working on pattern recognition systems for speech, vision and hand-written computer input with Quest Automation Research Limited, prior to taking up the post of Lecturer in Electronics and Computer Science at the University of Southampton from where he obtaining his Ph.D. in 1999. He is currently a Reader in the School of Engineering Sciences and Editor of the journal Microelectronics International. His research interests include thick-film technology, electronic instrumentation and sensors.

    Luis Gil Sánchez received his M.Sc. degree in Electronic Engineering at Universitat de Valencia (Spain) in 1998, and received his Ph.D. in 2007 at Universidad Politécnica de Valencia (UPV). He is assistant professor of Electronics Engineering Department of the Universidad Politécnica de Valencia (UPV). He is a member of the Institute of Molecular Recognition and Technological Development (IDM). His main areas of interest are the chemical sensors, instrumentation systems and pattern recognition for electronic tongues.

    Rafael Masot Peris obtained his M.Sc. degree in Physics at Universidad de València, Spain (UV) in 1991 and his M.E. degree in electronic engineering at UV, 1996 and received his Ph.D. in 2010 at Universidad Politécnica de Valencia (UPV). He is assistant professor of the Electronics Engineering Department of the Universidad Politécnica de Valencia (UPV). He is a member of the Institute of Molecular Recognition and Technological Development (IDM). His research interest includes modeling, EIS, multivariable analysis and design of electronic systems for electrochemical measurements techniques.

    Javier Ibáñez Civera is Matrisse in Power Electronic and Control at Universite Pierre et Marie Curie (Paris VI) in 1994 and received his Ph.D. in 2009 at Universidad Politécnica de Valencia (UPV). He is assistant professor of Electronic Technology in the Electronic Engineering Department of the Universidad Politécnica de Valencia (UPV). He is a member of the Institute of Molecular Recognition and Technological Development (IDM). His main areas of interest are water organic contamination devices.

    José Garrigues Baixauli obtained his M.Sc. degree in Industrial Engineering at Universidad Politécnica de Valencia in 1983. He is assistant professor of Electronic Technology in the Electronic Engineering Department of the Universidad Politécnica de Valencia (UPV). He is a member of the Institute of Molecular Recognition and Technological Development (IDM). His main areas of interest are Artificial Neural Networks applications (ANN) by microcontrollers. Nowadays he is developing his Thesis in these applications.

    Monika Glanc-Gostkiewicz obtained her M.Sc. in Soil Science in 2002 from Nicolaus Copernicus University in Poland. After graduating she moved to United Kingdom where she studied at the University of Portsmouth and received a PGCE qualification. She subsequently taught for three years in secondary schools in Hampshire. She is currently working on her Ph.D. under the supervision of Dr John Atkinson.

    Nicolás Laguarda Miro was graduated in Environmental Sciences from the Universidad Politécnica de Valencia in 2000. He received his Ph.D. from the same university in 2005. Nicolás is nowadays a member of the Instituto del Agua y del Medio Ambiente as well as a teacher of environmental subjects in the ETSID (Escuela Técnica Superior de Ingeniería del Diseño) at UPV. His main areas of interest are the environmental quality control, environmental impacts assessment and technology applications to these areas.

    Cristian Olguín received the Engineering degree in Automation and Industrial Electronics at the Universidad Politecnica de Valencia in 2010 with a degree thesis entitled: Design of an electronic system for the implementation of the electrochemical measurement techniques: cyclic voltammetry, impedance spectroscopy and potentiometry. And now he is a doctoral student at Universidad Politécnica de Valencia. His research focuses on the electrochemical sensors.

    View full text