> ## Documentation Index
> Fetch the complete documentation index at: https://docs.strategist.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Pattern Recognition

#### Algorithmic Behavioral Pattern Detection

The system identifies recurring patterns across life events:

**Example Pattern: "Sunday Anxiety"**

```json theme={null}
{
  "pattern_name": "Weekly Work Anxiety Spike",
  "trigger": "Sunday evening",
  "frequency": "Weekly for 8 weeks",
  "impact": {
    "mood": -3,
    "energy": -2,
    "protector_activation": +4
  },
  "nash_equilibrium_recommendation": "Implement Sunday evening ritual to optimize utility and reduce anticipatory anxiety"
}
```

### Causal Chain Analysis

Life events are analyzed for cause-effect relationships:

```
Poor Sleep (Monday)
  ↓
Low Energy (Tuesday)  
  ↓
Skipped Workout (Tuesday)
  ↓
Mood Crash (Wednesday)
  ↓
Work Conflict (Thursday)
  ↓
Relationship Tension (Friday)
```

**Strategic Insight:** "Sleep quality is keystone - protect at all costs"

### Predictive Intelligence

Based on historical patterns, the system predicts future states:

**Prediction Example:**

```json theme={null}
{
  "prediction": "High burnout risk in 2-3 weeks",
  "confidence": 0.78,
  "based_on": [
    "Increasing work hours trend",
    "Declining exercise frequency",
    "Rising stress indicators",
    "Historical burnout pattern match"
  ],
  "prevention_strategy": [
    "Immediate workload reduction",
    "Enforce exercise minimums",
    "Schedule recovery time"
  ]
}
```

## Pattern Types

### Temporal Patterns

Patterns that occur based on time cycles:

**Daily Patterns:**

* Morning energy peaks
* Afternoon productivity dips
* Evening social preferences
* Sleep quality cycles

**Weekly Patterns:**

* Monday motivation
* Wednesday slump
* Friday relief
* Sunday anxiety

**Monthly Patterns:**

* Paycheck spending spikes
* Mid-month energy crashes
* End-of-month stress
* Hormonal cycles

**Seasonal Patterns:**

* Winter depression tendencies
* Spring renewal energy
* Summer social expansion
* Fall introspection

### Trigger-Response Patterns

Events that consistently trigger specific responses:

**Stress Triggers:**

```json theme={null}
{
  "trigger": "Work deadline approaching",
  "typical_responses": [
    "Sleep quality decreases",
    "Caffeine intake increases",
    "Exercise frequency drops",
    "Irritability rises"
  ],
  "cascade_risk": "high",
  "intervention_point": "3 days before deadline"
}
```

**Success Triggers:**

```json theme={null}
{
  "trigger": "Achievement recognized publicly",
  "typical_responses": [
    "Confidence boost for 48 hours",
    "Increased risk-taking",
    "Social engagement spike",
    "Productivity increase"
  ],
  "optimization_window": "72 hours post-recognition"
}
```

### Relationship Patterns

How interactions with specific people affect your state:

**Energy Vampires:**

```json theme={null}
{
  "player": "Toxic Colleague",
  "interaction_effects": {
    "energy": -4,
    "mood": -3,
    "productivity_next_day": -20
  },
  "recovery_time": "4-6 hours",
  "strategic_recommendation": "Minimize interactions, schedule buffer time after"
}
```

**Energy Multipliers:**

```json theme={null}
{
  "player": "Inspiring Mentor",
  "interaction_effects": {
    "energy": +3,
    "motivation": +5,
    "creative_output": +40
  },
  "effect_duration": "3-5 days",
  "strategic_recommendation": "Schedule before important projects"
}
```

## Learning Algorithms

### Pattern Confidence Scoring

How the system determines pattern reliability:

```python theme={null}
confidence_score = (
    occurrence_count * 0.3 +
    consistency_score * 0.3 +
    impact_magnitude * 0.2 +
    recency_weight * 0.2
)
```

**Confidence Levels:**

* **0.0-0.3**: Possible pattern (needs more data)
* **0.4-0.6**: Emerging pattern (monitor closely)
* **0.7-0.8**: Established pattern (actionable)
* **0.9-1.0**: Core pattern (fundamental to strategy)

### Pattern Evolution Tracking

Patterns change over time as you evolve:

**Example: Exercise Impact Evolution**

```json theme={null}
{
  "pattern": "Morning Exercise Effect",
  "timeline": {
    "month_1": {
      "energy_boost": +2,
      "mood_boost": +3,
      "difficulty": 8
    },
    "month_3": {
      "energy_boost": +4,
      "mood_boost": +4,
      "difficulty": 5
    },
    "month_6": {
      "energy_boost": +5,
      "mood_boost": +5,
      "difficulty": 3,
      "note": "Habit fully automated"
    }
  }
}
```

### Anomaly Detection

Identifying when patterns break:

**Pattern Break Alert:**

```json theme={null}
{
  "expected_pattern": "Daily 7am workout",
  "anomaly_detected": "3 consecutive days missed",
  "historical_consequence": "Mood crash by day 4",
  "intervention": {
    "urgency": "high",
    "recommendation": "Investigate root cause immediately",
    "questions": [
      "Sleep pattern disrupted?",
      "Stress levels elevated?",
      "Physical injury or illness?",
      "Motivation system needs refresh?"
    ]
  }
}
```

## Meta-Patterns

### Pattern Interactions

How different patterns affect each other:

**Synergistic Patterns:**

```
Good Sleep + Morning Exercise + Healthy Breakfast
= Productivity Multiplier (3x baseline)
```

**Antagonistic Patterns:**

```
Late Night Work + Early Meeting + Skip Lunch
= Crash Risk (80% probability by 3pm)
```

### Pattern Hierarchies

Some patterns dominate others:

**Keystone Patterns:**

1. **Sleep Quality** - Affects all other patterns
2. **Exercise Consistency** - Influences energy and mood
3. **Social Connection** - Impacts motivation and resilience
4. **Work Boundaries** - Determines stress levels

**Dependent Patterns:**

* Creativity (depends on energy and mood)
* Learning Speed (depends on sleep and focus)
* Relationship Quality (depends on stress and energy)

### Pattern Loops

Self-reinforcing cycles to leverage or break:

**Positive Loop Example:**

```
Exercise → Better Sleep → More Energy → 
Better Work Performance → Less Stress → 
More Time for Exercise → (loop continues)
```

**Negative Loop Example:**

```
Stress → Poor Sleep → Low Energy → 
Procrastination → More Stress → 
Worse Sleep → (loop continues)
```

**Loop Intervention Points:**

* Identify weakest link in negative loops
* Strengthen keystone in positive loops
* Create circuit breakers for downward spirals

## Applied Pattern Intelligence

### Pattern-Based Optimization

Using patterns to design optimal strategies:

**Daily Routine Optimization:**

```json theme={null}
{
  "morning": {
    "6:00am": "Wake (natural energy peak detected)",
    "6:30am": "Exercise (maximum motivation window)",
    "7:30am": "Deep work (cognitive peak identified)",
    "10:00am": "Meetings (social energy high)"
  },
  "afternoon": {
    "12:00pm": "Lunch break (energy dip anticipated)",
    "1:00pm": "Admin tasks (low cognitive demand)",
    "3:00pm": "Creative work (second wind detected)",
    "5:00pm": "Planning (reflection mode activated)"
  }
}
```

### Pattern Prediction Power

Anticipating future states based on current patterns:

**Next Week Forecast:**

```json theme={null}
{
  "based_on_patterns": [
    "Current sleep debt: 8 hours",
    "Exercise streak: 0 days",
    "Stress level: 7/10"
  ],
  "predictions": {
    "monday": "Low energy, high anxiety",
    "wednesday": "Potential sick day (65% probability)",
    "friday": "Motivation crash likely"
  },
  "prevention_protocol": "Immediate sleep recovery + stress reduction required"
}
```

***

*Patterns are the language of strategic intelligence. Learn to read them, and you can predict and shape your future.*
