The Apriori algorithm was applied with the following thresholds:
Minimum Support: 10% (0.1)
Minimum Confidence: 40% (0.4)
Minimum Lift: 1.0 (to ensure rules provide meaningful associations)
These thresholds were chosen to identify strong, frequent relationships while filtering out less significant correlations.
High physical activity is frequently associated with both high stress and high caffeine intake.
Moderate caffeine intake is linked to moderate stress.
Short sleep durations (4-6 hours) are commonly linked with higher caffeine consumption.
Key Insights
Lack of sleep (4-6 hours) has the strongest correlation with high caffeine consumption.
Moderate caffeine intake is a reliable predictor of moderate stress.
Both low and high activity levels relate to stress, but high activity is particularly linked with high stress.
Key Insights
Moderate caffeine intake and moderate activity levels are the most strongly linked combination.
People sleeping around 6 hours are significantly more likely to consume high caffeine.
Lack of sleep (4 hours) is significantly linked to high activity.
5. Network Graph Visualization
The following network graph visually represents the most significant associations identified in the dataset. Each node represents a lifestyle factor (such as stress level, sleep duration, or caffeine intake), while directed edges (arrows) indicate a strong relationship between two factors. The thickness of the arrows corresponds to the strength of the association, with thicker connections representing higher lift values, meaning those associations are stronger than random chance.
Key observations from the visualization:
High caffeine consumption (Caffeine_High) is directly linked to both high stress (Stress_High) and high physical activity (Activity_High), suggesting that individuals consuming large amounts of caffeine may also experience higher stress and maintain an active lifestyle.
People who sleep around 6 hours (Sleep_6h) are significantly more likely to have high caffeine intake (Caffeine_High), reinforcing the connection between sleep deprivation and increased caffeine dependence.
Moderate stress levels (Stress_Moderate) are closely associated with moderate caffeine intake (Caffeine_Medium), indicating that individuals experiencing mid-range stress levels tend to consume moderate amounts of caffeine rather than extreme highs or lows.
Sleep deprivation patterns emerge, showing that those who sleep only 4 hours (Sleep_4h) tend to be more physically active (Activity_High) but may also have unbalanced lifestyles contributing to stress.
Balanced lifestyle factors, such as Activity_Medium and Caffeine_Medium, tend to cluster together, suggesting a stable routine where moderate activity levels and moderate caffeine intake are common.
This network graph serves as a powerful tool for identifying lifestyle patterns that may contribute to anxiety or stress. By visually mapping these connections, we can better understand how daily habits such as caffeine intake, sleep, and activity levels are interrelated, offering potential insights for health recommendations and behavioral interventions.