A High-Precision SVM Model for Depression Detection Among Farmers
Received: 29 June 2025 | Revised: 13 July 2025, 31 July 2025, and 4 August 2025 | Accepted: 14 August 2025 | Online: 26 August 2025
Corresponding author: S. Vidya
Abstract
Depression among farmers is an increasing concern, driven by a complex interplay of agricultural, socioeconomic, and behavioral stressors. This study employs machine learning to identify depression in farmers by integrating diverse factors such as economic conditions, social behavior, and farming-related challenges. This study offers a novel data-driven framework for the detection of depression among Indian farmers by merging socioeconomic and psychological indicators—an area with limited prior investigation. The integration of Patient Health Questionnaire 9 (PHQ-9) assessments with an SVM-RFE model establishes a robust and accurate method for large-scale mental health screening in agrarian populations. Data were gathered from 1,069 farmers in Mandya, India, using structured surveys and the validated PHQ-9. The SVM model demonstrated high performance, achieving 96.59% accuracy, 96.47% precision, 96.59% recall, and a 96.00% F1-score, surpassing several other advanced classification algorithms. The findings underscore the significant impact of economic instability, social isolation, and limited access to mental healthcare on farmers' psychological well-being. Notably, gender-based disparities emerged, with approximately 40% of female farmers found to be more susceptible to depression. The study highlights the urgent need for integrated mental health support systems and agricultural policy reforms, advocating for scalable, AI-powered early detection tools tailored to rural farming communities.
Keywords:
farmers' mental health, depression detection, SVM, agricultureDownloads
References
"Provisional Estimates of Annual GDP for 2023-24 And Quarterly Estimates of GDP for Q4 of 2023-24." https://www.pib.gov.in/www.pib.gov.in/Pressreleaseshare.aspx?PRID=2022323.
"India: agriculture gross domestic product of Karnataka 2024| Statista," Statista. https://www.statista.com/statistics/974112/india-agriculture-gsdp-of-karnataka/.
K. S. Parvathamma and B. N. Hemavathi, "Agricultural Information Needs of Small Holder Farmers of Karnataka: A Pilot Study at Ramanagara District," International Journal of Information Studies, vol. 17, no. 2, pp. 51–63, Apr. 2025.
I. P. Irvan and N. N. Yuliarmi, "Analysis of impact factors on farmers income," International Research Journal of Management, IT and Social Sciences, vol. 6, no. 5, pp. 218–225, Sep. 2019.
C. Coughenour and L. Swanson, "Determinants of Farmers’ Satisfactions With Farming and With Life: A Replication and Extension," Journal of Rural Social Sciences, vol. 09, no. 1, Dec. 1992.
A. Ramesh and C. Madhavi, "Occupational stress among farming people," Journal of Agricultural Sciences – Sri Lanka, vol. 4, no. 3, pp. 115–125, Mar. 2010.
S. Daghagh Yazd, S. A. Wheeler, and A. Zuo, "Key Risk Factors Affecting Farmers’ Mental Health: A Systematic Review," International Journal of Environmental Research and Public Health, vol. 16, no. 23, Dec. 2019, Art. no. 4849.
H. M. Mallikarjun, A. Chhetri, G. S. Apoorva, G. Jadhav, and B. V. Sheetal, "Depression Predictor Model for Farmers using Machine Learning Techniques," International Journal of Innovative Technology and Exploring Engineering, vol. 9, no. 2S, pp. 540–543, Dec. 2019.
A. H. Orabi, P. Buddhitha, M. H. Orabi, and D. Inkpen, "Deep Learning for Depression Detection of Twitter Users," in Proceedings of the Fifth Workshop on Computational Linguistics and Clinical Psychology: From Keyboard to Clinic, New Orleans, LA, USA, Mar. 2018, pp. 88–97.
G. H. A. Masud, R. I. Shanto, I. Sakin, and M. R. Kabir, "Effective depression detection and interpretation: Integrating machine learning, deep learning, language models, and explainable AI," Array, vol. 25, Mar. 2025, Art. no. 100375, https://doi.org/10.1016/j.array.2025.100375.
C. Mimikou et al., "Explainable Machine Learning in the Prediction of Depression," Diagnostics, vol. 15, no. 11, Jun. 2025, Art. no. 1412.
T. Vu et al., "Prediction of depressive disorder using machine learning approaches: findings from the NHANES," BMC Medical Informatics and Decision Making, vol. 25, no. 1, Feb. 2025, Art. no. 83.
N. S. Parameswaran and D. Venkataraman, "A computer vision based image processing system for depression detection among students for counseling," Indonesian Journal of Electrical Engineering and Computer Science, vol. 14, no. 1, pp. 503–512, 2019.
S. Vidya, G. T. Raju, and M. Vinayaka Murthy, "Review on Depression Detection Using Machine Learning Techniques," in Proceedings of 4th International Conference on Recent Trends in Machine Learning, IoT, Smart Cities and Applications, vol. 873, V. K. Gunjan and J. M. Zurada, Eds. Springer Nature Singapore, 2024, pp. 715–728.
S. Vidya, N. Swamy, and H. Lalitha, "Leveraging Machine Learning Algorithms for Depression Prediction in College Students Using PHQ-9 Scores," in 2024 IEEE 6th PhD Colloquium on Emerging Domain Innovation and Technology for Society (PhD EDITS), Bangalore, India, Nov. 2024, pp. 1–2.
N. Jankelova, D. Masar, and S. Moricova, "Risk factors in the agriculture sector," Agricultural Economics (Zemědělská ekonomika), vol. 63, no. 6, pp. 247–258, Jun. 2017.
S. Jain, S. P. Narayan, R. K. Dewang, U. Bhartiya, N. Meena, and V. Kumar, "A Machine Learning based Depression Analysis and Suicidal Ideation Detection System using Questionnaires and Twitter," in 2019 IEEE Students Conference on Engineering and Systems (SCES), Allahabad, India, May 2019, pp. 1–6.
K. O. Asare, Y. Terhorst, J. Vega, E. Peltonen, E. Lagerspetz, and D. Ferreira, "Predicting Depression From Smartphone Behavioral Markers Using Machine Learning Methods, Hyperparameter Optimization, and Feature Importance Analysis: Exploratory Study," JMIR mHealth and uHealth, vol. 9, no. 7, Jul. 2021, Art. no. e26540.
B. Sahoo and A. Gupta, "An Ensemble Kernelized-based Approach for Precise Emotion Recognition in Depressed People," Engineering, Technology & Applied Science Research, vol. 14, no. 6, pp. 18873–18882, Dec. 2024.
M. A. Soeleman, D. Trisatya, A. Marjuni, P. N. Andono, and K. Kondo, "Sentiment Analysis on Movie and Product Reviews Using Supervised Learning and Ensemble Learning," International Journal of Intelligent Engineering and Systems, vol. 18, no. 4, pp. 169–198, May 2025.
K. Kroenke, R. L. Spitzer, and J. B. W. Williams, "The Patient Health Questionnaire-2: Validity of a Two-Item Depression Screener," Medical Care, vol. 41, no. 11, pp. 1284–1292, Nov. 2003.
R. Rois, M. Ray, A. Rahman, and S. K. Roy, "Prevalence and predicting factors of perceived stress among Bangladeshi university students using machine learning algorithms," Journal of Health, Population and Nutrition, vol. 40, no. 1, Dec. 2021, Art. no. 50.
U. B. Munir, M. S. Kaiser, U. I. Islam, and F. H. Siddiqui, "Machine Learning Classification Algorithms for Predicting Depression Among University Students in Bangladesh," in Proceedings of the Third International Conference on Trends in Computational and Cognitive Engineering, 2022, pp. 69–80.
A. Priya, S. Garg, and N. P. Tigga, "Predicting Anxiety, Depression and Stress in Modern Life using Machine Learning Algorithms," Procedia Computer Science, vol. 167, pp. 1258–1267, 2020.
Md. I. H. Nayan et al., "Comparison of the Performance of Machine Learning-based Algorithms for Predicting Depression and Anxiety among University Students in Bangladesh: A Result of the First Wave of the COVID-19 Pandemic," Asian Journal of Social Health and Behavior, vol. 5, no. 2, pp. 75–84, Apr. 2022.
H. S. Alsagri and M. Ykhlef, "Machine Learning-Based Approach for Depression Detection in Twitter Using Content and Activity Features," IEICE Transactions on Information and Systems, vol. E103.D, no. 8, pp. 1825–1832, Aug. 2020.
K. S. Na, S. E. Cho, Z. W. Geem, and Y. K. Kim, "Predicting future onset of depression among community dwelling adults in the Republic of Korea using a machine learning algorithm," Neuroscience Letters, vol. 721, Mar. 2020, Art. no. 134804.
A. Sau and I. Bhakta, "Screening of anxiety and depression among the seafarers using machine learning technology," Informatics in Medicine Unlocked, vol. 16, 2019, Art. no. 100149.
Md. S. Zulfiker, N. Kabir, A. A. Biswas, T. Nazneen, and M. S. Uddin, "An in-depth analysis of machine learning approaches to predict depression," Current Research in Behavioral Sciences, vol. 2, Nov. 2021, Art. no. 100044.
M. K. Myee, R. D. C. Rebekah, T. Deepa, G. D. Zion, and K. Lokesh, "Detection of Depression in Social Media Posts using Emotional Intensity Analysis," Engineering, Technology & Applied Science Research, vol. 14, no. 5, pp. 16207–16211, Oct. 2024.
Downloads
How to Cite
License
Copyright (c) 2025 S. Vidya, G. T. Raju, M. Vinayaka Murthy

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.