Open Access Open Access  Restricted Access Subscription Access

Particle Swarm Optimization of Neural Networks for Corrosion-Rate Prediction in Crude Oil Production Pipelines: A Nested Validation Study

Okwu Elemchukwu Isaac, Izabo Abigo

Abstract


Particle swarm optimisation (PSO) can train small neural networks for engineering prediction, but reported accuracies are usually in-sample. This study applies a nested leave-one-out (LOO) protocol to internal corrosion-rate prediction on one dataset of 40 pipeline samples with nine measured predictors. Hyperparameters are selected in an inner loop that never sees the held-out sample, and twelve models are evaluated on identical folds. Four findings follow, and they apply to this dataset only. First, Bayesian ridge regression ranks first on all four accuracy metrics (LOO coefficient of determination R² = 0.45, root-mean-square error RMSE = 0.0313 mm/yr), and a small validated multilayer perceptron (MLP) ranks second (R² = 0.42). Second, a fixed 45-weight network with weight decay reaches R² = 0.43, so small regularised models are competitive. Third, a 233-weight PSO-trained network reaches an in-sample R² of 0.70 (0.95 after gradient refinement), and its LOO R² across ten PSO seeds (median −17.9) shows why out-of-sample validation is needed when the parameter count approaches the sample size. Fourth, defect depth (Spearman ρ = 0.89 with corrosion rate) leaks the target and was excluded, which keeps the benchmark clean. The contribution is a reproducible protocol, a benchmark on a small corrosion dataset, and clear guidance on sizing PSO-trained networks to the data.

Cite as:

Okwu Elemchukwu Isaac, & Izabo Abigo. (2026). Particle Swarm Optimization of Neural Networks for Corrosion-Rate Prediction in Crude Oil Production Pipelines: A Nested Validation Study. Recent Trends in Production Engineering, 9(3), 15–32. https://doi.org/10.5281/zenodo.24392331


Full Text:

PDF

Refbacks

  • There are currently no refbacks.