Saved in:
Bibliographic Details
Main Authors: Maia, Wesley Ferreira, Carmignani, Angelo, Bortoli, Gabriel, Maretti, Lucas, Luz, David, Guzman, Daniel Camilo Fuentes, Henriques, Marcos Jardel, Neto, Francisco Louzada
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2403.01638
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910352694837248
author Maia, Wesley Ferreira
Carmignani, Angelo
Bortoli, Gabriel
Maretti, Lucas
Luz, David
Guzman, Daniel Camilo Fuentes
Henriques, Marcos Jardel
Neto, Francisco Louzada
author_facet Maia, Wesley Ferreira
Carmignani, Angelo
Bortoli, Gabriel
Maretti, Lucas
Luz, David
Guzman, Daniel Camilo Fuentes
Henriques, Marcos Jardel
Neto, Francisco Louzada
contents This article investigates applying advanced machine learning models, specifically LSTM and BERT, for text classification to predict multiple categories in the retail sector. The study demonstrates how applying data augmentation techniques and the focal loss function can significantly enhance accuracy in classifying products into multiple categories using a robust Brazilian retail dataset. The LSTM model, enriched with Brazilian word embedding, and BERT, known for its effectiveness in understanding complex contexts, were adapted and optimized for this specific task. The results showed that the BERT model, with an F1 Macro Score of up to $99\%$ for segments, $96\%$ for categories and subcategories and $93\%$ for name products, outperformed LSTM in more detailed categories. However, LSTM also achieved high performance, especially after applying data augmentation and focal loss techniques. These results underscore the effectiveness of NLP techniques in retail and highlight the importance of the careful selection of modelling and preprocessing strategies. This work contributes significantly to the field of NLP in retail, providing valuable insights for future research and practical applications.
format Preprint
id arxiv_https___arxiv_org_abs_2403_01638
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Multi-level Product Category Prediction through Text Classification
Maia, Wesley Ferreira
Carmignani, Angelo
Bortoli, Gabriel
Maretti, Lucas
Luz, David
Guzman, Daniel Camilo Fuentes
Henriques, Marcos Jardel
Neto, Francisco Louzada
Computation and Language
This article investigates applying advanced machine learning models, specifically LSTM and BERT, for text classification to predict multiple categories in the retail sector. The study demonstrates how applying data augmentation techniques and the focal loss function can significantly enhance accuracy in classifying products into multiple categories using a robust Brazilian retail dataset. The LSTM model, enriched with Brazilian word embedding, and BERT, known for its effectiveness in understanding complex contexts, were adapted and optimized for this specific task. The results showed that the BERT model, with an F1 Macro Score of up to $99\%$ for segments, $96\%$ for categories and subcategories and $93\%$ for name products, outperformed LSTM in more detailed categories. However, LSTM also achieved high performance, especially after applying data augmentation and focal loss techniques. These results underscore the effectiveness of NLP techniques in retail and highlight the importance of the careful selection of modelling and preprocessing strategies. This work contributes significantly to the field of NLP in retail, providing valuable insights for future research and practical applications.
title Multi-level Product Category Prediction through Text Classification
topic Computation and Language
url https://arxiv.org/abs/2403.01638