Sentiment Analysis on Import Tariff Policy and Gold Price Increase with TF-IDF

Changes in global economic policy, such as Donald Trump's import tariff policy in 2025, have generated various public responses recorded through social media such as Twitter. Analysis of this public opinion is important to understand public perception of the dynamics of gold prices as a strategic commodity. This study aims to analyze public sentiment towards the issue of tariff policies and gold using TF-IDF feature extraction. To overcome class imbalance in tweet data, the Synthetic Minority Over-sampling Technique (SMOTE) technique was used. The dataset was obtained from Twitter with the keywords "trump", "tariffs", and "gold", then preprocessing and sentiment labeling (positive, negative, neutral) were carried out. The results of the analysis showed that 88.8% of tweets contained positive sentiment, 6.9% negative, and 4.1% neutral. The model evaluation produced an accuracy of 81.23%, with the highest precision in the positive class (0.81) and a recall of 1.00. These findings indicate that the issue of tariff policies is associated optimistically by the public because it is considered beneficial to gold prices.

Authors

Institutions

Publication Details

Journal
Jurnal Riset Informatika
Published
2025-06-11
DOI
https://doi.org/10.34288/jri.v7i3.361
Primary Topic
Computational and Text Analysis Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Sentiment Analysis on Import Tariff Policy and Gold Price Increase with TF-IDF

Siti Masripah, Rizal Amegia Saputra
Jurnal Riset Informatika
Computational and Text Analysis Methods
article

Sentiment Analysis on Import Tariff Policy and Gold Price Increase with TF-IDF

Siti Masripah, Rizal Amegia Saputra
article en

Abstract

Changes in global economic policy, such as Donald Trump's import tariff policy in 2025, have generated various public responses recorded through social media such as Twitter. Analysis of this public opinion is important to understand public perception of the dynamics of gold prices as a strategic commodity. This study aims to analyze public sentiment towards the issue of tariff policies and gold using TF-IDF feature extraction. To overcome class imbalance in tweet data, the Synthetic Minority Over-sampling Technique (SMOTE) technique was used. The dataset was obtained from Twitter with the keywords "trump", "tariffs", and "gold", then preprocessing and sentiment labeling (positive, negative, neutral) were carried out. The results of the analysis showed that 88.8% of tweets contained positive sentiment, 6.9% negative, and 4.1% neutral. The model evaluation produced an accuracy of 81.23%, with the highest precision in the positive class (0.81) and a recall of 1.00. These findings indicate that the issue of tariff policies is associated optimistically by the public because it is considered beneficial to gold prices.

Jurnal Riset InformatikaVol. 7(3)
Universitas Informatika dan Bisnis Indonesia (ID)
Openalex Percentile: Top 82%
Computational and Text Analysis Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.