To demonstrate the proposed workflow, a neural network was trained to evaluate and predict pumping strategies for a flowing tank farm. Instead of relying on historical refinery measurements, the training dataset was generated automatically by the refinery digital twin. Thousands of operating scenarios were simulated by varying the initial tank inventory, inlet flow profile, outlet pumping rate, and operating conditions. Each simulation produced a fully labeled training sample containing the current operating state together with the corresponding control decision generated by the digital twin. Because the simulation preserves material balance and all operational constraints, every generated sample is physically consistent and suitable for AI model training.
Unlike conventional datasets collected from industrial operation, the simulation dataset intentionally included both routine production and rare operating conditions such as rapidly changing inlet flows, low inventory levels, and situations approaching storage capacity limits. This significantly improves the robustness and generalization capability of the neural network.
After training, the AI model reproduced the pumping decisions of the digital twin with high accuracy while producing predictions within milliseconds. As a result, thousands of alternative operating scenarios can be evaluated almost instantly, making the trained neural network suitable for real-time operational decision support without repeatedly executing the complete refinery digital twin.
Simulation of
multiple operating scenarios using the digital twin made it possible to generate the dataset required for neural network training (a fragment of the dataset is shown below). A planning horizon of one month
(T) was adopted. In total, the digital twin generated
10,000 feature vectors for neural network training and
500 additional vectors for model validation. Each feature vector contained the initial tank inventory
S(0), the initial outlet pumping rate
Vout(0), the time-dependent inlet flow profile
Vin(t), t ∈ [1, T], and the feasibility assessment of the pumping plan. The neural network was trained using the standard
backpropagation algorithm.