NLP-enhanced inflation measurement using BERT and web scraping

In this research note, we explore the integration of natural language processing (NLP) and web scraping techniques to develop a custom price index for measuring inflation. Using the Harmonized Index of Consumer Prices (HICP) as a benchmark, we created a database of consumer electronics product data through web scraping. Using the BERT model for classification, we achieved a high-performance classification of approximately 10,000 items into COICOP categories, with an accuracy of 94.56 %, macro precision of 79.41 %, and weighted precision of 94.07 % on validation data. Our custom index, particularly with weighted and median methodologies, demonstrated closer alignment with the official HICP while capturing more detailed price fluctuations within the market. Monthly inflation trends revealed variability that reflects price changes in the COICOP 091 category, contrasting with the relative stability of the official HICP. This work provides an alternative perspective on inflation measurement, highlighting the potential of computational approaches to enhance economic analysis.

Authors

Institutions

Publication Details

Journal
Frontiers in Artificial Intelligence
Published
2025-04-09
DOI
https://doi.org/10.3389/frai.2025.1520659
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

NLP-enhanced inflation measurement using BERT and web scraping

Miloš Oravec, Vanesa Andicsová, M. Berki
Frontiers in Artificial Intelligence
Stock Market Forecasting Methods
article

NLP-enhanced inflation measurement using BERT and web scraping

Miloš Oravec, Vanesa Andicsová, M. Berki
article en

Abstract

In this research note, we explore the integration of natural language processing (NLP) and web scraping techniques to develop a custom price index for measuring inflation. Using the Harmonized Index of Consumer Prices (HICP) as a benchmark, we created a database of consumer electronics product data through web scraping. Using the BERT model for classification, we achieved a high-performance classification of approximately 10,000 items into COICOP categories, with an accuracy of 94.56 %, macro precision of 79.41 %, and weighted precision of 94.07 % on validation data. Our custom index, particularly with weighted and median methodologies, demonstrated closer alignment with the official HICP while capturing more detailed price fluctuations within the market. Monthly inflation trends revealed variability that reflects price changes in the COICOP 091 category, contrasting with the relative stability of the official HICP. This work provides an alternative perspective on inflation measurement, highlighting the potential of computational approaches to enhance economic analysis.

Frontiers in Artificial IntelligenceVol. 8
Slovak University of Technology in Bratislava (SK)
Vedecká Grantová Agentúra MŠVVaŠ SR a SAV
Decent work and economic growth
Openalex Percentile: Top 92%
Stock Market Forecasting Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

NLP-enhanced inflation measurement using BERT and web scraping — Miloš Oravec, Vanesa Andicsová, et al. · Frontiers in Artificial Intelligence (2025) | TGRS Research Map | TGRS