Text Mining Analysis of Comments in Thai Language for Depression from Online Social Networks

  • Pornpimol ChaiwuttisakEmail author
Part of the Studies in Computational Intelligence book series (SCI, volume 899)


The objectives of this research were to analyze the relationship of the phrases or words commonly found in the comments from depression hashtag on Twitter using the association rules. The data used in this study were collected from comments in Thai language via depression hashtag on Twitter during 1 January 2019 to 31 January 2019, in total of 1,500 comments. According to the comments in Thai language on social media collected by using Rapidminer Studio 9 software to get the word about depression and used to analyze relationships of words from a text comment to get the format data Association. The frequency of words and phrases in a form of presentation is used to describe the various opinions about the depression that has a presentation on social media. According to the model performance in each of the above methods, it was found that Euclidean Distance provided the best result due to the smallest average distance at all points in each cluster which was equal to 152.504. The association analysis, a total of 30 association rules were obtained, the support of 0.5% and the 80% confidence.


Text Mining Comment Depression Social media Hashtag Twitter Association rule 


  1. 1.
  2. 2.
    Zocial. Thai social network that marketers should not miss. (in Thai)
  3. 3.
    Thawisuwan, P.: Twitter Sukhoi, 1st edn. Success Media, Bangkok (2009). (in Thai)Google Scholar
  4. 4.
    ETDA Thailand, Internet user’s behavior in 2018, Thai people use the internet for 10 hours, 5 minutes per a day. (in Thai)
  5. 5.
    Kumar, A., Sharma, A., Arora, A.: Anxious depression prediction in real-time social data. In: Proceedings of International Conference on Advanced Engineering, Science, Management and Technology (ICAESMT 2019) (2019)Google Scholar
  6. 6.
    Eichstaedt, J.C., Smith, R.J., Merchant, R.M., Ungar, L.H., Crutchley, P., Preoţiuc-Pietro, D., Schwartz, H.A.: Facebook language predicts depression in medical records. Proc. Natl. Acad. Sci. U.S.A. 115(44), 11203–11208 (2018)CrossRefGoogle Scholar
  7. 7.
    De Choudhury, M., Gamon, M., Counts, S., Horvitz, E.: Predicting depression via social media. In: Proceedings of the Seventh International AAAI Conference on Weblogs and Social Media (2013)Google Scholar
  8. 8.
    Charoenpornsawat, P.: Feature-based Thai word segmentation. Master of Engineering in Computer Engineering thesis, Chulalongkorn University (1998). (in Thai)Google Scholar
  9. 9.
    Tongaree, P.: A comparative study of word segmentation on Thai text categorization. Master of Computer Science thesis, Thammasat University (2008). (in Thai)Google Scholar
  10. 10.
    Rygielski, C., Wang, J.-C., Yen, D.C.: Data mining techniques for customer relationship management. Technol. Soc. 24(23), 483–502 (2002)CrossRefGoogle Scholar
  11. 11.
    Thepmak, S.: The market basket analysis system using association rules case study cosmetic. Master of Science thesis, Information Technology Faculty, King Mongkut’s University of Technology North Bangkok (2011). (in Thai)Google Scholar
  12. 12.
    National Institute of Mental Health (NIH), Depression.

Copyright information

© The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature Switzerland AG 2021

Authors and Affiliations

  1. 1.Department of Statistics, Faculty of ScienceKing Mongkut’s Institute of Technology LadkrabangBangkokThailand

Personalised recommendations