Published March 20, 2023 | Version v1

Using hierarchical text classification to investigate the utility of machine learning in automating online analyses of wildlife exploitation

  • 1. University of Sussex

Description

The data and models contained in this repository form part of the article, "Using hierarchical text classification to investigate the utility of machine learning in automating online analyses of wildlife exploitation", published in Ecological Informatics.

Expanding digital data sources, including social media, online news articles and blogs, provide an opportunity to understand better the context and intensity of human-nature interactions, such as wildlife exploitation. However, online searches encompassing large taxonomic groups can generate vast datasets, which can be overwhelming to filter for relevant content without the use of automated tools. The variety of machine learning models available to researchers, and the need for manually labelled training data with an even balance of labels, can make applying these tools challenging. Here, we implement and evaluate a hierarchical text classification pipeline which brings together three binary classification tasks with increasingly specific relevancy criteria. Crucially, the hierarchical approach facilitates the filtering and structuring of a large dataset, of which relevant sources make up a small proportion. Using this pipeline, we also investigate how the accuracy with which text classifiers identify relevant and irrelevant texts is influenced by the use of different models, training datasets, and the classification task. To evaluate our methods, we collected data from Facebook, Twitter, Google and Bing search engines, with the aim of identifying sources documenting the hunting and persecution of bats (Chiroptera). Overall, the ‘state-of-the-art’ transformer-based models were able to identify relevant texts with an average accuracy of 90%, with some classifiers achieving accuracy of >95%. Whilst this demonstrates that application of more advanced models can lead to improved accuracy, comparable performance was achieved by simpler models when applied to longer documents and less ambiguous classification tasks. Hence, the benefits from using more computationally expensive models are dependent on the classification context. We also found that stratification of training data, according to the presence of key search terms, improved classification accuracy for less frequent topics within datasets, and therefore improves the applicability of classifiers to future data collection. Overall, whilst our findings reinforce the usefulness of automated tools for facilitating online analyses in conservation and ecology, they also highlight that the effectiveness and appropriateness of such tools is determined by the nature and volume of data collected, the complexity of the classification task, and the computational resources available to researchers.

Files

active_learning.csv

Files (2.4 GB)

Name Size
md5:81d0da87d4da8f4206754a76ec9c4fd1
87.7 kB Preview Download
md5:0b951b5de0d93ac7fd07f9be96e99d4f
2.4 GB Preview Download
md5:cd9e3c5c7a64d6eeadc43692ea312e96
225.2 kB Preview Download
md5:d6e4b488e2d35c2fea078ec40becb458
2.0 kB Preview Download

Additional details

Related works

Is published in
Journal article: 1574-9541 (ISSN)