15. Large-scale phenomics: from measurements to genetic evaluation
Advanced notes: contents · Abbreviations
1 Biological targets and recorded measurements
Large-scale phenomics combines repeated measurements, many correlated features and automated data acquisition. Cameras, activity sensors, milking robots, feeding stations and spectra can supply information about growth, behaviour, health and adaptation. The statistical problem starts with the biological target: a breeding value for feed efficiency, for example, is different from a prediction of the next recorded feeder visit.
Automated measurements already support animal-breeding research. Graham et al. (2024) studied feeding traits derived from automated milk feeders together with respiratory-disease treatments in calves. Bérat et al. (2025) estimated genetic parameters for behavioural indicators derived from robotic milking records using repeatability models. These are examples of constructing and analysing traits; they do not establish that every sensor feature is a useful selection target.
Distinguish the raw signal, the extracted feature, the modelled phenotype and the breeding objective. An image-derived weight, a daily growth slope and an animal’s additive genetic effect require different definitions and validation. Specify units, observation windows, aggregation rules and the population in which the target will be used. A software update that changes feature extraction can change the operational trait even when the column name stays the same.
2 A measurement model before a genetic model
A useful starting assumption for a continuous feature is
\[ x_{itk}=\mu_k(t)+a_{ik}(t)+p_{ik}(t) +d_{s(i,t),k}+\epsilon_{itk}, \]
where \(k\) indexes features, \(a\) is an additive genetic trajectory, \(p\) is a non-genetic animal trajectory, and \(d\) represents specified device, management or recording-batch effects. This is a modelling template, not a universal description of raw sensor data. Counts, proportions, events and censored times may require other observation distributions and links.
Device calibration and common management effects need an identifiable design. If each family is recorded with a different camera, a device effect cannot automatically be distinguished from a genetic effect. Connected reference measurements, overlapping devices and calibration animals can supply information that a more elaborate covariance model cannot create. The principles in components and identifiability apply to measurement systems as well as to conventional environmental effects.
Under the restricted classical-error model \(x=y^*+\delta\), with independent zero-mean error, measurement error increases phenotypic variance without adding genetic variance. That conclusion does not hold automatically for errors that depend on body shape, disease, farm or genotype. Analyse agreement with reference measurements across relevant subgroups, rather than assuming that a high overall correlation establishes unbiased measurement. Separate repeatability of the instrument from repeatability of the animal’s biological state.
3 Dense and irregular longitudinal records
Many measurements of one animal are not many independent animals. A repeatability model gives records a shared genetic effect and a shared permanent environmental effect. Random regression allows their magnitudes and correlations to vary with age, lactation stage or time since a challenge (Meyer, 1998). For example,
\[ a_{ik}(t)=\boldsymbol\phi(t)^\top\boldsymbol\alpha_{ik},\qquad \operatorname{Cov}(\boldsymbol\alpha_i,\boldsymbol\alpha_j) =K_{ij}\Sigma_\alpha, \]
where the coefficient vector stacks the declared feature and basis-function order. \(K\) may be a pedigree, genomic or combined relationship matrix. This defines genetic covariance across times through the basis and \(\Sigma_\alpha\); residual serial correlation is a separate modelling choice.
Irregular timestamps, unequal recording intensity and long gaps make the residual model consequential. A correlation defined per unit of elapsed time differs from one defined by consecutive row number. Observation windows should also have biological meaning: resistance to a challenge, recovery rate and long-term resilience need not be the same trait. See multitrait and longitudinal models for covariance construction and variance-component inference for estimation. Dense recording improves some aspects of trajectory precision; it does not remove confounding between genetic and environmental trajectories.
3.1 A progression from records to joint genetic trajectories
Start with one calibrated feature and repeated records on each animal. A repeatability model estimates a persistent genetic effect, a persistent non-genetic effect and record-level variation. Replacing those constants by random regressions changes the target from a single level to a trajectory, and changes the unknown covariance parameters from scalar variances to covariances among basis coefficients (Meyer, 1998; Meyer, 2001).
For several derived features, a possible joint measurement model is
\[ x_i(t)=\mu(t)+\Lambda_g f_i^g(t)+\Lambda_p f_i^p(t) +d_{s(i,t)}+\epsilon_i(t), \]
where \(f_i^g\) and \(f_i^p\) are lower-dimensional genetic and non-genetic trajectories, respectively. For example, specify
\[ \operatorname{Cov}\{f_i^g(t),f_j^g(s)\}=K_{ij}C_g(t,s),\qquad \operatorname{Cov}\{f_i^p(t),f_j^p(s)\}=\delta_{ij}C_p(t,s). \]
Here \(\delta_{ij}\) is one for the same animal and zero otherwise. \(C_g\) and \(C_p\) must be valid matrix-valued covariance functions across the declared times, not merely admissible matrices evaluated at isolated occasions. Conditional on the device effects and with independent genetic, persistent environmental and residual components, the feature covariance becomes
\[ \operatorname{Cov}\{x_i(t),x_j(s)\} =K_{ij}\Lambda_g C_g(t,s)\Lambda_g^\top +\delta_{ij}\Lambda_p C_p(t,s)\Lambda_p^\top +\operatorname{Cov}\{\epsilon_i(t),\epsilon_j(s)\}. \]
This separates genetic similarity across relatives, persistent within-animal variation and the remaining recording process. It is a proposed model template, not a claim that every raw image or event stream has a Gaussian likelihood. Loadings, trajectory covariances and measurement variances need constraints, information and estimation. Factor scales and rotations must be fixed by an explicit convention; unrestricted rescaling of both loadings and factor covariances would otherwise preserve the same observed model. Repeated records alone cannot separate the genetic and non-genetic terms if their observed covariance directions coincide.
The progression therefore changes inference as well as prediction. One may estimate a trajectory value, slope or weighted integral rather than just an animal intercept. For \(a_i(t)=\phi(t)^\top\alpha_i\), an integral target is
\[ T_i=\int w(t)a_i(t)\,dt=c^\top\alpha_i,\qquad c=\int w(t)\phi(t)\,dt. \]
Its known-covariance prediction-error variance (PEV) is \(c^\top C_{\alpha_i}c\), using the complete prediction-error covariance block \(C_{\alpha_i}\). Time to a threshold, maxima and other nonlinear targets require additional uncertainty calculations; their uncertainty is not generally one diagonal coefficient PEV.
4 Many features: separate genetic and environmental dimensions
With \(q\) features, an unrestricted covariance matrix has \(q(q+1)/2\) parameters. Estimating several such matrices quickly becomes an information problem as well as a computational problem. Factor structures can constrain genetic and environmental covariances separately, for example
\[ \Sigma_g=\Lambda_g\Lambda_g^\top+\Psi_g,\qquad \Sigma_e=\Lambda_e\Lambda_e^\top+\Psi_e, \]
with diagonal, nonnegative specific variances and suitable loading constraints. The number of factors, their identifiability and the stability of the resulting prediction targets require assessment (Thompson et al., 2003). Environmental structure must not be forced into genetic factors merely to reduce parameter count.
Phenotypic principal components describe total variation. Their leading directions need not capture the genetic variation most useful for the breeding objective. Melsen et al. (2025) develop a genetic latent-factor approach to high-dimensional secondary phenotypes, distinguishing genetic and residual covariance. Their application is in plant breeding: it provides relevant methodological evidence, not evidence of deployment in animal evaluation. It also does not imply that dimension reduction always improves prediction. Compare against simpler models using the same deployment scenario and training information.
4.1 Estimating a high-dimensional covariance rather than compressing a matrix
Compared with the unrestricted count above, a generic rank-\(r\) factor structure with diagonal specific variances has \(qr+q-r(r-1)/2\) free covariance parameters after accounting for rotations, under interior identification conditions. For \(q=100\) and \(r=5\), these counts are 5050 and 590. Rank restrictions save parameters by changing the model; they are not an exact replacement for every unrestricted covariance.
Joint likelihood or Bayesian estimation can learn loadings and covariance parameters with genetic relationships and the recording design included. Rank selection, constraints and regularization then belong to the fitted procedure. Conditioning predictions on estimated factor scores and treating those scores as exact observations omits uncertainty from that first stage. The factor-analytic likelihood framework is discussed by Thompson et al. (2003).
The 2025 genetic latent-factor approach of Melsen et al. (2025) is useful methodological evidence, but its covariance-learning pipeline exploits replicated plant data and design adjustment. Those assumptions should be distinguished from joint estimation in a related-animal population. Carrying a learned representation across species or recording designs requires checking the information that separates genetic from environmental covariance, not merely reusing the same factor algorithm.
| Extension | New estimation problem | Main source of information |
|---|---|---|
| More records of the same feature | Persistent effects, serial correlation and heterogeneous recording error | Within-animal repetition, elapsed time and connections among animals |
| More correlated features | Genetic and environmental covariance or factor loadings | Cross-feature observations and genetic relationships |
| Responses to environmental challenge | Genetic trajectory or reaction-norm covariance | Observed exposure, repeated responses and relatives across conditions |
| Learned or calibrated features | Measurement parameters and uncertainty in derived observations | Reference measurements, connected devices and independent calibration data |
A staged analysis can remain appropriate when its sampling covariance and information overlap are handled explicitly. A joint analysis is attractive when stages share substantial uncertainty or informative recording, but it also requires a defensible joint likelihood. More elaborate estimation cannot recover distinctions absent from the design.
5 How phenomics enters genomic prediction
The statistical role of additional measurements determines the model:
| Role | Target and main question |
|---|---|
| Additional response traits | Can genetic correlations improve prediction of the breeding objective? |
| Repeated observations of a trajectory | Which genetic features of level, slope or recovery are to be predicted? |
| Measured predictors available at selection | Is the target conditional performance or an additive genetic value? |
| Features used to construct a similarity kernel | What covariance does that kernel represent, including shared environment? |
| Biological information used to specify marker priors | How is evidence mapped to variants, and is the prior independently assessed? |
Individual-level phenomic measurements and variant-level functional annotations are different information sources. A sensor-derived similarity matrix is not automatically a genomic relationship matrix. Likewise, conditioning on a heritable downstream phenotype can change the meaning of the genetic effect being estimated. Define the joint model and target before comparing accuracy; see genomic models and genomic-feature priors.
A secondary trait available on selection candidates may legitimately improve prediction. The same analysis would overstate performance for a deployment where that measurement is unavailable. Validation must reproduce the intended availability pattern (Runcie and Cheng, 2019).
6 Missingness and two-stage analysis
Sensor failure, missed visits, selective recording, treatment and removal can produce different missing-data mechanisms. An absent feeder record may indicate inactivity, equipment downtime or an animal no longer under observation. Converting every absence to zero changes the data model. Record exposure and reason codes where available, and assess whether dropout depends on latent health or performance. The assumptions in missing data and selection remain essential.
Two-stage analysis is often practical: first extract features or fit individual trajectories, then analyse estimated summaries genetically. Estimated summaries have uncertainty, potentially with unequal variances and correlations. Treating them as equally precise observations can distort weighting and uncertainty. Carry forward their sampling covariance where justified, or assess the consequences with a joint-model reference or simulation. Shrunken first-stage predictions also require care to avoid applying shrinkage twice.
Feature learning, scaling, imputation, selection of recording windows and tuning of factor dimension belong inside the training procedure when evaluating generalisation. A frozen externally trained measurement algorithm can be assessed as a distinct case, with its provenance and target-population validity recorded.
7 Computation and reproducibility at scale
Report animals, independent families or management groups, records, features, time points and missingness patterns separately. Adding records expands data operations; adding genetic coefficients can expand the solve; adding covariance parameters expands estimation. These costs need different remedies. Sparse incidence operators, structured covariance, streamed feature access and factor reuse are discussed in large-scale computation and the algorithmic reference.
Retain a reproducible path from raw measurement to fitted phenotype: animal and device identifiers, timestamps and time zones, units, calibration records, software versions, quality flags and inclusion rules. Benchmark feature extraction, data preparation, covariance estimation, prediction and output separately, as well as end-to-end elapsed time and peak memory. Faster processing of a changed phenotype is not an equivalent-model speedup.
8 Qualification for the intended use
Validation should test both measurement and genetic inference. Compare reference measurements across devices and biological subgroups; examine genetic and residual covariance stability; and assess prediction accuracy, bias and uncertainty in independent groups (Daetwyler et al., 2013). Split by animal when repeated records are present, and use farm, time, device or family holdouts when those represent deployment. Randomly splitting individual sensor records can place the same animal and recording conditions in training and validation.
For a new phenomics model, establish a small independent numerical reference, then assess parameter recovery and uncertainty under realistic recording and missingness patterns. Finally test transfer to the intended population and recording system. A small solver residual checks the fitted equations; it does not establish a valid measurement model or useful selection response. The model-checking chapter and qualification framework distinguish these claims.
Implemented building blocks include longitudinal random regression, multitrait prediction and estimation, standalone factor-analytic and measurement-error models, and development Bayesian factor models. These have distinct input, rank, inference and uncertainty limits. Raw-sensor extraction/calibration and the complete joint genetic/environmental trajectory-and-measurement template in this chapter are not established as one end-to-end gsuite workflow by those building blocks.