Depression Detection in Social Media Data for Resource-Constrained Roman Urdu Using Machine Learning Methods
DOI:
https://doi.org/10.22581/muet1982.0704Keywords:
Depression detection, machine learning, Roman Urdu, Classifiers, Mental HealthAbstract
nxiety and depression are crucial issues related to human mental health globally and are especially prevalent among users of social networking and online platforms such as X and Reddit. Roman Urdu has become a dominant language for expressing and communicating personal feelings on these platforms, making it a valuable resource for detecting early signs of depression. This study focuses on the automatic detection of depression in Roman Urdu social media posts using machine learning methods. A human-annotated corpus of 6,000 posts was created, and four machine learning classifiers, namely Naive Bayes (NB), Support Vector Machine (SVM), Random Forest (RF), and K-Nearest Neighbors (KNN), were trained using natural language processing features such as TF-IDF. The accuracy, training time, and testing time of these models were compared. The results demonstrate that the Random Forest classifier outperforms the other models, achieving 93% accuracy with high efficiency. The study highlights the effectiveness of scalable machine learning-based early detection methods for underrepresented languages such as Roman Urdu.
Downloads
References
media Posts: A Survey,” Archives of Computational Methods in Engineering, vol. 30, no. 3, pp. 1819–1842, 2023, doi: 10.1007/s11831-022-09863-z.
[2] A. Helmy, R. Nassar, and N. Ramdan, “Depression detection for twitter users using sentiment analysis in English and Arabic tweets,” Artif Intell Med, vol. 147, p. 102716, Jan. 2024, doi: 10.1016/j.artmed.2023.102716.
[3] F. Azam, M. Agro, M. Sami, M. H. Abro, and A. Dewani, “Identifying Depression Among Twitter Users using Sentiment Analysis,” in 2021 International Conference on Artificial Intelligence (ICAI), IEEE, Apr. 2021, pp. 44–49. doi: 10.1109/ICAI52203.2021.9445271.
[4] V. Tejaswini, K. Sathya Babu, and B. Sahoo, “Depression Detection from social media Text Analysis using Natural Language Processing Techniques and Hybrid Deep Learning Model,” ACM Transactions on Asian and Low-Resource Language Information Processing, vol. 23, no. 1, pp. 1–20, Jan. 2024, doi: 10.1145/3569580.
[5] R. Chiong, G. S. Budhi, S. Dhakal, and F. Chiong, “A textual-based featuring approach for depression detection using machine learning classifiers and social media texts,” Comput Biol Med, vol. 135, p. 104499, Aug. 2021, doi: 10.1016/j.compbiomed.2021.104499.
[6] Z. Hussain and M. D. Borah, “Predicting Mental Health and Nutritional Status from social media Profile Using Deep Learning,” 2022, pp. 177–193. doi: 10.1007/978-3-031-10869-3_10.
[7] M. Garg, “Towards Mental Health Analysis in social media for Low-resourced Languages,” ACM Transactions on Asian and Low-Resource Language Information Processing, vol. 23, no. 3, Mar. 2024, doi: 10.1145/3638761.
[8] M. Garg, “Towards Mental Health Analysis in social media for Low-resourced Languages,” ACM Transactions on Asian and Low-Resource Language Information Processing, vol. 23, no. 3, pp. 1–22, Mar. 2024, doi: 10.1145/3638761.
[9] A. Helmy, R. Nassar, and N. Ramdan, “Depression detection for twitter users using sentiment analysis in English and Arabic tweets,” Artif Intell Med, vol. 147, p. 102716, Jan. 2024, doi: 10.1016/j.artmed.2023.102716.
[10] M. R. Adi Nugraha and Y. Sibaroni, “Classification of Depression Expressions on Twitter Using Ensemble Learning with Word2Vec,” Inform: Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi, vol. 9, no. 1, pp. 67–74, Jan. 2024, doi: 10.25139/inform.v9i1.7559.
[11] F. Rehmani, Q. Shaheen, M. Anwar, M. Faheem, and S. S. Bhatti, “Depression detection with machine learning of structural and non‐structural dual languages,” Healthc Technol Lett, 2024.
[12] P. Singh, G. Singh, A. Singh, and J. Singh, “Intelligent Mental Depression Recognition Model with Ensemble Learning Through social media Tweet Resources,” Cybern Syst, vol. 55, no. 2, pp. 471–510, Feb. 2024, doi: 10.1080/01969722.2022.2122009.
[13] L. Ilias, S. Mouzakitis, and D. Askounis, “Calibration of Transformer-Based Models for Identifying Stress and Depression in social media,” IEEE Trans Comput Soc Syst, vol. 11, no. 2, pp. 1979–1990, Apr. 2024, doi: 10.1109/TCSS.2023.3283009.
[14] A. K. Das and R. Naskar, “A deep learning model for depression detection based on MFCC and CNN generated spectrogram features,” Biomed Signal Process Control, vol. 90, p. 105898, Apr. 2024, doi: 10.1016/j.bspc.2023.105898.
[15] A. Helmy, R. Nassar, and N. Ramdan, “Depression detection for twitter users using sentiment analysis in English and Arabic tweets,” Artif Intell Med, vol. 147, p. 102716, Jan. 2024, doi: 10.1016/j.artmed.2023.102716.
[16] Z. Nabeel, M. Mehmood, A. Baqir, and A. Amjad, “Classifying Emotions in Roman Urdu Posts using machine learning,” in Proceedings of the 2021 Mohammad Ali Jinnah University International Conference on Computing, MAJICC 2021, Institute of Electrical and Electronics Engineers Inc., Jul. 2021. doi: 10.1109/MAJICC53071.2021.9526273.
[17] Chutia, T., and Baruah, N. (2024). A review on emotion detection by using deep learning techniques. Artificial Intelligence Review, 57(8), 203.
[18] M. Mansoor Alam, S. Mazliham Mo, A. Khan, N. Gul, and K. Ullah Khan, “A Hybrid Method for Stress and Depression Detection from social media Text Focused on Local Languages,” International Journal of Computational Intelligence in Control Copyrights @Muk Publications, vol. 14, no. 1, 2022.
[19] Garg, M. (2024). Towards Mental Health Analysis in social media for Low-resourced Languages. ACM Transactions on Asian and Low-Resource Language Information Processing, 23(3), 1-22.
[20] J. D. Akinyemi, A. O. J. Ibitoye, C. T. Oyewale, and O. F. W. Onifade, “Cyberbullying Detection and Classification in social media Texts Using machine learning Techniques,” in Advances in Computer Science for Engineering and Education VI, Z. Hu, I. Dychka, and M. He, Eds., Cham: Springer Nature Switzerland, 2023, pp. 440–449.
[21] S. Malik, S. A. Sani, A. Baqir, U. Ahmad, and F. ul Mustafa, “Preprocessing Techniques in Text Categorization: A Survey,” in Intelligent Technologies and Applications, I. S. Bajwa, T. Sibalija, and D. N. A. Jawawi, Eds., Singapore: Springer Singapore, 2020, pp. 502–509.
[22] F. Azam, M. Sami, M. Agro, A. Dewani, Analyzing the Shadows: machine learning Approaches for Depression Detection on Twitter. International Journal of Innovations in Science and Technology, 6(3), 1402–1416 (2024).
[23] Rehmani, F., Shaheen, Q., Anwar, M., Faheem, M., and Bhatti, S. S. (2024). Depression detection with machine learning of structural and non‐structural dual languages. Healthcare Technology Letters.
[24] M. Sami, S. Memon, J. Baloch, and S. Bhatti. "An automated framework for finding fake accounts on Facebook." International Journal of Advanced Studies in Computers, Science and Engineering 7, no. 2 (2018): 8-16
[25] Dewani, A., Memon, M. A., Bhatti, S., Sulaiman, A., Hamdi, M., Alshahrani, H.,... and Shaikh, A. (2023). Detection of cyberbullying patterns in low resource colloquial Roman Urdu microtext using natural language processing, machine learning, and ensemble techniques. Applied Sciences, 13(4), 2062.
[26] Yasin, S., Othmani, A., Raza, I., and Hussain, S. A. (2023). Machine learning based approaches for clinical and non-clinical depression recognition and depression relapse prediction using audiovisual and EEG modalities: A comprehensive review. Computers in Biology and Medicine, 159, 106741.
[27] Khokhar, I. A., and Garcia, M. I. M. (2024, March). Decoding Depression: A Psycholinguistic Lexical Analysis of the Urdu Speech. In Linguistic Forum-A Journal of Linguistics (Vol. 6, No. 1, pp. 48-70).
[28] Idrisoglu, A., Dallora, A. L., Anderberg, P., and Berglund, J. S. (2023). Applied machine learning techniques to diagnose voice-affecting conditions and disorders: Systematic literature review. Journal of Medical Internet Research, 25, e46105
[29] K. AL Govindasamy and N. Palanichamy, “Depression Detection Using machine learning Techniques on Twitter Data,” in 2021 5th International Conference on Intelligent Computing and Control Systems (ICICCS), IEEE, May 2021, pp. 960–966. doi: 10.1109/ICICCS51141.2021.9432203.
[30] S. Malik, S. A. Sani, A. Baqir, U. Ahmad, and F. ul Mustafa, “Preprocessing Techniques in Text Categorization: A Survey,” 2020, pp. 502–509. doi: 10.1007/978-981-15-5232-8_43.
[31] Z. Mahmood et al., “Deep sentiments in Roman Urdu text using Recurrent Convolutional Neural Network model,” Inf Process Manag, vol. 57, no. 4, p. 102233, Jul. 2020, doi: 10.1016/j.ipm.2020.102233.
[32] K. AL Govindasamy and N. Palanichamy, “Depression Detection Using machine learning Techniques on Twitter Data,” in 2021 5th International Conference on Intelligent Computing and Control Systems (ICICCS), IEEE, May 2021, pp. 960–966. doi: 10.1109/ICICCS51141.2021.9432203.
[33] Al Maruf, A., Khanam, F., Haque, M. M., Jiyad, Z. M., Mridha, F., and Aung, Z. (2024). Challenges and opportunities of text-based emotion detection: A survey. IEEE Access.
[34] S. J. Johnson, M. R. Murty, and I. Navakanth, “A detailed review on word embedding techniques with emphasis on word2vec,” Multimed Tools Appl, vol. 83, no. 13, pp. 37979–38007, 2024, doi: 10.1007/s11042-023-17007-z.
[35] L. Bendebane, Z. Laboudi, A. Saighi, H. Al-Tarawneh, A. Ouannas, and G. Grassi, “A Multi-Class Deep Learning Approach for Early Detection of Depressive and Anxiety Disorders Using Twitter Data,” Algorithms, vol. 16, no. 12, p. 543, Nov. 2023, doi: 10.3390/a16120543.
[36] F. B. Tumaliuan, L. Grepo, and E. R. Jalao, “Development of Depression Data Sets and a Language Model for Depression Detection: Mixed Methods Study”, doi: 10.2196/53365.
[37] Z. Nabeel, M. Mehmood, A. Baqir, and A. Amjad, “Classifying Emotions in Roman Urdu Posts using machine learning,” in Proceedings of the 2021 Mohammad Ali Jinnah University International Conference on Computing, MAJICC 2021, Institute of Electrical and Electronics Engineers Inc., Jul. 2021. doi: 10.1109/MAJICC53071.2021.9526273.
[38] Md. R. Islam, M. A. Kabir, A. Ahmed, A. R. M. Kamal, H. Wang, and A. Ulhaq, “Depression detection from social network data using machine learning techniques,” Health Inf Sci Syst, vol. 6, no. 1, p. 8, Dec. 2018, doi: 10.1007/s13755-018-0046-0.
[39] Akhtar, M., Shoukat, R. S., and Rehman, S. U. (2023). A machine learning approach for Urdu text sentiment analysis. Mehran University Research Journal of Engineering and Technology, 42(2), 75-87.
[40] M. Sami, S. Memon, J. Baloch, and S. Bhatti. "An automated framework for finding fake accounts on Facebook." International Journal of Advanced Studies in Computers, Science and Engineering 7, no. 2 (2018): 8-16.
[41] A. Ilyas, K. Shahzad, and M. Kamran Malik, “Emotion Detection in Code-Mixed Roman Urdu - English Text,” ACM Transactions on Asian and Low-Resource Language Information Processing, vol. 22, no. 2, pp. 1–28, Feb. 2023, doi: 10.1145/3552515.
[42] Machová, K., Szabóova, M., Paralič, J., and Mičko, J. (2023). Detection of emotion by text analysis using machine learning. Frontiers in Psychology, 14, 1190326.
[43] Islam, M. S., Saha, S., Alam, M. M., Datta, N. K., Ali, M. H., Hossain, M. D., and Moazzam, M. G. (2023, December). Natural Language Processing and machine learning Approaches to Detect Bangla Hate Speech on social media. In 2023 26th International Conference on Computer and Information Technology (ICCIT) (pp. 1-6). IEEE.
Published
Issue
Section
License
Copyright (c) 2026 Mehran University Research Journal of Engineering and Technology

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
How to Cite
Most read articles by the same author(s)
- Abdul Razaque, Pawang Rai, Memoona Sami, Junaid Baloch, Amirita Dewani, Mariam Memon, Transforming Early Autism Screening with Multimodal Machine Learning in Digital Health , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
Similar Articles
- Abdul Rehman Imtiaz, Umer Ijaz, Muhammad Farhan, Reinforcement Learning-Adaptive Hybrid Metaheuristic for Optimal Distributed Generation and Shunt Capacitor Placement with Embedded V2G Dispatch in Distribution Networks , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 4 (2026): October Issue
- Sadaf Hussain, Amna Sajid, Tanweer Sohail, Muhammad Nauman Aslam, Muhammad Shamrooz Aslam, Green Communication with Object Detection for Energy-Efficient Smart Shopping Carts , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
- Syed Shabeeb Raza, Muhammad Imran Saleem, Hassan Ahmed Khan, Shaheena Noor, Ali Yousuf Khan, Eman Razzaq, A Comparative Analysis of Software-Defined Networking (SDN) Security Policies With and Without Reinforcement Learning Automation , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Yang Haoxuan, Faizan Qamar, Syed Hussain Ali Kazmi, Khairul Akram Zainol Ariffin, Kashif Nisar, Hybrid Model for Data-Driven Channel Estimation in mmWave Massive MIMO Systems with Compressed Sensing and Deep Learning , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Muhammad Zubair, Syed Muhammad Sajjad Haider, Ans Rehman, Muhammad Saqib Javed, Aashir Waleed, Rimsha Chauhdary, PackMLP: A Patch Based MLP Model for Intelligent Inventory Forecasting and Automation with A-LIQ QR Scanning Integration , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Muhammad Nauman, Muhammad Usman Javeed, Shafqat Maria Aslam, Muhammad Munawar Iqbal, Qamer un Nisa, Zeeshan Raza, A Deep Fusion Network for Multiclass Classification of Alzheimer's Disease Using Multimodal Neuroimaging , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 4 (2026): October Issue
- Urooj Khan, Tariq Soomro, M.N. Brohi, Regression-based investigation of latency in automated networks , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Zahid Hussain Khaskheli , Qasim Ali, M Shehram Shah , Din Muhammad , Farast Ali, Hina Ali, Maria Khalid, Zoha Waheed, Umer Gaffar, Improving Human Action Recognition Through Cross-View Camera-Aware Augmentation , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Shakeel Ahmad , Sheikh Muhammad Saqib, Asif Hassan Syed , Ali Ahmed Abdelrahim , Nashwan Alromema, XAI-Driven Stacking Ensemble for Cross-Disease Feature Modification and Clinical Insights , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Muhammad Mazhar Saleem, Hongki Jo, Heterogeneous Sensor Configuration Optimization in Dynamic Structural Response Estimation , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
You may also start an advanced similarity search for this article.