This visualization reveals that specific lifestyle and physiological factors are crucial in predicting anxiety severity. The most important features are caffeine intake (mg/day), physical activity (hrs/week), and heart rate (bpm during attack), with caffeine intake being the strongest predictor. High caffeine consumption and physical activity levels seem to correlate with increased anxiety severity. Additionally, sleep hours and age also play significant roles in predicting anxiety severity, indicating that sleep quality and age may influence anxiety levels. Other important features include breathing rate, alcohol consumption, and stress level, all of which contribute to understanding how lifestyle and physiological factors impact anxiety. This analysis suggests that lifestyle changes such as regulating caffeine intake, improving sleep, and managing stress can be important in addressing anxiety severity.
The XGBoost results offer valuable insights into the performance of the model for anxiety severity classification. After applying hyperparameter tuning, XGBoost achieved higher accuracy compared to models like SVM, with a noticeable improvement in distinguishing between low and high severity classes. XGBoost is a powerful ensemble method that leverages decision trees, and its ability to handle non-linear relationships and complex patterns within the data contributed to its success. The model’s performance indicates that the features in the anxiety dataset contain enough information for XGBoost to exploit, yielding a more accurate classification. The confusion matrix and feature importance analysis provided further insights, revealing which factors (such as stress levels, caffeine intake, and sleep patterns) played a significant role in predicting anxiety severity. These findings suggest that XGBoost is a more suitable model for this type of task, as it can capture intricate patterns in the data that other models, like SVM, struggled to identify.