-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: retrain fall detect model with TFLite Model Maker and more local data #35
base: main
Are you sure you want to change the base?
feat: retrain fall detect model with TFLite Model Maker and more local data #35
Conversation
Signed-off-by: bhavikapanara <panara.bhavika@gmail.com>
Features
ContributorsCommit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Signed-off-by: bhavikapanara <panara.bhavika@gmail.com>
Signed-off-by: bhavikapanara <panara.bhavika@gmail.com>
Signed-off-by: bhavikapanara <panara.bhavika@gmail.com>
@bhavikapanara please do not submit for review PRs that have merge conflicts or failing checks. Thank you! |
@bhavikapanara This notebook should include several steps of on-device training to provide baseline for efficacy.
The goal is here to determine:
Making sense? As we get a handle on this baseline , we also need to think how to allow John to provide labeling feedback to the model with minimum effort. If a positive fall was not detected correctly, how can John be aware of that and help by labeling the classification correctly? Currently the ambianic edge logic notifies when there is a positive detection above a certain threshold of confidence. How do we design the UX to be effective with training? Some possible options: Opened a related issue in the ui repo. Thoughts? |
@bhavikapanara another issue we need to address that I already mentioned in the slack space. I noticed one more thing with the current Model Maker model. This means that the model will most likely perform poorly on images where people are not present at all or take a small part of the image. I see two options here :
I am leaning towards the latter for two main reasons: Thoughts? |
…havikapanara/fall-detection into fall-detect-tflite-model-maker fix merge issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhavikapanara What exactly have you addressed from the comments I made? I don't see clear answers to my questions. In slack, I addressed the person detection function. It does not belong in the fall detection model implementation. Just in the model card.
I don't understand what you are trying to say. As you requested, I have executed a person detection model, then cropped each person and ran a fall-detect mode in this notebook. |
For this comment, to on-device training, how can I get the labelled data. I mean, I need the dataset's location that the user labels during feedback of base fall-detect model prediction. |
Look through all pending comments in this PR and try to address each one separately. I also posted this comment in slack on Oct 14:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Submit for review when you found a model that shows local transfer learning efficacy. Publish comparison stats and confusion matrix on dataset to demonstrate results of improvement between base model and locally trained one.
@ivelin I have trained on-device model training using TFLite-model-maker with the base model as efficientnet_lite and custom trained fall-detect model using transfer learning approach. Approach 1: See this notebook Link - On device model training with efficientnet_lite as the base model. Using this method, achieve 82% accuracy. Approach 2: see this notebook Link - on-device model training with the custom fall-detect base model. Using this method, achieve 57% accuracy. |
TFLite Model Maker Training Notebook for fall detection: Link
TFLite Model Maker inference Notebook for fall detection: Link
Fall detect on top of person detect notebookLink
Fall detect Base for transfer learning: Link
On-device training model : Link