# Don't Panic! (even if you get some really crazy data science project)

- Speaker: [Dana Averbuch](/wiki/speakers/dana-averbuch.md)
- Event: [Reversim Summit 2018](/wiki/years/2018.md)
- Video: https://www.youtube.com/watch?v=qj8xl_itwkg
- Transcript: [/transcripts/2018/56-qj8xl_itwkg.md](/transcripts/2018/56-qj8xl_itwkg.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Data Science](/wiki/topics/data-science.md), [Networking](/wiki/topics/networking.md), [Machine Learning](/wiki/topics/machine-learning.md), [Product Management](/wiki/topics/product-management.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker shares a challenging data science project involving the implementation of an emergency panic button using only accelerometer data from smartwatches. Facing severe false positive rates with initial machine learning models, the speaker developed innovative solutions including automated online tagging and personalized online learning. Ultimately, the work yielded valuable techniques applicable to other projects, even though a hardware solution was found simultaneously. The audience learns how to handle sudden, unconventional data science constraints and turn them into learning opportunities.

## Key points

- [2:20](https://www.youtube.com/watch?v=qj8xl_itwkg&t=140s) A potential client requested a panic button feature on smartwatches, but the watch button only generated a half-second vibration without triggering software events.
- [5:52](https://www.youtube.com/watch?v=qj8xl_itwkg&t=352s) Faced with a looming contract deadline, the leadership asked the data science team to detect the button's vibration pattern using machine learning.
- [9:17](https://www.youtube.com/watch?v=qj8xl_itwkg&t=557s) To prevent data leakage between training and validation sets caused by similar sliding window samples, a group k-fold cross-validation strategy was implemented.
- [11:29](https://www.youtube.com/watch?v=qj8xl_itwkg&t=689s) Logistic regression was chosen as the initial algorithm for its simplicity, low complexity, and adaptability to run on various compute environments.
- [15:04](https://www.youtube.com/watch?v=qj8xl_itwkg&t=904s) Initial model evaluation revealed an unacceptably high false positive rate, which would generate far too many false alarms for caregivers in production.
- [18:42](https://www.youtube.com/watch?v=qj8xl_itwkg&t=1122s) An automated online tagging mechanism was introduced where unconfirmed app alerts were automatically labeled as negative data and sent to the database.
- [19:54](https://www.youtube.com/watch?v=qj8xl_itwkg&t=1194s) A personalized online learning model was implemented to continuously calibrate the algorithm specifically for each individual user.

## Takeaways

- Start with simple models like logistic regression before moving to complex alternatives.
- Use group-based cross-validation to prevent data leakage when working with overlapping time-series windows.
- Leverage user feedback loops to collect negative samples and perform online learning in production.

## Questions this talk answers

- How can you handle data collection and validation when building a machine learning model under tight time constraints?
- What strategies can be used to prevent data leakage in sliding-window time-series data?
- How do you implement personalized online learning to adapt a model to individual users in production?

## Tags

data science, edge computing, healthcare, machine learning, time series, validation
