Reproducible Research Repository
Reproducible Research Repository
  • Home
  • Repository
  • Collections
  • About
    Home / Repository / PRWP / RR_NGA_2024_125
PRWP

Reproducibility package for Comparative Analysis of AI-Predicted and Crowdsourced Food Prices in an Economically Volatile Region

2024
Get Reproducibility Package
Reference ID
RR_NGA_2024_125
Author(s)
Julius Adewopo, Bo Pieter Johannes Andrée, Helen Peter, Gloria Solano-Hermosilla
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
May 10, 2024
Last modified
Jun 21, 2024
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Overview

    Abstract

    High-frequency monitoring of food commodity prices is important for assessing and responding to shocks, especially in fragile contexts where timely and targeted interventions for food security are critical. However, national price surveys are typically limited in temporal and spatial granularity. It is cost prohibitive to implement traditional data collection at frequent timescales to unravel spatiotemporal price evolution across market segments and at subnational geographic levels. Recent advancements in data innovation offer promising solutions to address the paucity of commodity price data and guide market intelligence for diverse development stakeholders. The use of artificial intelligence to estimate missing price data and a parallel effort to crowdsource commodity price data are both unlocking cost-effective opportunities to generate actionable price data. Yet, little is known about how the data from these alternative methods relate to independent ground truth data. To evaluate if these data strategies can meet the long-standing demand for realtime intelligence on food affordability, this paper analyzes open-source daily crowdsourced data (104,931 datapoints) from a recently published data set in Nature Journal, relative to complementary ground truth sample. The paper subsequently compares these data to open-source monthly artificial intelligence–generated price data for identical commodities over a 36-month period in northern Nigeria, from 2019 to 2022. The results show that all the data sources share a high degree of comparability, with variation across commodity and market segments. Overall, the findings provide important support for leveraging these new and innovative data approaches to enable data-driven decision-making in near real time.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/index.php/catalog/137/download/368/README.pdf
    Reproducibility package (data and code) for Comparative Analysis of AI-Predicted and Crowdsourced Food Prices in an Economically Volatile Region
    Title
    Reproducibility package (data and code) for Comparative Analysis of AI-Predicted and Crowdsourced Food Prices in an Economically Volatile Region
    Date
    2024-05
    Dependencies
    All dependencies are stored in the renv environment.
    Instructions
    See README in the reproducibility package.
    Notes
    Computational reproducibility verified by Development Impact (DIME) Analytics team, World Bank
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    R
    Name
    R
    Version
    4.2

    Reproducibility

    Technology environment

    Paper exhibits were reproduced in a computer with the following specifications:
    • OS: Windows 11 Enterprise, version 21H2
    • Processor: Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz, 16 Core(s)
    • Memory available: 15.7 GB
    • Software version: R 4.2

    Technology requirements

    ~20 minutes runtime

    Reproduction instructions

    For successful replication of this package, new users have to download the package, open the R project, recreate the R environment using renv::restore, and run the scripts in the orders detailed in the README file.

    Data

    Datasets
    Commodity Food Prices Nigeria
    Name
    Commodity Food Prices Nigeria
    Note
    Source: World Bank, downloaded on October 3, 2023 from the following link. Located at: data/WB_monthly_data.csv. Some manual steps are required to reach the database in the package. These steps involve manual calculations done directly in Excel. For those who wish to download the data from scratch, the README file contains clear and detailed instructions.
    Access policy
    Published with the package
    Data URL
    https://microdata.worldbank.org/index.php/catalog/study/NGA_2021_RTFP_v02_M
    Food Price Crowdsourcing Africa-expansion (1/2)
    Name
    Food Price Crowdsourcing Africa-expansion (1/2)
    Note
    Source: The European Commission Joint Research Center (EC-JRC) Located at: data/FPCA_all.csv. Downloaded from the “Post-sampled Weekly Price” on October 3, 2023, from the following link. Some manual steps are required to reach the database in the package. These steps involve manual calculations done directly in Excel. For those who wish to download the data from scratch, the README file contains clear and detailed instructions.
    Access policy
    Published with the package
    Data URL
    https://datam.jrc.ec.europa.eu/datam/mashup/FP_NGA/index.html?_r=1
    Food Price Crowdsourcing Africa-expansion (2/2)
    Name
    Food Price Crowdsourcing Africa-expansion (2/2)
    Note
    Source: The European Commission Joint Research Center (EC-JRC) Located at: data/Raw_groundref_FPCA_0km_fnl.csv. Downloaded from the “Step 2. FPCA” data on October 3, 2023, from the following link. Some manual steps are required to reach the database in the package. These steps involve manual calculations done directly in Excel. For those who wish to download the data from scratch, the README file contains clear and detailed instructions.
    Access policy
    Published with the package
    Data URL
    https://data.jrc.ec.europa.eu/dataset/f3bc86b0-be5f-4441-8370-c2ccb739029e
    Data statement

    All data is public and contained in the reproducibility package.

    Description

    Output
    Comparative Analysis of AI-Predicted and Crowdsourced Food Prices in an Economically Volatile Region
    Type
    Working Paper
    Title
    Comparative Analysis of AI-Predicted and Crowdsourced Food Prices in an Economically Volatile Region
    Authors
    Julius Adewopo, Bo Pieter Johannes Andrée, Helen Peter, Gloria Solano-Hermosilla, and Fabio Mical
    Description
    Policy Research Working Paper (PRWP) 10758
    URL
    http://documents.worldbank.org/curated/en/099430004232434765/IDU18a5b99971429914e501ac101b25f11061d21
    DOI
    https://doi.org/10.1596/1813-9450-10758
    Authors
    Author Affiliation Email
    Julius Adewopo World Bank jadewopo@worldbank.org
    Bo Pieter Johannes Andrée World Bank bandree@worldbank.org
    Helen Peter International Institute of Tropical Agriculture
    Gloria Solano-Hermosilla European Commission Joint Research Center gloria.solano-hermosilla@ec.europa.eu
    Date of production

    2024-05

    Scope and coverage

    Geographic locations
    Location Code
    Nigeria NGA
    Keywords
    Food Price Crowdsourcing Artificial Intelligence Ground truth Data
    Topics
    ID Topic Parent topic ID Vocabulary Vocabulary URI
    Q11 Aggregate Supply and Demand Analysis: Prices Q1 Journal of Economic Literature (JEL)

    Disclaimer

    Disclaimer

    The materials in the reproducibility packages are distributed as they were prepared by the staff of the International Bank for Reconstruction and Development/The World Bank. The findings, interpretations, and conclusions expressed in this event do not necessarily reflect the views of the World Bank, the Executive Directors of the World Bank, or the governments they represent. The World Bank does not guarantee the accuracy of the materials included in the reproducibility package.

    Access and rights

    License
    Name URI
    Modified BSD3 https://opensource.org/license/bsd-3-clause/

    Contacts

    Contacts
    Name Affiliation Email
    Julius Adewopo World Bank jadewopo@worldbank.org
    Reproducibility WBG World Bank reproducibility@worldbank.org

    Information on metadata

    Producers
    Name Abbreviation Affiliation Role
    Reproducibility WBG DIME World Bank - Development Impact Department Verification and preparation of metadata
    Date of Production

    2024-04-29

    Document version

    1

    Back to Catalog
    The World Bank Working for a World Free of Poverty
    • IBRD IDA IFC MIGA ICSID

    © The World Bank Group, All Rights Reserved.