1. A method for controlling a manufacturing process, includes: processing using a process input and producing a process output; storing the process input in a database, the storing including providing a timestamp; storing at least one measurement of the process output in the database aligned with each process input using the timestamp; iterating over data from the database to estimate a process state; if one or more of measurements is missing from the database, predicting the missing measurements for the database based on a model; and determining an error for calculating a next process input, the error based on the data in the database.