A source-cited reference library 399 modules · 19 subdomains · 5 domains
Research Library
AI in Strategy Screening

Finance / Income Options

AI in Strategy Screening

Artificial intelligence is transforming the process of strategy screening by enabling more sophisticated model design, mitigating parameter overfitting, detecting regime shifts, and implementing robust guardrails to ensure reliable investment outcomes.

Executive brief

This article explores how machine learning and deep learning techniques are applied to the evaluation and selection of investment strategies. It covers advances in screening methodology that reduce overfitting, techniques for detecting changes in market regimes, and the implementation of safeguards such as ensemble methods, cross-validation, and economic significance checks to ensure that screened strategies are robust and actionable.

Overview and context

Strategy screening is a fundamental step in the investment process, where potential investment models or algorithms are evaluated based on historical performance to identify those most likely to deliver future alpha. Traditionally, this process relied on simple metrics such as average returns, Sharpe ratios, and win rates, often leading to the selection of strategies that were overfit to historical data and failed to perform in live trading.

The advent of AI has introduced new capabilities to enhance strategy screening in several ways:

  • Advanced pattern recognition: Deep learning models can identify complex, non-linear patterns in financial data that traditional statistical methods might miss, leading to the discovery of novel strategy signals.
  • Overfitting mitigation: Techniques such as dropout, early stopping, and ensemble learning help prevent models from memorizing noise in the training data, improving out-of-sample performance.
  • Regime detection: AI can detect shifts in market conditions (e.g., from low volatility to high volatility, or from bull to bear markets) and adjust strategy evaluations accordingly, ensuring that performance is assessed in relevant contexts.
  • Guardrails implementation: AI-driven screening frameworks can incorporate multiple layers of validation, such as walk-forward analysis, bootstrap testing, and economic significance checks, to ensure that only robust strategies are selected.

Despite these advantages, AI-enhanced strategy screening also presents new challenges. The complexity of AI models can make them difficult to interpret, raising concerns about transparency and the ability to explain why a particular strategy was selected. Moreover, the reliance on historical data means that AI models may fail to anticipate unprecedented market events, such as the COVID-19 pandemic or the 2022 Russian invasion of Ukraine. Therefore, it is essential to combine AI techniques with expert judgment and rigorous out-of-sample testing.

The growing availability of alternative data and advances in computational power have further expanded the possibilities for AI-driven strategy screening, enabling the processing of larger datasets and the exploration of more complex strategy spaces.

The table names the four AI capabilities the section lists and the screening problem each one addresses.

CapabilityWhat it addsProblem it addresses
Pattern recognitionNon-linear signal discoveryPatterns simple statistics miss
Overfitting mitigationDropout, early stopping, ensemblesMemorizing noise in training data
Regime detectionContext-aware evaluationJudging a strategy in the wrong market state
GuardrailsWalk-forward, bootstrap, economic testsSelecting a strategy that only looks robust
The rows are the article's structure in miniature, since each capability becomes one of the sections that follow.

The flow shows the trade the section describes: more capability, more need for validation.

CapabilityAI finds patterns and detects regimes.
CostOpacity rises and historical training may not repeat.
BalanceExpert judgment plus out-of-sample testing.
The last box is the section's conclusion, stated as a condition rather than a technique.

The list records the four capabilities as the checks a screening framework has to pass, not just the features it may contain.

# What the overview asks of a screening framework
pattern  -> finds non-linear signals, but at what cost to explainability?
overfit  -> trained to generalize, not to memorize
regime   -> evaluated in the state where it will trade
guardrail-> validated before selection, not after losses
# two named events it must survive: 2020 and 2022
Each line is one capability turned into a test, and the last line is the section's reminder that history includes shocks the model never saw.

The evolution of strategy screening has mirrored advances in computational finance and data science. Early quantitative approaches in the 1980s and 1990s relied heavily on technical indicators and simple statistical models, often suffering from look-ahead bias and survivorship bias. The 2000s saw the rise of more sophisticated factor models and the beginnings of machine learning applications in finance, though computational limitations restricted model complexity. Today's AI-driven screening benefits from exponential growth in processing power, the availability of alternative datasets, and breakthroughs in deep learning architectures that can capture non-linear relationships in market data. These advances enable screening frameworks to process vast amounts of structured and unstructured data—from traditional financial statements to social media sentiment and satellite imagery—identifying patterns that would be invisible to human analysts or traditional statistical methods.

However, the increased sophistication of AI models brings new responsibilities for practitioners. The "black box" nature of complex neural networks necessitates additional validation steps to ensure that discovered patterns represent genuine market inefficiencies rather than artifacts of the modeling process. Furthermore, the rapid pace of innovation in AI techniques means that screening frameworks must be regularly updated to incorporate new methodologies while maintaining backward compatibility with established validation procedures. Successful implementation requires balancing technological advancement with rigorous scientific methodology, ensuring that AI enhances rather than undermines the integrity of the investment process.

Taipei 101 tower rising above the city at sunset, Taipei, Taiwan
Taipei 101 at sunset — one tower seen from a vantage point high enough to place it in its whole city. Screening asks for the same elevation: a view wide enough to compare strategies across the full market, not just the recent sample. Photograph via Wikimedia Commons.

Screen Design

The design of an AI-based strategy screening framework involves several key decisions:

  • Definition of the strategy space: Analysts must define the set of strategies to be evaluated, which could include technical indicators, fundamental factors, machine learning models, or hybrid approaches. The space should be broad enough to capture promising ideas but constrained enough to remain computationally tractable.
  • Choice of features and targets: Features represent the input variables used by the strategy (e.g., price movements, volume, macroeconomic indicators), while the target is the outcome to be predicted (e.g., future returns, risk-adjusted performance). Feature engineering plays a crucial role in ensuring that the inputs are meaningful and not overly correlated.
  • Model selection: Depending on the size and nature of the dataset, analysts may choose from a variety of models, including linear regression, decision trees, random forests, gradient boosting machines, and neural networks. Each model has its strengths and weaknesses in terms of interpretability, flexibility, and resistance to overfitting.
  • Training and validation methodology: To avoid overfitting, it is essential to split the data into training, validation, and test sets, and to use techniques such as cross-validation and walk-forward analysis to assess model performance on unseen data.
  • Performance metrics: Beyond simple returns, analysts should consider risk-adjusted metrics such as the Sharpe ratio, Sortino ratio, maximum drawdown, and information ratio. Additionally, metrics that assess consistency, such as the win rate and profit factor, can provide further insight.

For example, a screening framework might evaluate a set of moving average crossover strategies by training a neural network to predict future returns based on the current position of the moving averages, using a walk-forward approach to ensure that the model is retrained periodically and tested on subsequent data.

The use of alternative data, such as sentiment scores from news articles or satellite imagery of economic activity, can further enrich the feature set and improve the predictive power of the screening model.

The table records the five design decisions the section lists and the tension each one has to balance.

DecisionWhat it fixesBalance to strike
Strategy spaceWhich strategies are evaluatedBroad enough to find ideas, small enough to compute
Features and targetInputs and the outcome predictedMeaningful inputs without heavy correlation
Model selectionThe learner usedFlexibility against interpretability and overfitting
Training and validationHow performance is judgedUnseen data without discarding too much history
Performance metricsWhat counts as successRisk-adjusted return alongside consistency
Every row is a choice between capability and control, which is the same tension the article names at the overview.

The sequence restates the moving-average example as the walk-forward process the section describes.

# Screening a moving-average crossover, as described
features = position of the moving averages
target   = future return
model    = neural network
loop:
    train on the current window
    test on the next period
    retrain and repeat
# alternative data can extend the feature set
The loop is the section's one concrete example, and it shows the design decisions above already in use.

Parameter Overfitting

Parameter overfitting occurs when a model is excessively tuned to historical data, capturing noise rather than the underlying signal, resulting in poor performance on new data. This is a pervasive challenge in strategy screening, particularly when dealing with flexible models that have many parameters.

AI techniques, while powerful, can exacerbate overfitting if not properly regularized. Deep learning models, with their millions of parameters, are especially prone to memorizing the training data if not constrained.

To mitigate parameter overfitting in AI-driven strategy screening, practitioners employ several best practices:

  • Regularization: Techniques such as L1 (lasso) and L2 (ridge) regularization add a penalty term to the loss function that discouarges large weights, encouraging the model to focus on the most important features.
  • Dropout: In neural networks, randomly dropping out a fraction of neurons during training prevents the model from relying too heavily on any single neuron, improving generalization.
  • Early stopping: Monitoring performance on a validation set and stopping training when performance begins to degrade prevents overfitting to the training data.
  • Ensemble methods: Combining predictions from multiple models, such as in random forests or gradient boosting, reduces variance and improves robustness.
  • Bayesian methods: Bayesian neural networks incorporate prior distributions over weights and update them based on the data, providing a principled way to avoid overfitting.
  • Data augmentation: Artificially increasing the size of the training data through techniques such as bootstrapping or adding synthetic noise can help the model generalize better.

The table puts each mitigation beside the mechanism the section says it uses and the failure it prevents.

MitigationMechanismFailure it prevents
RegularizationPenalty on large weights (L1, L2)Reliance on unimportant features
DropoutRandomly removing neurons during trainingDependence on a single neuron
Early stoppingHalt when validation degradesFitting the training set past its signal
EnsemblesCombine random forests or boostingVariance in a single model
Bayesian methodsPriors over weights, updated by dataUnconstrained parameter values
Data augmentationBootstrap or add synthetic noiseToo little data to generalize from
The six rows act on different parts of the pipeline, which is why the section presents them as a set rather than a ranked list.

In addition to these technical measures, analysts should also consider the economic plausibility of the selected parameters. For instance, a strategy that relies on extremely specific and arbitrary parameter values (e.g., buying when the RSI is exactly 42.37) is likely overfit and should be scrutinized.

Another important aspect is the selection of the appropriate model complexity for the given dataset. A common guideline is to use the simplest model that adequately captures the patterns in the data, adhering to the principle of Occam’s razor.

Finally, it is crucial to validate the screened strategy on truly held-out data that was not used in any stage of the model development process, including feature selection and hyperparameter tuning. This ensures that the performance estimates are unbiased and reflective of real-world expectations.

The flow shows the section's three non-technical tests, which apply even when every technical mitigation is in place.

PlausibilityAre the parameter values economically sensible, or arbitrary like an RSI of 42.37?
SimplicityIs this the simplest model that captures the pattern?
Truly unseen dataWas the test set untouched by feature selection and tuning too?
The sequence is the section's order of skepticism: a technically regularized model can still fail any one of these tests.

The list records the section's warning as a rule of thumb about parameter precision.

# Parameter review, from the section
specific value    -> suspicious (e.g. RSI exactly 42.37)
simplest model    -> preferred (Occam's razor)
out-of-sample set -> untouched by selection and tuning
# a precise number is not evidence of a real effect
The three lines are the section's own tests, compressed; none of them requires a new dataset to apply.

The flow separates the six technical fixes from the three judgment tests, in the order the section presents them.

ConstrainRegularize, drop out, stop early, ensemble, use priors, augment.
InspectAre the chosen parameter values economically plausible?
SimplifyIs a simpler model sufficient?
ConfirmWas the final test set untouched by the whole process?
The first box is a toolkit; the next three are questions the toolkit cannot answer on its own.

Regime Detection

Market regimes refer to distinct states of the financial markets characterized by different levels of volatility, trends, and correlations. Examples include bull markets (rising prices, low volatility), bear markets (falling prices, high volatility), sideways markets (range-bound prices), and high-volatile episodes (such as during financial crises). Regimes can also be defined based on economic factors, such as periods of high inflation or low interest rates.

The ability to detect regime shifts is critical for strategy screening because a strategy that performs well in one regime may fail in another. For example, a trend-following strategy may excel in a strong trending market but lose money in a choppy, sideways market. By detecting regime changes, analysts can adjust their strategy evaluations to ensure that performance is assessed in relevant contexts.

AI techniques, particularly unsupervised learning and hidden Markov models, are well-suited for regime detection because they can identify patterns in data without requiring predefined labels.

Common approaches to regime detection using AI include:

  • Hidden Markov Models (HMMs): HMMs assume that the observed data (e.g., returns, volatility) is generated by an underlying sequence of hidden states (regimes). The model learns the transition probabilities between states and the emission probabilities of observations given each state, allowing it to infer the most likely regime at each point in time.
  • Gaussian Mixture Models (GMMs): GMMs assume that the data is generated from a mixture of several Gaussian distributions, each representing a different regime. The model estimates the parameters of each Gaussian and the weight of each mixture component, enabling the assignment of data points to the most likely regime.
  • Clustering algorithms: Techniques such as k-means or hierarchical clustering can group similar data points together, potentially revealing distinct regimes based on similarities in volatility, returns, or other features.
  • Neural networks: Recurrent neural networks (RNNs) and long short-term memory (LSTM) networks can learn temporal dependencies in the data and predict regime shifts based on historical patterns.
  • Change-point detection: Algorithms designed to detect abrupt changes in the statistical properties of a time series, such as the mean or variance, can identify potential regime boundaries.

The table sets the four market states the section names against the volatility and trend that define them.

RegimePrice directionVolatility stated
BullRisingLow
BearFallingHigh
SidewaysRange-boundNot stated as a separate level
Crisis episodeUnspecifiedHigh
The classification is the section's, and the blank cell is deliberate: the prose does not assign a single volatility level to a sideways market.

The second table lists the five detection methods and the idea each one uses.

MethodHow it infers a regime
Hidden Markov ModelHidden states with learned transition and emission probabilities
Gaussian mixtureA mixture of distributions, one per regime
ClusteringGrouping similar data points by volatility or return
Recurrent networksTemporal dependencies in historical sequences
Change-point detectionAbrupt shifts in mean or variance
The methods differ in machinery but share one premise: the market moves between states rather than following a single distribution.

Once regimes are identified, analysts can evaluate strategy performance within each regime separately, providing a more nuanced understanding of how the strategy behaves under different market conditions. This regime-specific analysis can inform decisions such as whether to deploy a strategy only in certain regimes or to combine multiple strategies that are complementary across regimes.

For example, an analyst might use an HMM to detect three regimes in the S&P 500 returns: low volatility, medium volatility, and high volatility. They could then evaluate a mean-reversion strategy in each regime and find that it performs well in low and medium volatility regimes but poorly in high volatility regimes, suggesting that the strategy should be avoided during periods of heightened market turbulence.

Regime detection also has applications in risk management, where it can be used to adjust position sizes or leverage based on the current market state, thereby reducing the likelihood of large losses during adverse conditions.

The bars show the section's worked example qualitatively: the same mean-reversion strategy judged in three volatility regimes, with no measured returns invented.

Low volatilityperforms well
Medium volatilityperforms well
High volatilityperforms poorly
The lengths encode only the section's three verdicts, not returns; the point is that one strategy can change sign across regimes.

The flow restates the section's use of regime detection in evaluation and then in risk management.

DetectLabel each period by its most likely regime.
EvaluateScore the strategy inside each regime separately.
SelectDeploy only where it works, or pair complementary strategies.
SizeAdjust position size or leverage to the current state.
The last box is the section's risk-management application, which uses the same labels for a different decision.

The list restates the section's worked example as a decision rule an analyst can reuse.

# Regime-conditional evaluation, from the section
label   : low, medium, or high volatility (HMM example)
score   : the strategy separately in each label
rule    : deploy where it works; avoid where it does not
sizing  : adjust exposure to the current state
# the same HMM labels drive both the screen and the risk limit
The example's three labels are the section's own, and the rule is what its mean-reversion result implies.

Guardrails

Guardrails are safeguards implemented in strategy screening frameworks to ensure that the selected strategies are robust, reliable, and aligned with the investor’s objectives and constraints. They help prevent the selection of strategies that are based on spurious correlations, suffer from excessive risk, or fail to meet practical considerations such as liquidity and capacity.

Common guardrails in AI-driven strategy screening include:

  • Out-of-sample testing: As emphasized earlier, evaluating the strategy on data that was not used in any stage of the model development process is the most critical guardrail against overfitting.
  • Walk-forward analysis: Instead of a single train-test split, the strategy is periodically retrained on rolling windows of data and tested on the subsequent period, simulating real-time trading and reducing the risk of overfitting to a specific historical period.
  • Bootstrap testing: Repeatedly resampling the data with replacement and evaluating the strategy on each sample provides a distribution of performance outcomes, allowing analysts to assess the stability and reliability of the strategy.
  • Economic significance testing: Beyond statistical significance, analysts assess whether the strategy's performance is economically meaningful after accounting for transaction costs, slippage, and market impact. A strategy that is statistically significant but economically negligible may not be worth pursuing.
  • Liquidity and capacity constraints: Strategies that require trading large volumes in illiquid markets may incur significant slippage or be impossible to scale. Guardrails should ensure that the strategy is feasible given the available liquidity and capacity constraints.
  • Turnover and transaction cost analysis: High-turnover strategies can generate significant costs that erode returns. Analysts should estimate the expected turnover and associated costs to ensure that the strategy remains profitable after expenses.
  • Exposure limits: To prevent excessive concentration in any single asset, sector, or factor, analysts may impose limits on the maximum exposure allowed for the strategy.
  • Robustness to parameter variations: Testing the strategy's performance under small variations in its parameters can reveal whether it is overly sensitive to specific values, indicating potential overfitting.
  • Qualitative judgment: Finally, expert review is essential to assess the economic plausibility of the strategy, identify any hidden assumptions, and ensure that it aligns with the investor’s beliefs and constraints.

The table sorts the nine guardrails the section names by the kind of failure each one is meant to stop.

The rows are not alternatives: the nine cover statistical, economic, operational, and human failures, and a gap in any column leaves that kind of risk open.
GuardrailFailure it catches
Out-of-sample testingOverfitting to the development data
Walk-forward analysisOverfitting to one historical period
Bootstrap testingFragile results that depend on one sample
Economic significanceAn edge too small to survive costs
Liquidity and capacityA strategy that cannot be scaled
Turnover and cost analysisCosts that erode the stated return
Exposure limitsExcessive concentration
Parameter robustnessSensitivity to arbitrary values
Qualitative judgmentHidden assumptions and implausibility

Implementing these guardrails requires a systematic approach. For example, a screening framework might first apply a battery of statistical tests to eliminate strategies that show signs of overfitting, then proceed to economic significance testing, and finally conduct a qualitative review of the remaining candidates.

The use of AI can enhance the effectiveness of these guardrails. For instance, machine learning models can be used to predict the likelihood of overfitting based on features such as the number of parameters, the size of the training set, and the validation performance. Similarly, AI can assist in regime detection to ensure that guardrails are applied in the appropriate context.

Ultimately, guardrails are not about eliminating all risk—some level of risk is inherent to investing—but about ensuring that the selected strategies have been rigorously vetted and are more likely to deliver consistent performance in real-world conditions.

The flow is the three-stage sequence the section describes, from statistics to economics to judgment.

StatisticsA battery of tests removes strategies showing overfitting.
EconomicsSurvivors must remain meaningful after costs and slippage.
ReviewAn expert examines plausibility, assumptions, and fit with the investor.
The order matters because each stage is cheaper than the one after it, so weak candidates are removed before expert time is spent.

The list restates the section's final point as the boundary of what a guardrail can promise.

# What guardrails can and cannot do, from the section
can:     remove spurious, fragile, or impractical strategies
can:     raise the chance of consistent live performance
cannot:  eliminate risk, which is inherent to investing
# "vetted" is the claim; "risk-free" is not
The two lists are the section's own distinction between rigorous selection and a guarantee.

The table returns to the three guardrail groups and records how AI is said to help with each one.

GroupAI assistance the section names
Statistical testsPredict the likelihood of overfitting from parameters, sample size, and validation score
Economic testsApply the checks in the context detected by the regime model
Qualitative reviewExpert judgment remains the last step
The third row is the limit of the section's optimism: AI improves the tests but does not replace the reviewer.

Actionable steps for analysts

  1. Define a clear and economically plausible strategy space

    Begin by specifying the types of strategies to be evaluated, ensuring that they are grounded in sound financial theory and practical feasibility.

  2. Invest in feature engineering and data quality

    Spend time on creating meaningful features that capture the underlying signals while minimizing noise, and ensure that the data is clean, complete, and consistent.

  3. Select appropriate models and control complexity

    Choose models that match the characteristics of the data and apply regularization techniques to prevent overfitting.

  4. Implement rigorous validation procedures

    Use out-of-sample testing, walk-forward analysis, bootstrap testing, and other methods to assess performance on unseen data and ensure robustness.

  5. Detect and account for market regimes

    Employ techniques such as hidden Markov models or Gaussian mixture models to identify shifts in market conditions and evaluate strategy performance within each regime.

  6. Apply economic significance and practicality guards

    Ensure that the strategy's performance is meaningful after costs and that it meets liquidity, capacity, and other operational constraints.

  7. Seek expert judgment and qualitative review

    Finally, involve experienced analysts to review the screened strategies for plausibility, alignment with investment goals, and any hidden risks.

The table restates the seven steps as the artifact each one should leave behind.

The artifacts are the audit trail for the screening decision, one per step in the section's list.
StepArtifact it produces
Strategy spaceA defined, financially plausible list of candidates
Features and dataA clean, meaningful feature set
Model choiceA documented complexity and regularization choice
ValidationOut-of-sample, walk-forward, and bootstrap results
RegimesRegime labels and performance within each
EconomicsAfter-cost and capacity assessment
Expert reviewA recorded qualitative judgment

Conclusion

AI has revolutionized strategy screening by introducing powerful tools for pattern recognition, overfitting mitigation, regime detection, and guardrails implementation. While the technology offers significant advantages, it also requires careful application to avoid new pitfalls such as model opacity and overreliance on historical data. By combining AI techniques with expert judgment and robust validation procedures, analysts can enhance the reliability and effectiveness of their strategy selection process, leading to better-informed investment decisions and improved long-term performance.

The table reduces the article to the four tools it adds and the caution that comes with each.

ToolWhat it addsCaution stated
Pattern recognitionSignals beyond simple statisticsOpacity of the model
Overfitting mitigationBetter out-of-sample behaviorReliance on historical data
Regime detectionContext for evaluationLabels are inferred, not given
GuardrailsRigorous vettingRisk cannot be eliminated
The third column is the article's own caveat beside each tool, which is why the conclusion pairs capability with judgment.

The flow is the article's closing formula, in the order it states it.

AI techniquesPattern recognition, mitigation, regimes, guardrails.
Expert judgmentPlausibility and hidden assumptions examined.
Robust validationOut-of-sample and after-cost evidence.
ResultStrategy selection that is more reliable and better informed.
The result box rests on all three inputs, which is the article's answer to the opacity it warns about.

Quick reference — the rules at a glance

This article's argument can be reduced to a sequence of decisions. First, define the strategy space before building anything: it should be broad enough to contain good ideas and narrow enough to compute. Second, the quality of the features decides the quality of the screen, so invest in meaningful, uncorrelated inputs. Third, match model complexity to the size of the data and regularize; a deep network with millions of parameters will memorize noise unless it is constrained. Fourth, judge performance only on data the development process never touched, using walk-forward retraining, bootstrap resampling, and a test of economic significance after costs. Fifth, treat regimes as context rather than noise: a mean-reversion strategy that works in low and medium volatility can fail in high volatility, so evaluate inside each regime and size positions accordingly. Sixth, let a person review what the tests cannot: plausibility, hidden assumptions, and fit with the investor's goals. The article's closing caution is that none of this removes risk; it only raises the likelihood that the selected strategy has been vetted. The table and flow below gather those rules for reuse.

The table collects the article's rules as a working sequence, one decision per row.

The third column is the article's own warning for each decision, kept beside the rule so the reference is not read as a guarantee.

The flow shows the order in which the article applies those decisions, from design to judgment.

1. DesignDefine the space, features, and model.
2. TestValidate out of sample and after costs.
3. ContextSplit results by regime before concluding.
4. ReviewA person accepts or rejects the candidate.
A failure at any box returns the strategy to design; the article never lets a good later result excuse a weak earlier test.

The checklist is the article's rules reduced to one line per stage, for use before a strategy is presented.

space    -> broad enough for ideas, small enough to compute
features -> meaningful and not heavily correlated
model    -> complexity matched to data; regularized
validate -> out-of-sample + walk-forward + bootstrap
economic -> meaningful after costs, slippage, capacity
regime   -> score inside each state; size to the current one
review   -> a person checks plausibility and assumptions
Each line is one section of the article in compressed form, and skipping one leaves the risk that section was written to catch.
DecisionRuleFailure it prevents
Strategy spaceBroad but tractableMissing ideas or an uncomputable search
FeaturesMeaningful and uncorrelatedNoise dressed as signal
ModelMatch complexity; regularizeMemorizing the training set
ValidationOut-of-sample, walk-forward, bootstrapOverstated performance
EconomicsAfter costs and capacityAn untradeable edge
RegimesEvaluate inside each stateJudging a strategy out of context
ReviewExpert judgment retainedOpacity and hidden assumptions