Back to Blog
AI3 min read

Predicting Stock Movement and Service Visits: Practical Machine Learning at Toyota Astra Motor

Predicting Stock Movement and Service Visits: Practical Machine Learning at Toyota Astra Motor

Predicting Stock Movement and Service Visits


Machine learning often gets discussed in abstract terms. In automotive, its value is very concrete: knowing how many cars will move through a warehouse next week, or which customers will show up for their next service.

We worked with Toyota Astra Motor on both questions. Here is what we built and what each project taught us.

Project 1: Forecasting vehicle movement across warehouses

The challenge

Thousands of vehicles move constantly between Toyota Astra Motor’s main locations in Sunter, Karawang and Cibitung. Two questions kept coming up: how many cars are leaving the factory, and how many are arriving at dealerships?

Without reliable answers, it was hard to manage warehouse space and assign staff. Teams often reacted to problems after they happened instead of planning ahead.

What we did

  1. Prepared the data. We organized and cleaned historical movement data with a preprocessing pipeline in Azure Machine Learning Studio, so it was consistent and ready for modeling.
  2. Built one model per site. Each warehouse has its own rhythm, so we trained three separate forecasting models for Sunter, Karawang and Cibitung, predicting movement by car model and location.
  3. Improved the existing formulas. The client already had business formulas for stock planning. Rather than replace them, we fine-tuned them and combined them with the models.
  4. Accounted for external factors that had previously caused mispredictions.

The results

  • Stock movement predictions improved by 10–20%
  • Less time spent gathering and preprocessing data from different sources
  • Lower costs from overstaffing, as manpower could be matched to expected volume

Lesson: Do not throw away the business’s existing logic. Combining domain formulas with machine learning was more accurate, and more trusted, than either on its own.

Project 2: Predicting service visits and upsell opportunities

The challenge

After-sales service is a chance to strengthen customer relationships. But some customers came in on time, while others postponed or missed appointments, which made staff and resource planning hard. Upselling products after maintenance depended largely on guesswork.

What we did

  1. Segmented customers by behavior. We grouped customers by how recently they visited, how often they come in and how much they spend, a method known as RFM analysis.
  2. Predicted punctuality. Using those patterns, the model estimates which customers are likely to return on time for routine service.
  3. Recommended products. A combination of machine learning and business rules suggests which products or services make sense to offer each customer during a visit.

The work ran on Python and Azure Machine Learning, with Denodo providing access to data across systems.

The results

  • Faster data preparation from multiple sources
  • Better upsell performance during maintenance visits
  • Fewer customers missing their scheduled service

Lesson: Segmentation turns a vague goal like “improve after-sales” into specific actions: which customers to remind, and what to offer them.

What the two projects have in common

Both started with the same unglamorous step: getting data from several sources into a clean, usable shape. In both, the model was only part of the answer. The rest was fitting predictions into how planners and service advisors already work.

That is usually the difference between a model that impresses in a presentation and one that changes how a business runs.


Have a forecasting or customer question your data could answer? Explore our AI services or talk to us.

Ready to go further with Teman Data?

Smarter care, fewer delays. Teman Data unifies patient, staff, and resource data to cut wait times, boost efficiency, and improve outcomes.

Tailor solutions to your goals, making data simple, scalable, and truly actionable.

logo

©2026 Teman Data. All Rights Reserved