Front Matter · Why This Book Exists
8 entriesWhy the book exists, what it covers, who it is for, how to read it, a look inside, the authors, the legal page, and the series it belongs to.
- F1Why This Book ExistsTime is the hidden axis of intelligence; this book teaches forecasting, sequence models, and decision making as one connected story.
- F2What This Book CoversThe nine-part arc, from classical forecasting to sequential decision making and deployment.
- F3Who Should Read This BookEngineers, graduate students, and researchers with basic Python, linear algebra, and probability; no prior time-series experience required.
- F4What's InsideA guided preview of the book's signature elements: worked code, library shortcuts, callouts, and labs.
- F5How to Use This BookReading paths for practitioners, researchers, and self-study learners, and how the parts depend on each other.
- F6About the AuthorsWho wrote this book and how.
- F7Copyright & LegalEdition, license, and attribution.
- F8About the Hands-On AI Science SeriesThe nine-book series this volume belongs to, and the build-it-yourself approach they share.
Part I · Foundations of Temporal AI
2 chaptersWhat makes intelligence temporal, the limits of predictability, and the temporal data engineering and leakage discipline every later part depends on.
-
1Introduction to Temporal Intelligence Why time is a first-class dimension of intelligence, what we can predict, and how to read this book.
- 1.1 What Makes Intelligence Temporal?
- 1.2 Temporal Data Across Domains
- 1.3 Prediction, Reasoning, and Decision Making
- 1.4 Types of Temporal Data
- 1.5 Predictability, Entropy Rate, and the Limits of Forecasting
- 1.6 Challenges in Temporal Modeling
- 1.7 The Temporal AI Landscape and How to Read This Book
part-1-foundations/module-01-intro-temporal-intelligence/ -
2Temporal Data Engineering Time stamps, sampling, irregular observations, feature engineering, and the leakage-free evaluation protocols that keep results honest.
- 2.1 Time Stamps, Time Zones, and Event Ordering
- 2.2 Sampling, Resampling, and Aggregation
- 2.3 Missing Data and Irregular Observations
- 2.4 Feature Engineering for Temporal Data
- 2.5 Windowing, Segmentation, and Lag Construction
- 2.6 Evaluation Protocols, Backtesting, and Data Leakage
- 2.7 Reproducibility and Temporal Data Pipelines
Part II · Classical Forecasting and Time Series Analysis
6 chaptersStatistical foundations, the frequency domain, univariate and multivariate models, state-space filtering, and anomaly and change-point detection.
-
3Statistical Foundations Random processes, stationarity, autocorrelation, and decomposition: the vocabulary of classical time series.
-
4Frequency-Domain and Spectral Analysis Every series is a sum of waves; the spectrum explains periodicity, filtering, and modern frequency mixers.
-
5Univariate Forecasting Models From moving averages to ARIMA, ETS, and Prophet: the workhorses of statistical forecasting.
-
6Multivariate and Econometric Models VAR, cointegration, dynamic factors, and the GARCH family for many series and their volatility.
-
7State-Space Models and Filtering Hidden states, the Kalman filter, particle filters, and HMMs: filtering as recurrent inference.
-
8Temporal Anomaly and Change-Point Detection Spotting the unexpected and the moment a regime changes, with industrial monitoring in mind.
Part III · Temporal Deep Learning
7 chaptersSequence fundamentals, RNNs, TCNs, Transformers, structured state-space and continuous-time models, deep forecasting, and temporal foundation models.
-
9Neural Sequence Modeling Fundamentals Backpropagation through time and the gradient pathologies that motivate every later architecture.
-
10Recurrent Neural Networks LSTMs, GRUs, and seq2seq, and the bridge that reads an RNN as a learned Kalman filter.
-
11Temporal Convolutional Networks Dilated, causal convolutions and WaveNet, compared head to head with RNNs and Transformers.
-
12Attention and Transformers Self-attention, temporal encodings, and the long-sequence and efficiency tricks that make it practical.
-
13State-Space and Continuous-Time Neural Models S4 and Mamba, linear attention, and Neural ODEs and CDEs that unify RNNs, SSMs, and attention.
- 13.1 From HiPPO to Structured State-Space Models (S4, S5)
- 13.2 Selective State-Space Models (Mamba) and Hardware-Aware Scans
- 13.3 Linear Attention, RWKV, and RetNet
- 13.4 Neural ODEs, Latent ODEs, and ODE-RNNs
- 13.5 Neural CDEs and Irregularly-Sampled Data
- 13.6 Bridge: Unifying RNNs, SSMs, and Linear Attention
-
14Deep Forecasting Architectures DeepAR, N-BEATS, TFT, and the Transformer-versus-linear debate over what actually forecasts well.
-
15Temporal Foundation Models Pretrained forecasters and LLMs for time series, from Chronos and TimesFM to in-context forecasting.
- 15.1 Pretraining Paradigms for Time Series
- 15.2 Chronos, Lag-Llama, and MOMENT
- 15.3 TimeGPT, TimesFM, and Moirai
- 15.4 Tiny and Tabular Time-Series Models (TTM, TabPFN-TS)
- 15.5 LLMs for Time Series (LLMTime, Time-LLM, prompting and in-context forecasting)
- 15.6 Zero-Shot, Few-Shot, and Transfer; Future Directions
Part IV · Temporal Representation Learning
3 chaptersSelf-supervised and contrastive representations, generative temporal models, and event, point-process, and temporal-graph modeling.
-
16Learning Temporal Representations Self-supervised pretext tasks, contrastive learning, and masked modeling for time series.
-
17Generative Temporal Models Sequence autoencoders, VAEs, GANs, and diffusion models for synthesizing realistic series.
-
18Event and Sequence Modeling Marked event streams, temporal point processes, dynamic graphs, and time-to-event modeling.
Part V · Uncertainty, Online, and Adaptive Learning
3 chaptersProbabilistic and conformal forecasting, online and continual learning under drift, and adaptive systems that maintain themselves in production.
-
19Probabilistic Forecasting and Uncertainty Quantification Scoring rules, calibration, quantile forecasts, and conformal prediction for time series.
-
20Online and Continual Learning Streaming optimization, concept drift, and continual learning without catastrophic forgetting.
-
21Adaptive Temporal AI Systems Retraining triggers, production drift detection, active learning, and human-in-the-loop adaptation.
Part VI · Sequential Decision Making
8 chaptersMDPs, POMDPs, bandits and RL foundations, deep and advanced RL, optimal control and imitation, sequences as decisions, and world models.
-
22Markov Decision Processes The Markov property, value functions, Bellman equations, and dynamic programming.
-
23Partial Observability and POMDPs Belief states, approximate solvers, and recurrent and SSM-based agents that remember.
-
24Bandits and Foundations of Reinforcement Learning Multi-armed and contextual bandits, regret, and the temporal-difference roots of RL.
-
25Deep Reinforcement Learning DQNs, policy gradients, actor-critic methods, and the realities of training deep RL.
-
26Advanced Reinforcement Learning Model-based, offline, multi-agent, safe, and hierarchical RL with temporal abstraction.
- 26.1 Model-Based RL
- 26.2 Offline RL
- 26.3 Multi-Agent RL
- 26.4 Safe and Constrained RL
- 26.5 Hierarchical RL and Temporal Abstraction (options)
-
27Optimal Control and Imitation Learning LQR and MPC, behavioral cloning and DAgger, inverse RL, and preference-based RL with RLHF.
-
28Sequence Models for Decision Making RL recast as sequence modeling: Decision Transformer, return conditioning, and diffusion planners.
-
29World Models and Planning Latent environment models, Dreamer, and planning in latent space for long horizons.
Part VII · Building Intelligent Temporal Systems
3 chaptersTemporal reasoning and causality, temporal AI agents with memory and tool use, and spatio-temporal intelligence.
-
30Temporal Reasoning and Causality Temporal logic, causal discovery for time series, and counterfactual what-if analysis over time.
-
31Temporal AI Agents Agent architectures, memory systems, planning and tool use, and long-horizon credit assignment.
-
32Spatio-Temporal Intelligence Mobility, traffic, video, and dynamic spatio-temporal graphs where space and time interact.
Part VIII · Trustworthy and Deployed Temporal AI
2 chaptersInterpretability, robustness, fairness, and privacy for temporal models, then serving, monitoring, and the MLOps of streaming systems.
-
33Interpretability, Robustness, and Responsible Temporal AI Temporal saliency, adversarial robustness, fairness, federated privacy, and governance.
-
34Deploying and Operating Temporal AI Systems Streaming inference, drift alarms and retraining loops, feature stores, scaling, and incident response.
Part IX · Applications and Future Directions
2 chaptersIndustrial applications across finance, healthcare, manufacturing, energy, robotics, science, supply chain, and security, then the road toward general temporal intelligence.
-
35Industrial Applications The running datasets and application skeleton scaled to real domains: finance, healthcare, manufacturing, energy, robotics, science, supply chain, and security.
- 35.1 Finance (forecasting, volatility, risk, execution)
- 35.2 Healthcare (clinical time series, monitoring, prognosis)
- 35.3 Manufacturing and Predictive Maintenance
- 35.4 Energy and Climate
- 35.5 Autonomous Systems and Robotics
- 35.6 Scientific Discovery
- 35.7 Supply Chain, Retail Demand, and Inventory Decisions
- 35.8 Cybersecurity, Fraud, and Temporal Security Operations
-
36Toward General Temporal Intelligence Unified sequence models, multimodal temporal AI, foundation agents, and the open research frontier.
Appendices · Reference and Pedagogy
7 appendices- AMathematical Foundations and Unified NotationA single notation table that reconciles the ML, control, and statistics traditions across the book.
- BProbability and Statistics RefresherThe probability and statistics needed before the classical forecasting chapters.
- COptimization and Deep Learning BasicsGradient-based optimization and the deep learning essentials underlying Parts III to VI.
- DPyTorch for Temporal AI (and JAX notes)A practical PyTorch primer for temporal models, with notes on JAX where it helps.
- EDatasets, Benchmarks, and Evaluation ProtocolsThe datasets and benchmarks used throughout, with leakage-free evaluation protocols.
- FReproducibility, Compute, and Experiment ManagementReproducible temporal pipelines, compute budgeting, and experiment tracking.
- GSolutions to Selected ExercisesWorked solutions to a curated subset of the end-of-chapter exercises.
Capstone · An End-to-End Temporal AI System
1 project- ★Capstone Project: An End-to-End Temporal AI SystemDesign, build, evaluate, and deploy a complete temporal system spanning the book: data engineering, a forecasting or decision model, honest uncertainty quantification, and a monitored deployment.