How databricks-industry-solutions/iot-anomaly-detection works
This Databricks solution accelerator demonstrates a manufacturing IoT anomaly-detection workflow: produce or receive sensor events, persist them through Bronze and Silver Delta tables, train and register a classifier, then score new Silver events into Gold. RUNME configures the multi-step job; its task list documents the notebook order. The README also describes alternative message buses and near-real-time dashboards, but the sampled implementation shows Kafka and does not expose dashboard data wiring, so those links are not inferred. Configuration is shared through the notebook utility.
Main entry points: RUNME.py Job setup · 01_introduction_and_bronze.py Kafka ingestion · 04_inference.py Stream anomaly scoring · 02_silver.py Parse and transform
Components 16
Event Ingestion
- Synthetic IoT generator
util/generate-iot-data.py - Kafka topic
- Kafka ingestion
01_introduction_and_bronze.py
Lakehouse Processing
- Bronze Delta table
01_introduction_and_bronze.py - Parse and transform
02_silver.py - Silver Delta table
02_silver.py
Modeling and Inference
- Label and feature data
03_train.py - Feature Delta table
03_train.py - Train and tune classifier
03_train.py - MLflow model registry
- Stream anomaly scoring
04_inference.py - Gold predictions table
04_inference.py
Workflow and Insights
- Job setup
RUNME.py - Notebook configuration
util/notebook-config.py - SQL dashboard
dashboards/IoT Streaming SA Anomaly Detection.dbdash
Other components
- Accelerator user
Connections 23
- Accelerator user → Job setup: runs setup
README.md - Job setup → Kafka ingestion: configures task
RUNME.py - Job setup → Parse and transform: configures task
RUNME.py - Job setup → Train and tune classifier: configures task
RUNME.py - Job setup → Stream anomaly scoring: configures task
RUNME.py - Job setup → SQL dashboard: deploys dashboard
RUNME.py - Kafka ingestion → Notebook configuration: loads settings
01_introduction_and_bronze.py - Parse and transform → Notebook configuration: loads settings
02_silver.py - Label and feature data → Notebook configuration: loads settings
03_train.py - Stream anomaly scoring → Notebook configuration: loads settings
04_inference.py - Kafka ingestion → Synthetic IoT generator: runs notebook
01_introduction_and_bronze.py - Synthetic IoT generator → Kafka topic: writes events
util/generate-iot-data.py - Kafka ingestion → Kafka topic: reads stream
01_introduction_and_bronze.py - Kafka ingestion → Bronze Delta table: writes records
01_introduction_and_bronze.py - Parse and transform → Bronze Delta table: reads stream
02_silver.py - Parse and transform → Silver Delta table: writes transformed rows
02_silver.py - Label and feature data → Silver Delta table: reads rows
03_train.py - Label and feature data → Feature Delta table: writes features
03_train.py - Train and tune classifier → Feature Delta table: uses feature data
03_train.py - Train and tune classifier → MLflow model registry: registers model
03_train.py - Stream anomaly scoring → Silver Delta table: reads stream
04_inference.py - Stream anomaly scoring → MLflow model registry: loads production model
04_inference.py - Stream anomaly scoring → Gold predictions table: writes predictions
04_inference.py