Tutorials › Multi-Omics Data Integration › Building Semi-Synthetic Benchmark Data

Simulation Studies for Method Comparison · Tutorial 553 of 597

Building Semi-Synthetic Benchmark Data

Learn to preserve chosen features of observed multi-omics data while injecting signals with explicit ground truth, and to identify which structure is inherited rather than controlled.

Advanced 11 min read

What You'll Learn

  • Define a semi-synthetic benchmark and distinguish its observed-data backbone from its injected signal.
  • Use shared row permutations when preserving matched cross-omics relationships matters.
  • Calculate how an injected feature shift changes an observed group contrast.
  • Generate an outcome from observed features while keeping the omics matrices intact.
  • Diagnose when a construction preserves marginal distributions but alters covariance.
  • State which elements of a benchmark are known ground truth and which remain inherited from its source data.

Why Use Semi-Synthetic Benchmark Data?

A fully synthetic benchmark gives the investigator direct control over its generating model, but realistic multi-omics measurements can be difficult to reproduce. An observed cohort has authentic marginal distributions, feature dependencies, and technical irregularities, yet its true biological signals are usually not completely known. Semi-synthetic data combine observed measurements with deliberately controlled additions or alterations. The aim is to retain specified aspects of realism while creating a target whose injected signal is known.

This approach is useful only when “known” is used carefully. A researcher may know exactly which features were shifted, or which coefficients were used to generate an outcome. That does not make every association in the resulting data known: the source cohort can already contain associations, batch effects, or other structure. A benchmark should therefore distinguish the signal imposed by construction from the structure that came along with the observed data.

Definition: A semi-synthetic benchmark is a benchmark data set formed by starting with observed data and applying a specified construction, such as relabeling, resampling, or adding a known signal. Its injected ground truth is the part of the target defined by that construction. Other retained patterns are inherited from the source data and are not automatically known truth.

Specify What Must Be Preserved

Let \(X^{(m)}\) be the observed data matrix for modality \(m\), with \(n\) rows for samples and \(p_m\) columns for features. If the modalities are matched, row \(i\) in each matrix refers to the same sample. A semi-synthetic construction produces modified matrices \(X^{*(m)}\), and possibly a generated outcome or label. Before modifying anything, specify the properties the benchmark is intended to retain: for example, each feature’s empirical distribution, within-modality covariance, cross-omics covariance, matched sample structure, or technical batch patterns.

These properties are not interchangeable. A permutation of the rows of one modality leaves that modality’s feature values and empirical distributions unchanged. Applying the same permutation to every modality also retains the original pairing of samples, and thus retains cross-omics relationships. Permuting each modality separately retains its separate empirical distributions but generally changes those relationships. Adding a signal can change one or more of the preserved properties, so the construction must say which are intended to remain exact and which may change.

A useful general form for adding a known signal to one modality is \(X^*=X+y\beta^T\), where \(y\) is a specified \(n\)-vector and \(\beta\) is a \(p\)-vector of feature effects. Row \(i\) receives the shift \(y_i\beta^T\). Entries of \(\beta\) equal to zero mark features not directly modified. The construction itself is controlled, but its total observed pattern includes both the original \(X\) and the added term.

Construction rule: Write down (1) the observed starting data, (2) the operation applied, (3) the property intended to be preserved, and (4) the injected truth that will be evaluated. Do not label inherited associations as injected truth unless the construction explicitly defines them that way.

What an Additive Signal Does to Covariance

An additive signal is simple to implement, but it need not leave the covariance structure unchanged. To see why, let \(X_c\) denote the column-centered version of \(X\), and let \(y_c\) be \(y\) centered by its sample mean. Centering \(X^*=X+y\beta^T\) gives \(X_c^*=X_c+y_c\beta^T\). The sample covariance matrix of the modified features is therefore

$$ S_{X^*} =\frac{(X_c+y_c\beta^T)^T(X_c+y_c\beta^T)}{n-1} =S_X+\frac{X_c^Ty_c\beta^T+\beta y_c^TX_c}{n-1} +\frac{y_c^Ty_c}{n-1}\beta\beta^T. $$

The equality follows by multiplying out the matrix product and grouping the four terms; the first is \(X_c^TX_c/(n-1)=S_X\). The two middle terms depend on the association between the original features and the injection pattern \(y\), and the last term is the covariance contribution from the injected signal itself. Thus, even if the original features have a particular covariance, a group-dependent shift can alter it. A constant shift applied to every row is different: centering removes it, so it does not change sample covariance.

This calculation is a practical warning, not a reason to avoid injection. It clarifies what the operation guarantees. If preserving covariance exactly is essential, a signal construction that changes covariance may not meet the benchmark’s objective. If injecting a biologically interpretable association is the objective, changed covariance may be an intended consequence and should be reported as such.

Worked Example: Separate an Injected Contrast from a Retained One

Suppose a hypothetical observed feature has values \(2,3,4,5\) for four samples. A generated binary group label is \(y=(0,0,1,1)^T\). Add 2 measurement units to this feature for samples in group 1. The feature values before injection are \(X=(2,3,4,5)^T\), and the injected coefficient is \(\beta=2\).

The construction is \(X^*=X+2y\), so the modified values are \((2,3,6,7)^T\). Before injection, the group means are \((2+3)/2=2.5\) units and \((4+5)/2=4.5\) units. The original group contrast, group 1 minus group 0, is \(4.5-2.5=2.0\) units.

After injection, the means are \((2+3)/2=2.5\) units and \((6+7)/2=6.5\) units, giving a contrast of \(6.5-2.5=4.0\) units. The contrast decomposes as \(2.0+2.0=4.0\) units: a 2.0-unit contrast already present in the source values plus the 2.0-unit injected shift. The construction’s known truth is the added 2.0-unit shift, not the entire 4.0-unit observed contrast.

This distinction matters when scoring recovery. If the target is recovery of the imposed shift, treating the full observed contrast as ground truth would credit the method for an association that the source data already contained.

Generate an Outcome Without Altering the Omics Matrices

A different construction keeps observed omics values fixed and generates an outcome from them. For a continuous outcome, one possible specification is \(z=\gamma_0+X^{(1)}\gamma_1+X^{(2)}\gamma_2+\varepsilon\), where the coefficient vectors and intercept are specified by the benchmark and \(\varepsilon\) is a generated noise vector. In this design the omics distributions and their observed cross-omics covariance are unchanged, because the matrices themselves are not modified. The known outcome-generating coefficients define the imposed relationship.

That guarantee is conditional on using the matrices as given: the generated outcome can still be associated with features that have zero coefficients because those features correlate with features that do have nonzero coefficients. A coefficient of zero means “no direct term in the specified outcome equation,” not “no marginal association in the constructed data.” If adding noise, state its distribution and how it is generated; the outcome then contains both the specified signal and the noise realization.

Worked Example: Generate an Outcome While Retaining Cross-Omics Structure

Consider two hypothetical matched measurements, \(a=(1,2,3)^T\) and \(b=(2,4,6)^T\), one from each of two omics modalities. Keep both vectors unchanged and generate a continuous outcome using \(z=1+0.5a+0b\), with no added noise. The specified intercept is 1, the direct coefficient for \(a\) is 0.5, and the direct coefficient for \(b\) is 0.

Substitution gives \(z=(1+0.5(1),\,1+0.5(2),\,1+0.5(3))^T=(1.5,2.0,2.5)^T\). The benchmark’s known direct outcome coefficient for \(a\) is 0.5 outcome units per unit of \(a\); the coefficient for \(b\) is zero by construction. The units are determined by the measurement and outcome scales.

For the two observed features, the sample means are \(\bar{a}=2\) and \(\bar{b}=4\). Their sample covariance before and after generating \(z\) is \(((-1)(-2)+0(0)+(1)(2))/(3-1)=4/2=2\) squared measurement units. It is unchanged because neither feature vector was modified. Nonetheless, \(b\) will be associated with \(z\): here \(b=2a\), so the outcome generated from \(a\) also tracks \(b\). That marginal association is inherited through the observed relationship between the modalities; it is not a nonzero direct coefficient for \(b\).

Resampling and Matched Multi-Omics Structure

Resampling can create a benchmark cohort while retaining observed measurement patterns. If rows are sampled with replacement, use the same sampled row indices across all modalities when sample matching is part of the intended structure. The resulting cohort may contain duplicate source samples, so it does not preserve every original feature distribution exactly; rather, it samples from the source cohort’s empirical distribution. Independent row resampling across modalities breaks the original sample-level pairing.

Worked Example: Preserve Marginals but Lose Pairing

Suppose three matched samples have feature \(a=(1,2,3)^T\) in one modality and feature \(b=(2,4,6)^T\) in another. Their sample covariance is \(((-1)(-2)+0(0)+(1)(2))/(3-1)=4/2=2\) squared measurement units. Now permute only the \(b\) values to \(b^*=(6,2,4)^T\). The values in each modality have not changed, so both empirical marginal distributions are exactly retained.

For the new pairing, \(\bar{a}=2\) and \(\bar{b^*}=4\). The sample covariance becomes \(((-1)(2)+0(-2)+(1)(0))/(3-1)=-2/2=-1\) squared measurement units. Thus, the separate feature distributions are preserved but the cross-omics covariance changes from 2 to -1. Applying the same permutation to both modality vectors would retain the original pairings and covariance instead.

Assumptions, Diagnostics, and Alternatives

Semi-synthetic data do not require the observed cohort to be a random sample from a named population for the arithmetic of a transformation to be valid. They do require that the source data and the construction be suitable for the benchmark’s stated target. Samples must be correctly matched before joint operations; feature scales and preprocessing must be understood before interpreting an additive shift; and any generated labels, outcomes, or noise must follow the written construction. If one source sample contributes to both development and evaluation data, performance can also reflect familiarity with that source sample rather than generalization to new samples.

Useful diagnostics compare the source and modified data on the properties the construction claims to preserve. Check feature-wise empirical distributions, within-modality covariance, cross-omics covariance, sample pairing, and batch summaries as relevant. Separately verify that the injected support, group shifts, or outcome coefficients match the intended specification. A discrepancy is not automatically an error: it may be the expected result of injection. The key is whether it agrees with the stated preservation target.

A fully synthetic benchmark offers stronger control over the whole generating mechanism, but can fail to represent important empirical features. Direct resampling retains observed values but supplies little new ground truth unless labels or signals are added. Semi-synthetic construction occupies the middle ground: it can provide controlled targets on an observed-data backbone, but inherits unmodeled structure and depends on the source cohort. No construction simultaneously guarantees complete realism, complete knowledge of truth, and preservation of every observed feature.

A common mistake is to say, “The selected feature is associated with the generated label, so the association is entirely the known signal.” The correction is to distinguish the injected contribution from the pre-existing association, as in the group-contrast example. Another mistake is to claim that separate modality distributions are preserved and infer that their joint structure is preserved too. The permutation example shows why those are distinct claims.

Key takeaway: Report the observed-data backbone, the exact transformation, the properties intended to be preserved, and the injected ground truth separately. Known construction parameters do not erase associations or technical structure inherited from the source cohort.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. If the same row permutation is applied to every matched modality, which aspect of the source data is retained that separate permutations generally do not retain?
  2. A feature already has a group contrast of 1.5 units. A shift of 0.8 units is added to every sample in one group. What is the resulting contrast, and what is the injected truth?
  3. In an outcome equation, a feature has coefficient zero but is correlated with a feature whose coefficient is nonzero. Must its marginal association with the outcome be zero? Explain.
  4. Why does preserving each modality’s feature values not guarantee preservation of cross-omics covariance?

Solutions. (1) The same permutation preserves which modality rows belong to the same samples, and therefore retains their original pairings and cross-omics relationships. (2) The resulting contrast is \(1.5+0.8=2.3\) units; the injected truth is the added 0.8-unit shift, while 1.5 units were already present. (3) No. Correlation with a feature that enters the outcome equation can induce a marginal association, even though the feature’s direct coefficient is zero. (4) Covariance depends on which values occur together across samples. Separate permutations leave each modality’s values unchanged but change those pairings, which can change covariance.

Clinical Biostats