It's easy for a model to look clever on its own. So the first detectors were explicit rules: temperature and flow thresholds, audio continuity and spike rules, and presence-transition checks. Machine-learning (ML) candidates were then evaluated against those baselines on held-out sessions, and judged on the extra detections they found against the extra false alarms an operator would have to review.
SageMaker handles processing, training and model serving, with a multi-model serverless endpoint, and data flows from IoT Core through S3 and ECR into the pipeline. A scoring API accepts a session package and returns an anomaly score with reason codes, and the demo records each output for inspection:
- Confusion matrices, ROC curves and precision-recall analysis describe the trade-off between detection and false alarms.
- Error analysis separates scenario types and the recorded test groups, so it's clear where performance differs.
- A threshold playbook documents operating points meant for calibration at each site.
- API Gateway and Cognito secure the scoring endpoint, with CloudTrail and CloudWatch keeping audit and operational records.
A model was only worth deploying if it beat a rule anyone could explain, in a test that has to stand up in court, and the reason codes say why each session was flagged.
The scores measure performance on controlled examples. Operators would need to confirm they're useful in real sessions during the pilot.