Design paper
Continuous market sensing from commerce signals: separating demand from noise
Abstract
Periodic market research (surveys, panels, quarterly reports) arrives after the conditions it describes have moved. We describe a design for continuous market sensing in a multi-region commerce setting: it ingests behavioural, operational, payment and external signals, estimates whether an apparent change in demand is real, and passes confirmed changes to decisions on assortment, promotion, localisation and delivery promises. The central problem is not detection but confirmation. Spikes in search or sales can come from bots, seasonality, stock-outs or payment failures as easily as from demand. Our design therefore puts causal checks (synthetic controls, placebo tests, per-cohort effect estimates) and multi-signal confirmation between detection and action, and argues each part from published work. We give a worked model of how a confirmation rule trades detection against false alarms, and list what would have to be measured before any outcome could be claimed. This is a design proposal, not a measured result.
Method. Design paper: the architecture is argued from the cited literature; we report no measurements of our own. Table 2 is a worked model with its inputs shown and labelled hypothetical.
1Context and motivation
Market research is often episodic: a quarterly survey, a panel, a commissioned report, a sales review. Between those points, intent shifts during promotions and shocks, demand moves between search, social and marketplace channels, and some demand never becomes visible in sales because stock, delivery or payment friction stops it. A commerce platform already observes many of these signals continuously, as a side effect of operating.
We describe a design that reads those signals continuously, across regions and categories, and passes confirmed changes in demand to the systems that act on them: assortment, promotion, localisation and delivery promises. The hard part is not detecting a change. A spike in searches can be a bot, a holiday, a reformulation caused by a broken filter, or a real shift in demand. A drop in sales can be falling demand or a stock-out. The design is built around confirming a change before acting on it. We describe the design and its reasoning; we have not measured its effects.
2Design principles
- Event first. State changes arrive as events with contracts; batch processing supplements them.
- Confirm before acting. An apparent change in demand is checked against confounders and against independent signals before any decision uses it1.
- Effects over associations. Where an action is taken, its effect is estimated by cohort, not inferred from correlation2.
- Several horizons. Nowcasts for immediate decisions, forecasts for capacity and assortment.
- Several resolutions. Signals are kept at product, category, corridor, region and macro levels.
- People confirm high-impact findings. Analysts review recommendations above a set impact level, with an explanation of the model's output3.
- Traceable. Lineage runs from raw signal to decision.
3Architecture
3.1Ingest and data contracts
Behavioural, operational and external signals arrive on streaming pipelines and are checked against versioned schemas for types, enumerations and null rates. Each event carries consent and residency flags, and processing stays in the event's region. Events can arrive twice or late, so the ingest layer deduplicates and uses event-time watermarks to decide when an aggregate is complete4. Each signal has a freshness target matched to its use: behavioural signals that drive same-day decisions need minutes, while macro indicators can be daily.
3.2Canonical signal store
Conformed entities (user, session, product, merchant, corridor, payment instrument) give every model the same definitions. A feature store serves the same values online and offline, with an owner, refresh cadence and quality monitors per feature. Distribution drift on key fields is measured as the Kullback-Leibler divergence from a reference window5.
3.3Causal and predictive services
- Forecasting and nowcasting. Seasonal time-series models for medium-horizon demand6. Gradient-boosted trees for fast tabular scoring7, and Transformer sequence models for high-frequency behavioural streams where latency allows8. Hierarchical models share strength across regions and categories where data is sparse.
- Synthetic controls. When a region or category shows an apparent change and no experiment is running, the expected path without the change is built from a weighted combination of comparable units, and the observed path is compared with it. Placebo tests, which apply the same procedure to units where nothing happened, show how large a gap arises by chance9.
- Per-cohort effects. When an action is taken in response to a signal, its effect is estimated per cohort with honest tree-based estimators2.
- Causal graphs. Each recurring decision has a written causal graph naming its confounders, for example stock-outs that suppress sales of a product whose demand is rising1.
- Anomaly detection on seasonally adjusted series flags sudden shifts for confirmation.
- Explanations. Tree models report local feature contributions, so an analyst can see which signals moved a score3.
3.4Decision layer and action connectors
Confirmed changes feed constrained decisions: a contextual bandit allocates promotional exposure, with minimum-exposure quotas so that small merchants and new products are not starved of the impressions their estimates need10; planners coordinate assortment, promotion and supply. Connectors deliver to merchandising tools, content management, promotion rules and supply orchestration, each with a rollback path to the previous state.
4Signals and what can mimic them
Table 1 lists the signal families, what a change in each may indicate, what else can produce the same change, and the check the design applies before acting.
| Signal family | A change may indicate | Can also be caused by | Check before action |
|---|---|---|---|
| Search queries and reformulations | Emerging or unmet demand | Bots, broken filters, holiday terms | Bot filtering; seasonal adjustment; synthetic control on comparable categories9 |
| Clickstream, dwell, cart edits | Stage of the buyer's decision | Page changes, latency | Compare with a holdout of unchanged pages11 |
| Sales and conversion | Demand change | Stock-outs, payment declines, delivery fees | Causal graph with stock and payment as confounders1 |
| Stock, substitutions, promise accuracy | Supply limits on visible demand | Carrier outages | Separate supply-side from demand-side series |
| Authorization rates, declines, disputes | Payment friction, loss of trust | Issuer policy changes | Per-issuer and per-instrument breakdown2 |
| Exchange rates, holidays, local events, weather | External demand shifts | Calendar effects already in the baseline | Seasonal models with event regressors6 |
| Search interest and social trend summaries | Brand or category momentum | Campaigns, coordinated posting | Require corroboration from a behavioural signal |
| Support topics, refund reasons | Product or localisation problems | A single incident or outage | Track by topic over time, not as single spikes |
Source: our design, with the works cited in the table.
Two of these families need a note on interpretation. Search focus (how narrow and consistent a buyer's queries become) is used as a signal of where the buyer is in the decision, not only of what they want. A field experiment by an online travel firm found that ads showing the specific products a consumer had viewed were, on average, less effective than generic ads, and stopped underperforming only when browsing suggested the consumer's preferences had narrowed12. The design therefore treats a shift towards specific content as appropriate only once signals indicate narrowed intent. Trust signals (disputes, refunds, support topics) are tracked because online purchase intention depends on trust in the seller, alongside the usefulness and ease of use of the site13.
5A worked model of multi-signal confirmation
The design acts on a suspected demand change only when it is corroborated by more than one independent signal family. Table 2 shows why, and at what cost, under stated assumptions.
| Rule | Detectors | False alarm probability (computed) | Detection probability (computed) |
|---|---|---|---|
| Act on any single detector | 1 | 0.05 | 0.80 |
| Act when 2 of 2 agree | 2 | 0.0025 | 0.64 |
| Act when at least 2 of 3 agree | 3 | 0.00725 | 0.896 |
Source: Worked model; inputs in the table.
For 2 of 2, the false alarm probability is 0.05 x 0.05 and the detection probability 0.80 x 0.80. For at least 2 of 3, the false alarm probability is 3 x 0.05^2 x 0.95 + 0.05^3 and the detection probability 3 x 0.80^2 x 0.20 + 0.80^3. Under these inputs, requiring two of three independent detectors both lowers false alarms and raises detection compared with a single detector, while requiring two of two buys fewer false alarms at the cost of missing more real changes. The result depends entirely on the independence assumption. A bot campaign that inflates both search volume and social mentions defeats it, which is why Table 1 pairs external signals with behavioural ones that bots are less likely to move together.
6From sensing to action
- Assortment. A rising cluster of reformulated queries and wishlist additions, confirmed against a synthetic control, becomes a recommendation to merchandising to source or promote matching products. The recommendation is suppressed for products with high stock-out risk.
- Promotion. Price response is estimated from experiments, not from observational sales that seasonality confounds. Promotional exposure is allocated by the constrained bandit, with guardrails against excessive discounting.
- Localisation. When reformulation patterns or support topics in one language diverge from others, the content system tests alternative copy for that locale.
- Delivery promises. When forecast congestion threatens promise accuracy for a corridor, exposure of affected products and their promised windows are adjusted.
- Payments. Changes in decline codes by instrument and region are separated from demand changes, so that a payment problem is not read as falling demand.
7Experimentation and evaluation
Before any outcome could be claimed for this design, each sensing-to-action path would need to pass the following protocol.
- Pre-registration of hypothesis, target metric, guardrails and minimum detectable effect in an experiment registry11.
- Sequential testing with always-valid p-values, so that monitoring a running test does not inflate false positives14.
- Variance reduction using pre-experiment values of the metric as a covariate15.
- Offline evaluation of new policies with inverse-propensity-weighted estimates on logged decisions, and synthetic controls with placebo tests where experiments are not possible9.
- Causal diagnostics: overlap and balance checks, and sensitivity analysis for unobserved confounding1.
- Detector evaluation. The quantities that Table 2 assumes (false alarm and detection rates per detector, and the correlation between detectors) would themselves be estimated on labelled historical periods.
- Holdouts kept after launch to monitor drift and policy effects.
Metrics follow from the decisions. Revenue per session, contribution margin (revenue less fulfilment, payment and return costs), promise accuracy (one minus the absolute gap between actual and promised delivery dates divided by the promised window), cancellation rate by promise-accuracy decile, and the fairness gap (largest minus smallest estimated effect across protected cohorts). Thresholds for these are left as parameters, to be set from measured baselines.
8Regional adaptation
Regions differ in which signals they have, which rules apply and what their calendars contain. Some have sparse payment data and rich search data, others the reverse. The design handles this with per-region feature sets, language-specific tokenisation for search and support text, regional holiday calendars as regressors, hierarchical priors that share strength across similar regions, and per-region processing of personal data. Mobile-heavy regions run lighter models within the same latency budget.
9Quantitative and qualitative evidence
Behavioural signals say what changed, not why. The design keeps three qualitative inputs alongside them: short surveys and intercepts that label sentiment against which inferred friction can be checked; regional reviewers who annotate anomalies that models may misread, such as local holidays or language shifts; and merchant feedback, which can flag false positives and local constraints and becomes labelled data. Operators can pause or adjust a policy when qualitative evidence contradicts a model, and each override is logged.
10Governance and privacy
Each request carries one identifier from ingest through feature, decision and action; model version, feature snapshot and cohort tags are logged, and a replay harness can re-run logged decisions. An experiment registry records hypotheses and guardrails11. A data catalogue records owners and sensitivity classes. New signals and cross-border flows go through a data protection impact assessment. The design collects only the fields a decision uses, hashes identifiers, keeps personal data in its region, honours opt-outs, and avoids interface patterns that push buyers towards choices against their interest. Merchants see when and why their products are promoted or throttled.
11Limitations
- No measurements. We have not measured whether this design detects real demand changes earlier, or whether acting on them changes any outcome.
- Unobserved confounding. Synthetic controls and causal graphs reduce confounding but cannot exclude it, and natural experiments are uneven across regions1.
- Independence in Table 2. The worked model assumes detectors are independent given the true state. Correlated failures, from bots or shared upstream outages, would make multi-signal rules much weaker than the table suggests.
- Signal meaning is untested. Query focus as a stage signal rests on one field experiment in one industry12; whether it carries over to other categories is an open question.
- Sparse markets. Hierarchical priors reduce noise in small regions but can also pull real local differences towards the average.
- Attribution. Multi-channel journeys blur which signal or action caused an outcome.
- Adversarial input. Bots and spam can pollute search and social signals; detection reduces this but does not remove it.
- Operator judgement. How analysts read explanations and when they override models varies, and affects outcomes.
12Conclusion
We have described a continuous market sensing design whose core is confirmation: signals are checked against what can mimic them, against synthetic controls and placebo tests, and against each other before any decision uses them. Table 1 lists the confounders for each signal family; Table 2 shows, with hypothetical inputs, how a two-of-three confirmation rule trades detection against false alarms and how much it depends on independence. The design's own performance is unmeasured. The next step is to estimate detector error rates and their correlation on labelled historical periods, then run the evaluation protocol on one category in one region.
References
- 1
Pearl, J. (2009). Causality: Models, reasoning, and inference (2nd ed.). Cambridge University Press. doi.org/10.1017/CBO9780511803161
- 2
Athey, S., & Imbens, G. (2016). Recursive partitioning for heterogeneous causal effects. Proceedings of the National Academy of Sciences, 113(27). doi.org/10.1073/pnas.1510489113
- 3
Lundberg, S. M., & Lee, S.-I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems 30 (arXiv:1705.07874). arxiv.org/abs/1705.07874
- 4
Kleppmann, M. (2017). Designing data-intensive applications: The big ideas behind reliable, scalable, and maintainable systems. O'Reilly Media. dataintensive.net/
- 5
Kullback, S., & Leibler, R. A. (1951). On information and sufficiency. The Annals of Mathematical Statistics, 22(1). doi.org/10.1214/aoms/1177729694
- 6
Box, G. E. P., Jenkins, G. M., Reinsel, G. C., & Ljung, G. M. (2015). Time series analysis: Forecasting and control (5th ed.). Wiley. www.wiley.com/en-us/Time+Series+Analysis%3A+Forecasting+and+Control%2C+5th+Edition-p-9781118675021
- 7
Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. doi.org/10.1145/2939672.2939785
- 8
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. Advances in Neural Information Processing Systems 30 (arXiv:1706.03762). arxiv.org/abs/1706.03762
- 9
Abadie, A., Diamond, A., & Hainmueller, J. (2010). Synthetic control methods for comparative case studies: Estimating the effect of California's tobacco control program. Journal of the American Statistical Association, 105(490). doi.org/10.1198/jasa.2009.ap08746
- 10
Patil, V., Ghalme, G., Nair, V., & Narahari, Y. (2021). Achieving fairness in the stochastic multi-armed bandit problem. Journal of Machine Learning Research, 22. www.jmlr.org/papers/v22/20-704.html
- 11
Kohavi, R., Tang, D., & Xu, Y. (2020). Trustworthy online controlled experiments: A practical guide to A/B testing. Cambridge University Press. doi.org/10.1017/9781108653985
- 12
Lambrecht, A., & Tucker, C. (2013). When does retargeting work? Information specificity in online advertising. Journal of Marketing Research, 50(5). doi.org/10.1509/jmr.11.0503
- 13
Gefen, D., Karahanna, E., & Straub, D. W. (2003). Trust and TAM in online shopping: An integrated model. MIS Quarterly, 27(1). doi.org/10.2307/30036519
- 14
Johari, R., Koomen, P., Pekelis, L., & Walsh, D. (2017). Peeking at A/B tests: Why it matters, and what to do about it. Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. doi.org/10.1145/3097983.3097992
- 15
Deng, A., Xu, Y., Kohavi, R., & Walker, T. (2013). Improving the sensitivity of online controlled experiments by utilizing pre-experiment data. Proceedings of the Sixth ACM International Conference on Web Search and Data Mining. doi.org/10.1145/2433396.2433413
Cite this paper
Tanqory Research (2025). Continuous market sensing from commerce signals: separating demand from noise. Tanqory. https://tanqory.com/research/20251230-ai-assisted-market-sensing