Forecasting soil moisture and pH on edge for shallot cultivation using temporal fusion transformer
This paper presents an edge-enabled forecasting framework for soil moisture and pH in shallot cultivation using a modified Temporal Fusion Transformer (TFT). Instead of the conventional LSTM-based encoder decoder, we incorporate a cross-attention block to better align historical observations with known-future inputs while maintaining interpretability through attention analysis. To reduce high-frequency noise from the IoT sensing network, Savitzky–Golay (SG) filtering is applied during preprocessing. Field data were collected from 300 Brebes shallot plants over 74 days under three soil-moisture regimes (Ideal, Wet, and Dry). Model training and inference were performed on an NVIDIA Jetson Orin edge device to support real-time operation. Performance was evaluated using MAE, RMSE, quantile loss, and prediction-interval coverage, with Elastic Net and weight decay regularization. Ablation results show that cross-attention improves forecasting consistency, reducing MSE/RMSE to 15.51/3.69 compared with 16.93/3.83 when removed, while static enrichment stabilizes variability across sensing points. SG filtering further reduces variance and pinball loss, contributing to more stable edge-side processing. On Jetson Orin, the SG-enabled pipeline achieved 0.12 ms/sample latency and 8,505 samples/s throughput; although latency differences are small, throughput gains are more pronounced relative to the unfiltered setup. The system supports bidirectional 4G telemetry for probabilistic forecasting and web-based monitoring. This study is limited to a single soil type (Inceptisol) and one agro-climatic site; extending validation across different soil textures and regions remains an important next step.
Authors
- Freddy Artadima Silaban (ORCID: https://orcid.org/0000-0001-9741-4098)
- Mathias Prathama (ORCID: https://orcid.org/0000-0002-6729-7553)
- Rini Rosliani (ORCID: https://orcid.org/0000-0003-4086-8296)
- Awang Maharijaya (ORCID: https://orcid.org/0000-0002-7408-5890)
- Dimitri Mahayana
- Endang Ano Gunawan
Institutions
- National Agriculture and Food Research Organization (JP)
- Bandung Institute of Technology (ID)
- Mercu Buana University (ID)
- IPB University (ID)
Publication Details
- Journal
- Smart Agricultural Technology
- Published
- 2026-02-16
- DOI
- https://doi.org/10.1016/j.atech.2026.101884
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00