Tweet sentiment analysis using deep learning with nearby locations as features

  • Wei Lun Lim
  • Chiung Ching HoEmail author
  • Choo-Yee Ting
Conference paper
Part of the Lecture Notes in Electrical Engineering book series (LNEE, volume 603)


Twitter classification using deep learning have shown a great deal of promise in recent times. Many works had been performed on twitter sentiment analysis but there has not been much work done investigating the effects of location on twitter sentiment analysis. In this study, we concatenated text and location features as a feature vector for twitter sentiment analysis using a deep learning classification approach specifically Convolutional Neural Network (CNN). The achieved results show that using location as a feature alongside text has increased the sentiment analysis accuracy.


sentiment analysis location analysis natural language understanding deep learning convolutional neural network 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.



This project is partially supported by Artificial Intelligence Research Unit (AiRU).


  1. 1.
    Ong Kok Chien, Poo Kuan Hoong, and Chiung Ching Ho. A comparative study of hits vs pagerank algorithms for twitter user’s analysis. In 2014 International Conference on Computational Science and Technology (ICCST), pages 1–6. IEEE, 2014.Google Scholar
  2. 2.
    Adam G Hart, William S Carpenter, Estelle Hlustik-Smith, Matt Reed, and Anne E Goodenough. Testing the potential of twitter mining methods for data acquisition: Evaluating novel opportunities for ecological research in multiple taxa. Methods in Ecology and Evolution, 9(11):2194–2205, 2018.Google Scholar
  3. 3.
    Ari Z Klein, Abeed Sarker, Haitao Cai, Davy Weissenbacher, and Graciela Gonzalez-Hernandez. Social media mining for birth defects research: a rule-based, bootstrapping approach to collecting data for rare health-related events on twitter. Journal of biomedical informatics, 87:68–78, 2018.Google Scholar
  4. 4.
    Jeremy YL Yap, Chiung Ching Ho, and Choo-Yee Ting. Analytic hierarchy process (ahp) for business site selection. In AIP Conference Proceedings, volume 2016, page 020151. AIP Publishing, 2018.Google Scholar
  5. 5.
    Hui-Jia Yee, Choo-Yee Ting, and Chiung Ching Ho. Optimal geospatial features for sales analytics. In AIP Conference Proceedings, volume 2016, page 020152. AIP Publishing, 2018.Google Scholar
  6. 6.
    Choo-Yee Ting, Chiung Ching Ho, Hui Jia Yee, and Wan Razali Matsah. Geospa- tial analytics in retail site selection and sales prediction. Big data, 6(1):42–52, 2018.Google Scholar
  7. 7.
    Amita Jain and Minni Jain. Location based twitter opinion mining using common-sense information. Global Journal of Enterprise Information System, 9(2), 2017.Google Scholar
  8. 8.
    Prabhsimran Singh, Ravinder Singh Sawhney, and Karanjeet Singh Kahlon. Sentiment analysis of demonetization of 500 & 1000 rupee banknotes by indian government. ICT Express, 4(3):124–129, 2018.Google Scholar
  9. 9.
    Hyo Jin Do and Ho-Jin Choi. Sentiment analysis of real-life situations using loca- tion, people and time as contextual features. In 2015 International Conference on Big Data and Smart Computing (BIGCOMP), pages 39–42. IEEE, 2015.Google Scholar
  10. 10.
    Xin Zheng, Jialong Han, and Aixin Sun. A survey of location prediction on twitter. IEEE Transactions on Knowledge and Data Engineering, 30(9):1652–1671, 2018.Google Scholar
  11. 11.
    Shiyang Liao, Junbo Wang, Ruiyun Yu, Koichi Sato, and Zixue Cheng. Cnn for situations understanding based on sentiment analysis of twitter data. Procedia computer science, 111:376–381, 2017.Google Scholar
  12. 12.
    Yuebing Zhang, Zhifei Zhang, Duoqian Miao, and Jiaqi Wang. Three-way en- hanced convolutional neural networks for sentence-level sentiment classification. Information Sciences, 477:55–64, 2019.Google Scholar
  13. 13.
    Aliaksei Severyn and Alessandro Moschitti. Twitter sentiment analysis with deep convolutional neural networks. In Proceedings of the 38th International ACM SI- GIR Conference on Research and Development in Information Retrieval, pages 959–962. ACM, 2015.Google Scholar
  14. 14.
    Tao Chen, Ruifeng Xu, Yulan He, and Xuan Wang. Improving sentiment analysis via sentence type classification using bilstm-crf and cnn. Expert Systems with Applications, 72:221–230, 2017.Google Scholar
  15. 15.
    Jacob Eisenstein, Brendan O’Connor, Noah A Smith, and Eric P Xing. A la- tent variable model for geographic lexical variation. In Proceedings of the 2010 conference on empirical methods in natural language processing, pages 1277–1287. Association for Computational Linguistics, 2010.Google Scholar
  16. 16.
    Advanced usage: Overriding models and the blobber class. https://textblob. Scholar
  17. 17. Geonames web service documentation. export/web-services.html.Google Scholar
  18. 18. Place search | places api. web-service/search.Google Scholar
  19. 19. Google code archive - long-term storage for google code project host- ing. Scholar
  20. 20.
    Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013.Google Scholar
  21. 21.
    Jeffrey Pennington, Richard Socher, and Christopher D. Manning. Glove: Global vectors for word representation. In Empirical Methods in Natural Language Pro- cessing (EMNLP), pages 1532–1543, 2014.Google Scholar
  22. 22.
    PC Rafeeque and S Sendhilkumar. A survey on short text analysis in web. In 2011 Third International Conference on Advanced Computing, pages 365–371. IEEE, 2011.Google Scholar

Copyright information

© Springer Nature Singapore Pte Ltd. 2020

Authors and Affiliations

  1. 1.Computing & InformaticsMultimedia UniversityCyberjayaMalaysia

Personalised recommendations