1. A method comprising: determining a state of a batch process; retrieving historical segments from a historical database of trajectories of the batch process as a function of the state of the batch process; creating a model as a function of the retrieved historical segments; and using the model to provide state information about the batch process.