Back to Case Studies

Building an AI Department for a Textile Factory

Logistics Rate Optimisation and Demand Forecasting

ProductionManufacturing & IndustryLogistics & ShippingFeb 2024 – Nov 2024MLOps, Infrastructure & Data Science
Up to 14%
Lower logistics costs
2
Use cases: logistics and demand
2
Use cases: logistics and demand
2nd
AI department built on the same playbook

My Role

Role
Independent consultant & department lead
Independent consulting
Team
Me + 2 engineers
Stage reached
In production, two use cases
Key decisions
  • Lean senior team of two, owning end to end
  • Logistics rate optimisation first, for quick savings
  • Simpler demand model on own sales history

Approach at a Glance

Details
  1. 1A Lean, Senior Team
  2. 2Data Foundation First
  3. 3Roadmap and Processes
  4. 4Logistics First, Again
  5. 5Simpler Demand Forecasting

Executive Summary

From February to November 2024, as an independent consultant, I built and led an AI department for a textile factory in Ukraine. It was the second time I applied the playbook I had developed at a metallurgical plant just before (see Building an AI Department for a Metallurgical Plant):

  • the team: structure, hiring and onboarding of two engineers;
  • a data foundation from the factory's ERP and logistics data;
  • an AI roadmap with a prioritised portfolio of use cases;
  • processes and MLOps for building, deploying and monitoring models.

Again, logistics rate optimisation came first: freight rate forecasting, carrier and route selection, shipment consolidation and tender support. Here it cut logistics costs by up to 14%. The department's second use case was demand forecasting, which was simpler than at the metal plant, because the factory's demand could be forecast largely from its own sales history.


Client Profile

The client is a textile manufacturer with regular shipments of materials and finished goods, where logistics is a significant and variable cost. Like the metal plant, it had no AI capability before the project.

The starting point looked familiar:

  • No AI team or processes, so the department had to be built from zero.
  • Data spread across the ERP and logistics records.
  • The need to show value quickly to justify the new department.

Two things were different, and the playbook had to adapt:

  • A smaller team. The factory needed a leaner department, so it had two engineers instead of three.
  • More direct demand. Unlike metal, textile demand didn't need a model of the customers' downstream markets.

Technical Approach

  1. A Lean, Senior Team – I structured, hired and onboarded a team of two engineers, sized to the factory and its first use cases. A small senior team could own data, models and deployment end to end.

  2. Data Foundation First – As before, the work started with the data: the factory's ERP, sales and logistics records, including shipments, carriers, rates, routes and orders, brought into one place that models could rely on.

  3. Roadmap and Processes – I set up the AI roadmap with use cases ranked by value and feasibility, and the department's processes and MLOps, reusing what had worked at the metal plant.

  4. Logistics First, Again – Logistics rates were the first use case for the same reason as before: savings that are direct, measurable and quick to show. It had four parts:

    • Freight rate forecasting with gradient boosting and time-series models.
    • Carrier and route selection with linear and mixed-integer programming.
    • Load and shipment consolidation into fewer, fuller shipments.
    • Tender and negotiation support with rate benchmarks.

    At this factory, logistics costs came down by up to 14%.

  5. Simpler Demand Forecasting – Textile demand followed the factory's own sales patterns more directly than metal demand did, so the forecast could be built mainly on the factory's own history, without the market-indicator layer that the metal plant needed. A simpler model fit the problem and was faster to deliver.


Business Outcome

The factory gained a working AI department of two engineers, with a data foundation, a roadmap and delivery processes. Its first use case cut logistics costs by up to 14%, and its demand forecast supported production and sales planning.

Applying the same playbook a second time showed what transfers and what doesn't. Starting with the data, starting with logistics and keeping the team small worked again. The demand model, though, had to fit the business: textile didn't need the market-trend layer that metal did.

Technologies

Gradient BoostingTime-Series ForecastingLinear & Mixed-Integer ProgrammingData EngineeringERP & Logistics DataMLOps

Planning something similar?

Tell me about it on a short call. New projects can start within 2 weeks