IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0313276.html
   My bibliography  Save this article

Exploring happiness factors with explainable ensemble learning in a global pandemic

Author

Listed:
  • Md Amir Hamja
  • Mahmudul Hasan
  • Md Abdur Rashid
  • Md Tanvir Hasan Shourov

Abstract

Happiness is a state of contentment, joy, and fulfillment, arising from relationships, accomplishments, and inner peace, leading to well-being and positivity. The greatest happiness principle posits that morality is determined by pleasure, aiming for a society where individuals are content and free from suffering. While happiness factors vary, some are universally recognized. The World Happiness Report (WHR), published annually, includes data on ‘GDP per capita’, ‘social support’, ‘life expectancy’, ‘freedom to make life choices’, ‘generosity’, and ‘perceptions of corruption’. This paper predicts happiness scores using Machine Learning (ML), Deep Learning (DL), and ensemble ML and DL algorithms and examines the impact of individual variables on the happiness index. We also show the impact of COVID-19 pandemic on the happiness features. We design two ensemble ML and DL models using blending and stacking ensemble techniques, namely, Blending RGMLL, which combines Ridge Regression (RR), Gradient Boosting (GB), Multilayer Perceptron (MLP), Long Short-Term Memory (LSTM), and Linear Regression (LR), and Stacking LRGR, which combines LR, Random Forest (RF), GB, and RR. Among the trained models, Blending RGMLL demonstrates the highest predictive accuracy with R2 of 85%, MSE of 0.15, and RMSE of 0.38. We employ Explainable Artificial Intelligence (XAI) techniques to uncover changes in happiness indices, variable importance, and the impact of the COVID-19 pandemic on happiness. The study utilizes an open dataset from the WHR, covering 156 countries from 2018 to 2023. Our findings indicate that ‘GDP per capita’ is the most critical indicator of happiness score (HS), while ‘social support’ and ‘healthy life expectancy’ are also important features before and after the pandemic. However, during the pandemic, ‘social support’ emerged as the most important indicator, followed by ‘healthy life expectancy’ and ‘GDP per capita’, because social support is the prime necessity in the pandemic situation. The outcome of this research helps people understand the impact of these features on increasing the HS and provides guidelines on how happiness can be maintain during unwanted situations. Future research will explore advanced methods and include other related features with real-time monitoring for more comprehensive insights.

Suggested Citation

  • Md Amir Hamja & Mahmudul Hasan & Md Abdur Rashid & Md Tanvir Hasan Shourov, 2025. "Exploring happiness factors with explainable ensemble learning in a global pandemic," PLOS ONE, Public Library of Science, vol. 20(1), pages 1-32, January.
  • Handle: RePEc:plo:pone00:0313276
    DOI: 10.1371/journal.pone.0313276
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0313276
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0313276&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0313276?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0313276. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.