Anomaly Detection: From Baseline to Action
Anomaly detection identifies meaningful departures from expected behavior. This explainer shows how signals, baselines, context, and alert routing turn unusual measurements into engineer-ready findings.
Loading…
Topic
8 posts about Time Series. Every summary links to the original.
See the idea
Anomaly detection identifies meaningful departures from expected behavior. This explainer shows how signals, baselines, context, and alert routing turn unusual measurements into engineer-ready findings.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Market data arrives as a stream of trades and quotes, timestamped to the microsecond, requiring aggregation into bars for AI-based forecasting. NVIDIA Megatron Core, an open-source library of GPU-optimized components, powers transformer model training at scale; this post shows offline preprocessing that turns intraday bars into patches of, for example, eight bars per patch and 32 patches per context window, and then training a small model with Megatron-LM. The preprocessing records configuration like patch length and forecast horizons in metadata and saves outputs as memory-mapped PyTorch tensors. The data loader supplies batches to distributed training while enforcing date-based splits and an embargo to prevent look-ahead bias, with reads shared within tensor-parallel groups. This framework forecasts log returns and trading volume across several horizons from each context position, supporting both point and cumulative targets with the same input representation.
IBM and Confluent have integrated IBM Granite time-series foundation models natively into Confluent’s Data Streaming Platform, making them available as built-in SQL functions in Apache Flink. The models, which have been downloaded more than 50 million times, run on CPUs in both Confluent Cloud and on-premises Confluent Platform deployments. They support forecasting, anomaly detection, and semantic intelligence on streaming data without requiring separate model training for each time series. Use cases include production optimization, store-level anomaly detection, supply chain planning, fraud detection, and trading volume forecasting across manufacturing, retail, banking, and airlines. The integration aims to deliver predictions and anomaly signals closer to real-time decisions by processing data as it flows.
ClickHouse stores time-series data such as logs, infrastructure metrics, and sales, but training a separate classical model like ARIMA for every series becomes difficult as the number of series grows. Time-series foundation models (TSFMs) promise zero-shot forecasts from a new series’ history without per-series training, and the post connects TimesFM 3.0 to ClickHouse through executable user-defined functions (UDFs) that send numerical arrays to a model service over HTTP. SQL handles aggregation, time bucketing, and filtering to construct each series before passing it to the UDF, and forecasts return arrays of named tuples with median, q10, and q90 bounds. Anomaly detection scores observations against the model’s expected value, and the same SQL-to-model approach could connect ClickHouse to tabular foundation models for predictions on structured rows. The demo uses the M5 retail sales dataset to forecast daily demand and identify unusual historical observations.
Choosing a time-series forecasting model is difficult because different architectures handle smooth industrial signals, noisy retail demand, and seasonal horizons differently. Granite Timeseries Ensemble addresses this by combining four pre-trained Granite models—PatchTST-FM-r1, PatchTST-FM-r2, FlowState-r1.1, and TTM-r3—into a single forecast without retraining or fitted weights. Two aggregation methods are provided: the Probabilistic Ensemble uses uniform probability pooling, while the IQR Ensemble adaptively weights members based on their forecast spread. On the GIFT-Eval benchmark, both ensembles outperform all individual members on aggregate MASE and MASE rank, with the Probabilistic Ensemble achieving the lowest MASE of 0.683. The ensemble offers a robust default, but users should backtest on their data and consider limitations like independent multivariate forecasting and increased inference time from loading four checkpoints.
NVIDIA Kumo Forecast (formerly NV-Tesseract Forecasting) is a multivariate time-series forecasting model that combines a pretrained Transformer backbone with Domain-Aware Representation and Retrieval (DARR). The model uses the MOMENT-1-large backbone with approximately 340 million parameters, keeping encoder and embedder weights frozen while training the forecasting head. DARR mode augments direct predictions by retrieving related patterns from historical data using k-nearest-neighbor search, blending direct forecasts with retrieved patterns. The library provides a DataFrame-first API, configurable horizons with autoregressive extension, and an interpretability framework that produces lag and feature attributions, semantic-flow diagnostics, trajectory-stability diagnostics, and optional embedding Integrated Gradients per forecast horizon. Kumo Forecast is available under Apache 2.0 license, supports input lengths of 256, 512, 1024, and 2048 observations, requires numeric temporal data, and includes an example for fine-tuning on user-supplied CSV.
ClickHouse 26.9 ships with 56 new features, 135 performance optimizations, and 464 bug fixes. Among the highlights are conditional LIMIT boundaries that control output based on ordered stream values, incremental refreshes for append-only materialized views, and disk spilling for high-cardinality DISTINCT queries that automatically spills when memory usage reaches half the limit. The CREATE TOKEN feature issues time-limited credentials with a default lifetime of 30 minutes and restricted privileges, reducing the impact of leaked keys. Arithmetic operations between DateTime and Time types now support configurable overflow behaviors—throw, saturate, or ignore. PromQL support expands in a private preview on ClickHouse Cloud, bracket syntax simplifies JSON subcolumn access, and queries for min, max, and count receive performance improvements.
IBM has released Granite Time Series PatchTST-FM-r2, a roughly 385-million-parameter foundation model for zero-shot forecasting across demand, prices, energy loads, traffic, telemetry, and other time series. The model uses conformer blocks combining multi-head self-attention with temporal convolution, 50% overlapping patches with Hamming-window weighting, overlap-and-add forecasting, contexts up to 8,192 steps, and a 99-quantile prediction head for probabilistic outputs and imputation support. On GIFT-Eval, it ranks second for both CRPS and MASE among replicable zero-shot models as of September 8, 2026, and first in that category among permissively licensed models; including pretrained models, it ranks third for CRPS and fourth for MASE. IBM provides open weights, architecture, inference code, and reproducibility code under Apache 2.0 and OpenMDW 1.0. The release also describes Python use and streaming integration through Apache Flink on Confluent Cloud.
Uber upgraded M3DB from v1.1 to v1.5 after three years on its previous open-source deployment, seeking a repeatable rollout process for a roughly 100-cluster, 5,500-node environment. The effort addressed scale-specific validation: offline benchmarks measured correctness, latency, success rates, bootstrap and tick durations, and persistence across restarts and replacements, while online shadow testing compared sampled production traffic between old and new versions. Within each cluster, upgrades were limited to one node at a time because writes used a two-thirds majority quorum. A rollout-related read-quorum incident exposed missing replica data; the cause was bootstrap misconfiguration, corrected by using “exclude_commitlog,” since production workloads did not employ WAL. Production then showed significantly lower memory usage and improved node bootstrap times, supporting continued, data-driven upgrades and contributions to M3DB's benchmarking and documentation.
The best engineering reads, once a week.