NIR in the Dairy Plant: Fat, Protein and Lactose

NIR spectroscopy in dairy: measure fat, protein and moisture in milk, cheese and powders, and learn how to keep calibrations stable as products change.

The short answerDairy plants use NIR from the tanker bay through standardization, spray drying and powder QC to read fat, protein, lactose and moisture in real time. Calibrated raw milk models reach an SEP of 0.05 to 0.10% for fat against Gerber or Rose-Gottlieb.

Key numbers

0.05-0.10%fat SEP, raw milk
Dairy FAQ
0.05-0.08%protein SEP
Dairy FAQ
0.10-0.15%total solids SEP
Dairy FAQ
3.5-4.5%WPC powder moisture window
Dairy page

Illustrative spectrum for teaching, not measured data.

1100 nm18002500 nm

Scan the sample to light up the bands, then pick a constituent.

Quick check

Matching lesson: L14

Liquid Dairy: From the Tanker Bay to Pasteurized Product

Dairy processing is a continuous standardization problem. The fat content of incoming milk varies by farm, season, and breed — and every downstream product is made from milk split and blended back to a precise fat target. NIR at the tanker intake gives the full picture before unloading. At the standardizer, it verifies the fat target was actually hit.

Powder Production: Evaporator to Finished Dairy Powder

Spray drying amplifies every quality deviation from the liquid stage. Moisture going into the dryer directly affects both the energy cost and the final powder moisture, which must land in a tight window — typically 3.5–4.5% for WPC, under 5% for NFDM. NIR before the dryer lets operators adjust evaporator density in real time. At powder QC, NIR confirms protein grade and moisture before release.

Dairy NIR in Practice — Eight Specific Deployment Points

NIR isn't one technology deployed the same way everywhere in a dairy plant. The measurement mode, calibration requirements, and decision it supports differ at each stage. Here's how it actually works at each point.

Tanker Bay Testing: Know What You're Paying For Before It Unloads

Raw milk varies by farm, season, and breed — sometimes within the same collection route. Fat content in spring milk from Holstein cows can run 3.2–3.6% while late-lactation autumn milk from the same herd reaches 4.2%. If you're standardizing to 3.5% fat and the incoming tanker is at 3.1%, every litre of cream you add to compensate costs margin. NIR at the intake bay gives you the full picture — fat, protein, lactose, and total solids — before a single litre is unloaded. It also flags potential adulteration: added water suppresses solids-not-fat (SNF) in a pattern NIR detects rapidly as a screening tool; confirmation of adulteration uses cryoscopy as the regulatory reference method.

Hitting Fat Targets at the Standardization Line — Not Guessing After Separation

Standardization is where raw milk becomes product. You split it — cream goes one way, skim the other — then blend back to a legal fat target: 3.5% for whole milk in most markets, 1.5% for semi-skim. Getting this wrong means rework or a mislabeled product. NIR inline or at-line on the standardized stream closes the loop on what the separator and blending valve actually delivered, not what the recipe assumed. In plants running continuous standardizers with closed-loop control, NIR is what drives the valve — not the lab.

Cheesemaking: Moisture at the Vat Determines Your Yield

Cheese yield is directly tied to moisture retention in the curd. A 1% swing in final cheese moisture on a 10-tonne batch is hundreds of kilograms of product that either exist or don't. Traditional moisture testing on cheese requires oven drying — an hour minimum, useless for in-process decisions. NIR on curd at the vat and on pressed cheese gives the cheesemaker a result while the press is still loaded. Fat in dry matter (FDM) is the grade specification buyers use, and salt content determines both flavor and regulatory compliance. A single NIR scan returns all three after pressing without destroying the sample.

Butter Production: Moisture Control Before You Hit the Legal Limit

Legal maximum moisture in butter is 16% in most markets — the Codex Alimentarius and EU standard. That ceiling is closer than it sounds — overworked butter or excess water addition during working can push moisture toward 15.5% before operators notice. The traditional check is gravimetric drying, which takes two hours and reports history, not the current churn. NIR during the working phase gives moisture readings in real time, while there's still time to adjust the working speed or water-addition rate. Salt distribution in butter is also measurable by NIR and matters for quality consistency across different production batches.

WPC Grading Before Spray Drying — Not After You've Already Run It Through

WPC 34 and WPC 80 are different products with different customers, different prices, and different label requirements. The distinction is made by the ultrafiltration process before spray drying — but the only way to confirm you're on track for an 80% protein product is to measure the concentrate going into the dryer. NIR on liquid concentrate before spray drying gives protein and lactose content in under a minute. Catching a borderline concentrate before the dryer runs means you can divert to WPC 34 instead of producing an off-spec WPC 80 batch and downgrading the whole lot.

NFDM and Skim Milk Powder: Moisture Release Testing at Scale

Non-fat dry milk is traded globally and blended at multiple points in the supply chain. The specification that matters most at packaging is moisture: CODEX and most buyer specs require maximum 4–5% moisture, and caking in storage begins above that threshold. Traditional oven drying on NFDM takes 2–5 hours and tests history — the batch has already been packed by the time you have the number. NIR on finished powder before packing gives a moisture result in 30 seconds, allowing every bag to be cleared rather than sampling one in fifty. In a plant running two 5-tonne batches per shift, that difference in test frequency is material.

MPC for Infant Formula and Clinical Nutrition: Tolerances That Don't Move

Milk protein concentrate going into infant formula operates under tighter tolerances than most dairy products. MPC 70 means 70% protein on a dry basis — and the buyer's specification window might be ±0.5%. A calibration drift of 0.8% on your NIR means you've been shipping borderline product for a week before the lab check catches it. This is one application where NIR replaces convenience rather than replaces accuracy — the lab Kjeldahl still runs as the reference, but NIR screens every batch so only borderline results go to the full reference analysis. The calibration validation regime here is also more rigorous than a commodity cheese plant.

Lactose Powder: A Narrow Moisture Window With No Margin for Error

Food-grade alpha-lactose monohydrate has a moisture window of roughly 4.5–5.5%. Too dry and it becomes electrostatically charged — dusty, difficult to convey, and prone to segregation in blends. Too wet and it begins to transform to anhydrous lactose, which blocks screens and causes caking. Specialty lactose grades are held to an even tighter window. NIR is the only at-line method fast enough to monitor moisture during the drying and milling stages. Crystallization degree is also predictable from the NIR spectrum — a parameter that matters for downstream handling and tableting performance.

One Plant, Two Different Measurement Setups

Dairy NIR spans two fundamentally different physical setups. Liquid milk and liquid whey are measured in transmission — NIR light passes through a defined pathlength of the liquid, typically 0.1–1 mm for whole milk. Pathlength control is critical: milk scatters light heavily due to fat globules, so the optical path must be consistent across every reading. Most dedicated dairy analyzers and FT-NIR systems with liquid cells operate this way, with the sample homogenized and temperature-equilibrated to 40°C before measurement.

Liquids — Transmission Geometry

  • Raw milk, cream, skim milk, liquid whey, WPC concentrate
  • Pathlength 0.1–1 mm — fat globules scatter heavily at longer paths
  • Sample temperature equilibrated to 40°C before measurement
  • Homogenization required — inhomogeneous fat affects readings
  • Flow-through cell for inline or at-line continuous monitoring

Powders and Solids — Diffuse Reflectance

  • NFDM, WPC powder, MPC, lactose, cheese, butter
  • Consistent fill depth and packing pressure in sample cup
  • Cool powder to room temperature before scanning — heat causes moisture drift
  • Particle size must be consistent — mill samples to standard fineness
  • Reference spectra updated when process or supplier changes

Go deeper in the course

L14
NIR in Food & Feed Industry
Week 4 · 19 min
See in curriculum
L23
Introduction to Calibration
Week 6 · 18 min
See in curriculum
L24
Calibration Validation Techniques
Week 6 · 19 min
See in curriculum

Enroll — $99 lifetime  14-day refund

Read more on the blog

Links open the current site. Posts move here later.

Related

$99one time, lifetime access · 14-day refund   Enroll in the course

Questions

How accurate is NIR for raw milk tanker testing compared to reference methods?

NIR analyzers calibrated for raw milk typically achieve SEP of 0.05–0.10% for fat, 0.05–0.08% for protein, and 0.10–0.15% for total solids when validated against Gerber or Röse-Gottlieb (fat) and Kjeldahl (protein) reference methods. Accuracy is bounded by the reference method's own reproducibility. Calibrations need periodic adjustment to follow seasonal compositional shifts (lactation stage, feed regime) — without that, performance drifts within months even on a good instrument.

What is the ROI for in-line NIR for milk standardization?

The return on investment for in-line NIR in milk standardization comes from precise, real-time control of fat and protein content. This minimizes the use of expensive components like cream and milk powder, preventing product giveaway and ensuring consistent final product quality. By reducing reliance on slow laboratory tests, processors can make immediate adjustments, leading to increased yield, reduced rework, and improved efficiency, which provides a fast return on investment.

Can NIR reliably measure moisture in cheese at-line?

Yes, NIR spectroscopy is a well-established method for the rapid, at-line determination of moisture, fat, and protein in cheese. The technique allows for frequent checks during production, enabling cheesemakers to make adjustments to parameters like press times to ensure the final product meets moisture specifications. For accurate results, the instrument must be calibrated for the specific cheese variety, as composition and texture can influence the measurement.

How to develop a robust NIR calibration for whey protein concentrate (WPC)?

Developing a robust NIR calibration for WPC requires collecting a large set of samples that represent all expected variations in composition, such as protein, moisture, fat, and lactose content. These samples must be analyzed by a reliable reference method. The resulting spectral data and reference values are used to build a chemometric model, often using Partial Least Squares (PLS) regression. It is often necessary to develop individual calibrations for different types of whey powders to ensure accuracy.

What causes NIR readings to drift when measuring skim milk powder moisture?

Drift in NIR readings for skim milk powder moisture can be caused by several factors. Changes in particle size, crystallinity, or bulk density of the powder can alter the NIR spectrum and affect prediction accuracy. Instrument drift, such as fluctuations in the lamp or detector, can also be a cause. It is crucial to monitor instrument performance with control samples and to update the calibration model when significant changes in the product or process occur to maintain accuracy.

How does NIR work for measuring fat and moisture in butter?

NIR spectroscopy measures the absorption of near-infrared light at specific wavelengths corresponding to molecular bonds. For butter analysis, the instrument detects strong absorbance from water (O-H bonds) and fat (C-H bonds). The amount of light absorbed at these wavelengths is mathematically correlated to the moisture and fat concentration. This allows for rapid, non-destructive measurement without sample preparation, making it suitable for process control to ensure the product remains within legal limits for fat and moisture.