This repository was archived by the owner on Sep 22, 2025. It is now read-only.
Add alert system folder with AE model, classifier and notebooks #362
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the Alert System module including data preparation, anomaly detection (Autoencoder), and behavioural risk classifier. It introduces notebooks, scripts, trained models, and sample output files that will be used in the Guardian project for health risk detection.
Todos
Tested and working locally in Colab + VS Code
Code follows the style guidelines of this project
Performed a self-review of all scripts and notebook flow
Documentation added for model training and usage
Requesting review from at least 2 devs (backend + AI team recommended)
How to Test
Pull this branch:
git checkout feature/alert-system
Navigate to Alert_System/.
Run the notebook Alert_System.ipynb in Google Colab or VS Code (with Python + Jupyter).
Verify that:
Autoencoder trains and saves model output (guardian_lstm_autoencoder.keras)
Classifier predictions are generated (guardian_classifier_predictions.csv)
Alerts are created for behavioural anomalies
Associated MS Planner Tasks
[AI Module: Vitals Anomaly Detection]
[Behavioural Risk Classifier Integration]
Known Issues
Current dataset still limited (approx. 1800 entries); performance may improve with larger data.
Need further integration with backend API for real-time alerting.
Model currently assumes sequence length = 12, may require parameter tuning.