How anujna27/kairos-ai works
KAIROS-AI is a Streamlit acoustic machine-health prototype. Users choose a machine, upload audio or record from a microphone, then analyze it for acoustic features and an optional Isolation Forest result; the dashboard presents plots and session history. Separate workflows train the model from healthy recordings and evaluate it against labeled recordings. A continuous-monitoring worker captures microphone windows, records anomaly events, and can send thresholded, cooldown-limited email alerts. The graph follows documented capabilities; where source excerpts are incomplete, links rely on README statements or indexed references rather than assumptions.
Main entry points: app.py Streamlit dashboard · anomaly_detection.py Anomaly model · feature_extraction.py Feature extraction · live_monitor.py Live monitor worker
Components 15
Dashboard and audio
- Streamlit dashboard
app.py - Machine registry
modules/machine_manager.py - Audio input
modules/audio_input.py - Signal processing
modules/signal_processing.py
Anomaly model
- Feature extraction
modules/feature_extraction.py - Anomaly model
modules/anomaly_detection.py - Saved model
models - Model training
modules/train.py - Prediction CLI
modules/predict.py
Live monitoring
- Live monitor worker
modules/live_monitor.py - Alert policy and events
modules/alerts.py
Model evaluation
- Evaluation workflow
modules/evaluation.py - Labeled recordings
dataset
Other components
- Dashboard user
- SMTP service
Connections 20
- Dashboard user → Streamlit dashboard: uses
README.md - Streamlit dashboard → Machine registry: selects machines
app.py - Streamlit dashboard → Audio input: captures audio
README.md - Streamlit dashboard → Signal processing: plots audio
README.md - Streamlit dashboard → Feature extraction: extracts features
app.py - Streamlit dashboard → Anomaly model: requests prediction
app.py - Model training → Feature extraction: extracts features
modules/train.py - Model training → Anomaly model: fits and saves
modules/train.py - Anomaly model → Saved model: loads and saves
README.md - Prediction CLI → Feature extraction: extracts features
README.md - Prediction CLI → Anomaly model: predicts with
README.md - Live monitor worker → Feature extraction: extracts features
modules/live_monitor.py - Live monitor worker → Anomaly model: predicts with
modules/live_monitor.py - Live monitor worker → Alert policy and events: records and applies policy
modules/live_monitor.py - Alert policy and events → SMTP service: sends email
modules/alerts.py - Streamlit dashboard → Live monitor worker: starts worker
README.md - Evaluation workflow → Labeled recordings: reads labeled audio
modules/evaluation.py - Evaluation workflow → Anomaly model: loads model
README.md - Evaluation workflow → Prediction CLI: uses prediction
modules/evaluation.py - Feature extraction → Signal processing: uses dependency errors
modules/feature_extraction.py