Next Article in Journal
Theoretical Analysis for Improving the Efficiency of HT-PEMFC through Unreacted Hydrogen Circulation
Next Article in Special Issue
Determination of the Dependences of the Nutritional Value of Corn Silage and Photoluminescent Properties
Previous Article in Journal
Smart Materials for Green(er) Cities, a Short Review
Previous Article in Special Issue
Real-Time Deployment of MobileNetV3 Model in Edge Computing Devices Using RGB Color Images for Varietal Classification of Chickpea
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Miniaturized and Low-Cost Near-Infrared Spectroscopy Measurement System for Alfalfa Quality Control

by
Candela Melendreras
1,
Ana Soldado
1,*,
José M. Costa-Fernández
1,
Alberto López
2 and
Francisco Ferrero
2,*
1
Department of Physical and Analytical Chemistry, University of Oviedo, 33006 Oviedo, Spain
2
Department of Electrical, Electronic, Computers and Systems Engineering, University of Oviedo, 33204 Gijón, Spain
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2023, 13(16), 9290; https://doi.org/10.3390/app13169290
Submission received: 6 July 2023 / Revised: 11 August 2023 / Accepted: 14 August 2023 / Published: 16 August 2023
(This article belongs to the Special Issue Agriculture 4.0 – the Future of Farming Technology)

Abstract

:
Food safety and quality are the first steps in the food chain. This work reports a miniaturized, low-cost, and easy-to-use near-infrared spectroscopy (NIRS) measurement system for alfalfa quality control. This is a significant challenge for dairy farm technicians and producers who need rapid and reliable knowledge of the forage quality on their farms. In most cases, the instrumentation suitable for these specifications is expensive and difficult to operate. The core of the proposed NIR spectroscopy measurement system is Texas Instruments’ NIRscan Nano evaluation module (EVM) spectrometer. This module has a large sensing area and high resolution, suitable for forage samples. To evaluate the feasibility of the prototype for analyzing agrifood samples, different ways of presenting the sample, intact or ground, were tested. The final objective of the research is not just to check the efficiency of the proposed system. It is also to determine the characteristics of the measurement system, and how to improve them for alfalfa quality control.

1. Introduction

The nutritional value of animal feed is essential to quality, safe feed consumption, and animal welfare [1]. In addition to this fact, and due to the great variability in the raw materials used to feed animals, it is necessary to develop strategies focused on the tight control of animal feed products. These should be combined with the research and development of new, simple, economical, and robust methods for monitoring quality and safety parameters [2,3].
Forage is one of the main feed products in animal husbandry and must, therefore, be subject to safety and quality controls. Among the most important quality parameters for forages, the following three can be highlighted [4]. The fiber content is mainly provided by the fodder cell wall, and represents its carbohydrate. The mineral content (ash) gives information about possible contamination with soil, and supplies micronutrients to the diet. It also provides information on the quality of the forage. The third parameter is the protein content, which is extremely important in animal production.
Several important books on NIR spectroscopy are currently available, but some of them are not up to date. Ozaki et al. [5] report a new state-of-the-art textbook on NIR spectroscopy, covering its principles, spectral analysis and data treatments, instrumentation, and applications. In [6], Huck et al. review the fundamental principles of NIRS, and its applicability, regulatory issues, advantages, and limitations in natural product research.
Near-infrared spectroscopy (NIRS) techniques have always been valued and used in food analysis and quality control, due to the speed of analysis, the simplicity of sampling, the non-invasive nature of the techniques, and the possibility of their being implemented in the production line. In this review [7], Shenk et al. introduce scientific and technical reports using the NIRS to evaluate food, agriculture, and forest products.
In addition to the advantages of this technique, the possibility of developing miniaturized NIR systems that are easy to use, and specialized in the quality control of the raw forages used in animal feed, makes it possible to increase quality control (sampling). Thus, Cherney et al. [8] evaluate several hand-held NIR instruments for the precision and accuracy of the currently available calibrations for dry-matter and forage nutritive value. Crocombe [9] outlines the technologies used in portable spectroscopy, and Beć et al. [10] discuss the characteristics of miniaturized NIR sensors in comparison to benchtop laboratory spectrometers.
The use of easy-to-use portable NIRS instrumentation minimizes time losses, because nonspecialized personnel are able to analyse samples on site, and a real-time response is achieved as soon as the analysis is carried out. These characteristics are some of those required in precision farming [11].
Several miniaturized spectrophotometers have been developed and marketed in the last decade, some of which are extremely small, light, and inexpensive. By allowing measurements in the field, at the point of delivery, production, sale, purchase, and use, these spectrometers transform NIRS technology. Table 1 lists some commercial miniaturized NIRSs, and presents their main characteristics, as found on the websites of the manufacturers.
This work evaluates the feasibility of a miniaturized and low-cost NIRS measurement system for alfalfa quality control. The core of this system is a NIR spectrometer based on the Texas Instruments NIRscan Nano evaluation module (EVM). It has a large sensing area and high resolution to analyse forage samples. To evaluate the feasibility of the prototype, different ways of presenting the sample, intact (raw) or ground, were studied. This equipment has already been tested for use in liquid sample analysis [12], with a specific cuvette for liquid samples. For this purpose, alfalfa samples were analysed. Alfalfa is one of the main forages used to feed animals, due to its high biomass production, and protein and fiber contents. In summary, this work contributes:
  • to confirming the efficiency of the proposed NIRS measurement system;
  • to identifying the qualities of the equipment; and
  • to looking for aspects to improve and implement in the future.
The remainder of this paper is organized as follows: Section 2 reports the materials and methods for analysing dairy farm forage quality. Section 3 presents the results and discussion. Finally, Section 4 contains conclusions and future works.

2. Materials and Methods

2.1. NIRscan Nano Evaluation Module

The core of the optoelectronic measurement system is the Texas Instruments NIRscan Nano evaluation module (USD 1000 approx.) [13]. The block diagram of this module for reflectance measurements is shown in Figure 1. A slit collects and concentrate diffuse reflections, by illuminating samples at an angle that eliminates specular reflections. Light passing through the slit is collimated, low-pass filtered, and then dispersed into its constituent wavelengths via a reflective grating. Each wavelength is represented by a separate image created by the focusing lens of the digital micromirror device (DMD).
The DMD is controlled by the embedded processor, which turns only certain mirrors on and off at certain times. The width of the DMD columns selected as “on” determines the amount of light directed to the photodetector, as well as the resolution of the system. The DMD columns selected as “off” divert unselected wavelengths away from the photodetector’s optical path, to prevent interference. By doing this, they can achieve high signal-to-noise ratios (SNRs). An array detector cannot take advantage of the adaptive scanning techniques that can be performed using this type of architecture. Light energy is collected and concentrated, by the collection lenses, onto the single-point InGaAs photodetector. Analog-to-digital converters (ADCs) convert photodetector signals to digital values through transimpedance amplifiers.

2.2. NIRS Measurement System

The instrument sample window can be enlarged if raw samples with larger particle sizes are analyzed. This will produce reproducible spectra. However, this is difficult when measuring samples directly, as the sample window is very small (10 mm × 10 mm). This problem was overcome through the attaching of a semicircular sample holder to the spectrometer, as shown in Figure 2a. To ensure homogenous results for the sample, 10 measurements are made at each holder position. Figure 2b shows the microcontroller (LOLIN ESP32, USD 10) attached to the spectrometer module that drives the servomotor (MG90S, USD 10). This servo motor is powered by a 3.7 V to DC–DC converter (Pololu U1V0F5, USD 6). When the start button is pressed, the servo motor rotates, and stops at different positions to take measurements. After rotating 180°, the holder returns to its original position, and waits for another measurement to take place. When the load button is pressed, the servo motor rotates 90° to an intermediate position, making loading and unloading easier. When neither of these two actions occur, the microcontroller enters sleep mode.

2.3. Forage Samples

For this study, a calibration set of 57 samples of hay or dehydrated alfalfa collected in the north of Spain was utilized. Approximately 200 g of alfalfa was collected during the sampling procedure, to be analyzed using miniaturized NIRs. Prior to the collection of the raw scans, the samples were homogenized. After that, the alfalfa samples were milled, using a domestic spice mill (which is cheap and easy to use), and re-scanned in their ground form. This type of mill does not allow mesh-size setting. The variability associated with this factor appears in the collected spectra, and also in the chemometric results. This is because all spectroscopic information is considered when developing calibrations.
When the NIR analysis was complete, the quality of the alfalfa samples, based on animal feed requirements, was characterized, according to their nutritive value parameters. This was done using laboratory reference procedures. A Van Soest analysis [14] was performed on the neutral detergent fiber (NDF), a gravimetric analysis was conducted on the mineral content (MC), and a Kjeldahl analysis was conducted on the crude protein (CP). The CP and NDF are two of the critical parameters for classifying alfalfa quality. CP values of 19% or higher, combined with crude fiber values of 29% or lower, are related to good forage quality [15]. Table 2 summarizes the statistics for the nutritive parameters of all the samples involved in this study. It includes the range and variability in each analyzed parameter. Appendix A includes the individual values for each alfalfa sample included in this study.

2.4. Spectral Acquisition

Spectral acquisition requires a scan configuration (see Figure 3). Texas Instruments provides two different scan configurations within the "Factory” settings: “Column” and “Hadamard”.
Column scanning selects wavelengths one at a time. With Hadamard scanning, several wavelengths are multiplexed at a time, and the wavelengths are decoded individually. Hadamard scanning collects light, and offers a higher SNR, but it depends heavily on the spectrum being measured, and on the measurement system [15]. Column analysis is more effective for analyzing forage samples, because it is more accurate than other methods of analysis, due to its reproducibility.
Before scan collection, one to five sections can be configured, depending on the type of method (Column or Hadamard), the spectral range (the starting wavelength and ending wavelength), the digital resolution (the wavelength points captured within the defined spectral range) the exposure time (between 0.635 and 60.960 milliseconds), and the number of scans per sample (in this work, 10 scans at 10 different points in the sample).
In this work, all samples were scanned in reflectance mode, using the measurement system shown in Figure 2.
In order to increase the sampling window and improve the spectroscopic information for each sample, after the alfalfa samples were homogenized, each was divided into three subsamples and scanned using miniaturized NIRs. Each spectrum is an average of 10 spectra, in a wavelength range between 901 and 1700 nm, with a non-linear path wavelength between 2.9 and 3.9 nm. A total of 30 scans were collected for each alfalfa sample. The precision of the collected spectrum for each sample or signal reproducibility was evaluated for the raw and ground alfalfa. The statistic of the root-mean-square error (RMSE) was calculated. Using (1), it is possible to calculate the RMSE for each sample spectrum. Lower RMSE values are related to reproducible and repeatable spectra.
R M S E = 10 6 × D 2 n   ; D = y a y b  
  • y a   = log 1/R to λ for the average spectrum resulting from averaging a number of scans, and R is reflectance.
  • y b = log 1/R to λ for the average spectrum resulting from averaging b number of scans
  • n   = number of spectral data

2.5. Spectral Data Processing

To establish a calibration model to quantify alfalfa nutritive parameters, different chemometric strategies were assayed. The software Unscrambler X version 10.4 was employed to find the linear correlation between the NIRS spectra and nutritive parameters. This software takes NIRS spectra and transforms them into a matrix with X and Y variables, defined as the wavelength and reflectance. To detect potential spectral outliers, a principal component analysis was performed on the calibration set, before regression models were constructed using partial least squares (PLSs) [16]. An optimal number of PLSs factors is determined using the Unscrambler X software version 10.4 package, based on the minimum residual variance and 20 segments. Different spectrum mathematical pretreatment strategies were used for NDF, MC, and CP quantification. These approaches were performed using both the full range of equipment, from 900 to 1700 nm, and a reduced one, from 900 to 1600 nm.
To establish a successful model, a combination of pretreatments, including scatter correction with the standard normal variate (SNV), and the first and second Savitzky–Golay derivatives (SG), were tested in this study. Six possible pre-treatments were developed for three parameters, studying two possible wavelength ranges, for both the raw and milled samples. A total of 72 mathematical pre-treatments were assayed.
For the evaluation and selection of the most suitable chemometric model, the following statistics were calculated: the coefficient of determination for calibration (R2, see Equation (2)), and the standard error of calibration (SEC, see Equation (3)) [17].
R 2 = 1 i = 1 n ( y i y ^ i ) 2 i = 1 n ( y i y ¯ ) 2  
y i are the reference values obtained in the laboratory, y ^ i   is the prediction of the model, and n represents the number of samples used in the calibration set.
S E C = 1 n   i = 1 n ( y i y i ^ ) 2  
This parameter provides an average of the typical uncertainty for future sample prediction based on the y ^ i and y i values for the ith sample.
For each parameter evaluated, the best mathematical pre-treatment was selected for the raw and ground NIR sample analysis. The criteria for the selection of these pre-treatments were based on the lowest values of calibration standard error (SEC), as well as the values closest to one for the calibration determination coefficients (R2) [18].

3. Results and Discussion

For an NIRS procedure to be understood, the characterization of the spectrum data obtained using the NIRscan Nano prototype is essential. Figure 4 shows the raw and SNV spectra, plus the first Savitzky–Golay derivative spectra of the alfalfa samples included in the calibration procedure. Within the NIR wavelength range of the NIRscan Nano prototype, we can identify some characteristic bands of forages. According to the bibliography, those bands observed at 1166 nm are related to the protein content of the samples [18], and those observed at around 1350 nm are related to the fiber content [19]. Additionally, around 1400 nm, there is a band that can give information about the moisture content because, at that wavelength, OH bond overtone vibrations are observed [20]. In Figure 4 and Figure 5, a rectangle highlights all the cited wavelengths, and the referenced respective parameters. Hence, in Figure 4b, which is an extended area between 1650 and 1700 nm of Figure 4a, we can observe that some of the collected spectra show a noisy signal at the end of the collected spectra. This noisy wavelength range, as shown in Figure 4c, can be minimized after scattering correction (SNV) is applied, along with other mathematical pretreatments, such as derivatives.
To evaluate the effect of the sample pretreatment on the spectral data set, ground samples were scanned using NIRscan Nano. Figure 5a shows the spectral data set. As can be seen, no differences in the representative bands are observed. Moreover, the extended wavelength range (1650–1700 nm; see Figure 4b and Figure 5b) shows that, after milling the sample pre-treatment, the noisy wavelength range disappears. These data confirm that the spectral quality depends on the sampling procedure (raw or ground). This distorted wavelength range is due to the huge and non-homogeneous particle size of the alfalfa samples. It is worthy of mention that, after the application of mathematical pretreatments, no differences were observed in the collected spectra of the alfalfa samples (see Figure 4c and Figure 5c).
As observed in Figure 4 and Figure 5, between 1600 and 1700 nm, the absorbance increases, and the SNR is lower than in other ranges. It is because the intensity measured at the detector is proportional to the number of DMD mirrors positioned to reflect the incident illumination towards it. As the number of pixels changes, the measured intensity is affected as well, resulting in an increase in noise levels.
Once the spectra were evaluated, the precision of the subsampling procedure for each scanned sample (raw and ground alfalfa) was evaluated [21]. Five samples were randomly selected from the 57 analysed. The RMS value was calculated for both the intact and ground samples with the two ranges proposed (901–1700 nm and 901–1600 nm). The results are shown in Table 3.
Once the values have been calculated, two clear trends can be observed. As expected, the RMS values obtained for the intact samples (raw) are higher than those obtained for the ground ones. These results could be due to heterogeneity in the raw alfalfa. The difference was also significant when the entire spectrum was compared or the last 100 nm was suppressed. Table 3 shows that the RMS values ranging from 900 to 1600 nm are lower than the full range of values. These results highlight the influence of the sampling procedure on the spectrum data precision.
After characterizing the spectral signal, the next step was to develop a calibration model. To attempt calibration, it is necessary to build a data matrix including nutritive values (the NDF, MC, and CP) and spectral data. After that, prior to the carrying out of calibrations, as mentioned in the Material and Methods section, different mathematical pre-treatments were applied, for the three parameters, to the raw and ground samples, both for the full range and the reduced range. Partial-least-square regression is used to establish the correlation between the spectra and the assayed parameters.
Table 4 summarizes the NIRS models’ calibration statistics to quantify the NDF. As can be seen in Table 4, the R2 values are higher and the SEC values are lower in the chemometric models developed with the reduced wavelength range than in those developed using the full one. In relation to the variability in the results depending on the mathematical pretreatment, it is important to note that the SNV plus the second Savitzky–Golay derivative reached the best calibration statistics for the raw and ground samples. Previous authors [22], after evaluating different commercial portable NIRS instruments to analyze ground forages, obtained R2 values for the NDF ranging between 0.95 and 0.71, depending on the instrumentation employed. Regarding the SEC values, their results were between 2.85 and 1.21. It is not possible to obtain SEC values lower than 1, because the standard error of the laboratory (SEL) for this parameter is higher than 1.3 [22].
Table 5 summarizes the calibration statistics for the CP. Most mathematical treatments reach R2 values lower than 0.5 for raw alfalfa samples. This could be related to the heterogeneity in alfalfa forage, with two clearly different parts, the leaf and the stem. The leaf is the part of the plant that contains a protein fraction. However, it is important to remark that using the reduced range, the spectrum mathematical pretreatment of the SNV for the scatter correction, and the second Savitzky–Golay derivative (the same mathematical pretreatment as for the NDF), R2 values of 0.885, with an SEC of 0.377, were achieved. A typical SEL for reference CP analysis is around 0.210 [22].
Based on the ground samples, and a reduced range (901–1600 nm), the developed models showed statistics around 0.7 or higher, with SEC values between 0.530 and 0.986. Considering these results, it is worth mentioning that, even though the homogeneity in the ground samples gives better calibration statistics, NIRscan Nano reached acceptable values when scanning the raw samples.
Feeding animals with minerals is a common practice; however, if there is an abnormal mineral content, there is a high probability of contamination with soil, which is not desirable in animal feeding systems. To quantify the MC in alfalfa forages, 24 different calibration models have been developed, assaying different mathematical pretreatments of spectrum data. The statistics of the proposed PLS models are shown in Table 6. As stated before, the reduced range gave better calibration statistics than the full one. Comparing mathematical pretreatments, the scatter correction applied after the derivatization procedure increased the R2 values, and reduced the SEC. The highest R2 and the lowest SEC values were 0.861/0.219 and 0.867/0.318 for the raw and ground samples, respectively.
These NDF, CP, and MC calibration model statistics, obtained using the NIRS measurement system, are like those acquired via commercial portable instruments, using a wavelength range like that evaluated in this work [22,23]. The SEC values are in accordance with laboratory results, and the effect of the sampling procedure has been studied comparatively in this work. As a summary of the obtained results, Table 7 selects the best models obtained for each sampling procedure (raw or ground alfalfa) and parameter. As can be seen, the second derivative is the best of the assayed pretreatments that provide satisfactory results for the nutritive value quantification.

4. Conclusions and Future Work

In this work, heterogeneous forage (alfalfa) has been selected as a model to evaluate the precision of instrumental measures (spectra collected), and the effects of sampling presentation (raw or ground), on calibration statistics. The results have revealed that homogeneous forage samples (those milled) allow us to achieve better calibration models than those scanned in their raw form (heterogeneous). However, for all sampling procedures, it has been possible to obtain satisfactory calibration to quantify the nutritive parameters.
Through the proposed instrumentation, users can evaluate the forage quality, increase sampling without incurring costs, and obtain results in real time. This is done by avoiding delays related to carrying samples from the farm to the laboratory. Furthermore, this instrument does not require specialized training.
In the future, with the use of internet of things (IoT) tools, data can be sent to the cloud for processing. In this way, they would be accessible from any device. Thanks to storage and processing in the cloud, data are accessible from any site with internet access. This allows the use of data in decisions.

Author Contributions

Conceptualization, A.S., C.M. and J.M.C.-F.; methodology, A.S. and C.M.; validation, C.M. and A.L.; formal analysis, J.M.C.-F.; investigation, A.L.; resources, F.F., J.M.C.-F. and A.L.; data curation, F.F.; writing—original draft preparation, C.M. and F.F.; writing—review and editing, C.M., A.S., A.L. and F.F.; visualization, A.L. and F.F.; supervision, A.S.; funding acquisition, J.M.C.-F. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Spanish Ministry of Science and Innovation (PID2020-117282RBI00 and MCI-20-PID2019-109698GB-I00) and by Principado de Asturias GRUPIN IDI/2021/000081.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

We would like to thank Jairo Tuñón Díaz for his help scanning the samples.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Alfalfa
Sample Code
Mineral ContentCrude
Protein
Neutral Detergent
Fiber
111.4113.6948.42
213.7112.1252.30
310.8014.6840.53
410.4615.0639.69
512.0414.0542.10
69.9613.5943.37
710.837.1961.01
89.5513.1843.82
910.6514.2040.02
1011.0915.1738.52
119.9216.5332.17
1212.1617.0138.92
139.4413.3546.84
1411.2615.9834.66
159.9816.2736.25
169.5813.8843.68
1710.6113.7843.17
1811.5215.9037.41
1910.2414.4942.38
2010.5414.2241.76
2110.8613.2843.66
2211.4216.2837.79
2310.7816.8339.99
2410.8814.0142.53
2510.6114.5640.62
2610.2714.3542.58
2710.4212.7447.38
2811.4115.8937.76
299.4110.5351.14
3010.4714.2342.64
3110.7716.8635.55
3211.3214.1742.64
3310.0414.6429.24
3411.1413.7643.73
3510.4915.5037.09
3610.8714.2340.99
3710.5114.9640.71
389.3913.6939.99
3911.5714.6744.27
4011.4713.2836.94
4110.0813.9545.79
4211.3314.2839.69
4311.4516.3535.44
4411.4814.9139.50
458.4916.4344.22
469.8916.6940.03
479.2213.6045.70
488.4714.1731.49
4910.9516.6531.44
509.4013.8735.89
5111.1515.8536.56
5211.8616.4233.51
5310.5614.5039.19
5410.7914.6936.60
5510.4614.4036.64
5610.3510.8247.84
5710.6715.1336.26
Average10.6414.4840.70
Maximum13.7117.0161.01
Minimum8.477.1929.24
Standard Deviation0.911.705.50

References

  1. Food and Agricultural Organization of the United Nations. Available online: https://www.google.com.hk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwiuhcH6iNuAAxW34DgGHanIAWMQFnoECB0QAQ&url=https%3A%2F%2Fwww.fao.org%2Fabout%2Fen%2F&usg=AOvVaw2ikccPM_zDoInRJYBZakYo&opi=89978449 (accessed on 4 August 2023).
  2. FAO. The Feed Analysis Laboratory: Establishment and Quality Control; FAO: Rome, Italy, 2013; Available online: https://www.fao.org/3/i3535e/i3535e.pdf (accessed on 4 August 2023).
  3. Prache, S.; Adamiec, C.T.; Astruc, E.; Baéza-Campone, P.E.; Bouillot, A.; Clinquart, C.; Feidt, E.; Fourat, J.; Gautron, A.; Girard, L.; et al. Review: Quality of animal-source foods. Animal 2022, 16, 100376. [Google Scholar] [CrossRef] [PubMed]
  4. Katoch, R. Forage Quality Indices. In Techniques in Forage Quality Analysis; Springer: Singapore, 2023. [Google Scholar]
  5. Ozaki, Y.; Huck, C.W.; Tsuchikawa, S.; Engelsen, S.B. (Eds.) Near-Infrared Spectroscopy; Springer: Singapore, 2021. [Google Scholar]
  6. Huck, C.W.; Beć, K.B.; Grabska, J. Near infrared spectroscopy in natural product research. In Encyclopedia of Analytical Chemistry: Applications, Theory and Instrumentation; Meyers, R.A., Ed.; John Wiley & Sons: Hoboken, NJ, USA, 2020; pp. 1–29. [Google Scholar]
  7. Shenk, J.S.; Workman, J.J.; Westerhaus, M.O. Application of NIR spectroscopy to agricultural products. In Handbook of Near Infrared Analysis; Burns, D.A., Ciurczak, E.W., Eds.; CRC Press: Boca Raton, FL, USA, 2008; pp. 347–387. [Google Scholar]
  8. Cherney, J.H.; Digman, M.F.; Cherney, D.J. Handheld NIRS for forage evaluation. Comput. Electron. Agric. 2021, 190, 106469. [Google Scholar] [CrossRef]
  9. Crocombe, R.A. Portable spectroscopy. App. Spectr. 2018, 72, 1701–1751. [Google Scholar] [CrossRef] [PubMed]
  10. Beć, K.B.; Grabska, J.; Huck, C.W. Miniaturized NIR Spectroscopy in Food Analysis and Quality Control: Promises, Challenges, and Perspectives. Foods 2022, 11, 1465. [Google Scholar] [CrossRef] [PubMed]
  11. Mizik, T. How can precision farming work on a small scale? A systematic literature review. Precis. Agric. 2023, 24, 384–406. [Google Scholar] [CrossRef]
  12. Melendreras, C.; Soldado, A.; Costa-Fernández, J.M.; López, A.; Valledor, M.; Campo, J.C.; Ferrero, F.J. An affordable NIR spectroscopic system for fraud detection in olive oil. Sensors 2023, 23, 1728. [Google Scholar] [CrossRef] [PubMed]
  13. Texas Instruments. DLP NIRscan™ Nano EVM User´s Guide. 2017. Available online: https://www.ti.com/lit/pdf/dlpu030 (accessed on 2 January 2023).
  14. Van-Soest, P.J.; Robertson, J.B.; Lewis, B.A. Methods for dietary fiber, neutral detergent fiber, and nonstarch polysaccharides in relation to animal nutrition. J. Dairy Sci. 1991, 74, 3583–3597. [Google Scholar] [CrossRef] [PubMed]
  15. Thompson, M.; Wood, R. Using uncertainty functions to predict and specify the performance of analytical methods. Accred. Qual. Assur. 2006, 10, 471–478. [Google Scholar] [CrossRef]
  16. Xu, J.; Liu, H.; Lin, C.; Sun, Q. SNR analysis and Hadamard mask modification of DMD Hadamard transform near-infrared spectrometer. Opt. Commun. 2017, 383, 250–254. [Google Scholar] [CrossRef]
  17. Lacefield, G.D. Alfalfa Hay Quality Makes the Difference. In Agriculture and Natural Resources; University of Kentucky UKnowledge, Agriculture and Natural Resources Publications: Lexington, KY, USA, 1988; p. 32. [Google Scholar]
  18. Rego, G.; Ferrero, F.; Valledor, M.; Campo, J.C.; Forcada, S.; Royo, L.J.; Soldado, A. A portable IoT NIR spectroscopic system to analyze the quality of dairy farm forage. Comput. Electron. Agric. 2020, 175, 105578. [Google Scholar] [CrossRef]
  19. Coelho, M.H.; Hembry, F.G. Laboratory methods of forage evaluation. Near infrared reflectance analysis. Livest. Prod. Day Rep. La. Agric. Exp. Stn. Anim. Sci. Dep. 1982, 3, 195–199. [Google Scholar]
  20. Andrés, S.; Murray, I.; Calleja, A.; Giráldez, F.J. Nutritive Evaluation of Forages by near Infrared Reflectance Spectroscopy. J. Near Infrared Spectrosc. 2005, 13, 301–311. [Google Scholar] [CrossRef]
  21. Martínez, M.L.; Garrido-Varo, A.; Pedro, E.D.; Sánchez, L. Effect of sample heterogeneity on near infrared meat analysis: The use of the RMS statistic. J. Near Infrared Spectrosc. 1998, 6, A313–A320. [Google Scholar] [CrossRef]
  22. Berzaghi, P.; Cherney, J.H.; Casler, M.D. Prediction performance of portable near infrared reflectance instruments using preprocessed dried, ground forage samples. Comput. Electron. Agric. 2021, 182, 106013. [Google Scholar] [CrossRef]
  23. Gorla, G.; Taiana, A.; Boqué, R.; Bani, P.; Gachiuta, O.; Giussani, B. Unravelling error sources in miniaturized NIR spectroscopic measurements: The case study of forages. Anal. Chim. Acta 2022, 1211, 339900. [Google Scholar] [PubMed]
Figure 1. Block diagram and image (upper right corner) of the Texas Instruments DLP NIRscan Nano EVM.
Figure 1. Block diagram and image (upper right corner) of the Texas Instruments DLP NIRscan Nano EVM.
Applsci 13 09290 g001
Figure 2. Measurement system with (a) a whole sample, and (b) a microcontroller board attached over the spectrometer module.
Figure 2. Measurement system with (a) a whole sample, and (b) a microcontroller board attached over the spectrometer module.
Applsci 13 09290 g002
Figure 3. NIRscan Nano GUI scan screen (reflectance signal).
Figure 3. NIRscan Nano GUI scan screen (reflectance signal).
Applsci 13 09290 g003
Figure 4. Spectra of the whole samples: (a) raw spectra; (b) extended area from 1650 to 1700 nm; (c) standard normal variate + first Savitzky–Golay derivative pretreatment.
Figure 4. Spectra of the whole samples: (a) raw spectra; (b) extended area from 1650 to 1700 nm; (c) standard normal variate + first Savitzky–Golay derivative pretreatment.
Applsci 13 09290 g004
Figure 5. Spectra of the ground samples: (a) raw spectra; (b) extended area from 1650 to 1700 nm; (c) standard normal variate + first Savitzky–Golay derivative pretreatment.
Figure 5. Spectra of the ground samples: (a) raw spectra; (b) extended area from 1650 to 1700 nm; (c) standard normal variate + first Savitzky–Golay derivative pretreatment.
Applsci 13 09290 g005
Table 1. Main specifications of some commercial miniaturized NIRSs.
Table 1. Main specifications of some commercial miniaturized NIRSs.
ManufacturerModelTechnologySpectral
Resolution (nm)
Spectral
Range (nm)
Size
(mm)
Prize
(USD)
Texas InstrumentsNIRscan Nano
EVM
Grating–MEMS
DMD
10900–170058×62 × 361000
VIAVI SolutionsMicroNIR 1700LVF–Linear12–20950–165050 × 4514,500
Si-Ware SystemsNeoSpectraMEMS–FT8–161250–1700178 × 91 × 626950
Consumer PhysicsSCiOXX740–107067.7 × 40.02 × 18.83395
Ocean OpticsFlame NIRGrating~10.0970–170089.1 × 63.3 × 34.49926
SouthNest TechnologynanoFTIR NIRMEMS Michelson61000–2600143 × 49 × 28X
Spectral EnginesNIRONE S1.7Fabry–Pérot13–171350–155025 × 25 × 17.58940
X: No information is provided on the manufacturer’s website.
Table 2. Statistics for the nutritive value of the alfalfa samples (N = 57).
Table 2. Statistics for the nutritive value of the alfalfa samples (N = 57).
Parameter (%)MeanMin.Max.SD
NDF40.7029.2461.015.50
MC10.648.4713.710.91
CP14.487.1917.011.70
NDF: neutral detergent fiber; MC: mineral content; CP: crude protein.
Table 3. The root-mean-square error (RMS) values for the paired subsamples of the same scanned sample.
Table 3. The root-mean-square error (RMS) values for the paired subsamples of the same scanned sample.
901–1700 nm901–1600 nm
SampleRawGroundRawGround
160,52927,20943,28314,560
258,37823,85333,38610,886
354,19020,05734,0857029
454,85430,65536,26217,678
548,47233,32534,23921,939
Table 4. Calibration statistics of NIR multivariate models for neutral detergent fiber quantification.
Table 4. Calibration statistics of NIR multivariate models for neutral detergent fiber quantification.
Raw alfalfa
Wavelength range:901–1600 nm901–1700 nm
Mathematical pretreatmentR2SECR2SEC
1 4 4 SG0.8981.5540.8831.670
2 4 4 SG0.7842.1840.7862.289
SNV 1 4 4SG0.9111.3920.7912.187
1 4 4 SG SNV0.8401.9100.1451.398
SNV 2 4 4SG0.9551.0660.5143.155
2 4 4 SG SNV0.7262.5580.5403.238
Ground alfalfa
Wavelength range:901–1600 nm901–1700 nm
Mathematical pretreatmentR2SECR2SEC
1 4 4 SG0.7562.7490.5982.830
2 4 4 SG0.8422.2580.6233.371
SNV 1 4 4SG0.7612.6940.0435.383
1 4 4 SG SNV0.7962.4210.5103.946
SNV 2 4 4SG0.8921.8610.5403.803
2 4 4 SG SNV0.7302.8600.5243.321
N1N2N3: derivative order, number of left smoothing points, number of right smoothing points; SG: Savitzky–Golay derivative; SNV: standard normal variate; R2: coefficient of determination of calibration; SEC: standard error of calibration.
Table 5. Calibration statistics of NIR multivariate models for crude protein quantification.
Table 5. Calibration statistics of NIR multivariate models for crude protein quantification.
Raw alfalfa
Wavelength range:901–1600 nm901–1700 nm
Mathematical pretreatmentR2SECR2SEC
1 4 4 SG0.7420.5100.8840.428
2 4 4 SG0.2620.9110.6081.262
SNV 1 4 4SG0.3071.3140.1561.524
1 4 4 SG SNV0.6780.8420.2571.378
SNV 2 4 4SG0.8850.3770.3450.855
2 4 4 SG SNV0.3280.8120.3181.368
Ground alfalfa
Wavelength range:901–1600 nm901–1700 nm
Mathematical pretreatmentR2SECR2SEC
1 4 4 SG0.6710.9860.7060.927
2 4 4 SG0.9060.5300.2901.014
SNV 1 4 4SG0.7730.8160.7900.650
1 4 4 SG SNV0.7340.8820.7230.651
SNV 2 4 4SG0.8620.6600.2161.145
2 4 4 SG SNV0.8200.7460.1791.433
N1N2N3: derivative order, number of left smoothing points, number of right smoothing points; SG: Savitzky–Golay derivative; SNV: standard normal variate; R2: coefficient of determination of calibration; SEC: standard error of calibration.
Table 6. The calibration statistics of the mineral content multivariate models.
Table 6. The calibration statistics of the mineral content multivariate models.
Raw alfalfa
Wavelength range:901–1600 nm901–1700 nm
Mathematical pretreatmentR2SECR2SEC
1 4 4 SG0.5240.5030.2110.572
2 4 4 SG0.6190.4920.1290.861
SNV 1 4 4SG0.7830.3740.7340.464
1 4 4 SG SNV0.5020.5790.3120.491
SNV 2 4 4SG0.6750.4090.6790.434
2 4 4 SG SNV0.8610.2190.6870.444
Ground alfalfa
Wavelength range:901–1600 nm901–1700 nm
Mathematical pretreatmentR2SECR2SEC
1 4 4 SG0.6500.5300.6520.506
2 4 4 SG0.7700.4350.2430.819
SNV 1 4 4SG0.5700.5860.6700.519
1 4 4 SG SNV0.8670.3180.3470.723
SNV 2 4 4SG0.6040.5660.5910.579
2 4 4 SG SNV0.7810.4240.3010.625
N1N2N3: derivative order, number of left smoothing points, number of right smoothing points; SG: Savitzky–Golay derivative; SNV: standard normal variate; R2: coefficient of determination of calibration; SEC: standard error of calibration.
Table 7. Statistical analysis of alfalfa nutritive values (N = 57).
Table 7. Statistical analysis of alfalfa nutritive values (N = 57).
ParameterSamplingMathematical PretreatmentRange
(nm)
R2SEC
NDFRawSNV 2 4 4 SG900–16000.9551.066
GroundSNV 2 4 4 SG900–16000.8921.861
CPRawSNV 2 4 4 SG900–16000.8850.377
Ground2 4 4 SG900–16000.9060.530
MCRaw2 4 4 SG SNV900–16000.8610.219
Ground1 4 4 SG SNV900–16000.8670.318
N1N2N3: derivative order, number of left smoothing points, number of right smoothing points; SG: Savitzky–Golay Derivative; SNV: standard normal variate; R2: coefficient of determination for calibration, SEC: standard error of calibration; NDF: neutral detergent fiber; MC: mineral content; CP: crude protein.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Melendreras, C.; Soldado, A.; Costa-Fernández, J.M.; López, A.; Ferrero, F. A Miniaturized and Low-Cost Near-Infrared Spectroscopy Measurement System for Alfalfa Quality Control. Appl. Sci. 2023, 13, 9290. https://doi.org/10.3390/app13169290

AMA Style

Melendreras C, Soldado A, Costa-Fernández JM, López A, Ferrero F. A Miniaturized and Low-Cost Near-Infrared Spectroscopy Measurement System for Alfalfa Quality Control. Applied Sciences. 2023; 13(16):9290. https://doi.org/10.3390/app13169290

Chicago/Turabian Style

Melendreras, Candela, Ana Soldado, José M. Costa-Fernández, Alberto López, and Francisco Ferrero. 2023. "A Miniaturized and Low-Cost Near-Infrared Spectroscopy Measurement System for Alfalfa Quality Control" Applied Sciences 13, no. 16: 9290. https://doi.org/10.3390/app13169290

APA Style

Melendreras, C., Soldado, A., Costa-Fernández, J. M., López, A., & Ferrero, F. (2023). A Miniaturized and Low-Cost Near-Infrared Spectroscopy Measurement System for Alfalfa Quality Control. Applied Sciences, 13(16), 9290. https://doi.org/10.3390/app13169290

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop