Using Machine Learning and Nationwide Population‐Based Data to Unravel Predictors of Treated Depression in Farmers

Farmers are exposed to numerous stressors that can negatively impact their mental health, leading to conditions such as depression. However, most studies examining depression risk in farmers are limited by small sample sizes, narrow geographic coverage, and a focus predominantly on male farmers and general agricultural contexts. To complement these traditional studies, big data and machine learning (ML) can advantageously be harnessed. While ML algorithms have shown high accuracy in identifying depression predictors in mental health research, no study has yet applied ML in farmers. We aimed to identify key predictors of depression among the entire French farmer workforce across professional categories, activities, and sexes using ML (XGBoost). A secondary analysis of large‐scale administrative health databases (TRACTOR project) was conducted. Potential predictors ( n = 128 for farm managers and 123 for farmworkers) included a broad range of sociodemographic, health, lifestyle, and occupational variables. The predictor’s importance was determined using Shapley’s additive explanation. There were 83,592 depression cases among 1,088,561 farm managers and 149,285 depression cases among 5,831,302 farmworkers. Models performed well, with F 1 scores ranging from 0.65 to 0.94. We noted differences, even though several predictors were common across populations, activities, and/or sexes. The top predictors of depression included working year, age, sex, experience, job security, income, and preexisting health conditions. The working year, which reflects the cumulative impact of external factors (e.g., harsh weather) on farmers’ mental health, emerged as the most important predictor. These findings highlight the potential of ML applied to real‐world data for identifying modifiable predictors, thus enhancing early detection and prevention strategies. By differentiating predictors across farming groups, our results suggest that tailored mental health interventions could be developed to better address the unique needs of various farming populations. These insights could inform the development of clinical tools (e.g., risk calculators) to assist in clinical decision‐making.

Authors

Institutions

Publication Details

Journal
Mental Illness
Published
2025-01-01
DOI
https://doi.org/10.1155/mij/5570491
Primary Topic
Agriculture and Farm Safety
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Using Machine Learning and Nationwide Population‐Based Data to Unravel Predictors of Treated Depression in Farmers

Nicolas Vuillerme, Vincent Bonneterre, Pascal Petit
Mental Illness
Agriculture and Farm Safety
article

Using Machine Learning and Nationwide Population‐Based Data to Unravel Predictors of Treated Depression in Farmers

Nicolas Vuillerme, Vincent Bonneterre, Pascal Petit
article en

Abstract

Farmers are exposed to numerous stressors that can negatively impact their mental health, leading to conditions such as depression. However, most studies examining depression risk in farmers are limited by small sample sizes, narrow geographic coverage, and a focus predominantly on male farmers and general agricultural contexts. To complement these traditional studies, big data and machine learning (ML) can advantageously be harnessed. While ML algorithms have shown high accuracy in identifying depression predictors in mental health research, no study has yet applied ML in farmers. We aimed to identify key predictors of depression among the entire French farmer workforce across professional categories, activities, and sexes using ML (XGBoost). A secondary analysis of large‐scale administrative health databases (TRACTOR project) was conducted. Potential predictors ( n = 128 for farm managers and 123 for farmworkers) included a broad range of sociodemographic, health, lifestyle, and occupational variables. The predictor’s importance was determined using Shapley’s additive explanation. There were 83,592 depression cases among 1,088,561 farm managers and 149,285 depression cases among 5,831,302 farmworkers. Models performed well, with F 1 scores ranging from 0.65 to 0.94. We noted differences, even though several predictors were common across populations, activities, and/or sexes. The top predictors of depression included working year, age, sex, experience, job security, income, and preexisting health conditions. The working year, which reflects the cumulative impact of external factors (e.g., harsh weather) on farmers’ mental health, emerged as the most important predictor. These findings highlight the potential of ML applied to real‐world data for identifying modifiable predictors, thus enhancing early detection and prevention strategies. By differentiating predictors across farming groups, our results suggest that tailored mental health interventions could be developed to better address the unique needs of various farming populations. These insights could inform the development of clinical tools (e.g., risk calculators) to assist in clinical decision‐making.

Mental IllnessVol. 2025(1)
Centre National de la Recherche Scientifique (FR), Institut Universitaire de France (FR), Centre Hospitalier Universitaire de Grenoble (FR), Université Grenoble Alpes (FR)
Agence Nationale de la Recherche, Agence Nationale de Sécurité Sanitaire de l’Alimentation, de l’Environnement et du Travail, Mutualité Sociale Agricole
Openalex Percentile: Top 92%
Agriculture and Farm Safety
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.