Visual abstractsVisuals
ResearchJournal of Medical Internet Research · Jun 19, 2026

Methods for Detecting Suspicious Information From Individual Transactions of Pharmaceutical Products via Twitter (now X): Retrospective Observational Study

Zhang R, Kimura K, Yoshida N
Digital Health & AIAdult

Study type: Observational study: it can show a link, but not prove that one thing causes another.

Read the full paper free at PubMed Central ↗

Abstract

Background Individual transactions involving pharmaceutical products via social networking service (SNS) are considered an inappropriate distribution route and may serve as a guise for illicit business-to-consumer activities. In Japan, individual transactions of pharmaceutical products via the internet are recognized as inappropriate distribution routes, which not only lead to the inappropriate use of pharmaceutical products but also require more active monitoring and guidance from the viewpoint of pharmaceutical security and quality assurance. Objective This study aimed to develop a method to accurately detect SNS tweets suspected of involving individual transactions of pharmaceutical products, using text data from Twitter (subsequently rebranded as X), the primary platform for such activities in Japan. Methods We applied text mining to 1389 text tweets suspected of involving individual pharmaceutical transactions. Using the hashtag "#Okusuri mogumogu," which was identified through manual searching and is commonly associated with trading psychotropic pharmaceuticals, we collected 7499 tweets posted in 2022 and 6461 tweets posted from January 1 to March 31, 2023, using our web crawler program. After manually categorizing whether each tweet was related to individual pharmaceutical transactions, we extracted words and summarized their occurrences and frequencies using the 2022 dataset. A decision tree model was then generated using the 2022 dataset and validated using the 2023 dataset to evaluate the reliability of detecting transaction-related tweets. Results Using web crawling, the number of tweets identified using the hashtag "#Okusuri mogumogu" was 7499 in 2022 and 6461 in the first 3 months of 2023. The crawling results also showed that the number of detectable tweets increased closer to the crawl date, suggesting that SNS tweets may frequently be deleted. From 3228 extracted words in the 2022 dataset, 452 were significantly associated with tweets suspected of involving individual transactions. Highly indicative terms included "kyuu" (request), "yuzuri" (transfer), "DM" (direct message), and transaction-related hashtags. The chi-square automatic interaction detection model demonstrated stable discriminative performance (area under the receiver operating characteristic curve values: training 0.83 and 0.84; Gini coefficient: training 0.65 and test 0.68). The overall accuracy using the 2023 validation dataset was 82.31%, indicating reasonable generalizability despite linguistic fragmentation and the presence of partial word forms characteristic of Japanese text. Conclusions Using transaction-related tags, text mining, and machine learning, we identified key terms linked to individual pharmaceutical transactions and developed a predictive model. This approach may aid in preventing inappropriate online transactions of pharmaceutical products.

Topics

Social Media; Japan; Data Mining; Pharmaceutical Preparations; Humans; Commerce

DOI: 10.2196/91103 · PubMed: 42320033

Spotted a mistake? Suggest a correction

More in Digital Health & AI

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

ClinicalAge biomarker associated with mortality and disease risk in UK datasets

ClinicalAge, a framework for modelling ageing trajectories from longitudinal electronic health records in the UK: a model development and validation study

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

Facial photographs used to estimate age and predict survival in cancer patients

Foundation artificial intelligence models for health recognition by use of face photographs (FAHR-Face): a model development and validation study

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

New model predicts severe fetal compromise risk at birth with 33.4% sensitivity

A prognostic model for use at labour onset to estimate the risk of severe fetal compromise at birth: a retrospective, model development and validation study

ResearchNPJ Digit Med · Nov 21, 2026 · Digital Health & AI

ECG foundation models performed well on general data but less so on athletes' data

ECG foundation models for cardiovascular screening in a cohort of young competitive athletes

ResearchJ Med Internet Res · Nov 20, 2026 · Digital Health & AI

Six large language models showed similar question-answering accuracy on medical exam questions

Medical Reasoning in Large Language Models: Development and Evaluation of the MedEvalArena Benchmark