Agritech/Germany
386,587 milking records found the cow’s own temperature was the best alarm
A German team paired 386,587 robotic milking records with weather measured inside the barn. The sharpest heat stress signal was the temperature of the milk itself.
A Justus-Liebig-University Giessen team paired 386,587 robotic milking records from 790 cows on three German farms with continuously recorded on-farm weather data over three years. As the temperature-humidity index rose from 50 to 70, model estimates showed daily milk yield falling 0.86 kg, milk fat down 0.20 percentage points, visits down 0.12 per day, and milk temperature up 1.14 degrees Celsius.
What happened
Heat stress in dairy cattle is well established: hot, humid weather reduces milk yield. The research establishing it generally used the nearest weather station and monthly milk recording, which is like studying a fever with a thermometer in the next street and a reading once a month.
A team at the Institute of Animal Breeding and Genetics at Justus-Liebig-University Giessen, with the Association for Bioeconomy Research in Bonn, changed the resolution. They took 386,587 automatic milking system visit records from 790 cows on three commercial German dairy farms between August 2022 and August 2025, and paired them with temperature and humidity measured continuously on the farms themselves.
At that resolution, the familiar result splits into trait-specific patterns. And the sharpest signal is not milk yield.
As the temperature-humidity index rose from 50 to 70, the model estimated milk temperature rising by 1.14 degrees Celsius and voluntary robot visits falling by 0.12 per day – responses that appeared most strongly to contemporaneous and short-term conditions.
The test
Up to 127,310 cow-day records were assembled from the visit data. Temperature-humidity index values were computed from the on-farm sensors and evaluated at multiple lag periods before each milking record, so the analysis could distinguish an immediate response from a delayed one. Linear mixed models were applied to production traits, physiological traits, behavioural traits and milking-process traits.
The lag structure is the analytical point. Monthly milk recording cannot tell you whether a cow responds to today’s heat, yesterday’s, or the week’s accumulation. Visit-level records paired with continuous climate data can.
This is observational. No intervention was applied and no farm was randomised to anything, so every result is an association.
The numbers
| Trait | Model-estimated change, index 50 to 70 |
|---|---|
| Daily milk yield | -0.86 kg |
| Milk fat content | -0.20 percentage points |
| Milk protein content | -0.06 percentage points |
| Daily robot visits | -0.12 |
| Milk temperature | +1.14 degrees Celsius |
| Lag structure | strongest for contemporaneous and short-term lags; weaker for longer lags |
| Data | 386,587 visit records, 790 cows, 3 farms, Aug 2022 – Aug 2025 |
The yield figure is the one that will be quoted and the milk temperature figure is the one worth acting on.
The result
The authors make the point themselves: rather than merely confirming the established decline in milk yield under heat stress, the temporally resolved analysis revealed trait-specific response patterns, with milk temperature and voluntary attendance showing pronounced associations with contemporaneous and short-term conditions.
That is the useful finding. Milk yield is a lagging, noisy indicator – it depends on feed intake, stage of lactation, parity and much else. Milk temperature is close to a direct physiological readout, and every robotic milking system records it at every visit, for free, already.
The lag result matters too. Associations were strongest for immediate and short-term windows and weaker for longer ones, which means heat stress is a same-day problem. A mitigation that responds within hours – fans, sprinklers, feed timing – is targeting the right window. Monthly monitoring cannot see it.
How this compares to what came before
Measurement resolution is the theme running through 2026’s agritech literature, and this paper is the clearest case.
A Chinese cattle environment study validated six sensor channels against reference instruments and found temperature at R-squared 0.995 and ammonia at 0.604 – the physical parameters solved, the chemical ones not. A French camera validation separated detection from identification and found 90-plus percent against 69 to 78 percent. A Queensland cotton study reported research-plot accuracy of 0.85 and commercial-field accuracy of 0.67.
In each case the finding is in the decomposition. Here it is in the time resolution: average the data monthly and the milk temperature response, which operates within hours, disappears entirely.
What it means
The practical implication is specific and cheap. Any dairy with a milking robot is already measuring the variable that responded most sharply to heat, at every visit, and almost certainly not using it. A control chart on herd-average milk temperature would be a same-day heat stress alarm requiring no new hardware.
The second implication concerns the index itself. Heat stress thresholds in dairy management are typically expressed in temperature-humidity index values derived from weather station data. If indoor conditions differ from outdoor ones, those thresholds are being applied to the wrong number. Measuring in the barn is inexpensive and this study shows it changes what you can detect.
The effect sizes are modest. 0.86 kg per cow per day across a 20-point index rise is a few percent of yield – meaningful across a herd and a season, not dramatic.
Business ideas from this paper
The opportunity is in data the farms already own.
Milk temperature analytics is the first and most immediate. Robotic milking systems record it and discard it into a database nobody queries. Software that tracked herd-average and individual milk temperature against on-farm climate, and raised alerts, would be a pure software product on existing hardware with a physiological rationale established by this paper. The integration work with each robot manufacturer’s data system is the moat.
Second, in-barn climate as a service. The study’s premise is that distant weather stations misrepresent barn conditions. Installing and maintaining calibrated indoor climate sensors, and delivering an index that reflects what the animals experience, is a modest hardware-plus-subscription business – and a Chinese validation study the same year shows that the temperature and humidity channels needed for it are accurate and cheap, while the air quality channels are not.
Third, same-day mitigation control. If heat stress is a contemporaneous effect, then fans, sprinklers and feed timing should respond within hours rather than seasonally. Closed-loop control driven by indoor index and milk temperature is an automation product with a measurable payback in retained yield, and the measurement side is now evidenced.
What could be wrong with it
This is observational with no intervention, so confounders cannot be excluded. Hot weather coincides with seasonal feed changes, grazing patterns, fly pressure and management differences, any of which could contribute to the associations.
Three farms, one breed, one country, three years. The farms all use robotic milking, which selects for a particular kind of operation.
The effect sizes are model estimates from linear mixed models rather than measured differences between groups, and they describe an index change from 50 to 70 rather than observed extremes.
Voluntary robot attendance is influenced by many factors beyond temperature – competition, feed, social hierarchy – so attributing the fall to heat requires the model’s adjustments to be adequate.
Data are available on request from the authors rather than deposited.
How sure can you be?
Confident about the associations, given 386,587 records across three years with appropriate mixed-model analysis, published in Animals.
Confident that the time resolution reveals patterns that monthly data cannot, which is the paper’s central claim and is demonstrated by the lag analysis.
Not confident about causation, because the design is observational.
Reasonably confident that milk temperature is a usable signal, since the association is strong, contemporaneous and physiologically sensible – though no study has yet tested it as an alarm.
Do this today
If you run a dairy with robotic milking, pull milk temperature from your system and plot it against your barn conditions this summer. The data already exist and this paper says what to expect.
If you set heat stress thresholds, measure inside the building. The whole point of this study is that the weather station is not where the cows are.
If you build dairy software, milk temperature is a free sensor that nobody is using and that responded more sharply here than the yield figures everyone watches.
Source: Combining Dense Longitudinal Records from Robotic Milking with Dense On-Farm Meteorological Data to Assess Heat Stress Effects in Dairy Cows, Animals, 2026. PMID 42738459 · doi.org ().
Just Out Tech explains new research in plain language. This article was drafted with AI assistance and checked by a human against the original source.
- At index 50 to 70: milk yield -0.86 kg/day, fat -0.20 points, protein -0.06 points, visits -0.12/day, milk temperature +1.14 C.
- The strongest associations were with contemporaneous and short-term lagged windows, not longer lags.
- Milk temperature and voluntary robot attendance responded most sharply - both measured automatically at every visit.
- Observational: 386,587 records, three farms, no intervention, so these are associations.
Everything analysed here - robot visit records and on-farm weather - is data that a modern dairy with robotic milking already produces, which makes the approach immediately reproducible.
Questions people ask
What is the temperature-humidity index?
A single number combining air temperature and relative humidity, used because a cow's ability to shed heat depends on both. An index of 50 is comfortable; around 68 to 72 is where dairy cattle typically begin showing measurable heat stress.
Why does measuring climate inside the barn matter?
Because the barn is not the weather station. Ventilation, stocking density, roof construction and the animals' own heat output mean indoor conditions can differ substantially from a reading taken several kilometres away. Using the distant reading introduces error in the exposure variable, which attenuates any effect you are trying to measure.
Why is milk temperature interesting?
Because robotic milking systems measure it automatically at every visit, at no extra cost, and it responded sharply to contemporaneous heat. That makes it a candidate early-warning signal that needs no new sensor on any farm that already has a robot.
Is 0.86 kg of milk a big loss?
Per cow per day it is modest - a few percent of typical yield. Across a 200-cow herd over a hot month it is several tonnes. It is a real economic effect and not a dramatic one, and it is a model estimate rather than a measured difference.