Cheese quality comes down to a few numbers: moisture, protein, fat and salt. A shift of a percentage point or two changes texture, flavour, yield and shelf life, and can decide whether a cheese meets its legal or PDO specification. Every dairy checks these numbers, yet in most plants the way they are checked has hardly changed in decades. The usual routine goes like this. Someone cuts a piece out of a wheel or block, wraps and labels it, and walks it to the lab. There it waits for the oven or the benchtop instrument, and by the time the result comes back, often hours later, the batch has already moved on to the brine or the warehouse. If something was off, it is usually too late to correct.

Portable NIR spectroscopy changes this. With a handheld NIRStudio device, the operator scans the cheese right on the production floor, without cutting it and without leaving the line, and gets moisture, dry matter, protein, fat and salt in seconds. In this article we explain how it works, what it measures, and what it means for quality assurance and quality control in a dairy.

Parmesan cheese manufacturing

From the Lab to the Production Floor

For years, NIR in dairy meant a benchtop analyzer. These are accurate instruments, but they live in the lab and expect a prepared sample. In practice that means cutting a piece out of the product, often grinding or homogenizing it, and filling a sample cup. The wheel you cut from can no longer be sold whole, the person taking the sample has left the line to do it, and the result describes a few grams of cheese taken at one moment in the day. A handheld device turns this around. The operator holds the NIRStudio device against the surface of the cheese, or against curd during processing, and scans it. Nothing is cut out, nothing is carried anywhere, and the product goes back on the line exactly as it was. Because each scan takes seconds, it becomes realistic to scan several points on the same block, several blocks from the same batch, and the same batch at several stages of production, instead of asking one sample to speak for everything.

For QA and QC teams, this is where the real difference lies. Quality control moves from occasional spot checks towards something much closer to continuous monitoring, because checking is now quick enough to happen during the shift rather than after it. Results appear on a phone and are stored in the cloud, so the quality manager sees the same data as the operator, and every scan carries a timestamp for audits and traceability. Quality assurance gains as well: when a parameter starts to drift, there is a record of when it began and on which line, rather than a single lab result that arrives too late to explain much.

What the Device Actually Sees

The NIRStudio device measures how a sample absorbs light in the near-infrared region, between 950 and 1650 nm. In this region the water, proteins and fats in cheese absorb light through overtone and combination vibrations of their O–H, N–H and C–H bonds. The resulting spectrum works like a chemical fingerprint of the sample, and it is captured without reagents and without damaging the product.

The catch is that NIR spectra are not easy to read. Absorption bands are broad and overlap, so you cannot look at a single peak and read off the fat content. This is where chemometrics and machine learning come in. NIRStudio brings the device, the app and the calibration models together in one solution, so the raw spectrum is turned into numbers a cheesemaker can act on.

To put the speed into perspective, here is what the same parameters take with classical wet chemistry. Each official method covers one parameter and needs trained staff, reagents and dedicated equipment:

ParameterTypical reference methodTime to resultWith NIRStudio
Moisture / dry matterOven drying at 102 °C to constant weight (ISO 5534)4–24 hSeconds
FatVan Gulik butyrometer with sulfuric acid (ISO 3433) or gravimetric extraction1–3 hSeconds
ProteinKjeldahl digestion and distillation (total nitrogen × 6.38)2–4 hSeconds
SaltChloride titration (ISO 5943)~1 hSeconds

A single NIR scan gives all of these at once. That does not make the laboratory obsolete. Reference methods are still what NIR models are trained on and periodically checked against. What changes is the division of work: the lab provides the reference values, and the handheld device does the day-to-day measuring at a scale the lab could never keep up with.

Building Models That Reflect Real Cheese

A calibration model is only as good as the samples behind it. In our cheese work, the NIRStudio team scanned samples from dairy producers, cooperatives and retail shelves. They covered hard and extra-hard cheeses such as Grana, pasta filata cheeses such as mozzarella, semi-hard cheeses such as Emmental, soft and fresh cheeses such as ricotta, fat-rich products such as butter, and processed cheese slices. Each sample was scanned several times at different points on its surface and the spectra were averaged, because cheese is far from uniform: the rind differs from the core, and eyes and fat are unevenly distributed.

We also scanned pasta filata curd during processing, both hot and after cooling. This is a good illustration of why portability matters. A benchtop instrument in the lab will never see hot curd on the stretching line, but a handheld device can, which means composition can be checked while there is still time to correct the process.

The ranges involved are wide, with moisture from below 30% in hard cheeses to above 80% in fresh products, and protein from about 4% to almost 38%. Every producer’s recipes, milk and processes are different, though, so the models used in a plant are built and validated on that producer’s own cheeses and reference results.

Why These Four Numbers Matter

Moisture is the parameter cheesemakers tend to watch most closely. It drives texture, ripening speed, microbial stability and shelf life, and its counterpart, dry matter (100 minus moisture), drives yield. Every point of water kept within specification is cheese you can sell, while every point over the limit is a compliance problem. Many standards and PDO specifications set limits on moisture or dry matter for exactly this reason.

Protein, and casein in particular, builds the structural network of cheese. It governs how a mozzarella stretches and melts and how firm a hard cheese becomes. It also reflects milk quality and standardization, and it is a mandatory value on the nutrition label.

Fat shapes flavour and mouthfeel and is one of the most valuable components of milk. Expressed on a dry-matter basis (fat in dry matter, or FDM), it is the basis of legal classifications such as the Codex Alimentarius categories, from skim to high-fat cheese, and of many PDO specifications. NIRStudio models predict both fat and protein as-is and on a dry-matter basis.

Cheesemaker holding the NIRStudio handheld NIR device sideways against the cut face of a Parmesan wheel in a ripening cellar

Salt controls water activity, steers microbial and enzymatic activity during ripening, and influences texture and taste. It is also under growing pressure from regulators and consumers to come down. Uneven salting in brine or during dry-salting is a common cause of defects and of variation between batches, which is why being able to check it quickly on the floor is so useful.

The Science Behind the Predictions

Moisture, fat and protein all leave direct traces in the spectrum. In the range covered by the NIRStudio device (950–1650 nm), water shows strong O–H absorptions around 970 and 1450 nm, fat contributes C–H bands around 1200 nm and at the upper end of the range, and protein adds N–H features around 1500 nm. Multivariate models combine these overlapping signals into quantitative predictions. A 2022 review of 71 studies in the Journal of Dairy Science reports average validation R² of 86–90% for moisture, fat and protein in cheese, and confirms that small portable instruments are viable alternatives to benchtop analyzers [1]. In another study, a handheld spectrometer with a spectral range comparable to the NIRStudio device (908–1676 nm) was used directly on the surface of intact cheese blocks during production, predicting fat and dry matter with errors below 1%, comparable with laboratory instruments [2].

Salt is the interesting exception. Sodium chloride has no absorption band of its own in the NIR region, so it cannot be measured directly. It can still be predicted through an indirect effect: dissolved Na⁺ and Cl⁻ ions disrupt the hydrogen-bond network of water, slightly shifting and reshaping its O–H absorption bands. This effect is well documented in aqueous solutions, where NaCl has been quantified from the NIR water bands alone [3, 4]. In cheese, where salt is dissolved in the moisture phase, the same mechanism allows NIR to estimate salt content. Early work on processed cheese obtained R = 0.90 for inorganic salts [5], and reviews note that inorganic constituents become predictable when they alter the water spectrum [6]. As you would expect from an indirect signal, salt predictions are usually somewhat less accurate than those for the major components (an average R² of 79% across published studies [1]), so robust calibrations, well-designed sampling and careful control of temperature effects on the water bands [3] matter most for this parameter.

One point comes up again and again in the literature: accuracy depends less on the instrument than on the calibration. Representative samples, appropriate preprocessing and fully independent validation are what separate reliable models from over-optimistic ones [1]. That is why NIRStudio builds its models around the specific application and the customer’s own products rather than relying on a generic calibration.

What Changes for a Dairy

The most immediate effect of moving composition analysis from the lab to the floor is on process control. Curd can be checked during stretching, pressing or brining, while cooking temperature, draining time or salting can still be adjusted, instead of a deviation only showing up in the finished product. Yield is the next place it shows. Producing closer to the legal moisture limit without going over it increases the amount of sellable cheese from the same milk. A fraction of a percentage point sounds small, but multiplied by a year’s volume it adds up quickly, and running that close to the limit is only safe when you can measure often.

Compliance becomes easier too. Fat in dry matter, moisture and salt can be verified batch by batch against PDO specifications, legal standards and nutrition labels, with every scan recorded digitally for audits. The same device can also go to goods-in, where grated cheese, pizza cheese, butter and other dairy ingredients can be checked on arrival, catching non-conforming lots or possible adulteration before they enter production.

And because each measurement costs so little, with no reagents, no sample shipping and no specialist needed every time, many more samples get checked. The models live in the cloud, so they can be updated as recipes, seasons and milk supply change and then rolled out to every device across sites, while customers keep ownership of their data. So NIRStudio Team is welcoming you to start the project together.

Combining the NIRStudio device, its app and dashboard, and calibration models built around each customer’s products, we will develop the solution that works best for your production flow. If you would like to explore how NIRStudio can be tailored to your cheeses and integrated into your QA and QC workflows, visit nirstudio.com or contact us at Contact Us

References

  1. Bittante G., Patel N., Cecchinato A. Invited review: A comprehensive review of visible and near-infrared spectroscopy for predicting the chemical composition of cheese. Journal of Dairy Science, 2022. Link
  1. Eskildsen C.E., Sanden K.W., Wubshet S.G., Andersen P.V., Øyaas J., Wold J.P. Estimating dry matter and fat content in blocks of Swiss cheese during production using on-line near infrared spectroscopy. Journal of Near Infrared Spectroscopy, 2019, 27(4), 293–301. doi:10.1177/0967033519855436. Link
  2. Lin J., Brown C.W. Near-IR spectroscopic determination of NaCl in aqueous solution. Applied Spectroscopy, 1992, 46, 1809–1815. doi:10.1366/0003702924123539. Link
  3. Uchida N., Yoshimura N., Takayanagi M. Variation of the near-infrared spectrum of water from dissolved salts. Journal of Solution Chemistry, 2015, 44, 2167–2178. Link
  4. Blazquez C., Downey G., O’Donnell C., O’Callaghan D., Howard V. Prediction of moisture, fat and inorganic salts in processed cheese by near infrared reflectance spectroscopy and multivariate data analysis. Journal of Near Infrared Spectroscopy, 2004, 12, 149–157. doi:10.1255/jnirs.420. Link
  5. De Marchi M. et al. Advanced technologies: novel applications of infrared spectroscopy in the dairy industry (review), 2019. Link

Tell us what you need to check

NIRStudio runs validated models for cheese and other dairy products today, and builds custom ones for everything else you handle. Every project starts with a conversation about your samples and what consistent quality needs to look like on your line.