Establish a baseline
Inspect a permitted sensor series and choose a baseline window.
Spot the unusual. Check the context.
A statistics-first exercise can flag readings outside a moving baseline using a z-score or robust median-based rule. Students should investigate seasonality and false alarms before treating any outlier as an incident.
Learning concept · Not a validated service
A statistics-first exercise can flag readings outside a moving baseline using a z-score or robust median-based rule. Students should investigate seasonality and false alarms before treating any outlier as an incident.
A facility manager could receive review-only alerts when a sensor departs from its normal range, then compare them with maintenance logs.
Inspect a permitted sensor series and choose a baseline window.
Compare z-scores with a robust median/MAD threshold and document the cutoffs.
Check flagged periods against recorded events and count false alarms.
Record human decisions and update the baseline as operating conditions change.
The supplied Python code synthesises normal and suspicious activity logs with three numeric fields and fits an IsolationForest. It prints flagged rows; it does not use statistical thresholds or sensor data.
detector = IsolationForest(contamination=0.05, random_state=42)
logs["anomaly_score"] = detector.fit_predict(logs)
alerts = logs[logs["anomaly_score"] == -1]Isolation Forest is a machine-learning outlier detector, not a z-score or median-based statistical implementation. The suspicious rows are constructed in the source; the code does not validate alert precision against ground truth. A sensor application needs new data and review.
A small dashboard that displays outlying readings alongside recent operating context, allowing staff to mark actual faults and false alarms.
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 AI Engineer Course, with placement support and hands-on labs.