Open AccessOpen Access


Predicting and Curing Depression Using Long Short Term Memory and Global Vector

Ayan Kumar1, Abdul Quadir Md1, J. Christy Jackson1,*, Celestine Iwendi2

1 School of Computer Science and Engineering, Vellore Institute of Technology, Chennai, 600127, India
2 School of Creative Technologies, University of Bolton, Bolton, UK

* Corresponding Author: J. Christy Jackson. Email:

Computers, Materials & Continua 2023, 74(3), 5837-5852.


In today’s world, there are many people suffering from mental health problems such as depression and anxiety. If these conditions are not identified and treated early, they can get worse quickly and have far-reaching negative effects. Unfortunately, many people suffering from these conditions, especially depression and hypertension, are unaware of their existence until the conditions become chronic. Thus, this paper proposes a novel approach using Bi-directional Long Short-Term Memory (Bi-LSTM) algorithm and Global Vector (GloVe) algorithm for the prediction and treatment of these conditions. Smartwatches and fitness bands can be equipped with these algorithms which can share data with a variety of IoT devices and smart systems to better understand and analyze the user’s condition. We compared the accuracy and loss of the training dataset and the validation dataset of the two models namely, Bi-LSTM without a global vector layer and with a global vector layer. It was observed that the model of Bi-LSTM without a global vector layer had an accuracy of 83%, while Bi-LSTM with a global vector layer had an accuracy of 86% with a precision of 86.4%, and an F1 score of 0.861. In addition to providing basic therapies for the treatment of identified cases, our model also helps prevent the deterioration of associated conditions, making our method a real-world solution.


Cite This Article

A. Kumar, A. Q. Md, J. Christy Jackson and C. Iwendi, "Predicting and curing depression using long short term memory and global vector," Computers, Materials & Continua, vol. 74, no.3, pp. 5837–5852, 2023.

This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 506


  • 122


  • 5


Share Link

WeChat scan