Inspiration

Sleep issues today are often caused not just by lack of time, but by habits like late-night phone usage and overthinking. Most apps track only sleep duration and ignore why sleep gets disrupted. We wanted to build something that connects behavior with sleep quality, helping users understand the real cause behind poor sleep.


What it does

Smart Sleep & Behavior Tracker monitors:

  • Sleep start and end time
  • Night-time interruptions
  • Screen usage during sleep breaks
  • Morning mood and sleep quality

It analyzes this data and provides AI-powered insights such as:

“Late-night phone usage is affecting your sleep consistency.”


How we built it

  • Frontend: Flutter for a clean, responsive UI
  • Local Storage: Hive / SQLite for offline-first tracking
  • Backend: Firebase Firestore for cloud sync
  • Tracking: Android Usage Stats API to monitor screen usage
  • AI Integration: API-based text analysis to generate insights and suggestions

Challenges we ran into

  • Accessing and managing background screen usage data reliably
  • Designing a smooth offline-first + sync architecture
  • Keeping AI insights simple, accurate, and meaningful
  • Limiting scope to deliver a working product within hackathon time

Accomplishments that we're proud of

  • Built a fully functional offline-first tracking system
  • Successfully connected behavior (screen usage) with sleep insights
  • Implemented AI-generated personalized suggestions
  • Delivered a clean and intuitive user experience

What we learned

  • Real impact comes from solving practical problems, not adding complexity
  • Combining simple logic with AI can create powerful results
  • Offline-first design improves reliability and usability
  • Clear UX is more important than having too many features

What's next for Smart Sleep & Behavior Tracker

  • Automatic sleep detection using sensors or wearables
  • Smarter AI insights with deeper pattern recognition
  • Weekly and long-term analytics dashboards
  • Personalized habit-building recommendations
  • Integration with platforms like Google Fit or Apple Health

Built With

Share this project:

Updates

Submission history