# Sentiment Analysis Based on Deep Learning: A Comparative Study

딥러닝 기반 감성 분석: 비교 연구

Nhan Cach Dang, María N. Moreno-García, Fernando De la Prieta · arXiv · 2020년 6월 5일

- **연구 문제** 소셜 미디어 감성 분석의 딥러닝 모델을 신뢰도와 처리 시간의 관점에서 비교할 필요가 있습니다.
- **연구 방법** DNN, CNN, RNN을 word embedding과 TF-IDF 입력과 결합하여 여러 데이터셋에서 k=10 교차 검증으로 비교합니다.
- **주요 결과** word embedding 입력이 대부분의 지표에서 TF-IDF보다 좋았고, RNN은 word embedding과 결합했을 때 정확도가 가장 높았습니다. CNN은 처리 시간과 정확도의 균형이 가장 좋다고 결론지어졌습니다.

## 감성 분석 연구의 비교 공백

소셜 미디어의 의견을 분석하는 감성 분석은 자연어 처리의 어려움 때문에 정확도와 효율이 제약됩니다. 기존 비교 연구들은 대부분 정확도나 F-score 같은 신뢰도 지표에 집중하고 처리 시간은 다루지 않았으며, 평가에 사용한 데이터셋도 적었습니다. 이 논문은 이러한 공백을 메우기 위해 여러 데이터셋에서 딥러닝 모델을 비교하고, 신뢰도 지표와 처리 시간을 함께 살펴봅니다.

원문은 연구 질문을 여러 종류와 크기의 데이터셋에서 우수한 방법을 제시할 수 있는지로 설정합니다. 이 질문은 단일 데이터셋의 최고 성능이 아니라 데이터 조건이 바뀌어도 일관되게 좋은 방법이 있는지를 묻는 것입니다.

## DNN, CNN, RNN과 두 입력 표현

이 연구는 DNN, CNN, RNN 세 가지 딥러닝 모델을 선택하여 비교합니다. 입력은 Word2vec으로 학습한 word embedding과 scikit-learn의 vectorizer로 계산한 TF-IDF 두 가지입니다. 따라서 각 알고리즘마다 두 종류의 입력 벡터에 대해 모델이 하나씩 만들어집니다.

![Figure 2: Deep neural network (DNN)](https://refivu.com/papers/01238de6-5a95-42bc-adff-3e5385ae4ea6/figures/figure-5ad0af36b939fb22640651facbf99f6d.png?thumb=512)

**Figure 2** . Deep neural network (DNN).

[원문](https://arxiv.org/abs/2006.03541v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nhan Cach Dang, María N. Moreno-García, Fernando De la Prieta · Sentiment Analysis Based on Deep Learning: A Comparative Study · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

전처리 단계에서는 RT, @, #, 링크, 숫자, 영어 불용어와 구두점을 제거하고 소문자화하며 표제어 추출을 수행합니다. 평가 지표는 정확도, 재현율, F-score, AUC이며 k=10 교차 검증을 사용합니다.

CNN 예시에서는 embedding 층 뒤에 커널 크기 3의 1D 합성곱 층을 여러 개 두고, 최대 풀링과 평균 풀링을 거쳐 시그모이드 출력 층으로 긍정과 부정을 예측합니다. 이 세부 구조는 본 논문의 CNN 실험 설명에 해당하며 다른 모델이나 데이터셋에 그대로 적용된다고 볼 수 없습니다.

![Figure 9: The details of the CNN model, which was set up for the experiment](https://refivu.com/papers/01238de6-5a95-42bc-adff-3e5385ae4ea6/figures/figure-b50a1a303c5949af8e93dd05aee5493f.png?thumb=512)

**Figure 9** . The details of the CNN model, which was set up for the experiment.

[원문](https://arxiv.org/abs/2006.03541v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nhan Cach Dang, María N. Moreno-García, Fernando De la Prieta · Sentiment Analysis Based on Deep Learning: A Comparative Study · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

## Sentiment140 부분 집합과 전체 데이터 비교

먼저 Sentiment140 데이터를 10%에서 100%까지 여러 비율의 부분 집합으로 나누어 실험했습니다. 이 단계에서 word embedding 입력을 사용한 모델이 TF-IDF 입력보다 여러 지표에서 더 좋은 결과를 보였습니다. 특히 RNN은 word embedding과 결합했을 때 가장 높은 정확도를 보였고, TF-IDF와 결합했을 때는 가장 낮았습니다.

![Figure 6: Examples of the Sentiment140 dataset](https://refivu.com/papers/01238de6-5a95-42bc-adff-3e5385ae4ea6/figures/figure-b85e5b100f0b2ca131865910d840e04f.png?thumb=512)

**Figure 6** . Examples of the Sentiment140 dataset.

[원문](https://arxiv.org/abs/2006.03541v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nhan Cach Dang, María N. Moreno-García, Fernando De la Prieta · Sentiment Analysis Based on Deep Learning: A Comparative Study · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

![Figure 10: Accuracy values of deep-learning models with TF-IDF and word embedding for diﬀerent numbers of tweets (percentage of the dataset)](https://refivu.com/papers/01238de6-5a95-42bc-adff-3e5385ae4ea6/figures/figure-bd2c530c1da352ff073db095d1677bb5.png?thumb=512)

**Figure 10** . Accuracy values of deep-learning models with TF-IDF and word embedding for diﬀerent numbers of tweets (percentage of the dataset).

[원문](https://arxiv.org/abs/2006.03541v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nhan Cach Dang, María N. Moreno-García, Fernando De la Prieta · Sentiment Analysis Based on Deep Learning: A Comparative Study · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.

전체 Sentiment140 데이터에서 RNN과 word embedding의 정확도는 0.82819948로 보고되었습니다. 같은 표에서 CNN과 word embedding은 0.80060849, DNN과 word embedding은 0.78816761입니다. 저자들은 데이터 크기가 word embedding 결과에 미치는 영향은 작다고 해석합니다.

![Figure 15: Comparison of all measures for RNN with TF-IDF (left) and word embedding (right)](https://refivu.com/papers/01238de6-5a95-42bc-adff-3e5385ae4ea6/figures/figure-fa29dff3265bbd4d50c556ffadb7261c.png?thumb=512)

**Figure 15** . Comparison of all measures for RNN with TF-IDF (left) and word embedding (right).

[원문](https://arxiv.org/abs/2006.03541v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nhan Cach Dang, María N. Moreno-García, Fernando De la Prieta · Sentiment Analysis Based on Deep Learning: A Comparative Study · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.

## 여러 데이터셋에서의 모델 비교

Sentiment140, Tweets Airline, Tweets SemEval, IMDB Movie Reviews, Cornell Movie Reviews, Book Reviews, Music Reviews 등 여러 데이터셋에서 같은 모델 비교를 수행했습니다. 전반적으로 RNN과 word embedding의 조합이 가장 좋은 결과를 보였습니다. 다만 Book Reviews와 Music Reviews에서는 DNN과 TF-IDF의 지표가 RNN과 word embedding보다 조금 높았고, Book Reviews에서는 CNN과 word embedding이 정확도, 재현율, F-score, AUC에서 가장 높았습니다.

![Figure 8: Word cloud view of the topics of the datasets](https://refivu.com/papers/01238de6-5a95-42bc-adff-3e5385ae4ea6/figures/figure-5a993db5e68445241c81eceb46bd4071.png?thumb=512)

**Figure 8** . Word cloud view of the topics of the datasets.

[원문](https://arxiv.org/abs/2006.03541v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nhan Cach Dang, María N. Moreno-García, Fernando De la Prieta · Sentiment Analysis Based on Deep Learning: A Comparative Study · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

이 결과는 이 논문의 특정 데이터셋과 모델 설정에서 얻은 것이며, 다른 데이터셋이나 다른 모델로 일반화되지 않습니다.

## 처리 시간과 정확도의 균형

처리 시간은 GPU 환경에서 측정한 CPU 시간으로 보고됩니다. TF-IDF는 대체로 word embedding보다 더 긴 계산 시간을 필요로 했습니다. RNN은 두 입력 방식 모두에서 가장 오래 걸렸습니다.

원문은 CNN이 처리 시간과 정확도 사이에서 가장 좋은 균형을 보인다고 결론짓습니다. RNN은 word embedding과 결합했을 때 정확도가 가장 높지만, 처리 시간은 CNN보다 약 10배 길다고 설명됩니다. 이 비교는 본 논문의 GPU 환경과 해당 데이터셋 조건에서 읽어야 합니다.

## 결과의 적용 범위

저자들은 결과가 데이터셋의 특성에 따라 달라질 수 있다고 밝힙니다. 따라서 이 논문의 결론은 사용한 여덟 개 데이터셋과 세 가지 모델, 두 입력 표현에 한정해 읽어야 합니다. 원문은 더 많은 데이터셋에서 방법을 시험하는 것이 필요하다고 제안합니다.

## 논문 정보

- **저자**: Nhan Cach Dang, María N. Moreno-García, Fernando De la Prieta
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 6월 5일
- **등록일**: 2026년 11월 6일
- **수정일**: 2020년 6월 5일
- **버전**: v1
- **arXiv**: 2006.03541
- **DOI**: 10.3390/electronics9030483
- **분류**: cs.CL · cs.IR · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2006.03541v1) · [원문 PDF ↗](https://arxiv.org/pdf/2006.03541v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

The study of public opinion can provide us with valuable information. The analysis of sentiment on social networks, such as Twitter or Facebook, has become a powerful means of learning about the users' opinions and has a wide range of applications. However, the efficiency and accuracy of sentiment analysis is being hindered by the challenges encountered in natural language processing (NLP). In recent years, it has been demonstrated that deep learning models are a promising solution to the challenges of NLP. This paper reviews the latest studies that have employed deep learning to solve sentiment analysis problems, such as sentiment polarity. Models using term frequency-inverse document frequency (TF-IDF) and word embedding have been applied to a series of datasets. Finally, a comparative study has been conducted on the experimental results obtained for the different models and input features

## 원문 인용

Nhan Cach Dang, María N. Moreno-García, Fernando De la Prieta (2020). Sentiment Analysis Based on Deep Learning: A Comparative Study. arXiv:2006.03541v1. https://doi.org/10.3390/electronics9030483

**BibTeX**

```
@article{dang2020sentiment,
  title = {{Sentiment Analysis Based on Deep Learning: A Comparative Study}},
  author = {Nhan Cach Dang and María N. Moreno-García and Fernando De la Prieta},
  year = {2020},
  eprint = {2006.03541},
  archivePrefix = {arXiv},
  doi = {10.3390/electronics9030483},
  url = {https://arxiv.org/abs/2006.03541v1}
}
```

## 이 논문의 용어

- [LSTM](https://refivu.com/terms/ba10547646d9-lstm)
- [AUC](https://refivu.com/terms/017a335bbf0e-auc)
- [Word2vec](https://refivu.com/terms/aa6ca7ebd6f5-word2vec)
- [TF-IDF](https://refivu.com/terms/b8fd079027e3-tf-idf)
- [CNN](https://refivu.com/terms/06880f5198e6-cnn)
- [Skip-gram](https://refivu.com/terms/e835a0cf8e3d-skip-gram)
- [F-score](https://refivu.com/terms/82986c915d77-f-score)
- [RNN](https://refivu.com/terms/cd8552d9273e-rnn)
- [DNN](https://refivu.com/terms/f3c12bdd8874-dnn)
- [Sentiment Analysis](https://refivu.com/terms/dcaa4b0924bc-sentiment-analysis)
- [K-fold cross validation](https://refivu.com/terms/307874c2a7da-k-fold-cross-validation)
- [Word embedding](https://refivu.com/terms/f14f4214edb7-word-embedding)
- [continuous bag-of-words](https://refivu.com/terms/db5c7c930917-continuous-bag-of-words)
- [maximum pooling](https://refivu.com/terms/fa067218930d-maximum-pooling)

## 다른 논문 해설

- [Synchronous Bidirectional Neural Machine Translation](https://refivu.com/papers/a9d42360-cea4-402b-be66-54c6fcbb997b-synchronous-bidirectional-neural-machine-translation.md)
- [Embedding Projection for Targeted Cross-Lingual Sentiment: Model Comparisons and a Real-World Study](https://refivu.com/papers/14ebfd4f-6ac8-4737-851d-03108b88fa3b-embedding-projection-for-targeted-cross-lingual-sentiment.md)
- [Word Similarity Datasets for Thai: Construction and Evaluation](https://refivu.com/papers/79a699ae-0739-4d3a-a58f-925cc30c3e07-word-similarity-datasets-for-thai-construction-and.md)
- [Machine Reading Comprehension for Answer Re-Ranking in Customer Support Chatbots](https://refivu.com/papers/3cb52c93-8dda-462e-9b98-2cbe67557aa2-machine-reading-comprehension-for-answer-re-ranking-in.md)
- [NMT-Keras: a Very Flexible Toolkit with a Focus on Interactive NMT and Online Learning](https://refivu.com/papers/1f71471f-1b41-4c8e-923d-0d64f05ab69e-nmt-keras-a-very-flexible-toolkit-with-a.md)
- [Neural sentence embedding models for semantic similarity estimation in the biomedical domain](https://refivu.com/papers/779351be-1691-4a73-b4f4-7c1c825d9619-neural-sentence-embedding-models-for-semantic-similarity.md)
- [Proximity Perception in Human-Centered Robotics: A Survey on Sensing Systems and Applications](https://refivu.com/papers/ec747702-e2bc-4521-b9c6-004b9bc824b0-proximity-perception-in-human-centered-robotics-a-survey.md)
- [Deep Reinforcement Learning-based Methods for Resource Scheduling in Cloud Computing: A Review and Future Directions](https://refivu.com/papers/9dce1ad3-1c99-498c-89f4-7aba7d85a4c4-deep-reinforcement-learning-based-methods-for-resource.md)
- [Comparison Between Genetic Fuzzy Methodology and Q-learning for Collaborative Control Design](https://refivu.com/papers/17e5bc29-b1e5-49dd-9fc0-ec2a816e89e3-comparison-between-genetic-fuzzy-methodology-and-q-learning.md)
- [GPT Understands, Too](https://refivu.com/papers/1bee23a9-1e12-440d-bf82-0263604d14f2-gpt-understands-too.md)
- [Towards Learning Universal, Regional, and Local Hydrological Behaviors via Machine-Learning Applied to Large-Sample Datasets](https://refivu.com/papers/c1ee1227-dd45-4aef-9943-a760b7a45dbc-towards-learning-universal-regional-and-local-hydrological.md)
- [Optimizing Quantum Error Correction Codes with Reinforcement Learning](https://refivu.com/papers/ed0ded3a-768a-49f3-9eb5-e36bb24fe5d1-optimizing-quantum-error-correction-codes-with-reinforcement.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/01238de6-5a95-42bc-adff-3e5385ae4ea6-sentiment-analysis-based-on-deep-learning-a-comparative)
