Case study
Predicting granule size in DAP fertilizer
A fertilizer plant producing diammonium phosphate (DAP) could not keep granule size on specification. We built models that predict size from the plant’s own tags, and a simulator operators use to try a change before they make it.

Granule size that would not stay on specification
Granule size and uniformity kept missing specification. Each fix helped for a while, then size dropped again, and the swings had no explanation anyone could point to. Part of the trouble is the loop itself: most of a granulator’s feed is its own recycle, so the effect of a change comes back around later.
- Size guide number (SGN) is the measure of granule size.
- Size is known only after the product is made.
- Granulator
- Dryer
- Screens
- Crusher
- Recycle
- Product
Data and methods
Data
50 attributes over 2 years, aggregated to 10-minute intervals, from PI and LIMS tags. We cleaned the data and generated features from chemical principles, with feedback from the plant’s subject-matter experts.
Methods
Two LightGBM models, with a voted aggregate. One works on the process variables in the PI and LIMS tags. The other works on the historical trend, as a time series. Gradient-boosted trees suit plant tags, which come in mixed scales and with gaps.
A simulator for the next move
The models predict granule size from the plant’s own tags. Operations staff and operators use them through a simulator with a graphical interface: they enter a change and see its estimated effect on size before they make it on the plant.
50process attributes from PI and LIMS tagsModel inputs
2years of plant dataHistory
10minutes between data pointsResolution