Smart Routines Engine
The Smart Routines Engine is Estudio Three’s most sophisticated feature—an intelligent scheduling system that automatically generates optimized daily routines based on your classes, training, academic subjects, and energy patterns.What It Does
The engine analyzes your fixed commitments (classes, training, sleep) and available time slots, then intelligently schedules study sessions, breaks, and other activities to maximize productivity while preventing burnout.Automatic Scheduling
Generates complete daily routines from wake time to bed time
Energy Management
Tracks cognitive and physical load to prevent over-scheduling
Smart Fragmentation
Splits large tasks across multiple time slots when needed
Pomodoro Integration
Expands study blocks into Pomodoro sessions with breaks
Why It Matters
Student-athletes face the hardest scheduling challenge of any student demographic:- Fixed training times that can’t be moved
- Variable practice lengths depending on season
- Competition schedules that disrupt routine
- Recovery needs that affect study capacity
- Multiple subjects with different difficulty levels
- Limited time between physical and mental demands
- Considering all constraints simultaneously
- Optimizing for both short-term efficiency and long-term sustainability
- Adapting to your specific sport and academic load
- Learning from your actual patterns over time
How to Use It
Initial Setup
-
Complete Onboarding
- Enter class schedule (days and times)
- Add training schedule (sport-specific times)
- Set sleep preferences (wake time and bed time)
- Add academic subjects with difficulty ratings
-
Configure Focus Preferences
- Choose between different study strategies:
- Pomodoro: 25-min focus + 5-min breaks
- Extended: 45-min focus + 15-min breaks
- Intense: 60-min focus + 10-min breaks
- Choose between different study strategies:
-
Generate Your First Routine
- Navigate to Daily Routine view
- Routine auto-generates for today
- Review the schedule and adjust if needed
Understanding Your Routine
Your daily routine contains different block types:Fixed Blocks (Gray, Locked)
- Classes: Your school schedule
- Training: Practice times
- Sleep: Bedtime anchor
- Cannot be edited or moved
Study Blocks (Blue, Editable)
- Subject-specific: “Study: Physics”
- Duration: Based on subject difficulty
- Energy cost: Higher for difficult subjects
- Can be manually adjusted
Break Blocks (Green)
- Short breaks: 5-10 minutes
- Long breaks: 15-30 minutes
- Automatically inserted between study sessions
- Part of Pomodoro expansion
Habit Blocks (Purple)
- Daily habits: Reading, meditation, etc.
- Low energy cost: Scheduled in lower-energy periods
- Optional but encouraged
Viewing Your Routine
The routine displays as a visual timeline:- Time labels: Shows start time for each block
- Color coding: Category-based colors
- Duration indicators: Shows block length
- Energy bars: Visual cognitive and physical load
Key Capabilities
Intelligent Time Slot Detection
The engine identifies gaps in your schedule:src/features/routine/engine/solver.ts:103):
- Sort fixed blocks by start time
- Iterate from wake time to bed time
- Identify gaps between blocks
- Filter out gaps smaller than 15 minutes
- Return array of available time slots
Priority-Based Task Allocation
Study sessions are scheduled by priority:Energy Load Management
The engine tracks two types of load: Cognitive Load (Academic work)- Classes: 7 units/min
- Study: 5-14 units/min (based on difficulty)
- Habits: 2 units/min
- Primary training: 9 units/min
- Secondary training: 7 units/min
- Competition/Events: 10 units/min
Task Fragmentation
When a study session doesn’t fit in a single time slot, the engine fragments it: Scenario: Need 60 minutes for Physics, but only have 40-minute gap before training. Solution:- Schedule 40 minutes of Physics in first slot
- Create “Physics (Part 2)” task with 20 minutes remaining
- Place Part 2 in next available slot after training
- User sees continuous progress across day
src/features/routine/engine/solver.ts:252):
Session Expansion (Pomodoro)
The engine expands study blocks into Pomodoro sessions: Input: “Study Physics” - 60 minutes Output (with Pomodoro strategy):- Study Physics - 25 min
- Short Break - 5 min
- Study Physics - 25 min
- Short Break - 5 min
src/features/routine/engine/sessionExpander.ts):
Technical Architecture
Solver Algorithm
The core routine generation follows a First-Fit Decreasing algorithm: Steps:- Create fixed blocks (classes, training, sleep)
- Find free time slots between fixed blocks
- Create priority queue of tasks (subjects)
- For each task (highest priority first):
- Check energy budget remaining
- Try to fit in first available slot
- If doesn’t fit, fragment across multiple slots
- Expand into Pomodoro sessions with breaks
- Sort all blocks by start time
- Return complete routine
src/features/routine/engine/solver.ts:173):
Data Types
Focus Strategies
Three built-in strategies (src/features/routine/engine/sessionExpander.ts):
Configuration
Subject Difficulty
When adding subjects, difficulty affects:- Priority: Higher difficulty scheduled earlier in available time
- Duration: difficulty × 20 minutes per session
- Energy cost: difficulty + 5 units per minute
- Physics (difficulty 10): 200 min/session, 15 energy/min, highest priority
- English (difficulty 5): 100 min/session, 10 energy/min, medium priority
Class & Training Schedules
Fixed schedules use day-of-week format:- 0 = Sunday, 1 = Monday, …, 6 = Saturday
- Multiple blocks per day supported
- Time format: “HH:MM” (24-hour)
Best Practices
Accurate Difficulty Ratings
Accurate Difficulty Ratings
Rate subject difficulty honestly based on:
- Your personal strengths/weaknesses (not the subject’s reputation)
- Current grade or performance
- Time typically needed per week
- Upcoming exam importance
Realistic Sleep Schedule
Realistic Sleep Schedule
Enter your ACTUAL wake and sleep times, not aspirational ones:
- Engine schedules from wake to bed
- Unrealistic times lead to over-scheduling
- Consider your sport’s demands (early morning practice vs. late night)
- Include buffer time for morning routine
Review and Adjust
Review and Adjust
The engine provides a strong starting point, but:
- Manually adjust blocks if needed
- Mark blocks complete as you finish them
- Engine learns from your completion patterns
- Re-generate weekly as schedules change
Respect Energy Limits
Respect Energy Limits
If the engine:
- Reduces study session durations
- Skips low-priority subjects
- Shows high load bars
- Reducing subject difficulty ratings if consistently too easy
- Adjusting training schedule if you have more availability
- Using weekends for additional study if needed
Integration with Other Features
- Task Management: Routine blocks can link to specific tasks
- Pomodoro Timer: Study blocks expand into timed Pomodoro sessions
- Academic Tracking: Subject study time feeds grade correlation analytics
- AI Coach: Uses routine load data to suggest adjustments
- Calendar: Imports events that affect routine generation
Future Enhancements
Planned improvements:- Machine learning to predict optimal study times based on performance
- Competition day detection with automatic schedule adjustment
- Recovery scoring based on training intensity
- Multi-day optimization (weekly planning)
- Integration with wearables for actual energy tracking
Next Steps: Track your academic progress with Academic Tracking to see how optimized routines improve your grades.