Appendix D. The Sensory AI Toolchain

This appendix is a working shelf, not a survey. Every entry is a library you can install today and point at a real signal: an accelerometer trace, a LiDAR sweep, an EEG montage, a radar cube. The groups follow the arc of a sensory AI project, from loading raw arrays to shipping a quantized model onto a microcontroller. Pick one tool per row, learn its data model deeply, and treat the rest as fallbacks. A stack of six libraries you understand beats twenty you have merely imported.

Core numerics and deep learning

The foundation is shared with all of machine learning, so we keep it short. These are the packages every later group imports.

ToolPurpose
PythonThe glue language for the entire stack.
NumPyThe n-dimensional array that every sensor buffer becomes.
SciPyFiltering, FFTs, interpolation, and classical signal processing.
pandasLabeled tabular and time-indexed data wrangling.
PolarsA faster, multi-threaded DataFrame for large logs.
PyTorchThe default deep learning framework in this book.
PyTorch LightningTraining-loop structure without boilerplate.
scikit-learnClassical models, pipelines, and honest baselines.

Time series

Most sensor streams are time series before they are anything else. These libraries give you windowing, forecasting, and classification with a consistent API.

State estimation

When a signal reflects a hidden physical state, you estimate rather than classify. These cover the recursive filters and factor graphs of Part on fusion.

Foundation models and self-supervised learning

Pretrained backbones now exist for time series, not just text and images. Reach for these when labels are scarce and the signal family is common.

3D and perception

Point clouds, meshes, and radiance fields need their own machinery. These handle geometry, detection, and neural scene representation.

Biosignals

ECG, EEG, EMG, PPG, and respiration carry their own conventions and file formats. These libraries encode decades of clinical practice.

Radar and event-based sensing

Non-optical and neuromorphic sensors reward specialized tooling for their unusual data shapes.

Robotics and simulation

Synthetic sensors let you pretrain and stress-test before touching hardware.

Edge deployment

A sensory model that cannot run at the sensor is only half finished. These target laptops down to microcontrollers.

Uncertainty and evaluation

Deployed sensory systems must know when to abstain. These add calibrated confidence, conformal guarantees, and out-of-distribution detection.

Operations and serving

The last group turns experiments into systems: tracking, federated and streaming learning, and serving.

A minimal project touches one tool from most groups. A gesture recognizer, for example, might load an IMU log with pandas, window it with aeon, fine-tune a tsai model, calibrate it with MAPIE, export through ExecuTorch, and track the whole run in MLflow. Start narrow, measure honestly, and add a library only when the signal itself demands it.