Abstract
In many countries, locusts have significantly harmed agricultural production. To prevent their spread, the Agriculture Robot (Agribot) with cutting-edge technologies like the Internet of Things (IoT) and Machine Learning (ML) can be a possible solution. Thus, this study presents an astute way to develop an Agribot using IoT, ML, and DL-based architecture for detecting locusts in agricultural fields. The IoT framework ensures proper automation by utilizing various agriculture-related sensors, a centralized Android application, and an IoT cloud server. In contrast, the ML and DL methods include several pre-trained Convolutional Neural Network (CNN) models with conventional ML classifiers and a nature-inspired algorithm such as Artificial Bee Colony (ABC) and the SVC feature selector. To assess the proposed system’s efficacy, experimental data have been collected and interpreted accordingly. This research achieved the highest accuracy of 99.51% in locust detection using the VGG19 pre-trained CNN model with Logistic Regression (LR) and the SVC feature selector. In addition, the Agribot operated efficiently at a satisfactory speed in agricultural fields with live video streaming. The maximum speed of the Agribot was recorded at 0.3048 m/s. Furthermore, the study obtained a SUS score of 86% for the developed system. Although the system performs well in locust detection and automation in real field conditions, the research also identified some limitations during the study and implementation. However, the developed application demonstrates strong feasibility for real-time locust detection in agricultural fields.
Similar content being viewed by others
Introduction
The Internet of Things (IoT) refers to a system linked with various types of networked devices and operational programming devices over the Internet. The IoT-based framework enables process automation, reduces waste, and improves services, lowering production and delivery costs and assuring customer interaction transparency1. The IoT has already had an enormous influence, particularly in the area of agriculture2. Through the extensive use of a wide variety of agricultural sensors and microcontrollers, the IoT makes a significant contribution to the management of waste, as well as to smart irrigation, crop cultivation, weed monitoring, pest prevention, and even in the development of Agricultural Robot (Agribot)s2. Agribots are particularly efficient in farmers’ occupations, boost processing quality, and minimize the industry’s reliance on manual labor3. There are numerous types of Agribots, including (1) Demeter, (2) Weed control robots, (3) Forester robots. (4) Horticulture robot, (5) A robot that picks fruit. These automated systems significantly minimize human labor in harvesting, smart irrigation, seed distribution, weed control, and even crop mashing. On the other hand, Machine learning (ML) and Deep Learning (DL) have been used in novel ways to help farmers and agricultural employees improve early detection of pests and diseases, crop yields, and crop quality4. In addition, ML and DL techniques show immense promise for usage in agriculture, where they could supply critical information such as soil quality, optimal planting and spraying timings, and pest-infested places. These strategies have been used all across the world to help farmers keep an eye on their crops5. A large range of ML and DL-based solutions have been created to provide farmers with data-driven decision-making assistance tools. This phenomenon will help farmers safeguard and improve crop quality and yield while reducing the pesticides they need. So, any real-world solution paired with IoT and ML, particularly in agriculture, will provide incalculable results.
Again, crop production consistently faces multiple challenges from infectious diseases, insects, and pests. Plant diseases and pest infestations account for 20–40% of global agricultural production losses, with estimated costs to the global economy ranging from $220 billion to $70 billion yearly6. There are many different kinds of destructive insects in the world, but locusts are the most prevalent kind that damages crops and even green leaves. The locusts are various species of short-horned grasshoppers of the Acrididae family. Different types of locusts are found worldwide, including Desert locusts, Migratory Locusts, the Australian Plague Locust, the Red Locust, and the Rocky Mountain Locust. No taxonomic distinction exists between locust and grasshopper species; the classification is based on whether a species creates swarms under intermittently favorable circumstances7. In addition, when there are appropriate conditions of drought followed by rapid vegetation growth, the production of serotonin in their brains triggers a significant sequence of transformations: they begin to reproduce in large numbers, becoming social and migratory when their populations reach a high density. They organize into groups of wingless nymphs, which subsequently transform into swarms of winged adults. Both the bands and the swarms of insects fly around and rapidly remove vegetation from fields, resulting in crop damage. The adult insects possess exceptional flight capabilities, enabling them to cover vast distances. They consume substantial amounts of green vegetation in the areas where the Swarm settles8. These insects are generally solitary, but they grow more numerous in certain situations, change their behavior, and become more gregarious8. Locusts are found all across the world, although they are particularly devastating in Africa’s subsistence agriculture zones. In Somalia, a national emergency has been declared due to the swarming. Ethiopia and Kenya are trying to keep the pandemic alive, and swarms have moved over the Arabian Peninsula and onto both sides of the Persian Gulf8. Furthermore, desert locusts can readily move with the wind and traverse more than 90 miles each day, often traversing the Red Sea, which is 186 miles wide, with the capacity to stay in the air for extended periods8. Therefore, early detection of locusts in agricultural fields can reduce crop destruction and save the greatest quantity of food and harvesting.
Thus, the study aims to examine and determine the agricultural scope of IoT and ML-based Agribot. It also explores the intriguing issues, difficulties, and practical implications for decision support, information management, and the deployment of farmer and regular user assistance systems. This study made the following contributions:
-
To develop an Agribot using the principles of IoT and ML approaches identify locusts in agricultural fields.
-
To implement and use the number of cloud-based IoT sensors used to monitor the status of farm.
-
To efficiently identify the locust using the core machine learning principles and a cloud-based nature-inspired algorithm such as Artificial Bee Colony (ABC).
-
To combine all aspects in order to achieve total automation in the agriculture industry.
The manuscript is classified into 5 five sections. Section two describes the background study of the previous works related to this research. Section three reflects the proposed methodology and the working principles of the evert modules of the research. Section fours provides the results associated with this research. Finally, section five illustrates the conclusion with the existing drawbacks and future scopes.
Related studies
This section provides a contextual study of the existing solutions. Many great contributors have placed some significant contributions in the field of Locust detection, more specifically, locust detection and classification with Machine Learning (ML) and Deep Learning (DL) along with Internet of Things (IoT) embedded systems.
Literature search method
This research reviewed the literature on four interconnected parameters: identification, screening, eligibility, and inclusion. Figure 1 shows the corresponding literature review methodology of this manuscript.
In this Figure, the research has performed identification on the records of 102 articles. After that, a screening procedure is performed to find duplicate papers. Ninety-five papers are extracted from the screening procedure. Then, we achieved an eligibility operation on the exclusion criteria. Finally, we have taken 15 articles for the literature review.
Literature reviews
An insect damage detector trained on two distantly related plant species (Quercus bicolor and Onoclea sensibilis) was used to automate herbivorous data extraction from herbarium specimens9. While detecting and classifying two types of damage simultaneously, accuracy was mixed at 45%. These models are being improved so researchers may extract and apply similar data to their biological assumptions. The paper10 explored the technology and scientific states-of-the art of using sensors to detect and monitor insect pests automatically. The report focused on the methods of recognizing infrarouge sensors, sound sensors, and image classifications based on pests, presenting the various systems available, implementation examples, and emerging technologies, like machine learning or the IoT. Besides, the paper11 evaluates supervised machine learning such as Linear Discriminant Analysis (LDA), Decision Trees (DT), Support Vector Machine (SVM), K-Nearest Neighbors (KNN), and Naïve Bayes (NB) for recognizing mosquitoes using optical signals. The algorithms were trained to identify mosquito species, sex, and gravidity in New Jersey, USA, utilizing predictor variables from wingbeat frequency and optical cross-section. They found that the Support Vector Machine is the best machine learning method for mosquito identification, performing 0.65 to 7.3% better on all tests. The Support Vector Machine outperformed the second-best algorithm for complicated tasks by almost 2%. The best algorithm for real-world study with several mosquito species at one site was it. Linear Discriminant Analysis, which was 0.65% better than all Support Vector Machine jobs and most efficient for mosquito gravity, came a close second. Decision Trees was practically flawless at determining the sex of a single mosquito species with 99.9% precision, 1.3% better than the second-best algorithm.
Besides, the authors of the paper12 addressed feed-forward neural network (FNN) training challenges by applying a newly created meta-heuristic Locust Swarm Optimization (LSO). Their method was used in a series of experiments to examine the proposed approach’s capabilities and performance. According to the paper13, the ResNet-Locust-BN model leveraged with CNN to identify locust species and instars. A BatchNorm function beyond each convolution layer improves the network’s stability, convergence speed, and classification accuracy in this ResNet-based model. The model was trained using the collected locust images from the field. After testing the activation function, starting learning rate, and batch size, the author had utilized ReLU. Experimental results reveal that the ResNet-Locust-BN model can distinguish AM locusts from rice and cotton locusts (93.60 and 97.80% accuracy, respectively). The model identified AM locust growth state details with 90.16% accuracy (third-instar (77.20%), fifth-instar (88.40%), and adult (93.80%). This is higher than AlexNet (73.68%), GoogLeNet (69.12%), ResNet18 (67.60%), ResNet50 (80.84%), and VGGNet (81.70%).
On the other hand, the authors of the paper14 developed a control mechanism to position the seed at a given distance from two seeds to the seedlings when they were planted. This multipurpose device provides an advanced method for weaving, plowing, and watering crops with minimum human power and labor to make it an effective vehicle. The computer can cultivate the field by considering individual rows and particular columns at a fixed distance depending on the crop. Besides, the paper aims to use emerging technology, i.e., IoT and Bluetooth, resulting in Smart Farming. The entire measurement, collection, and monitoring process is built with microcontroller-interfaced motors & sensors. Further, the article14 proposed an intelligent Agribot water frame system intended to reduce water and increase supplies of crops using the Internet of Things (IoT) for agricultural industries. The proposed IoT-Agribot would raise the water framework, increase cost-effective water use, and cut the workforce to precision farming. The proposed system15 aimed to design autonomous agriculture Robotic multifunctional vehicles for crop plowing, seed sowing, and irrigation. This robotic vehicle was a farming machine with substantial power and a high degree of soil clearance. The author of the paper presented IOT based grass cutter required for cutting grass in the gardens. Various sensors helped to find unwanted obstacles in the field. The proposed model was implemented with Arduino, LCD display, motor driver, and power supply circuit. The LCD was used for better-receiving commands from the user. A Solar grass cutter was a machine that cut grasses of equal length. The paper’s authors proposed an important analysis of different methods for selecting crops, sowing crops, weed detection, and device monitoring to generate a profitable production. The article16 aimed to design, grow and produce the Agribot, a multipurpose bot capable of carrying out all farming operations, including plowing field soil, plugging field seeds, planning the field by use of the plowing leveler, watering crops, fertilizing and camera-controlled Agribot. The project16 was intended to create and produce an intelligent seed plant robot for agricultural purposes. This intelligent seed robot included a robot arm to seed the agro plants from the container seeds. To categorize desert locust presence, the author17 introduced new data from the SMAP satellite and used a variety of machine learning approaches in our species distribution model. The authors achieved relatively satisfactory model results for identifying the possibility of availability and potential breeding areas based on environmental parameters (KAPPA & TSS = 0.901 and ROC = 0.986). The most critical variables under varied time scenarios were surface temperature, NDVI, and root zone soil moisture. In addition to strengthening MODIS’ NDVI product as a trustworthy environmental predictor, this study demonstrated the SMAP satellite’s capacity to retrieve key temperatures as time progressed.
Based on the discussion, the authors of the papers discussed papers had only focused on developing insect detection mechanisms and processes using machine learning and deep learning. One of the articles developed an agricultural robot with IoT and robot. Still, no strategy had been adopted to detect and monitor Locust in real-time using modern technology such as IoT cloud servers, deep learning, and Android application. But, this work demonstrates an intelligent approach to developing an Agribot for identifying locusts in the agricultural field using IoT, ML, and DL-based architectures. The IoT component offers the right automation by utilizing numerous agricultural-related sensors, a centered Android application, and an IoT cloud server. The ML and DL technique, on the other hand, incorporates some pre-trained Convolutional Neural Network (CNN) models with traditional ML classifiers and a nature-inspired algorithm like Artificial Bee Colony (ABC) and SVC feature selector. Thus, the proposed solution provides complete automation with IoT and an effective way to detect locusts in the agricultural field.
Proposed methodology
This section is classified into three interconnected sub-sections. The first part describes the working principles of Machine Learning (ML) and Deep Learning (DL) and associated observable annotations. The second part provides the operational principles of the IoT-based solution, along with its orientation and embodiment. Finally, the third presents the working procedure of IoT-based cloud servers18. Figure 2 shows the overall graphical abstract of the proposed solution.
The Figure is partitioned into four interconnected sections. In the first portion, the locust detection criteria are depicted. Raspberry Pi and a camera module are mounted to detect the insect19. The Raspberry Pi camera module is responsible for detecting locusts in the agricultural field with the aid of Raspberry Pi. The Raspberry Pi processes the detected information to the Agribot. Secondly, An Agricultural Robot is set for the right movement in the field. Thirdly, a smartphone application is implemented to monitor and operate the Agribot and overall system, where the app is connected to the system through Bluetooth. Finally, a cloud server is also implemented to check the data monitoring when connected with a cloud server through Wi-Fi.
Figure 3 shows the breakdown of the orientation of the proposed model including the integration of the DL and ML methods after capturing an image along with the IoT orientation. In this figure, after system detecting the single image of the locusts, it sends to the raspberry Pi. The Pi then applied some image processing techniques. The trained model then applied to extract the features and on the extracted features ML classifiers have been applied to find the decision whether the locust has been detected or not. Also, the figure also suggests the orientation of the IoT sensors data and visualization of the IoT data in the cloud.
The working principles of ML and DL
This section reflects the proposed basic interpretations of Machine Learning (ML) and Deep Learning (DL) based pipelines. Figure 4 shows the corresponding pipeline for locust detection. In this diagram, the dataset is initially gathered from secondary sources. Following that, a set of images pre-processing such as filtering based on the value of the Mean Square Error (MSE) and Peak Signal to Noise Ratio (PSNR) was used to enhance the dataset. The preprocessed and filtered images are then fed into pre-trained Convolutional Neural Network (CNN) models, which extract the key attributes from the signal image. Then, the research used feature-optimization techniques to extract the best characteristics from the obtained imagery features20. Subsequently, the dataset is divided into two identical portions: training data and test data, with the training data utilized by machine learning models employing established conventional methods to obtain experimental results. Test data has been utilized to evaluate performance analysis metrics. Subsequent to obtaining the experimental results, a set of assessments are conducted.
The images are collected from secondary data sources like Mendeley data, Kaggle, DataIo and IEEE data. This research mainly contains images of three identical species. Table 1 shows the corresponding samples of the collected Locust Species. In this table, it clearly shows that we have collected mainly three species of the locust images such as Desert Locust, Australian plague locust, Migratory locust. After collecting the locust images, we have collected the images of the agriculture field. These agriculture field’s images include the paddy field, tomato field, jute field and potato field. Thus, the images for this research are classified into two identical classes: with-locust and without-locust. More than 1000 + images have been used to extract the features where 505 belongs with locust and the rest of the images fit for the without locust classes. Table 2 shows the corresponding experimental images for extracting the features.
Method for extracting features from CNN models
This study has utilized three well-established pre-trained CNN models to extract features from an indivosual image of a locust. Figure 5 illustrates the framework of the respective pipelines for feature extraction techniques in this study. In this diagram, the system initially extracts files from the dataset to provide the pre-trained models with the images20. Three standard pre-trained CNN architectures were employed in succession to derive feature vectors from images: VGG19, ResNet50, and InceptionV3. Seven standard classifiers were employed to classify the images after the feature extraction process. To utilize the most effective features, algorithms inspired by nature have been implemented, and the approach for feature selection has been carried out. Subsequently, the system assesses performance according to their primary categories. The entire pipeline employs Algorithm 01 to derive feature vectors from a designated image.
Additionally, this study outlines the framework of the pre-trained CNN model that has yielded promising results in locust detection. Figure 6 illustrates the architecture of the VGG19 model within our proposed machine learning pipeline. Using a limited dataset, VGG19 is adjusted by modifying certain layers to mitigate the risks of overfitting21. This architecture features a pre-trained model that includes a series of Convolutional Layers (CL) along with one or more Fully Connected (FC) layers. The model consists of two interrelated sections. The initial segment illustrates the process of feature extraction, progressing from the input layer to the concluding max-pooling layer. The second section illustrates the residual network of the model, which plays a crucial role in the categorization process. The proposed approach focuses on utilizing the VGG19 model mainly for feature extraction, thereby omitting the classification component in this investigation. The model employing VGG19 processes 224 × 224 × 3 locust color images and extracts 4096 significant features from the final layer of the feature extraction component for each image21,22. Again, the pre-trained ResNet50 CNN architecture has been utilized in this study to extract features from individual image data. ResNet50 consists of 50 layers and approximately 2 million parameters. The initial segment comprises 64 kernels, incorporating a max-pooling layer, a convolution layer, and a fully connected layer. The augmentation layer allows for the occurrence of degradation issues and addresses the problem of disappearance. This study employs ResNet50 solely for the purpose of feature extraction, without incorporating a classifier. The ResNet50 model in this framework takes an input image size of 224 × 224 × 3 and produces an output of 2048 features from the final layer of the feature extraction section for each image. Figure 7 illustrates the architecture of the associated pre-trained CNN model21. The input image for the model is 224 × 224 pixels, as illustrated in this figure. The convolution was then occupied by 50 layers and 20 million parameters, utilizing 64 kernels and fully connected layers. The models generate the features of 2048 from each locust’s images23.
The proposed DL & ML based pipeline for feature extraction from a individual image of the locust with pretrained models as DL models and ML classifiers21.
The corresponding architecture of the VGG19 pre-trained CNN model to extract the feature vectors by using layer-0221.
Feature selection with SVC
Linear Support Vector Classifier (SVC) deals with the specific problem. The SVC’s overall purpose is to fit the data and deliver the “best feature” hyperplane to categorize the data from a given dataset24. The SVC feature selection in the proposed model operates as shown in Algorithm 02.
Classifiers
This paper uses ML approaches to extract characteristics from instances of Locusts. The study employs well-known classifiers present in contemporary ML practice21. The final model is built using seven different classifiers, including Support Vector Machine (SVM), Random Forest (RF), Decision Tree (DT), Naive Bayes (NB), Extreme Gradient Boosting (XGB), K-Nearest Neighbor (KNN), and Logistic Regression (LR)25.
The application of nature-inspired algorithms in feature selection
This research has applied the Artificial Bee Colony (ABC) to optimize the detection of the Locust. ABC algorithm is mainly based on swarm intelligence. This algorithm has executed the tasks better than other stochastic algorithms26. The ABC algorithm was selected for feature selection due to its strong balance between exploration and exploitation, simplicity with fewer control parameters, and proven effectiveness in high-dimensional feature spaces. Its lightweight nature also made it highly suitable for integration with our IoT and DL/ML-based framework. The ABC algorithm is determined by a collection of honeybees’ sophisticated foraging activity. ABC has three different types of agents: worker bees, observer bees, and scout bees. The molecule’s subdivided adjacency matrix represents these bees. The algorithm passes through three stages: engaged, observer, and scouting. During the engaged phase, a collection of viable options is generated by modifying one group at a time. During the observer phase, observer bees analyze these solutions and rank them from best to worst based on their significant features. Eventually, if a solution is not improved after a given number of iterations, it is abandoned and replaced with a new solution during the scouting phase. The method cycles through these steps until a near-optimal solution is found. The short overview of the ABC algorithm is shown in Fig. 8 and 9 shows the working mechanism flowchart of ABC in this proposed solution.
The working principles of IoT-based Agribot
This subsection presents the working mechanism of Internet of Things (IoT) based Agribot. Figure 10 illustrates the proposed overall diagram of the Agribot. The proposed scheme is implemented with temperature sensors, humidity sensors, soil moisture sensors, and a microcontroller called ESP32 CAM. The Agribot moves through the power supply from 9 V DC power sources. The ESP32 CAM module captures live streaming and sends the data to Agribot, and Agribot transmits the respective streaming to an Android application via a Wi-Fi connection. A Bluetooth connection is also mounted with the Agribot in case of failure of the Wi-Fi connection. These concurrent connections are responsible for the Agribot’s correct movement and for avoiding oncoming obstacles.
Working principles of Agribot
Moreover, Fig. 11 shows the working principle of the proposed Agribot. In this Figure, the system initializes with the microcontroller and multiple sensors. After that, the system checks whether the Bluetooth and Wireless connection is available. If the Bluetooth connection is available, the system can send a command from the android application (app), and the microcontroller receives the command from the app. After that, the scheme checks the wireless connection. The system will send the image frame to ensure real-time video streaming if the wireless connection is also available. An adverse reaction of the Bluetooth and wireless connection will result in a void.
Besides, an algorithm is designed for the movement of Agricultural robots. Algorithm 03 shows the corresponding steps for the right move of the Agribot. In the algorithm, the system takes the upcoming data as input from the Android application. After that, the system defines the analog and digital PINs required for interfacing the sensors with the microcontroller. The scheme defines each particular variable and the threshold value of the speed. A condition ensures the movement of the Agribot in the direction of left, right, forward, and backward positions.
Working principles of raspberry Pi and camera module
The Raspberry Pi and camera module detect locusts in the field. Figure 12 shows the working flow chart of the proposed raspberry pi and camera module scheme. The system is initialized in this Figure with the raspberry pi and camera module. After that, the camera starts detecting Locust in the field. If any Locust is found, the system immediately sends the detected information to Raspberry Pi. Then Raspberry Pi analyzes the upcoming information and transmits the image to the IoT cloud server as detected information if the reliable Internet is available. If an internet connection is further available, mobile and IoT cloud server communication can be established. Thus, users can be able to observe the current status of the field in real time. A negative response to the internet connection will result in checking the internet connection, and the system will be terminated with an adverse reaction to the users.
Working principles of IoT cloud server
This research has designed the IoT cloud server to make the system more reliable. The IoT cloud server is responsible for monitoring the field in real time. Figure 13 shows the corresponding block diagram of the proposed IoT cloud server. This figure can easily track how IoT cloud servers are responsible for sending the data from the sender and server end to the cloud. Message Query Telemetry Transfer (MQTT) broker is placed on maintaining the communication between the IoT cloud server and the sender end27. Several operations have been performed in the cloud with the database, like operations management, control of the users, configuration, and data management. The operational process of the IoT cloud server can be categorized into five interconnected parts: registration process, login process, token creation, insect detection, and receiving and showing the data from Raspberry PI.
To send data to the IoT server from a Raspberry Pi, we have to log in to the IoT server and create a project when we send data to the IoT server. This project data must be sent to the cloud server. Send data from a Raspberry Pi IoT server will be subscribed to the valid token and receive data. This token can also identify the project and the right user and store the data in the database. The IoT server receives humidity, temperature, charge-info, moisture, location, and detected insects code from Raspberry Pi. Those data help us to show gauges, charts, Google Maps, and insect info. Figure 14 shows the corresponding flow chart of the Login process.
Results and discussion
This section provides experimental data analysis of different modules of Agribot. Firstly, the data analysis with Machine Learning (ML) based models has been enumerated. Secondly, experimental data analysis with IoT-based Agribot is depicted. Thirdly, the System Usability Scale (SUS) score of this proposed method has been presented. Fourthly, this section presents a comparison among existing solutions based on their significant features. Finally, the developed prototype’s snapshots have been illustrated with proper annotations.
Data analysis with ML-based pipeline
This subsection interprets the ML-based results associated with our developed solution. To examine the findings of this research, a set of matrices are required to measure, such as Accuracy (A), Precision (P), Recall (R), and F1-Score (F1)21. The mathematical interpretation of these models is presented in Table 3.
Data analysis with pre-trained CNN without artificial bee colony (ABC)
This subsection presents data analysis with Pre-trained CNN models only. This research runs all the associated coding on Google Colab with 53GB RAM and dedicated Graphical Processing Unit (GPU). The subscription of this setup was ‘pro subscription’. The research first extracted the significant features from a particular image. Then the extracted were fed to ML based models to measure performance. In our research, we have spitted the dataset into 80% training data and 20% testing data.
We first experimented with the Support Vector Machine (SVM) classifier and pre-trained Convolutional Neural Networks (CNN) architecture without explicitly using the Artificial Bee Colony (ABC) algorithm and Support Vector feature selectors. We have found the highest accuracy of 99.50% in locust detection while dealing with the ResNet50 architecture and SVM classifier. Table 4 shows the corresponding experimental data analysis with the pre-trained models. Also, we have enumerated a comparison among the findings from different models. Figure 15 shows the corresponding bar chart based on the highest accuracy achieved. We have also performed the 5-fold cross-validation for each model to check whether the model discarded the overfitting issues. Table 5 shows the respective summary of findings.
In addition, we have implemented seven traditional machine learning classifiers, namely Support Vector Machine (SVM), Random Forest (RF), Decision Tree (DT), Naive Bayes (NB), Extreme Gradient Boosting (XGB), K-Nearest Neighbor (KNN), and Logistic Regression (LR). We have analyzed the results in a step-by-step manner, using the performance matrices as a basis for our interpretation. In our finding, we achieved the highest accuracy, 98%, with the LR classifier in locust detection. Also, we have found the highest accuracy of 99.50% with the SVM classifier. Father, we performed the 5-fold cross-validation on each classifier and interpreted their results accordingly. Table 6 summarizes seven classifiers with the VGG19 model, and Table 7 the respective cross-validation results adopted from the VGG19. Nevertheless, Tables 8 and 9 summarize the results of the ResNet50 model and cross-validation.
We have illustrated the learning curve and confusion matrix on the sharp contrast for the highest accuracy from Restnet50 and SVM classifiers. Figure 16(a) shows the learning curve, and Fig. 16(b) shows the locust detection confusion matrix.
Data analysis with pre-trained CNN without ABC and SVC feature selectors
We have performed ABC algorithm with SVC feature selectors to work with more optimized features and test the model performance. With the ABC and SVC, we have found a significant improvement in locust detection accuracy as well in Precision, Recall, and F1-score. Table 10 shows the corresponding summary of the findings. From the table, we can make clearly obverse that the research has found the highest accuracy of 99% while dealing with VGG19 + SVM with the ABC algorithm & SVC feature selector, where the accuracy with VGG19 was 19%. We have found nearly the same result from the ResNet50 model. We have also enumerated the number of best-selected features through the SVC feature selector and ABC algorithm. Further, we performed the 5-fold cross-validation and interpreted the experimental results in Table 11.
Moreover, we have also performed the seven classifiers on VGG19 along with ABC and SVC feature selectors. In this experiment, we found the highest accuracy of 99.51% in locust detection with the LR classifier. In these experiments, we have discovered that VGG19 features work more efficiently with the LR classifier and ABC algorithm. The summary of the results is depicted in Tables 12 and 13. In addition, we have performed the same experiment with ResNet50 architecture. But with the ABC algorithm and SVC feature selector, the accuracy was nearly 99% with SVM and LR classifier.
On the other hand, the learning curve and confusion matrix for the highest accuracy VGG19 and LR classifier, along with the ABC algorithm and SVC feature selection, are shown in clear contrast. Figure 17(a) displays the learning curve, and Fig. 17(b) depicts the confusion matrix for locust detection.
Comparison among different techniques
In this study, we have also performed the comparison among the highest accuracy in locust detection with different types of techniques. Table 14 shows the corresponding comparison among the various techniques or combinations in our result analysis. Besides, Fig. 18 displays the performance comparison bar chart and performance evaluation matrix. This figure clearly illustrates that Resnet50 with SVC and VGG19 with ABC & SVC give the highest result in locust detection compared to the other models.
Experimental data analysis with IoT-based agribot
This research has utilized several agricultural sensors. We have mounted them in the robot and calculated them accordingly. In our experiments, we calculated the data of each particular sensor in the same experiment. Table 15 shows the corresponding data analysis of each sensor. Data calculation is taken place on our university premises.
From this table, we can easily track out that the temperature in the field remained unchanged due to the environment’s nature. The humidity level changed as the humidity level changed in the air. Again, we examined soil with dry soil and wet soil and found the sensor’s moisture level accordingly. We have driven the robot with our developed mobile application. A full 9-volt battery charge gives backup for up to One and a half hours. We have tracked an average speed up to 0.3048 m/s or 1.09728 km/h. Table 16 presents the experimental data analysis of Agribot. In the table, we can easily track the movement of the Agribot. We have performed our experiment with maximum movement length and direction criteria. We have found the greatest range of motion of Agribot is 30 m, and the maximum time required for the maximum range of movement is 5 min. Our experiment tracked our average movement of 16 m within 2 min. We observe that the necessary time is scattered from the mean value because of the path’s shape and size. Again, live video streaming is disconnected or held at speed when increasing its peak value. Figure 19 shows the corresponding comparative result achieved from the Agribot.
System usability scale (SUS)
In our established model, we have carried out a System Usability Scale (SUS) among ten randomly selected individuals. We have provided them with our developed mobile application and Agribot. They had driven our robot through the progressive mobile application for up to 10 min. After that, we took their opinion on our developed application. We also found the product of appeasement from the consumers. 48% of users strongly agree with the SUS ranking, and 38% of users agree with our work. This outcome shows that 86% of individuals recommend our established model, 9% remain neutral, and 5% strongly refuse our proposed method. The corresponding experimental data is illustrated in Fig. 20.
Comparison among the existing solution
The research also ensures a comparison among existing papers. We have compared the literature with our developed Agribot on methodology, contributions, and highest accuracy regarding Machine Learning (ML) models and features. Table 17 shows the corresponding comparison table extracted from the literature review.
Snapshots of the developed prototype
This research ensures the development process of Agricultural robots utilizing Android-based hardware development and IoT cloud development. We first developed the Agricultural robot using the Arduino Mega board, motors & motor driver, and multiple agricultural sensors in our development process. After that, we designed the mobile application of the proposed methodology through the android studio platform. Finally, we look forward to developing the proposed IoT server in response to the proposed architecture. In the following sections, we present the snapshot and screenshot of the developed solution and its caption (see Supplementary Appendix A).
Conclusion and future work
In several African and Middle Eastern nations, locusts have significantly harmed agricultural production, inflicting massive economic loss. One possible solution for this problem is an agricultural robot (Agribot). In contrast, the Internet of Things (IoT) plays an important role in agriculture due to its promising features, such as real-time data monitoring and deep learning processes, which lead to an agile solution in object detection, such as insect categorization and recognition. This work demonstrates an intelligent strategy for designing an Agribot using IoT in combination with Machine Learning (ML) and Deep Learning (DL) based architecture for locust identification in the agricultural area. The IoT component enables correct automation by employing numerous agricultural sensors, a focused Android application, and an IoT cloud server. The ML and DL technique, on the other hand, integrates certain pre-trained Convolutional Neural Network (CNN) models with traditional ML classifiers, as well as a nature-inspired algorithm such as Artificial Bee Colony (ABC) and SVC feature selection. Experimental data collection has been enumerated and evaluated to assess the efficacy of the suggested orientation. This study achieved the maximum locust detection accuracy of 99.51% using a VGG19 pre-trained CNN model with Logistic Regression (LR) and SVC feature selector. Besides, with live video streaming, The Agribot has moved more effectively and at a reasonable speed in the agricultural field. According to the research, the Agribot’s top speed is up to 0.3048 m/s. Furthermore, the investigation discovered a SUS score of 86% on our proposed method. Although the system performs better in locust identification and automation, the study found certain drawbacks when investigating and executing the idea. Firstly, we faced difficulties moving the bot in the field because the motor had been shut down due to the path’s soil level. Secondly, this has performed the ML and DL based on still images, not real-time video streaming. Thirdly, the proposed model can be implemented inside the raspberry pi without building a model in the cloud.
We will overcome the previously highlighted concerns in the future. According to our plan, we will use Raspberry Pi’s proposed detection mechanism to detect insects with maximum precision. Again, we intend to develop a method to spread seeds and fertilizer using our suggested Agricultural Robot. Also, due to the distance between the sender and receiver ends, live video streaming has been halted. Because LAN technology operates in a small region, video streaming is terminated or held for speed. We will include this in our upcoming modification. We encountered issues moving the Agribot backward because it is only intended in the Left, Right, Forward, and Reverse positions. We anticipate that adding a video camera behind the robot will be useful in resolving this issue. Again, we discovered problems accessing the IoT cloud server’s data via a mobile application. As a result, we want to create a user-friendly mobile application for the next modification. Furthermore, we will create a powerful and efficient database system because the IoT cloud server only focuses on real-time sensor data monitoring. Still, no module has been designed to store and retrieve the incoming data. The suggested technique would also identify illnesses in the leaves of various species of trees. Nonetheless, the proposed technology can monitor locusts in agricultural areas in real-time. Furthermore, we have a plan to add the drone-based system to our proposed model; thus, the locust or insect system will be more effective both in the ground and in the sky monitoring.
Data availability
The authors declare that the data supporting the findings of this study are available within the paper, and the Locust Computer Vision Project (https://universe.roboflow.com/khadija/locust-6a5yl).
Change history
20 December 2025
The original online version of this Article was revised: The Funding section in the original version of this Article was omitted. The Funding section now reads: "The authors are thankful to the Deanship of Graduate Studies and Scientific Research at Najran University for funding this work under the Growth Funding Program (Grant No. NU/GP/SERC/13/84)". The original Article has been corrected.
References
Vermesan, O. & Friess, P. Internet of Things: Converging Technologies for Smart Environments and Integrated Ecosystems (River Publishers, 2013).
Pachayappan, M., Ganeshkumar, C. & Sugundan, N. Technological implication and its impact in agricultural sector: an IoT based collaboration framework. Procedia Comput. Sci. 171, 1166–1173 (2020).
Thormundsson, B. Global Agricultural Robot Revenue 2015–2024. https://www.statista.com/statistics/938833/agricultural-robot-revenue-worldwide/ (2022).
Soni, A. et al. Design of a machine learning-based self-driving car. Machine Learning for Robotics Applications 139–151 (2021).
Carleo, G. et al. Machine learning and the physical sciences. Rev. Mod. Phys. 91 (4), 045002 (2019).
Domingues, T., Brandão, T. & Ferreira, J. C. Machine learning for detection and prediction of crop diseases and pests: a comprehensive survey. Agriculture 12 (9), 1350 (2022).
Jassem, Z. A. Harper’s (2016) Online Etymology Dictionary (Etymonline): A Critical Review.
Colarossi, N. Swarms of Locusts Forced Somalia to Declare a National Emergency. Skin-Crawling Photos Show How Menacing Their Plagues can be.. https://www.businessinsider.com/desert-locust-plague-devastates-africa-photos-history-2020-2 (2020).
Meineke, E. K. et al. Applying machine learning to investigate long-term insect–plant interactions preserved on digitized herbarium specimens. Appl. Plant. Sci. 8 (6), e11369 (2020).
Cardim Ferreira Lima, M. et al. Automatic detection and monitoring of insect pests—A review. Agriculture 10 (5), 161 (2020).
Genoud, A. P. et al. A comparison of supervised machine learning algorithms for mosquito identification from backscattered optical signals. Ecol. Inf. 58, 101090 (2020).
Benmessahel, I. et al. A new evolutionary neural networks based on intrusion detection systems using locust swarm optimization. Evol. Intel. 12, 131–146 (2019).
Ye, S. et al. ResNet-locust-BN network-based automatic identification of East Asian migratory locust species and instars from RGB images. Insects 11 (8), 458 (2020).
Kumar, P. & Ashok, G. Design and fabrication of smart seed sowing robot. Mater. Today Proc. 39, 354–358 (2021).
Uday, A. et al. An IoT Based Multifunction Agribot.
Gupta, S. et al. IoT based multipurpose agribot with field monitoring system. In 2020 International Conference on Industry 4.0 Technology (I4Tech) (IEEE, 2020).
Gómez, D. et al. Desert locust detection using Earth observation satellite data in Mauritania. J. Arid Environ. 164, 29–37 (2019).
Mekala, M. S. & Viswanathan, P. CLAY-MIST: IoT-cloud enabled CMM index for smart agriculture monitoring system. Measurement 134, 236–244 (2019).
Jaiswal, K. et al. IoT-cloud based framework for patient’s data collection in smart healthcare system using raspberry-pi. In 2017 International Conference on Electrical and Computing Technologies and Applications (ICECTA) (IEEE, 2017).
Attallah, O. Tomato leaf disease classification via compact convolutional neural networks with transfer learning and feature selection. Horticulturae 9 (2), 149 (2023).
Rahman, W. et al. Multiclass blood cancer classification using deep CNN with optimized features. Array 18, 100292 (2023).
Mateen, M. et al. Fundus image classification using VGG-19 architecture with PCA and SVD. Symmetry 11 (1), 1 (2018).
Zahisham, Z. et al. Food recognition with ResNet-50. In 2020 IEEE 2nd International Conference on Artificial Intelligence in Engineering and Technology (IICAIET) (IEEE, 2020).
Villacampa, O. Feature Selection and Classification Methods for Decision Making: A Comparative Analysis (Nova Southeastern University, 2015).
Chaurasia, V. & Pal, S. Applications of machine learning techniques to predict diagnostic breast cancer. SN Comput. Sci. 1 (5), 270 (2020).
Karaboga, D. & Basturk, B. Artificial bee colony (ABC) optimization algorithm for solving constrained optimization problems. In Foundations of Fuzzy Logic and Soft Computing: 12th International Fuzzy Systems Association World Congress, IFSA 2007, Cancun, Mexico, June 18–21, 2007. Proceedings 12 (Springer, 2007).
Grgić, K. et al. A web-based IoT solution for monitoring data using MQTT protocol. In 2016 International Conference on Smart Systems and Technologies (SST) (IEEE, 2016).
Funding
The authors are thankful to the Deanship of Graduate Studies and Scientific Research at Najran University for funding this work under the Growth Funding Program (Grant No. NU/GP/SERC/13/84).
Author information
Authors and Affiliations
Contributions
Mana Saleh Al Reshan: Conceptualization, Methodology, Resources, Software, Visualization, Investigation, Writing—original draft.Wahidur Rahman: Conceptualization, Methodology, Software, Visualization, Investigation, Writing—original draft. Shisir Mia: Supervision, Data curation, Software, Visualization, Investigation, Writing—original draft.Mehedi Hasan Talukder: Conceptualization, Methodology, Software, Visualization, Investigation, Writing—review & editing. Mohammad Motiur Rahman: Methodology, Software, Resources, Writing—review & editing, Asadullah Shaikh: Software, Investigation Validation, Visualization, Writing—review & editing.Tunc Asuroglu: Software, Investigation Validation, Writing—review & editing. Jawad Rasheed: Software, Validation, Writing—review & editing, Supervision.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Below is the link to the electronic supplementary material.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Al Reshan, M.S., Rahman, W., Mia, S. et al. An AI-powered smart Agribot for detecting locusts in farmlands using IoT and deep learning. Sci Rep 15, 39848 (2025). https://doi.org/10.1038/s41598-025-23497-8
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s41598-025-23497-8

























