{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreigiylj2qgfvvop2hhdr543lbn3a6l25s7kney5mfsiuvb5cih7sl4",
    "uri": "at://did:plc:7basvtgtkukzhs5nx64oqgvp/app.bsky.feed.post/3mi5jhuc4trz2"
  },
  "description": "Six weeks ago, I was averaging 82% time in glucose range. This week? 98% TIR with five perfect 100% days. Here's how I built an AI-powered PKM system that turns diabetes data into daily coaching.",
  "path": "/ai-coach-part-1/",
  "publishedAt": "2026-03-28T20:56:44.000Z",
  "site": "https://blog.warrenweb.net",
  "tags": [
    "The Transformation",
    "System Architecture",
    "Prompt Engineering",
    "Knowledge Graph",
    "Build Your Own",
    "Teaching Your AI Coach to Cook",
    "Day Cluster",
    "X",
    "LinkedIn",
    "@index"
  ],
  "textContent": "* * *\n\n**πŸ€– _AI Diabetes Coach_ series:**\n_βž” πŸš€ Part 1:_ The Transformation\n_β€” πŸ—οΈ Part 2:_ System Architecture\n_β€” πŸ’­ Part 3:_ Prompt Engineering\n_β€” πŸ•ΈοΈ Part 4:_ Knowledge Graph\n_β€”_ πŸ”§ Part 5: Build Your Own\n_β€”_ 🍴 __ Part 6: Teaching Your AI Coach to Cook\n\n* * *\n\nIn early February 2026, I was averaging 82% time in glucose rangeβ€”decent, but not optimal. This week (Week 13, late March 2026), I achieved 98% TIR with five perfect 100% days.\n\nWhat was the difference? I built an _AI-powered PKM system_ that turns my _diabetes data_ into actionable _daily coaching_.\n\n## Week 13: The Proof\n\nAfter 6 weeks of building and refining my AI-powered PKM system, here's what one week looked like:\n\n**Perfect Days (100% TIR):** 5 out of 10 tracked days\n\n  * March 17, 21, 22, 24, 26\n\n\n\n**Excellent Days (95%+ TIR):** 4 more days\n\n  * March 16, 20, 23, 25\n\n\n\n**Week Average:** 97.1% time in range\n\n**Translation:** 9 out of 10 days, my glucose stayed in target range 95-100% of the time. Even on \"off\" days with sensor issues or new equipment, I maintained excellence.\n\n**The difference?** An AI coach that remembers patterns, celebrates wins, and turns data into actionable insights.\n\n## Diabetes Background\n\nI was diagnosed with diabetes 20 years ago. I started wearing a Dexcom continuous glucose monitor (CGM) sensor 6 years ago.\n\nIn September 2025, a month before I started with an Omnipod 5 insulin pump (or \"pod\") to create an automated insulin delivery (AID) system. Previously, I had been taking multiple daily injections (MDI) about 6-7 times every day.\n\nAt that time, Dexcom reports showed my average _glucose_ was 185 with a glucose management indictor (GMI) of 7.7% (A1c estimate). My _time in range_ (TIR) between 70-180 was only 54%, and average total daily insulin of 43 units.\n\nThen I integrated my diabetes management with an AI coach into my PKM system. Now for the past 2 weeks, my average glucose is 126 with GMI 6.3%, TIR 96%, Insulin 24, daily carbs at 56, and I've lost 10 pounds!\n\n## The Challenge\n\nType 1 diabetes requires 180+ decisions every day:\n\n  * **What to eat?** (Carb counting for every meal and snack)\n  * **How much insulin?** (Dosing calculations 6-10 times daily)\n  * **When to correct?** (Responding to highs and lows)\n  * **Why did that happen?** (Understanding patterns and causes)\n\n\n\nTraditional diabetes apps give me **data** , but not **understanding** :\n\n  * Dexcom shows glucose readings every 5 minutes (288 data points/day)\n  * Glooko tracks insulin doses and carbs\n  * But neither explains WHY my glucose spiked after lunch or HOW to prevent it tomorrow\n\n\n\n**The problem?** Data without context is just noise.\n\nI needed a system that could:\n\n  * βœ… Remember yesterday's patterns (and last week's)\n  * βœ… Connect glucose spikes to specific meals\n  * βœ… Learn what works (and what doesn't)\n  * βœ… Coach me with actionable insights\n\n\n\nSo I built one!\n\n## The Transformation\n\n**Beyond the Numbers:**\n\nYes, my TIR improved from 54% to 96%. But the real transformation is how I **think** about diabetes management:\n\n**Before (September 2025):**\n\n  * ❌ Reactive: \"Why did I spike? Let me guess...\"\n  * ❌ Isolated: Each day was a fresh start with no memory\n  * ❌ Time-consuming: Manually reviewing data took hours weekly\n  * ❌ Inconsistent: Good days felt random, bad days frustrating\n  * ❌ High insulin needs: 43 units/day\n\n\n\n**After (March 2026):**\n\n  * βœ… Proactive: \"This meal spiked me last Tuesday, adjust insulin\"\n  * βœ… Contextual: 7-day memory spots patterns I'd miss\n  * βœ… Automated: Analysis happens automatically every morning\n  * βœ… Consistent: I know WHY good days work and HOW to replicate them\n  * βœ… Optimized dosing: 24 units/day (45% reduction!)\n\n\n\n**Time Savings:**\n\nTraditional diabetes management (done well) requires:\n\n  * 30-60 min/day analyzing glucose data\n  * Weekly pattern review sessions\n  * Monthly report generation\n  * Constant mental tracking of \"what worked\"\n\n\n\n**My system does this automatically** while I:\n\n  * βœ… Exercise regularly (daily 25-min walks, streak continuing!)\n  * βœ… Practice meditation (supports glucose stability!)\n  * βœ… Read more books (freed up mental space!)\n  * βœ… Build other projects (like this PKM system!)\n  * βœ… Lost 10 pounds (better nutrition awareness!)\n\n\n\n**The irony?** Building a system to manage diabetes gave me MORE time for life, not less.\n\n## **What's Next**\n\nThis post is the beginning of an _AI Diabetes Coach_ series. Here's where we go from here:\n\n  * πŸ—οΈ Part 2: System Architecture β€” The technical stack integrating Dexcom & Glooko diabetes data automation, Python commands and services, Neo4j graph database, Obsidian linked notes, and Claude AI analysis and coaching\n  * πŸ’­ Part 3: Prompt Engineering β€” How to craft prompts that make Claude a genuine diabetes coach with pattern recognition and weekly context\n  * πŸ•ΈοΈ Part 4: Knowledge Graph β€” Giving AI persistent, queryable memory across months of diabetes data with Cypher query examples, temporal pattern detection, relationship-based insights, and visual graph exploration\n  * πŸ”§ Part 5: Build Your Own β€” No-code pathway to start today, minimal viable version, tools, costs, and setup, templates and prompts.\n  * 🍴 __ Part 6: Teaching Your AI Coach to Cook β€” How food choices connect directly to glucose outcomes β€” building a recipe intelligence system that learns from your actual responses.\n\n\n\nThe PKM structure that organizes all this data is covered in a separate series:\n\n  * πŸ“… Part 1: Day Cluster\n\n\n\n**πŸ“§ Subscribe to get future posts delivered to your inbox!**\n\nPlus: Access to comments, digital garden notes, and bonus content.\n\n## Sign up for WarrenWeb\n\nThinking, linking, and sharing\n\nSubscribe\n\nEmail sent! Check your inbox to complete your signup.\n\nNo spam. Unsubscribe anytime.\n\n## Join the Conversation\n\nQuestions? Tracking health in your PKM? Want to build something similar?\n\n**I'm curious to hear:**\n\n  1. What parts of this system would be most valuable for YOUR work?\n  2. Do you track any health/life metrics in your PKM? How?\n  3. What would you want an AI coach to help you with?\n\n\n\n**For technical folks:**\n\n  * Interested in the Python code or Neo4j schema?\n  * Want a deeper dive on the Claude prompt engineering?\n\n\n\n**For non-technical folks:**\n\n  * What would make this feel more accessible?\n  * Which pieces could you implement without coding?\n\n\n\n**Drop a comment belowβ€”I read and respond to every one!** πŸ‘‡\n\n* * *\n\n_As Nick Milo says: \"Your notes should serve your life, not the other way around.\n\nWell I have proved it. My PKM system literally improved my health!_ πŸ’ͺ\n\n* * *\n\n _Doug Warren is a PKM practitioner, software developer, and Type 1 diabetes self-advocate with 20+ years of diabetes management experience. He writes about knowledge systems, health technology, and using AI to serve lifeβ€”not the other way around._\n\nConnect on X or LinkedIn, or follow via ActivityPub at `@index@blog.warrenweb.net`.\n\n_P.S. This post was written in Obsidian, refined with Claude AI, and will be published across my digital garden, Ghost newsletter, and social channelsβ€”all part of the same PKM workflow! Meta, right?_ 🀯",
  "title": "πŸš€ How I Built an AI Coach that Improved my Diabetes Control from 82% to 98%",
  "updatedAt": "2026-04-28T11:56:30.687Z"
}