arXiv:2610.39768cs.LGOct 2026

Manuscript Offprint

arXiv:2610.39768

Multi-output LSTM soft sensors for industrial anaerobic co-digestion using LSTM-beta-VAE generative data augmentation

Rohit Murali, Benaissa Dekhici, Tao Chen, Dongda Zhang, Michael Short

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Anaerobic digestion (AD) requires close monitoring of key process variables, including pH, the FOS/TAC ratio (ratio of volatile organic acids to alkaline buffer capacity) and biogas production, to maintain biological stability and prevent process failure. While mechanistic frameworks such as the Anaerobic Digestion Model No. 1 are highly parameterised, computationally expensive, and difficult to calibrate for real-time applications, data-driven Long Short-Term Memory (LSTM) networks offer a potentially more adaptable alternative. However, current data-driven approaches in AD are predominantly limited to single-output architectures that focus solely on production yields, as opposed to simultaneous prediction of vital stability indicators. Furthermore, industrial AD datasets are typically sparse and skewed toward steady-state operations. Baseline evaluations demonstrated this scarcity prevents standard algorithms (Random Forest, XGBoost) and unaugmented LSTMs from recognising the transition to unstable operations, resulting in poor estimation of stability indicators ( R2≤0.26R^{2} \leq 0.26). To overcome these challenges, this study proposes a novel generative data augmentation framework using an LSTM-beta-Variational Autoencoder coupled with a multi-output LSTM (MO-LSTM) soft sensor. By synthesising physically valid sequences of these transitions to unstable operations from one year of full-scale plant data, the method safely populates sparse regions of the feature space. Trained on this augmented dataset, the MO-LSTM achieved robust simultaneous estimation across all targets ( R2=0.87−0.89R^{2} = 0.87-0.89), when using 5,000 synthetic sequences. Locally adaptive conformal prediction bounded estimations within 90% coverage intervals, dynamically signalling increased uncertainty during transient operational shifts. Furthermore, a streamlined model relying exclusively on standard operational data removing offline laboratory feedstock characterisation, marginally improved predictive capabilities ( R2=0.85−0.91R^{2} = 0.85-0.91). This approach mitigates data sparsity, providing a basis for hybrid mechanistic-data-driven modelling and early-warning soft sensors in industrial bioprocesses.

Keywords: Anaerobic Digestion, Variational Autoencoder, Long Short-Term Memory, Bayesian Optimisation

1. 0 Introduction

Anaerobic Digestion (AD) stands as a cornerstone technology in the transition toward a circular bioeconomy, offering a dual solution for organic waste valorisation and renewable energy

Page 1 of 33 production [1]. However, the biological complexity that makes AD versatile also makes it inherently difficult to control. Industrial facilities operate in a dynamic environment characterised by fluctuating feedstock compositions, variable loading rates, and non-linear biological responses [2]. To maintain process stability and maximise biogas production, operators require predictive tools capable of anticipating system behaviour and pre-empting process inhibition [3].

Historically, the Anaerobic Digestion Model No. 1 (ADM1) has been the gold standard for simulating the AD process [4]. It uses a system of differential equations to describe physicochemical equilibria and biochemical kinetics [5]. However, the application of ADM1 at full-scale industrial sites faces significant hurdles. The model typically involves over 26 dynamic state variables and eight algebraic variables, requiring the definition of more than 100 stoichiometric and kinetic parameters [5]. Determining these parameters, such as half-saturation constants, maximum growth rates and biomass decay rates, requires real-time measurement of all model states, which is rarely feasible in practice. Consequently, model calibration typically relies on a limited set of readily available measurements, meaning the resulting parameters often act as empirical fitting factors rather than retaining their strict physical meaning [5]. Furthermore, ADM1 requires inputs to be fractionated into carbohydrates, proteins, and lipids where in real-world plants processing heterogeneous feedstock composition fluctuates daily, making continuous, accurate input characterisation not possible with low uncertainty [6]. Consequently, mechanistic models such as the ADM1 are often too computationally expensive and stiff to adapt to the high-frequency noise and unmeasured disturbances characteristic of industrial sites [7].

This rigidity and calibration burden have driven a shift toward data-driven modelling, to learn system behaviour directly from historical plant data without requiring explicit knowledge of underlying biological constants [8]. Machine Learning (ML) algorithms have gained significant attention in recent studies focusing on AD [3]. Compared to physics-based models, ML-based approaches offer several advantages, including easy implementation through open-source tools, high generalisability, uncertainty quantification, and fast execution times, making them particularly suitable for practical applications [9]. Research has recognised the benefits of ML methods and has applied them to various aspects of AD, including prediction, optimisation, and the identification of key parameters [10]. ML models can map inputs to outputs without requiring an understanding of the underlying physical processes [11].

Data-driven soft sensing is attractive because it learns directly from historical and real-time plant data, capturing nonlinearities that are difficult to represent mechanistically. Algorithms such as support vector machine (SVM), artificial neural networks (ANN) and random forest (RF) have been applied in AD applications for predictions showing promising results [3,9]. While these models perform well on steady-state data, they struggle to represent dynamic transients because they treat each observation as independent [12,13]. Multi-task Gaussian processes have been applied to AD [14] but [14] performed well only when the training and testing conditions were similar. Among ANN models, Long short-term memory (LSTM) is a deep learning algorithm that can retain valuable information from the past in its memory [11]. An LSTM network is a form of recurrent neural network (RNN), which was developed to solve

Page 2 of 33 the vanishing gradient problem of RNNs by retaining or discarding the data over long sequences. LSTMs are well suited to retaining long-term dependencies in sequential data and have been shown to improve the accuracy of methane production predictions [13,15,16].

Despite the established success of LSTMs in capturing temporal dependencies, a fundamental limitation persists within the current literature. Existing research is heavily dominated by Single-Output architectures, focusing almost exclusively on predicting methane or biogas production [11,13,17]. While maximising energy recovery is an economic imperative, this single-dimensional focus neglects the multivariate nature of process stability. A robust system requires the simultaneous prediction of production outputs alongside critical stability indicators, which offer early warnings of instability, to fully capture the coupled dynamics between loading rates and the risk of inhibition [18]. To the best of the authors' knowledge, however, the joint LSTM estimation of production and stability indicators has not previously been reported for full-scale AD.

An important barrier to developing these robust Multi-Output models is the small data problem in AD. Industrial AD datasets are typically long but narrow and contain years of high-frequency Supervisory Control and Data Acquisition (SCADA) data for basic parameters (temperature, pH and biogas flow) along with feedstock quantities but have low sampling frequencies for the critical stability indicators which are obtained via offline laboratory analysis due to the high capital cost of online sensors [19]. This mismatch poses a severe challenge for standard ML approaches [20]. Furthermore, historical data tend to consist almost entirely of steady-state operations as operators actively avoid process failures. ML algorithms, however, require large and diverse datasets to learn the complex boundaries between stable and unstable operating regimes. In the absence of sufficient examples of process deviations, models are prone to overfitting and fail to generalise beyond the limited training data, instead capturing site-specific noise rather than the underlying biological dynamics [21]. To address these limitations, there has been significant interest in soft sensors as a cost-effective alternative, where ML models representing the system can help infer difficult-to-measure variables from easy-to-measure online data [22].

References (35)