{ "metadata": { "name": "Psycho-Symbolic Knowledge Base", "version": "1.0.0", "description": "Example knowledge base for psychological and symbolic reasoning", "created": "2024-09-20", "domains": ["psychology", "wellness", "productivity", "therapy"] }, "nodes": [ { "id": "stress", "type": "emotion", "label": "Stress", "properties": { "valence": -0.7, "arousal": 0.8, "category": "negative", "intensity": "high", "physiological_effects": ["increased_heart_rate", "muscle_tension", "headaches"] } }, { "id": "anxiety", "type": "emotion", "label": "Anxiety", "properties": { "valence": -0.8, "arousal": 0.9, "category": "negative", "intensity": "high", "symptoms": ["worry", "restlessness", "fatigue", "difficulty_concentrating"] } }, { "id": "calm", "type": "emotion", "label": "Calm", "properties": { "valence": 0.6, "arousal": -0.5, "category": "positive", "intensity": "low", "characteristics": ["peaceful", "relaxed", "centered"] } }, { "id": "focused", "type": "state", "label": "Focused", "properties": { "cognitive_load": "high", "attention": "directed", "duration": "sustained", "benefits": ["productivity", "quality_work", "satisfaction"] } }, { "id": "meditation", "type": "activity", "label": "Meditation", "properties": { "duration": 15, "energy_required": "low", "difficulty": "beginner", "environment": "quiet", "equipment": "none", "benefits": ["stress_reduction", "improved_focus", "emotional_regulation"] } }, { "id": "deep_breathing", "type": "technique", "label": "Deep Breathing", "properties": { "duration": 5, "energy_required": "none", "difficulty": "beginner", "accessibility": "high", "immediate_effect": true, "techniques": ["4-7-8", "box_breathing", "diaphragmatic"] } }, { "id": "exercise", "type": "activity", "label": "Physical Exercise", "properties": { "duration": 30, "energy_required": "medium", "difficulty": "intermediate", "types": ["cardio", "strength", "yoga", "walking"], "benefits": ["endorphin_release", "stress_relief", "improved_mood"] } }, { "id": "music_therapy", "type": "technique", "label": "Music Therapy", "properties": { "duration": 20, "energy_required": "low", "accessibility": "high", "types": ["classical", "nature_sounds", "binaural_beats"], "effects": ["relaxation", "mood_enhancement", "focus_improvement"] } }, { "id": "journaling", "type": "activity", "label": "Journaling", "properties": { "duration": 15, "energy_required": "low", "difficulty": "beginner", "materials": ["pen", "paper"], "benefits": ["emotional_processing", "self_awareness", "stress_relief"] } }, { "id": "progressive_relaxation", "type": "technique", "label": "Progressive Muscle Relaxation", "properties": { "duration": 20, "energy_required": "low", "difficulty": "beginner", "approach": "systematic", "target": "physical_tension" } }, { "id": "cognitive_reframing", "type": "technique", "label": "Cognitive Reframing", "properties": { "duration": 10, "energy_required": "medium", "difficulty": "intermediate", "approach": "cognitive", "target": "negative_thoughts" } }, { "id": "work_break", "type": "activity", "label": "Work Break", "properties": { "duration": 10, "frequency": "hourly", "types": ["walk", "stretch", "hydrate", "rest_eyes"], "productivity_impact": "positive" } } ], "edges": [ { "id": "meditation_helps_stress", "from": "meditation", "to": "stress", "relationship": "helps_reduce", "weight": 0.85, "evidence": "clinical_studies", "effectiveness": "high" }, { "id": "meditation_promotes_calm", "from": "meditation", "to": "calm", "relationship": "promotes", "weight": 0.9, "mechanism": "parasympathetic_activation" }, { "id": "breathing_helps_anxiety", "from": "deep_breathing", "to": "anxiety", "relationship": "helps_reduce", "weight": 0.8, "speed": "immediate", "accessibility": "high" }, { "id": "exercise_helps_stress", "from": "exercise", "to": "stress", "relationship": "helps_reduce", "weight": 0.75, "mechanism": "endorphin_release" }, { "id": "music_promotes_calm", "from": "music_therapy", "to": "calm", "relationship": "promotes", "weight": 0.7, "effect": "mood_enhancement" }, { "id": "journaling_helps_anxiety", "from": "journaling", "to": "anxiety", "relationship": "helps_reduce", "weight": 0.65, "mechanism": "emotional_processing" }, { "id": "relaxation_helps_stress", "from": "progressive_relaxation", "to": "stress", "relationship": "helps_reduce", "weight": 0.8, "target": "physical_symptoms" }, { "id": "reframing_helps_anxiety", "from": "cognitive_reframing", "to": "anxiety", "relationship": "helps_reduce", "weight": 0.75, "approach": "cognitive_behavioral" }, { "id": "breaks_promote_focus", "from": "work_break", "to": "focused", "relationship": "promotes", "weight": 0.7, "research": "productivity_studies" }, { "id": "calm_promotes_focus", "from": "calm", "to": "focused", "relationship": "promotes", "weight": 0.8, "mechanism": "reduced_cognitive_load" } ], "rules": [ { "id": "high_stress_immediate_relief", "name": "High Stress Immediate Relief", "condition": { "emotion": "stress", "intensity": "> 0.7", "urgency": "high" }, "action": { "recommend": ["deep_breathing", "progressive_relaxation"], "prioritize": "immediate_effect", "duration_limit": 10 }, "confidence": 0.9 }, { "id": "anxiety_management", "name": "Anxiety Management Protocol", "condition": { "emotion": "anxiety", "duration": "> 30 minutes" }, "action": { "recommend": ["deep_breathing", "cognitive_reframing", "journaling"], "sequence": "breathing_first", "follow_up": "meditation" }, "confidence": 0.85 }, { "id": "focus_enhancement", "name": "Focus Enhancement Strategy", "condition": { "state": "distracted", "task_type": "cognitive", "time_available": "> 15 minutes" }, "action": { "recommend": ["meditation", "work_break", "music_therapy"], "preparation": "environment_optimization" }, "confidence": 0.8 }, { "id": "preventive_wellness", "name": "Preventive Wellness Routine", "condition": { "stress_level": "< 0.3", "time_of_day": "morning" }, "action": { "recommend": ["meditation", "exercise"], "purpose": "prevention", "frequency": "daily" }, "confidence": 0.75 }, { "id": "time_constrained_relief", "name": "Time-Constrained Relief", "condition": { "stress_level": "> 0.5", "time_available": "< 10 minutes" }, "action": { "recommend": ["deep_breathing"], "exclude": ["exercise", "meditation"], "optimize_for": "speed" }, "confidence": 0.8 }, { "id": "energy_based_selection", "name": "Energy-Based Activity Selection", "condition": { "energy_level": "low", "needs_relief": true }, "action": { "recommend": ["meditation", "music_therapy", "journaling"], "exclude": ["exercise"], "match_energy": true }, "confidence": 0.85 } ], "preferences": { "default_user": { "activity_preferences": [ { "type": "like", "subject": "user", "object": "quiet_activities", "strength": 0.8, "context": "stress_relief" }, { "type": "neutral", "subject": "user", "object": "physical_activity", "strength": 0.5, "context": "energy_dependent" } ], "environment_preferences": [ { "type": "like", "subject": "user", "object": "quiet_environment", "strength": 0.9 }, { "type": "dislike", "subject": "user", "object": "crowded_spaces", "strength": 0.7, "context": "when_stressed" } ], "time_preferences": [ { "type": "like", "subject": "user", "object": "morning_activities", "strength": 0.6 }, { "type": "like", "subject": "user", "object": "short_sessions", "strength": 0.8, "context": "busy_schedule" } ] } }, "contexts": [ { "id": "workplace_stress", "name": "Workplace Stress Management", "applicable_nodes": ["stress", "anxiety", "work_break", "deep_breathing"], "constraints": [ "professional_environment", "limited_time", "discrete_activities" ], "priorities": ["immediate_relief", "workplace_appropriate"] }, { "id": "home_relaxation", "name": "Home Relaxation Context", "applicable_nodes": ["meditation", "music_therapy", "progressive_relaxation"], "advantages": ["privacy", "comfort", "full_resources"], "optimal_activities": ["meditation", "music_therapy", "journaling"] }, { "id": "travel_stress", "name": "Travel Stress Management", "applicable_nodes": ["deep_breathing", "music_therapy", "cognitive_reframing"], "constraints": ["limited_space", "noise", "public_setting"], "portable_solutions": ["breathing", "mental_techniques", "audio_tools"] } ] }