IAES International Journal of Artificial Intelligence (IJ-AI)
Vol 15, No 4: August 2026

Detection of illegal drug activities in Indonesia via social media X

Adi Hanif Sedar (Universitas Indonesia)
Lukman Yudokusumo (Universitas Indonesia)
Indra Budi (Universitas Indonesia)
Amanah Ramadiah (Universitas Indonesia)
Aris Budi Santoso (Universitas Indonesia)
Prabu Kresna Putra (National Research and Innovation Agency (BRIN))



Article Info

Publish Date
01 Aug 2026

Abstract

In today's digital world, social media platforms such as X (formerly Twitter) are widely used for communication but also for illegal activities, such as selling illicit drugs. This study examines how posts from X related to illegal drug sales in Indonesia can be analyzed using machine learning techniques, with a focus on incorporating features related to personally identifiable information (PII) and web URLs. The main questions are how to use classification methods to detect these posts and which drugs are most often mentioned. A total of 11,777 posts from X were collected using web scraping. After cleaning and processing the data, five machine learning models were used. The support vector machine (SVM) model showed the best results with a weighted F1-score of 97.08%. The findings show that abortion pills are the most frequently mentioned drugs, followed by sexual enhancement and anesthetic drugs. This study also used visual tools to show the most common hashtags, posts distribution over time, and types of drugs discussed. This study underlines the importance of monitoring social media to protect public health and highlights how incorporating PII features can improve the detection of illegal activities. Future research should look at posts in other languages and from other platforms, considering PII features for enhanced analysis.

Copyrights © 2026






Journal Info

Abbrev

IJAI

Publisher

Subject

Computer Science & IT Engineering

Description

IAES International Journal of Artificial Intelligence (IJ-AI) publishes articles in the field of artificial intelligence (AI). The scope covers all artificial intelligence area and its application in the following topics: neural networks; fuzzy logic; simulated biological evolution algorithms (like ...