Track child sleep patterns, manage sleep schedules, and identify sleep problems. Use when user mentions child sleep, bedtime, waking up, nap, or sleep issues.
Child sleep recording, schedule management and sleep problem identification, providing age-specific sleep duration references and schedule recommendations.
User Input → Identify Operation Type → Read Child Information → Determine Sleep Standards by Age → Generate Assessment Report → Save Data
| Input | action | Description |
|---|---|---|
| record | record | Log sleep |
| schedule | schedule | Schedule management |
| problem | problem | Sleep problems |
| analysis | analysis | Sleep analysis |
| routine | routine | Schedule recommendations |
| history | history | Historical records |
| Input Pattern | Parsed Result |
|---|---|
| 21:00 sleep, bedtime 21:00 | bedtime: 21:00 |
| 7:00 wake, wake 7:00 | wake_time: 07:00 |
| woke 1 time, wakeup 1 | night_wakeups: 1 |
| Age | Recommended Total Sleep | Night Sleep | Daytime Naps | Nap Count |
|---|---|---|---|---|
| 0-3 months | 14-17 hours | 8-10 hours | 6-7 hours | 3-4 naps |
| 4-12 months | 12-16 hours | 9-12 hours | 3-4 hours | 2-3 naps |
| 1-2 years | 11-14 hours | 10-12 hours | 1.5-3 hours | 1-2 naps |
| 3-5 years | 10-13 hours | 10-12 hours | 0-2 hours | 0-1 naps |
| 6-12 years | 9-12 hours | 9-12 hours | 0 | 0 naps |
| 13-18 years | 8-10 hours | 8-10 hours | 0 | 0 naps |
| Assessment Item | Standard |
|---|---|
| Sleep duration | Within recommended range is normal |
| Time to fall asleep | Within 30 minutes is normal |
| Night wakeups | 0-1 times is normal (more for <1 year) |
| Sleep quality | Good energy, normal development is good |
Sleep record saved
Sleep Information:
Child: Xiaoming
Age: 2 years 5 months
Sleep date: Night of January 13, 2025
Bedtime: 21:00
Asleep time: 21:30
Wake time: 07:00
Total sleep duration: 9.5 hours
Night Status:
Night wakeups: 1 time
Wake duration: ~10 minutes
Falling asleep: Self-soothing
Sleep quality: Good
Sleep Assessment:
Sleep duration normal (recommended 10-12 hours)
Appropriate bedtime
Normal night wakeups
Good sleep quality
Daytime Naps:
Nap count: 1 time
Nap duration: ~2 hours
Total sleep (including naps): ~11.5 hours
Schedule Recommendations:
Continue current schedule
Establish consistent bedtime routine
Create good sleep environment
Data saved
Sleep Insufficient Alert
Sleep Information:
Child: Xiaoming
Age: 2 years 5 months
Sleep date: Night of January 13, 2025
Bedtime: 22:00
Asleep time: 23:00
Wake time: 06:30
Total sleep duration: 7.5 hours
Sleep Assessment:
Insufficient sleep duration (recommended 10-12 hours)
Late bedtime
Difficulty falling asleep
Frequent night wakeups
Possible Impact:
Poor daytime energy
Irritability
Decreased appetite
Lowered immunity
Improvement Recommendations:
Adjust Schedule
Start bedtime routine 30 minutes early
Fixed bedtime (20:30-21:00)
Optimize Bedtime Routine
Stop screen time 1 hour before
Quiet activities (picture books, warm bath)
Fixed routine order
Improve Sleep Environment
Room temperature 20-22°C
Keep dark and quiet
Comfortable bedding
If sleep deprivation persists:
Consult pediatrician to rule out sleep disorders etc.
Data saved
Save to data/child-sleep-tracker.json, including:
This system is for sleep recording and recommendation reference only, cannot replace professional medical diagnosis.
If following conditions occur, please consult pediatrician: