1. A computer implemented method comprising: the computer determining a state of a batch process; the computer retrieving historical segments from a storage device containing a historical database of trajectories of the batch process as a function of the state of the batch process; the computer creating a model as a function of the retrieved historical segments; and the computer using the model to provide state information about the batch process wherein determining the state of a batch process comprises obtaining multiple measurements of one parameter, and wherein the retrieved historical segments for the parameter are retrieved that are similar to the multiple measurements of the parameter are included in creating the model while historical segments that are not similar to the multiple measurements of the parameter are excluded in creating the model, and wherein the model is deleted after use, and wherein a new segment within the same state of the batch process is obtained after use of the model to generate a new model.