Factory Manufacturing Intelligence System
An AI-driven digital twin for an aerospace and electronics production facility. Each day it tells leadership which assemblies to kit, who should build them, and when every customer order is likely to ship, with stated confidence.
The problem
An MES records what happened, and an ERP plans what should happen. Neither says what will happen given today's work in process, staffing and deep multi-level BOMs, so delivery commitments came down to judgment and hope.
What I built
A 20+ module Python system that reads live MES data, simulates the factory thousands of ways, optimizes the next three shifts, and presents the results in a 14-dashboard executive suite.
The result
A daily review with diagnosis, specific remedies and their quantified effects, plus probabilistic delivery dates. It was built by one architect directing AI, where this would normally take a multi-year team effort.
From raw MES transactions to tomorrow's decisions
Six layers, refreshed every day from production data.
What factory leadership sees every morning
| Dashboard | What it answers |
|---|---|
| Projected Delivery Dates | When will the next 10 units of each product line ship? (P10/P50/P90, per scenario) |
| Customer ETAs | Which customer orders are at risk of being late, and under which scenarios? |
| Shift Assignment | Which technician works on which assembly today, matched by skill? |
| Joint 3-Shift Plan | What should we kit and release over the next three days? |
| Ensemble Forecast & Risk | How wide is the spread between baseline, realistic, ideal and NCR-reduced outcomes? |
| Digital Twin Deep Dive | Where are the bottlenecks? (sub-assembly completion heatmaps) |
| Delivery Distributions | Which exact BOM lineage feeds each predicted ship unit? |
| Verification & Diagnostics | Can we trust today's forecast? (WIP confirmation, prediction accuracy) |
Screens from the running system
All data is simulated. Each run generates a new factory history; these screens show simulated day 2027-04-08. Click any screen to see it full size.





For the engineers in the room
Simulation & optimization
- Monte Carlo discrete-event simulation over 60-day horizons, giving delivery probability distributions per order
- Mixed Integer Programming (PuLP) for daily kit release across three shifts, balancing two product lines against shared workstation capacity and technician skills
- A factory state machine of over 1,700 lines tracking every assembly through each quality-gate stage, loaded with real WIP
- A four-scenario ensemble with each scenario isolated, so results cannot leak between runs
Learning & calibration
- EWMA touch-time calibration from live MES observations, with step-change detection (resets the anchor when z > 2.5σ)
- Bayesian credibility blending to keep the system stable while data is sparse
- GAN-style adaptive models (completion time, resource loading, NCR patterns) that switch on only once enough data has built up
- A daily feedback loop comparing predictions with actuals (MAPE, bias, RMSE) that sets the weight of each model
Where domain experience mattered
- Spotted forecast values that came from cache misuse rather than real Monte Carlo results, and traced the full chain of causes back to the root
- Saw that the BOM traversal was counting sub-assembly completions as shipped root assemblies
- Found that the parent-order field was empty in the MES and redesigned traceability around the BOM structure instead
- Pushed the AI away from patching symptoms toward structural fixes, and checked each change against targeted debug output before production runs
Built to integrate
The system is designed to sit on top of the enterprise tools you already have. To estimate the labor cost reduction for your own operation, see the ROI calculator.
- ERP: optimizer output is structured to be pushed straight into work orders
- MES: SQLite ingestion is already in place; REST or OPC-UA connectors are a direct extension
- PLM/PDM: BOM parsing from Excel can be swapped for API calls
- QMS: live NCR rates plug into the existing scenario parameters
- Customer portal: ETA output is ready for delivery-commitment reporting
Stack
Product names, customer data and facility details are withheld. Screenshots of dashboards with sample data are available on request.
Want delivery dates you can defend?
I can adapt this approach to your production data, BOMs and enterprise systems.
Start a conversation