Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 5 March 2026

A Context-Aware Temporal Convolutional Network for Water Replacement Prediction in Catfish Biofloc Ponds With Imbalanced Event Handling

Yaddarabullah1, Inanpi Hidayati Sumiasih2 & Mutiara Dewi Puspitawati2

Journal of Computer Science, Volume 22, Issue 3, pp. 747–765 · doi.org/10.3844/jcssp.2026.747.765

1,664 accesses937 downloads0 citations (Crossref)Metrics
Cite Check for updates

Abstract

Water replacement is a biologically critical yet under-automated decision in biofloc-based aquaculture systems. Mistimed actions can destabilize microbial ecosystems, elevate fish mortality, and compromise sustainability through excessive water usage. Traditional rule-based heuristics often fail to account for the nonlinear and multiscale dynamics of pond environments. To address this, we propose a Context-Aware Temporal Convolutional Network (CA-TCN), a rare-event classification framework that combines deep temporal modeling with aquaculture-specific logic. The CA-TCN combines a dilated Temporal Convolutional Network with biologically guided SMOTE+Tomek resampling, Focal Loss for imbalance-sensitive learning, ROC-based threshold calibration, and a rule-based override system for decision assurance. Trained on 213 real-world multivariate time-series samples, each consisting of 23 features across 5 sequential timesteps, representing sensor data for water quality (total dissolved solids, pH, dissolved oxygen, electrical conductivity), feeding events, and fish mortality. The proposed model achieved 98.68% accuracy, 1.0000 precision, 0.9737 recall, an F1-score of 0.9867, and a ROC-AUC of 1.0000 on the held-out test set, demonstrating its ability to identify rare yet operationally critical water replacement events with high precision. Ablation studies reveal the cumulative contributions of each component: +2.6% F1-score improvement from context-aware sampling, +1.3% gain from Focal Loss, a 2.56% reduction in false positives via threshold calibration, and a 0.9% recall increase due to rule-based override. Compared to state-of-the-art baselines, CA-TCN outperforms SMOTE only (F1 = 0.9600), SMOTE+ENN (F1 = 0.9610), and Tomek only (F1 = 0.2963), offering up to +69.04% F1-score improvement and eliminating all false negatives, a critical requirement in early warning systems for aquaculture risk mitigation. This work contributes a validated, domain-informed artificial intelligence pipeline that advances sustainable aquaculture management.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Yaddarabullah, ., Sumiasih, I. H. & Puspitawati, M. D. (2026). A Context-Aware Temporal Convolutional Network for Water Replacement Prediction in Catfish Biofloc Ponds With Imbalanced Event Handling. Journal of Computer Science, 22(3), 747–765. https://doi.org/10.3844/jcssp.2026.747.765

Licence
CC BY 4.0
Issue
Volume 22, Issue 3
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
A Context-Aware Temporal Convolutional Network for Water Replacement Prediction in Catfish Biofloc Ponds With Imbalanced Event HandlingJournal of Computer Science · Volume 22, Issue 3 · pp. 747–765 · CC BY 4.0Download