Biogas Yield Forecasting Using Sequence-to-Sequence LSTM With Error-Based Anomaly Detection and Post Hoc Usability
The biogas production in anaerobic digesters occurs due to highly dynamic and nonlinear relationships between the properties of input substrate, environment parameters, and operational conditions of reactors. In this research, a multi-dimensional sequence-to-sequence LSTM model is proposed for predicting daily outputs of biogas by means of historical data recorded at operational level of anaerobic reactors presented in the attached database. The process of data preprocessing includes merging raw data records into daily timeseries, calculating the total feedstock as the sum of masses of all feedstock inputs, and representing five predictor variables such as ambient temperature, digester temperature, carbon-to-nitrogen ratio, total feedstock, and biogas production. After MinMax feature scaling, samples of a sequence-to-sequence learning are created with a 14-day look-back and 7-day prediction horizon to result in 5,459 timeseries of which 4,367 records are taken for training and 1,092 timeseries for evaluation. The sequence prediction network consists of an encoder LSTM with 128 units, RepeatVector component, and decoder LSTM with 64 units that use 0.2 dropout probability in recurrent layers. Training is conducted for up to 50 epochs, with the Adam optimizer, mean squared error as the loss function, mean absolute error metrics, and early stopping mechanism with patience equal to 10. The notebook reports a final visible training loss of 0.0129, validation loss of 0.0121, and validation mean absolute error of 0.0842 in normalized scale. On the test workflow, the mean absolute prediction error after inverse transformation is 18.31 m3, while an anomaly threshold of 48.34 m3 identifies 55 potential abnormal productio n days out of 1,092 evaluated days. Additionally, a SHAP-based interpretation stage is introduced to estimate the influence of features for the first forecasted day.
- Link
- https://zenodo.org/records/23388967
- Found by
- Zenodo
- Authors
- Banday, Farhan Tariq, Kandasamy, Janaki
- Categories
- evaluation
- Published
- 2026-05-30
- Last seen by the radar
- 2026-10-15
- Downloads
- 0
- Views
- 0
- Radar score
- 34.61 / 100 (how it is scored)
- Why it scored so
- Matched: evaluat; Recency discount: updated event ×0.5; Primary record: Zenodo
- Related links
- https://doi.org/10.58257/IJPREMS53619