International Journal of Electrical and Computer Engineering
Vol 16, No 5: October 2026

An artificial intelligence-based stacking ensemble framework for smart irrigation pump control using IoT sensor data

Sarra Gourari (Tahri Mohammed University of Bechar)
Wafa Difallah (Tahri Mohamed University)
Belkacem Draoui (Tahri Mohammed University of Bechar)



Article Info

Publish Date
01 Oct 2026

Abstract

Efficient water management is essential for sustainable agricultural production, particularly in arid and semi-arid regions where water resources are limited. Machine-learning-based irrigation systems can support automated pump-operation decisions using environmental and soil-related sensor data. However, most previous studies have focused on individual machine-learning models, while the application of stacked ensembles to binary irrigation pump-status prediction remains relatively limited. This study proposes a stacking-based framework for predicting irrigation pump operation in an ON/OFF classification setting. The framework uses environmental and soil-related variables, including soil moisture, temperature, humidity, and a numerical time-related feature. Random forest (RF), extreme gradient boosting (XGBoost), and multilayer perceptron models were trained as base learners, and their out-of-fold (OOF) predictions were combined using a logistic-regression meta-learner. The models were evaluated on a held-out test set using accuracy, precision, recall, specificity, and F1-score. The individual models achieved accuracies ranging from 97.34% to 99.95%, with XGBoost providing the best individual performance. The proposed stacking ensemble achieved 99.97% accuracy, 99.94% precision, 100.00% recall, 99.94% specificity, and a 99.97% F1-score. Compared with XGBoost, the ensemble further refined predictive performance, improving accuracy by 0.02 percentage points and F1-score by 0.01 percentage points while achieving complete elimination of false negatives (100.00% recall). These results demonstrate the potential of stacked ensemble learning to improve binary pump-operation prediction and support data-driven irrigation management in water-limited environments.

Copyrights © 2026






Journal Info

Abbrev

IJECE

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering

Description

International Journal of Electrical and Computer Engineering (IJECE, ISSN: 2088-8708, a SCOPUS indexed Journal, SNIP: 1.001; SJR: 0.296; CiteScore: 0.99; SJR & CiteScore Q2 on both of the Electrical & Electronics Engineering, and Computer Science) is the official publication of the Institute of ...