Factory Simulation: From Millions to 30,000 Yen a Month. The Transformation of Visualization in Small and Medium-Sized Manufacturing
Related Articles
What Happens When Hundreds of Thousands of Yen Becomes 30,000 Yen a Month?
The “digital twin” of a factory—this system recreates the entire manufacturing line on a computer, allowing for simulations to identify bottlenecks and optimize production planning.
While this has become commonplace in large corporations, it has remained a distant concept for small and medium-sized manufacturers. The reason is simple: building it costs hundreds of thousands of yen, and specialized personnel are needed for operation. For a small factory with 30 employees, the idea of implementing a “digital twin” was simply not realistic.
That premise is now beginning to crumble.
A recently published paper proposes a framework called “GenAI4SimPy,” which automatically generates simulation models simply by feeding it the factory’s manufacturing event logs (records of machine operations and work logs). No specialized simulation engineers are required. The only tools needed are open-weight (free-to-use) language models. By utilizing cloud GPUs, it can be operated at a cost of around 30,000 yen per month.
From hundreds of thousands of yen to 30,000 yen a month. This represents a cost reduction of about 1/100. This is not just a price drop; it signifies the erasure of the boundary between “companies that can do it” and “companies that cannot.”
How It Works—The Inner Workings of GenAI4SimPy
Let’s take a closer look at the contents of the paper titled “From Manufacturing Event Logs to Simulation: Enabling SMEs with Agentic AI for SimPy Simulation Generation.”
The mechanism of GenAI4SimPy is as follows:
- Input the factory’s manufacturing event logs (start and end times of machines, work sequences, waiting times, etc.)
- The agent AI analyzes the logs and automatically understands the structure of the manufacturing process.
- Automatically generate code for SimPy (a Python-based simulation library).
- Execute the generated simulation and validate its accuracy by comparing it with actual data.
The language model used is Qwen 3 (with a parameter size of 235B). Since it is open-weight, there are no licensing fees. It can run on local or cloud GPUs.
How about the crucial accuracy? In the experiments conducted in the paper, an average absolute percentage error (MAPE) of 7.9% was recorded across three manufacturing scenarios. This means that the simulation was able to reproduce the actual behavior of the factory with about 92% accuracy.
Traditionally, achieving this level of accuracy required simulation experts to manually create models over several weeks. Now, it can be generated by simply inputting logs and pressing a button. This is the fundamental change.
Why Can It Be Done for 30,000 Yen a Month?—Breaking Down the Cost Structure
Let’s clarify the basis for the figure of “30,000 yen a month.”
The breakdown of traditional digital twin construction costs was roughly as follows:
- Consulting fees for simulation experts: 1.5 to 3 million yen
- Licensing for commercial simulation software: 500,000 to 1 million yen per year
- Development costs for data preparation and integration: 1 to 2 million yen
- Total: Initial costs alone ranged from 3 to 6 million yen
With the GenAI4SimPy approach, this changes to:
- No simulation experts needed (AI generates automatically)
- SimPy: open-source and free
- Language model (Qwen 3): open-weight and free
- Cloud GPU usage fees: around 20,000 to 30,000 yen per month (possibly even cheaper for inference only)
- Data preparation: using existing event logs directly
Initial costs are nearly zero, with running costs at 30,000 yen a month. The 100-fold cost difference is a result of a “fundamental change in structure” rather than just technological advancement.
Cost Reduction of Small LLMs Accelerates This Trend
Another noteworthy paper is titled “THRIFTY: Cost-Constrained Reasoning-Data Synthesis for Small Language Models.”
This paper addresses the issue of how to create training data for small language models (SLMs) in a cost-effective manner.
Traditionally, to improve the performance of small models, large models (like GPT-4) were used to generate vast amounts of inference data, which was then used as training data. However, the API call costs for large models can accumulate.
THRIFTY demonstrated that by using a technique called Thompson sampling, it can collect 22% more “correct inference paths” within the same budget. In other words, the cost of training small models can be reduced by over 20%.
How does this relate to manufacturing simulation generation?
The connection is significant. GenAI4SimPy currently uses a large model with 235B parameters, but if small models (7B to 14B class) are trained using methods like THRIFTY, they can run on even cheaper GPUs. The cost could potentially drop from 30,000 yen to 5,000 yen.
The implications for small and medium-sized enterprises are clear. The barrier to “trying it out” will be nearly zero.
Improving the Accuracy of Coding Agents—The Question of “Is the Automatically Generated Code Usable?”
When people hear “AI writes code automatically,” the first question that comes to mind is likely, “Does that code actually work?”
The paper “TEA-Bench-BR: Can Coding Agents Turn a Branching Clinical Specification into Correct Code?” directly addresses this question. It evaluates whether coding agents can generate correct code when given a specification document containing complex branching rules.
As a result, it has been confirmed that the latest agents (like Gemini and Claude) can generate code with considerable accuracy even for tasks involving complex conditional branches. However, they are still not perfect. This is something that needs to be stated honestly.
However, what is important is not whether it is perfect, but whether it is practical. The MAPE of 7.9% for GenAI4SimPy is more than sufficient accuracy for the purpose of “roughly identifying bottlenecks and determining improvement directions.” Decimal-point precision is not necessary for on-site improvements in small factories.
What Will Truly Change for Small and Medium-Sized Manufacturing?
Let’s distill the discussion so far into the question: “So, what will actually change in our factory?”
Change 1: Bottleneck detection shifts from “intuition” to “data”
In many small factories, production bottlenecks are determined by experienced workers based on their intuition. While this is not inherently bad, it is subjective. If the veteran leaves, the knowledge goes with them. By visualizing through simulation, anyone can clearly see “this is where the bottleneck is.”
Change 2: The uncertainty of “we won’t know until we try” disappears
Questions like “What happens if we rearrange the line order?” or “How much will production increase if we add one more machine?” no longer require stopping the line to test. You can try out as many patterns as you want in simulation.
Change 3: The information gap with large corporations shrinks
The ability to “oversee and optimize the entire factory,” which was previously only available to large corporations, can now be obtained for 30,000 yen a month. It will become a matter of whether you choose to do it, not a matter of capital strength. This is the most significant structural change.
What Should Be Done First?
Now that the technological aspects are understood, what should small and medium-sized manufacturing executives do starting today?
Step 1: Confirm whether your company’s “event logs” are being captured
Are the start and end times of machine operations, work sequences, and setup times digitally recorded? If you only have paper reports, digitalizing that should be the first step. Even attaching an IoT sensor for a few thousand yen can capture a significant amount of data.
Step 2: Start small
There is no need to simulate the entire factory right away. You can start with just one line or one process. You could wait for tools like GenAI4SimPy to be commercialized, but SimPy itself can be used for free right now. Have AI write the code and try to recreate just one process. Even that will reveal valuable insights.
Step 3: Prioritize “insights” over “accuracy”
Don’t expect a perfect simulation from the start. Even with a 10% error, if you gain insights like “this process is holding back the entire operation,” that alone can justify the investment.
This Trend Will Not Stop
Open-weight language models are improving in performance and decreasing in cost every six months. The training efficiency of small models is also increasing. The accuracy of coding agents is improving.
The simultaneous advancement of these three areas means that tasks that previously required experts will increasingly be automated.
For small and medium-sized manufacturing, this is not a threat but an opportunity. There is no need to invest hundreds of millions of yen to build systems like large corporations. Start with 30,000 yen, and if it proves effective, expand from there. This agility is the greatest weapon of small enterprises.
Hundreds of thousands of yen have become 30,000 yen a month. Next, 30,000 yen may become 5,000 yen. The question is not whether the technology exists, but whether you choose to act.
JA
EN