Define the device task
Decide the prediction or decision required on-device (e.g. anomaly detection or binary health status) and collect representative telemetry for that label.
End-to-end edge AI operations. Measure latency and footprint.
This project frames an end-to-end edge AI operations workflow: define the prediction task for devices, build a reproducible baseline model, measure runtime cost and sketch deployment needs. Key concerns are latency, model size and robustness to noisy sensor telemetry.
Learning concept · Not a validated service
This project frames an end-to-end edge AI operations workflow: define the prediction task for devices, build a reproducible baseline model, measure runtime cost and sketch deployment needs. Key concerns are latency, model size and robustness to noisy sensor telemetry.
A proposed application: monitor device state from telemetry and surface concise alerts to technicians. Any deployment must keep a human in the loop for operational decisions and not be used for critical automated control without thorough validation.
Decide the prediction or decision required on-device (e.g. anomaly detection or binary health status) and collect representative telemetry for that label.
Fit a small, interpretable model on a training split and log hyperparameters and versions so experiments are repeatable.
Evaluate classification metrics relevant to the decision cost and measure single-sample latency, memory and node count on representative hardware.
Convert the model for the target runtime (TFLite/ONNX), instrument drift and input checks, and prepare rollback and validation processes.
The supplied starter generates synthetic classification data with sklearn.make_classification, fits a DecisionTreeClassifier, times repeated single-sample predictions to estimate latency, and prints tree depth and node count.
X, y = make_classification(n_samples=1000, n_features=12, n_informative=8, random_state=42)
model = DecisionTreeClassifier(max_depth=6, random_state=42)
model.fit(X, y)
sample = X[:1]
start = time.perf_counter()
for _ in range(1000):
model.predict(sample)The starter uses synthetic data (make_classification) rather than real sensor telemetry, trains a single DecisionTree only, and only measures an in-process repeated-predict latency. It does not include model conversion (TFLite/ONNX), device-specific benchmarking, telemetry ingestion, drift detection or an API/dashboard.
A proposed extension: replace the synthetic dataset with labelled device telemetry, add experiment tracking, convert the model to TFLite, and run latency/memory checks on the target edge hardware.
This is a potential application pathway, not a delivered product. The supplied starter does not implement this service or validate it with real users.
Networkers Home runs this topic inside its Network Engineering Course, with placement support and hands-on labs.