MichaelChaoLi-cpu / MentalHealthAndLandCover

This repo is about the relationship between mental health and land cover using machine learning methed (DP02).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mental Health and Land Cover: A Global Analysis Based on Random Forest with Geographical Consideration (DP02)

Natural features in living environments can help to reduce stress and improve mental health. Different land types have disproportionate impacts on mental health. However, the relationships between mental health and land cover are inconclusive. In this study, we aim to accurately fit the relationships, estimate the impacts of land cover change on mental health, and demonstrate the global spatial variability of impacts. In the analysis, we show the complex relationships between mental health and eight land types based on the random forest method and Shapley additive explanations. The accuracy of our model is 67.59%, while the accuracy of the models used in previous studies is usually no more than 20%. According to the analysis results, we estimate the average effects of eight land types. Due to their scarcity in living environments, shrubland, wetland, and bare land have larger impacts on mental health. Cropland, forest, and water could improve mental health in high-population-density areas. The impacts of urban land and grassland are mainly negative. The current land cover composition influences people’s attitudes toward a specific land type. Our research is the first study that analyzes data with geographical information by random forest and explains the results geographically. This paper provides a novel machine learning explanation method and insights to formulate better land-use policies to improve mental health.

Author

Chao Li, Shunsuke Managi

Result: Monrtary Values of Land Cover (example)

Result: SHAP of Land Cover (example)

Maunscript

Mental Health and Land Cover: A Global Analysis Based on Random Forest with Geographical Consideration

Python Code

Coming soon!

R Code (Retired)

01_DW_BuildDataset_v1.R: This script is to wash the data to get the data set in the analysis. All features are reserved.
02_AN_MentalHealthRandomForestTest_v1.R: This script is to run random forest with 48 features. Aborted.
03_AN_PartialDependenceProfileImprovement_v1.R: This script is to get PPDF based on the PDP from 04_AN_MentalHealthRf47CutRange_v1.R.
04_AN_MentalHealthRf47CutRange_v1.R: This script conducts the analysis based on random forest. 47 feature are used. The model is weighted.
05_AN_MarginalSubstitutionRate1hm_v1.R: This script calculate the monetory values.
06_VI_Visualization_v1.R: This script is to visualize the result in the manuscript.
07_AN_Rf47CutRangeMtrySelection_v1.R: This script is to try Ntry from 11 to 21.

Workflow

Contact Us:

Term of Use:

Authors/funders retain copyright (where applicable) of code on this Github repo. This GitHub repo and its contents herein, including data, link to data source, and analysis code that are intended solely for reproducing the results in the manuscript "Mental Health and Land Cover: A Global Analysis Based on Random Forests". The analyses rely upon publicly available data from multiple sources, that are often updated without advance notice. We hereby disclaim any and all representations and warranties with respect to the site, including accuracy, fitness for use, and merchantability. By using this site, its content, information, and software you agree to assume all risks associated with your use or transfer of information and/or software. You agree to hold the authors harmless from any claims relating to the use of this site.

About

This repo is about the relationship between mental health and land cover using machine learning methed (DP02).

License:Apache License 2.0


Languages

Language:R 41.4%Language:Jupyter Notebook 38.5%Language:Python 20.0%Language:Shell 0.1%