A Review of Optical Nondestructive Visual and Near-Infrared Methods for Food Quality and Safety

This paper is a review of optical methods for online nondestructive food quality monitoring. The key spectral areas are the visual and near-infrared wavelengths. We have collected the information of over 260 papers published mainly during the last 20 years. Many of them use an analysis method called chemometrics which is shortly described in the paper. The main goal of this paper is to provide a general view of work done according to different FAO food classes. Hopefully using optical VIS/NIR spectroscopy gives an idea of how to better meet market and consumer needs for high-quality food stuff.


Introduction
Consumers are the driving force in the food market. They have become more health conscious, demanding and willing to pay for the "good quality. " The consumers' trust for food industry has been diminished due to food scandals thus making it important to improve the safety monitoring.
The "quality" and "safety" have different meanings and aspects which depend on the food class, target market, criteria, and application. In some sense, the safety is part of the quality but here we separate these two because we like to emphasize the difference between how a human perceive the food and how we can evaluate threats of health. Some unsafe food cannot be detected by manual inspection. The food quality and safety evaluation has become more important and the need for more comprehensive assessment for all food batches is adequate.
Even though a lot of research and development work has been done on food safety and quality, more needs to be done to find economic ways of monitoring food safety. In this paper, our purpose is to go through the subject according to Food and Agriculture Organizations of the United Nations (FAO) categories (http://www.fao.org/) and publications related to quality and safety. These two factors can be evaluated in many different methods and techniques.
The traditional methods are sensory evaluation, chemical analysis, and microbiological analysis. A more recent approach in technical sense is optical techniques, especially the multispectral methods in visual and near-infrared wavelengths. The optical methods can be used for nondestructive, fast, real-time, online monitoring of all samples (Huang et al. [1]). Table 1 gives a general comparison of these four approaches.
The sensory evaluation is the oldest method and still used every day. The evaluation is done by both consumers and professional food observers. It is relatively fast but hardly suitable for a large amount of samples due to many reasons like observer's fatiguing. The reliability varies with food item group and by person. The results are typically very subjective, depending on many non-food-related factors, and difficult to evaluate quantitatively.
The chemical analysis is an objective technique which often provides reliable results if the monitored batch is represented well by the samples measured. It has some 2 International Journal of Spectroscopy limitations-the processes may not work correctly due to some substances, the need of accurate and correct calibrations, the need of complex multiphased processing, and the need of experts for the analysis. It might not be suitable if the distribution of the substance content is nonuniform. It cannot provide a point measurement of the sample, only an average over the whole sample. Since the sample is destroyed, chemical analysis cannot be used for monitoring all food units. In addition, the price of the analysis per measurement may be quite high and it produces toxic waste; thus, the number of samples for monitoring must be limited due to economic and ecological reasons. It is generally not very well suited for fast, online product management. The microbiological analysis is usually applied to detect biological organism like fungi or bacteria but not so much for identifying other content. It gives often objective and reliable results provided that, for example, the culture do grow, the growth is detectable, or the sample is not contaminated by some other sources. The analysis is typically slow and more tedious and expensive than the previous two methods. The microbiological analysis is suitable only for low speed, offline monitoring using a representative sample set of the batch. The main problem is that it allows defective products to be manufactured even though the cheapest solution might be to immediately stop processing and clean up the manufacturing unit.
To overcome the disadvantages and limitations of the previous methods, new economic, fast, and environment friendly techniques are sought after. As a result, optical multispectral measurements and imaging have recently become more and more popular in food measurements because they lend themselves easily to online monitoring of all samples even without touching the samples. The price of the measurement instruments has also decreased so they provide a viable option for the traditional methods. However, analysis of spectral measurements is often not easy and requires expertise. The mathematical and statistical models created might not be general and need to be adjusted to new conditions and products. Nowadays, a typical optical system employs ultraviolet (fluorescence) and visible wavelengths (VIS), near-infrared (NIR) or infrared (IR) areas or a combinations of them. The near-infrared spectrum is especially interesting since it is related to overtones and combinations of such chemical bonds as C-H, O-H, and N-H which have influence on many properties of food.
1.1. History. Food and agriculture have been subjects for near-infrared (NIR) applications from the beginning of NIR measurement history. The earliest work which involved nondestructive moisture content determination of grain and seeds is published in [2] of the United State Department of Agriculture (USDA). Later, the success of NIR spectroscopy is marked by the establishment of wheat protein analysis throughout Canada by Phil Williams of the Canadian Grain Commission in 1975 [3]. In this area of application, at first, NIR was restricted to quality evaluation of low-moisture products such as cereal grains including wheat, corn, and soybean due to interference of water absorption in the long-wavelength region, especially in the combination area of 1900-2500 nm. In the latter stages of NIR applications, the development of silicon sensors allowed acquisition in the short-wavelength region of 700-1100 nm, leading to the analysis of thicker and higher-moisture samples such as fruit, fish, meat, and intact kernels. The use of the short-wavelength region allows nondestructive measurement of relatively thick samples since the electromagnetic wave in this region has better penetration because the absorption of water in this third overtone band becomes weak.
According to Osborne [4], the major limitation of using NIR spectroscopy for food analysis is its dependence on less precise reference methods. Since the chemical information of sample is analyzed from the changes in spectra, in most food samples NIR spectroscopy needs calibration against a reference method with the ingredient of interest.
Other optical methods have been studied for food quality lately by many researchers, for example, Farkas and Dalmadi [5], Kaffka [6], and Huang et al. [7]. The optical methods could alleviate these problems although they are not so accurate. Another advantage of optics is that it can be imaging and thus characterizing the sample better. A popular spectral area for food research has been near-infrared (NIR) in which many publications can be found like Huang et al. [7], Pallav et al. [8], Ozaki et al. [9], and Osborne [4].
Berrueta et al. [10] have recently made a review of supervised pattern recognition methods in food analysis. Reid et al. [11] have made a review of different food authentication methods including NIRS. Cen and He [12] give a review of NIR reflectance spectroscopy in determination of food quality.
Du and Sun [13] give a review of machine learning techniques such as neural networks and evolutionary optimization in computer vision for food quality.

NIR Measurement Modes.
There are four standard measurement modes for the acquisition of NIR spectra from a sample: transmission, reflection, transflection, and interaction (interactance). Illustrations of these are shown in Figure 1. The selection of measurement mode depends on many factors like sample type or installment location. Generally, the design and implementation of measurement system and the selection of measurement mode require at least some expertise.
In the transmission measurement mode (Figure 1 source. Occasionally, in the case of transmission for solid samples, the detector is placed at an angle of 90 degrees to the source. For the reflection mode ( Figure 1(b)), the light source and the detector are placed on the same side of sample. To avoid surface reflection, detectors are usually placed at an angle of 45 degrees to the sample plane. In some cases, an integrating sphere is used to concentrate light reflected from the sample before it reaches the detector by capturing and integrating light from various directions.
Transflection (Figure 1(c)) is the combination of transmission and reflection modes. The sample is positioned as if for reflection mode measurement, but a reflector is situated opposite to the light source on the far side of the sample, reflecting light that is transmitted through the sample back through the sample again to the detector. The samples, generally in liquid form, are placed in a holder of 0.1-0.3 mm width along the direction of light propagation. Therefore, the physical path length of transflection mode is double the sample thickness. Transflection is often used to reduce path length as the thinnest cuvette (standard sample holder for transmission measurements) is generally 1.0 mm thick. In some cases, transflection is employed for NIR instruments without transmission capability.
The fourth configuration, the interactance mode ( Figure 1(d)), is also a combination of transmission and reflection but for solid samples. In this mode, the sample is illuminated by a fiber-optic cable(s) in direct contact with the sample surface or the sample holder. Light propagates inside the sample and interacts with the interior through reflection, transmission, and/or absorption. Fibre bundles that are placed on the same side as the source subsequently return the light that propagates inside the sample to the detector. The direct contact between the fibre bundles (for both the source and the detector) and the sample eliminates the effect of surface reflection and maximizes the penetration depth.

Types of Food Samples.
From the product viewpoint, NIR applications in food and agriculture could be classified into three groups by the state of the sample: (i) liquid samples, (ii) ground and relatively small solid samples, and (iii) relatively large samples that require nondestructive or noninvasive measurement.
A benefit in working with samples from the first group (liquid samples) is the handling of optical path length. In the case of a clear liquid such as soy sauce, filtrated fruit juice, or vegetable oil, samples can be contained in a quartz cuvette, a disposable glass vial, or a transflectance sample holder, all of which would provide a relatively high consistency of optical path length due to the low scattering characteristics of the samples. The measurements used are transmission or transflection. The sample thickness can be adjusted based on the absorptivity of major composition(s) and the constituent of interest. Figure 2 shows NIR spectra in the long-wavelength region of water and oil acquired in various physical path lengths. According to the figure, if the sample analyzed is water-rich and the constituent of interest has absorption 4 International Journal of Spectroscopy  bands overlapped with water absorption, the appropriate physical path length would be 0.2 mm for the combination region measurement (1800-2100 nm), 1.0 mm for the first overtone region (1400-1500 nm), and 10 mm for the second overtone region (900-1000 nm). However, as a forementioned, the decision for optical path length is also dependent on the molar absorptivity, that is, the ability of a particular substance to absorb light at a given wavelength, and the concentration of that constituent of interest. In many cases, the constituent of interest has absorption bands on the shoulder of water bands such as in the region of 2100-2300 nm. In such cases, sample cells with longer physical path length, say 1 mm, could be more appropriate than the 0.2 mm sample cell due to lower absorptivity of substances in this region.
On the other hand, if the sample is oil-based, sample cells with significant longer path length could be used due to the lower absorptivity of oil compared to water. In the case where the constituent of interest has very low absorptivity and/or concentration, for example, acid value or peroxide value in fresh vegetable oil, increasing physical path length to obtain adequate information is necessary.
However, one should keep in mind that the analysis of clear samples typically differs from that of the analysis of scattering samples. When colloids or suspensions are analyzed, the scattering characteristics of the samples are stronger, and thus the optical path length, that is, the actual distance that NIR wave travels, is much longer than that of clear samples. Due to this, the path length would have to be reduced. Figure 3 shows the NIR spectra of homogenized milk (colloid) and vegetable-mix juice (suspension) using a 4 mm path length. In this case, milk has a stronger absorption due to its composition and the scattering characteristics of the constituent small fat globules. Vegetable-mix juice has less absorbance compared to milk but stronger than that of water at 5 mm path length (for water, see Figure 2). This is due to the scattering characteristics of the constituent suspended particles.

Some Important Considerations for Measurements.
Another point to be aware of for liquid samples with water as a major constituent is the importance of temperature control. It is well documented [14][15][16][17] that water absorption bands in the NIR region shift in both peak position and amplitude according to sample temperature, as the number of hydrogen bonds in the water molecules is temperature dependent. Increasing temperature results in a higher percentage of water molecules with fewer hydrogen bonds due to the higher kinetic energy. Therefore, in many cases, temperature control is necessary to perform precise NIR measurements. Since many oil-based samples are in solid or opaque form at room temperature, temperature control is required not mainly to maintain spectral consistency but to increase sample transparency. For ground or small-particle samples, NIR spectra are usually acquired in reflection mode due to strong scattering characteristics. Such samples are generally placed in sample holders with quartz or glass windows. Quartz is more expensive but has lower OH absorption compared to glass resulting in better precision in some constituents, especially those with OH functional groups. However, in the case where the absorption of the constituent of interest occurs at different wavelength region than the OH absorption in glass and there is enough concentration of those constituents, it is possible to use glass-window sample holder or glass Petri dish. For many food manufacturers, the use of glass or quartz is prohibited and plastic such as a polystyrene dish is used as a sample holder. In that case, the absorption band of the constituent would fall within the absorption bands for polystyrene, especially in the combination region beyond 2000 nm. If the absorption bands of the constituent can be precisely measured in the shorter-wavelength region by arranging an adequate path length and detector, the use of plastic dish would be applicable. For samples with a relatively coarse particle size, there is the possibility that light could pass through the space between samples and be lost. One way to reduce this problem is to place a reflector on the back side of the sample cell. During the measurement, spinning the sample cell will increase the acquisition area, thus reducing error due to sample nonuniformity especially in relatively coarse or large-particle samples. Examples of samples belonging to this group include ground and intact cereal grains, cereal meals such as soy bean meals or corn gluten meals, crushed processed foods/snacks, and powder milk or drink.
Finally, we consider samples that require nondestructive measurement. Samples in this group include meat, fish, intact fruit, and intact nut kernels. For the most part, these samples are sold intact and the constituent of interest is not evenly distributed between the surface and the sample core. To obtain information from deep inside the sample, two modes of measurement are used for this group: the interaction mode and the transmission mode. As mentioned earlier, most of the applications in this group use silicon detectors that allow spectral acquisition in the short-wavelength region of 700-1100 nm. The measurement parameters could be moisture and sugar contents for intact fruit and fat, protein, and moisture content in meat and kernels, as well as detection of various internal disorders or pest in agricultural products.
To employ NIR spectroscopy for routine quality control, it is not enough to develop calibration equations. A system developer needs to consider various factors affecting calibration results including instrument status (source strength, detector responses, and wavelength selection mechanism), atmospheric effects (temperature and humidity), and physical conditions (dust, vibration, and stray light) as well as transferability of the equations developed between various instrument in the same period of time and the transferability to the newer version of instrument and software upon the end of instrument life span.

Chemometrics.
Optical measurement results connected with chemical analysis and statistics are called chemometrics. Chemometrics has become an established technique for handling chemical data. Good reviews of chemometrics are provided by Geladi and Grahn [18], and Workman and Springsteen [19], and Koljonen et al. [20], which present a review of genetic algorithm optimization in chemometry. The next text is a short introduction for the subject, and for a deeper insight, the previous reviews are recommended.
The first step of chemometrics is to collect the data. This includes sample selection, measurements, and chemical analysis. The measurement geometry, measurement conditions, number of samples, and ingredients need to be very carefully designed and determined. The samples need to be representative of the food batches because interpolation or generalization of the model most probably does not work. The samples are first subjected to optical measurement and after that chemical analysis. One should also notice that the chemical analysis might sometimes provide unreliable results. Sometimes even the samples may change during time. The data should be divided into a training and test sets.
After the measurements, the equations to transform optical data to chemical data should be set up. Since many functions and equations are available, it might be useful to test a couple of them to select the best results. After the selection, the equations need to be solved and coefficients to be determined with the training set. A typical approach for modeling is regression. The training of the model can be understood as a "calibration. " The optical methods are calibrated to produce the amount of a given substance or substances.
The training data should be subjected to detection of residuals, outliers, and nonlinearity. The outliers should be excluded and nonlinearity corrected if present. Otherwise the results might be distorted. Typically the number of wavelengths from the optical measurements needs to be reduced due to their high amount and interdependence. Many techniques are available for wavelength reduction (e.g., splines or Savitzky-Golay filtering).
Maybe the most often used regression models are multiple linear regression (MLR) or "ordinary" least squares (LS), ridge regression (RR), principal component regression (PCR), and partial least squares (PLS). The general equation for the regression is where is the response (from chemical analysis), are the predictors (from optical measurements, pieces), are the regression coefficient to be determined, 0 is the offset and a constant factor, and is the residual. If and are meancentered, then 0 = 0. The solution for regression coefficient for the LS is where means transpose of the matrix. The LS may not work since the inverse might not exist or may be unstable. It is also notoriously sensitive to noise. The results should be also diagnosed using the following method: coefficient of determination and root mean squared error of calibration. A better solution for problems related to inversion can be RR: where is an identity matrix and is a ridge constant.
The ridge constant should be as small as possible. However, there is no established method for the selection of the ridge constant or diagnostic of results. PCR also provides an easy inversion of matrices. It requires applying the principal component analysis (PCA) to reduce dimensions of and to obtain the eigenvectors. The eigenvectors are orthogonal. The PCA also reduces the noise present in . The equation for regression can be formulated as where is the principal components and contains coefficients. The number of components needs to be determined by testing and checking. Assume that matrix consists of several measurements of . PLS decomposes both and matrices. It also removes noise in both of these matrices. Its formulae are where and are projections (principal components) of and on eigenvectors and and are eigenvectors of and . The projections are obtained by decomposing the corresponding matrix. Error terms are marked as and .
Both PLS and PCR calculate one component at a time using regression between and . Then a residual is calculated and the calculation of the next component is based on this residual.
The obtained results for equations need to be evaluated by using the test set. The predicted values are calculated using test values from the optical measurement set and parameters obtained from the training phase. The difference between actual and predicted values in the test set can be evaluated using the root mean squared error of prediction and the coefficient of determination.
The visualization gives a good view of how the model is working. This could be done, for example, by plotting root mean squared error of calibration, root mean squared error of prediction, calculated loading plot, residual versus sample, and residual versus predicted test value.

Food Quality and Safety
1.4.1. Safety Factors. We consider here food safety to factors which may cause danger to health either directly or indirectly.
(1) Foreign Bodies. A foreign body can be anything unwanted in a food product. It can be from the raw material for the product or external material added indeliberately; for example, the raw material can contain bones which are shattered to sharp bone fraction pieces during the manufacturing process. The product may be littered with machine parts due machine blistering or residues from other sources like pieces of plastic.
(2) Incorrect, Contaminated, or Phony Ingredients in Product. Incorrect food ingredients refer here to any material which should not be in the food. They can be residues from previous production like peanut remnants or accidently added wrong material. The food can be contaminated from external sources like manure or too much pesticide. The phony ingredients are deliberately added to generate more income from consumers or manufacturers. The phony items can be rip-offs like cheap wine sold as a more expensive version or even very dangerous ones like melanin milk.
(3) Spoilage. The spoilage is considered in this paper as a decomposition of the food. It is often a byproduct of the activity of harmful bioagents like fungi or bacteria. Other causes are wrong handling, like overheating, freezing or wrong harvesting time, wrong environment, like too hot environment or environment that has gases like ethene which mature fruits too fast, or age.
(4) Bioagents: Fungi, Yeast, and Molds; Microbes, Bacteria, and Viruses. Fungi, yeast, or molds can be used in the production of certain food, but usually they are serious quality problems. This paper concentrates on articles on harmful effects of the bioorganisms like food poisoning or infections. The detection of smaller bioorganisms like bacteria or viruses is usually very hard due to their small size.

Quality
Factors. Food quality consists of several factors. The validity or importance of a factor depends on the food group and on the evaluator. For example, the fat content is irrelevant for apples but very relevant for meat. The factors for this paper are appearance and taste.
(1) Appearance. The appearance of food is related to the visual experience of the product. It is affected by the perceived colors International Journal of Spectroscopy 7 and textures as well as personal preferences and opinions. The environment in which the food is presented has its own effect. Since the color perceived depends on the prevailing illumination, for example, there are already available special lamps to emphasize the color of meat. Good texture can be achieved with proper processing.
(2) Taste. Taste is composed of several ingredients and is affected greatly by smell and also appearance. In this paper, we limit the taste to the actual food ingredients or state-like amount of sugar or acidity. Smell. The smell can be used to separate bad food from good food. It is also essential to make food more delicious. Juiciness. One attribute especially for fruit is juiciness. It is related to the water content and distribution of fruits. Noise. Consumers often expect certain noise when eating food like cereals. Freshness. Freshness is important especially for fish and other sea products. Authentication. Some food products have been falsified. An example of this kind of products is wine. Spectral methods can be used to separate authentic wine from nonauthentic wine. The NIR spectra is used for food authentication by Sun [21]. Essential Ingredients. Food can contain many elements which have positive effects on health. These elements include, for example, flavonoids and vitamins in plants flavonoids and vitamins or omega-6 fatty acid in fish. It is generally thought that the higher the amount obtained from food the better the effect on health. Ingredients can be correlated using chemometrics. Unwanted Ingredients. Food contains also ingredients which consumers want to avoid for real or imaginary reasons. These ingredients can be preservatives which can in fact make the food safer. Other harmful ingredients include excessive amount of fat or salt. Unwanted Objects. Although food can be perfectly safe and edible, it can still contain unwanted objects. This kind of objects can range from machine parts to stones and insect parts.
In their book, Workman and Weyer [22] explain theoretical backgrounds on how different qualities can be analyzed and found from NIR spectra; these qualities include alkanes and cycloalkanes, methylene groups, alkenes and alkynes, aromatic compounds, hydroxyls, water, carbonyls, amines and amides, carbohydrates, amino acids, peptides, and proteins. High Quality. Affordable price consistently.

Optimization.
Optimization with NIR spectroscopy is mostly connected with the selection of optimal wavelengths that correlate best with the object of interest. Usually we want to use as few wavelengths as possible, since the less the data needs to be analyzed the faster it is. However, we need to be sure that the selected wavelengths are adequate for reliable results.
A special type of genetic algorithms is called genetic programming (GP). It uses genetic algorithms to find a function or a program to solve a given problem. GP has been demonstrated to find solutions to problems that have been found by the most skilled engineers as patents and other inventions [23]. Another view of GP is to say that it is symbolic regression, that is, a method to find a function that best satisfies the given constraints. Yet another usage of GP is to find rules to explain data. GP is an extremely flexible method to solve computational intelligence problems. The main drawback of GP is its slow processing which prevents its usage in most online applications. However, in the systems design or similar phase, GP can be a nice tool to find good solutions automatically after the proper fitness function is implemented.
While spectroscopy produces huge amounts of raw data, there is a strong need to automatically process this data to compress it and to find the features that are relevant or correlate to those that are looked for. Norris and Williams [24] used wavelength selection so that they selected 12 wavelengths that produced the closest prediction with the required constituent in wheat measurements, particle size, and protein content. Goodacre and Kell [25] have demonstrated spectroscopical imaging GP applications related directly or indirectly to food quality. More specifically the application was to find the algebraic formula of the wavelengths that give the best discrimination between the bacterial samples examined. More generally the authors claim that GP is one potential tool to decrypt metabolomic data for biomedical applications.
With several materials, the VIS/NIR reflectance works best if the wavelengths used are optimized between 400 and 1800 nm [26]. This was also true with wholegrain measurement, where they found wavelengths between 1100 and 1400 nm giving the highest correlations with most of the constituents of interest with wholegrain measurements. However, the protein content was best determined from the 1700 to 2500 nm wavelength band.

Illustrative Example of Tomato Classification.
The spectral methods lend themselves very well to fruit quality inspection. In this example, the transmittance spectra of tomatoes were measured using a spectrophotometer (Ocean optics). The spectra were further handled: they were smoothed to reduce noise and then downsampled by splines. An example of tomato spectra is shown in Figure 4. The transmittance is measured from 400 nm to 1000 nm. The spectra differ in both visible and NIR areas. The difference is caused by the ripening process.
The spectral data itself contains a lot of information, part of which is in some cases irrelevant or redundant. The dimensionality of data can therefore be reduced. Here the locally linear embedding was used for this purpose in a nonlinear manner. The visualization of results can be seen in Figure 5, in which the feature space is spanned by the first two embedded components.
The kernel Fisher discriminant (KFD) was used to classify tomatoes into good and bad ones. As shown in Figure 5, the tomatoes are classified 100% correctly into these two groups. The red-colored tomatoes are ripe while the yellow and green are raw. The boundary between the groups is visualized with red curve ( Figure 5).

Review of Hyperspectral/Multispectral Methods for Different Food Groups
This paper follows the FAO classification in grouping food which divides the food and animal feed into five classes: Each of these classes has subclasses. Class A consists of five subclasses: fruits, vegetables, grasses, nuts and seeds, and herbs and spices. Class B has the following classes: mammalian products, poultry products, aquatic animal products, amphibians and reptilians, and invertebrate animals. Class C has only one class, primary feed commodities of plant origin. Subclasses, which belong to class D, are secondary food commodities of plant origin, derived products of plant origin, manufactured foods (single ingredient) of plant origin, and manufactured foods (multi-ingredient) of plant origin. Class E is made of the following subclasses: secondary food commodities of animal origin, derived edible products of animal origin, manufactured food (single ingredient) of animal origin, and manufactured food (multi-ingredient) of animal origin.
More detailed reviews of the selected papers for each of the classes can be found at the Appendices A (for class A), B (for class B), C (for class D), and D (for class E). The papers in class C are not considered in this paper.

Class A-Primary Food Commodities of Plant Origin.
Class A has five groups: fruits, vegetables, grasses, nuts and seeds, and herbs and spices.
The fruit group consists of 6 subgroups: citrus, pome and stone fruits, berries and other small fruits, and assorted tropical and subtropical fruits with edible or inedible peels. Optical and spectroscopic methods [27] and near-infrared spectroscopy [28] present a review of promising methods for fruit quality.
Vegetables include bulb vegetables, cabbage (Brassica (cole or cabbage) vegetables, Head cabbages, Flowerhead cabbages), fruiting vegetables either cucurbits or other than cucurbits, leafy vegetables (including Brassica leafy vegetables), legume vegetables, pulses, root and tuber vegetables. Mushrooms and fungi belong also to this group. Reviews of vegetable quality have been made by Butz et al. [27] and Nicolaï et al. [28].
The grasses have two groups: cereal grains and grasses used for sugar or syrup production. The nuts and seeds' group consists of tree nuts, oilseed, and seed for beverages, and sweets. The herbs and spices' group consists of herbs and spices as the name indicates. Table 2 provides a short description for each of the subgroups of class A. We list parameters which have successfully been evaluated for the group and methods applied.

Class B-Primary Food Commodities of Animal
Origin. Class B consists of the following groups: mammalian products, poultry products, aquatic animals, amphibians and reptilians, and invertebrate animals. Examples of publications can be found at Table 3.
Mammalian products consist of nonmarine meat, mammalian fats, edible offals, and milks. It seems that NIR technologies are more acceptable, for example, to the AOAC (Association of Official Agricultural Chemists).
The poultry can be studied by other optical techniques than just reflectance or transmittance. Autofluorescence has been suggested for food by Andersen et al. [29] and for poultry by Wold and Mielnik [30].
FAO includes in aquatic animals fish (freshwater, marine and diadromous, i.e., migrating between fresh and saltwater), fish roe and milt, fish offals, marine mammals, and crustaceans. Seafood and its products are an important source of nutrition [31]. Their special challenge is the changes in properties from the moment of catch or harvest due to metabolic processes, microbiological processes, and microbiological fauna change. This change is described as a function of spoilage and freshness parameters.
The invertebrate animals' group consists of molluscs (including cephalopods) and other invertebrate animals.

Class D-Processed Foods of Plant Origin.
Class D has four groups: secondary food commodities of plant origin, derived products of plant origin, manufactured foods (single ingredient) of plant origin, and manufactured foods (multiingredient) of plant origin.
Secondary food commodities of plant origin are dried fruits, vegetables and herbs, secondary food commodities of plant origin, and miscellaneous secondary food commodities of plant origin.
Derived products of plants for human consumption include cereal grain milling fractions, teas, vegetable oils: crude, edible, or refined, origin including miscellaneous derived edible products of plant origin, and fruit juices.
Manufactured foods (single ingredient) of the plant origin group naturally consist of fruits, vegetables, or miscellaneous manufactured single-ingredient foods from plants. Manufactured foods (multi-ingredient) of the plant origin group are all manufactured, multi-ingredient cereal products. Table 4 shows examples of published works in this area.

Class E-Processed Foods of Animal Origin
. Class E has the following subgroups: secondary food commodities of animal origin, derived edible products of animal origin, manufactured food (single-ingredient) of animal origin, and manufactured food (multi-ingredient) of animal origin.
Secondary food commodities of animal origin consist of dried meat and fish products and secondary milk products. We include here also products using dried meat and fish. An example of this is ham.
Derived edible products of the animal origin group include processed crustaceans and animals, milk, and derived fats. Manufactured food (single ingredient) of the animal origin group is the manufactured milk products using only single ingredient.  Manufactured milk products using multi-ingredient belong to manufactured food (single ingredient) of the animal origin group. Here we consider dairy products like cheese or yogurts. Some publications has been listed in Table 5.

Other Foods Not
Included in FAO Criteria. Some foods are not included in FAO classification although they are commonly used. For example, honey is not included. There is no clear category for processed foods like hamburgers or sausages. Some of the research done for these foods is introduced here.

Authentication.
There have been cases in which the ingredients of manufactured food have been replaced by a cheaper version. For example, beef hamburger can be adulterated with mutton, pork, skim milk powder, or wheat flour. Ding and Xu [32] used near-infrared for detecting and evaluating the adulteration level in the adulterated hamburgers with 5-25% phony ingredients. The accuracy increases as a function of adulteration rate since there were more ingredients to be detected. The highest detection rate was 92.7%.
ElMasry et al. [33] have applied hyperspectral imaging (Imspector N17E, Specim, Spectral Imaging Ltd., Oulu, Finland) in the region 900-1700 nm for predicting colour, pH, and tenderness of fresh beef. With more improvement in terms of speed and processing, their approach has potential for nondestructive quality measurements.
Liao et al. [34] have used VIS/NIR reflectance spectroscopy for the online assessment of the pH value in fresh pork. Their result show that VIS/NIR spectroscopy can be used for the online prediction of pH and that wavelength selection can provide a cost-effective calibration model. For wavelength selection, they compared variable importance in projection (VIP), uninformative varible elimination (UVE), genetic algorithms, and success project algorithm (SPA).
Collell et al. [35] have used NIR reflectance spectroscopy to predict moisture, water activity, and salt content on the surface of dry-cured ham during the process. Their results show that the proposed method could be used in the drycuring process of ham. However, the optical properties of the meat surface seem to strongly affect the measured spectra.
Authenticity and origin are also important issues for honey especially when it is claimed to be collected by bees from certain flowers. One example is avocado honey. Dvash et al. [36] applied near-infrared reflectance spectroscopy to obtain the concentration of specific sugar (perseitol) for this honey.
Downey and Kelly [37] studied sulfited strawberry and raspberry purées which have been adulterated with cooked apples (10-75% w/w). They applied VIS and NIR transreflectance measurement on 0.1 mm thick samples. The best wavelength bands were 400-1098 nm with 75% correct classification rate for strawberry and 750-1098 nm with 95% rate for raspberry. PLS regression was used for the prediction of apple content with 400-1880 nm range for raspberry and with 1100-1880 nm range for strawberry. They concluded that apple adulteration can be detected if its content exceeds 25% for raspberry and 20% for strawberry purées.
Fügel et al. [38] made a review about authenticity control of fruit purées, fruit preparations, and jams.

Content.
Qiu et al. [39] applied near-infrared transmittance to quantify the chemical content of honey. They found that 1 mm optical path length was the best for this purpose. Modified partial least squares were applied for the determination of content except for moisture. Moisture was determined using just partial least squares. The models were successful for fructose, glucose, sucrose, and maltose   PLS, wavelength discriminant analysis content but poor and unreliable for free acid, lactone, and hydroxymethylfurfural. NIR spectroscopy is applicable also for wholemeals. Fontaine et al. [40] used near-infrared for detecting essential amino acids for different meals. They concluded that the NIRS calibration model was good for evaluating the content of protein-rich feed ingredient for amino acids methionine, cystine, lysine, and threonine, tryptophan with 85-98% variation explained and was better than crude protein regression. The protein and moisture contents were also evaluated.
Kim et al. [41] used NIR reflectance (400-2498 nm) and partial least-square modeling to detect the total dietary fiber in meals. Meals have different handling alternatives: homogenization, homogenization and drying, and homogenization, drying, and defatting. The reference method for total dietary fiber evaluation was AOAC 991.43. The predictions were good. The main advantage over the NIR-based method was faster evaluation. The traditional method takes 4 days.
Zeng et al. [42] developed a NIR transmission system for determining the amount of starch in liquid gravies with low concentration. The best wavelengths were 605, 623, 919, 1017, and 1031 nm for the regression model. The starch content makes possibility to evaluate the viscosity of liquid gravies.

Authenticity. Sausages can be made with different fats.
In some cases, sausages can be identified based on their fat substitutes [43]. The quality of them has been studied, for example, by Gaitán-Jurado et al. [44] and Ortiz-Somovilla et al. [45].

Conclusions
Nondestructive methods for food quality measurement are warmly welcomed by the food industry. Optical engineering provides a large variety of measurement techniques, some of which, like optical and near-infrared spectroscopy and imaging, have especially high potential for various foodquality-related measurements. And indeed, during the last few decades, it has seen an increasing number of applications, not only in food quality laboratories, but also in factories, and even in farm fields and orchards, where the food quality arises. In this paper, we have shortly described the most prominent application examples in this rapidly growing area of food quality techniques. Unfortunately there are already so many important works in this area that we were able to consider only a small fraction of the total literature existing, which means that too many important contributions had to be omitted from this paper. However, the authors hope that even in its current imperfect state this paper could help those who are trying to find solutions or model approaches to their food quality problems from optics, imaging, and spectroscopy.

A.
A. 1 [47]. Another important content is soluble solid content. Carlini et al. [48] evaluated the soluble solid content using VIS/NIR spectra. They modeled spectra using partial leastsquare regression.
The time-of-flight technique with NIR was applied to detect sugar and acid contents of apples [49]. The modeling used multiple linear regression, principal component regression, and partial least squares. The prediction precision was high and especially superior for acid content.
NIR has been used to predict water content of several different fruits. The water content of avocados was used by Blakey et al. [50] to predict ripening of the fruit. The water content was predicted using PLS (partial least squares) model with 14 factors in the region of 1100-2000 nm.
León et al. [51] studied the intact olive VIS/NIR spectra (400-1700 nm) for evaluation of oil, moisture, oleic acid, and linoleic acid contents. They compared spectra from different female parent trees and harvest year. The partial least-square calibration models were not transferable across year.
Zhang et al. [52] have recently used partial least-square (PLS) calibration model for the measurement of soluble solids content (SSC) of fresh jujube (Ziziphus zizyphus L.). The device used was FieldSpec3 (Analytical Spectral Device, USA). The correlation found was over 0.88 indicating the feasibility of the method for SSC measurement.
Terdwongworakul et al. [53] have used NIR transmittance spectroscopy for the quality assessment of mangosteen fruits. The goal was to develop a method for nondestructive detection of translucency in mangosteen fruit. The water peak absorbance at 955 nm seems to be an important factor for discriminating translucent and normal fruits.
Magwaza et al. [54] give a recent review of NIRS in external and internal quality analysis of citrus fruits.
Shi et al. [55] have used the genetic algorithm (GA) for wavelength selection for the determination of SSC in Fuji apples. They used NIRS in the range from 1065 to 1625 nm and were able to reduce the number of wavelengths from 88 to 17 with their GA approach.
Ying and Liu [56] have used FT-NIR spectroscopy for the internal quality assessment of pears. For wavelength selection, they also used genetic algorithms (GAs). The quality factors tested were sugar content (SC), titratable acidity (TA), and pH. Despite the complexity of the spectral data, the GA found calibration models that significantly outperformed those based on full-spectrum analyses.
Pissard et al. [57] suggested the use of NIR spectroscopy and multivariate calibration to determine the levels of vitamin C, total polyphenol, or sugar content. They stated that the prediction performance was very good.
A.1.3. Maturity. Maturity or fruit ripeness affects the quality and taste of the fruit. Tanaka and Kojima [58] studied the growth stages and maturity of Japanese pear fruit using the sugar concentration as an indicator. Pear juice from different maturity stages produced different spectra, the absorption bands of which were related to carbohydrate. Multiple linear regression models were applied to determine the content of sucrose, fructose, sorbitol, and glucose sugars with 3-7 wavelength variables. Sirisomboon et al. [59] used NIR with principal component analysis (PCA) to classify tomatoes. The model provided a prediction for maturity.

A.1.4. Unwanted Objects.
Insects cause damage to fruits in many ways. Some of them can grow inside the fruit like in tart cherry. Xing et al. [60] have used genetic algorithms to find the optimal wavelengths for detection of internal insect (plum curculio (Coleoptera: Curculionidae)) infestation that in tart cherry. Based on the GA wavelength selection on the reflectance spectra (580-980 nm), three to four wavelength regions were selected. The results were checked using partial least-squared discriminant analysis (PLSDA) and they showed that the wavelengths selected resulted in classification efficiency similar to that of the full spectral range. Different GA runs resulted in somewhat different results, which are typical for the wavelength selection problem.
A.1.5. Contamination. Fruit skin can be contaminated by fecal material which can have pathogens like E. coli. Kim et al. [61] applied multispectral imaging 450-851 nm to detect fecal with thin and thick layer on apples with different green and red colorations. This was somehow successful for thick patches. Apple coloration caused problems with thin layer. Kim et al. [62] studied also fluorescence spectral information. They identified four optimal bands (450, 530, 685, and 735 nm) for fecal detection and suggested the use of a simple ratio.
A.1.6. Storage. Veraverbeke et al. [63] utilized NIR transmission spectra to solutions of single wax components and extracted apple wax. The wax was collected from apples with different parameters: apple cultivar (Jonagold, Jonagored, and Elshof), picking data (early, commercial, and late), storage time (0, 4, or 8 months in controlled atmosphere), and shelf life periods (0, 1, and 2 weeks). They applied canonical discriminant analysis on the first derivative of spectra. The proposed NIR technique could identify cultivar and storage duration but not very well the picking date or shelf life period. It seems that storage time and cultivars are related to differences in the number of aliphatic chains, like alkanes and esters, and the presence of -farnesene.
A.2. Class A, Type 002: Vegetables. Fernández Pierna et al. [64] have used NIR hyperspectral imaging and chemometrics for the detection of cyst nematode (Heterodera schachtii) infected sugar beets. They used a pushbroom system (SWIR XEVA CL 2.5 320 TE4 camera from XENICS using an Imspector N25E spectrograph with a cooled, temperaturestabilised mercury-cadmium-telluride (MCT) detector from Specim Ltd., Oulu, Finland) combined with HyperPro and HyperSee software (BurgerMetrics SIA, Riga, Latvia). The samples were moved with a conveyor belt at 2 mm/s speed. The result of the study was that NIR imaging has potential for, for example, plant breeders to select cyst-nematode-resistant traits.
A.2.1. Appearance. The quality of a vegetable is sometimes evaluated by its texture. One of these kinds of vegetables is Asparagus, the texture of which has been evaluated by Flores Rojas [65]. The textural quality parameters considered in their research were maximum shear force and cutting energy. The evaluation was based on results from a scanning monochromator of 400-2500 nm and a combination of diode array and scanning monochromator of 350-2500 nm.

A.2.2. Content.
Sugar concentration is important for many vegetables because it affects their sensory evaluation and storage ability. Sugar content of melon was evaluated and visualized using NIR absorption spectra by the autor in [66]. His paper indicated a strong inverse correlation for a melon between sugar content and specific wavelength (676 nm) near to the chlorophyll absorption band. The visualization was implemented by taking an image through a filter with band around 676 nm and converting the pixel values to another unit (absorbance) to assign them with a color. However, there was still a bias caused by melon color. Later, they developed another visualization method using deeper NIR region to prevent bias from melon color [67]. They noticed that the two 2nd derivative absorbances in 874 nm and 902 correlated strongly to the sugar content. For this visualization, two bandpass filters were employed.
Pedro and Ferreira [68] applied NIR and multivariate calibration to evaluate soluble solid, lycopene, -carotene, and carotenoid contents of tomato. The PLS-1 was used for calibration. Prediction accuracy values were over 0.99.
Protein content of edible fungi (Auricularia auricular) was studied by Liu et al. [69] They applied partial leastsquare, multiple linear regression, and least square support vector machine on data and compared performances of different preprocessing including Savitzky-Golay smoothing, standard normal variate, multiplicative scatter correction, first derivative, second derivative, and direct orthogonal signal correction. Wavelength selection was based on successive projections algorithm. Liu et al. [69] concluded that the best full spectrum partial least-square model was obtained using "raw" data whereas optimal successive projection algorithm with multiple linear regression, successive projection algorithm with partial least squares, and successive projection algorithm with least-square support vector machine models were achieved with spectra preprocessed multiplicative scatter correction. The optimal model was produced by successive projection algorithm with least-square support vector machine combination.
For cooked potatoes, dry matter content is important. Van Dijk et al. [70] studied three potato cultivars, cv. Nicola (a firm cooking potato), cv. Irene (a mealy cooking potato), and cv. Bintje (intermediate between firm and mealy cooking potato). They related NIR spectra to dry mater content and sensory perceived texture of steam cooked potatoes. The dry mater content affected most on the texture while the effect of chosen cultivar is minimal. Storage did not have any effect on the relationships.
Dacal-Nieto et al. [71] have used genetic algorithm (GA) for feature selection in potato classification done by the help of computer vision.
Roggo et al. [72] applied NIR for sucrose content with very small sucrose ester of fatty acid (SEF, fresh beet) and got satisfactory results for brix, marc, sugar in molasses, and juice purity but lower accuracy results for glucose, nitrogen, sodium, and potassium.

International Journal of Spectroscopy
Soybean is an important vegetable in many countries. Soybeans have phytic acid which has nutritional and environmental importance. To evaluate the levels of the phytic acid, Delwiche et al. [73] measured its complement, inorganic phosphorus, using diffuse reflectance of near-infrared (1100-2500 nm) for ground meal and transmittance (600-1900 nm) for single beans. The results were not very good with partial least-square regression but give an indication. Kovalenko et al. [74] developed calibration equations for estimating amino acid composition of whole soybeans from near-infrared spectra. They also concluded that cysteine and tryptophan could not be estimated from spectra while leucine and lysine have a high correlation.
Pazdernik et al. [75] applied near-infrared reflectance spectroscopy to evaluate crude glycinin fraction of soybean protein. They find that the fraction was positively correlated to crude protein concentration and negatively to oil concentration. The high crude protein and fraction content was related to higher growing temperatures while the lower growing temperature produced higher oil concentration. Pazdernik et al. [76] studied also amino and fatty acid compositions. Hollung et al. [77] applied NIR reflectance on soybeans to find samples with a low content of oligosaccharides and nonstarch polysaccharides. They were able to predict that total content of nonstarch polysaccharides could be predicted using partial least-square regression.
The moisture content of whole soybean in the range of 5 to 22% can be determined with great accuracy using nearinfrared transmittance (800 to 1100 nm) and difference in absorbance, stepwise multiple linear regression, or partial least-square modeling [78].
The classification based on soybean position can be useful, too. Bennett et al. [79] analyzed field-grown soybean seeds with different nodal positions with NIR. They found that seed protein content varied as a function of place: those from plant basal region have higher oil content and lower protein content while the opposite was true for the apex. Later in [80], they studied the seed quality traits (protein, oil) utilizing NIR to determine percentage of oil and protein. They noticed that early-planted crop has increased the amount of oil (3-8%) while there was not much change in protein content.

A.2.3. Freshness.
Quality of mushroom can decrease if too long time elapsed from harvest. Esquerre et al. [81] used VIS and NIR absorption spectra to detect bruises and evaluate the freshness. The partial least-square model was employed and it was mostly influenced by changes in water matrix and enzymatic browning.

A.2.4. Authentication.
Li et al. [82] have recently tested classification methods for the authentication of pure camellia oil NIR spectra. Sample authenticities were confirmed by gas chromatography. The classification methods were unsupervised principal component analysis (PCA), hierarchical cluster analysis (HCA), supervised classification techniques based on discriminant analysis (DA), and radical basis function neural network (RBFNN). The classification rate of all methods reached 98.3% when smoothing, first derivative, and autoscaling were used. The good performance showed that NIR spectroscopy could be successfully used as a rapid, simple, and nondestructive method to discriminate pure camellia oil.
A.2.5. Structural Characteristics. The physical and chemical properties of soybean and corn are correlated with size and density. However, the change on size and density has no effect in accuracy of determination of soybean protein and oil content. The effect is very small for determining protein, oil, and starch contents for corn [83].
A.2.6. Damage. Vegetables, mushrooms, and fungi can suffer physical damages for too rough handling. VIS/NIR absorption seems to be useful for quantifying bruise damages for mushrooms [81,84].

A.2.7. Incorrect Ingredients.
Roggo et al. [72] suggested the use of NIR spectroscopy for decreasing pollution of heavy metals, lead acetate, caused by the legal methods, polarimetric measurement for sucrose content, and wet chemical analysis for quality control.
A.2.8. Bioagents. The detection of fungi from food assumes those the spectra of fungi differ from that of the food itself. This assumption has been shown to be valid, for example, by Pearson and Wicklow [85] who detected the fungi in corn kernels, Gordon et al. [86] for food grain, and Berardo et al. [87] for maize.
Jin et al. [88] have used GAs to find the optimal wavelengths when trying to discriminate aflatoxin-producing Aspergillus flavus (AF13) fungi and non-toxin-producing Aspergillus strains (AF2038, AF283, and AF38). Their hyperspectral image was taken of several strains cultured 7 days on potato dextrose agar using both broad-spectrum UV light source and tungsten halogen bulbs. GA was used to find the most important principal components (PCs) among the first 40 PCs. The selected PCs were given to a support vector machine (SVM) for training for classification between toxigenic and atoxigenic fungi species. The discrimination accuracy varied between the strains and the light source used ranging from 70% to 95% pixel-wise.
Berardo et al. [87] applied NIR for the detection and identification of mycotoxigenic fungi and their toxic metabolites. They analyzed the samples for fungi infection, ergosterol, and fumonisin B 1 content. They concluded that NIR is suitable for monitoring mold contamination and separating the contaminated lots from clean lots.

A.3. Class A, Type 003: Grasses
A.3.1. Content. Cereal grains have many important ingredients which are searched in many studies. Also moisture is an important parameter. Dowell et al. [89] have applied NIRS for scab, vomitoxin, and ergosterol determination in single-wheat kernels. The results obtained show that the NIRS method was able to find all scab-damaged kernels that were identified by official inspectors.
Miralbés [90] measured NIR transmittance 850-1048 nm of whole wheat from different countries and evaluated their moisture, protein, wet gluten, dry gluten, and alveograph parameters (W, P, and P/L) using partial least squares. The alveograph parameters required division of wheat samples into two groups according to their deformation energy values.
Tartary buckwheat has beneficial ingredients, rutin and D-chiro-inositol, against hemorrhagic diseases and insulinresistant diseases. Yang and Ren [91] applied NIR reflectance to evaluate their content. They developed a partial leastsquare method and used the results from HPLC as a reference. A good chemometric correlation existed.
Brenna and Berardo [92] studied maize whose antioxidant compounds like carotenoids are useful against reactive oxygen substances. They combined NIR and HPLC results for determining carotenoid concentration of grinded maize using modified partial least squares.
Rice is another very important food plant. Kawamura et al. [93] used NIR transmittance and PLS for successful evaluation of moisture and protein contents of undried rough rice. However, they found that their method was not applicable to determine amylase content. Zhang et al. [94] suggested use of NIR to predict total phenolics, flavonoid content and antioxidant capacity of dehulled grain of brown rice. The phenolic content, and antioxidant capacity were successfully determined using mPLS and PLS while this failed for flavonoids.
Stubbs et al. [95] measured residue from cultivars of spring wheat (Triticum aestivum L.), winter wheat, and spring barley (Hordeum vulgare) with NIR and made models to estimate neutral detergent fiber (NDF), acid detergent fiber (ADF), acid detergent lignin (ADL), carbon (C), sulfur (S), nitrogen (N), and C : N. The models were successful for neutral acid detergent fibers and acceptable for acid detergent lignin, for others less successful.
Wiley et al. [96] studied barley mutants. They evaluated grain nitrogen and protein composition. The grains were measured with NIR reflectance spectra, which were resolutionally enhanced by derivative spectroscopy. The advantage of derivative spectroscopy is to allow wavelengths to be identified with clear differences in contribution from the associated chemical bonds. They compare the 4th derivative of wholemeal flour with high and low containing grains.

A.3.2. Structural Characteristics.
Structural characteristics like hardness have effect on quality. For maize, the hardness was evaluated using NIR spectra in [97]. Manley et al. [98] used hyperspectral images of 1000 to 2498 nm wavelength range to classify yellow maize kernels. They found clusters for different endosperms (vitreous, floury, and 3rd type) which present varying ratios of soft and hard kernels. Cereal composition reveals the properties of inner structure. Siska and Hurburgh Jr. [83] applied NIR transmittance and PLS to obtain corn density which is related to starch and protein.

A.3.3. Taste.
Taste from cereal food is affected by the grains themselves. The study of Kawamura et al. [99] indicates that VIS/NIR reflectance could be useful for rough classification of wholegrain milled rice using multiple linear regression (MLR) analysis into three groups: poor, better, and best taste.
A.3.4. Safety. Fernández Pierna et al. [64] applied nearinfrared hyperspectral images for separating impurities from cereal grains. The cereal grains were wheat, spelt, and barley while the contaminants were a variety of different matters (straw, broken grains, grains from other crops, weed seeds, insects, plastic, stones, pieces of wood and paintings, and animal feces) classified into different categories. For each category, a discriminant model was developed. The method was based on PCA and support vector machine.

A.4. Class A, Type 004: Nuts and Seeds
A.4.1. Content. Nuts of shea tree can be used as a source of nut butter. The moisture, fat, stearic acid, and oleic acid can be determined using NIRS [100].
Front et al. [101] studied the sinigrin, gluconapin, 4hydroxyglucobrassicin, and total glucosinolate of Indian mustard seed. They modeled the NIR spectra with modified partial least-square regression for chemometrics. The coefficients of determination were over 0.8 for all other except for 4-hydroxyglucobrassicin which was only 0.33. Font et al. [102] measured intact and ground seed of Indian mustard, Ethiopian mustard, and rapeseed and applied modified partial least-square regression to combine near-infrared spectra and acid detergent fiber values. The sample type did not have any significance on the evaluation. According to them, the most important factors for modeling were C-H and O-H groups of lipids, water, protein, and chlorophyll.
Kwan et al. [103] determined the oil and fatty acid contents of intact perilla seed using NIR reflectance. They concluded that mPLS produced good predictions for oil, oleic acid, and linolenic acid contents whereas the predictions for palmitic, stearic, and linoleic acid were unsuitable for screening purposes.
The content of intact common bean was subjected to NIR reflectance in order to determine seed weight, protein, and starch for 91 genotypes [104]. PLS model was able to predict protein content with high accuracy (SEP) = 1.6% and reasonable accuracy for weight and starch. Seed color had a correlation to spectra; black seed has very different spectra. Color did not affect model accuracy.
Wang et al. [105] used near-infrared and PLS to study proteins and amino acids in peanuts. They found the results acceptable. Yang and Sun [106] demonstrated that the hardness of licorice seeds can be done with NIR.
A.4.2. Authentication. Downey et al. [107] applied near-and mid-infrared spectra for authentication of lyophilized coffee samples of Arabica and Robusta cultivars. They used factorial discriminant analysis and partial least-square models.
Downey et al. [108] applied VIS and NIR transflectance spectra to detect adulteration of pure extra virgin olive oils.

International Journal of Spectroscopy
The adulteration rates for the olive oil were 1% (w/w) and 5% (w/w) sunflower oil. The best classification was obtained using 1st derivative of 400-2498 nm spectra. The adulterant content was predicted with 0.8% standard error accuracy.
Woodcock et al. [109] studied European olive oil samples to specify their geographical origins with near-infrared transflectance spectroscopy (1100-2498 nm). The samples were collected from harvests of 2005, 2006, and 2007. The detection rate for Ligurian ones was 92.8% and non-Ligurian ones 81.5% when using the first-derivative data pretreatment and discriminant partial least-square regression.

A.5. Class A, Type 005: Herbs and Spices
A.5.1. Content. The herbs and spices contain many characteristic ingredients, the amount of which is often a concern. Often the goal is to find an alternative method for HPLC. The herbs and spices can come in many forms like leaves, roots, or powders. Chemometrics can be applied to all these forms.
Another example is kava which is an herb with anxiolytic properties caused by active compounds called kavalactones or kava pyrones. As a natural product, the amounts of active compounds vary between specimens. The NIR reflectance and partial least squares can be used to detect these compounds reliablly [110]. The results from the developed method are reproducible and have repeatability comparable to HPLC methods.
Tanaka et al. [112] quantified curcuminoids (total curcuminoid content, curcumin, demethoxycurcumin, and bisdemethoxycurcumin) of turmeric. They applied 2nd derivative preprocessing and standard normal variate to NIR data and after that partial least-square regression. Characteristic absorption of curcuminoids was detected in approximately 1700 nm and 2300 nm-2320 nm. The results obtained have a high correlation with HPLC.
Many herbs and spices are often milled to powder-like Ginseng. Chemical methods like HPLC are expensive and sometimes they can be replaced by NIR/VIS spectroscopy 400-2500 nm. The authors in [113] studied it for American Ginseng root powder to detect ginsenosides. They found that it is applicable for major ginsenosides, Rb 1 , Re, and m-Rb and total ginsenosides. Sesame has some antioxidative-activity-related ingredients like lignans (including lipid-soluble lignans sesamin and sesamolin) and water-soluble lignin glycosides (sesaminol triglucoside and sesaminol diglucoside). Kim et al. [114] developed a NIR reflectance method for evaluating the lignin content of intact sesame seeds. The modeling was done using mPLS regression using results from high-performance liquid chromatography analysis as reference values. The results were good ingredients except for sesaminol diglucoside owning to its small amount.
Xin et al. [115] suggested a method to separate raw and processed herbs. They measured the herbs in the NIR area and used support vector machine, random forests, and linear discriminant analysis in analysing and classification. The obtained results were excellent.
A.5.2. Origin. Sometimes the origin is important for consumers. Zalacain et al. [111] suggested the use of near-infrared to determine the origin of saffron (Iran, Greece, and Spain).

B.1. Class B, Type 06: Mammalian Products
B.1.1. Spoilage. Meat spoils very easily and thus produces a health risk not to mention unpleasantness. So excluding certain delicacies, the spoilage should be avoided or at least the spoilt meat should be removed before going to consumer. The spoilage for different meats has been studied for pork meat [116] and beef [117]. These papers considered also bacteria and microbiological factors.

B.1.2. Contamination.
The fecal material is sometimes found on animal carcasses. Windham et al. [118] suggested the use of four optimal wavelengths: 434, 517, 565, and 628 nm. These wavelengths were selected using multivariate data analysis and VIS/NIR reflectance data. Different spectral ratios were tested to find optimal classification. The ratios 565 nm/517 nm provide 100% detection rate in carcasses of broilers fed a corn or soybean meal diet. Another ratio, 574 nm/588 nm was shown to be optimal for a larger variety of diets.

B.1.3. Taste (including Juiciness).
One of the earliest references to taste of meat was already published in 1969 [119]. Byrne et al. [120] used NIR reflectance (750-1098 nm) to examine the taste of heifer cow. The samples from the longissimus dorsi (2.5 cm thick) were taken at 2, 7, and 14 days post mortem. They were vacuum-packaged in plastic bags and stored at −20 ∘ C.
The results from taste panel and chemical processes for lamb meat were evaluated against NIR reflectance by Andrés et al. [121]. They evaluated a set of 232 muscle samples from Texel and Scottish Blackface lambs. They concluded that absorbance is correlated to juiciness, flavour, abnormal flavor, and overall liking of lamb meat, but the correlation does not provide very clear classification. It was applicable for separating extreme samples.

B.1.4. Appearance.
The appearance consists of color, geometrical features, and texture of meat. Texture of meat here is the general surface appearance.
Color of meat depends on water content and concentrations of myoglobin and also the relative proportions of myoglobin's different forms, oxymyoglobin, myoglobin, and ferric myoglobin [122,123].
Meat color has been studied for decades and several methods have been suggested. For example, Van den Oord and Wesdorp [124] suggested the use of reflectance differences at 630 and 580 nm. Later, beef color prediction has been studied by Leroy et al. [125] and Shackelford et al. [126]. Shackelford et al. [126] showed that the best color prediction with NIR was obtained in reflectance mode. Leroy et al. [125] studied also beef, longissimus thoracis, and obtained similar results. For pork, color is an especially important parameter for customers which make their buy/not buy partially based on it. Cozzolino et al. [127] applied VIS/NIR for prediction.
Andrés et al. [128] applied VIS/NIR (400-2500 nm) for determining L * a * b * colour parameters. The results for luminosity at 0 and 60 min had a good predictability.
B.1.5. Diet. The diet affects the composition of beef: their subcutaneous fat and its fatty acid composition [129]. Prieto et al. [130] report that NIR can be used to separate whether or not the beef cows has been fed with flaxseed.
B.1.6. pH. pH is affected by light scattering [131][132][133] study produced over 0.8 values for coefficient of correlation when using first derivative and multiplicative scatter correction for calibration and validation sets. The obtained precision is good; only 4.27% of predictions had difference more than 0.2 pH. Andrés et al. [128] predicted pH of beef with NIR with good accuracy.
B.1.7. Content. Important factors for meat are lean-to-fat ratio, meat percentage, intramuscular fat, marbling, protein, water contents and muscle area. Certain ingredient, or their amount can be used as a guarantee for quality and used as a mark of quality.
Moisture of meat has been evaluated by Liao et al. [133] with coefficient of correlation near 0.8 for validation set using the first derivative and multiplicative scatter correction. Tornberg et al. [134] with no processing showed very poor predictability (0.21) for both VIS (400-800 nm) and NIR (800-2500). Chan et al. [135] used first derivate and preprocessing of spectra (400-1700 nm) and obtained results over 0.7 for the validation set.
Liao et al. [133] showed over 0.75 values for the calibration, and the validation sets for protein content. Values around 0.7 were obtained by Chan et al. [135].
The intramuscular fat is important quality factor which has been studied for beef [130,136,137] and pork [133,137]. Sierra et al. [136] studied the composition and content of intramuscular fat has been studied by using NIR transmittance 850 to 1050 nm. They evaluated the fatty acid profile for samples of ground beef from the longissimus thoracis of yearling bulls. The study indicates that it is possible with relatively good accuracy to evaluate saturated, branched, and monounsaturated fatty acids. NIR transmittance also provides information about conjugated linoleic acids. Prieto et al. [130] used NIR reflectance 400 to 2498 nm for determining concentration of polyunsaturated fatty acids and their biohydrogenation products in beef cows which have been fed on special diet (flaxseed).
The intramuscular fat and water for lamb meat were predicted at a higher accuracy and they seem to correlate to the sensory parameters [121].
Iron-related substances can also be evaluated from meat. Hong and Yasumoto [139] used NIR diffuse reflectance from 1100 to 2500 nm to study heme and nonheme iron in raw meats: beef, pork, chicken, rabbit, duck, horse, lamb, and mutton. The second derivate was taken from data and after that multiple regression equations were applied. The result indicates that the multiple correlation coefficients are over 0.9 for both hemes and total iron. Hong and Yasumoto [139] obtained the best results with multiple regression equation at wavelengths where NH groups in protein molecules and C-C and CH in the porphyrin ring of heme have absorption.
The same NIR wavelength range (1100-2500 nm) has been tested for evaluating crude protein (CP), myoglobin, collagen, ether extract (EE), gross energy (GE), dry matter (DM), and ash content of oxen meat [140]. Prieto et al. [140] found that myoglobin, collagen, and ash contents could be evaluated with poor predictability. They speculate that this was due to lack of correlation between these parameters and ether extract content. However, ether extract evaluation was successful and important since this parameter is highly related to the organoleptic characteristics (like juiciness, flavor, and texture) in oxen meat samples. Also other parameters like crude protein, dry matter, and gross energy, which have a high correlation with ether extract content, were predicted with an acceptable degree of accuracy.
Pérez-Marín et al. [141] applied NIR for all stages of pigs: the live animal, carcass in slaughterhouse, subcutaneous fat sample with skin, skin-free subcutaneous fat sample, and transverse section. They develop prediction model for the four main fatty acids in Iberian pig fat, obtaining for palmitic acid SECV values of 1.24% for in vivo analysis and 0.82% for carcass analysis, for stearic acid 0.67% and 0.94%, for oleic acid 1.42% and 1.48%, and for linoleic 0.36% and 0.55%. The model proved the feasibility of NIR because it accounted for between 60% and 74% of the variation of spectra of live animals and between 31% and 87% of variation of carcasses.
Lamb muscles appear to have special absorption bands at 424 nm and 550 nm. These bands are related to the Soret band and the oxymyoglobin absorption band [145,146]. The absorption bands (at 540 nm and at 580 nm) correlate with both myoglobin and oxymyoglobin [145,147,148], but myoglobin has also another absorption band at 555 nm [145][146][147][148][149][150] with the absorption band at 574 nm with oxyhaemoglobin absorption.
According to Murray [151], an absorption band at 762 nm is caused by the OH third overtone or according to Swatland [145] and Delpy and Cope [149], an absorption band produced by the oxidation of the myoglobin (deoxymyoglobin). Pigments and other characteristics (intramuscular fat, fattyacids, and moisture) cause most of the spectral information used for the VIS region (400-700 nm) and the NIR region around 1400-2300 nm.
Similar results are reported by others like Downey et al. [152]; Lomiwes et al. [153] predicted glycogen concentration of prerigor muscle.
B.1.8. Maturity. The age of animal can affect the meat quality since there can be differences in intramuscular fat and water contents. Prieto et al. [154] applied successfully NIR reflectance 1100-2500 nm to separate adult, over 4 years old castrated steers and young, under 14 months old cattle. The samples were taken from longissimus thoracis muscle.
B.1.9. Shear Force. Shear force value indicates how much force is needed to cut the meat and it is related to tenderness. In fact, Yancey et al. [155] studied the connection between shear force (Warner-Bratzler shear force (WBSF), and Meullenet-Owens razor shear (MORS)) and tenderness (consumer evaluation, also with overall impression) for beef ribeye rolls taken from Select, low Choice, top (upper 2/3) Choice, and Prime quality grade carcasses with visible and near-infrared spectroscopy reflectance. Steaks were cut 2.54 cm thick and put to aging for 14 or 28 days. The longer aging of samples was related to increased tenderness. The 2nd derivatives of VIS/NIR measurements were found to be capable for predicting tenderness and overall impression than shear force measures.
Many studies for shear force have been made, for example, Byrne et al. [120] 1998, Park et al. [156] Rodbøtten [157] and Venel et al. [158]. Byrne et al. [120] evaluated Warner-Bratzler shear force using NIR 750-1098 nm for Heifer cows. They obtained over 0.7 value of correlation coefficient for both groups, for samples taken at 2, 7 and 14 days post mortem, vacuum-packaged in plastic bags and stored at −20 ∘ C. However, the results seem to vary. Prieto et al. [159] studied beef and cooked pork and suggest significant variation as a function of position. Shackelford et al. [126] applied shear force detection online for beef. The NIR transmission measurement provided better results than reflectance measurements [125]. The ability was limited longissimus thoracis at 2 or 8 days post mortem. Venel et al. [158] suggest using additional features (age, grade, pH, and sex) to improve results.
The results for pork meat have different conclusions. Study of Geesink et al. [160] indicates poor predictability. Liao et al. [133] obtained relatively good prediction for the calibration set but over 2.5 times poorer for the validation set. It has been discussed that the problem is the significant variations at different positions of the samples.
B.1.10. Tenderness. Tenderness of a beef describes the resistance to bite or shear meat and is related to the hardness. It should be noted that the characteristics can correlate to each other, like tenderness of meat that has a positive correlation to flavor and juiciness [161].
Generally the customers prefer beef with low effort needed and thus tenderness is an important factor related to quality. NIR models have predictions rating fair to good for the tenderness of postrigor longissimus muscle in many publications [120,148,156,162], and [157]. Common measurement ranges were 1100-2500 nm and 750-1100 nm. It seems that absorption increases when the meat becomes tougher. Tenderness predictions for prerigor longissimus muscle were not so good [134,157] which may indicate that the change from before rigor to after rigor and parameters related to it might be critical for tenderness. The applicability of techniques is different: extracted part of a muscle sample [156,[162][163][164] or a very small area (4 cm 2 ) [120]. Shackelford et al. [165] have extended the technique for exposed longissimus crosssection of ribbed beef. Later, an online detection of tenderness has been tested by Shackelford et al. [126].  [120] results showed correlation coefficient values of 0.5 and 0.7 for heifer meat texture by NIR. Texture of lamb meat has been evaluated by Andres et al. [121], but although absorbance does correlate to texture, it was not suitable for classification. B.1.12. Acceptability. The acceptability of heifer meat seems to be very poorly predicted by NIR according to Byrne et al. [120]. The correlation coefficient values were under 0.5.

B.1.13. Sensory Characteristics other than Appearance.
It would be advantageous to classify the beef based on its quality directly in the abattoir. Prieto et al. [159] applied VIS/NIR fiber optics measurements (350 to 1800 nm) to very fresh beef muscle to correlate it with lab color, cooking loss, instrumental texture (Volodkevitch, 10-day aged meat; slice shear force, 3 and 14-day aged meat), and sensory characteristics. However, the results indicated that only the sensory characteristics correlation was useful.
B.1.14. Structural Properties. Structural properties are related to functional quality. They can be water holding capacity, isometric tension, muscle fiber shortening, pH, and cooking loss.
Shackelford et al. [126] evaluated NIR for water-holding capacity and cooking loss for beef. The average reflectance showed higher absorbance for samples with highest cooking loss with meat 2 days post mortem. The difference between spectra diminished when the meat was 8 days post mortem. The transmission spectra improved the results. The drip loss prediction was not very high. It was best for reflectance at day 8 with a correlation coefficient of 0.54. Tornberg et al. [134] studied the drip loss for porcine meat using wavelength 802-2500 nm. They obtained a correlation coefficient of 0.64.
The study of Prieto et al. [159] suggest that VIS/NIR may not be very useful for determining cooking loss. Drip loss and shear force for pork were studied by Geesink et al. [160]. The data (reflectance spectra (1000-2500 nm), water-holding capacity, shear force, ultimate pH, and colour (L * , a * , b *value) of 96 pork longissimus) were obtained two days post mortem and subjected to stepwise multiple linear regression (SMLR) and partial least-square regression (PLSR). The drip loss was predicted successfully while shear force was not.
B.1.15. Other Subjects. Shackelford et al. [165] studied optimal measurement for NIR and VIS. They recommended for online VIS/NIR studies of longissimus quality traits of ribbed beef carcasses: a high-intensity probe (with a 50 mm diameter hole in the limiter plate), data acquirement was done with averaging 20 spectra per observation, measurement place longissimus from one side per carcass, and at a standardized bloom time for spectra taking. Offline measurement application to lamb and pork and smaller muscles may require a reduction in the size of the opening in the limiter plate.
B.1.16. Authentication. Authenticity of meet has several viewpoints. One viewpoint is the origin, another adulteration, and the last one ecological point. The common factor is that consumers should get what they intend to buy, even when the food bought is otherwise acceptable. Some people prefer organic food for their perceived superiority. The composition of meat, flavor, color, and fatty acid composition [168] of cattle and sheep depend heavily on diet.
Dian et al. [168] used VIS 400-700 nm and VIS/NIR 400-2500 nm with laboratory monochromator for separating pasture-fed and concentrate-fed lamb carcasses. They evaluate for this purpose three methods: (1) composition based on carotenoid absorption and perirenal fat reflectance at 450-510 nm, (2) composition based on perirenal fat reflectance at 400-700 nm, and (3) full spectrum of 400-2500 nm. The measured target was especially the perirenal fat because it is always present and can be removed without affecting carcass quality, and it provides better results than subcutaneous caudal fat [169]. The methods assessed the pasturefed lambs by classification rates of 89.1%, 90.8%, and 97.5% and for concentrate-fed lambs by 98.6%, 98.6%, and 97.8%, respectively.
Cozzolino and Murray [170] applied VIS/NIR 400-2500 nm spectra for classifying the meat from beef, lamb, pork, and chicken. The achieved accuracy was over 80% with PCA and PLS.
Ding and Xu [171] obtained ideal results while separating beef and kangaroo samples. All kangaroo samples were identified with 100% accuracy.
B.1.17. Drip Loss/Water Holding Capacity. The water-holding capacity is a major pig meat technological property. Prevolnik et al. [172] used artificial neural network to predict protein drip loss from NIR with error of 2.5-2.6%.
B.1.18. Meat Freshness. The meat freshness can be thought to be related to its butchery date and possible freezing/thawing. Downey and Beauchêne [173] successfully applied VIS/NIR for separating the fresh meat from frozen/thawed beef using factorial discriminant procedure. Another study to separate frozen and unfrozen beef was done by Thyoldt and Isaksson [174].
B.1.20. Bioagents. Hobson et al. [175] suggested the use of spectral methods for detecting the metabolic state of microorganisms.

B.1.21. Milks
General Quality. Milk quality measured using NIR has been suggested by Kawasaki et al. [176]. Al-Qadiri et al. [177] studied the quality with visible (starting at 600 nm) and short infrared NI Karoui and De Baerdemaeker [178] give a review of analytical methods including NIRS coupled with chemometric tools for the quality determination and identity of dairy products. [179] used partial and overall PLS calibration of near-infrared transmission data to evaluate its fat, crude protein, true protein, and casein content. The results indicated that NIR provides reliable results for the evaluation purposes and overall PLS calibration can improve the results.

Content. Laporte and Paquin
Sašić and Ozaki [180] subjected raw milk to SW-NIR (800-1100 nm) measurements. They predicted the fat, protein, and lactose contents using PLS regression and band assignment. The correlation of spectra and milk protein was sufficiently high. Fat content prediction needed pretreatment. Prediction of lactose content was limited.
Adulteration. Milks are also subject to adulteration. Some cases of the adulteration can be subtle like adding foreign fat. Sato et al. [181] used NIR analysis to detect these fats.

B.2. Class B, Type 07: Poultry Products.
Chicken meat products need to be controlled because of their safety risk and quality. These issues have been considered in many papers such as Chen et al. [182], Chen and Marks [183], Chen and International Journal of Spectroscopy Marks [184], Chen et al. [185], McElhinney et al. [186], and Rannou and Downey et al. [187].
Park et al. [188] have recently constructed a prototype multispectral imaging system for online poultry carcass fecal contamination detection. They used a line-scan imaging system using 517, 565, 600, and 802 nm. The longest wavelength was used for removing artifacts caused by cuticle.
B.2.1. Incorrect Ingredients. The poultry meat can be contaminated by many things. One of the most dangerous things is the manure which contains many disease-causing microorganisms. Iron-related substances can also be evaluated from meat. Hong and Yasumoto [139] studied heme and nonheme iron in raw meats (e.g., chicken and duck) using NIR diffuse reflectance. They applied multiple regression equations, the second derivative data (1100 to 2500 nm) with multiple correlation coefficients over 0.9 for both hemes and total iron. The best MREs were obtained with the NIR data recorded at wavelengths where NH groups in protein molecules and C-C and CH in the porphyrin ring of heme give absorption.
B.2.3. Authenticity/Origin. The origin of chicken meat affects its value. Ding et al. [189] applied VIS/NIR (750-1100 nm) to separate broilers from Chinese local chickens using pieces of chicken meat cut.

B.2.4. Spoilage.
Lin et al. [190] used chicken as a material for investigating spoilage. Poultry can be spoilt with too much heating. It seems that the intensity of wavelength bands around 445 nm and 560 nm decreases with cooking time when using correlation analysis [191]. After this decrease, the intensity begins to vary at 475, 520, and 585 nm.

B.2.5. Storage and Handling.
It has been indicated that thawing may swallow the reabsorption of certain fluids like soluble proteins, vitamins, and salts by the meat. However, there is a risk of meat discoloration and lipid oxidation if the time for thawing is too long. Liu et al. [192] studied the effect of chilled and frozen storages (temperature, time) and shear force on chicken breasts using generalized 2D correlation analysis of VIS and NIR spectra. They noticed that the temperature of frozen storage changed intensities at 445 and 560 nm. The NIR spectra decreased. Tender and tough muscles caused difference in NIR spectral intensity. Liu et al. [193] examined the thawing behavior of frozen chicken meat with 2D VIS/NIR correlation.

B.3. Class B, Type 08: Aquatic Animal Products.
Visible spectroscopy may sometimes be more useful than NIRS as found by Stormo et al. [194] who used visible spectroscopy for assessing endpoint temperature of heat-treated surimi. Their method shows potential for use in the food processing industry.
B.3.1. Appearance. Blood in fish is sometimes an unwanted characteristic. Olsen [195] and Olsen et al. [196] suggested that it might be possible to develop a method using VIS/NIR to access residual blood in intact cod muscle.

B.3.2. Identification and Authentication.
Fishmeal batches can be made from different fish species. Cozzolino et al. [197] used NIR reflectance (1100 nm-2500 nm) and chemometrics to identify and authenticate the patches. They concluded that dummy partial least-square regression achieves 80-82% correct classification. Linear discriminant analysis based on principal component analysis scored achieved over 80% correct rate.

B.3.3. Freshness.
Fish quality is largely determined by freshness. The freshness parameter can be linked to the time of catch or harvest or freezing. It can refer to instrumental analysis or sensory evaluation.
Uddin et al. [198] suggest using of VIS/NIR spectroscopy to determine whether the fish were frozen-thawed or fresh. Bøknaes et al. [199] used NIR spectroscopy and sensory quality evaluation to rate the freshness of thawed and chilled cod fillets packed in modified atmosphere. They studied the estimation of storage temperature, storage period, and chill storage period for fish. The storage time for cod and salmon was also investigated with VIS/NIR spectra by Nilsen et al. [200]. Several techniques like visible spectroscopy, texture, and image analysis can be combined to improve results [201]. The spoilage of rainbow trout has been studied by Lin et al. [202].
Zhang and Lee [203] used near-infrared for determining free fatty acids content of fish oil and mackerel. Since the change in free fatty acids is related to hypoxanthine, they suggested it to be used as an indicator of freshness. They found that the partial least-square model produced better results than multiple linear regression.

B.3.4. Content.
Earliest fish study seems to be by Gjerde and Martens [204], they demonstrated that NIR can be used to predict water, fat, and protein contents in rainbow trout. They used reflectance spectroscopy to minced and freeze-dried samples. Since then, a lot of fish studies have been published and some at-line and online food quality controls. However, the technique is not yet a standard everyday instrumental tool. This might be due to high instrumentation costs and the need of models between spectroscopic reading and quality parameters in order to analyze them [31].
The fat content of fish has and still is under research. It has been applied on different species and different forms of fish: frozen and thawed glazed bigeye tuna [205], albacore [206], frozen skipjack [207,208], raw and frozen horse mackerel [206], frozen and thawed mackerel. Fish are sometimes ranked by their fat using visual inspection which seems to be an inaccurate method [205].
Mathias et al. [209] suggested the use of NIR for protein content analysis of freeze-dried freshwater fish. The standard deviation between results from NIR (mean lipid content) and chemical analysis was 3.7%. Mathias et al. [209] suggested also the use of NIR for lipid content analysis of freeze-dried freshwater fish. The standard deviation between results from NIR (mean lipid content) and chemical analysis was 10%.
Application of short-wavelength near-infrared spectra (600-1100 nm) can be used to determine the salt and moisture contents of salmon roe [7].
Lee et al. [210] applied diffusive reflectance of shortwavelength near-infrared in the range of 700-1000 for predicting the amount of crude lipid of intact, whole rainbow trout. The best correlation between measured and reference values was obtained from measurements at a midposition between dorsal and adipose fins above the lateral line. The modeling was done using multivariate calibration models, multiple linear regression, and partial least squares.
B.3.5. Defects. Lin et al. [211] used VIS and SW-NIR (600-1100 nm) to find bruises in intact, whole Pacific pink salmon. The measurements were done in diffuse reflectance mode and without removing skin or scales. The spectral results were compared against digital images of filleted fish with partial least-square model. The correct classification rate for nonbruised fish spectra was 84%, while for bruised it was 81%.
B.3.6. Incorrect Ingredients. Inorganic arsenic is an unwanted and unhealthy ingredient. Font et al. [212] subjected freezedried samples of red crayfish to inorganic arsenic content analysis. They applied a modified partial least-square regression for modeling with acid-digestion solvent-extracted hydride generation atomic absorption spectrometry measurements. The data was standardized by applying standard normal variate and detrending algorithms and preprocessed with 2nd derivative. B.5.1. Authenticity. Some edible invertebrate animals are more valuable and sought after than others. The processing of seafood causes appearance changes which make it very hard for a consumer to separate between authentic and adulterated products. This increases the risk of adulteration. Gayo and Hale [213] applied VIS and NIR spectra to find adulteration of crab meat. The crab meats (Atlantic blue and blue swimmer) were mixed with surimi-based adulterant in 10% increase. The adulterant increase caused decreasing water absorbance. They concluded that both PLC and principal component analysis can detect successfully adulteration. In another study, by Gayo et al. [214], VIS/NIR was applied to separate the Atlantic blue crabmeat adulterated with blue swimmer crabmeat (10% increment). Adulteration of meat changed the water absorption bands which could be used for adulteration detection. [215] applied VIS and NIR (350-2500 nm) for homogenized oyster meat and analyzed the data quantitatively and qualitatively. The results for moisture ( 2 = 0.92, SEP = 0.53% wet weight), protein ( 2 = 0.97, SEP = 0.18% wet weight), fat ( 2 = 0.97, SEP = 0.11% wet weight), and glycogen ( 2 = 0.94, SEP = 0.24% weight) indicate that VIS/NIR is useful for oyster evaluations.

C.
C. 1 [216] applied NIR spectra (350-2500 nm) for flours from tropical root and tuber crops (cassava, sweet potato, taro, and yam). They evaluated starch, total sugars, cellulose, total nitrogen, and ash (total minerals) contents of the flours. The prediction accuracy achieved over 85% confidence for starch, sugar, and nitrogen, while for ash (minerals) it was 71%. The method was unsuitable for cellulose. The advantage of NIR is its cheapness. Dacal-Nieto et al. [217] have recently used NIR multispectral imaging to detect the hollow heart of potato tubers. The camera used is sensitive from 900 nm to 1700 nm and used Specim Imspector N17E (Specim Oy, Oulu, Finland) spectrograph. Several wavelength selection methods were used, out of which the genetic algorithm was marginally the best, that is, gave the best classification accuracy in the classification step.
Green honeybush contains mangiferin and hesperidin which are bioactive components. Jourbert et al. [218] predicted content of these ingredients in dried plant material International Journal of Spectroscopy using diffuse NIR reflectance with results suitable for screening purposes.
Bellato et al. [219] studied wholegrains and flour of oats. The purpose was to determine -glucan and protein content. They applied NIR reflectance for flour and grains and NIR transmittance for flours. The model for chemometric relationship was a partial robust M-regression, a version of partial least squares. The models using reflectance values stood out best.
For example, Schimleck et al. [220] evaluated successfully air-dried leaves from Melaleuca cajuputi tree for their 1.8cineole (Eucalyptol) content and oil concentrations using NIR.
Evaluating roots provides an attractive possibility to select the individual containing the highest amount of ingredients or classify the roots in different groups according to some preset content classes. It is also possible to compare different root processing methods. Joubert et al. [221] studied Devil's claw root for evaluating iridoids (harpagoside and 8-coumaroyl harpagide (8 CHG)) and moisture content from different drying conditions. The NIR study indicates that the harpagoside retention was lower in sun-dried samples than tunnel dried or freeze-dried samples. They concluded that the best retention was obtained from tunnel-drying at 50 ∘ C. NIRS was very suitable for predicting moisture and suitable for semiquantitative classification using the iridoids.
Leaves of green tea were subjected to NIR reflectance measurement and PLS modeling to predict polyphenol and alkaloid compounds (Schulz et al. [222]). The prediction of parameters of green tea was very successful for gallic acid, epicatechin, epigallocatechin, epicatechin gallate, epigallocatechin gallate, caffeine, and theobromine, but a lower accuracy was obtained for total polyphenol content probably due to the colorimetric method (lack of specificity).
The dry matter of leaves can be evaluated very precisely (Schulz et al. [222]) for green tea 2 = 0.94; SD/SECV = 4.12. Furthermore, it is possible to discriminate tea leaves of different age by principal component analysis on the basis of the received NIR spectra.
Hernández-Hierro et al. [223] examined visible-NIR spectroscopy for freeze-dried broccoli. They concluded that it is potentially usable for screening of almost all individual glucosinolates and total glucosinolates.  [225] measured transmission spectra of orange juice dry extract in the range of 1100-2500 nm. They used multivariate calibration to evaluate the amount of sugars (glucose, fructose, and sucrose) and acids (citric and malic acids). The reference values were obtained using enzymatic assays. The best model was obtained using partial least-square regression. Fruit juice from raw Japanese apricot which is also known as Japanese plum was also subjected to evaluation of citric and malic acid contents. Chen et al. [226] used NIR spectra of 1100-1850 nm and partial least-square regression for producing acceptable prediction results for the evaluation.
Sometimes the concentration of juice is important and one needs to get a high yield. For example, González-Sáiz et al. [227] applied successfully NIR and multivariate calibration for monitoring alcoholic fermentation of onion juice. The goal was the valorization of worthless onions.
Cen et al. [228] used VIS/NIR (325-1075 nm) for determining the soluble solids contents and pH in orange juice. The data was preprocessed with Wavelet packet transform, standard normal variate transformation (SNV), and Savitzky-Golay first-derivative transformation. Partial least-square (PLS) regression was applied and it produced best results with SNV.
We include in this juice group also cola beverages. For a cola beverage, important parameters are, for example, pH. Liu and He [229] applied chemometrics to VIS/NIR spectra to get the soluble solid content and pH of cola beverage with excellent prediction precision. Least squares with support vector machine provided better results than partial least squares.
Different oils have also ingredients which need to be evaluated. Ng et al. [230] used NIR (1100-2500 nm) for the evaluation of degradation products (including total polar material and free fatty acids) of frying oils. According to their results, partial least-square regression is better in 700-1100 nm area than forward stepwise multiple linear regression, while in the whole range, they are equal. The best correlations were over 0.98. (Single Ingredient) of Plant Origin C.3.1. Content. Cozzolino et al. [231] did a review about nearinfrared spectroscopy applied to grapes and wine. Chen and Lei [232] applied VIS and NIR spectra to obtain the amount of carbohydrate in soy milk powder. Their goal was to find a high speed method for this. They searched optimal wavelength band in spectra using simulated annealing and wavelet packet transform tree. After this, different partial least-square models were tested using 20 variables.

C.3. Class D, Type 014: Manufactured Foods
Dambergs et al. [233] determined the methanol content of wine-fortifying spirit. They developed partial least-square model for NIR spectra with results from gas chromatography used as a reference.
Sáiz-Abajo et al. [234] used NIR to classify the samples into red/white wine vinegar and alcohol vinegar samples. They used orthogonal signal correction (OSC) method to remove information related to tartaric acid. Sáiz-Abajo et al. [235] studied 14 parameters which are important for the quality of wine vinegar.
Fan et al. [236] have recently used NIRS with several wavelength selection methods to predict the total acid of vinegar. Their main conclusion was that wavelength selection is essential for the creation of better regression models for acid prediction.
Bruun [237] has studied protein-lipid-carbohydrate interactions and their importance to the food quality.
Feng Liu et al. [238] have recently used VIS/NIR spectroscopy and least-square support vector machine (LS-SVM) for the soluble solid content (SSC) and pH determination of fruit vinegar. The results indicate that the method could be used in the online monitoring of vinegar fermentation.

C.3.2. Authenticity.
Cozzoline et al. [239] used VIS and NIR spectra to classify Chardonnay and Riesling white wines according to their Australian varietal origins. Discriminant partial least-square (DPLS) regression was the most successful model tested; achieving 100% correct labeling for Riesling. Later, Liu et al. [240] classified Tempranillo wines from Australia and Spain according to their geographical origins. They accompanied both VIS and NIR data (400-2500 nm) for multivariate analysis PCA, DPLS, PLS-DA, and LDA from which PLS-DA was the best with high correct classification rate.
Buratti et al. [241] have tested NIR and IR spectroscopy combined with electronic nose and tongue for the offline monitoring of wine fermentation. The results are promising for the development of an online fermentation monitoring method based on these techniques.

C.3.3. Age.
Yu et al. [242] applied LS-support vector machine (SUM) to NIR spectra to determine age and oenological parameters of rice wine. The inputs to LS-SVM applied were scores of ten principal components (PCs) and radial basis functions. LS-SVM was a little better than PLS for alcohol content, titratable acidity, and pH.

C.4. Class D, Type 015: Manufactured Foods (Multi-Ingredient)
of Plant Origin C.4.1. Content. Information about fat is often searched by consumer, for example, in cereals. However, the information is typically an estimate because the methods used like calorimetry destroy samples. Vines et al. [243] predicted the total amount of fat using near-infrared and modified partial least-square regression with good results when compared against reference values from the AOAC 996.01 method. Windham et al. [244] tested the effect of moisture to the calibration models and found that it has a significant effect. However, they developed a new partial least-square regression model to be robust enough to provide good prediction in a wide range of residual moistures. Kays et al. [245] used NIR reflectance (1100 to 2498 nm) to determine the total dietary fiber in cereal and grain products. AOAC (991.43) enzymaticgravimetric method produced the reference samples. Fernández Pierna et al. [64] have recently used NIR hyperspectral imaging and chemometrics for the detection of impurities in cereals. They used a whiskbroom system MatrixNIR Chemical Imaging instrument (Malvern instruments, Analytical Imaging, Columbia, MD, USA)) with an InGaAs FPA along with two liquid crystal tuneable filters (LCTF) for wavelength selection. The results show potential for NIR imaging in impurity detection. However, the whiskbroom system might not be as good in this task as a pushbroom system that they used in another case study with sugar beets.
C.4.2. Total Fiber Amount. Kays et al. [246] evaluated the total fiber amount of cereals using NIR spectra. The samples with high sugar and crystalline sugar were selected because a unique spectrum of crystalline sugar affects NIR spectra. The developed partial least-square model predicted the content well. Kays et al. [247] extended the NIR model to cereals with high fat or sugar and fat. The extension was necessarily because high fat or sugar may differ substantially from spectral properties.
Kays and Barton II [248] used NIR reflectance (1104-2494 nm) to determine the chemometric model for predicting gross energy and available energy of cereals. The reference values were obtained from bomb calorimetry. In another study, Kays and Barton II [249] determined accurately soluble and insoluble dietary fiber using NIR reflectance spectra (NIRSystems 6500 monochromator) and reference values from the AOAC Method 991.43. The modeling was done using modified PLS models.
Another aspect is how much energy comes from fat of ground cereals. Kays and Barton II [250] applied successfully near-infrared in the range of 1104-2494 nm to determine this using a version of PLS regression model. The sample reference was obtained using calorimetry. Archibald and Kays [251] analyzed whole intact breakfast cereals, snack foods, wholegrains, and milled products. They found that total dietary fiber could be evaluated from NIR reflectance spectra and moisture has not any effect on the results. Transmission and reflectance 700-1100 nm NIR spectra of cookies were measured by Ozanich et al. [252] to determine moisture and oil contents. Moisture content has highest correlation (and absorbance) with 965 nm wavelength (a combination band of H 2 O) while oil content with 930 nm (a 3rd overtone CH stretch of methylene) in the normalized spectra.
C.4.3. Structural Properties. de Alencar Figueiredo et al. [253] studied a wide range of sorghum cores with high genetic diversity. They used NIR reflectance to determine amylase, protein, and lipid contents, endosperm texture, and hardness.
C.4.4. Handling/Fermentation. Bruun et al. [254] used NIR for analyzing gluten powder with different handling (heat, moisture). The NIR data was processed with secondderivative transformation and extended multiplicative signal correction. The moisture caused shifts and intensity changes in the protein bands. Bruun et al. [254] assumed this to be due to changes in water binding and microenvironments of the amino acid side chains. Heat caused an increase at 2209 nm and decrease at 2167-2182 nm which could be due to anhelix to -sheet transformation. Next, in [255] different salts were added to the hydrated gluten. The same preprocessing International Journal of Spectroscopy was used and PCA was applied on this data. The results showed a correlation between spectra and salt type and concentration.
Sinelli et al. [256] used NIR (750-1100 nm) and MIR (4000-600 cm −1 ) with a fiberoptic surface interactance for dough proofing. Dough proofing is a phase during which the dough starts to ferment after the mixture of ingredients, it affects the quality of bread, and it was also noticed that NIR spectra changed.

D.
D.1. Class E, Type 016: Secondary Food Commodities of Animal Origin. Secondary food commodities of animal origin consist of dried meat and fish products and secondary milk products. We include here also products using dried meat and fish. An example of this is ham.
D.1.1. Appearance. García-Rey et al. [257] studied appearance (texture and color) of sliced samples from deboned and crosssectioned dry-cured in VIS/NIR 400-2200 nm with a fiberoptic probe. The classification accuracy for pastiness was 88.5% and 79.7% when compared against sensory evaluation. They classified into two classes: defect class and no-defect class.

D.2. Class E, Type 017: Derived Edible Products of Animal
Origin. Derived edible products of the animal origin group include processed crustaceans and animals, milk, and derived fats. (Single Ingredient) of Animal Origin. Manufactured food (single ingredient) of the animal origin group is the manufactured milk products using only single ingredient.

D.4. Class E, Type 019: Manufactured Food (Multi-Ingredient)
of Animal Origin. Manufactured milk products using multiingredient belong to manufactured food (single ingredient) of the animal origin group. Here we consider dairy products like cheese or yogurts. D.4.1. Appearance. Lucas et al. [258] applied VIS and NIR for estimating color parameters (brightness, redness, and yellowness) with good results. D.4.2. Smell. NIR seems to be suitable. Ç elik [259] used NIR to evaluate yogurts' aroma and its fermentation [260].

D.4.3. Taste.
Taste depends on the goodness of the fermentation process. NIR can be combined with electric nose as a method for online fermentation monitoring and visualizing the state of the fermentation [260].

D.4.4. Content.
The titratable acidity of the cultures for yogurt and sour milk can be predicted by forming a model using PLS with NIRS signals [260].
They estimated the content of cheese for the following items: dry matter, fat, pH, retinol, -tocopherol,carotene, xanthophylls, sodium chloride, calcium, potassium, magnesium, zinc, and total antioxidant capacity. The data was handled with modified partial least squares. The coefficient of determination and residual predictive deviation indicated that the spectra provided a good estimate for dry matter, fat, -carotene, sodium chloride, calcium, and zinc in fresh cheeses while it was poor for the rest (pH, retinol,tocopherol, xanthophylls, potassium, magnesium, and total antioxidant capacity). D. 4.5. pH. pH of the dairy product is important. Navrátil et al. [260] predicted its value using NIR. D.4.6. Origin. Cozzi et al. [261] developed a NIR-(1100-2500 nm) based method using discriminant analysis to discriminate Asiago d' Allevo cheese from different production chains (alpine farms, mountain, and lowland factories). Alpine products were discriminable from factory products due to their different fatty acids profile and color. The results were confirmed by chemical data.

MRE:
Multiple regression equations NDF: Neutral detergent fiber NIR: Near-infrared NIRS: Near-infrared spectroscopy OSC: Orthogonal signal correction PC: Principal components PCA: Principal component analysis pH: Potential hydrogen PLS: Partial least squares PLSDA: Partial least-squared discriminant analysis PLSR: Partial least-square regression PR: Protein content 2 : Coefficient of determination of a linear regression RPFNN: Radical basis function neural network SC: Sugar content SMLR: Stepwise multiple linear regression SEF: Sucrose ester of fatty acid SPA: Successiveprojection algorithm SSC: Soluble solid content SVM: Support vector machines SW-NIR: Short wavelength near-infrared TA: Titratable acidity UV: Ultraviolet UVE: Uninformative variable elimination VIP: Variable importance in projection VIS: Visible wavelengths VIS/NIR: Visual and near-infrared WBSF: Warner-Bratzler shear force.