Dairy Processing: From Raw Milk to Safe Products
Raw milk is one of the most nutritionally complete — and microbiologically risky — foods that exists. It’s rich in protein, fat, lactose, vitamins, and minerals. Which is exactly why bacteria love it too. Salmonella, E. coli, Listeria, Campylobacter, Brucella, Mycobacterium bovis — raw milk can harbor all of them.
Dairy processing transforms this high-risk raw material into products consumed safely by billions of people daily. The steps — pasteurization, homogenization, separation, culturing — each serve specific safety and quality purposes. Understanding them is essential for anyone in dairy QA.
This guide walks through the journey from raw milk to finished dairy products, with the safety controls that matter at each step.
From farm to plant: raw milk handling
It starts with the cow. Milk is essentially sterile inside a healthy udder, but contamination begins the moment it leaves — from the teat surface, milking equipment, air, and handlers. Total bacterial counts in raw milk can range from under 10,000 CFU/mL (excellent hygiene) to millions (poor practices).
Cooling is the first critical control. Milk leaves the udder at ~37°C — ideal for bacterial growth. It must be cooled to 4°C (39°F) within 2 hours of milking. Every hour at warm temperatures allows exponential bacterial growth. A bulk tank that takes 6 hours to cool from 37°C to 4°C isn’t just inefficient — it’s a food safety risk.
Transport: Insulated or refrigerated tankers maintain 4°C during transport. Upon arrival at the processing plant, milk is tested before unloading:
- Temperature (must be ≤4°C, or ≤7°C depending on jurisdiction and time since milking)
- Antibiotic residues (every tanker, every load — beta-lactam test minimum; a positive means the entire tanker is rejected)
- Somatic cell count and total bacterial count (quality indicators; high counts suggest mastitis or poor hygiene)
- Freezing point (detects added water — a classic adulteration test)
What we’ve seen: A plant accepted a tanker at 9°C because “it was a hot day and the truck was delayed.” That milk had been in the temperature danger zone for hours. The bacterial load was high enough to produce heat-stable enzymes (proteases, lipases) that survived pasteurization and caused bitter flavors and gelation in UHT milk weeks later. The pasteurizer killed the bacteria, but not the enzymes they’d already produced. Raw milk quality before processing determines finished product quality — pasteurization can’t fix bad raw milk.
Pasteurization: the non-negotiable kill step
Every drop of milk for human consumption must be pasteurized (or go through an equivalent validated process). The standard methods:
| Method | Temp / Time | Use |
|---|---|---|
| HTST | 72°C (161°F) / 15 sec | Fluid milk (global standard) |
| LTLT | 63°C (145°F) / 30 min | Batch/artisan dairy |
| UHT | 135-150°C / 2-5 sec | Shelf-stable milk |
HTST pasteurization uses plate heat exchangers: cold raw milk is pre-warmed by outgoing hot pasteurized milk (regenerative heating — energy efficient), then heated to 72°C, held for exactly 15 seconds in a calibrated holding tube, then rapidly cooled to 4°C.
Critical controls:
- Holding time and temperature — continuously recorded. If temperature drops below 72°C, a flow diversion valve automatically redirects milk back for reprocessing. This isn’t manual — it’s automated and tested.
- The phosphatase test verifies pasteurization worked. Alkaline phosphatase is an enzyme naturally in raw milk that’s destroyed at pasteurization temperatures. If phosphatase is detected in “pasteurized” milk, it wasn’t properly pasteurized (or raw milk was added after). It’s a simple, elegant verification.
- No cross-contamination between raw and pasteurized sides. The regenerator section — where raw and pasteurized milk flow on opposite sides of plates — is a known risk point. A pinhole leak can contaminate pasteurized milk with raw milk. Pressure differentials (pasteurized side at higher pressure) and regular integrity testing manage this.
Homogenization: not about safety, but about quality
Homogenization forces milk through a tiny valve at high pressure (10-25 MPa), breaking fat globules from ~3-4 micrometers to <1 micrometer. The smaller globules stay suspended instead of rising as cream.
It’s not a safety step — it’s about consistency and consumer expectation. But it has a safety interaction: homogenization increases surface area, making milk proteins more susceptible to heat. It’s done before or during pasteurization, never after (which would reintroduce contamination risk).
Separation and standardization
Centrifugal separation spins milk at high speed, dividing it by density: cream (fat) goes one way, skim milk goes the other. This allows precise fat standardization:
- Whole milk: ~3.25% fat
- Reduced fat: 2%
- Low fat: 1%
- Skim/nonfat: <0.5%
Why it matters for safety: Separation is also a clarification step — it removes sediment, somatic cells, and some bacteria. It’s not a kill step, but it reduces the microbial load going into pasteurization. Every log reduction before the kill step makes the kill step more effective.
Cultured products: yogurt and cheese
Yogurt: Pasteurized milk (often with added milk solids for thickness) is inoculated with Streptococcus thermophilus and Lactobacillus delbrueckii subsp. bulgaricus, then incubated at 40-45°C for 4-6 hours until pH drops to ~4.5. The acidity is the preservation — and the texture mechanism (acid coagulates the casein proteins).
Safety controls for yogurt:
- Starter culture vigor (weak culture = slow pH drop = pathogen window)
- Post-pasteurization contamination prevention (the milk is pasteurized, then inoculated — everything after pasteurization must be hygienic)
- Fruit/addition handling (fruit preps added to yogurt must be heat-treated or otherwise controlled)
Cheese: An enormous category, but the safety principles are consistent:
- Milk treatment (usually pasteurized; raw milk cheeses require 60-day aging minimum in the US)
- Coagulation (rennet enzymes or acid)
- Whey separation (cutting, cooking, pressing)
- Salting (lowers aw, controls microbes, develops flavor)
- Ripening (controlled temperature/humidity for weeks to years)
The raw milk cheese debate: Traditional raw milk cheeses (Parmigiano-Reggiano, Roquefort, aged Cheddar) have excellent safety records — because the combination of low pH, low aw, salt, competitive cultures, and extended aging creates multiple hurdles. But fresh raw milk cheeses (queso fresco, for example) have caused Listeria outbreaks. The US requires 60-day aging for raw milk cheese; the EU allows raw milk cheese with strict controls. The science supports aged raw milk cheese safety. It does not support fresh raw milk cheese safety.
What we’ve seen: A small cheese plant making fresh queso fresco from pasteurized milk had recurring Listeria positives. The milk was fine. The pasteurizer was fine. The problem was post-pasteurization handling — the cheese was hand-formed on a table that was also used for raw material prep. Listeria from the environment contaminated the finished cheese. They needed zoning, not a better pasteurizer.
Key dairy pathogens and their controls
| Pathogen | Risk in dairy | Primary control |
|---|---|---|
| Salmonella spp. | Raw milk, dried milk powder | Pasteurization; dry-area environmental control |
| Listeria monocytogenes | Soft cheeses, ice cream, RTE dairy | Pasteurization + post-process environmental control |
| E. coli O157:H7 | Raw milk, fresh cheese | Pasteurization; raw milk testing |
| Staphylococcus aureus | Cheese (enterotoxin) | Rapid acid development; starter culture control |
| Brucella spp. | Raw milk (unpasteurized) | Pasteurization; herd health programs |
| Mycobacterium bovis | Raw milk | Pasteurization (the original reason for milk pasteurization) |
The historical note: Milk pasteurization was originally driven by tuberculosis — Mycobacterium bovis transmitted through raw milk was a major public health crisis in the early 1900s. Pasteurization eliminated it. Every glass of safe milk is a legacy of that public health victory.
What auditors check in dairy plants
- Pasteurization records — continuous time-temperature charts, flow diversion valve tests, phosphatase results
- Raw/pasteurized separation — physical barriers, pressure differentials, no cross-connections
- Environmental monitoring — especially for Listeria in RTE dairy areas
- Antibiotic testing — every load, documented, with rejection procedures
- CIP verification — cleaning of pasteurizers, tanks, and lines (dairy fouling is heavy; inadequate CIP leads to biofilms)
- Cooling rates — raw milk cooling on farm, pasteurized product cooling after processing
Ask yourself: if your pasteurizer’s flow diversion valve failed right now, would anyone know before the milk reached the filler? If the answer isn’t an immediate “yes, it’s tested daily,” that’s your priority.
Frequently asked questions
Why is milk pasteurized?
To destroy pathogenic bacteria including Salmonella, E. coli, Listeria, Campylobacter, Brucella, and Mycobacterium bovis. The standard HTST method (72°C/161°F for 15 seconds) achieves at least a 5-log reduction of Coxiella burnetii, the most heat-resistant vegetative milk pathogen.
Does pasteurization destroy nutrients in milk?
Minimally. HTST pasteurization causes small losses of vitamin C and some B vitamins (typically <10%), but protein, calcium, and most nutrients are unaffected. The nutritional difference between raw and pasteurized milk is negligible — the safety difference is enormous.
What is homogenization?
Forcing milk through a small valve at high pressure to break fat globules into tiny particles that stay suspended. It prevents cream separation and creates uniform texture. It’s a quality step, not a safety step.
Is raw milk cheese safe?
Aged raw milk cheeses (60+ days) have a strong safety record due to multiple hurdles (low pH, low aw, salt, competitive cultures, time). Fresh raw milk cheeses carry significant Listeria risk. Regulations differ: the US requires 60-day minimum aging for raw milk cheese; the EU permits it with strict controls.
What is the phosphatase test?
A verification test for pasteurization. Alkaline phosphatase is naturally present in raw milk and destroyed by proper pasteurization. If phosphatase is detected in pasteurized milk, either pasteurization was inadequate or raw milk contaminated the product after processing.
Want to test your dairy knowledge? Try our Dairy Technology quizzes — 20 questions on pasteurization, cheese making, and milk safety.