---
title: "Discussion on \"From Sensor Events to a Bedtime Detector: Inside TikTok's enhance_drowsy Code\" | Hashnode"
description: "Discussion on \"From Sensor Events to a Bedtime Detector: Inside TikTok's enhance_drowsy Code\". Accelerometer and gyro samples to an activity classifier to a three-state bedtime detector. What TikTok's Android code says and what it doesn't."
url: "https://hashnode.com/posts/from-sensor-events-to-a-bedtime-detector-inside-tiktok-s-enhance-drowsy-code/6afe98e344a8ff4d08faa775"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [From Sensor Events to a Bedtime Detector: Inside TikTok's enhance\_drowsy Code](https://sairamkotha.hashnode.dev/from-sensor-events-to-a-bedtime-detector-inside-tiktok-s-enhance-drowsy-code?utm_source=hashnode&utm_medium=feed)

Accelerometer and gyro samples to an activity classifier to a three-state bedtime detector. What TikTok's Android code says and what it doesn't.

15h ago · 9 min read · sairamkotha.hashnode.dev  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#reverse-engineering](https://hashnode.com/tag/reverse-engineering)
-   [#mobile-development](https://hashnode.com/tag/mobile-development)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)

## Written by

[Sai Ram Kotha](https://hashnode.com/@sairamkotha)

@sairamkotha · Bengaluru, India

  
[View profile](https://hashnode.com/@sairamkotha)

AI, Mobile

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
