Skip to main content

Advertisement

Log in

Sentiment analysis in social internet of things using contextual representations and dilated convolution neural network

  • Original Article
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

The methodologies based on neural networks are substantial to accomplish sentiment analysis in the Social Internet of Things (SIoT). With social media sentiment analysis, significant insights can produce efficient and intelligent applications. Neural networks such as recurrent neural networks (RNNs) and convolution neural networks (CNNs) have been considered widely in many text classification tasks. However, RNNs are computationally expensive and require complex training to capture contextual information and long-term dependencies. Similarly, traditional CNNs must stack multiple convolutional layers, requiring massive computations and additional parameters. To address these problems, this work initialized the novel architecture, in which contextual representations (CRs) based on the textual framework are proposed at the initial step. In CRs, state-of-the-art word representation models, such as GloVe (global vectors) and FastText (subword information), collectively produce word representations upon the input sequence using a weight mechanism. Secondly, a unique way is introduced: a three-parallel layered dilated convolutional network with global mean pooling. The experimental results show that the proposed methods when compared with baseline methods, the dilation in CNNs following CRs significantly increases the accuracy from 72.45 to 98.98% and reduces computational resources.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Explore related subjects

Discover the latest articles, news and stories from top researchers in related subjects.

Data availability

The authors confirm that the data supporting the findings of this study are available in the article.

References

  1. Chintalapudi N, Battineni G, Di Canio M, Sagaro GG, Amenta F (2021) Text mining with sentiment analysis on seafarers’ medical documents. Int J Inf Manag Data Insights 1(1):100005. https://doi.org/10.1016/J.JJIMEI.2020.100005

    Article  Google Scholar 

  2. Guo Z, Yu K, Li Y, Srivastava G, Lin JCW (2021) Deep learning-embedded social internet of things for ambiguity-aware social recommendations. IEEE Trans Netw Sci Eng. https://doi.org/10.1109/TNSE.2021.3049262

    Article  Google Scholar 

  3. Xiao G et al (2021) multimodality sentiment analysis in social internet of things based on hierarchical attentions and CSAT-TCN with MBM network. IEEE Internet Things J 8(16):12748–12757. https://doi.org/10.1109/JIOT.2020.3015381

    Article  Google Scholar 

  4. Wibawa AP, Utama ABP, Elmunsyah H, Pujianto U, Dwiyanto FA, Hernandez L (2022) Time-series analysis with smoothed convolutional neural network. J Big Data. https://doi.org/10.1186/s40537-022-00599-y

    Article  Google Scholar 

  5. Jiang N, Tian F, Li J, Yuan X, Zheng J (2020) MAN: mutual attention neural networks model for aspect-level sentiment classification in SIoT. IEEE Internet Things J 7(4):2901–2913. https://doi.org/10.1109/JIOT.2020.2963927

    Article  Google Scholar 

  6. Ma R, Wang K, Qiu T, Sangaiah AK, Lin D, Bin Liaqat H (2019) Feature-based compositing memory networks for aspect-based sentiment classification in social internet of things. Fut Gener Comput Syst 92:879–888. https://doi.org/10.1016/J.FUTURE.2017.11.036

    Article  Google Scholar 

  7. Sun C, Lv L, Tian G, Liu T (2021) Deep interactive memory network for aspect-level sentiment analysis. ACM Trans Asian Low-Resource Language Inf Process. https://doi.org/10.1145/3402886

    Article  Google Scholar 

  8. Birjali M, Kasri M, Beni-Hssane A (2021) A comprehensive survey on sentiment analysis: approaches, challenges and trends. Knowl Based Syst 226:107134. https://doi.org/10.1016/J.KNOSYS.2021.107134

    Article  Google Scholar 

  9. Yuan X, Chen C, Lei X, Yuan Y, Muhammad Adnan R (2018) Monthly runoff forecasting based on LSTM–ALO model. Stoch Environ Res Risk Assess 32(8):2199–2212. https://doi.org/10.1007/s00477-018-1560-y

    Article  Google Scholar 

  10. Lei X, Pan H, Huang X (2019) A dilated cnn model for image classification. IEEE Access 7:124087–124095. https://doi.org/10.1109/ACCESS.2019.2927169

    Article  Google Scholar 

  11. Basiri ME, Nemati S, Abdar M, Cambria E, Acharya UR (2021) ABCDM: an attention-based bidirectional CNN-RNN deep model for sentiment analysis. Futur Gener Comput Syst 115:279–294. https://doi.org/10.1016/J.FUTURE.2020.08.005

    Article  Google Scholar 

  12. Nemes L, Kiss A (2020) Social media sentiment analysis based on COVID-19. J Info Telecommun. 5(1):1–15. https://doi.org/10.1080/24751839.2020.1790793

    Article  Google Scholar 

  13. Habib A, Raza AA (2022) IoT-based pervasive sentiment analysis: a fine-grained text normalization framework for context aware hybrid applications. pp. 201–226, https://doi.org/10.1007/978-3-030-75123-4_10

  14. Marcheggiani D, Täckström O, Esuli A, Sebastiani F (2014) Hierarchical multi-label conditional random fields for aspect-oriented opinion mining. In: Lecture notes in computer science (including subseries lecture notes in artificial intelligence and lecture notes in bioinformatics). 8416: 273–285. https://doi.org/10.1007/978-3-319-06028-6_23

  15. Shu L, Xu H, Liu B (2017) Lifelong Learning CRF for Supervised Aspect Extraction ACL 2017–55th Annual Meeting of the Association for Computational Linguistics. Proceedings of the Conference (Long Papers) 2:148–154. https://doi.org/10.18653/V1/P17-2023

    Article  Google Scholar 

  16. Akhtar MS, Gupta D, Ekbal A, Bhattacharyya P (2017) Feature selection and ensemble construction: a two-step method for aspect based sentiment analysis. Knowl Based Syst 125:116–135. https://doi.org/10.1016/J.KNOSYS.2017.03.020

    Article  Google Scholar 

  17. Poria S, Cambria E, Gelbukh A (2016) Aspect extraction for opinion mining with a deep convolutional neural network. Knowl Based Syst 108:42–49. https://doi.org/10.1016/J.KNOSYS.2016.06.009

    Article  Google Scholar 

  18. Liu P, Joty S, Meng H (2015) Fine-grained opinion mining with recurrent neural networks and word embeddings. In: Conference proceedings - EMNLP 2015: conference on empirical methods in natural language processing. pp. 1433–1443. https://doi.org/10.18653/V1/D15-1168

  19. Bollegala D, Maehara T, Kawarabayashi KI (2015) Unsupervised cross-domainword representation learning. In: ACL-IJCNLP 2015—53rd annual meeting of the association for computational linguistics and the 7th international joint conference on natural language processing of the asian federation of natural language processing, proceedings of the conference. 1:730–740

  20. Mirowski P, Vlachos A (2015) Dependency recurrent neural language models for sentence completion. In: ACL-IJCNLP 2015 - 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing of the Asian federation of natural language processing, proceedings of the conference. 2: 511–517

  21. Mikolov T, Chen K, Corrado G, Dean J (2013) Efficient estimation of word representations in vector space In: 1st international conference on learning representations, ICLR 2013—workshop track proceedings

  22. Alam M, Abid F, Guangpei C, Yunrong LV (2020) Social media sentiment analysis through parallel dilated convolutional neural network for smart city applications. Comput Commun 154:129–137. https://doi.org/10.1016/J.COMCOM.2020.02.044

    Article  Google Scholar 

  23. Wu H, Gu Y, Sun S, Gu X (2016) Aspect-based Opinion summarization with convolutional neural networks. In: Proceedings of the international joint conference on neural networks. 2016:3157–3163. https://doi.org/10.1109/IJCNN.2016.7727602

  24. Wang W, Pan SJ, Dahlmeier D, Xiao X (2016) Recursive neural conditional random fields for aspect-based sentiment analysis. In: EMNLP 2016—conference on empirical methods in natural language processing, proceedings. pp. 616–626. https://doi.org/10.18653/V1/D16-1059

  25. Hazarika D, Poria S, Vij P, Krishnamurthy G, Cambria E, Zimmermann R (2018) Modeling inter-aspect dependencies for aspect-based sentiment analysis. In: NAACL HLT 2018–2018 Conference of the North American Chapter of the Association for computational linguistics: human language technologies—proceedings of the conference. 2: 266–270. https://doi.org/10.18653/V1/N18-2043

  26. Graves A, Mohamed AR, Hinton G (2013) Speech recognition with deep recurrent neural networks. In: ICASSP, IEEE international conference on acoustics, speech and signal processing—proceedings, pp. 6645–6649, https://doi.org/10.1109/ICASSP.2013.6638947

  27. Lei W, Khine K, Thwet N, Aung T (2018) Sentiment aware word embedding approach for sentiment analysis. Accessed 13 Nov 2019. [Online]. Available: http://movie.douban.com/

  28. Acosta J, Lamaute N, Luo M, Finkelstein E, Cotoranu A (2017) Sentiment analysis of twitter messages using Word2Vec. In: Proceedings of student-faculty research Day, CSIS, Pace University, pp. C8–1-C8–7, 2017, [Online]. Available: https://pdfs.semanticscholar.org/784d/1b2aebda3b80567bf8244e89499c31cf42a9.pdf

  29. Peters M et al. (2018) Deep contextualized word representations. In: Proceedings of the 2018 conference of the North American chapter of the association for computational linguistics: human language technologies, Volume 1 (Long Papers), Stroudsburg, PA, USA: Association for Computational Linguistics, 2018, pp. 2227–2237. https://doi.org/10.18653/v1/N18-1202

  30. Bojanowski P, Grave E, Joulin A, Mikolov T (2017) Enriching word vectors with subword information. In: Transactions of the association for computational linguistics Volume 5, Jul. 2017, pp. 135–146. Accessed 18 Jun 2019. [Online]. Available: http://arxiv.org/abs/1607.04606

  31. Richard Socher CDMJP, Jeffrey Pennington CDM, Richard Socher CDM, Jeffrey Pennington, Richard Socher, Pennington J, Socher R, Manning CD (2014) Glove: global vectors for word representation. In: Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), Stroudsburg, PA, USA: Association for Computational Linguistics, 2014, pp. 1532–1543. https://doi.org/10.3115/v1/D14-1162

  32. Zubiaga A (2018) A longitudinal assessment of the persistence of twitter datasets. J Assoc Inf Sci Technol 69(8):974–984. https://doi.org/10.1002/asi.24026

    Article  Google Scholar 

  33. Gu J et al (2018) Recent advances in convolutional neural networks. Pattern Recognit 77:354–377. https://doi.org/10.1016/j.patcog.2017.10.013

    Article  Google Scholar 

  34. Liao S, Wang J, Yu R, Sato K, Cheng Z (2017) CNN for situations understanding based on sentiment analysis of twitter data. Procedia Comput Sci 111(2015):376–381. https://doi.org/10.1016/j.procs.2017.06.037

    Article  Google Scholar 

  35. Gan C, Wang L, Zhang Z, Wang Z (2019) Sparse attention based separable dilated convolutional neural network for targeted sentiment analysis. Knowl Based Syst. https://doi.org/10.1016/j.knosys.2019.06.035

    Article  Google Scholar 

  36. TAGS—Twitter archiving google sheet. Accessed 30 Nov 2019. Available: https://tags.hawksey.info/

  37. Xu B, Wang N, Chen T, Li M (2019) Empirical evaluation of rectified activations in convolutional network. Accessed 23 Nov 2019. Available: http://arxiv.org/abs/1505.00853

  38. van den Oord A et al. (2019) WaveNet: a generative model for raw audio. Accessed 30 Nov 2019. Available: http://arxiv.org/abs/1609.03499

  39. Alkhammash EH, Jussila J, Lytras MD, Visvizi A (2019) Annotation of smart cities twitter micro-contents for enhanced citizen’s engagement. IEEE Access 7:116267–116276. https://doi.org/10.1109/access.2019.2935186

    Article  Google Scholar 

Download references

Acknowledgements

The authors are thankful to the Deanship of Scientific Research at Najran University for funding this work, under the Research Groups Funding program grant code (NU/RG/SERC/12/34).

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Jawad Rasheed or Asadullah Shaikh.

Ethics declarations

Conflict of interest

The authors declare no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Abid, F., Rasheed, J., Hamdi, M. et al. Sentiment analysis in social internet of things using contextual representations and dilated convolution neural network. Neural Comput & Applic 36, 12357–12370 (2024). https://doi.org/10.1007/s00521-024-09771-2

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00521-024-09771-2

Keywords

Navigation