Near-Infrared Spectroscopy-Based Discriminant Analysis for the Classification of Coffee Quality in Dry Parchment and Green Coffee
Abstract
1. Introduction
2. Materials and Methods
2.1. Coffee Samples
2.2. Sensory Analysis
2.3. Near-Infrared Spectroscopy (NIRS) Analysis
2.4. Model Development
2.5. Model Performance Evaluation
2.6. External Validation of NIRS Models
2.7. Prediction of Chemical Compounds by NIRS
3. Results and Discussion
3.1. Quality of the Coffee Samples
3.2. Spectral Analysis
3.3. Development of Models
3.4. Discriminant Classification of Sensory Quality in Dry Parchment Coffee (DPC) and Green Coffee
3.5. Classification by Quality Profiles
3.6. External Validation
3.7. Chemical Composition of NSD and WSD Green Coffee
3.7.1. Alkaloids
3.7.2. Sucrose
3.7.3. Total Chlorogenic Acids
3.7.4. Total Lipids
3.7.5. Free Fatty Acids
3.7.6. Chemical Composition of NSD Green Coffee
3.8. Chemical Composition of WSD Green Coffee
Overall Interpretation
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Osorio, V.; Pabón, J. Efecto de las temperaturas y tiempos de tueste en la calidad sensorial del café. Rev. Cenicafé 2022, 73, e73102. [Google Scholar] [CrossRef]
- Pohlan, H.; Janssens, M. Growth and Production of Coffee. In Soils, Plant Growth and Crop Production; UNESCO: London, UK, 2010; Volume 3, pp. 102–134. [Google Scholar]
- Farah, A.; Monteiro, M.C.; Calado, V.; Franca, A.S.; Trugo, L.C. Correlation between Cup Quality and Chemical Attributes of Brazilian Coffee. Food Chem. 2006, 98, 373–380. [Google Scholar] [CrossRef]
- Osorio, V. La calidad del Café. In Guía Más Agronomia, Más Productividad, Más Calidad; Cenicafé: Caldas, Colombia, 2021; pp. 219–234. ISBN 978-958-8490-49-6. [Google Scholar]
- Gallego, C.P.; Rodríguez, N. Identificación de algunas variables fisicoquímicas y microbiológicas asociadas con el defecto reposo en el café. Rev. Cenicafé 2021, 72, e72105. [Google Scholar] [CrossRef]
- Pabón, J.; Osorio, V. Efecto de la interrupción del secado mecánico en la calidad física y sensorial del café. Rev. Cenicafé 2022, 73, e73201. [Google Scholar] [CrossRef]
- Poltronieri, P.; Rossi, F. Challenges in Specialty Coffee Processing and Quality Assurance. Challenges 2016, 7, 19. [Google Scholar] [CrossRef]
- Puerta, G.I. Buenas prácticas para la prevención de los defectos de la calidad del café: Fermento reposado fenólico y mohoso. Av. Tec. Cenicafé 2015, 461, 1–12. [Google Scholar]
- Rendón, M.Y.; de Jesus Garcia Salva, T.; Bragagnolo, N. Impact of Chemical Changes on the Sensory Characteristics of Coffee Beans during Storage. Food Chem. 2014, 147, 279–286. [Google Scholar] [CrossRef] [PubMed]
- Pabón, J.; Osorio, V.; Imbachi, L.C. Calidad Física, Sensorial y Composición Química Del Café Cultivado En El Oriente Del Departamento de Caldas. Rev. Cenicafé 2021, 72, e72202. [Google Scholar] [CrossRef]
- Osorio, V.; Álvarez-Barreto, C.I.; Matallana, L.G.; Acuña, J.R.; Echeverri, L.F.; Imbachí, L.C. Effect of Prolonged Fermentations of Coffee Mucilage with Different Stages of Maturity on the Quality and Chemical Composition of the Bean. Fermentation 2022, 8, 519. [Google Scholar] [CrossRef]
- Osorio, V.; Medina, R.; Acuña, J.R.; Pabón, J.; Álvarez, C.I.; Matallana, L.G.; Fernández-Alduenda, M.R. Transformation of Organic Acids and Sugars in the Mucilage and Coffee Beans during Prolonged Fermentation. J. Food Compos. Anal. 2023, 123, 105551. [Google Scholar] [CrossRef]
- Osorio, V.; Pabón, J.; Gallego, C.P.; Echeverri-Giraldo, L.F. Efecto de las temperaturas y tiempos de tueste en la composición química del café. Rev. Cenicafé 2021, 72, e72103. [Google Scholar] [CrossRef]
- Cheng, B.; Furtado, A.; Smyth, H.E.; Henry, R.J. Influence of Genotype and Environment on Coffee Quality. Trends Food Sci. Technol. 2016, 57, 20–30. [Google Scholar] [CrossRef]
- Echeverri-Giraldo, L.F.; Ortiz, A.; Gallego, C.P.; Imbachí, L.C. Caracterización de la fracción lipídica del café verde en variedades mejoradas de Coffea arabica L. Rev. Cenicafé 2020, 71, 39–52. [Google Scholar] [CrossRef]
- Figueiredo, L.P.; Borem, F.M.; Ribeiro, F.C.; Giomo, G.S.; da Silva Taveira, J.H.; Malta, M.R. Fatty Acid Profiles and Parameters of Quality of Specialty Coffees Produced in Different Brazilian Regions. Afr. J. Agric. Res. 2015, 10, 3484–3493. [Google Scholar] [CrossRef]
- Villarreal, D.; Baena, L.M.; Posada, H.E. Análisis de lípidos y ácidos grasos en café verde de líneas avanzadas de Coffea arabica cultivadas en Colombia. Rev. Cenicafé 2012, 63, 19–40. [Google Scholar]
- López, J.R. Cuantificación de Cafeína, Trigonelina y Ácido Clorogénico por Cromatografía Líquida de Alta Resolución (HPLC). Bachelor’s Thesis, Universidad de Zamorano, Tegucigalpa, Honduras, 2008. [Google Scholar]
- Gallignani, M.; Torres, M.; Ayala, C.; Del, M.; Brunetto, R. Determination of caffeine in coffee by means Fourier transform infrared spectrometry. Rev. Téc. Fac. Ing. Univ. Zulia 2008, 31, 159–168. [Google Scholar]
- Ky, C.-L.; Louarn, J.; Dussert, S.; Guyot, B.; Hamon, S.; Noirot, M. Caffeine, Trigonelline, Chlorogenic Acids and Sucrose Diversity in Wild Coffea arabica L. and C. canephora P. Accessions. Food Chem. 2001, 75, 223–230. [Google Scholar] [CrossRef]
- Macheiner, L.; Schmidt, A.; Schreiner, M.; Mayer, H.K. Green Coffee Infusion as a Source of Caffeine and Chlorogenic Acid. J. Food Compos. Anal. 2019, 84, 103307. [Google Scholar] [CrossRef]
- Puerta, G.I. Composición química de una taza de café. Av. Téc. Cenicafé 2011, 414, 1–12. [Google Scholar]
- Bradbury, A.G.W. Chemistry I: Non-Volatile Compounds. In Coffee: Recent Developments; John Wiley & Sons, Ltd.: Hoboken, NJ, USA, 2001; pp. 1–17. ISBN 978-0-470-69049-9. [Google Scholar]
- Ginz, M.; Balzer, H.H.; Bradbury, A.G.W.; Maier, H.G. Formation of Aliphatic Acids by Carbohydrate Degradation during Roasting of Coffee. Eur. Food Res. Technol. 2000, 211, 404–410. [Google Scholar] [CrossRef]
- Marín, C.; Puerta, G.I. Contenido de ácidos clorogénicos en granos de Coffea arabica L. y C. canephora, según el desarrollo del fruto. Rev. Cenicafé 2008, 59, 7–28. [Google Scholar]
- Moreira, R.F.; Trugo, L.C.; de Maria, C.A.; Matos, A.G.; Santos, S.M.; Leite, J.M. Discrimination of Brazilian Arabica Green Coffee Samples by Chlorogenic Acid Composition. Arch. Latinoam. Nutr. 2001, 51, 95–99. [Google Scholar]
- Solís, L.; Herrera, C. Desarrollo de un método de análisis para la cuantificación de ácidos clorogénicos en café. Agron. Costarric. 2005, 29, 99–107. [Google Scholar] [CrossRef]
- Oliveira, L.; Franca, A. Applications of Near Infrared Spectroscopy (Nirs) in Food Quality Evaluation. In Food Quality: Control, Analysis and Consumer Concerns; Nova Science Publishers, Inc.: Hauppauge, NY, USA, 2011; pp. 131–180. ISBN 978-1-61122-917-2. [Google Scholar]
- Adnan, A.; Naumann, M.; Mörlein, D.; Pawelzik, E. Reliable Discrimination of Green Coffee Beans Species: A Comparison of UV-Vis-Based Determination of Caffeine and Chlorogenic Acid with Non-Targeted Near-Infrared Spectroscopy. Foods 2020, 9, 788. [Google Scholar] [CrossRef]
- Barbin, D.F.; de Souza Madureira Felicio, A.L.; Sun, D.-W.; Nixdorf, S.L.; Hirooka, E.Y. Application of Infrared Spectral Techniques on Quality and Compositional Attributes of Coffee: An Overview. Coffee—Sci. Technol. Impacts Hum. Health 2014, 61, 23–32. [Google Scholar] [CrossRef]
- Correia, R.M.; Tosato, F.; Domingos, E.; Rodrigues, R.R.T.; Aquino, L.F.M.; Filgueiras, P.R.; Lacerda, V.; Romão, W. Portable near Infrared Spectroscopy Applied to Quality Control of Brazilian Coffee. Talanta 2018, 176, 59–68. [Google Scholar] [CrossRef] [PubMed]
- Craig, A.P.; Franca, A.S.; Oliveira, L.S.; Irudayaraj, J.; Ileleji, K. Application of Elastic Net and Infrared Spectroscopy in the Discrimination between Defective and Non-Defective Roasted Coffees. Talanta 2014, 128, 393–400. [Google Scholar] [CrossRef] [PubMed]
- Gómez, C.R.; Ortiz, A.; Gallego, C.; Echeverri, L.F. Validación de curvas de calibración por NIRS para la predicción de compuestos químicos de café almendra. Rev. Cenicafé 2021, 72, e72204. [Google Scholar] [CrossRef]
- Gómez, C.R.; Ortiz, A.; Osorio, V. Predicción del origen regional del café de Colombia a partir de la técnica de espectroscopia de infrarrojo cercano—NIRS. Rev. Cenicafé 2022, 73, e73205. [Google Scholar] [CrossRef]
- Gómez, C.R.; Gallego, C.P.; Echeverri, L.F.; Pabón, J.; Ortiz, A.; Osorio, V. Determinación de compuestos químicos del café tostado por Espectroscopia de Infrarrojo Cercano (NIRS). Rev. Cenicafé 2023, 74, e74104. [Google Scholar] [CrossRef]
- Villegas, A.M.; Pérez, C.; Arana, V.A.; Sandoval, T.; Posada, H.E.; Garrido, A.; Guerrero, J.G.; Pérez, D.; García, J. Identificación de origen y calibración para tres compuestos químicos en café por espectroscopia de infrarojo cercano. Rev. Cenicafé 2014, 65, 7–16. [Google Scholar]
- Green, S.; Fanning, E.; Sim, J.; Eyres, G.T.; Frew, R.; Kebede, B. The Potential of NIR Spectroscopy and Chemometrics to Discriminate Roast Degrees and Predict Volatiles in Coffee. Molecules 2024, 29, 318. [Google Scholar] [CrossRef]
- Ramo, L.B.; Nobrega, R.O.; Fernandes, D.D.S.; Lyra, W.S.; Diniz, P.H.G.D.; Araujo, M.C.U. Determination of Moisture and Total Protein and Phosphorus Contents in Powdered Chicken Egg Samples Using Digital Images, NIR Spectra, Data Fusion, and Multivariate Calibration. J. Food Compos. Anal. 2024, 127, 105940. [Google Scholar] [CrossRef]
- Büning-Pfaue, H. Analysis of Water in Food by near Infrared Spectroscopy. Food Chem. 2003, 82, 107–115. [Google Scholar] [CrossRef]
- Zhu, M.; Long, Y.; Chen, Y.; Huang, Y.; Tang, L.; Gan, B.; Yu, Q.; Xie, J. Fast Determination of Lipid and Protein Content in Green Coffee Beans from Different Origins Using NIR Spectroscopy and Chemometrics. J. Food Compos. Anal. 2021, 102, 104055. [Google Scholar] [CrossRef]
- Bolaños, J.D. El método NIR combinado con el análisis quimiométrico PLS-da para determinar la adulteración del aceite de oliva con aceite de girasol. Pensam. Actual 2016, 16, 163–172. [Google Scholar] [CrossRef]
- Prades, C.; García Olmo, J.; Romero Prieto, T.; García De Ceca, J.L.; López Luque, R. Aplicación de la tecnología de espectroscopia de infrarrojo cercano (NIRS) a la clasificación por calidad del corcho en plancha. Congr. For. Esp. 2013, VI, 2–13. [Google Scholar]
- Ariza-López, F.J.; Rodríguez Avi, J.; Alba Fernández, M.V. Control estricto de matrices de confusión por medio de distribuciones multinomiales. Geofocus Rev. Int. Cienc. Tecnol. Inf. Geográfica 2018, 21, 215–226. [Google Scholar] [CrossRef]
- Sánchez, J.M. Análisis de calidad cartográfica mediante el estudio de la Matriz de Confusión. Pensam. Matemático 2016, 6, 9–26. [Google Scholar]
- Protocols & Best Practices. Available online: https://sca.coffee/research/coffee-standards (accessed on 2 December 2022).
- Barnes, R.J.; Dhanoa, M.S.; Lister, S.J. Correction to the Description of Standard Normal Variate (SNV) and De-Trend (DT) Transformations in Practical Spectroscopy with Applications in Food and Beverage Analysis—2nd Edition. J. Infrared Spectrosc. 1993, 1, 185–186. [Google Scholar] [CrossRef]
- García-Olmo, J. Clasificación y Autentificación de Canales de Cerdo Ibérico Mediante Espectroscopía en el Infrarrojo Cercano (NIRS). Ph.D. Thesis, Universidad de Córdoba, Montería, Córdoba, 2009. [Google Scholar]
- Isaksson, T.; Næs, T. The Effect of Multiplicative Scatter Correction (MSC) and Linearity Improvement in NIR Spectroscopy. Appl. Spectrosc. 1988, 42, 1273–1284. [Google Scholar] [CrossRef]
- Osborne, B.G.; Fearn, T.; Hindle, P.H. Practical NIR Spectroscopy with Applications in Food and Beverage Analysis; Longman Scientific & Technical: Essex, UK, 1993; ISBN 978-0-470-22128-0. [Google Scholar]
- Santos, J.R.; Sarraguça, M.C.; Rangel, A.O.S.S.; Lopes, J.A. Evaluation of Green Coffee Beans Quality Using near Infrared Spectroscopy: A Quantitative Approach. Food Chem. 2012, 135, 1828–1835. [Google Scholar] [CrossRef]
- Khuwijitjaru, P.; Boonyapisomparn, K.; Huck, C. Near-Infrared Spectroscopy with Linear Discriminant Analysis for Green ‘Robusta’ Coffee Bean Sorting. Int. Food Res. J. 2020, 27, 287–294. [Google Scholar]
- Tolessa, K.; Rademaker, M.; De Baets, B.; Boeckx, P. Prediction of Specialty Coffee Cup Quality Based on near Infrared Spectra of Green Coffee Beans. Talanta 2016, 150, 367–374. [Google Scholar] [CrossRef]
- Ribeiro, B.B.; Mendonça, L.M.V.L.; Assis, G.A.; Mendonça, J.M.A.; Malta, M.R.; Montanari, F.F. Evaluation of the Chemical and Sensory Characteristics of Coffea canephora Pierre and Coffea arabica L. Blends. Coffee Sci. 2014, 9, 178–186. [Google Scholar]
- Baqueta, M.R.; Coqueiro, A.; Valderrama, P. Brazilian Coffee Blends: A Simple and Fast Method by Near-Infrared Spectroscopy for the Determination of the Sensory Attributes Elicited in Professional Coffee Cupping. J. Food Sci. 2019, 84, 1247–1255. [Google Scholar] [CrossRef]
- Hagos, M.; Redi-Abshiro, M.; Chandravanshi, B.S.; Ele, E.; Mohammed, A.M.; Mamo, H. Correlation between Caffeine Contents of Green Coffee Beans and Altitudes of the Coffee Plants Grown in Southwest Ethiopia. Bull. Chem. Soc. Ethiop. 2018, 32, 13–25. [Google Scholar] [CrossRef]
- de Souza Gois Barbosa, M.; dos Santos Scholz, M.B.; Kitzberger, C.S.G.; de Toledo Benassi, M. Correlation between the Composition of Green Arabica Coffee Beans and the Sensory Quality of Coffee Brews. Food Chem. 2019, 292, 275–280. [Google Scholar] [CrossRef] [PubMed]
- Knopp, S.; Bytof, G.; Selmar, D. Influence of Processing on the Content of Sugars in Green Arabica Coffee Beans. Eur. Food Res. Technol. 2006, 223, 195–201. [Google Scholar] [CrossRef]
- Barge, M.S.; Garner, W.Y.; Ussary, J.P. Good Laboratory Practice Standards: Applications for Field and Laboratory Studies; American Chemical Society: Washington, DC, USA, 1992; ISBN 0-8412-2192-8. [Google Scholar]
- Landis, J.R.; Koch, G.G. The measurement of observer agreement for categorical data. Biometrics 1977, 33, 159–174. [Google Scholar] [CrossRef] [PubMed]
- Cohen, J. A coefficient of agreement for nominal scales. Educ. Psychol. Meas. 1960, 20, 37–46. [Google Scholar] [CrossRef]
- Barker, M.; Rayens, W. Partial least squares for discrimination. J. Chemom. 2003, 17, 166–173. [Google Scholar] [CrossRef]
- Ballabio, D.; Consonni, V. Classification tools in chemistry. Part 1: Linear models. PLS-DA. Anal. Methods 2013, 5, 3790–3798. [Google Scholar] [CrossRef]
- Cortes, C.; Vapnik, V. Support-vector networks. Mach. Learn. 1995, 20, 273–297. [Google Scholar] [CrossRef]
- Wold, S.; Sjöström, M.; Eriksson, L. PLS-regression: A basic tool of chemometrics. Chemom. Intell. Lab. Syst. 2001, 58, 109–130. [Google Scholar] [CrossRef]
- Martins, R.N.; de Carvalho Pinto, F.D.A.; de Queiroz, D.M.; de Paula Corrêdo, L.; Cardoso, W.J.; Portes, M.F.; Valente, D.S.M.; Teófilo, R.F. Prediction of coffee sensory attributes using near-infrared spectroscopy. Coffee Sci. 2025, 20, e202369. [Google Scholar] [CrossRef]
- Bahamón-Monje, A.F.; Morales-Angulo, E.M.; Collazos-Escobar, G.A.; Gutiérrez-Guzmán, N. Large dataset of Fourier-transform near-infrared (FT-NIR) spectroscopy of green and roasted specialty coffee: Preprocessed spectra and sensory scores for machine learning-based quality monitoring. Data Brief 2025, 60, 111609. [Google Scholar] [CrossRef]
- Santos-Rivera, M.; Viswanathan, L.; Sheibani, F. Enhancing coffee quality and traceability: Chemometric modeling for post-harvest processing classification using near-infrared spectroscopy. Spectrosc. J. 2025, 3, 20. [Google Scholar] [CrossRef]
- Echeverri-Giraldo, L.F.; Pinzón Fandiño, M.I.; González Cadavid, L.M.; Rodriguez Marín, N.D.; Moreno Ríos, D.A.; Osorio Pérez, V. Determination of Lipids and Fatty Acids in Green Coffee Beans (Coffea arabica L.) Harvested in Different Agroclimatic Zones of the Department of Quindío, Colombia. Agronomy 2023, 13, 2560. [Google Scholar] [CrossRef]






| Matrix | Features: | ||
|---|---|---|---|
| With sensory defects—WSD | Overfermented: Pulp, vinegar, fermented, musty, and onion | ||
| Rough: Immature, pungent and rough, and cereal-like | |||
| Earthy: Earthy, mold and aged | |||
| Contaminated: Phenol, smoke, contaminated and chemical | |||
| No sensory defects—NSD | Profile 1 | Extraordinary | >84 points |
| Profile 2 | Special | 82–84 points | |
| Profile 3 | Standard | 79–82 points | |
| Coffee Matrix | Model Type | Class/Group | Number of Samples |
|---|---|---|---|
| Dry parchment | WSD and NSD classification | WSD * | 554 |
| NSD * | 1500 | ||
| NSD quality classification | Profile 1 and 2 | 1725 | |
| Profile 3 | 727 | ||
| Green | WSD and NSD classification | WSD | 829 |
| NSD | 3005 | ||
| NSD quality classification | Profile 1 and 2 | 901 | |
| Profile 3 | 447 |
| Chemical Compound | Relative Prediction Error * |
|---|---|
| Total lipids | 0.003 |
| Caffeine | 0.015 |
| Trigonellin | 0.027 |
| Sucrose | 0.007 |
| Total chlorogenic acids (CQA) | 0.007 |
| Palmitic fatty acid | 0.007 |
| Linoleic fatty acid | 0.005 |
| Oleic fatty acid | 0.001 |
| Stearic fatty acid | 0.008 |
| Arachidic fatty acid | 0.002 |
| Coffee Matrix | Model Type | Mathematical Treatment * | Pls2 (%) | Correlation Coefficient (R) (%) | Maximum Distance (%) | Mahalanobis Distance (GH) (%) | Maximum Spectral Residual (%) | RMS X Residual (%) |
|---|---|---|---|---|---|---|---|---|
| DPC | WSD vs. NSD classification | 3, 3, 3, 1 | 0 | 53.1 | 39.4 | 56.4 | 56.9 | 93.5 |
| Quality classification (Group 1 and 2) | 4, 3, 3, 1 | 5.7 | 58.9 | 41.9 | 59.2 | 57 | 91.5 | |
| Green coffee | WSD vs. NSD classification | 1, 4, 4, 1 | 45.8 | 68.8 | 44.4 | 51.9 | 70.1 | 82.4 |
| Quality classification (Group 1 and 2) | 3, 4, 4, 1 | 45.5 | 62.9 | 47.3 | 56.8 | 69.4 | 94.1 |
| Chemical Compound | Class | Minimum (%) | Maximum (%) | Mean (%) | Standard Deviation | p Value |
|---|---|---|---|---|---|---|
| Caffeine | NSD | 0.83 | 1.35 | 1.10 B | 0.08 | 0.015 |
| WSD | 0.65 | 1.54 | 1.09 A | 0.11 | ||
| Trigonellin | NSD | 0.66 | 0.95 | 0.80 B | 0.05 | 0.001 |
| WSD | 0.65 | 1.02 | 0.81 A | 0.06 | ||
| Sucrose | NSD | 6.56 | 8.70 | 7.55 B | 0.39 | 0.0001 |
| WSD | 6.10 | 8.52 | 7.39 A | 0.43 | ||
| Total chlorogenic acids | NSD | 2.84 | 4.36 | 3.52 B | 0.37 | 0.0001 |
| WSD | 2.53 | 4.51 | 3.45 A | 0.36 | ||
| Total lipids | NSD | 9.27 | 14.11 | 11.78 B | 0.77 | 0.0001 |
| WSD | 8.89 | 15.43 | 12.00 A | 1.30 | ||
| Arachidic fatty acid | NSD | 1.90 | 5.46 | 3.64 A | 0.69 | 0.0001 |
| WSD | 1.21 | 5.24 | 4.04 B | 0.74 | ||
| Oleic fatty acid | NSD | 8.42 | 10.88 | 9.64 B | 0.41 | 0.0001 |
| WSD | 7.84 | 10.69 | 9.26 A | 0.49 | ||
| Stearic fatty acid | NSD | 6.28 | 9.98 | 8.03 A | 0.72 | 0.0001 |
| WSD | 5.99 | 10.61 | 8.70 B | 0.90 | ||
| Palmitic fatty acid | NSD | 40.41 | 46.83 | 43.42 B | 1.20 | 0.0001 |
| WSD | 38.54 | 48.38 | 42.99 A | 1.76 | ||
| Linoleic fatty acid | NSD | 28.96 | 39.91 | 35.99 B | 1.27 | 0.0001 |
| WSD | 25.62 | 40.19 | 35.23 A | 2.22 |
| Compound | WSD | NSD | 10% Decimal Average (Difference) | Criterion |
|---|---|---|---|---|
| Total lipids (%) | 12.00 | 11.78 | 1.19 | 0.22 |
| Caffeine (%) | 1.09 | 1.10 | 0.11 | 0.01 |
| Trigonellin (%) | 0.81 | 0.80 | 0.08 | 0.01 |
| Sucrose (%) | 7.39 | 7.55 | 0.75 | 0.16 |
| Total chlorogenic acids (%) | 3.45 | 3.52 | 0.35 | 0.08 |
| Arachidic fatty acid (%) | 4.04 | 3.64 | 0.38 | 0.40 |
| Oleic fatty acid (%) | 9.26 | 9.64 | 0.94 | 0.38 |
| Stearic fatty acid (%) | 8.70 | 8.03 | 0.84 | 0.67 |
| Palmitic fatty acid (%) | 42.99 | 43.42 | 4.32 | 0.43 |
| Linoleic fatty acid (%) | 35.23 | 35.99 | 3.56 | 0.76 |
| Chemical Compound | Quality Profile | Minimum (%) | Maximum (%) | Mean (%) | Standard Deviation |
|---|---|---|---|---|---|
| Total lipids | 1 | 9.27 | 14.11 | 11.74 A | 0.80 |
| 2 | 9.50 | 14.00 | 11.67 A | 0.73 | |
| 3 | 9.65 | 14.05 | 12.04 B | 0.75 | |
| Caffeine | 1 | 0.93 | 1.31 | 1.11 A | 0.08 |
| 2 | 0.83 | 1.31 | 1.11 A | 0.08 | |
| 3 | 0.88 | 1.35 | 1.08 A | 0.09 | |
| Trigonellin | 1 | 0.66 | 0.92 | 0.79 A | 0.05 |
| 2 | 0.66 | 0.94 | 0.80 A | 0.05 | |
| 3 | 0.70 | 0.95 | 0.81 A | 0.05 | |
| Sucrose | 1 | 6.60 | 8.63 | 7.45 A | 0.40 |
| 2 | 6.76 | 8.70 | 7.56 B | 0.39 | |
| 3 | 6.56 | 8.54 | 7.58 B | 0.38 | |
| Total chlorogenic acids | 1 | 2.87 | 4.18 | 3.39 A | 0.33 |
| 2 | 2.87 | 4.22 | 3.50 B | 0.36 | |
| 3 | 2.84 | 4.36 | 3.67 C | 0.39 | |
| Arachidic fatty acid | 1 | 1.90 | 5.46 | 3.78 C | 0.61 |
| 2 | 2.02 | 5.23 | 3.64 B | 0.67 | |
| 3 | 1.91 | 5.08 | 3.52 A | 0.77 | |
| Oleic fatty acid | 1 | 8.83 | 10.84 | 9.74 A | 0.36 |
| 2 | 8.48 | 10.88 | 9.68 A | 0.42 | |
| 3 | 8.42 | 10.61 | 9.46 B | 0.38 | |
| Stearic fatty acid | 1 | 6.42 | 9.98 | 8.16 B | 0.66 |
| 2 | 6.28 | 9.57 | 8.00 B | 0.68 | |
| 3 | 6.37 | 9.77 | 7.99 A | 0.83 | |
| Palmitic fatty acid | 1 | 40.73 | 46.32 | 43.09 A | 1.07 |
| 2 | 40.41 | 46.83 | 43.43 B | 1.20 | |
| 3 | 40.57 | 46.27 | 43.63 C | 1.23 | |
| Linoleic fatty acid | 1 | 28.96 | 39.34 | 36.08 A | 1.36 |
| 2 | 30.56 | 39.63 | 35.96 A | 1.23 | |
| 3 | 30.67 | 39.91 | 35.99 A | 1.30 |
| Statistical | Group | Minimum (%) | Maximum (%) | Mean (%) | Standard Deviation (n − 1) |
|---|---|---|---|---|---|
| Total lipids | a | 9.67 | 15.43 | 12.45 B | 1.10 |
| b | 9.30 | 15.09 | 12.09 AB | 1.29 | |
| c | 8.96 | 15.26 | 11.89 A | 1.32 | |
| d | 8.89 | 14.33 | 11.89 A | 1.30 | |
| Caffeine | a | 0.78 | 1.54 | 1.12 A | 0.10 |
| b | 0.65 | 1.49 | 1.11 A | 0.18 | |
| c | 0.69 | 1.35 | 1.09 A | 0.10 | |
| d | 0.70 | 1.47 | 1.06 A | 0.12 | |
| Trigonellin | a | 0.67 | 0.98 | 0.81 A | 0.07 |
| b | 0.69 | 0.97 | 0.82 A | 0.07 | |
| c | 0.65 | 0.98 | 0.81 A | 0.06 | |
| d | 0.74 | 1.02 | 0.83 A | 0.05 | |
| Sucrose | a | 6.58 | 8.37 | 7.31 A | 0.36 |
| b | 6.21 | 8.37 | 7.40 A | 0.52 | |
| c | 6.10 | 8.52 | 7.42 A | 0.42 | |
| d | 6.48 | 8.41 | 7.33 A | 0.48 | |
| Total chlorogenic acids | a | 2.53 | 4.27 | 3.39 A | 0.33 |
| b | 2.99 | 4.21 | 3.47 A | 0.32 | |
| c | 2.90 | 4.51 | 3.46 A | 0.37 | |
| d | 2.98 | 4.34 | 3.43 A | 0.35 | |
| Arachidic | a | 1.21 | 5.13 | 4.06 A | 0.74 |
| b | 2.74 | 5.16 | 4.22 A | 0.63 | |
| c | 2.10 | 5.24 | 4.00 A | 0.76 | |
| d | 1.90 | 5.12 | 4.05 A | 0.75 | |
| Oleic fatty acid | a | 7.84 | 9.89 | 9.08 A | 0.44 |
| b | 8.30 | 10.47 | 9.23 AB | 0.50 | |
| c | 8.05 | 10.69 | 9.29 B | 0.49 | |
| d | 8.56 | 10.40 | 9.39 B | 0.48 | |
| Stearic fatty acid | a | 5.99 | 10.40 | 8.67 A | 0.86 |
| b | 6.78 | 10.36 | 8.86 A | 0.86 | |
| c | 6.55 | 10.61 | 8.65 A | 0.90 | |
| d | 6.38 | 10.50 | 8.85 A | 0.95 | |
| Palmitic fatty acid | a | 40.10 | 48.04 | 43.12 A | 1.96 |
| b | 40.34 | 47.47 | 42.71 A | 1.62 | |
| c | 39.45 | 48.18 | 43.07 A | 1.77 | |
| d | 38.54 | 47.49 | 42.66 A | 1.52 | |
| Linoleic fatty acid | a | 26.65 | 39.75 | 35.39 A | 2.24 |
| b | 28.98 | 39.07 | 34.98 A | 2.21 | |
| c | 25.62 | 40.19 | 35.18 A | 2.24 | |
| d | 29.71 | 38.66 | 35.52 A | 2.04 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Gómez, C.R.; Ortiz, A.; Osorio Pérez, V. Near-Infrared Spectroscopy-Based Discriminant Analysis for the Classification of Coffee Quality in Dry Parchment and Green Coffee. Molecules 2026, 31, 1395. https://doi.org/10.3390/molecules31091395
Gómez CR, Ortiz A, Osorio Pérez V. Near-Infrared Spectroscopy-Based Discriminant Analysis for the Classification of Coffee Quality in Dry Parchment and Green Coffee. Molecules. 2026; 31(9):1395. https://doi.org/10.3390/molecules31091395
Chicago/Turabian StyleGómez, Claudia Rocio, Aristófeles Ortiz, and Valentina Osorio Pérez. 2026. "Near-Infrared Spectroscopy-Based Discriminant Analysis for the Classification of Coffee Quality in Dry Parchment and Green Coffee" Molecules 31, no. 9: 1395. https://doi.org/10.3390/molecules31091395
APA StyleGómez, C. R., Ortiz, A., & Osorio Pérez, V. (2026). Near-Infrared Spectroscopy-Based Discriminant Analysis for the Classification of Coffee Quality in Dry Parchment and Green Coffee. Molecules, 31(9), 1395. https://doi.org/10.3390/molecules31091395

