{"slug": "xihan-snore-coach-privacy-first-on-device-medtech-guardian-powered-by-gemma-4", "title": "XiHan Snore Coach: Privacy-First On-Device MedTech Guardian powered by Gemma 4 Mobile", "summary": "The XiHan Snore Coach is an Android-based MedTech application that tracks and analyzes snoring and sleep apnea symptoms entirely offline on the user's device. It uses the Gemma 4 2B/4B Ultra-Mobile Model to process sensitive physiological data like SpO2 levels and snoring metrics locally, allowing users to ask natural language questions about their sleep trends and receive actionable advice without any data leaving their phone. The app prioritizes patient privacy by querying a local Android database for sleep history, demonstrating that advanced AI reasoning can coexist with strict data confidentiality.", "body_md": "This is a submission for the Gemma 4 Challenge: Build with Gemma 4\nXiHan Snore Coach is an Android-based MedTech application designed to help users track, analyze, and alleviate snoring and sleep apnea symptoms.\nIn the medical health sector, privacy is paramount. Users are hesitant to upload highly sensitive physiological data—such as SpO2 (blood oxygen) levels, snoring audio metrics, and sleep disruption patterns—to cloud servers.\nTo solve this, I built an entirely offline, on-device AI Sleep Coach. It acts as a pocket medical analyst, allowing users to ask natural language questions about their sleep trends and receive actionable respiratory muscle training plans without a single byte of their personal data leaving their phone.\n*https://youtube.com/shorts/ECAjo9r7Yew *\nhttps://github.com/yueliao11/sleepcoach.git\nTo make this offline MedTech guardian a reality, I chose the Gemma 4 2B/4B Ultra-Mobile Model.\nHere is why it was the absolute right tool for the job and how it powers the core experience:\nget_local_sleep_history\n). This function queries the local Android Room/SQLite database for the last 7 days of SpO2 and Snore data, feeding it back into the model's context. Gemma 4 proved that we no longer have to compromise between advanced AI reasoning capabilities and strict patient data privacy.\nThis submission was published on behalf of the team by @your-dev-username.\nContributors:\nContributors:", "url": "https://wpnews.pro/news/xihan-snore-coach-privacy-first-on-device-medtech-guardian-powered-by-gemma-4", "canonical_source": "https://dev.to/bright_jack_6ae0a31b96b6c/xihan-snore-coach-privacy-first-on-device-medtech-guardian-powered-by-gemma-4-mobile-58pg", "published_at": "2026-05-23 15:55:55+00:00", "updated_at": "2026-05-23 16:34:12.079301+00:00", "lang": "en", "topics": ["artificial-intelligence", "machine-learning", "large-language-models", "open-source"], "entities": ["XiHan Snore Coach", "Gemma 4", "Google", "Android", "Room", "SQLite", "SpO2", "MedTech"], "alternates": {"html": "https://wpnews.pro/news/xihan-snore-coach-privacy-first-on-device-medtech-guardian-powered-by-gemma-4", "markdown": "https://wpnews.pro/news/xihan-snore-coach-privacy-first-on-device-medtech-guardian-powered-by-gemma-4.md", "text": "https://wpnews.pro/news/xihan-snore-coach-privacy-first-on-device-medtech-guardian-powered-by-gemma-4.txt", "jsonld": "https://wpnews.pro/news/xihan-snore-coach-privacy-first-on-device-medtech-guardian-powered-by-gemma-4.jsonld"}}