AI CASE STUDY
EGC: AI Categorisation for Thousands of Industrial Products
How WebSpero built a proof-of-concept tool for EGC (EWIE Group of Companies) that ingests industrial product descriptions and part numbers, classifies each item into one of 3,500+ hierarchical categories and assigns a confidence score to every result.

3.5K+
CATEGORIES
Up to 5 Levels Deep
~80%
TIME SAVED
Versus Manual Sorting
Scored
CONFIDENCE ENGINE
Flags Low-Confidence Items
Batch
AUTOMATED RUNS
Excel & CSV Uploads
Project Context
Client
EGC (EWIE Group of Companies)
Niche
Industrial Supplies & Commodity Management · AI Proof of Concept
Timeline
About 6–8 weeks
The Tech Stack
- Python (FastAPI / Flask)
- Generative AI (OpenAI models)
- React.js
- Node.js
- PostgreSQL
- Pgvector
"Manual processing currently slows down our inventory management. We need to automate this to reduce time and manual input, freeing our effort for more productive use."
EGC manages cutting tools, abrasives, industrial supplies and chemicals for customers in 12 countries. Every product it handles has to sit in the right category before it can be managed in inventory. Sorting long product lists by hand took hours, and the team wanted that work automated.

The EGC Team
EGC (EWIE Group of Companies)

THE TOOL
Upload a Product List, Get Every Item Categorised
The internal team uploads an Excel or CSV file of raw product data. The tool processes it automatically in batches through an ETL pipeline, classifying each product from parent to child category and assigning a confidence score at each level. The confidence engine also checks previously classified data and past category selections to improve scoring accuracy. Admins can set a confidence threshold for automatic acceptance, so high-confidence results load without manual review. For results below the threshold, the tool suggests the closest matching categories alongside relevant historical matches, so the team can quickly review them, select the correct category and give feedback.
For the EGC Team
- Upload product data as an Excel or CSV file
- Have products categorised automatically, in batches
- See the full category path for every product, with a confidence score at each level
- Use confidence scores to decide what needs a second look
- Spend far less time on manual classification for the products
For Inventory Management
- Products reach the right category faster
- Consistent categorisation across a 3,500+ category structure
- Fewer errors, because low-confidence results are reviewed
- Large product lists handled through scheduled batch runs
HOW WE BUILT IT
A Hierarchical Classifier with a Confidence Check at Every Level
Instead of predicting one category out of 3,500+ in a single step, the tool works down the category tree the way a person would, checking its confidence at each level before going further.

Reading the Product
The classifier reads the product description and manufacturer details.

Part Number Patterns
It identifies patterns in manufacturer part numbers and descriptions.

Hierarchical Classification
Products are classified hierarchically, level by level, from the parent category to the leaf, up to five levels deep.

Confidence Scoring
A custom confidence engine scores each decision in the classification matrix.

Early Back-Off
When the confidence score falls below the threshold, classification stops and the category is kept only as a suggestion, with context to support the prediction.

Past Human Decisions
For low-confidence items, it looks up similar products the team has labelled before and suggests their categories.

Search for Sparse Data
Where descriptions are thin, Google search results add context.

Batch Processing
Automated cron jobs process large product lists in batches.
WHAT WE BUILT
Six Building Blocks of an AI Categorisation Engine
Each section below pairs a part of the build with an illustrative screen or diagram. The screens use sample data to show how the tool works.
Excel and CSV Upload with Batch Processing
The team uploads a product list as an Excel or CSV file. Scheduled cron jobs split it into batches and categorise the products automatically, so a large list doesn’t need to be processed by hand.

Hierarchical Classification Across 3,500+ Categories
Each product is classified one level at a time, from the parent category down to the leaf node, up to five levels deep. Narrowing the choice at every step makes it easier to tell apart categories that are closely related.

Confidence Scores for Every Result
A custom confidence engine scores every classification. Results above the threshold can be used straight away, while lower scores show the team exactly which items to review.

Early Back-Off for Uncertain Matches
If confidence falls below the threshold at any level, classification stops there. The predicted category is kept only as a suggestion, with context to support it, so uncertain guesses stay out of the final category path.

Suggestions from Past Human Labels
For low-confidence items, the tool searches products the team has categorised before, using vector search in PostgreSQL with pgvector, and suggests the best matches. The team’s earlier decisions guide new ones.

Handling Sparse Product Data
Some products arrive with little more than a part number and a short name. The tool reads patterns in manufacturer part numbers, checks Google search results for context and compares against past decisions to place them.

THE CHALLENGES WE SOLVED
Categorising Products from Very Little Information
Industrial product data is often short, inconsistent and spread across thousands of similar categories. Three challenges shaped the build.
Vague, One-Line Descriptions
Many products came with minimal text. Part number patterns, search results and past human decisions fill the gaps.
Closely Related Categories
With 3,500+ categories, many look alike. Classifying one level at a time keeps each decision narrower and more accurate.
A Custom Confidence Engine
A hierarchical classification matrix needed its own scoring, so a custom engine scores every level and triggers early back-off.
WHAT WAS DELIVERED
From Hours of Manual Sorting to Automated Batches
The proof of concept showed that most of the manual categorisation work can be automated. The table maps the project vision to what was delivered.
| FOCUS | VISION | DELIVERED |
| Manual Effort | Automate categorisation | An AI tool that saves almost 80% of the time spent on manual sorting. |
| Accuracy | Place products in the right category | Accurate parent-level classification with a confidence matrix. |
| Error Control | Catch uncertain results | Confidence scores and early back-off at each level, so low-confidence items are reviewed. |
| Scale | Handle large product lists | Batch processing with automated cron jobs. |
| Sparse Data | Categorise products with little information | Suggestions from past human labels and search results for low-confidence cases. |
| Workflow | Fit the team’s existing data | Excel and CSV uploads processed automatically. |
WHAT TO EXPECT FROM US
AI That Knows When It Isn't Sure
The EGC project combined generative AI with structured classification logic. Its value lies in automation the team can trust, because the tool shows its confidence and hands uncertain cases back to people.

Follow the shape of the data.
A hierarchical category tree calls for a hierarchical classifier.

Score every decision.
Confidence scores make AI results reviewable instead of a black box.

Stop before guessing.
Early back-off keeps uncertain predictions out of the final result.

Learn from the team.
Past human decisions guide the hardest cases.

Keep outcomes evidence-based.
Results describe the proof of concept; time savings are the team’s estimate.

Start with a proof of concept.
A focused POC shows what automation can deliver before a full rollout.

Plan for scale from the start.
Scheduled batch runs handle large product lists without manual effort.

Work with the files teams already use.
Excel and CSV uploads mean there is no new data format to learn.
TECHNICAL NOTES
The Architecture Behind the Categorisation Tool
Python (FastAPI / Flask)
Backend services for classification, confidence scoring and batch jobs.
OpenAI Models
Generative AI reads product descriptions and supports each level of classification.
PostgreSQL and pgvector
Stores products, categories and past human labels, with vector search for similar items.
React.js and Node.js
Interface and application layer for uploads and results.
Cron Jobs
Scheduled batch processing for large product lists.
Custom Confidence Engine
Scores each level of the classification matrix and triggers early back-off.
Spending hours sorting product data by hand?
Let’s build an AI tool that categorises your catalogue, shows its confidence and leaves your team to review only what matters.
