Development of an Automated Drug Detection System on Social Media (Preprint)
Notice bibliographique
Résumé
BACKGROUND One of the hallmarks of unregulated drug markets is their unpredictability and constant evolution with newly introduced substances. People who use drugs and the public health workforce are often unaware of the appearance of new drugs on the unregulated market and their type, safe dosage, and potential adverse effects. This increases risks to people who use drugs, including the risk of unknown consumption and unintentional drug poisoning. Early Warning Systems can help monitor the landscape of emerging drugs in a given community by collecting and tracking up-to-date information and determining trends. However, there are currently few ways to systematically monitor the appearance and harms of new drugs on the unregulated market in Canada. OBJECTIVE The goal of this work is to examine how artificial intelligence can assist in identifying patterns of drug-related risks and harms, specifically by monitoring the social media activity of public health and law enforcement groups. This information is beneficial in the form of an Early Warning System as it can be used to identify new and emerging drug trends in various communities. METHODS To build a dataset for this study, 145 relevant Twitter accounts throughout Quebec (33), Ontario (78), and British Columbia (34) were manually identified. Tweets posted between August 23 and December 21, 2021 were collected via the Twitter API for a total of 40,393 tweets. Next, subject matter experts 1) developed a keyword filter that reduced the dataset to 3,746 tweets and 2) manually identified which tweets were relevant to monitoring and early warning efforts for a total of 464 tweets. Using this information, a zero-shot classifier was applied to tweets from step 1 with a set of keep (drug arrest, drug discovery, drug report) and not keep (drug addiction support, public safety report, other) labels to see how accurately it could extract the tweets identified in step 2. RESULTS When looking at the accuracy in identifying relevant posts, the system extracted a total of 523 tweets and had an overlap of 397/477 (specificity of ~83.2%) with the subject matter experts. Conversely, the system identified a total of 3,184 irrelevant tweets and had an overlap of 3,104/3,230 (sensitivity of ~96.1%) with the subject matter experts. CONCLUSIONS This study demonstrates the benefits of using artificial intelligence to assist in finding relevant tweets for an Early Warning System. The results showed that it can be quite accurate in filtering out irrelevant information which greatly reduces the amount of manual work required. Although the accuracy in retaining relevant information was observed to be lower, an analysis showed that the label definitions can impact the results significantly and would therefore be suitable for future work to refine. Nonetheless, the performance is promising and demonstrates the usefulness of artificial intelligence in this domain.
Récupéré en direct depuis OpenAlex et désinversé. Les résumés ne sont pas conservés dans cette base de données : les index inversés représentent 8,6 Go des 9,3 Go de texte de la base, et le serveur dispose de 13 Go libres.
Comment cette classification a été obtenuedéplier
Prédiction machine sur la base complète
Imitation des enseignantsNi prévalence calibrée, ni vérité terrain. Validation humaine à venir. Le volet Gemma est une étiquette directe du modèle pour chaque travail de la base, lue sur la notice réduite au titre. Le volet Codex est un classifieur appris des 10 348 étiquettes directes de Codex et calibré sur les taux pondérés de l'échantillon; les champs sans appui suffisant ne portent aucun appel Codex. Le mode candidate est l'union des deux volets; le consensus est leur intersection. Ces sorties portent le statut machine_predicted_unvalidated et ne sont pas des étiquettes humaines.
Scores du classifieur distillé par catégorie (deux têtes)
| Catégorie | Codex | Gemma |
|---|---|---|
| Métarecherche | 0,001 | 0,004 |
| Méta-épidémiologie (sens strict) | 0,001 | 0,000 |
| Méta-épidémiologie (sens large) | 0,001 | 0,001 |
| Bibliométrie | 0,003 | 0,001 |
| Études des sciences et des technologies | 0,001 | 0,000 |
| Communication savante | 0,002 | 0,002 |
| Science ouverte | 0,001 | 0,001 |
| Intégrité de la recherche | 0,001 | 0,001 |
| Charge utile insuffisante (le modèle a refusé de juger) | 0,011 | 0,012 |
Scores machine (provisoires)
Les deux têtes enseignantes du modèle étudiant, lues sur ce travail. Un score ordonne la base pour la relecture; il n'affirme jamais une catégorie, et le statut de validation accompagne chaque rangée tel quel.
Scores de référence d'un modèle non mature (critères de maturité non atteints, 7 itérations). Un score ordonne; il n'affirme jamais une catégorie.
score_only:v0-immature-baseline · tel quel depuis la passe de notation : score_only signifie que le nombre peut ordonner les travaux, et qu'aucune étiquette de catégorie n'en découleClassification
machine, non validéePrédiction automatique; un appel candidat d’une seule source (Gemma direct ou Codex distillé), pas un consensus.
Le détail, modèle par modèle et score par score, se trouve en fin de page sous « Comment cette classification a été obtenue ».