Sensors 2489293
Sensors 2489293
[email protected]
4 School of Information Technology, Deakin University, Geelong, VIC 3220, Australia;
[email protected]
* Correspondence: [email protected]
Abstract: The Internet of Things (IoT) is a transformative technology that is reshaping industries
and daily life, leading us towards a connected future that is full of possibilities and innovations. In
this paper, we present a robust framework for the application of Internet of Things (IoT) technology
in the agricultural sector in Bangladesh. The framework encompasses the integration of IoT, data
mining techniques, and cloud monitoring systems to enhance productivity, improve water manage-
ment, and provide real-time crop forecasting. We conducted rigorous experimentation on the frame-
work. We achieve an accuracy of 87.38% for the proposed model in predicting data harvest. Our
Citation: Rahman, M.B.;
Chakma, J.D.; Momin, A.; Islam, S.;
findings highlight the effectiveness and transparency of the framework, underscoring the signifi-
Uddin, M.A.; Islam, M.A.; Aryal, S. cant potential of the IoT in transforming agriculture and empowering farmers with data-driven de-
Smart Crop Cultivation System cision-making capabilities. The proposed framework might be very impactful in real-life agricul-
Using Automated Agriculture ture, especially for monsoon agriculture-based countries like Bangladesh.
Monitoring Environments in the
Context of Bangladesh Agriculture. Keywords: crop yield prediction; smart agriculture; decision tree classifier; crop monitoring;
Sensors 2023, 23, x. irrigation control
https://doi.org/10.3390/xxxxx
riculture should embrace modern technologies to enhance crop productivity and imple-
ment sustainable farming practices. Strengthening agricultural production systems is vital
to increasing income and ensuring food and nutrition security in underdeveloped nations
[3]. Bangladesh’s government has recently undertaken an initiative to embrace the IoT’s
fourth industrial revolution in the agriculture sector under its a2i program. A recent study
[4] suggests that the adoption of the fourth industrial IoT might potentially improve irri-
gation efficiency by up to 50% by the year 2030 [4].
IoT technologies are widely used in the agriculture sector in many developed coun-
tries to increase production and meet the demand for food supply in the market. IoT in
agriculture can reduce production costs and time by providing precision agriculture.
Farmers very often encounter financial losses resulting from unforeseen natural ca-
lamities. However, with access to advanced weather forecasts through IoT technology,
they might be able to avoid or mitigate these losses to a certain extent. By incorporating
IoT solutions, farmers can receive real-time weather forecasts and remotely monitor their
agricultural operations, which enables them to make informed decisions accordingly.
Similarly, our proposed framework can empower farmers to visualize sensor data, control
irrigation pumps, and optimize plant and water management practices for improved
productivity and resource efficiency. Many state-of-the-art projects combining IoT and
data mining techniques in the agriculture sector have been carried out to develop smart
agriculture infrastructure [5]. The application of IoT in agriculture has brought great rev-
olutionary changes to the agricultural environment by addressing multiple challenges
and examining different complexities [6]. Our research targets the adoption of an IoT
monitoring system for farmers to solve problems such as water crises, cost management,
and productivity issues [6,7].
However, advanced technology is usually, but not always, beneficial to humans.
There needs to be careful research on how to develop green technology for the survival of
humanity and the animal kingdom. We need to avoid developing destructive technology
that endangers people and the earth itself. Considering this issue, we developed an envi-
ronmentally friendly monitoring system that helps the farmer provide information about
the source and characteristics of the grain or product. In this system, we obtained data for
predicting crops’ transplanting and harvesting times from wireless sensors consisting of
IoT devices. This system facilitates monitoring and controlling the water supply on the
land automatically.
Our main contributions to the paper are as follows:
I. To the best of our knowledge, our work represents one of the first frameworks in-
cluding IoT and cloud monitoring systems in a monsoon climate, such as that found
in Bangladesh. Through our system framework, multiple forecasts can be made avail-
able to the farmers by evaluating the cloud-based data;
II. We propose two algorithms, where one, describes the procedure of collecting data
from sensors through our microcontroller and sending it to the cloud system, and the
other is designed to forecast crop planting and harvesting times with duration. Our
database system is developed as a web-based application to enable easy interaction
for end users, particularly farmers, with our proposed system. The stored data serves
as a valuable resource for automated decision-making in crop cultivation, particu-
larly in water control measures.
By integrating web applications, our system can facilitate the evaluation of data from
IoT devices in Bangladesh, providing farmers with clear insights into IoT device perfor-
mance. While Bangladesh’s environment and agricultural products might be unique,
neighboring Southeast Asian countries such as Bhutan, Nepal, India, and Myanmar can
adopt our suggested approach using their statistics. Moreover, with minor adjustments,
our flexible framework can be implemented in agriculture in any country.
Subsequent sections of this paper are arranged as follows: Section 2 explains the back-
ground. Section 3 discusses methodology, system design, and overview and presents how
Sensors 2023, 23, x FOR PEER REVIEW 3 of 23
the system has been implemented. This section also has two algorithms: (I) crop data gen-
eration and (II) harvesting and transplanting time forecasting. Section 4 reports all re-
search and analysis of result data by data mining focused on crop cultivation. Section 5
presents our discussion and future work on our research, and finally, we summarize the
conclusions in Section 5.
2. Related Work
Fan et al. [8] proposed a system framework for establishing an intelligent agriculture
platform using big data analysis and IoT sensor data via cloud technology. Andreas et al.
[9] provide a thorough review of big data analysis in agriculture, analyzing thirty-four
research papers to identify the current applications, challenges, and potential solutions.
Their work highlighted the increasing availability of big data sources, tools, and tech-
niques that can drive innovation and research for smarter farming practices, ultimately
contributing to sustainable agriculture and higher-quality food production. A system
structure was developed in the article [10] to improve the combination of big data and
artificial intelligence in agriculture, where data from IoT sensors was received and stored
in the cloud to monitor the farm. They created a control system based on data manage-
ment and node sensors in crop fields for smartphones and online applications. In the ar-
ticle [11], a system framework was created and built. The framework consisted of three
components: a control box, a web application, and a mobile application. Their method
was put in place to regulate crop irrigation and govern agricultural plots. The solenoid
valve switching procedure by the farmer is controlled by a smartphone app. A survey of
the literature was centered on studies and analyses of the application of IoT in modern
farming [12]. Their research and analysis showed how China can reduce human effort in
agriculture by relying on IoT technology. They presented some categories by analyzing
agricultural system development. By explaining the architecture and applications of cloud
technologies, the researchers in [13] focused on the importance of using IoT and cloud
computing in the agricultural sector. This layered architecture, in conjunction with Radio
Frequency Identification (RFID) technology, is used to automate planting and production.
Doshi et al. [14] proposed an IoT technology that generates messages from their applica-
tions to instruct farmers to suggest smart farming.
As surveyed in the scientific article [15], IoT has been used in a variety of investiga-
tions in recent years. They reviewed modern farm technology and explored a variety of
live monitoring systems for IoT-based applications and wireless sensor networks. They
also discussed well-known technologies that are continually pushing the IoT to improve.
They also listed some of the obstacles we may face when working in agriculture with IoT,
including hardware constraints, networking challenges, technical concerns, resource op-
timization, and mobility. This systematic review [16] delves into the integration of cutting-
edge technologies like predictive modeling algorithms, deep-learning-based sensing, and
big urban data in shaping immersive digital twin cities. By analyzing the recent literature,
the paper establishes the significance of virtual simulation tools, spatial cognition algo-
rithms, and multi-sensor fusion technology in developing sustainable urban governance
networks and data-driven smart city environments. The study provides valuable insights
into the role of the Internet of Things, digital twin modeling, and intelligent sensing de-
vices in building smarter and more connected urban infrastructures. The work proposed
by Nandan et al. [17] provides a literature review by illustrating how climate change af-
fects the agriculture and food security of the Barisal district in Bangladesh. Here, they
discussed the environmental condition of the Barisal district and the impact of rainfall,
drought, waterlogging, thunderstorms, excessive fog, and climate change on agriculture
production. The authors of [18] presented constructive research on the overall status of
technology-dependent agriculture in Bangladesh. A quality-aware autonomous infor-
mation system for agriculture services based on agriculture-related data was developed
in the article [19]. A literature review on the role of Internet of Things technologies in
Sensors 2023, 23, x FOR PEER REVIEW 4 of 23
agriculture that explored the varied effects of IoT in agriculture, the benefits and draw-
backs of IoT devices, and the application layer required for farming in current technology
was introduced in article [20]. The authors of [21] suggested a smart agriculture system
design that enhanced a smart farming system for effective management and control of
agricultural greenhouses through IoT and data mining technology to increase production
in agriculture. They employed IoT technology to collect a large amount of environmental
information from grain greenhouses and used advanced algorithms to pick relatively fa-
vorable data as a clustering method for environmental reference data.
Thomas et al. [22] addressed the various systems, frameworks, and multiple sources
for smart farming. They emphasized the utilization of cloud computing and big data tech-
nology in the development of existing agricultural event systems. An alert system was
proposed in [23] that presents a system framework capable of controlling the amount of
water passing through IoT devices in agriculture. Said et al. [24] proposed a method to
determine the minimum amount of irrigation and the maximum amount of water used
on the plants through an intelligent irrigation plan. By keeping an eye on the water posi-
tion and irrigation schedule of the tomato crop in extremely dry climate conditions, this
approach sought to investigate the efficacy of the Intelligent Irrigation System (IIS) related
to Water Use Efficiency (WE) and Irrigation Water Use Efficiency (IWU) and determine
its viability.
The authors of [25] discussed a proposed framework that aims to balance energy ef-
ficiency and security in precision agriculture. The framework uses hashing as the only
form of advanced encryption, which adds an extra layer of security to the public channel.
Unlike existing management systems, this proposed method does not store public keys.
By allowing on-field sensors to not be directly connected to the sink node, the proposed
system provides significant residual energy savings. Compared to the current aggregation
strategy, the suggested scheme results in about 35% more alive nodes and 32% greater
retention of residual energy. The authors of [26] proposed a trust management approach
for ensuring the security of smart agriculture in the cloud-based Internet of Agriculture
Things (IoAT). The authors suggest that the integration of cloud computing with the IoAT
can significantly improve the efficiency of agriculture, but it also poses security challenges
such as data privacy, integrity, and authenticity. The AgriTrust approach (a trust manage-
ment mechanism that substitutes for conventional cryptography methods) consists of
three main components: a trust model, a trust evaluation mechanism, and a trust manage-
ment mechanism. The trust model defines the trustworthiness of entities in the IoAT, such
as devices, sensors, and cloud servers. The trust evaluation mechanism is used to evaluate
the trustworthiness of entities based on their past behavior and feedback from other enti-
ties. The authors of [27] propose an IoT-based WSN framework that provides an efficient
and secure solution for smart agriculture applications. The proposed scheme’s use of a
hierarchical architecture, data aggregation and compression techniques, and secure data
transfer protocols can significantly improve the efficiency and security of smart agricul-
ture applications. The proposed framework consists of three tiers: the sensor layer, the
intermediate layer, and the application layer. Additionally, they have proposed a secure
data transfer protocol that makes use of Elliptic Curve Cryptography (ECC) and the Ad-
vanced Encryption Standard (AES) to ensure the security of the data transmitted between
the sensor and the application layer.
analyzed data. Figure 1 shows an overview of our overall proposed approach. Figures 7
and 8 show the real-time cloud-based web and mobile application features.
In many precision agriculture studies, algorithms are trained and tested using pub-
licly available datasets, which might not accurately represent real-world scenarios due to
varying soil and weather conditions across countries. To address this concern, we develop
our precision agriculture algorithms using a dataset collected from IoT devices deployed
in actual crop fields. This ensures a more realistic and relevant evaluation of our approach.
We present the detailed steps involved in our algorithms designed for precision in Algo-
rithms 1 and 2.
Commented [M1]: We moved Algorithm 1 after
Algorithm 1: Obtain data from DHT 11, the soil moisture sensor, and control irrigation first citation, please confirm.
water_pump_status (boolean): flag to indicate the status of the water pump (ON/OFF), initialized to false; make them more accessible to readers and more
temperature (float): variable to store the temperature reading from the sensor, initialized to 0.0; representative. The arrangement of two
humidity (float): variable to store the humidity reading from the sensor, initialized to 0.0; algorithms would be ideal. We request that it be
amended moving forward and returned to its
Function wifi_setup():
rightful place.
implement WiFi connection setup through ssid, password;
Sensors 2023, 23, x FOR PEER REVIEW 6 of 23
Function read_soil_moisture_sensor():
Initialize moisture (integer) to 0;
Implement reading data from the soil moisture sensor and store it in the ‘sms_data’ variable;
//sms = soil moisture sensor
Return sms_data.
Function read_temp_hum_sensor():
Initialize temperature and humidity (float) to 0.0.
Implement reading data from the temperature and humidity sensors and store them in the ‘temp_data’ and
‘hum_data’ variables.
Return (data is passed by reference).
Function control_water_pump (on: boolean):
Implement control of the water pump based on the ‘on’ parameter (turn on if ‘true’, turn off if ‘false’).
Return true if successful, false otherwise.
Function irrigation_control():
Call wifi_setup() to set up a WiFi connection.
Check if the WiFi connection is successful:
if true:
Call read_soil_moisture_sensor() to obtain soil moisture data.
Call read_temp_hum_sensor() to obtain temperature and humidity data.
Send data to the cloud.
Function server_setup()
Connect to the server with the provided credentials (server_name, user_name, and password);
Function GetFieldData()
Fetch data from the Cloud URL for retrieving SensorData to the microcontroller;
Extract temperature, humidity, moisture, and pump_status data from the fetched data;
Function CropsData()
Call the “GetFieldData” function.
If the field data is retrieved successfully (not null):
Loop through each row in the field data;
Perform the necessary processing or analysis on the SensorData;
Output “SensorData” for each row (or perform specific actions based on the data);
If the field data is null, output “No result”;
Function CropAnalysisModule()
Check if the current month matches the month obtained from the “getCurrentMonth()” function and if the
temperature and moisture match the data obtained from the “CropsData” function;
This whole system consists of seven parts, as shown in Figure 5, which are: (i) phys-
ical layer: in the physical layer, our physical devices like wireless sensors, solenoid bulbs,
relay modules, analog signal modules, and power sources exist; (ii) link layer: in the link
layer, we have used the Wi-Fi (Wireless Fidelity) network as the coordinator sensor node,
which connects the devices of the encapsulation layer with the devices of the physical
layer; (iii) encapsulation layer: in this layer, we use a NodeMCU device that is able to
communicate with IPv6 (Internet Protocol version 6) in the network security system; (iv)
middleware layer: through this layer, we acquire the data taken from the agriculture land
and environment and send it to the configuration layer; (v) configuration layer: the con-
figuration layer basically collects and analyzes the raw acquired data and sends the data
to its destination in the configuration layer; (vi) management layer: This layer combines
previously acquired data with newly analyzed data, which gives results. On the basis of
that result, the prediction report and other information are managed; and (vii) application
layer: by presenting the data in an organized manner to the end user or farmers through
the application layer, the farmers today can decide what to do next.
Sensors 2023, 23, x FOR PEER REVIEW 10 of 23
on and off depending on the soil moisture sensor data. Additionally, this on-off status is
immediately sent to our application by NodeMCU. If the amount of water in the soil de-
creases, then the solenoid valve opens automatically, and if the amount of water in the
soil becomes balanced according to the program set in the microcontroller NodeMCU,
then the solenoid valve automatically shuts off. The application automatically analyzes
the data from the cloud database and provides monthly crop harvesting and planting in-
formation. In the context of Bangladesh, according to our study, almost all the crops have
a planting time of about 3 months [31]. This mobile or web application has crop calendars
[32] so that the farmers can know about their crop planting, lifting, fertilizer application,
and water quantity properly. At present, about 33 types of crop data have been collected
in our cloud database. A few of the top scientific publications included in Table 1 are con-
trasted with some of the features included in our proposed system for farmers.
Table 1. Comparison of our system framework features with other published research papers.
aids in conserving water resources by intelligently adjusting irrigation in the crop field.
The algorithm combines advanced sensing technology with intelligent water control tech-
niques, making it a promising solution for precision agriculture. Our algorithm can po-
tentially address water scarcity challenges and enhance agricultural productivity.
Figure 7. A cloud application that presents district-based (1) daily real-time weather, (2) weather
forecasts up to 5 days, (3) farmers own profiles, and (4) real monitoring field data.
Sensors 2023, 23, x FOR PEER REVIEW 14 of 23
Figure 8. (1,2) real-time crop forecasts on planting and harvesting, (3) analyzing crop transplant and
harvest time by inputting real-time data, (4) farmers can save their crop information, and (5) gath-
ering knowledge from the crop calendar [32].
Sensors 2023, 23, x FOR PEER REVIEW 15 of 23
I. Pre-processing
The quality of the data determines the quality of the knowledge; hence, this is a cru-
cial phase in the knowledge discovery process. Since the data for temperature and humid-
ity are numerically large and the data for each row is different, we normalize them by the
following formula [33]:
(𝑋−𝑋𝑚𝑖𝑛 )
𝑋𝑛𝑒𝑤 =
(𝑋𝑚𝑎𝑥 −𝑋𝑚𝑖𝑛 )
, (1)
where X = the collection of observed values found in X, Xmin = the minimum value in X, and Xmax
= the highest value in X.
II. Clustering
The process of grouping abstract items into several categories is called clustering.
When N items are divided into a number of clusters using K-Means clustering, each object
is a part of the cluster that is closest to the cluster’s centroid. This method highlights the
maximum possible differences between the different k clusters.
After normalization, we go to the second step and run the dataset using the K-Means
cluster algorithm. In our experiments, we have used k values from 1 to 9 empirically to
find out the closet centroid using elbow methods. The following step with the selected
cluster k will be taken after extracting the value of each centroid using formula (ii) to de-
termine the value of the most ideal k value using the elbow method and our class attribute.
The Sum of Squared Error (SOSE) in Equation (2) and Incorrectly Clustered Instances (ICI)
in Equation (3) of each cluster were covered in Section 4.4 (Data curation and result).
The Sum of Squared Error (SOSE) is expressed as:
̃𝑗 )2 ;
𝑆𝑂𝑆𝐸 = ∑𝑗 ∑𝑖 (𝑌𝑖𝑗 − 𝑌 (2)
where Y represents the observed values, 𝑌̌ represents the predicted values, and this is the mean of
the values of Y.
To identify incorrectly clustered instances using K-Means, it can be expressed as:
𝑑𝑖 < 𝑑𝑗 , for 𝑎𝑛𝑦 𝑗 ≠ 𝑖; (3)
where dj is the distance between a data point and its assigned centroid and is greater than or equal
to 𝑑𝑖 , or if the distance between a data point and the centroid of another cluster is greater than or
equal to 𝑑𝑗 , then the data point is deemed to be erroneously clustered.
The K-Means cluster formula is given in Equation (4) [34–36]:
𝑗
𝐽 = ∑𝑘𝑗=1 ∑𝑛𝑖=1 ∥ 𝑥𝑖 − 𝑐𝑗 ∥2 ; (4)
where J = the objective K-Means cluster function, n = the number of instances, k = the number of
𝑗
clusters, and ||𝑥𝑖 − 𝑐𝑗 ||2 = the Euclidian distance function.
gust to mid-October) are further divisions of the Kharif season (mid-July to mid-Novem-
ber). Winter vegetables, wheat, potatoes, legumes, oilseeds, and boro rice are among the
rabi crops. Summer vegetables, jute, Aus and Aman rice, and other crops are typical of
the Kharif season. This collection contains information on a total of 103 distinct Bangla-
deshi crops. Our datasets are available through the cloud-based Mendeley Data repository
[38].
Cluster
Cluster 1 Cluster 2 Cluster 3 Cluster 4 Cluster 5 Cluster 6 Cluster 7 Cluster 8 Cluster 9
Number
SOSE 429.81 411.61 386.19 354.58 330.87 322.56 314.86 300.43 296.14
ICI 56 49 54 65 68 72 74 77 80
A graphical representation of SOSE and ISI for each cluster is shown in Figure 9a,b.
From Figure 9a, it can be seen that the SOSE of each cluster from cluster 3 to 6 is between
300 and 390. On the other hand, in the ICI of Figure 9b for each cluster, a sharp increase is
visualized from cluster 3 to 4, followed by a steady increment. Additionally, since we are
working on the dataset based on the season, we also have three common attributes for the
season, which are Kharif-I, Robi, and Kharif-II. Therefore, we decide to keep k = 3 as our
clustering parameter for our dataset.
Sensors 2023, 23, x FOR PEER REVIEW 17 of 23
Figure 9. (a) Line chart of the SOSE of each cluster. (b) Clustered column chart of the ICI of each
cluster.
88
86
Correctly Classified instances
84
82
80
78
76
74
Decesion Naïve Multilayer KNN
Tree Bayes Perceptro
n
Correctly Classified
87.3786 79.6117 86.4078 79.6117
instances (%)
Figure 10. Accuracy comparison of DT, NB, MLP, and KNN classifiers.
From Figure 10, we can observe that the output of the correctly classified instance of
the DT classifier is higher than that of other classifiers. So, we use the DT classifier on our
cluster dataset for the final analysis. The results of our final correctly classified accuracy
analysis are 87.3786%, as shown in Table 3 and Figure 11, through detailed accuracy by
class and a confusion matrix of 103 instances. Precision measures the certainty of positive
predictions. A value close to high (1) is considered a good precision score. Since the value
of precision in Table 3 is almost close to one, we can conclude that our dataset has a good
precision score. Similarly, as the recall score and F-measure score mentioned in Table 3
are close to high (1), we consider that the score of our dataset is very good.
The NodeMCU is also connected to a water pump. The data from all these wireless
sensors and the status of the water pump are sent to our cloud database via the NodeMCU
API of the control box. The real-time data is shown to the farmers via the application from
the cloud database. We selected a test area as a testbed that is 42.75 square feet in size
(length 9.5 feet and width 4.5 feet) so that our structure may be used experimentally. We
set up various sensors on the ground in this test area along with the control box, the spe-
cifics of which are displayed in Table 4. We transplanted 16 to 17 eggplant seedlings in
our testbed and took the experimental data. Our testbed soil is a non-calcareous, dark gray
floodplain soil. We experimentally collected 15 days of real-time data from the testbed in
August and September 2020. When a vast region is involved, the parameters listed in Ta-
ble 4 can be expanded by mesh connections. However, caution must be exercised to pre-
vent rain and extremely hot or cold weather from harming the gadgets.
of plant management, and avoid wastage of both time and water due to automatic water
management. Farmers will also receive daily and weekly weather forecasts based on the
location of their agricultural land. As a result, by being vigilant in advance, the farmer can
establish an appropriate strategy for harvesting the crop. Our application has a crop cal-
endar with accurate information on 30 to 33 species of crops, detailing what farmers can
do to plant, produce, harvest, and much more. As a result, they can use this calendar to
work on planting or any other crop-related information without having to wait for the
agricultural officer. The ability for farmers to save details about their planted crops in our
program is one of the most intriguing aspects. As a result, the farmer will be informed
automatically by our system during harvesting the crop. Basically, several physical layer
properties and associated layer features have been covered in the proposed section of our
research effort. Additionally, we demonstrate our proposed framework pattern for anal-
ysis through data mining in the performance analysis section. Although a good deal of
the literature is focused on the agriculture monitoring system, there are not many auto-
mated agricultural monitoring, forecasting, or system architectures with several features
that we incorporate in our system. Our framework is one of the most feature-rich moni-
toring systems for agriculture in Bangladesh. In addition, we created a new dataset [15]
that will help researchers do further investigations from the perspective of Bangladesh
agriculture in the future. We carried out our experiments on an experimental prototype
based on Agriculture Statistics Bangladesh 2020 [5] data. Our experimental results can be
applied in real-life situations to monitor agriculture.
One of the challenges in this work is to collect data on crop yield, planting, and season
information in Bangladesh. More data can be collected in the future, and the data model
and data analysis can be further improved. If the Message Queuing Telemetry Transport
(MQTT) protocol can be added to our proposed system, it will become a more optimized
system. However, we have introduced a cloud-based application instead of the MQTT
protocol by providing a web-based application suitable for end users. In our framework,
we have used a NodeMCU with an ESP8266 as the microcontroller unit in the control box,
which is completely dependent on the Wi-Fi network. If we could use the mentioned mi-
crocontroller through the GPRS (General Packet Radio Service) network instead of an-
other microcontroller, then it would be more useful to farmers in remote areas who do not
have the technology to use smart phones or smart networks. While numerical data can be
presented or transmitted without the integration of IoT devices, such a system may not
effectively address real-world problems and provide comprehensive solutions. Addition-
ally, the improvement of our physical gadgets’ outward structures is essential to keeping
them functional and active for an extended period of time.
6. Conclusions
The proposed method holds the potential to benefit farmers, agricultural resource
managers, researchers focusing on Bangladesh agriculture, and individuals interested in
engaging with the country’s agricultural industry in the future. In this work, we collected
data from various sources and created a dataset for our model. We analyzed the dataset
in three steps: data pre-processing (data quality check and normalization), clustering to
select an appropriate cluster dataset, and running various algorithms on the selected clus-
ter for final data analysis. Our model achieved an accuracy of 87.3786%. Additionally, we
included a crop informative calendar feature, providing farmers with crucial information
about crop cultivation from sowing to harvesting. This work might inspire other research-
ers to explore and expand such a real-time monitoring system further. Such a system can
help farmers predict the optimum time to plant their crops. Our work might bring im-
pactful success to the agriculture environment in Bangladesh.
Author Contributions: Conceptualization, M.B.R., J.D.C., S.I. and M.A.I.; Methodology, M.B.R.,
J.D.C., S.I. and M.A.U.; Validation, S.I., M.A.U. and M.A.I.; Formal analysis, M.B.R., A.M., S.I., M.A.I.
Sensors 2023, 23, x FOR PEER REVIEW 22 of 23
and S.A.; Data curation, M.B.R, J.D.C, A.M. and S.A.; Writing – original draft, J.D.C.; Writing – re-
view & editing, M.B.R., A.M., M.A.U and S.A.; Supervision, M.B.R.; Project administration, J.D.C.;
Funding acquisition, S.I. All authors have read and agreed to the published version of the manu-
script.
Funding: This research was funded by the United States Department of Agriculture – National
Institute of Food and Agriculture (USDA-NIFA) grant number GR019237 and the APC was funded
by The Principal Investigator (PI): Prof. Shahidul Islam.
Institutional Review Board Statement: Not applicable.
Institutional Review Board Statement: Not applicable.
Data Availability Statement: On request, we might provide the data.
Conflicts of Interest: The authors declare no conflict of interest.
References
1. FAO. Bangladesh|FAO Regional Office for Asia and the Pacific|Food and Agriculture Organization of the United Nations.
Home|Food and Agriculture Organization of the United Nations. Available online: https://www.fao.org/asiapacific/perspectives/ag-
ricultural-statistics/global-strategy/results-in-the-region/bangladesh/en/. (accessed on 10 June 2020).
2. Tabassum, N.; Rezwana, F. Bangladesh Agriculture: A Review of Modern Practices and Proposal of a Sustainable Method. Eng.
Proc. 2021, 11, 12. https://doi.org/10.3390/ASEC2021-11190.
3. Stočes, M.; Vaněk, J.; Masner, J.; Pavlík, J. Integrated Farming Systems—A Review. IOSR J. Agric. Vet. Sci. 2014, 7, 36–42.
4. Smart Agriculture for Smart BangladeshA2i, n.d. Available online: https://a2i.gov.bd/smart-agriculture-for-smart-bangladesh/
(accessed on 14 March 2023).
5. Stoces, M.; Vanek, J.; Masner, J.; Pavl´ık, J. Internet of things (IoT) in agriculture—Selected aspects. Agris Line Pap. Econ. Inform.
2016, VIII, 83–88.
6. Ray, P.P. Internet of things for smart agriculture: Technologies, practices and future direction. J. Ambient. Intell. Smart Environ.
2017, 9, 395–420.
7. Kamienski, C.; Soininen, J.-P.; Taumberger, M.; Fernandes, S.; Toscano, A.; Cinotti, T.S.; Maia, R.F.; Neto, A.T. Swamp: An oT-
based smart water management platform for precision irrigation in agriculture. In Proceedings of the 2018 Global Internet of
Things Summit (GIoTS), Bilbao, Spain, 4–7 June 2018.
8. Tseng, F.-H.; Cho, H.-H.; Wu, H.-T. Applying Big Data for Intelligent Agriculture-Based Crop Selection Analysis. IEEE Access
2019, 7, 116965–116974. https://doi.org/10.1109/access.2019.2935564.
9. Kamilaris, A.; Kartakoullis, A.; Prenafeta-Boldú, F.X. A review on the practice of big data analysis in agriculture. Comput. Elec-
tron. Agric. 2017, 143, 23–27.
10. Wolfert, S.; Ge, L; Verdouw, C.; Bogaardt, M.J. Big data in smart farming—A review. Agric. Syst. 2017, 153, 69–80.
11. Muangprathub, J.; Boonnam, N.; Kajornkasirat, S.; Lekbangpong, N.; Wanichsombat, A.; Nillaor, P. IoT and Agriculture Data
Analysis for Smart Farm. Comput. Electron. Agric. 2019, 156, 467–474. https://doi.org/10.1016/j.compag.2018.12.011.
12. Muangprathub, J.; Boonnam, N.; Kajornkasirat, S.; Lekbangpong, N.; Wanichsombat, A.; Nillaor, P. Internet Of Things Moni-
toring System Of Modern Eco-Agriculture Based On Cloud Computing. IEEE Access 2019, 7, 37050–37058.
https://doi.org/10.1109/access.2019.2903720.
13. TongKe, F. Smart Agriculture Based On Cloud Computing And IoT. J. Converg. Inf. Technol. 2013, 8, 210–216.
https://doi.org/10.4156/jcit.vol8.issue2.26.
14. Doshi, J.; Patel, T.; Bharti, S.K. Smart Farming Using IoT, A Solution for Optimally Monitoring Farming Conditions. Procedia
Comput. Sci. 2019, 160, 746–751. https://doi.org/10.1016/j.procs.2019.11.016.
15. Farooq, M.S.; Riaz, S.; Abid, A.; Abid, K.; Naeem, M.A. A Survey on the Role of IoT in Agriculture for the Implementation of
Smart Farming. IEEE Access 2019, 7, 156237–156271. https://doi.org/10.1109/access.2019.2949703.
16. Nica, E.; Popescu, G.H.; Poliak, M.; Kliestik, T.; Sabie, O.-M. Digital Twin Simulation Tools, Spatial Cognition Algorithms, and
Multi-Sensor Fusion Technology in Sustainable Urban Governance Networks. Mathematics 2023, 11, 1981.
https://doi.org/10.3390/math11091981.
17. Akter, T.; Mukherjee, N.; Khan, A.M.; Rahman, F. Climate change impact on agriculture and food security of Barisal district. In
Proceedings of the International Conference on Climate Change in Relation to Water and Environment (I3CWE-2015), Dhaka
University of Engineering and Technology, Gazipur, Bangladesh, 12-14 April 2015; pp. 9–11.
18. Syeed, M.M.; Islam, M.A.; Fatema, K. Precision Agriculture in Bangladesh: Need and Opportunities. Precis. Agric. 2020, 29,
6782–6800.
19. Singh, S.; Chana, I.; Buyya, R. Agri-info: Cloud based autonomic system for delivering agriculture as a service. Internet Things
2020, 9, 100131.
20. Farooq, M.S.; Riaz, S.; Abid, A.; Umer, T.; Zikria, Y.B. Role of IoT Technology in Agriculture: A Systematic Literature Review.
Electronics 2020, 9, 319.
Sensors 2023, 23, x FOR PEER REVIEW 23 of 23
21. Li, C.; Niu, B. Design of smart agriculture based on big data and Internet of things. Int. J. Distrib. Sens. Netw. 2020, 16,
1550147720917065.
22. Lytos, A.; Lagkas, T.; Sarigiannidis, P.; Zervakis, M.; Livanos, G. Towards smart farming: Systems, frameworks and exploitation
of multiple sources. Comput. Netw. 2020, 172, 107147.
23. Karim, F.; Karim, F.; Frihida, A. Monitoring system using web of things in precision agriculture. Procedia Comput. Sci. 2017, 110,
402–409.
24. Mohammad, F.S.; Al-Ghobari, H.M.; El Marazky, M.S. A.Adoption of an intelligent irrigation scheduling technique and its effect
on water use efficiency for tomato crops in arid regions. Aust. J. Crop Sci. 2013, 7, 305–313.
25. Nagaraja, G.S.; Vanishree, K.; Azam, F. Novel Framework for Secure Data Aggregation in Precision Agriculture with Extensive
Energy Efficiency. J. Comput. Netw. Commun. 2023, 2023, 5926294.
26. Awan, K.A.; Din, I.U.; Almogren, A.; Almajed, H. AgriTrust—A Trust Management Approach for Smart Agriculture in Cloud-
based Internet of Agriculture Things. Sensors 2020, 20, 6174. https://doi.org/10.3390/s20216174.
27. Haseeb, K.; Din, I.U.; Almogren, A.; Islam, N. An Energy Efficient and Secure IoT-Based WSN Framework: An Application to
Smart Agriculture. Sensors 2020, 20, 2081. https://doi.org/10.3390/s20072081.
28. Hassan, Z.; Abhijeet; Sharma, A. Internet of Life (IOL); International Conference of Advance Research and Innovation (ICARI-
2015), International Journal of Advance Research and Innovation, New Delhi, India, 31 January 2015; ISBN 978-93-5156-328-0.
29. ESP8266 Wi-Fi MCU I Espressif Systems, n.d. Available online: https://www.espressif.com/en/products/socs/esp8266 (accessed
on 21 Spetember 2021).
30. Papp, D. ESP8266 Web Server Saves 60% Power With A 1 Ms Delay. Hackaday. Available online: https://hacka-
day.com/2022/10/28/esp8266-web-server-saves-60-power-with-a-1-ms-delay/ (accessed on 28 October 2022).
31. BBS. Yearbook of agricultural statistics of Bangladesh 2020. In Bangladesh Bureau of Statistics; Ministry of Planning, Dhaka, Bang-
ladesh, May 2021 (accessed on 8 October 2021).
32. Crop Calendar Produced By BARC. Cropcalendar.Barcapps.Gov.Bd, 2021. Available online: http://cropcalendar.barcapps.gov.bd
(accessed on 8 January 2022).
33. Normalization Formula, Normalization Formula|Calculator (Examples with Excel Template), EDUCBA, 2021. Available online:
https://www.educba.com/normalization-formula/ (accessed on 11 February 2022).
34. K Means Clustering Using Weka - Geeksforgeeks, Geeksforgeeks, 2021. Available online: https://www.geeksforgeeks.org/k-
means-clustering-using-weka/ (accessed on 11 February 2022).
35. K-Means, Saedsayad.Com, 2021. Available online: https://www.saedsayad.com/clustering_kmeans.htm (accessed on 11 Febru-
ary 2022).
36. Witten, I.H.; Frank, E.; Hall, M.A.; Pal, C.J.; Data, M. The WEKA Workbench. Online Appendix for Data Mining: Practical Machine
Learning Tools and Techniques, 4th ed.; Morgan Kaufmann: Burlington, MA, USA, 2016.
37. Mirza Hasanuzzaman, Hasanuzzaman.Weebly.Com.. Available online: https://hasanuzzaman.weebly.com/up-
loads/9/3/4/0/934025/cropping_season.pdf (accessed on 10 September 2020).
38. Chakma, Joy Dhon; RAHMAN, MD. BAYAZID 2023, Bangladesh Agricultural Datasets, Mendeley Data, V6. Available online:
https://data.mendeley.com/datasets/8pvfs5wyzf (accessed on). https://doi.org/10.17632/8pvfs5wyzf.6.
39. Brownlee, J. A Gentle Introduction to K-Fold Cross-Validation. Mach. Learn. Mastery 2021. Available online: https://ma-
chinelearningmastery.com/k-fold-cross-validation/ (accessed on 19 March 2022).
40. Bytenskaya, Y. Decision Tree Classification Using Weka, Academia.Edu, 2021. Available online: https://www.aca-
demia.edu/19022730/Decision_Tree_Classification_Using_Weka?source=swp_share (accessed on 28 March 2022).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual au-
thor(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to
people or property resulting from any ideas, methods, instructions or products referred to in the content.