论文信息
论文解读
AI 辅助整理- 方法
- 使用IoT传感器和边缘设备,结合六种监督学习模型(如DT、RF)进行实时灌溉管理
- 发现
- 决策树和随机森林表现最佳,准确率93%,R²为0.98,优于其他模型。
- 机会点
- 可探索混合模型和扩展田间试验,提高系统在不同农业环境中的适应性。
论文摘要
Agriculture is responsible for about 70% of freshwater withdrawals, and water scarcity and inefficient methods of water use remain threats to food security. The traditional way of irrigation causes more water loss and requires innovative solutions to optimize water distribution. This research provides an overview of an intelligent irrigation system, which combines the Internet of Things (IoT), machine learning (ML), and edge computing to optimize water usage and improve crop production. The system uses IoT sensors and edge devices to collect data on the environment and estimate the need for irrigation in real-time. It combines machine learning with system components like the Soil Monitoring Unit (SMU) and Water Management Unit (WMU) to provide scalable, real-time and efficient irrigation management. It is deployed locally at the edge, without the need for cloud computing, has the potential to integrate multi-sensor fusion for storm detection, and offers multiple ML models in a modular, low cost system that can be adapted to various agricultural settings. To optimize irrigation schedules, six supervised machine-learning models were used, such as Decision Tree (DT), Random Forest (RF), Support Vector Machine (SVM), K-Nearest Neighbors (KNN), Stochastic Gradient Descent (SGD) and Multi-Layer Perceptron (MLP). DT and RF had the highest classification accuracy of 93% and R 2 regression scores of 0.98 respectively, indicating high prediction reliability. However, Support Vector Machine (SVM) did not do that well, with an accuracy percentage of 58% and an R 2 score of 0.18. Although more complex, RF’s accuracy is a great option for larger applications and DT balances efficiency and scalability. The findings corroborate the utility of water efficient irrigation system and its prospect in augmenting productivity of agriculture. Future work will include expanding the field trials and developing hybrid models to further improve adaptability of the system in different agricultural environments. The findings of this research can offer understanding for sustainable farming practices, that are essential when it comes to water scarcity and food security in the global context.
全文
Frontiers in Sustainable Food SystemsFrontiers in Sustainable Food Systems 01 frontiersin.org
TYPE Original Research
PUBLISHED 25 August 2026
DOI 10.3389/fsufs.2026.1827416
OPEN ACCESS
EDITED BY
Faissal Aziz,
Cadi Ayyad University, Morocco
REVIEWED BY
Parul Taneja,
Indian Institute of Technology Guwahati,
India
E. G. Anoop,
A P J Abdul Kalam Technological
University, India
CORRESPONDENCE
Mohammed Sulaiman Mustafa
moh.kirkuk@gmail.com
RECEIVED 10 March 2026
REVISED 15 July 2026
ACCEPTED 28 July 2026
PUBLISHED 25 August 2026
CITATION
Mustafa MS and Kutucu H (2026)
Enhancing water management with
intelligent irrigation systems using edge
computing, machine learning and IoT.
Front. Sustain. Food Syst. 10:1827416.
doi: 10.3389/fsufs.2026.1827416
COPYRIGHT
© 2026 Mustafa and Kutucu. This is an
open-access article distributed under
the terms of the Creative Commons
Attribution License (CC BY). The use,
distribution or reproduction in other
forums is permitted, provided the
original author(s) and the copyright
owner(s) are credited and that the
original publication in this journal is
cited, in accordance with accepted
academic practice. No use, distribution
or reproduction is permitted which does
not comply with these terms.
Enhancing water management
with intelligent irrigation systems
using edge computing, machine
learning and IoT
Mohammed Sulaiman Mustafa 1 and Hakan Kutucu 2
1Department of Computer Engineering, Karabük University, Karabük, Türkiye, 2Department of Software
Engineering, Karabük University, Karabük, Türkiye
Agriculture is responsible for about 70% of freshwater withdrawals, and water
scarcity and inefficient methods of water use remain threats to food security.
The traditional way of irrigation causes more water loss and requires innovative
solutions to optimize water distribution. This research provides an overview of an
intelligent irrigation system, which combines the Internet of Things (IoT), machine
learning (ML), and edge computing to optimize water usage and improve crop
production. The system uses IoT sensors and edge devices to collect data on
the environment and estimate the need for irrigation in real-time. It combines
machine learning with system components like the Soil Monitoring Unit (SMU)
and Water Management Unit (WMU) to provide scalable, real-time and efficient
irrigation management. It is deployed locally at the edge, without the need for
cloud computing, has the potential to integrate multi-sensor fusion for storm
detection, and offers multiple ML models in a modular, low cost system that
can be adapted to various agricultural settings. To optimize irrigation schedules,
six supervised machine-learning models were used, such as Decision Tree (DT),
Random Forest (RF), Support Vector Machine (SVM), K-Nearest Neighbors (KNN),
Stochastic Gradient Descent (SGD) and Multi-Layer Perceptron (MLP). DT and
RF had the highest classification accuracy of 93% and R2 regression scores of
0.98 respectively, indicating high prediction reliability. However, Support Vector
Machine (SVM) did not do that well, with an accuracy percentage of 58% and
an R2 score of 0.18. Although more complex, RF’s accuracy is a great option
for larger applications and DT balances efficiency and scalability. The findings
corroborate the utility of water efficient irrigation system and its prospect in
augmenting productivity of agriculture. Future work will include expanding the
field trials and developing hybrid models to further improve adaptability of the
system in different agricultural environments. The findings of this research can
offer understanding for sustainable farming practices, that are essential when it
comes to water scarcity and food security in the global context.
KEYWORDS
edge computing, intelligent water management, internet of things (IoT), machine
learning (ML), sensors
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 02 frontiersin.org
1 Introduction
Water scarcity and inadequate agricultural practices have been
one of the major challenges in attaining food security for the world
(Thakur and Chakraborty, 2020). With the surge in population the
demand for agricultural commodities will increase to cater to the
needs of an increasing population, which, naturally, puts pressure on
water resources. The Food and Agriculture Organization (FAO) states
that around 70 percent of all the freshwater withdrawals in the world
can be attributed to agricultural activities (Pernet and Ribi Forclaz,
2019). Water loss and soil erosion are some of the problems in tradi-
tional irrigation methods such as flood and surface irrigation (Zia et
al., 2021). The proposed smart irrigation system is modular and scal-
able design that will optimize the use of SMU and WMU, and promote
the use of sophisticated communication modalities to overcome the
inefficiencies of the current irrigation methods. This impetus has
resulted in the creation of new solutions, such as smart irrigation sys-
tems, which have the ability to leverage the potential of the new tech-
nologies – Internet of Things (IoT), machine learning (ML) and edge
computing – to optimize water management and enhance yields (Tace
et al., 2022).
The smart irrigation technologies that were developed in the past
few years in the agriculture sector especially in this domain have
shown beneficial impacts towards lowering water consumption and
improving crop production (Bwambale et al., 2022). Current studies
have pointed to the use of Internet of Things (IoT) devices and edge
computing theory, therefore, monitoring and controlling the irrigation
systems in real time (Munir et al., 2021). Moreover, machine-learning
models can be used to further derive adaptive irrigation calendars,
based on real-time data analytics, which can help ensure high water
use efficiency and agronomic yield increases. These attempts are then
assisted by the machine-learning model that estimates the crop water
requirements by taking into account the environmental conditions
(Elbasi et al., 2023). The literature shows how the locality of the data
can lead to improvements in latency and/or to faster decision making
processes (O’grady et al., 2019; Wang et al., 2024). Although the tech-
nologies exist, the implementation of these smart irrigation technolo-
gies remains limited, especially in the developing world, due to
challenges in technology and cost (Serote et al., 2021).
The irrigation system with the help of the AI system has its ben-
efits, but not all farmers are utilizing it yet; they are still using tradi-
tional irrigation systems that are not intelligent and this leads the
farmer to water resource waste due to no guarantee in crop production
(Tang et al., 2024; Sharifnasab et al., 2023). This is further deteriorated
by the inability to find affordable and scalable smart irrigation solu-
tions, especially in areas that are likely to suffer water shortages (Dogo
et al., 2019). The available solutions typically are based on the use of
the Internet and technical skills that most farmers lack. The suggested
intelligent irrigation system fills these gaps with the incorporation of
edge computing to process local data and use modular components,
including the Signal Booster Unit (SBU), to establish a reliable com-
munication system despite a limited number of resources. Thus, in this
study, the gaps were aimed at achieving cost-effective and easy devel-
opment of a smart irrigation system based on edge computing and
Internet of Things (IoT) technology for resource constrained farmers
(Ayoade et al., 2023).
These are old studies which have demonstrated that there is a large
potential of sustainable water management (Aivazidou et al., 2021)
and of changing the agricultural practices. The implementation of a
smart irrigation system will allow farmers to save a lot of water, save
money on their farm operations and also increase the productivity of
their crops (Munir et al., 2021; Cordeiro et al., 2022). Moreover, a
decentralized irrigation management system is also proposed with the
system where decisions are taken at local and field level (Thakur et al.,
2021). This not only deals with the farmers’ excessive reliance on less
reliable internet transport but also gives them some beneficial insights
to draw from in their decision-making process. Therefore, the study
can be linked with the broader World Plans which are to promote
sustainable farming and mitigating impact of climate change.
The current research aims at designing a modular irrigation
system that can easily be integrated with the existing irrigation system,
thus reducing the number of disruptions as well as maximizing cost
efficiency (Guillén et al., 2021 ). Further, the project is intended to
develop machine learning models, which can predict the irrigation
times, based on real-time sensor data to avoid delivering water at the
wrong time and location. The smart watering system is also subjected
to a very demanding test to assess the water saving and crop produc-
tion improvements. Another important part of the research is to make
the system easy to use, affordable and scalable so that it can be used
by the farmers of the developing countries; this one should be flexible
to different agriculture environments. The solution of these will be
addressed by the study and it will help in developing efficient, sustain-
able and technologically advanced agricultural practices that will be
used anywhere in the world.
Unlike various currently available irrigation solutions for IoT that
rely on cloud computing for monitoring or stand-alone automation
solutions, the proposed solution includes a deployable architecture
combining modular deployment of edge computing, real-time envi-
ronmental sensing, and multi-modal machine learning analysis. A
lightweight embedded controller system is used for local irrigation
decision making to reduce latency in the communication and improve
system operation reliability in low connectivity system
environments.
In addition, the proposed plan is practical, and it is based on dif-
ferent agricultural environments in Iraq, and considering the existing
irrigation infrastructure. The modular design minimizes deployments
costs and allows for scalable expansion of the farm size without sig-
nificant changes in infrastructure.
One of the special characteristics of the proposed work will be the
comparison of the performance of a number of supervised machine
learning models using the same environmental and operational
parameters. The comparison is not only based on prediction accuracy
but also on the computational efficiency, deploy ability and real-time
response of the models, which is more practically related to the appli-
cability of the models for intelligent irrigation systems.
Further, the proposed system was validated by installing the
experimental prototypes in the real conditions with the environmental
sensing devices under the dynamic agricultural conditions in Kirkuk,
Iraq. The framework also includes multi-sensor storm detection to
improve the safety of irrigation and adaptive response to changing
weather.
There are four major contributions to this work with respect to
other smart irrigation studies. First, the system being proposed is
based on a lightweight and efficient modular edge computing infra-
structure that can process data locally, without relying on cloud com-
puting facilities, and thus is suitable for resource-poor environments.
Second, it enables integration and comparison of multiple machine-
learning models (decision trees, random forest, support vector
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 03 frontiersin.org
machine, K-Nearest Neighbors, stochastic gradient descent and mul-
tilayer perceptron), plus the inclusion of an intelligent decision
making core, for adaptive irrigation scheduling. Thirdly, the proposed
architecture is modular, suitable for easy deployment of the number
of units needed according to field conditions and farmer require -
ments. Fourth, the system provides real-time-weather-warning and
storm-detection capabilities, further elevating the responsiveness of
irrigation and better reliability. These contributions will address the
current gaps that are being found in the different existing smart irriga-
tion systems, including technical viability, scalability and practical use.
This paper follows the following structure: Section 1 offers a back-
ground to the issues related to water deficits in agriculture and the
need to have smart irrigation systems that will be run by Internet of
Things (IoT), machine learning, and edge computing technologies.
The survey of literature is unfolded in detail in section 2 which
describes the recent developments in precision agriculture, smart irri-
gation technologies, machine learning techniques in agriculture
domain using IoT. In Section 3 a proposed methodology is presented
and consists of designing the irrigation system with intelligence,
deployment of the sensors, data collection and use of machine learn-
ing models. Section 4 shares the results of the performance of the
system and compares the accuracy of the different machine-learning
models in optimization of the water distribution. The findings are pre-
sented in Section 5 which discuss the practical implications, limita-
tions and scalability of the system. The summary of the main
contributions is presented in section 6, as well as some ideas for future
research.
2 Literature review
Internet of Things (IoT), machine learning (ML) and Wireless
Sensor Networks (WSN) have transformed the traditional agricul -
tural practice to overcome the challenges of the population growth
and rising food demand. The adoption of IoT based solutions has
played a significant role in the implementation of precision agricul-
ture as it enables the gathering of real time data and automates the
decision making process. Almalki et al. (2021) presented a compre-
hensive framework of the integration of IoT and unmanned aerial
vehicles (UAVs) in monitoring environmental parameters, which
will help to achieve precision agriculture in the fields of telemetry
and real-time data collection, providing better natural resources
conservation. Similarly, scalability and flexibility of data-driven
farming using LoRaW AN was presented by Codeluppi et al. (2020)
in the context of collecting and monitoring the environment in large
farming areas, with a proposed modular architecture for IoT
(LoRaFarM). Improvement in communication and resource utiliza-
tion was done by Dhruva et al. (2021) who presented a framework
of IoT and WSN, focussed on data aggregation, cluster head deter -
mination and energy efficiency. In this context, Castañeda-Miranda
and Castaño-Meneses (2020) proposed an irrigation management
system that is intelligent, but based on IoT, a weather station, artifi-
cial neural networks and fuzzy expert control. They predict the tem-
perature in the greenhouses and the temperature of their crops
inside their fields and pump water when the temperature is set to go
below the desired temperature. In an AI-driven world, machine
learning has emerged as a promising solution to bolster the security
and dependability of irrigation systems in the IoT era, as discussed
by Raghuvanshi et al. (2022) . A low cost precision farming system
with Arduino devices using the IoT was constructed by Gaikwad et
al. (2021) to enable the advanced farming technique to the small
farmers. Also, (Rezk et al., 2021) presented that the productivity and
drought prediction of crops in smart farming system could be
achieved by the development of IoT based hybrid WPART (wrapper
feature selection and PART classification) approach. They tested
their approach on five datasets, and obtained high accuracy in
drought-classification and crop-productivity prediction tasks.
Moreover, (Phasinam et al., 2022 ) have introduced a cloud-based
smart irrigation system, which is based on soil moisture and humid-
ity with the help of IoT sensors. Acquired data is transferred in the
cloud where the data is processed using machine learning for accu -
rate irrigation recommendations to farmers. The system will be
designed to help reduce the inefficiencies in water use associated
with agriculture, representing over 70% of the world’s freshwater
consumption. Overall, these studies underscore the transformative
impact of IoT, ML, and cloud technologies on improving the effi -
ciency, sustainability, and resilience of agriculture, while solving key
challenges like resource management, climate change, and food
security. The methodology proposed expands on this by adding
other modular units: Soil Monitoring Unit (SMU) and Water
Management Unit (WMU) and other advanced machine learning
workflows to allow for precise and adaptive irrigation management
for a range of agricultural environments. However, despite all the
different facets of smart farming having been shown to be very
advanced, there is still a lack of an irrigation system that can be
designed, implemented and is both low-cost and scalable to the spe-
cific resource constrained environment using IoT technology.
The current research attempted to fill the gap between the expen-
sive technological propositions and the possible, economical solutions
to the issue and consequently increase sustained agricultural innova-
tion. In this connection, Table 1 summarizes the main characteristics
and performance indices of antecedent research in comparison with
the suggested system. Secondly, Table 1 summarizes the contributions,
strengths, and weaknesses of current studies, which allows grasping
the nuances of how the given work will be based on them and solve
gaps in the literature in the most optimal way.
General considerations provide the importance of both cloud and
edge computing in controlling the data that is generated by sensors,
unmanned aerial vehicles, and intelligent devices in current agricul-
ture. Cloud computing although based on the availability of the inter-
net is a subject of latency, it provides the storage of data centrally and
a complex analytical tool. On the other hand, edge computing pro-
vides convenient decision-making and real-time responses through
the processing of data at the farm. Edge computing is essential when
a temporal nature of the task is required, such as pest detectors and
irrigation regulators. Therefore, edge computing provides high-quality
performance compared to cloud computing in case of responsive and
autonomous agricultural activities.
Moreover, the combination of regulated machine learning and
edge computing will benefit the agricultural systems significantly.
Edge devices are capable of detecting patterns instantaneously in
labeled datasets as a result of local data processing. This feature enables
quick decision making to handle processes like identification of crop-
diseases and irrigation control. As a result, farmers will be in a posi-
tion to get timely information regardless of persistent connectivity of
the clouds thus creating smarter, faster and effective field-level agri-
cultural control.
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 04 frontiersin.org
TABLE 1 Comparative analysis of related works in smart irrigation systems (NR: not reported).
No. Study
(author)
Technology Focus area Key
advantages
IoT Edge
computing
ML
models
Real
deployment
Accuracy R2 Storm
detection
Modular
design
1 Castañeda-
Miranda and
Castaño-
Meneses
(2020)
IoT, artificial neural
networks
Anti-frost
irrigation
management in
greenhouses
and cropland
Real-time frost
monitoring/
automated anti-frost
irrigation control/
solar-powered
operation
Ye s NR ANN NR 90.23%–95.22% NR Ye s No
2 Codeluppi et
al. (2020)
LoRaW AN-based
IoT
Modular
architecture for
large farms
Scalability/low
power consumption
Ye s NR NR NR NR NR No Ye s
3 Almalki et al.
(2021)
IoT and UAVs Precision
agriculture
Real-time
environmental
monitoring/
resource
conservation
Ye s NR NR NR NR NR No No
4 Rezk et al.
(2021)
IoT and machine
learning (wrapper
feature selection +
PART)
Crop
productivity
and drought
prediction
High prediction
accuracy/robust
decision support/
proactive drought
management
Ye s NR PART/
wrapper
feature
selection
NR 98.15% NR No No
5 Gaikwad et al.
(2021)
IoT and arduino Low-cost
precision
farming
Cost-effective/
accessible for small
farmers
Ye s No NR Ye s NR NR No No
6 Dhruva et al.
(2021)
IoT, WSN Data
aggregation and
energy
efficiency
Improved
communication
efficiency
Ye s No NR NR NR NR No No
7 Phasinam et al.
(2022)
IoT and cloud
computing
Automated
irrigation
Reduced water
consumption/cloud-
based automation
Ye s No NR Ye s NR NR No No
8 Proposed
System
IoT, ML (DT, RF ,
KNN), edge
computing
Intelligent
irrigation
systems
Lightweight
modular design;
edge processing;
storm detection;
developing-nation
focus
Ye s Ye s Multiple ML
Models
Ye s 93% 0.98 Ye s Ye s
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 05 frontiersin.org
3 Method
The smart irrigation system studied is a system that combines
edge computing and Internet of Things (IoT) solutions to encourage
water saving, reduce wastage and enhance agricultural production.
The system is based on decentralized data processing with edge com-
puting to analyze data near the source and hence reduce latency and
guarantee real-time irrigation schedules. Machine learning (ML)
models are very important since they can predict irrigation require-
ments using the environmental parameters measured and delivered
the water required by the crops without wasting precious resources.
The proposed system has four features that are unique of the many
smart irrigation systems available. The proposed architecture does not
need continuous Internet connection as there is no dependence on
cloud computing, all data is processed at the edge using cost effective
microcontrollers like Arduino Uno and Mega. Second, the system
integrates several ML models (decision tree, random forest, K-Nearest
Neighbors, support vector machine, stochastic gradient descent, and
multilayer perceptron) into a single graphical interface to enable easy
comparison and selection among the models based on the weights of
accuracy and speed. Thirdly, due to its modularity, only the modules
required by the farmer are deployed since it consists of SMU, WMU,
SBU, DLU and CCU. This will reduce the costs and complexity.
Fourthly, the system conducts real-time detection of storms, which is
not available in most low-cost irrigation systems (refer to Figure 1).
This blend of contributions results in a Low-cost, scalable, Light-
weight solution, in specific resource constrained agricultural settings.
There are four major components of the system architecture:
1 Data acquisition layer: a network of sensors which are used to
take measurements of the environment.
2 Edge processing layer: processing of real-time data and initial
data analysis at the edge.
3 Predictive irrigation scheduling: machine learning and predic-
tion layer.
4 Irrigation control and automation: watering control and
automation.
3.1 System architecture and components
3.1.1 Data acquisition layer
In the infrastructure of the provided system, there is a network of
sensors with Internet of Things (IoT) that are deployed in the field to
gather important data about the environment. The parameters that are
constantly monitored by this layer include:
• The output range of soil moisture sensors using a capacitive sens-
ing mechanism is such that the sensor value (SM%) has a range of
0–100 percent, which is equated to a gradation of dry to wet soil.
The instrument records the volume of water in different levels and
the irrigation systems can be automatically activated when water
levels fall below the required moistures.
• The temperature and humidity sensors based on DHT22 are able
to provide the temperature from −40 °C to +80 °C and relative
humidity from 0 to 100 percent (from dry to wet weather). These
are microclimatic sensors which record microclimatic data, which
is then relayed to control the irrigation schedule in conjunction
with the weather.
• Besides there is a BMP180 sensor for measuring atmospheric
pressure in addition. It is one of the parameters involved in envi-
ronmental monitoring to identify a quick change in the environ-
ment which would aid the storm-warning aspect of the proposed
irrigation system.
• The air-quality sensor MQ-135 gives an air-quality index (AQ)
ranging from 0 to 100, with 0 signifying a poor air-quality and 100
a good air-quality. The equipment measures the content of gas-
eous substances, thus giving an indicator of the air pollution or
the quality of air in general.
• Light sensors can include light dependent resistors (LDRs) with a
light intensity index (LT%) ranging from 0 to 100, representing
the light levels of the in-between environments. These sensors are
used to determine the amount of sunlight exposure, which can be
used to help schedule irrigation time to correspond with photo-
synthetic time.
• Low-energy communication stacks such as the LoRaW AN, Zigbee
or NB-IoT are used to send the sensor value to a gateway node
wirelessly. The protocols are selected because of their long distance
and low power consumption, which are important in their appli-
cations in remote agricultural areas. Additionally, the data collec-
tion period can also be set as a parameter and can be varied
depending on the type of crops and environmental conditions,
which allows for the most efficient use of resources.
The data that have been used in this study are collected by the
field mounted Wireless Sensor Network (WSN) sensors in a local
farm in Kirkuk city, Iraq. There were 13,060 observations made in
13,060 min. The data were collected at 6-s intervals during each
minute and the data for each row in the data set is the average of 10
readings for that minute. The 7 explanatory variables were (X1, X2,
X3, X4, X5, X6 and X7) and the 2 response variables were soil-mois-
ture content for classification (Y1), soil-moisture content for regres-
sion (Y2). Summary of the features included in the dataset is
provided in Table 2.
The data set was gathered in an actual field of agriculture in
Kirkuk city, Iraq, in a dedicated Data Logger Unit, which was specially
designed for continuous measuring the environment in practical field
conditions. The data acquisition workflow was completed locally with-
out needing Internet connection for sensing or storing the data. This
strategy allowed data collection to be continuous, even when networks
were unavailable, and minimized the risk of data loss due to commu-
nication during long-term monitoring.
The Data Logger Unit was designed on the Arduino Mega plat-
form because of its large number of commercially available environ-
mental sensors, available locally, and its wide range of use.
Additionally, the Arduino Mega has more input and output pins than
most other microcontroller platforms, enabling more than one sens-
ing device to be integrated into a single monitoring unit. Data from
the environmental observations was directly stored in a Micro SD
storage module in standard CSV format, to facilitate efficient long-
term data archiving and seamless integration with the subsequent data
analysis and machine learning processes.
A real time clock module was added to the monitoring platform
to ensure the correct temporal synchronization of the collected data
over the whole period of measurement. It maintained and retained
date and time information for every observation recorded, even
during periods of temporary power loss with its own back-up battery
system. This guaranteed the correct chronological ordering of the data
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 06 frontiersin.org
sets, enabling reliable knowledge of the environmental conditions,
which would facilitate chronological analysis. The environmental
parameters and target variables measured by this infrastructure are
listed in Table 2.
In this study, the environmental data collected was mainly related
to the atmosphere and surface, such as soil moisture, ambient tem-
perature, humidity, atmospheric pressure, air quality, and light inten-
sity. Not all the soil-temperature sensing was dedicated underground,
but rather was distributed throughout the irrigation system, and for
this reason, the soil temperature was not considered an independent
sensing feature for the proposed framework, as its main aim was to
assess the environmental behavior of the irrigation system via a light-
weight sensing architecture that can be deployed in a low-cost
environment.
Under specific growing conditions, soil temperature may affect
the evaporation of moisture, water retention properties, and thermal
conductivity. Including more sensing equipment beneath the ground,
however, can also make deployment more complex and require more
calibration time, maintenance, and overall system cost, especially in
resource-limited agricultural applications. This led to the selection of
the sensing parameters that were appropriate for the pilot-scale imple-
mentation while maximizing predictive capabilities, ease of deploy-
ment, and feasibility.
The ambient temperature recorded in the present framework was
not the underground soil temperature but the ambient temperature
which was obtained using the deployed DHT22 environmental sens-
ing module. Future expansions of the framework could include dedi-
cated soil-temperature sensors to explore potential improvements of
predictive accuracy, environmental modeling and long-term irrigation
analysis under varying conditions of agriculture.
The data used for this study has been captured in a real agricul-
tural environment in the Kirkuk Governorate, Iraq, and consists of
about 13,000 observations of the environment captured by continuous
monitoring of the sensors under different weather conditions. The
main goal of the present work was not to create a universal predictive
model applicable to all climatic regions but to build and test localized
intelligent irrigation model which is suitable for agricultural condi-
tions in Iraq.
The gathered data consist of soil moisture, soil temperature, rela-
tive humidity, air pressure, air quality and light intensity data taken in
practical field conditions. The continuously varying environmental
patterns offered enough change to create a subject for machine learn-
ing evaluation and irrigation decision analysis, and enough stability
and reliability to ensure the models behave the same for the intended
deployment environment.
The experiments were carried out on bare soil to minimize the
influence of the crop and to investigate the influence of the environ-
ment on soil behavior. Furthermore, a fixed agricultural soil type was
used in this experiment and kept a constant condition throughout the
experiment, which is commonly used in Kirkuk and the surrounding
Iraqi areas.
While additional deployment across a wider range of climate, soil
type and crop data would further enhance the generalizability on a
broader scale, this was not within the scope of the pilot-scale deploy-
ment. Further investigation of the adaptability of the system to differ-
ent agricultural environments will be conducted through
multi-location data collection, crop-specific evaluation and cross-
climate validation in the future.
Pre-processing of data was performed by removing the outliers
and linear interpolation of the missing values. The latter normalization
of features was performed using minimax scaling and then the model
training was started. The data were split by random sampling, with a
fixed random state (RS = 42), into a training set (80%) and a testing
set (20%) so as to achieve the needs of reproducibility.
The sample raw data is given as a csv file and is shown in Figure 2,
it contains the first 24 sensor values. The records are numbered
according to the values of the corresponding timestamps, the columns
are the seven input features and the target features. This sample shows
the general shape and magnitude of values of the obtained informa-
tion prior to preprocessing.
This study is based on 13,063 observations recorded in the moni-
toring system deployed during this study. Every rating includes seven
environmental input features (X1–X7), and two target variables. The
FIGURE 1
Four-layer architecture of the intelligent irrigation system.
TABLE 2 Description of dataset features and target variables.
Feature Sensor/
module
Description Range/
unit
( )doy x1 RTC-DS1302
Day of the year
calculated from date
1–366
( )mod x2 RTC-DS1302
Minute of the
day = (hour ×
60) + minute
0–1,439
( )tmp x3 DHT22
Ambient
temperature
−40 to +80 °C
( )hum x4 DHT22 Relative humidity 0–100%
( )prs x5 BMP180
Atmospheric
pressure
300–1,100 hPa
( )qua x6 MQ135 Air quality index
0–100% (bad
to clear)
( )lgt x7 LDR Light intensity
0–100% (dim
to light)
( )s100 y1
Capacitive soil
moisture
sensor
Soil moisture
(regression target)
0–100% (dry
to wet)
( )s10 y2
Capacitive soil
moisture
sensor
Soil moisture
(classification target)
1–5 (dry+ to
wet+)
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 07 frontiersin.org
first target variable was used for classification problems and the
second target variable was used for regression analysis. In order to
prevent interfering among learning objectives, we conducted separate
classification and regression experiments, training and testing a sepa-
rate model for each target variable.
All values recorded in the data set were positive and in the form
of whole numbers and not fractional measurements. The dataset was
structured and packaged in the standard CSV format to be portable,
compatible and easily integrated with machine learning and data
analysis tools. This also facilitated the pre-processing, validation, and
experimental repeatability during the study.
To give further clarity on the structure of the dataset, examples of
representative sections from the dataset are shown in Figure 2. The left
side of the figure shows the initial part of the data set, and the right
side shows the last part of the data set that was recorded. This visual-
ization directly shows the organization of the dataset, the storage
format, and the structure of data records that was used in the entire
experimental evaluation procedure, so that the readers can have a
better understanding of how the dataset was organized and stored
before applying the machine learning models.
During field operation, the Data Logger Unit directly recorded all
the sensor measurements in CSV format. Environmental data were
taken straight from the measurement and not filtered, smoothed,
interpolated, normalized, or edited in any way. This guaranteed that
the data remained true to the actual sensor readings obtained in an
actual agricultural setting.
Limited pre-processing was performed only on the temporal vari-
ables to enable easy representation and machine learning analysis. The
full timestamp was not stored, the month and day values were stored
as a Day of Y ear variable (DOY) (x1) and the hour and minute as a
Minute of Day (MOD) (x2), as shown in Table 2. The exclusion of the
year component was due to the fact that it does not directly describe
environmental behavior or irrigation conditions as they are part of the
proposed framework. Likewise, the seconds component was discarded
since each data record in the data set is a 1 minute observation, based
on several readings taken over that period.
Before the models were developed the data set was checked to
ensure data integrity, record consistency, and correct CSV formatting.
The resulting dataset was then applied to a machine learning analysis,
while maintaining the original environmental measurements and
their temporal nature.
The dataset records were temporally converted then sorted chron-
ologically with DOY(x1) as the main sorting attribute and MOD(x2)
as the second sorting attribute. This way, all observations were aligned
to the same acquisition sequence during the entire data collec -
tion time.
3.1.2 Edge processing layer
Edge processing layer is used for local processing to lessen depen-
dency on clouds, which is crucial in low internet connectivity regions.
This layer can compute locally to microcontroller based systems such
as the Raspberry Pi, Arduino, and ESP32.
The proposed edge computing framework was realized with the
use of lightweight embedded hardware components like Arduino Uno
FIGURE 2
Dataset structure and organization showing representative samples from the beginning and end of the collected environmental observations (left side:
beginning of dataset, right side: end of dataset).
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 08 frontiersin.org
FIGURE 3
Intelligent irrigation system (IIS).
and Mega microcontroller along with HC-12 RF wireless communica-
tion modules. The Arduino Uno units mainly performed environmen-
tal sensing, local processing and execution of the irrigation control,
while the Arduino Mega unit was employed in tasks which needed
more serial interfaces and processing power, such as communication.
The reasons for the choice of these embedded platforms are that they
are low-power, low-cost and have been considered to be suitable for
decentralized deployment of agricultural applications where resources
are limited.
As computational and memory resources are usually minimal on
embedded edge devices, the chosen machine-learning framework
focused on simple, low-inference memory-constrained supervised-
learning algorithms. The purpose of avoiding computation-intensive
deep-learning architectures was to prevent the need for more memory
allocation, more processing power, more storage space and the need
to continuously rely on cloud-based acceleration, which is not always
feasible in remote agriculture.
While edge computing offers significant benefits such as low
latency, real-time responsiveness, decentralized operations, and
enhanced communication reliability, resource constraints are still a
key concern. The complexity of deployable machine-learning models
and large data processing jobs could be restricted by processor speed,
memory, storage space and energy constraints. The proposed frame-
work was thus designed to ensure that the predictive performance
does not compromise deployment feasibility while operating reliably
and steadily in realistic deployment scenarios in agricultural edge
computing. The edge-processing layer has several critical roles: it can
be used to preprocess data to remove noise and outliers; it can be used
to extract features for machine-learning pipelines; it can be used to
provide real-time inference, triggering emergency irrigation if sensor
values are above a pre-defined threshold. The edge unit combines the
data from various environmental sensors to create a single field profile
for irrigation analysis.
Under the actual conditions of agricultural production, environ-
mental sensors sometimes communicate with each other for a short
time, but the signals are not stable or the sensors are exposed to the
environment and degraded, or the power is lost due to weather
conditions and long-term operation in the fields. To minimize the
impact of such conditions on the behavior of users when making irri-
gation decisions, the proposed edge-computing framework was
designed to constantly observe the incoming values relating to the
different environmental conditions, instead of relying on a single mea-
surement in the course of an irrigation decision.
Corrupted environmental readings were analyzed during pre-
processing and local edge analysis to minimize the effects of corrupted
environmental sensors measurements prior to machine-learning
based inference. The framework proposed is based on several different
environmental sensing parameters of which temporarily unstable one
will not lead to an overall instability in the environment interpretation
because the other parameters of the sensor will continue contributing
to the irrigation decision process. The multi-parameter sensing strat-
egy increases the operational tolerance to the agricultural environ-
ment, and the system is more stable when the agricultural environment
changes.
Dedicated fault-tolerance mechanisms like sensor redundancy,
automated sensor-health monitoring, missing value imputation and
anomaly-detection frameworks were not fully realized in the current
prototype deployment, but are important future directions for large-
scale agricultural deployments. The framework will be extended in the
future to explore more intelligent actions to detect and recover from
faults to further enhance long-term reliability and resilience in practi-
cal edge-computing scenarios.
This aggregate is stored in the local memory in the form of a tem-
porary store and will be uploaded to the cloud at regular time intervals
for long-term analytical processing. Based on Figure 3, the Intelligent
Irrigation System (IIS) incorporates a number of interdependent mod-
ules, which are the Network Station Unit (NSU), Soil Monitoring Unit
(SMU), Water Management Unit (WMU), Signal Booster Unit (SBU),
and Data Logger Unit (DLU). IISs that are synchronized by the
Central Control Unit (CCU). Further, the inter-unit communication
is also supported with the wireless sensor network and radio-fre -
quency signals to ensure the strong transmission of the data and con-
trol of the far-away system. The CCU receives the incoming streams
of data and uses machine-learning algorithms to make real-time
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 09 frontiersin.org
irrigation decisions using local edge intelligence as well as cloud-based
resources (where available). The DLU units show in Details Illustration
in Figure 4 and a photograph of the (DLU) is shown in Figure 5.
To mention it is the Soil Monitoring Unit (SMU) which is essen-
tial in the soil condition monitoring to secure better irrigation. It mea-
sures the level of soil moisture and environment, which helps the CCU
in the decision making process for irrigation. The unit can be used in
various locations of a farm to measure spatial variation in the soil
condition. The SMU consists of an Arduino Uno microcontroller, a
capacitive soil-moisture sensor and environmental sensing modules
for ambient temperature and humidity (see Figure 6).
Moreover, the Water Management Unit (WMU) has the mandate
of controlling the flow of water to the irrigation system. It includes a
solenoid valve that is integrated with a sensor of water flow to either
reduce or increase water supply to the farm, hence maintaining accu-
racy and effectiveness in the irrigation process, as illustrated in
Figure 7. This unit will utilize the Arduino Uno microcontroller as its
central component, and is extremely inexpensive, allowing for a vari-
ety of irrigation systems to be supported. The powering options
include solar power, rechargeable batteries, or direct power lines,
which, in all, give the ability to conform to various operating
situations.
Furthermore, the Signal Booster Unit (SBU) amplifies the signals
of the terminal unit to the Command and Control Unit (CCU),
giving better signal strength and reliability in the communications.
The unit is particularly useful to those who farm in extensive areas or
where there is poor cell signal or coverage. It uses an Arduino Mega
microcontroller, which is better in processing power and has extra
FIGURE 4
The data logger unit (DLU) I/O chart.
FIGURE 5
Hardware prototype of (DLU).
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 10 frontiersin.org
FIGURE 6
Soil monitoring unit (SMU) I/O chart.
FIGURE 7
Water management unit (WMU) I/O chart.
serial interfaces when compared to the Arduino Uno. With the
HC-12 RF module, long-distance data transmission is possible (see
Figure 8).
It also offers a system for monitoring the changes in the meteo-
rological conditions and reacting to the changes according to the
given protocols. One is when near storm like situation occurs, the
sensors and modules are used to detect the situation, as shown in
Table 3.
Once the sensors sensed these changing patterns, a series of
preprogrammed responses was activated: Internet Protocol (IP)
alert to the supervisor, stop of the scheduled irrigation process, and
security of irrigation equipment (if applicable). The system then
waited to get a reply from the supervisor, should the latter be forth -
coming. The machine learning (ML) methods will be used in the
IIS to improve the decision making process as part of the DLU. The
ML workflow includes processing of data gathered, training the
model, and its application in real-time predictive analytics. The
other important parameters include test size (TS) and random state
(RS) both of these are important in training and evaluating the
model. A set of models are then serialized into the PKL files and
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 11 frontiersin.org
saved after training, which can be easily deployed and reused.
Models are trained and evaluated using the Scikit-Learn library
and then models are serialized using the joblib library (see
Figure 9).
Finally, there is the Central Control Unit (CCU), which is the
brain of the system where the activities of data acquisition, processing
and decision making are coordinated. Gathers all the input from the
subordinate modules and from trained models with machine learning
to create irrigation schedules. The CCU has various connectivity deals,
such as Wireless Distribution Systems (WDS) and MiFi, thus facilitat-
ing the availability and control of the remote area, as seen in Figure 10.
Laptops are also added to the CCU for configuration and system
monitoring; an external device to the CCU is also added. Secure wire-
less data transmission between distributed units of the proposed irri-
gation system provides for system integrity and communication
reliability. This multi-layered solution will give the IIS resilience and
scalability, and flexibility towards different agricultural environments
and thus towards the main challenges of precision irrigation.
Moreover, it should be noted that the hardware part of the
Intelligent Irrigation System (IIS) is the empirical embodiment of
the hardware designed as a cheap and rapid prototype in the pro -
tection enclosure of the type of protection. The system is based on
an edge processing unit that is an Arduino UNO microcontroller,
which is a real-time data acquisition, preprocessing, and irrigation
decision-making unit. The platform is equipped with a number of
environmental sensors including a capacitive soil moisture sensor
to measure volumetric water content, DHT22 sensor to detect the
temperature and humidity, MQ-135 sensor to detect the air qual -
ity and LDR module to detect light intensity. The arrangement of
these sensors is called data-acquisition layer and continuously
communicates the environment parameters to controller. The
wiring design and communication modules can be used to show
how the system is modular so that the system can be wirelessly
connected and various other auxiliary units can be integrated with
the system, such as the Soil Monitoring Unit (SMU), Water
Management Unit (WMU), and Central Control Unit (CCU).
Overall, the prototype demonstrates the potential for implement -
ing machine-based irrigation control with edge computing, ensur -
ing real-time responsiveness, scalability, and adaptability for
deployment in the challenging agricultural environment.
3.1.3 Machine learning and prediction layer
The processed sensor data is then passed to the machine learning
layer which provides irrigation recommendations. To determine the
most applicable supervised learning algorithm to predict the level of
soil moisture using environmental features (X1-X7), we used and
evaluated six supervised learning algorithms. All models were trained
on 80% of the data, tested on 20% and hyper parameters were opti-
mized by grid search when required.
FIGURE 8
Signal booster unit (SBU).
TABLE 3 Storm detection scenario.
Sensor Sensor specialty Detect condition
BMP180 Air pressure sensor Pressure drops quickly
DHT22
Weather temperature
and Humidity sensor
Humidity rising
Temperature drops
suddenly
LDR Weather light sensor Darkness even in
daytimeRTC Date and time module
capacitive soil
sensors
Soil moisture sensor Soil moisture rises fast
MQ135 Air quality sensor
Air-quality index
decreases
FIGURE 9
Machine learning (ML) I/O chart.
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 12 frontiersin.org
FIGURE 10
Central control unit (CCU) I/O chart.
• K-Nearest-Neighbors (KNN): Feeding on the 5-nearest analogous
historical values, the K-Nearest Neighbors method was used with
k = 5 to classify the state of soil moisture, where one incoming
sensor data point was compared to the five nearest historical mea-
surements. This instance-based method was accurate and the
inference latency of 88% and 0.03 s/sample, respectively, were
suitable for real-time application.
• Support Vector Machine (SVM): The radial basis function (RBF)
kernel support vector machine was considered, to introduce non-
linear relationships between the data. The SVM with default hyper
parameters could only be achieved with a performance of 58%,
which can be explained by the fact that the sensor readings are of
a high dimensional nature and noisy. Next step was hyper optimi-
zation of hyper parameters, which means the best accuracy was
achieved as 92% with an increase in computation time as C = 100
and gamma = 0.001.
• Decision Tree (DT): A decision-tree model with fixed depth
of 10 was used to make sure that the model was interpretable
and prevented overfitting. The model was classified with an
accuracy of 93% and took 0.03 s to predict the class of a single
sample, while the regression results yielded an R2 of 0.98 and
a prediction time of 0.02 s for a single sample. The architec -
ture based on rules also aids in understanding the irrigation
triggers for farmers.
• Random Forest (RF): This model is an ensemble of 100 decision
trees that were used to make this model more robust. The perfor-
mance of Random forest was also found as similar to that of the
Decision tree with accuracy of 93% and R2 of 0.98, but prediction
time of random forest was slightly higher (0.13 s). Therefore, the
random forest is more appropriate to be used offline for planning
rather than real-time control.
• Stochastic Gradient Descent (SGD): We examined the perfor -
mance of SGD on large scale data sets. Although it obtained the
predictions quickly (0.02 s/inference), the classification accuracy
was low (61%) and also its regression was a lot worse ( R2 =
−6.07), making it unsuitable for the present application.
• A neural network structure Multi-Layer Perceptron (MLP) con-
sisting of two hidden layers with 50 neurons in each layer and
ReLU activation function was trained. The MLP was not as effec-
tive as the tree based models, with a classification accuracy of
65%, a 𝑅2 value of 0.40.
Based on these findings, it was decided that the main models
of intelligent irrigation water system would be decision tree (DT)
with its speed and interpretability, and random forest (RF) which
would be high accuracy for offline analysis and would be used to
plan scenarios.
These classifiers alone offer a variety of data structures and issue
areas, offering flexibility and increased predictability. The irrigation
system guarantees that predictions are made correctly by picking the
right classifier to use on the particular data type and problem, and
therefore offers effective and efficient distribution of water.
In this study, supervised machine-learning models were chosen
because the dataset collected had distinct features of the environment
that influence the irrigation-related soil-moisture conditions, along with
distinct outputs of the target variables. The main goal of the proposed
framework was to create a platform to detect hidden environmental
patterns, in addition to direct prediction and irrigation decision support
based on the environmental observations gathered from the deployed
sensing infrastructure and labeled. Therefore, supervised learning tech-
niques were deemed more suitable for developing accurate real-time
prediction within the proposed intelligent irrigation system.
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 13 frontiersin.org
Unsupervised learning methods are typically more appropriate for
clustering, detecting anomalies or extracting hidden patterns in the
absence of labeled outputs. The existing data set already had pre-
defined target outputs or irrigation conditions; supervised algorithms
offered a more direct approach and more reliable to execute the irriga-
tion decision based on the edge. However, in future agricultural
research, unsupervised and semi-supervised methods can still offer
further benefits such as in the realm of sensor anomaly detection,
grouping analysis of environments, and partially labeled large-scale
agricultural datasets.
The main idea behind the prediction mechanism in the proposed
framework was not to construct a continuous numerical prediction
mechanism, but a classification-based irrigation decision system. The
relationships between environmental conditions and target outputs
were learned, and the observations in the environment were classified
based on the target outputs according to those relationships. This
classification-oriented approach has been chosen because it allows for
easier deployment behavior, lower computational complexity and
quicker execution of the edge-based decision under resource-limited
agricultural environments. The ML algorithms according to which
they were applied are introduced as follows: The Target Data (y) is
made of soil moisture, as stated in Table 4.
Using the test data, core performance measures were used to com-
pare the accuracy of the models in their ability to classify soil moisture
status. The measures include F1 score, recall, accuracy and precision.
The accuracy is the percentage of the correct predictions, which also
includes the true positives and the true negatives, of the total cases
(Mohammed and Clarke, 2024; Qasim et al., 2024). The accuracy can
be written as shown in Equation 1.
+= + ++TP TNAccuracy TP TN FP FN (1)
Where TP is True Positive, FP is False Positive, TN is True
Negative, and FN is False Negative. Precision measures how accurately
the classification of positive cases is defined by taking the number of
correct positive predictions divided by the number of predictions the
model has made, which it has announced to be positive. It is calculated
based on Equation 2.
= +TPPrecision TP FP (2)
Recall, also known as sensitivity or the true positive rate, is a mea-
sure that is used to determine the rate of true positive cases or cases that
the model manages to detect. It is calculated based on Equation 3 and
shows the capacity of the model to find positive instances.
= +TPRecall TP FN (3)
F1-score is a balanced metric that reflects both false positives and
false negatives. It is calculated as the harmonic mean of precision and
recall. Due to this, it is particularly helpful in the case of a class imbal-
ance. The F1-score is determined using Equation 4.
×−= × +12 Precision RecallF Score Precision Recall (4)
The analysis of the performance of the various models based on
these metrics provides a detailed understanding of the strengths and
weaknesses of each model in correctly classifying soil moisture status.
The machine-learning programs are regularly trained again, as new
information is added to them, thus expanding the predictive capability
with time. Hyper parameter optimization is also done periodically to
have an additional refinement of the model performance.
The proposed framework was designed under the assumption that
the environmental conditions measured with the selected sensing vari-
ables would have enough information to characterize the soil moisture
behavior under non cultivated soil conditions. The features selected
were selected for their being indicative of environmental factors which
are directly or indirectly related to moisture holding capacity, evapora-
tion, and interaction with the atmosphere, and/or irrigation needs.
This was based on both the principles of agriculture and the availabil-
ity of the practical sensors in the target deployment environment.
Another critical assumption is that smart irrigation decisions do
not necessarily need to be made continuously and require cloud con-
nectivity. This was driven by the fact that in many agricultural areas,
there may be intermittent internet connectivity. The framework helps
to minimize the reliance on communications, shorten response time,
and enhance field operations’ reliability by handling the environmen-
tal data and performing prediction tasks at the edge layer.
The system was also intended to be built with the premise that the
machine learning models needed for the lightweight deployment will
offer sufficient predictive performance and are compatible with the
resource-constrained computing devices. The trained models can be
saved and recalled as serialized model files for deployment and practi-
cal maintenance, allowing for execution on the typical computing
devices. This design approach makes the system more accessible and
will be helpful for future implementation in agricultural surroundings
where high computing facilities may not be available.
The experimental results validate these assumptions by showing
that the chosen environmental features could induce good classifica-
tion and regression results for the different machine learning algo-
rithms. The results obtained are shown to confirm the validity of the
environmental variables collected and their relevance to the variation
in soil moisture, thereby justifying the proper selection of sensing con-
figuration and edge based deployment strategy for intelligent irriga-
tion applications.
All the machine learning models in this study were developed
using Python 3.8 and Scikit Learn library version 1.1.2. In the first
evaluation phase, each model was initially trained with the default
parameters for the models distributed with the respective implemen-
tation of Scikit Learn. This baseline evaluation was conducted to pro-
vide a consistent baseline and to evaluate the baseline predictive ability
of each algorithm before optimization procedures are applied. The
default settings for this stage are given in Appendix Tables A2–A7.
TABLE 4 Classification labels and regression range of the target variable (Y).
Target data
(y)
Classification Regression
target
Wet+ 5
0%–100% (dry+ to
wet+)
Wet 4
MDR (moderate) 3
Dry 2
Dry+ 1
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 14 frontiersin.org
Hyperparameter optimization was conducted after baseline evalu-
ation to see if there were better configurations that could improve
model performance with the data collected. Optimization used the
GridSearchCV procedure which systematically tested multiple com-
binations of parameters using cross validation and chose the combina-
tion that gave the highest score for the cross validation task. The final
optimized values of the parameters settings are presented later in the
Results section.
An evaluation system of two stages was adopted, in order to have
a fair comparison between the algorithms and to investigate their sen-
sitivity to the parameter tuning. The study not only reports the default
performance but also the optimized one, there by giving more trans-
parency on model behavior and helping readers to differentiate per-
formance resulting from common settings in the implementation
process from performance resulting from systematic parameters
optimization.
3.1.4 Irrigation control and automation
The control layer is an intermediate that translates the predictive
insights generated by the machine-learning model into actions to be
taken by the physical irrigation infrastructure, which in turn ensures
a smooth process of automation of water delivery, with the subsequent
components of automation:
• Electronically controlled solenoid valves control the volumetric
flow of water to individual agricultural fields.
• Relay modules are high-level communication devices between
edge computing units and irrigation equipment, permitting acti-
vation to be accurate.
• Drip and sprinkler systems spray water through emitters or sprin-
klers as called upon by the recommended irrigation time.
• Mobile dashboards give agronomist access into real-time irriga-
tion status through a mobile application allowing them to have the
ability to override a manual system.
The system will conduct a constant check of water usage in irriga-
tion processes and send notifications via SMS or mobile devices when
abnormalities like valve failures or water deficits are detected. This
preemptive feedback system enhances the reliability of systems, as well
as encourages the best working behaviors.
3.2 Performance metrics
System performance evaluation is a very crucial element in terms
of reliability and scalability. In this work, key indicator is the predictive
accuracy, which is defined as the percentage of the number of irriga-
tion instructions that can be accurately predicted by the machine
learning models. The system uptime and latency are also measured at
the same time to characterize the time gap between data capture and
irrigation actuation, and hence both system responsiveness and over-
all system operational stability of the edge-computing infrastructure.
Each of the six supervised learning models in this study was used to
create predictions of performance, which were evaluated. In regres-
sion problems, the score will be the same as coefficient of determina-
tion (R2) and in classification problems, the score will be the same as
the traditional measure of accuracy.
Evaluation of system latency will include the training time, fit
time, predict time and find time. The metrics are normatively based
on the 100 repetitions of the timing of an operation for a set of one
million items sorted in reverse order using Python’s built-in sort.
Training time refers to the amount of time that it takes to split the
dataset into training and test parts based on a given threshold (ts). Fit
time is the time that has been taken to instantiate the model of indi-
vidual algorithms that have been chosen. Predict time is the time
needed to come up with predictions on the test data. Finally, find time
is the total cost of getting the answer to the individual object in the
dataset, which may be used over and over in a real-time system, and
therefore is the response-time cost in application.
Other analysis methods include generating confusion matrices to
assess the quality and stability of the machine learning classification
models and examining the precision-recall curves. The evaluation
process was mainly the comparative analysis of the performance of
machine-learning models in the same conditions of environment and
deployment. Because of this, the main evaluation metrics chosen were
classification accuracy for classification-based models and coefficient
of determination (R2) for regression-based models. The above metrics
were chosen because they directly related to the intelligent irrigation
framework’s predictive capability and operational suitability. Other
analytical metrics such as confusion matrices, precision-recall analysis
and ROC evaluation were also considered to further explore how the
classifiers were performing particularly for the Decision Tree model
as this model had the best overall results when compared on the same
metrics. The data set was not collected through a static set of environ-
mental sensor conditions, but rather through constantly evolving con-
ditions, such as those typically seen in benchmark classification
datasets which are often very imbalanced with only a small number of
classes in each category. This environmental variability was helpful in
minimizing significant prediction bias toward fixed classes and was
helpful in increasing the generalization of the models to a dynamically
changing set of irrigation conditions. While other statistical validation
methods like confidence intervals, variance analysis and extended
ROC-AUC evaluation for all models would give additional statistical
interpretation, the main purpose of the present work was to determine
the most practically applicable machine-learning model for an intel-
ligent irrigation system deployed at the edge in realistic environmental
operating conditions. Expansion of statistical validation of wider,
more representative environmental datasets will be included in
future work.
The long-term performance processes include the return on
investment measures in order to measure the economic benefits
brought about by the deployment of the smart irrigation system. The
comprehensive approach will provide evolution of water-use efficient
irrigation system involving changes in environmental conditions,
thus, addressing farmers’ urgent challenges in water deficit regions.
Further analyses were undertaken to test the relationships
between the selected environmental features and assessment targets
in order to further validate statistically the collected dataset, as well as
to better explain these relationships by testing the contribution of each
selected feature to the assessment targets. Table 5 displays the statisti-
cal correlation matrix of the environmental input features which can
be used to study the correlation between predictor variables and to get
a first impression of the characteristics of the data set before training
the model.
Moreover, Table 6 shows the statistical correlation between the
various environmental input features and the prediction targets from
multiple complementary statistical evaluation methods. Linear depen-
dency between regression target and selected features and between
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 15 frontiersin.org
classification target and selected features were assessed by the correla-
tion analysis, while the Mutual Information analysis was used for
assessing the nonlinear dependency between the selected features and
the target variables. Moreover, the selected prediction model was used
to do the permutation importance analysis to measure the contribu-
tion of each feature to final prediction performance. These statistical
analyses enable a more complete validation of the feature set selected,
further validate the suitability of the environmental sensing variables,
and enhance transparency and reliability of the proposed intelligent
irrigation framework.
The proposed framework was designed to be a lightweight edge
computing solution, suitable to be deployed in low-cost agricultural
environments. A preliminary analysis of the overall experimental data
was performed to investigate if there was a clear advantage in using a
dedicated soil-temperature sensor or if a sensor with a machine learn-
ing output would be more effective in providing useful and informa-
tive data. In this preparatory period, soil temperature was measured
along with other meteorological parameters such as air temperature,
humidity, air pressure, light intensity and air quality, to assess if it
provides any additional information about the environment that is
useful for soil moisture prediction. This analysis was conducted spe-
cifically to determine if soil temperature alone could be used to ade-
quately address the need for additional information beyond what is
already known from ambient air temperature measurements. The
statistical comparisons of ambient air temperature and soil tempera-
ture are summarized in Table 7.
The statistical measurements in Table 7 are pairwise comparison
measurements, which were computed based on ambient air tempera-
ture and soil temperature. Each reported value is therefore a statistical
similarity of the two temperature measurements and not a separate
property of either measurement. This presentation was chosen
because the goal of the analysis was to determine the level of agree-
ment and redundancy between the soil temperature and ambient air
temperature, to give a quantitative sense as to whether the soil tem-
perature would add additional information to the proposed irrigation
framework that would be accomplished by using a dedicated soil tem-
perature sensor.
The analysis showed that R2 was equal to 0.97 and the Pearson
correlation coefficient was 0.99, meaning that soil temperature is
explained by the variation in the air temperature of about 97%.
Moreover, the average is true for both measurements was only 0.70 °C,
and more than 92% of the observations had a difference that was less
than 1 °C between the two measurements. These results suggest that
the temporal behavior of both temperatures was very similar in the
experimental conditions.
The relationship of soil temperature with soil moisture was com-
pared with that of the ambient air temperature to gain a deeper under-
standing of the practical contribution of soil temperature. The relative
comparison of both soil moisture and temperature is given in Table 8.
The Pearson correlation coefficient was −0.31 for air temperature and
soil moisture, and −0.34 for soil temperature. The difference between
the two correlations was 7.76%, which was a relatively small differ-
ence, indicating that the soil temperature gave little extra information
regarding soil moisture. The small difference indicates that ambient
air temperature already accounts for the majority of the environmen-
tal temperature differences needed in the irrigation framework pro-
posed in this study.
With the statistical results, it was decided to not include a dedi-
cated soil temperature sensor in the final sensing architecture. The
choice was not just based on hardware cost considerations but also
was based on quantitative evidence that ambient air temperature was
a suitable surrogate under the range of environmental conditions
investigated. The additional sensor removed the complexity, addi-
tional hardware costs, installation and maintenance requirements of
the system, while retaining the lightweight design concept of the pro-
posed intelligent irrigation system at the edge.
4 Results and findings
It is intended to do classification as well as the performance analy-
sis of a classification model and the regression model in this section
of the intelligent irrigation system. The research highlights the merits
and demerits of various machine learning algorithms and gives
knowledge on their capability to predict the results, error, and reli-
ability in various conditions. This overall analysis would serve as a
basic guideline to the selection of the most appropriate model that
would promote the overall agricultural output with an effort to mini-
mize the irrigation operations.
The suggested intelligent irrigation system was not confined to
the off-line analysis of the datasets or on the simulation evaluation.
The system has been physically deployed in a real agricultural field
environment in Kirkuk, Iraq, where IoT sensing devices and com -
puting on the edges have been deployed for continuous monitoring
of the environment and real-time irrigation decision-making.
Environmental observations under dynamically changed field condi-
tions of around 13,000 soil moisture, soil temperature, soil humidity,
air pressure, air quality and light intensity data were taken during
deployment.
TABLE 5 Statistical correlation analysis among environmental input features.
Features X1 (doy) X2 (mod) X3 (tmp) X4 (hum) X5 (prs) X6 (qua) X7 (lgt)
X1 (doy) 1.00 0.06 0.02 0.09 0.01 −0.21 −0.03
X2 (mod) 0.06 1.00 0.19 −0.16 0.01 −0.02 −0.02
X3 (tmp) 0.02 0.19 1.00 −0.89 −0.32 0.19 0.56
X4 (hum) 0.09 −0.16 −0.89 1.00 0.20 −0.14 −0.54
X5 (prs) 0.01 0.01 −0.32 0.20 1.00 −0.03 −0.19
X6 (qua) −0.21 −0.02 0.19 −0.14 −0.03 1.00 0.05
X7 (lgt) −0.03 −0.02 0.56 −0.54 −0.19 0.05 1.00
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 16 frontiersin.org
TABLE 8 Statistical comparison of the correlations between ambient air temperature, soil
temperature and soil moisture.
Compared variables
relationship
Pearson correlation
value
Air temperature vs. soil moisture −0.31
Soil temperature vs. soil moisture −0.34
Relative difference between
correlations
7.76%
This deployed architecture was implemented at the edge layer with
the use of lightweight embedded processing units which handled and
analyzed data from various environmental sensors, making irrigation
decisions without the need for frequent communication with the
cloud. This deployment strategy allowed for immediate response to
the environment and stability in the operation under real farm condi-
tions. Thus, the prototype implementation enabled the practical vali-
dation of sensor integration, reliability of wireless communications,
monitoring of environment and execution of irrigation decisions in
the edge in a real deployment environment.
The ultimate goal of this work was to assess engineering deploy-
ment feasibility and intelligent behavior of the proposed irrigation
framework under realistic conditions. The experiments conducted
therefore centered on primarily on environmental sensing perfor -
mance, irrigation analysis using machine-learning techniques and
system responsiveness and did not aim for long-term agronomic
assessment. The current pilot-scale implementation does not support
field testing of crop productivity on a larger scale for extended mea-
surement, which includes seasonal crop yield gains, controlled irriga-
tion level identification (or benchmarking) and large-scale water use
analysis.
However, the deployment performance that was achieved in the
real-world agriculture scenarios proves the practicality of the pro -
posed framework in agriculture and its capability to analyze the irriga-
tion continuously through sensors whenever environment
dynamically changes. Future research will address capacities to con-
duct seasonal crop assessment, to compare water use between different
plantings, and to apply at larger scales in agricultural field
environments.
4.1 Classification performance results
Six machine learning models such as Support Vector Machine
(SVM), Decision Tree (DT), Random Forest (RF), Stochastic Gradient
Descent (SGD), K-Nearest Neighbors (KNN) and Multilayer
Perceptron (MLP) were tested using their performance with respect
TABLE 6 Statistical feature-to-target relationship analysis.
Features Correlation (Y1:
Reg)
Correlation (Y2:
Clf)
Mutual
information (Y1:
Reg)
Mutual
information (Y2:
Clf)
Permutation
importance
mean (Y1: Reg)
Permutation
importance STD
(Y1: Reg)
Permutation
importance
Mean (Y2: Clf)
Permutation
importance STD
(Y2: Clf)
X1 (doy) −0.38 −0.38 0.27 0.55 1.72 0.03 0.41 0.01
X2 (mod) −0.04 −0.06 0.23 0.19 0.19 0.01 0.15 0.01
X3 (tmp) −0.15 −0.15 0.16 0.13 0.07 0.01 0.05 0.00
X4 (hum) 0.17 0.16 0.13 0.12 0.19 0.01 0.15 0.00
X5 (prs) 0.11 0.10 0.09 0.11 0.18 0.01 0.09 0.00
X6 (qua) 0.43 0.38 0.07 0.07 0.22 0.02 0.18 0.01
TABLE 7 Pairwise statistical comparison between ambient air temperature and soil
temperature.
Statistical comparison
metric
Comparison value (air
temperature vs. soil
temperature)
Pearson correlation 0.99
R2 0.97
Mean absolute error (MAE) 0.70 °C
Records with ≤1 °C difference 92.42%
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 17 frontiersin.org
to classification of irrigation conditions in intelligent agricultural sys-
tems. The summary of the classification performance metrics is found
in Table 9.
As presented in Table 9, the Decision Tree (DT) and Random
Forest (RF) classifiers have the highest accuracy of 93% and showed
excellent classification performance in all the evaluated metrics. The
K-Nearest Neighbors (KNN) was the second algorithm with an accu-
racy of 88% and a high recall of 0.88. On the other hand, the SVM
achieved the lowest classification accuracy of 58%, mainly because of
its high false positive rate (42%). The multilayer perceptron (MLP)
and stochastic gradient descent (SGD) models had moderate accuracy
of 65% and 61%, respectively.
Noteworthy that Figure 11 is related to the inference latency of
every classification model. The precision and F1 -score of RF and DT
are the highest (0.93), pointing to their effectiveness in balancing the
precision and recall. KNN also has comparable performance on all the
metrics. SGD and MLP , which are computationally efficient, yield
poorer F1 -scores (a balance between speed and accuracy of classifica-
tion), whereas they are not the most accurate. In non-linear situations,
SVM’s performance is insufficient and justifies its natural limitations
in these measures.
The prediction times for all models are low with DT taking <0.03 s
and KNN taking <0.03 s to make a single prediction. RF has the maxi-
mum single-prediction latency of 0.13 s, which is due to the ensemble
architecture. Consequently, DT and KNN make faster predictions
(0.02–0.03 s) making them suitable for the context of fast decision
making. SVM and MLP are in the middle of the inference time, thus
finding a compromise between accuracy and computing efficiency.
Figure 12 of the normalized confusion matrix defines the classifi-
cation performance of the Decision Tree model in the context of five
known classes of soil-moisture that include DRY-, DRY , MDR (mod-
erate), WET, and WET+. Entries in diagonals are measures of percent-
age of instances with correct description of each of the classes, while
misclassifications are highlighted in the off-diagonal elements. This
model has a perfect classification of the WET+ class with the value of
1.00, all the cases were correctly identified. The DRY (0.939), MDR
(0.933) and WET (0.926) classes were also determined to have a high
accuracy with a low disagreement level which occurred mainly
between the classes of moisture contents in the vicinity (DRY and
MDR and MDR and WET). The worst performance has been associ-
ated with the DRY class (0.850), where there was a percentage of errors
in the classification of DRY . The results confirm that the model has
good predictive ability and reliability to distinguish between soil-
moisture levels, particularly at the extremes.
Lastly, the ROC curve shown in Figure 13 is a plot of the perfor-
mance of the Decision Tree classifier with respect to distinguishing
between classes of soil moisture. The curve is a graph of the true posi-
tive rate versus the false positive rate as a variation of classification
thresholds. The orange line is steep upward, occupying the upper- left
corner, indicating that the model has a high true positive rate and at
the same time, it has a low false positive rate. An outstanding discrimi-
natory ability is manifested in the area under the curve (AUC), which
is 0.98. The curvature form in this case is the proof of this model’s
reliability and effectiveness in predicting in intelligent irrigation
system at different thresholds, hence, this is the proof of this model’s
reliability and performance in classification tasks in an intelligent irri-
gation system.
4.2 Regression performance
The purpose of the regression performance analysis was to iden-
tify the level of accuracy of the prediction, the values of the errors, as
well as the computational efficiency of a set of machine-learning
models that predict the level of irrigation. Seven classifiers, Support
Vector Machine (SVM), Decision tree (DT), random forest (RF),
Stochastic Gradient Descent (SGD), K-Nearest neighbor (KNN) and
multilayer Perceptron (MLP), were evaluated. To select the most con-
sistent and efficient intelligent irrigation systems models the study
compared the models in terms of major regression indicators, includ-
ing Mean Absolute Error (MAE), Mean Squared Error (MSE), Root
Mean Squared Error (RMSE), and coefficient of determination (R2).
Table 10 shows a summary of the performance of each of the indi-
vidual regression models. The decision tree (DT) and random forest
(RF) models had yield the best R2 value (98%) and minimal error rate.
Because the models are modular, e.g., they are implemented using the
data logging unit (DLU) and the centralized control unit (CCU), they
were easily integrated into the entire system, thus improving the appli-
cability of the whole system in the field. In comparison with the above
models, comparatively huge error values obtained by the support
vector machine (SVM) and multilayer perceptron (MLP) models indi-
cates the lower accuracy in the irrigation level prediction.
The overall performance rates of the considered models of regres-
sion and the fast percentages of the models are well compared in
Figure 14. Random Forest (RF) and Decision Tree (DT) are always in
TABLE 9 Classification model performance overview.
Metric SVM DT RF SGD KNN MLP
Recall 0.58 0.93 0.93 0.61 0.88 0.65
Accuracy
(model
score)
0.58 0.93 0.93 0.61 0.88 0.65
Precision 0.35 0.93 0.93 0.57 0.88 0.7
F1-score 0.44 0.93 0.93 0.59 0.88 0.67
Find time
(prediction
of single
sample
time) (sec)
0.03 0.03 0.13 0.02 0.03 0.03
FIGURE 11
Classification models finding single prediction times chart.
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 18 frontiersin.org
FIGURE 12
Normalized confusion matrix between water level and classification metrics in DT.
FIGURE 13
ROC curve for DT.
the top of the list: they have the highest reported overall performance
rates, as K-Nearest Neighbors (KNN) do. Support Vector Machine
(SVM) and Multilayer Perceptron (MLP), they are also entering in the
predictive performance, which is relatively lower, and error rates,
which are higher. The results, in turn, confirm the superiority of RF
and DT in the context of activities of the intelligent irrigation system,
which are related to regression.
A comparison between the empirical and modelled value on a few
days of the calendar year is illustrated in Figure 15. Both of the plotted
paths show a very high degree of similarity with the modeled path
(blue dashed line) very close to the observed path (solid black line).
The matching of the maxima and minima with the curves are correct,
and this indicates that the model is correct in capturing the main fea-
tures and oscillatory structure of the data. The track simulated and the
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 19 frontiersin.org
empirical track are in good agreement, which highlights the good
predictability of the model and its stability over time.
The model robustness was further assessed by running the experi-
ments with the different random seed values given for the dataset
splitting process. Figures 16, 17 show that there were only slight dif-
ferences in the classification accuracy and regression performance
with respect to different train-test partitions, which suggests that ran-
domizing the data set had little effect on the behavior of the models.
Further, the dataset was carefully studied to minimize the risk of
information leakage between the training and test sets. Every observa-
tion was a different environmental situation and no duplicated sensor
readings were found in the data set. This facilitated to make sure that
the reported performance was not a memorization effect but a result
of learning the content.
The data collected in the environment was also data that changed
over time, such as the humidity of soil and air, temperature, atmo-
spheric pressure, air quality and light intensity. This variability was
used as a way of enhancing model stability and generalization for the
intended deployment setting.
While other statistical validation methods (e.g., k-fold cross-vali-
dation and variance analysis) could be used to increase the robustness
assessment, these repeated experiments with random seeds showed
stable and consistent predictive performance across several partitions
of the datasets.
The regression analysis shows that both DT and RF models out-
perform the other models in terms of forecasting accuracy, minimiza-
tion of forecasting errors and computation efficiency. This is consistent
with their stable performance in the different sizes of test sets and
random initialization, which makes them the most powerful and
adaptable models that can be used in irrigation prediction problems
for intelligent agriculture systems.
To further test the reliability of the selected Decision Tree model,
further experiments were carried out with several different random
states settings and the same training and testing settings were used for
all experiments. This extra analysis was conducted to see if the perfor-
mance results obtained differed significantly if the random partition-
ing of the dataset is varied in the Decision Tree model that was chosen
as the final deployment model through the comparative evaluation.
The classification and regression results under various random
states are shown in Tables 11, 12, respectively, and Figures 16, 17 show
the respective variations in performance under various random states.
The results indicate that there were very few changes across all of the
random configurations of states. In the case of classification, accuracy
of the model did not differ from 92% to 94%, while the R2 was between
0.97 and 0.98 for the regression model. The limited variations suggest
that the proposed model can predict the performance of the model
with stable performance under the condition of different randomiza-
tions of data sets.
Finally, for a summary of the robustness analysis, Table 13
shows the descriptive statistical measures for both classification and
regression experiments such as mean, median, minimum, maxi -
mum, and performance range. The consistency between these sta -
tistical measures validates the selected Decision Tree model’s ability
to perform the same way on repeated experiments and indicate that
TABLE 10 Regression model performance overview.
Metric SVM DT RF SGD KNN MLP
MAE 4.59 0.47 0.46 1.34E+14 1.38 3.96
MSE 35.68 0.89 0.68 2.66E+28 5.23 26.03
RMSE 5.97 0.95 0.83 1.63E+14 2.29 5.1
R2 (model
score)
0.18 0.98 0.98 −6.07E+26 0.88 0.4
Time
(prediction
of single
sample
time) (sec)
0.05 0.02 0.1 0.02 0.03 0.02
FIGURE 14
Regression models overall rate and rapid percentage chart.
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 20 frontiersin.org
FIGURE 15
Model prediction performance time-lapse.
the performance reported for the model is not significantly
impacted by the random state used. This further validation increases
the reliability and repeatability of the proposed intelligent irriga -
tion system.
5 Discussion
The results of the classification and regression models emphasize
the outstanding performance of the Decision Tree (DT) and the
Random Forest (RF) in the different assessment scores, thereby
ensuring that they are correct and applicable to smart irrigation net-
works. Moreover, the design of the modular system including the
SMU and WMU and the units is flexible in various farming environ-
ments and the communication is supported with the SBU, as well as
the data are managed accurately with DLU. The classification accuracy
for the models was good (DT and RF always reached 93%). High pre-
cision and recall value further supports this, and this is a factor that
has shown that they can lower false positive and false negative.
For classification and regression tasks additional error analysis is
added to give a more comprehensive evaluation of the selected
Decision Tree model. The detailed classification report is shown in
Table 14, along with precision, recall, and F1 score for each irrigation
FIGURE 16
Classification DT model score % with RS relation chart.
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 21 frontiersin.org
class, and overall classification performance. Rather than just the over-
all accuracy this analysis gives a better indication of the model’s
performance within each irrigation category and the distribution of
prediction errors.
The results for the regression task are summarized in Table 15,
which provides the residual error analysis and the absolute prediction
error statistics; it also shows the residual distribution. These measures
give further information about how big the prediction errors, how
much they vary, and in what direction they vary, as well as the
reported R2 value, to evaluate the consistency of the regression model.
FIGURE 17
Regression DT model score% with RS relation chart.
TABLE 11 Classification performance of the decision tree model under multiple random state
configurations.
rs Model score
1 0 0.93
2 1 0.93
3 7 0.93
4 13 0.93
5 21 0.93
6 42 0.93
7 101 0.93
8 123 0.94
9 999 0.92
TABLE 12 Regression performance of the decision tree model under multiple random state
configurations.
rs Model score
1 0 0.97
2 1 0.98
3 7 0.97
4 13 0.97
5 21 0.98
6 42 0.98
7 101 0.98
8 123 0.98
9 999 0.98
TABLE 13 Descriptive statistical summary of decision tree performance across multiple random
state configurations.
Task Mean Median Min Max Range
DT
classification
accuracy
0.93 0.93 0.92 0.94 0.02
DT
regression R2
0.98 0.98 0.97 0.98 0.01
TABLE 14 Decision tree classification error analysis using the classification report.
Class id Precision Recall F1-
score
Support
1 0.86 0.85 0.85 300
2 0.94 0.94 0.94 1,402
3 0.93 0.94 0.94 771
4 0.95 0.92 0.93 136
5 1 1 1 4
Accuracy — — 0.93 2,613
Macro avg 0.94 0.93 0.93 2,613
Weighted
avg
0.93 0.93 0.93 2,613
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 22 frontiersin.org
The classification and regression error analysis also demonstrates the
reliability of the selected Decision Tree model and further validate the
overall intelligent irrigation framework.
Besides, computational time of models was analyzed, where it was
observed that the training and fitting times of RF are much more com-
pared with other models although it provides excellent accuracy. This
trade-off suggests that the RF model is a fairly complex model and would
be suitable for use in a scenario that requires high accuracy, but may not
be the ideal choice in low-resource applications where long-term predic-
tions are desired. In contrast, DT and KNN were effective with their
prediction time and made them usable in real time decision making. The
regression analysis also supported the preeminence of DT and RF .
The models gave the lowest value of MAE, RMSE, suggesting that
they generate accurate results with minimal errors. On the other hand,
the error rate of SVM and MLP was higher, which was restrictive for
them and limited their application to precision irrigation. SGD has a
low R2 but is computationally efficient, however, this means it is not as
reliable as other models in the provision of accurate estimates of
irrigation.
This result further demonstrates the stability of DT performances
with different test sizes and random states, thus proving the DT’s
applicability for edge-computing deployment in smart agriculture.
While RF also had consistently high performance, it has a lower com-
putational intensity, particularly in single-prediction problems, sug-
gesting that DT would be better suited to be deployed in the field.
The findings therefore suggest a potential application of DT and
RF models in the smart irrigation systems, and their predictive accu-
racy to optimize water utilization and enhance crop production. These
frameworks can incorporate machine learning with the IoT and mod-
ular elements and adapt to real-time environmental data to provide
actionable information on the accurate water distribution.
Nonetheless, the research also suggests the drawbacks, including the
significant computational needs of RF and the compromised perfor-
mance of lightweight algorithms, such as SGD. To address these chal-
lenges, further studies and research into the hybrid model that
achieves accuracy and efficiency are required.
The proposed system is technically good but there are few practi-
cal challenges in implementing the system practically. Expensive start-
up costs can be a deterrent for small-scale farmers; the modular design
can enable the gradual and step-wise uptake of the system, reducing
the financial burden in the longer-term. The need for technical train-
ing in rural areas can be complemented with trainings and
partnerships with agricultural extension services. Edge computing is
possible in remote areas due to local data processing to overcome
problems with internet connection and low-power protocols such as
LoRaW AN. Careful calibration, like the SBU and the CCU, is neces-
sary for larger and more heterogeneous farms or scalability; however,
the modular and adaptive design promotes the easy expansion with
little reconfiguration. The future field trials and technology-transfer
will be guided by these motivating factors.
To assess the sensitivity of the machine-learning models selected
with different parameters settings, further hyper parameter tuning
experiments were carried out. In the optimization procedure, the
variation of random state, test size, kernel configuration and the
model-specific learning parameters was considered to explore poten-
tial improvements in the predictive behavior. The results obtained
showed that some of the models, such as Support Vector Machine
(SVM) model, had significant improvement in their performance after
optimization, while others, such as Artificial Neural Network (ANN)
and MLP , had slight changes that could be considered as operating
near the best possible performance. The parameters optimized and the
comparative results can be summarized as shown in Table 16.
As is apparent from the results shown in Table 16, each machine
learning algorithm had a different response to an attempt to hyperpa-
rametertune it for the collected environmental data. A few models
were improved within a small percentage after the parameters were
adjusted; the model Support Vector Machine (SVM) improved the
most after the parameters were adjusted, from 0.58 to 0.92. The behav-
ior indicates that it depends on the algorithm and the set of data;
tuning the hyperparameter should be carefully considered when train-
ing models.
The results also show that it is not required to rely on the big
optimization processes to get high prediction capabilities. In the veg-
etative phase, tree models (Decision Tree and Random Forest) gave
very good performance with default (or near optimal) values, suggest-
ing that information on environmental relations can be fairly well
represented without the need for complex or time-consuming param-
eter tuning. This property is especially useful when it comes to real
world applications, where computational simplicity, speedy response
time and ease of implementation are critical operating noteworthy
features.
To have a broader view on the result, these results were compared
with the previous results reported in smart irrigation system as shown
in Table 1. Already published studies mostly focused on particular
topics such as monitoring using IoT, prediction using machine learn-
ing or irrigation automation. The proposed framework, however, pro-
vides a smart irrigation platform which includes the following
features: (1) real field deployment, (2) edge computing, (3) modular
architecture, (4) multi model machine learning validation and opera-
tion of storm detection.
The comparison further shows that many of the related research
articles failed to mention the characteristics of the deployment,
describe the knowledge or comprehensive assessment of the edge
computing implementation, or, indeed, several machine learning algo-
rithms. To overcome this disadvantage, it is proposed to train various
machine learning models on the same data set, under the same experi-
mental setup and with the same evaluation technique (preprocessing
method) and choose the most appropriate model to deploy. This
method minimizes source of evaluation bias and makes the evaluation
of the algorithm’s suitability for intelligent irrigation applications more
reliable.
TABLE 15 Decision tree regression error analysis based on residual and absolute error statistics.
Metric Value
Residual mean 0.022962113
Residual median 0
Residual std 0.945637206
Residual min −9
Residual max 5
Absolute error mean 0.470723307
Absolute error median 0
Absolute error std 0.820473371
Absolute error min 0
Absolute error max 9
Mustafa and Kutucu 10.3389/fsufs.2026.1827416
Frontiers in Sustainable Food Systems 23 frontiersin.org
In addition to competitive predictive performance, the pro -
posed system is also available for practical deployment which is not
often available together in other studies. Those feature local pro -
cessing at the edge of the network, real time environmental moni -
toring, modular system scaling and less reliance on constant
internet connectivity to the cloud. These qualities make it easier to
deploy and more reliable to use, particularly in agriculture where
communication network coverage and connectivity may be
lacking.
Overall, the results indicate that the proposed framework is more
than a prediction of the accuracy of the skill. The number of tools to
be designed for creating intelligent irrigation systems should be able
to consider the computational efficiency, response time, deployment
feasibility, scalability and adaptability for actual agricultural circum-
stances. Application on real field, based on the edge, the modulariza-
tion design and the multi model evaluation effect was beneficial for
presenting a practical and scalable method for intelligent irrigation
management system and for the comparative evaluation based on the
methods reported in the literature.
To make the machine-learning models comparable to each other,
further hyper parameter tuning experiments were performed for all
of the models tested, on the same dataset, using the same preprocess-
ing, feature sets, and evaluation methodology. Various parameter set-
tings were tested to determine possible parameter sensitivities and the
potential for improved model performance at similar experimental
conditions.
The results obtained showed that a few models were already run-
ning close to their optimal parameters without much fine tuning, with
moderate performance changes after parameter tuning. O
论文原文与出版信息
Frontiers in Sustainable Food Systems