Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Automated Semantic Labeling and Clustering of Product Claims and Ingredients Using Machine Learning: Leveraging LLMs to Automate Previously Time-Consuming Product Analysis
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesisAlternative title
Klustring och märkning av produktpåståenden och ingredienser med hjälp av maskininlärning : Automatisering av tidskrävande produktanalys med hjälp av LLMer (Swedish)
Abstract [en]

This thesis is conducted at Knightec Group in Sweden for the client company Bintix. It is in the domain of unsupervised learning and natural language processing. The goal is to obtain a condensed list of consumer claims and ingredients used when marketing products, from a dataset with one million claims provided by the client. As single focus claims are requested, splitting combined claims was the first step. Multiple classical and then state-of-the-art models, such as gpt-4.1 and Llama 4 Maverick were evaluated. Thereafter, to obtain the condensed list of claims, the vector embeddings representing the claims were clustered, leveraging cuML. The classical GloVe embedding model was compared to the most popular open-source model all-MiniLM-L6-v2 from Hugging Face, which was also compared to OpenAI embeddings across different dimensions. For clustering, K-means showed the best performance compared to HDBSCAN and HAC. The label describing each cluster was well represented by the most common claim, and the querying was efficiently implemented using a simple matrix multiplication. Lastly, a user interface was implemented using Gradio on a Hugging Face space.

Abstract [sv]

Detta examensarbete utförs på Knightec Group i Stockholm åt kunden Bintix. Projektet är inom området oövervakad maskininlärning och naturlig språkbehandling. Målet är att skapa en lista av påståenden och ingredienser för konsumentprodukter med grupper av liknande texter, från ett dataset med en miljon produkter. Då påståenden med ett fokus efterfrågas, måste kombinerade påståenden först delas upp. Flera klassiska modeller, och även moderna såsom gpt-4.1 och Llama 4 Maverick utvärderades. För att skapa den kondenserade listan används kluster av inbäddningar av vektorer som ges en titel med det mest förekommande påståendet. Den klassiska modellen GloVe jämfördes med den mest nerladdade publika modellen all-MiniLM-L6-v2 från Hugging Face, som även jämfordes med OpenAI vektorer över antalet dimensioner. Klustringen gjordes med flera modeller såsom HDBSCAN och HAC men K-means hade bäst resultat.

Place, publisher, year, edition, pages
2025. , p. 72
Series
TRITA-EECS-EX ; 2025:485
Keywords [en]
Natural Language Processing, Machine Learning, Clustering, Feature Extraction, Consumer Products, Large Language Models, OpenAI, Llama, K-means, HDBSCAN, HAC, all-MiniLM-L6-v2 Vector Embeddings.
Keywords [sv]
Naturlig språkbehandling, Maskininlärning, Klusteranalys, Konsumentprodukter, Stora språkmodeller, OpenAI, LLama, K-means, HDBSCAN, HAC, all-MiniLM-L6-v2 Vektorinbäddningar.
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-368126OAI: oai:DiVA.org:kth-368126DiVA, id: diva2:1987386
External cooperation
Knightec Group
Supervisors
Examiners
Available from: 2025-08-11 Created: 2025-08-06 Last updated: 2025-08-11Bibliographically approved

Open Access in DiVA

fulltext(5975 kB)150 downloads
File information
File name FULLTEXT01.pdfFile size 5975 kBChecksum SHA-512
b48b6ce152f5803eedb97e2859285332fc30759e9608ccd6f16e36f659020812c28f7ced7eff68076e82a21bf9f8af419aa2f6e9735cb11e855b81cc65a0cf4f
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 151 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 935 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf