[Paper Review] Descriptions of SNSF-funded research projects
The paper introduces text2sdg, an open-source R package that enables detection of United Nations Sustainable Development Goals (SDGs) in any text using existing or custom query systems. It supports multilingual text via translation with high label reliability (phi-coefficient ≥0.88), offers user-friendly integration with tibbles, and efficiently processes large text corpora, with runtime varying by system complexity—fastest in ~1 minute for 10M words (Elsevier) and slowest in ~40 minutes (SIRIS).
Monitoring progress on the United Nations Sustainable Development Goals (SDGs) is important for both academic and non-academic organizations. Existing approaches to monitoring SDGs have focused on specific data types; namely, publications listed in proprietary research databases. We present the text2sdg package for the R language, a user-friendly, open-source package that detects SDGs in any kind of text data using different existing or custom-made query systems. The text2sdg package thereby facilitates the monitoring of SDGs for a wide array of text sources and provides a much-needed basis for validating and improving extant methods to detect SDGs from text.
Motivation & Objective
- To address the lack of accessible, open-source tools for monitoring SDGs across diverse text sources beyond academic publications.
- To enable researchers and organizations to label text data with SDGs using standardized or custom query systems.
- To evaluate the reliability of SDG labeling when applied to translated text, particularly for non-English corpora.
- To assess computational efficiency and performance of different SDG labeling systems when processing large text corpora.
- To provide a flexible, user-friendly framework for integrating and testing SDG detection methods in R.
Proposed method
- Implement a modular R package architecture that supports multiple SDG labeling systems (Elsevier, Aurora, SIRIS, SDSN, OSDG) via a unified interface.
- Allow users to define custom labeling systems using tibbles containing columns for system name, query string, SDG target, and query ID.
- Integrate translation pipelines using the DeepL engine to enable SDG detection in non-English texts, validated via back-translation.
- Use the detect_any function to apply multiple queries per document and return SDG hits with associated features and query identifiers.
- Optimize query execution by pre-compiling and indexing query patterns to reduce per-document processing overhead.
- Benchmark performance using simulated text corpora of varying sizes (1K–10K documents) and lengths (10K–10M words), measuring average runtime across 7,000 repetitions.
Experimental results
Research questions
- RQ1Can text2sdg reliably detect SDGs in multilingual text after translation, particularly when using back-translation for validation?
- RQ2How do different SDG labeling systems (e.g., Elsevier, SIRIS) compare in terms of computational efficiency when processing large text corpora?
- RQ3To what extent can custom query systems be flexibly integrated into a unified R-based framework for SDG detection?
- RQ4How does the number of words and document structure affect the runtime of SDG detection across different labeling systems?
- RQ5Can the text2sdg package serve as a scalable and extensible platform for validating and improving existing SDG detection methods?
Key findings
- The text2sdg package enables accurate SDG detection in both English and translated text, with phi-coefficient correlations above 0.88 between original and back-translated labels, indicating high reliability.
- The Elsevier system was the fastest, processing 10 million words in approximately one minute, while the SIRIS system was the slowest, taking about 40 minutes for the same volume.
- Runtime scales primarily with total word count, and the overhead per word decreases as document sets grow larger, due to query optimization and caching.
- The package supports seamless integration of custom query systems through tibble-formatted input, enabling researchers to test novel or domain-specific SDG detection strategies.
- The performance benchmarking experiment revealed that query complexity and system-specific overhead significantly influence processing speed, with the fastest systems being more efficient for large-scale applications.
- The use of DeepL for translation did not substantially degrade label accuracy, suggesting that text2sdg is suitable for multilingual SDG monitoring in diverse organizational and academic contexts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.