Blog

NIR Spectroscopy: The Key to Digitalising Quality Control and Processes in the Food Industry

Autor/a: Sonia Nieto. Researcher (PhD)
Autor/a: Idoia Olabarrieta. Senior researcher (PhD)
06.02.2026
Lines: Digitalisation, Food sustainability and eco-efficiency

Content index

Near-Infrared Spectroscopy (NIR) has become, in recent years, a strategic technology for the rapid, non-destructive and efficient analysis of physicochemical properties in foods and raw materials. Its ability to deliver real-time information without damaging the sample has positioned it as a core tool for advancing digitalisation, automated quality control and sustainability in the food sector—at a time when companies are increasingly seeking more sustainable processes and data-driven decision-making.

At AZTI, we have been researching, validating and implementing NIR-based applications for many years, with a clear objective: to provide the agri-food industry with digital tools that improve process control, reduce losses and increase the reliability of the final product, helping companies move towards higher standards of food quality and safety.

What is NIR spectroscopy and why is it so relevant?

NIR spectroscopy (Near-Infrared Spectroscopy) is a technique that uses invisible light just beyond the red region of the visible spectrum to analyse what is inside a material or food product—without touching it or causing any damage. When NIR light interacts with a product, specific wavelengths are absorbed by functional groups present in molecules such as water, fats, sugars or proteins. This absorption generates a characteristic spectrum, a kind of unique “fingerprint” for each matrix, reflecting its internal composition.

Although NIR spectra contain a large amount of valuable information, they cannot be interpreted directly. To convert this complex signal into meaningful parameters related to food quality or safety, it is essential to apply chemometrics—the discipline that combines advanced statistics and mathematical modelling (including machine learning techniques) to extract useful information. Thanks to chemometrics, NIR spectroscopy becomes a predictive tool, capable of delivering fast and reliable data for industrial applications.

What are the advantages of NIR spectroscopy?

NIR spectroscopy stands out for being fast, non-destructive, clean and cost-effective. Unlike traditional analytical methods, it does not require reagents, does not generate hazardous waste, and provides real-time results. This sustainable and efficient nature has driven its adoption and integration into production lines where large numbers of batches are processed daily or where continuous quality monitoring is required.

These advantages translate into direct benefits for the food industry:

Overall, NIR spectroscopy is a key technology for building a more digital, efficient and sustainable food industry, capable of making real-time, data-driven decisions.

The key role of chemometrics and data analysis

Interpreting NIR spectra is one of the main challenges of this technique, as the signal contains complex, overlapping and multidimensional information. Unlike analytical techniques where each peak is directly associated with a specific compound, NIR spectra reflect the superposition of multiple molecular vibrations and overtones, preventing direct interpretation and requiring advanced mathematical processing to extract useful chemical information.

For this reason, chemometrics lies at the heart of the technology, providing the statistical methods and algorithms needed to transform raw spectra into useful, reliable and directly applicable information for the food industry.

Its key functions include:

  1. Spectral pre-processing
    Chemometrics first addresses signal pre-processing, applying corrections to reduce noise, scattering and instrumental variability. Techniques such as derivatives, scatter correction or smoothing result in cleaner, more comparable spectra, which are essential for any subsequent analysis.

  2. Pattern recognition
    Using techniques such as Principal Component Analysis (PCA), it is possible to identify similarities between samples, detect anomalies and visualise trends that would otherwise go unnoticed. This type of analysis helps to classify products, identify adulteration or detect batches with abnormal behaviour.

  3. Quantitative and qualitative prediction models
    The next step involves building quantitative and qualitative models. Algorithms such as PLSR (Partial Least Squares Regression), PLS-DA (Partial Least Squares Discriminant Analysis) and other machine learning approaches link spectral information to physicochemical parameters obtained through reference methods (moisture, fat, salt content, ripeness, etc.). As a result, spectra are transformed from simple “curves” into real-time predictions, eliminating the need for routine laboratory analyses.

  4. Management of large data volumes
    Chemometrics also supports the management and interpretation of large datasets. A single NIR spectrum may be correlated with hundreds of variables per sample, requiring statistical tools capable of handling this complexity, structuring the data and generating robust, reliable models.

Together, the integrated use of NIR spectroscopy and chemometrics enables the food industry to move towards more efficient, reproducible and data-driven processes, reducing uncertainty and improving continuous, sustainable quality control.

Applications and lines of work developed at AZTI

Through various research projects and in close collaboration with industry, AZTI has developed multiple applications of this technology for quality and safety control in the food industry, including:

The combination of NIR spectroscopy and chemometrics represents a powerful pathway towards Food Industry 4.0, where data enables faster, more accurate and more sustainable decision-making. At AZTI, we continue to develop advanced sensing solutions to help companies improve food quality and safety across all stages of production.

Research team

Sonia Nieto

Sonia Nieto
Researcher (PhD)

Contact

Related actuality

Blog 06.02.2026

NIR Spectroscopy: The Key to Digitalising Quality Control and Processes in the Food Industry

Read more
Blog 30.01.2026

The Diversity Conundrum: Why Do Oceans Shelter Fewer Species Than Land?

Read more
Blog 09.12.2025

“We fishermen are the ones who earn the least”

Read more
Blog 19.11.2025

Ethics in Artificial Intelligence for Food and Health: From “Can Do” To “Should Do”

Read more
Cookies