1. Introduction
One of the harmful insects persisting in palm trees that attack various palm species is the red palm weevil (RPW) [1]. Previously, its presence was considered a medical condition and later caused damage to Africa and northern Europe, east and west sides of Asia, and later spread to the west side of Northern America [2]. The lifetime of weevil species lasts from 45 to 139 days in the palm tree trunk, but it feeds on the palm tissue. It was protected and could not be viewed outside, as the RPW is presented in the tree [3]. Infectious palm trees can live for a long time if there is food, and if the tree seems hollow, the RPW will leave the tree in search of a novel host [4]. It includes four stages throughout its lifetime: adult, egg, pupa, and larva. To control and manage RPWs, first, finding the RPWs is essential. Various methods were devised for providing more precise insect detection outcomes in realtime instead of manual identification approaches [5]. The utility of computer vision (CV) technology through pattern detection has been witnessed as very effective if used to classify and detect insects. There are various benefits to the novel intellectual system, notably, that could be useful for those who lack knowledge to find some insects. Hence, the automatic system would minimize the problem along with the labor effort required to raise the farmer's income. The farmer gets high yield if this is done [6]. Advancements in artificial intelligence (AI) technologies have led to the evolution of automatic systems that present more precise and faster outcomes in pest diagnosis [7]. Nowadays, systems that diagnose wide variety of diseases automatically based on AI are used often. Over the years, several conventional machine learning (ML) approaches are presented for the classification and detection of plant diseases [8]. The feature extraction need to do classification in ML is found to be tough and affects the classifier's performance. Increasing speeds and capability of Graphical Processing Unit (GPU) and Central Processing Unit (CPU) led to the progression of novel higher-performance approaches that is process raw data without the necessity of handcrafted features, and this paved way for DL structure [9]. A deep neural network (DNN) structure with several neurons and processing layers can effectively do high-complexity tasks like image recognition and voice by processing large-size datasets [10]. The use of DL approaches methods in the classification and diagnosis of diseases from medical images is common.
This article focuses on the design of automated RPW pest detection using sparrow search optimization with deep learning (RPWPD-SSODL) technique. The RPWPD-SSODL technique employs bilateral filtering (BF) for noise removal process. Next, the RPWPD-SSODL technique uses Dense-RefineDet object detector with ShuffleNet model as a backbone network. For improving the recognition solution, the hyperparameter tuning of the ShuffleNet model can be optimally adjusted by the use of SSO algorithm. To validate the simulation results of the RPWPD-SSODL technique, a comprehensive experimental outcome has been executed.
2. Related Works
Ahmed and Ahmed [11] developed two methods of DL for classifying Palm leaf disease: TL of Inception ResNet and ResNet. The methods help to train hundreds of layers and attain better outcomes. The performance of image classification can be boosted by utilizing ResNet and considering the merit of their potential representation ability. Gibril et al. [12] presented an automated method that depends on a DL method for mapping date palm trees on large scale from very-high-spatial-resolution (VHSR) UAVs dataset. For the semantic segmentations, U-Net (a U-Shape CNN), which depends on a DRL structure, was developed. The performance of the presented method has been compared with different fully convolutional network (FCN) with various encoder structure, which includes two variants of DeepLab V3+, pyramid scene parsing networks and U-Net (depending on VGG16 backbone).
Alburshaid and Mangoud [13] evaluated the ability to use DL in devising a geodatabase in the GIS setting. Two CNN methods were evaluated and presented, the former method uses RetinaNet that applies to the single stage detectors, and the latter method leverages MRCNN that applies to 2-stage detector. Bait-Suwailam [14] presented a numerical electromagnetic method of a low-cost identification modality utilizing resonant-related microwave sensors for detecting RPW pests. Omran [15] intends to find the living phases of RPW that are concealed in palm trees. Nanoparticles and sensors have advantageous adoptions in treatment and detection of date palms. This study portrayed that the RPW infection can be found in the initial stage using Nano-methods. The outcomes of audio analysis are wirelessly informed to control stations to transmit warning messages through the Internet. Delalieux et al. [16] evaluated the potentiality of an RS method for the reliable and timely identification of RPW infestations on the palm canopy. At the same time, detailed optical observation of the RPW effect on palms has been evaluated for assessing the growth of infection from the primary phase till death of palm. A drone-related image processing chain for nondestructive RPW identification has been constructed depending on vegetation and segmentation index analysis methods.
Anis et al. [17] introduced an IoT-related smart palm monitoring model that contribute to the initial identification of RPW infestation 2 ) utilizing smart agriculture sensors, allowing monitoring palms remotely. Users can utilize mobile application or web to communicate with their palm farmland and support them in obtaining initial identification of infections. To interact among the user as well as sensor layers, the author utilized an industriallevel IoT platform. Parvathy et al. [18] presented a system for initial identification of RPW infections by presenting a portable, smart, non-invasive solution. The system, related to an accelerometer sensor, analyzed signal from palm and check out for specific atrributes in the signals that pest produces. The mechanism produces SMS, audio, and optical warnings for identifying infections.
3. The Proposed Model
In this article, we have mainly focused on designing and developing the RPWPD-SSODL methodology for automated and accurate RPW detection and classification. The presented RPWPD-SSODL system mostly focused on the detection and classification of RPW using computer vision approaches. To accomplish this, the RPWPDSSODL technique follows a three-phase process: BF-based noise removal, Dense-RefineDet object detector, and SSO-based hyperparameter tuning. Fig. 1 depicts the overall flow of RPWPD-SSODL method.
3.1. Image Pre-processing
To eradicate the noises that exist in the input images, the BF technique is used. The BF is a noise removing process stimulated by the Gaussian filtering (GF) method [19]. While efficiently holding the denoising capability of the GF, it could effectively decrease the additive noise without terminating the details and edges of imagery. The edge data of the imagery can be preserved. However, impulse noise could not be detached. The combinations of two weights define that the conventional BF are grayscale and geometric similarity weights.
Eq. (1), 𝑘(𝑥) indicates the normalization index. 𝑐(𝐴, 𝑥) represents geometric similarity weighted value belonging to central pixel 𝑥 and its neighboring pixels 𝐴, and 𝑠(𝑓(𝐴), 𝑓(𝑥)) shows grayscale similarity weighted of central pixel 𝑥 and its neighboring pixels 𝐴.
The image Gaussian kernel function that defines the geometric similarity can be expressed below
In Eq. (3), the central pixel points 𝑥 and 𝑑 represent geometric expansion factor, which mostly controls the geometric expansion factors of low‐pass filtering strength. 𝑑(𝐴, 𝑥) shows the distance between neighbouring pixel points 𝐴. The small the value of 𝜎𝑑, the low the low‐pass filter strength and the clear the filter outcome:
In Eq. (4), 𝜎𝑟 denotes the diffusion factor of image grayscale similarity. In the classical BF, every pixel should be evaluated more than once, resulting in poor performance. Simultaneously, the parameter is fixed; the parameter must be manually changed as per the actual noise situation.
3.2. Dense-RefineDet Object Detector
For object detection purposes, the DenseNet-RefineDet model is used. RefineDet refers to a single-stage approach that depends on SSD infrastructure and contains object-detection module (ODM) and anchor-refinement module (ARM) [20]. The ARM allows positive- and negative-refined anchors to ODM to classify and detect goal objects in input imageries. The features in ARM can transport to ODM through an intended transfer connection block (TCB) that accumulates 2 (high-and-low levels) neighboring feature layers in ARM as input and carries out a deconvolution function to high-level layer for attaining features of related size as a low-level layer for making fusion feature with element wise summation. An intended TCB is to offer further contextual data. In this case, it is exploited RefineDet as baseline process for classifying and detecting traffic signs for next reasons: (1) it could be greatly influential owing to its single-stage structure; (2) it exploits a refined approach which simulates a “detection model” to define feasible area in target traffic sign, but its classifications. At this point, our “detection model” varied in typical traffic sign recognition (i.e., recognize every function type particular amongst traffic signs from the original image).
RefineDet can be a great object detection approach utilized for detecting objects with maximum accuracy and speed, but it could not compete with recent approaches at small-object detection. It takes risks because of 2 reasons. Primary, the feature of shallow layers from RefineDet utilized for detecting small objects comprise restricted data that could not be comparatively huge to efficiently small object detection. Multi-scale features can improve outcome from RefineDet, and the shallowest mapping features with maximum resolution can scale at 1/8 the dimension of input images. Because of down-sampling convolutional and pooling functions, data loss takes place, excessive for shallowest resultant layer. The traffic signs of small sized determined in Tsinghua-Tencent 100K database are bounding-box region of <32×3232×32 pixels; thus, the equivalent dimension of smaller traffic sign is <4×44×4 pixels, creating correct detection problem for RefineDet. Secondly, anchors planned utilizing RefineDet could not be appropriate for small object detection, while the centers of every anchor are set at the center of all the cells (0.5, 0.5). It creates it complex for detecting objects of lesser size and placed at junction region of 2 neighboring cells or smaller sized objects beside together.
According to RefineDet approach, dense-refinedet technique is presented by generating a novel Dense-TCB element dependent upon dense connection and integrating an anchor design model. Based on RefineDet, the backbone structure it is choose was VGG-16. It is output 4 distinct scale-feature maps (specially conv7, conv4_3, and conv5_3 layers are chosen for output), and just 2 extra convolutional layers are additional, with second layer utilized for outcome. The Dense-TCB element can execute for transferring extra semantic data in deeper (higher level) feature layer to shallower (lower level) feature layer and specifically for shallowest feature state (conv4_3) for obtaining rich contextual data to detect small-sized traffic signs. A recently planned anchor is utilized for addressing the anchor issue of RefineDet compared to detecting smaller objects.
The RPWPD-SSODL technique uses Dense-RefineDet object detector with ShuffleNet model as a backbone network. A deep network with deep structures keeps great extraction feature ability and usually carries out well from the image tasks [21]. But, the maximum computing and memory necessities of network obstruct wide usage. One method for resolving the problem is to utilize lightweight networks. ShuffleNet is a great lightweight network that decreased computational and parameter costs by the process as channels shuffle from the stage layer. In detail, ShuffleNet comprises convolution, pooling, stage, and fully connected (FC) layers, but the stage contains downsampling and basic units. These units comprise DW convolution layers and 1x1 convolution layers. Nevertheless, ShuffleNet exchanges a vast number of 1x1 point-wise convolutional with channel shuffle, inducing a lack of representative capability and negligible loss of precision. During this stage structure, convolutional optimizer (CO) and cross-stage partial (CSP) structure are implemented to improve the above problem. Eliminating the final convolution layer and replacing the DW convolutional kernel dimensional of 3x3 with 7x7 decreases the model parameter, increases the perceptual domain and gains rich global features. By substituting every DW convolutional 3x3 with 7x7, the padding requires that altered in [1-3]. Thus, the resolution of resultant mapping feature remains similar to the original. The mapping feature of downsampling unit can be divided by the CSP structure into 2 parts, making them pass through distinct paths, and concatenate them composed in the final stage layer. By this function, CSP allows richer gradient set and decreases computation by splits gradient streams for propagating with distinct network paths.
3.3. Hyperparameter Tuning using SSO Algorithm
To boost the detection performance, the hyperparameter tuning of the ShuffleNet model was conducted using the SSO algorithm. SSO algorithm depends on sparrows' anti‐predatory and predatory behaviors in the biological world. Sparrow is generally separated into followers and producers to complete the foraging [22]. In their natural state, sparrows observe one another. While foraging, each sparrow keeps alert to the nearby environments to avoid arrival of natural enemies:
In Eq. (5), 𝑛𝑝 denotes the amount of sparrows, and 𝑑 indicates the dimension of variable:
In Eq. (6), the values of every line in 𝐹𝑥 show sparrows' fitness value.
In SSO algorithm, the producers usually contain more enormous energy reserves. They are accountable to search the whole population for areas with rich food, which provides each participant with the area of foraging and direction. Sparrow fitness values define energy reserves. individuals with high fitness value have the highest preference in attaining food, which drives the whole population to find food as producer:
In Eq. (7), 𝑡 symbolizes the amount of existing iterations, 𝑗= (1,2, … , 𝑑), 𝑄 denotes a normal distribution random value subjected to [0,1]. 𝑋𝑖,𝑗 𝑡 shows the 𝑗-𝑡ℎ dimension location of the 𝑖𝑡ℎ sparrow at 𝑡 iteration. 𝑖𝑡𝑒𝑟 max depicts the maximal amount of iterations. 𝛼 denotes the randomly generated value (0,1), 𝑅2 ∈[0,1] and 𝑆𝑇∈[0.5,1], 𝑅2 and 𝑆𝑇 indicate warning values and safety values, correspondingly. 𝐿 denotes the matrix of 1 × 𝑑, and every competent inside is 1. Where 𝑅2 ≥𝑆𝑇, it implies that sparrow has found natural enemy, and each sparrow needs to quickly fly to other safer regions. If 𝑅2 < 𝑆𝑇, it implies that not any natural enemy around, and producer conducted a comprehensive search mode.
The follower is a type of sparrow with poor fitness value and lower energy in the population:
In Eq. (8), 𝑋𝑃 shows the better location for producer, 𝑋𝑤𝑜𝑟𝑠𝑡 indicates the worst place, 𝐴 denotes the matrix of 1 × 𝑑, all the components in matrix can be alloted randomly with the value of 1 or −1, 𝐴+ = 𝐴𝑇(𝐴𝐴𝑇)−1. If 𝐼> 𝑛𝑝/2, it implies that 𝑖𝑡ℎ followers with worse fitness value don’t obtain food and is in state of hunger. Now, it should fly to other locations for food to attain greater energy
Simultaneously, the sparrow population has early warning and detection behavior: While finding food, few sparrows serve as a scout, which alerts others. Once the danger occurs, they abandon the present food source. Whether the follower or producer would present food and take new role. 𝑆𝐷 sparrows are selected randomly from the population for earlier warning behavior:
In Eq. (9), 𝐾∈[−1,1] denotes the uniform random integer. 𝑋𝑏𝑒𝑠𝑡 denotes the global optimum location, 𝑓𝑖 shows the fitness value of the existing sparrow. 𝛽 shows the step control parameter, a normal distribution random integer within [0,1], 𝑓𝑔𝑎𝑛𝑑ℎ represents the present global best and poor fitness values, correspondingly. 𝜀 shows the minimal constant to prevent a 0 in denominator. 𝑓𝑖= 𝑓𝑔 shows that sparrows within the middle of population are aware of hazard; hence it must be closer to other individuals. If 𝑓𝑖> 𝑓𝑔, it implies that sparrow is at the population edge and are highly vulnerable to natural enemy. 𝐾 can be a step control parameter and denotes the direction of movement of sparrow.
The SSO approach grows a fitness function (FF) to realize higher classifier performances. It expresses a positive integer that indicated the best solution for candidate outcomes. During this case, the decreasing classifier errors have been supposed to be FF, as defined in Eq. (10).
4. Results Analysis
In the section, the RPW detection outcome of the RPWPD-SSODL algorithm are studied on the dataset comprising different RPW images [23, 24]. Fig. 2 illustrates the sample images. Fig. 3 demonstrates the original and detection images.
Table 1 and Fig. 4 represented the entire RPW recognition results of the RPWPD-SSODL system at various epochs. The experimental outcomes reported that the RPWPD-SSODL methodology achieved enhanced results under all epochs. For sample, on image-1, the RPWPD-SSODL technique attains 𝑎𝑐𝑐𝑢𝑦 of 99.72%, 99.74%, 99.40%, 99.18%, 99.88%, and 99.78% under 500, 1000, 1500, 2000, 2500, and 3000 epochs. Simultaneously, on image-4, the RPWPD-SSODL method attains 𝑎𝑐𝑐𝑢𝑦 of 99.83%, 99.98%, 99.51%, 99.85%, 99.19%, and 99.71% under 500, 1000, 1500, 2000, 2500, and 3000 epochs. Meanwhile, on image-6, the RPWPD-SSODL approach attains 𝑎𝑐𝑐𝑢𝑦 of 99.79%, 99.43%, 99.82%, 99.82%, 99.33%, and 99.11% under 500, 1000, 1500, 2000, 2500, and 3000 epochs. Moreover, on image-8, the RPWPD-SSODL algorithm attains 𝑎𝑐𝑐𝑢𝑦 of 99.50%, 99.85%, 99.28%, 99.70%, 99.60%, and 99.76% under 500, 1000, 1500, 2000, 2500, and 3000 epochs. Furthermore, on image-10, the RPWPD-SSODL approach attains 𝑎𝑐𝑐𝑢𝑦 of 99.86%, 99.06%, 99.68%, 99.52%, 99.14%, and 99.42% under 500, 1000, 1500, 2000, 2500, and 3000 epochs.
Fig. 5 depicts an average RPW detection result of the RPWPD-SSODL system under various epochs. The outcome highlighted that the RPWPD-SSODL system reaches effectual outcomes under each epoch. It is observed that the RPWPD-SSODL technique offers average 𝑎𝑐𝑐𝑢𝑦 of 99.62%, 99.53%, 99.58%, 99.60%, 99.48%, and 99.58% under 500, 1000, 1500, 2000, 2500, and 3000 epochs.
Fig. 6 inspects the RPWPD-SSODL approach's accuracy in training and validation on various epochs. The outcomes specified that the RPWPD-SSODL methodology has higher 𝑎𝑐𝑐𝑢𝑦 values with maximum epochs. Moreover, the enhancing 𝑎𝑐𝑐𝑢𝑦 with training 𝑎𝑐𝑐𝑢𝑦 pointed out that the RPWPD-SSODL method attains productively on distinct epochs.
The loss curve of the RPWPD-SSODL approach in training and validation is given on different epochs in Fig. 7. The figure indicates that the RPWPD-SSODL algorithm attained nearer performances of training and validation losses. The RPWPD-SSODL method gains capably on distinct epochs.
Finally, a detailed 𝑎𝑐𝑐𝑢𝑦 investigation of the RPWPD-SSODL technique with recent approaches is in Table 2 and Fig. 8 [2]. The simulation values represented the poor performance of the SVM model with least 𝑎𝑐𝑐𝑢𝑦 of 82.60%. The other recent approaches, such as SVM, RF, MLP, and AdaBoost approaches have obtained reasonably closer performance. But the RPWPD-SSODL technique shows promising performance with maximum 𝑎𝑐𝑐𝑢𝑦 of 99.62%. These outcomes highlighted the optimum performance of the RPWPD-SSODL technique with other recent models.
5. Conclusion
In this article, we have mainly focused on designing and developing the RPWPD-SSODL algorithm for automated and accurate RPW detection and classification. The presented RPWPD-SSODL technique mainly focused on identifying and classifying RPW using computer vision approaches. To accomplish this, the RPWPD-SSODL technique follows a three-phase process: BF based noise removal, Dense-RefineDet object detector, and SSO based hyperparameter tuning. The RPWPD-SSODL technique uses Dense-RefineDet object detector with ShuffleNet model as a backbone network. For improving the detection performance, the hyperparameter tuning of the ShuffleNet model can be optimally adjusted by the use of SSO algorithm. To validate the simulation results of the RPWPD-SSODL technique, a comprehensive simulation analysis can be implemented. The simulation outcome highlighted the betterment of the RPWPD-SSODL technique over other existing algorithms under several measures. In future, weighted voting ensemble classifier has been designed to improve the overall RPW classification solution.