BlogKaltec Voices
Why a model trained at one plant goes wrong at another
- Type
- Kaltec Voices
- Published
- 24 November 2026
- Prepared by
- Byunghoon So
- Role
- ML / AI Engineer
A model trained on one plant's records learns the salt, temperature and equipment generation that never changed there as background rather than variables, so at a plant with different conditions it misreads the same inputs. Whether a model can move is something you can judge only once both plants' conditions sit side by side in the records, and the first month after the move goes to that comparison and to shadow running.
Background
The line on the weekly false alarm chart bent upward the week we deployed the same model at an inland plant. It was a model that told a shipbuilding customer's coastal shipyard when to regrease its crane wire ropes, and at that shipyard the line had stayed flat and low for more than six months. At the inland plant, inspectors more and more often went to a rope the model had flagged for regreasing, wiped it with a rag, and found grease still coming off.
The model went wrong at the second plant because of conditions that never once changed at the first. A model trained at only one plant learns that plant's conditions as the background, so it does not carry over to another plant unless both plants' conditions sit side by side in the records.
Conditions that never changed could not become variables
Every crane at the coastal shipyard takes the sea wind. Salty moisture and rain wash grease off the rope surface, and water that seeps between the strands rusts inner wires you cannot see from outside. But inside that shipyard, salt was about the same at every crane, so there was no reason for salt to appear as an input. What the model got was days since the last application, number of lifts, and the rope condition rating from the last inspection. It learned that grease dries as days and lifts add up, and the sea wind was already built into that slope. A condition that never varies in the training data does not show up as a variable no matter how much data you collect; it hides inside the model's baseline.
It is like an ear hearing a regional accent for the first time. To someone used to only one region's speech, a perfectly ordinary tone from another region can sound angry. Not because the ear is bad, but because it listens against the speech it grew up with. To a model raised by the sea, the same number of days since the last application sounded just as risky inland. Where there is less salt, less grease washes off over the same days, yet the model flagged ropes that were still fine.
Research that sorts the ways data can change looks separately at a shift in the distribution of inputs and a shift in the relationship between inputs and answers (Moreno-Torres et al., 2012). At the inland plant, both came at once. The distribution of how often the cranes lifted was different, and the same number of days meant a different grease condition. The first can be spotted from the inputs alone, but the second stays hidden until inspections confirm the answers.
The limits of validation held out from the same plant
At the first plant, this model's validation score was good. But that validation data was held out from other cranes and other months at the same shipyard. Training and validation took the same sea wind, so the score could not predict performance at another plant. There are also reports that several models with nearly the same validation score behave very differently once conditions change (D'Amour et al., 2022). In other words, scores inside the place a model learned cannot tell you which model will carry over. So when there are two or more plants, I train with one whole plant left out and score the model on that plant. That score is closer to what you can expect at a new plant.
Start condition fields with what varies inside a plant
Public datasets in equipment life prediction took on changing operating conditions early. A dataset that simulates aircraft engine degradation records six flight conditions as columns, defined by altitude, Mach number and throttle angle (Saxena et al., 2008). Studies using it often begin by normalizing the sensor values separately for each condition. A plant's crane records usually have no such columns.
Salt can be roughly sorted by distance from the sea. The international standard that grades atmospheric corrosivity from C1 to CX sets the class by the first-year corrosion rate of standard specimens. For when there are no specimens, it also gives a formula that estimates the class from annual mean temperature, relative humidity and sulfur dioxide and chloride deposition (ISO, 2012). With this class on record, you can tell whether a new plant lies outside the range the model learned. But with only two plants, a plant-level column like corrosivity class does the same job as a plant name tag, and cannot separate the share of salt from differences in crane generation or inspectors. Columns like this earn their place once records from more than three plants have built up.
So fields whose values vary inside the same plant come first. The inland plant's cranes were an older generation than the shipyard's, and the rope construction, grease and application method were different too. Galvanized and ungalvanized ropes rust at different rates under the same grease condition, and with a smaller sheave diameter the rope bends more sharply each time it passes over the sheave, squeezing out grease between the strands. Whether grease was applied by hand or pushed into the strands with a pressure lubricator, and whether the crane is indoors or outside, also change the regreasing interval.
The answers the model learned also depend on conditions. Shipyard inspectors judged the need for regreasing by the sheen they could see, and inland inspectors by how much came off on a rag. If the rating method is not recorded, you cannot even tell that two answers written in the same words follow different standards. When false alarms rose, I suspected this answer standard before salt. We rated a few of the same ropes by both plants' methods, took out the share explained by rating differences, and treated the false alarms that remained as the share of salt and rope construction.
How much each condition changes the regreasing interval is something the technical staff who chose and applied grease on that crane know before I find it in the data. So when I build the list of condition fields, I ask them before opening the data, and use the data to sort out which items on that list actually move the numbers.
Putting it to work
If you have moved a model to a new plant, use the first 30 days in two blocks, and write down the retraining criteria before the second block begins.
Days 1 to 7 are the condition comparison. Put both plants' corrosivity class, seasonal temperature range, crane generation and indoor or outdoor location, rope construction and sheave diameter, grease type and application method, and inspectors' rating method side by side in one table, and mark each cell where the new plant's value lies outside the range the first plant saw. Take the grease items and the reason that grease was chosen from the records the grease supplier for that crane left in the customer's site history. Cranes with a mark stay off the alert list even after the model is switched on at day 30, and keep their current inspection cycle.
Days 8 to 30 are shadow running. The model runs, but alerts go only to the log, not to the crew, and maintenance stays on its usual cycle. Each rope that triggers an alert gets one wipe by an inspector within that week, separate from the regular inspection, rated on the same scale as the first plant, with a photo attached. If the gap between alert and inspection widens, grease that dried in the meantime turns a false alarm into a correct one. Measure input shift separately. With only three inputs, you can test each one by putting the two plants' distributions side by side. For a model with many inputs, a comparison study found that the simple method of comparing the distribution of model outputs caught shift well (Rabanser et al., 2019). Only a few ropes actually need regreasing within thirty days, so what you can count in the first month is false alarms, not misses.
The retraining criteria state at what multiple of the first plant's validation false alarm rate you act, how many ratings must build up before you act, and who decides. There is a cheap step of just shifting the second plant's alert threshold, but if one plant mixes cranes with different conditions, a single threshold cannot fix it. When retraining, combine both plants' data and add the condition fields that vary inside a plant as inputs. Build a new model from the second plant's data alone and you will count the same false alarms again at the third plant.
Conclusion
Once the conditions that never changed at the first plant are written out as fields, you can decide whether to move the model, which cranes to trust it on and when to retrain. What you look for when choosing wire rope grease, adhesion the sea wind will not wash off, penetration into the strands and a viscosity that still pushes out of the lubricator on a winter morning, are answers to salt, temperature and rope construction. A site history that records salt, temperature and rope construction for each crane fills half of the condition comparison table on day one.
More of the requests I get now ask to extend a model tuned at one plant to the same customer's other plants, and when one comes in, I open the condition comparison table first.
Moving a model starts with writing both plants' conditions side by side on one sheet.
Sources
- D'Amour, A., Heller, K., Moldovan, D. et al. (2022). Underspecification presents challenges for credibility in modern machine learning. Journal of Machine Learning Research, Vol. 23, No. 226, pp. 1–61. https://jmlr.org/papers/v23/20-1335.html
- ISO. (2012). ISO 9223:2012 Corrosion of metals and alloys: Corrosivity of atmospheres, Classification, determination and estimation. https://www.iso.org/standard/53499.html
- Moreno-Torres, J. G., Raeder, T., Alaiz-Rodríguez, R., Chawla, N. V., Herrera, F. (2012). A unifying view on dataset shift in classification. Pattern Recognition, Vol. 45, No. 1, pp. 521–530. https://doi.org/10.1016/j.patcog.2011.06.019
- Rabanser, S., Günnemann, S., Lipton, Z. C. (2019). Failing loudly: An empirical study of methods for detecting dataset shift. NeurIPS 2019. arXiv:1810.11953. https://arxiv.org/abs/1810.11953
- Saxena, A., Goebel, K., Simon, D., Eklund, N. (2008). Damage propagation modeling for aircraft engine run-to-failure simulation. International Conference on Prognostics and Health Management, Denver, pp. 1–9. https://doi.org/10.1109/PHM.2008.4711414