Related Experiment Video
Updated: May 10, 2025

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
NLP-enhanced inflation measurement using BERT and web scraping
Martin Berki1, Vanesa Andicsova1, Milos Oravec1
1Faculty of Electrical Engineering and Information Technology, Slovak University of Technology in Bratislava, Bratislava, Slovakia.
This study introduces a novel method for measuring inflation using natural language processing (NLP) and web scraping. The custom price index closely tracks the Harmonized Index of Consumer Prices (HICP) while revealing detailed market fluctuations.
Area of Science:
- Computational Economics
- Natural Language Processing
- Econometrics
Background:
- Traditional inflation metrics may not capture granular market dynamics.
- The Harmonized Index of Consumer Prices (HICP) serves as a key economic indicator.
- Consumer electronics prices exhibit complex fluctuations.
Purpose of the Study:
- To develop a custom inflation index using NLP and web scraping.
- To benchmark the custom index against the official HICP.
- To analyze detailed price variations in consumer electronics.
Main Methods:
- Web scraping was employed to gather a database of consumer electronics products.
- The BERT model was utilized for high-performance classification of items into COICOP categories.
- Weighted and median methodologies were applied to construct the custom price index.
Main Results:
- Achieved 94.56% accuracy in classifying approximately 10,000 items into COICOP categories using BERT.
- The custom index, especially with weighted/median methods, aligned closely with the official HICP.
- Observed greater variability in monthly inflation trends within the COICOP 091 category compared to the HICP.
Conclusions:
- NLP and web scraping offer a powerful approach for alternative inflation measurement.
- Computational methods can enhance economic analysis by providing more detailed insights.
- The custom index demonstrates potential for a more nuanced understanding of inflation.
Related Concept Videos
Elasticity
The elasticity of an object can be described by a stress-strain curve, which represents the relationship between stress...
Measurement: Derived Units
Net Torque Calculations
Measurement: Standard Units
Margin of Error
Bernoulli's Equation

