Intelligent Broadleaf Weed–Wheat Crop Classification via Deep Convolutional Neural Networks | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Intelligent Broadleaf Weed–Wheat Crop Classification via Deep Convolutional Neural Networks Seyed Iman Saedi, Hassan Makarian This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-7578610/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract Improving wheat productivity is essential for maintaining food security in the coming years. A major challenge to wheat production is the presence of weeds, which can greatly reduce its yield. Therefore, precision weed management, utilizing site-specific methods, will be vital for achieving sustainable wheat production. To this goal, in the present study, we utilized color images and deep learning techniques to distinguish winter wheat from four prevalent weeds, creating five distinct classes. A total of 542 images were captured in natural field conditions, and resized to 299×299 pixels. Four deep learning networks– Xception, EfficientNetB0, VGG19, and InceptionResNetV2– were evaluated to serve as base networks to fulfil the classification requirements. These networks were pre-trained on ImageNet using transfer learning, then enhanced with additional layers to improve performance on our dataset. The improved InceptionResNetV2 model demonstrated the highest performance among the four models, achieving an accuracy of 98.17% and a loss of 3.19 on the test data. Nevertheless, all models exhibited excellent performance in distinguishing plant classes, with F1-scores ranging from 93–100%, 69–98%, 82–100%, and 93–100% for models based on Xception, EfficientNetB0, VGG19, and InceptionResNetV2, respectively. Additionally, we analyzed fifteen scenarios of weed presence in winter wheat fields, focusing on various weed types studied, to propose effective weed management strategies utilizing any of the four models. The research findings provide a foundation for the development of mobile apps or robots that facilitate site-specific weed management. This approach aims to reduce herbicide use and environmental impact while also improving wheat yield and quality. Agricultural Engineering Deep learning RGB image Weed recognition Winter wheat Figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Introduction As the global population continues to grow, wheat emerges as a vital crop in addressing the world's increasing nutritional demands (Sadeghi et al. 2022 ; Saedi et al. 2019 ; Shewry & Hey 2015 ). Wheat plays a key role in global food security, supplying roughly 20% of the essential carbohydrates and proteins needed for human consumption (Langridge et al. 2022 ). It occupies about 30% of the world's cereal cropland, underscoring its critical importance in agricultural systems (FAO 2021). In light of the increasing challenges posed by climate change and a rapidly growing global population, enhancing wheat productivity has emerged as a crucial strategy to uphold food security in the years ahead. One significant obstacle to wheat production is weeds, which reduce the growth and yield of wheat by competing for water, nutrients, and light (Singh et al. 2021 ). Weeds can significantly impact wheat productivity, with estimated yield losses of up to 30%, largely influenced by varying climatic conditions and differences in agricultural management practices (Gyawali et al. 2022 ). In many of Iran's key wheat-producing areas, broadleaved weeds have emerged as a prominent concern, accounting for a staggering 84% of the weed species infesting wheat fields and posing a significant threat to crop yields (Montazeri et al. 2005 ). Manual removal of weeds in wheat fields is not a viable option due to the risk of crop damage and the high labor costs involved. Precise identification and differentiation of weeds from crop plants is a crucial component of effective site-specific weed management. By accurately distinguishing weeds from wheat, farmers can target herbicide applications to specific areas where weeds are present, thereby optimizing weed control. By harnessing the power of advanced technologies such as computer vision and image processing, researchers can achieve high precision in weed detection, enabling the development of targeted management strategies that accurately distinguish between crops and weeds, ultimately optimizing the effectiveness of site-specific weed control techniques (Juwono et al. 2023 ). Through providing two-dimensional information, color images have been widely utilized in this domain, laying the groundwork for further advancements. Studies have shown that unique morphological characteristics, including leaf form, color, and dimension, can serve as valuable features for object recognition and classification tasks (Susetyarini et al. 2020 ). Specifically, features like leaf area, length, perimeter, width, and color can be employed to differentiate between plants and inform plant management strategies (Speck & Speck 2021 ). Despite these challenges, significant progress has been made in developing object recognition algorithms for precision agriculture, with varying degrees of accuracy achieved in different applications. The application of deep learning techniques has demonstrated considerable potential in achieving these objectives. Over the past decade, deep learning has transformed the field of image processing, achieved unprecedented success and found numerous practical applications in precision agriculture. While large datasets are essential for training and validating deep learning algorithms, advances in computational power and data availability have made them increasingly popular. As a subset of machine learning, deep learning leverages hierarchical representations of data through sequential layers, typically employing convolutional neural networks (CNNs) to extract complex, non-linear image features. This approach has been shown to exhibit exceptional generalization capabilities, making it well-suited for classification tasks (Saedi & Rezaei 2024 ). This task begins with the input of an image, which can vary in size, and undergoes preprocessing before entering the feature extraction stage. This phase involves a series of layers that progressively extract features from the image, with the complexity of the features increasing with each additional layer. Following feature extraction, the classification process begins, employing traditional fully connected layers commonly found in neural networks. The arrangement and configuration of these layers give rise to a diverse range of networks with distinct characteristics and capabilities (Chollet 2017 ). Convolutional neural networks have been extensively explored for identification and classification tasks in agriculture. Research has demonstrated the effectiveness of these networks in various applications. For instance, Saedi & Khosravi, ( 2020 ) developed an image-based CNN model to recognize six different types of on-branch fruits in orchards, achieving an impressive accuracy of 99.8%. Additionally, Khosravi et al., ( 2021 ) developed a CNN model to classify olive fruit at different cultivars and developmental phases, attaining 91% classification. Furthermore, researchers have used deep neural networks such as Xception (Salim et al. 2023 ) and lightweight CNNs (Saedi et al., 2024 ), to recognize and classify fruits with high accuracy, demonstrating the potential of these models in image classification tasks. Deep learning algorithms have been successfully applied to weed detection and classification, demonstrating superior performance in distinguishing between crop plants and weeds (Li et al. 2024 ). For instance, Quan et al. ( 2019 ) employed the Faster R-CNN model to detect corn seedlings and weeds in complex environments, while Fan et al. ( 2023 ) improved this model to achieve an accuracy of over 98.43% in identifying weeds in cotton fields. Other studies have utilized deep learning-based models to identify common weeds in sugar beet cultivation (Nasiri et al. 2022 ), discriminate pepper from weeds (Subeesh et al. 2022 ), and detect weeds in sugar beet fields (Gao et al. 2020 ). Additionally, researchers have evaluated the performance of deep learning models such as Yolov8, Yolov9, and customized Yolov9 in real-field conditions for eight crop species (GC et al. 2024 ). Similarly, a modified Xception deep learning approach was successfully utilized to distinguish saffron from its broadleaf weeds, yielding promising results with F1 scores ranging from 91–96% (Makarian & Saedi, 2024 ). In a practical study, Rai & Sun, ( 2024 ) designed a single-stage deep learning architecture that accomplishes two tasks simultaneously: detecting weed presence through bounding boxes and achieving pixel-wise instance segmentation on unmanned aerial system (UAS) acquired remote sensing images. The model achieved the best detection and segmentation scores of 85.4% and 82.1%, respectively. The aforementioned works demonstrate the potential of deep learning algorithms in plant identification and classification, and highlight the need for further research in this area. This study employs advanced deep learning models with color images to accurately distinguish winter wheat from four common weed species providing a foundation for developing precise and automated weed management systems in winter wheat fields. Materials and Methods Image preparation To address the requirements of the study, 542 images were collected from the five classes understudy: Winter Wheat ( Triticum aestivum L.), Annual Bugloss ( Anchusa arvensis L.), Bastard Cabbage ( Rapistrum rugosum L.), Hoary Cress ( Cardaria draba (L.) Desv.), and Flixweed ( Descurainia sophia L.). Figure 1 illustrates a selection of these images. The photos were taken with the 48-megapixel camera of an A-12 Samsung Galaxy (SM-A125F/DS). In the pie chart shown in Fig. 2 , the quantity and proportion of samples for each class are shown. The illustration highlights the balanced distribution of data used in this study. Having a balanced dataset is crucial to prevent bias, improve generalisation, enhance performance, promote stability, and avoid misinterpretation. This balance ensures that the model receives sufficient examples from each class, enabling effective learning and accurate predictions across all classes. The images captured underwent a review process in which inappropriate samples were excluded. An agronomist with expertise in weed and crop properties contributed to this selection process. Ultimately, 542 images were chosen to develop the model and train the network. The selected images were divided into three datasets: training, validation, and testing. 80% of the data was allocated for training, while the remaining 20% was split for testing. Within the training data, 15% was set aside for validation purposes. It is worth emphasizing that the test set is reserved exclusively for evaluating the final model's performance and testing its accuracy on unseen data. This separation ensures a reliable assessment of the model's generalization capabilities. Image pre-processing Preprocessing input images is essential for improving the model's accuracy, mitigating overfitting, and enhancing its generalization ability. Resize and normalization Initially, we standardized the image sizes to 299 × 299 pixels to ensure uniform resolution across all images. Subsequently, we normalized the resolutions to fall within the range [0,1] by utilizing the Eq. 1 . $$\:{x}_{i}^{{\prime\:}}=\:\frac{{x}_{i}-\:{x}_{min}}{{x}_{max}-\:{x}_{min}}$$ 1 where \(\:{x}_{i}^{{\prime\:}}\) symbolizes the normalized value within the dataset, \(\:{x}_{i}\) represents the i-th value in the dataset, and \(\:\:{x}_{min}\) and \(\:{x}_{max}\:\) denote the minimum and maximum values in the dataset. This formula guarantees that after normalization, the normalized value for the dataset's minimum value will consistently be 0, and the normalized value for the dataset's maximum value will invariably be 1. Augmentation Data augmentation is a widely recognized method in computer vision. It seeks to create extra training data from existing samples by applying random transformations. This technique ensures that the generated images are realistic and that each specific image is unique (Chollet 2017 ). Consequently, image augmentation can alleviate the challenges encountered by deep neural networks regarding their reliance on a substantial quantity of annotated data, leading to improved accuracy. The extensive dataset enhances the training procedure through allowing the network to acquire all essential parameters while reducing the likelihood of overfitting. In the present study, an automated data augmentation technique was utilized, incorporating random height and width shifts, random flipping, random contrast adjustments, and random rotations. Table 1 represents the specific data augmentation arguments for our task. Table 1 Augmentation parameters and values. Image augmentation parameters Values Random height translation 0.1 Random width translation 0.1 Random flip True Random contrast 0.15 Random rotation 0.15 Candidate models Base networks The initial step in reaching our goal is to select a base network from several choices through transfer learning, which entails loading weights from the ImageNet dataset. To this end, we tested four innovative standard deep learning networks, including Xception, EfficientNetB0, VGG19, and InceptionResNetV2. Fine-tuning The objective of this fine-tuning process was to customize the candidate base networks for the particular dataset and task at hand, leveraging the previously learned features while adapting to the new data. This technique prevents the overfitting in pre-trained layers while facilitating the adaptation of the newly added layers to the new data. During the fine-tuning process, our goal was to selectively freeze certain layers (the earlier ones) while enabling the training of others (the later ones) when incorporating a pre-trained model into transfer learning within a deep learning framework. Initially, we disabled the trainable attribute for the first 20 layers, locking them during training to prevent their weights from being altered and preserving the valuable features they had already acquired from the original training data. Subsequently, we advanced to fine-tune the later layers of the base model. We then iterated through the layers starting from the 20th position and activated the trainable attribute for each of these layers. This adjustment allows these layers to undergo training and updates throughout the training phase. Modifying block To develop a robust CNN model, we added a modifying block to the last layer of the proposed base networks. We tested various layer configurations for the modifying block, exploring different types, placements, and parameters to find the most efficient setup. This included examining combinations of 2D Convolution, Batch Normalization, Dropout, and Global Average Pooling layers. Parameters were selected through experimentation testing, though the specifics are not detailed here for the sake of brevity. Consequently, the optimized modifying block involved three sets of layers, including Convolution, Batch Normalization, Max Pooling, and Dropout, followed by the Fully Connected and Global Average Pooling layers. The final layer of the base candidate networks was supplemented with these additional layers to develop the proposed architectures in this study (Fig. 3 ). By following the steps outlined earlier, we developed four distinct models, labelled Model 1 through Model 4 (Table 2 ). Subsequently, we evaluated these models using images resized to 299×299 pixels, the SGD optimizer, a batch size of 32, and 200 epochs to identify the optimal model. During this process, we employed selection criteria that included assessing the model's stability during training, as well as analyzing test accuracy and test loss. Table 2 Four proposed models for the purpose of this study. Model 1 Model 2 Model 3 Model 4 Modified Xception Modified EfficientNetB0 Modified VGG19 Modified InceptionResNetV2 The detailed outcomes of this step, including a comparison of the models' performance, are presented in Section 3.2. Figure 4 summarizes the proposed model for the purpose of our study. Following the evaluation of the candidate standard networks, the Inception-ResNetV2 stood out as the top performer based on the specified selection criteria (section 3.1.). Therefore, we focus on the detailed structure of this network. Inception-ResNetV2, a cutting-edge deep learning architecture developed by Google, combines the Inception and ResNet modules to enhance performance in image recognition tasks. Renowned for its exceptional accuracy and efficiency in handling intricate visual data, this architecture integrates key elements such as the Inception module (GoogLeNet) for capturing multi-scale features and the ResNet-inspired residual connections that aid gradient flow during training. Additionally, Inception-ResNetV2 introduces Inception-ResNet blocks, merging Inception and ResNet principles to create powerful feature extraction mechanisms using convolutional layers of varying sizes and depths. By incorporating parallel paths within each module, the network explores diverse ways to represent input data, achieving a richer feature set and boosting overall recognition capabilities while maintaining efficient computation without compromising accuracy. This network consists of various types of layers, including Average Pooling, Dropout, Inception-ResNet-v2-A, Inception-ResNet-v2-B, Inception-ResNet-v2-C, Inception-ResNet-v2 Reduction-B, Reduction-A, and Softmax (Fig. 5 ). These layers serve different functions within the network, such as pooling operations, regularization, image model blocks, and output functions. It has a total of 467 layers. This extensive depth in the network contributes to its ability to handle complex image classification tasks effectively. Figure 6 offers a comprehensive overview of the layers comprising the best model (Inception-ResNet-V2 – based network), including the output shapes and parameter count. The model includes approximately 24,000 (0.42%) non-trainable parameters from a total exceeding 59 million. Specific layers, such as Dropout, Max Pooling, and Global Average Pooling, do not add to the number of trainable parameters. This is because these layers do not possess any trainable parameters themselves. Network training The training of the CNNs follows a standard neural network architecture, involving two primary stages: Feed-Forward and Back-Propagation. During the feed-forward phase, the network assesses its error by contrasting the output produced from the input image with the associated labelled output. In the backpropagation phase, gradients for the parameters are determined from this error, leading to subsequent updates of the weight matrices. This iterative process involves the input being fed into the network, propagated through various layers, and the resulting output being compared with the desired output to determine the error. This error is then utilized to adjust the network parameters, and the process is repeated multiple times, with each iteration referred to as an epoch. The error calculation involves various formulas and functions, and the optimization process consists of incremental adjustments to the weights to minimize errors. To achieve this goal, we chose the appropriate optimizer from the options such as SGD, RMSprop, Nadam, and Adam. The performance of the model was evaluated using test accuracy and test loss. We additionally utilized the categorical cross-entropy loss function for the image data in this research. Table 3 represents the detailed properties of the optimizers. Table 3 The properties of the optimizers for the purpose of this study. Optimizer Properties RMSprop lr = 0.001 SGD lr = 0.001, momentum = 0.5, nesterov = FALSE Adam lr = 0.001, beta_1 = 0.9, beta_2 = 0.999 Nadam lr = 0.001, beta_1 = 0.9, beta_2 = 0.999 The training of the model entailed a systematic exploration of hyperparameters and components to determine the optimal configuration. During the training process, we carefully monitored the loss and accuracy trends for both the training and validation datasets at each epoch. This rigorous method enabled us to comprehensively evaluate the performance of the models and decide on their efficiency for our goal. The process of selecting the best model is depicted in the results and discussion section. To evaluate the potential models, we analyzed several performance metrics, including accuracy, loss, and model stability. Accuracy measures the proportion of correct predictions made by the model, while loss indicates the average error for each instance. Generally, lower loss values suggest better model performance. However, it is essential to recognize that a model exhibiting high accuracy but significant loss may be at risk of overfitting, which can adversely affect its ability to generalize to unseen test data. So, we meticulously assessed the possibility of overfitting during our comparative analysis of the four candidate models. To guarantee the dependability and reproducibility of our findings, we conducted the training, validation, and testing phases using Python version 3.10.12 on the Google Collaboratory platform. The computational environment features an NVIDIA K80 GPU with 12 GB of memory, and we utilized Keras with TensorFlow as the backend (version 2.15.0), alongside libraries such as OpenCV to conduct the experiments. Results The results of developing deep learning models for distinguishing between winter wheat and its four prevalent weeds, namely annual bugloss, bastard cabbage, hoary cress, and flixweed, using color images is presented in this section. These models would be suitable for precision wheat weed management in various scenarios where any of these weeds are present. Evaluation of models The first stage in developing an appropriate deep learning model entails the selection of a base network from a variety of standard options via transfer learning, where the initial weights are imported from ImageNet dataset. We assessed four cutting-edge standard deep learning networks: Xception, EfficientNetB0, VGG19, and InceptionResNetV2. Following fine-tuning, these networks underwent a modification phase by incorporating three blocks of CNN layers into the ultimate layer of the fine-tuned standard candidate models to establish four candidate architectures (Model 1 to Model 4) (Table 2 ). The models were trained using images resized to 299 × 299 pixels, with the SGD optimizer, a batch size of 32, and 200 epochs to determine the optimal network. During this process, we employed selection criteria that assessed model stability during training and analyzed test accuracy and test loss. The results comparing the four candidate models based on maximum and minimum accuracy on the training, validation, and test datasets are presented in Table 4 . As observed in this table, Models 1 and 4 achieved 100% accuracy on the training dataset, while Model 3 attained 100% accuracy on the validation dataset. Notably, Model 3 produced the lowest loss values among all models on the training, validation, and test datasets. However, Model 4 achieved the highest accuracy on the test dataset, followed by Models 1 and 3, respectively. Model 2 yielded the lowest test accuracy. The accuracy and loss values of Models 1 and 4 are relatively close, which could be attributed to the presence of the Inception module in both models. Table 4 Comparison of the four deep learning models on training, validation, and test datasets. Model 1 Model 2 Model 3 Model 4 Maximum accuracy on train dataset 1.0000 (epoch: 161) 0.9837 (epoch: 179) 0.9810 (epoch: 190) 1.0000 (epoch: 179) Minimum loss on train dataset 3.1821 (epoch: 200) 3.2169 (epoch: 200) 2.9758 (epoch: 200) 3.1642 (epoch: 199) Maximum accuracy on validation dataset 0.9846 (epoch: 187) 0.9077 (epoch: 194) 1.0000 (epoch: 161) 0.9846 (epoch: 188) Minimum loss on validation dataset 3.2592 (epoch: 198) 3.4446 (epoch: 194) 2.9286 (epoch: 200) 3.2194 (epoch:197) Accuracy on test dataset 0.9725 0.8532 0.9358 0.9817 Loss on test dataset 3.2550 3.4555 2.9868 3.1933 To gain deeper insights into the training process of the four candidate models, we analyzed the trends of accuracy and loss concerning the number of epochs during the training phase for both the training and validation datasets. The graphical representation of these trends for all models is depicted in Fig. 7. Accordingly, Model 2 exhibits slightly more pronounced fluctuations compared to the other three models, indicating a less stable training pattern. In contrast, Models 1, 3, and 4 display a consistent downward trend in losses and a steady increase in accuracies, with only minor variations. This behavior indicates that Models 1, 3, and 4 exhibit greater resistance to instability and are likely to generalize more effectively to new, unseen data, rendering them more dependable options. Figure 8 compares the total parameters, trainable parameters, and non-trainable parameters for the four candidate models. This comparison provides valuable insights into the response time of the models. According to this figure, Model 1 and Model 4 exhibit comparable values for these parameters, which can be attributed to their Inception-based architectures. Model 2 offers the minimum number of trainable parameters, making it advantageous in terms of response time for real-time applications. However, it achieves the lowest accuracy and the highest loss on test dataset among all four models. Model 3, on the other hand, provides promising results in terms of accuracy and loss while maintaining a reasonable number of trainable parameters (Fig. 8 ), making it a compelling choice for our purposes. After carefully considering the evaluation criteria, we proposed Model 4 as the optimal choice for our specific purpose. This model utilizes a modified and fine-tuned InceptionResNetV2 architecture with the SGD optimizer. Model 4 exhibited minimal fluctuations during the training process, indicating a high level of stability. Moreover, it achieved impressive accuracy and loss values on the test dataset (98.17% accuracy and a loss of 3.19, respectively), along with a reasonably fast response time. These factors suggest that Model 4 would perform exceptionally well in real-world scenarios, making it our preferred selection. Classification performance To evaluate the efficacy of the models in distinguishing the five classes, various parameters were considered. These parameters include True Positive (TP), representing the count of instances correctly identified as positive; True Negative (TN), denoting instances correctly identified as negative; False Positive (FP), indicating instances incorrectly identified as positive; and False Negative (FN), signifying instances incorrectly identified as negative. These parameters are utilized in the development of two classification metrics: the classification report and the confusion matrix. The classification report provides insights into the model's performance based on precision, recall, and F1-score, as outlined in Equations 2–4. Precision quantifies the model's accuracy in predicting positive cases. A high precision value suggests a lower ratio of incorrect to correct predictions, and conversely. Recall quantifies the ratio of accurately predicted positive instances to the total number of actual positive instances, highlighting the model's capability to correctly identify all positive instances. Furthermore, recall provides information on the model's capacity to minimize false negatives. The F1-score, calculated as the geometric mean of precision and recall, serves as a metric that balances these two parameters to achieve an optimal trade-off between precision and recall. \(\:Precision=\:\left(\frac{TP}{TP+FP}\right)\) (2) \(\:Recall=\:\left(\frac{TP}{TP+FN}\right)\) (3) \(\:f1-score=\:(2\times\:\frac{Precision\times\:Recall}{Precision+Recall})\) (4) The classification report describing the categorization of winter wheat, annual bugloss, bastard cabbage, hoary cress, and flixweed classes by color images through the four models is outlined in Table 5 . Table 5 The classification report detailing the recognition performance of the five classes by the four candidate models. Annual Bugloss Bastard Cabbage Flixweed Hoary Cress Winter Wheat Micro Avg. Macro Avg. Weighted Avg. Samples Avg. Precision Model 1 0.95 0.95 1.00 0.95 1.00 0.97 0.97 0.97 0.96 Model 2 0.74 1.00 1.00 1.00 0.83 0.88 0.92 0.91 0.84 Model 3 1.00 0.80 1.00 1.00 1.00 0.95 0.96 0.96 0.93 Model 4 0.95 0.95 1.00 1.00 1.00 0.98 0.98 0.98 0.97 Recall Model 1 0.91 0.95 1.00 1.00 0.95 0.96 0.96 0.96 0.96 Model 2 1.00 0.52 0.96 0.71 1.00 0.84 0.84 0.84 0.84 Model 3 0.70 0.95 1.00 1.00 1.00 0.93 0.93 0.93 0.93 Model 4 0.91 1.00 1.00 1.00 0.95 0.97 0.97 0.97 0.97 f1-score Model 1 0.93 0.95 1.00 0.98 0.97 0.97 0.97 0.97 0.96 Model 2 0.85 0.69 0.98 0.83 0.91 0.86 0.85 0.86 0.84 Model 3 0.82 0.87 1.00 1.00 1.00 0.94 0.94 0.94 0.93 Model 4 0.93 0.98 1.00 1.00 0.97 0.98 0.98 0.98 0.97 Supports 23 21 24 21 20 109 109 109 109 Based on Table 5 , the precision parameter analysis reveals that Model 1 was able to identify the flixweed and winter wheat classes with 100% accuracy. Using Model 2, three classes—bastard cabbage, flixweed, and hoary cress—were identified with 100% accuracy. Moreover, Model 3 successfully identified four classes—annual bugloss, flixweed, hoary cress, and winter wheat—with 100% accuracy, while Model 4 detected three classes—flixweed, hoary cress, and winter wheat—with 100% precision. On the other hand, if the objective is to identify a specific class (e.g., for selective treatment), it is observed that annual bugloss can be accurately identified using Model 3 and bastard cabbage using Model 2, both at 100% accuracy. Furthermore, Models 2, 3, and 4 can be utilised to identify hoary cress with 100% accuracy. It is worth noting that flixweed can be identified accurately with 100% precision by all four models. Conversely, if the goal is to differentiate weed species from winter wheat for herbicidal purposes, Models 1, 3, and 4 can be employed to identify winter wheat with 100% precision. Lastly, based on the aforementioned table, the lowest precision value was related to identifying annual bugloss with Model 2 (0.74). To evaluate the models' capacity to minimize false negatives, we can compare their recall values. The recall values in the table indicate that this parameter achieved 100% for the annual bugloss class using Model 2; for the bastard cabbage class using Model 4; for the flixweed and hoary cress classes using Models 1, 3, and 4; and for the winter wheat class using Models 2 and 3. Conversely, the lowest recall value was observed for Model 2 in relation to the bastard cabbage class (0.52). Furthermore, the F1-score parameter reached 100% for the flixweed class using Models 1, 3, and 4; for the hoary cress class using Models 3 and 4; and for the winter wheat class using Model 3. The lowest F1-score value was observed for the bastard cabbage class using Model 2 (0.69). Consequently, Model 4 demonstrated the best performance with the highest average precision, recall, and F1-score values. Figure 9 presents the confusion matrices for classifying five categories with four candidate models. The rows represent the true classes while the columns show the predicted classes. Through these matrices, we can see that there were only two annual bugloss instances mistakenly classified as bastard cabbage or hoary cress using Model 1. Additionally, Models 3 and 4 misclassified seven and one annual bugloss instances as bastard cabbage respectively, whereas Model 2 accurately identified this class without any errors. For the bastard cabbage class, one instance was misclassified as annual bugloss using Model 1; eight instances were misclassified as annual bugloss using Model 2; and one instance was misclassified as winter wheat also using Model 2. In contrast, Models 3 and 4 accurately classified this class with 100% precision. The flixweed class was accurately classified without error using Models 1, 3, and 4; however, Model 2 misclassified one instance as winter wheat. For the hoary cress class, Models 1, 3, and 4 accurately classified it without error; whereas Model 2 misclassified two instances as annual bugloss and four instances as winter wheat. Finally, for the winter wheat class, Models 1, 2, and 3 accurately classified it without error; whereas Model 4 misclassified only one instance as annual bugloss. Winter wheat weed management scenarios It is essential to emphasize that the findings of this study can be effectively generalized to encompass various scenarios in winter wheat fields with respect to weed appearance. Given that four distinct weed species have been investigated, we can conclude that the proposed model(s) can be utilized as a tool for efficient weed management in 15 different weed appearance scenarios that may arise in winter wheat fields. These scenarios are detailed in Table 6 , which accounts for one to four weeds that can coexist alongside winter wheat. Notably, scenario 15 represents the general condition that we have studied thus far in this investigation. Table 6 Fifteen scenarios for different weeds appearance in winter wheat fields. Scenario number Weed(s) alongside winter wheat No. of classes Scenario 1 Flixweed 2 Scenario 2 Hoary Cress 2 Scenario 3 Annual Bugloss 2 Scenario 4 Bastard Cabbage 2 Scenario 5 Flixweed + Hoary Cress 3 Scenario 6 Annual Bugloss + Flixweed 3 Scenario 7 Bastard Cabbage + Flixweed 3 Scenario 8 Annual Bugloss + Hoary Cress 3 Scenario 9 Bastard Cabbage + Hoary Cress 3 Scenario 10 Annual Bugloss + Bastard Cabbage 3 Scenario 11 Annual Bugloss + Flixweed + Hoary Cress 4 Scenario 12 Bastard Cabbage + Flixweed + Hoary Cress 4 Scenario 13 Annual Bugloss + Bastard Cabbage + Flixweed 4 Scenario 14 Annual Bugloss + Bastard Cabbage + Hoary Cress 4 Scenario 15 Annual Bugloss + Bastard Cabbage + Flixweed + Hoary Cress 5 For this analysis, we used confusion matrices (Fig. 9), and for each scenario, we extracted a separate subset that must include winter wheat for each model. This analysis will involve creating 60 subsets of the confusion matrices (15 subsets for each model). The results of this analysis are presented in Table 7 and Fig. 10 . Accordingly, it was concluded that Models 1, 3, and 4 are usable with 100% accuracy for scenarios 1, 2, 4, 5, 7, 9, and 12. Scenario 3 can be treated with 100% accuracy using Models 1, 2, and 3. Additionally, for scenario 6, Models 1 and 3 are suggested with 100% accuracy. For scenario 8, Model 3 will perform best with 100% accuracy. For scenario 11, Model 3 showed the best performance (100%). For scenarios 10, 13, and 14, while 100% accuracy was not achieved, Models 1 and 4 provided the highest accuracy of around 97% for scenario 10. The same two models can be used for scenario 13, with an accuracy of about 98%. Model 4 can be employed for scenario 14 with an accuracy of 98%. If we were to choose a comprehensive model for various scenarios, we would consider the average accuracy across different models and scenarios. Accordingly, based on Table 7 , Model 4 has the highest average accuracy (98.92%) and the lowest standard deviation (0.0110), making it the most suitable model. Although Model 3 is noteworthy for achieving 100% accuracy in 11 different scenarios. It is important to reiterate that scenario 15 is the initial and overall scenario considered in this research, based on which the deep learning models have been designed. Table 7 Average and standard deviation of accuracies for the four models in all scenarios. Model 1 Model 2 Model 3 Model 4 Average accuracies in all scenarios 0.9890 0.9191 0.9776 0.9892 STD of accuracies in all scenarios 0.0161 0.0504 0.0380 0.0110 Discussion The present study demonstrated the effectiveness of deep learning models in distinguishing winter wheat from four prevalent weed species annual bugloss, bastard cabbage, hoary cress, and flixweed using RGB color images. Among the four candidate architectures developed through transfer learning and fine-tuning, the modified InceptionResNetV2 (Model 4) achieved the best overall performance, with a test accuracy of 98.17%, minimal loss, and stable training behavior. Importantly, the evaluation of the models across 15 different weed appearance scenarios further emphasized the robustness of Model 4, which exhibited the highest mean accuracy (98.92%) and the lowest standard deviation (0.0110). These findings suggest that this model is particularly well-suited for precision weed management in winter wheat fields under diverse and dynamic conditions. Our results are consistent with and extend previous work in the field. Shao et al. ( 2023 ) applied a lightweight YOLOv5s-based framework for weed recognition in paddy fields and reported robust but lower accuracies under natural conditions compared with our findings. Similarly, G. C. et al. (2024) tested five deep learning frameworks to classify 14 weed and crop species in greenhouse environments, but their reported performance was relatively limited due to high inter-class similarity. Makarian and Saedi (2025) achieved near-perfect accuracy for weed discrimination under natural conditions; however, their model was constrained by a small number of classes, limiting generalizability. In contrast, our study addressed both a greater number of weed species and multiple coexistence scenarios, thereby providing a more comprehensive framework for real-world applications. The scenario-based analysis is of particular importance. By evaluating model performance across 15 distinct weed–crop combinations, we demonstrated that deep learning models can be adapted for various field conditions, including cases with one to four competing weed species. This scenario-driven approach strengthens the practical applicability of the models, as farmers and agronomists are often faced with heterogeneous weed infestations. Notably, while Model 3 achieved 100% accuracy in 11 scenarios, Model 4 combined superior stability, high average accuracy, and low variance, making it the most reliable model overall. From a broader perspective, these results confirm that deep learning methods can effectively support precision agriculture by enabling selective and automated weed management. Nevertheless, several challenges remain, including the need for larger and more diverse datasets, validation under varying geographical and environmental conditions, and computational efficiency for deployment on edge devices. Recent studies have highlighted the potential of multimodal imaging (e.g., RGB combined with depth or hyperspectral data) to further improve weed–crop discrimination accuracy (Xu et al. 2021 ; Liu et al. 2024 ). Incorporating such modalities, as well as model compression techniques for real-time applications, could be valuable directions for future research. In recent studies, multi-modal imaging approaches, combining RGB and depth information, have been proposed to improve weed detection in wheat fields under natural conditions. For instance, depth images were recoded into three-channel PHA images to enable CNN-based feature extraction, and multi-scale object detection with feature- and decision-level fusion was applied. Such methods achieved a mean average precision (mAP) of 36.1% for grass weeds, 42.9% for broadleaf weeds, and an overall detection accuracy (IoG) of 89.3% (α = 0.4 for RGB and β = 0.3 for depth) (Xu et al. 2021 ). While these results demonstrate the potential of multi-modal information for addressing limitations of single-modality data, several challenges remain regarding data acquisition complexity, cost, and practical applicability in real field scenarios. In contrast, the present study demonstrates that high-performance weed detection can be achieved using only RGB images, without the need for additional depth sensors. By leveraging a modified InceptionResNetV2 architecture and carefully fine-tuned CNN layers, our proposed Model 4 achieved a test accuracy of 98.17% and demonstrated stable training behavior with minimal fluctuations. Moreover, our approach considered four dominant weed species—annual bugloss, bastard cabbage, hoary cress, and flixweed and evaluated performance across 15 realistic weed-crop coexistence scenarios, reflecting the diverse conditions commonly observed in wheat fields. This scenario-based evaluation highlights the generalizability and robustness of our model, which can reliably detect multiple weed species under varying field conditions. Another advantage of our study is the precision at the species level. While multi-modal approaches in previous studies focused primarily on broad categories such as grass versus broadleaf weeds, our model achieved 97–100% precision and recall for individual weed species. This capability enables selective and targeted weed management, a critical requirement for precision agriculture. In addition, the streamlined use of RGB images alone reduces data acquisition costs and simplifies deployment in real-world applications, making our method more practical and scalable compared to multi-modal systems. Conclusion In this study, four advanced deep neural network models were developed to differentiate winter wheat from four common weeds. Using color images for training and testing, all models accurately identified the five plant species, with InceptionResNetV2 achieving the highest accuracy. Fifteen scenarios of weed presence in wheat fields were also evaluated to determine optimal weed management strategies. The models performed reliably across all scenarios, enabling targeted control of weeds without affecting wheat. This approach can reduce herbicide use, minimize environmental impact, and improve wheat yield and quality, providing a foundation for precision weed management and automated weed removal solutions. Declarations Competing Interests The author(s) declare none. Hassan Makarian Conceptualization; writing-review and editing. Author contributions Seyed Iman Saedi : Conceptualization; methodology; project administration; writing-original draft. Acknowledgments The authors would like to acknowledge the financial support of Shahrood University of Technology for this research under project No: RP_S_219444. Data availability No datasets were generated or analyzed during the current study References Chollet F (2017). Deep Learning with Python (1st ed.). Manning Publications Co. Fan X, Chai X, Zhou J, Sun T (2023) Deep learning-based weed detection and target spraying robot system at seedling stage of cotton field. Comput Electron Agric 214:108317. https://doi.org/https://doi.org/10.1016/j.compag.2023.108317 Gao J, French AP, Pound MP, He Y, Pridmore TP, Pieters JG (2020) Deep convolutional neural networks for image-based Convolvulus sepium detection in sugar beet fields. Plant Methods 16:29. 16 (1), 29. https://doi.org/10.1186/s13007-020-00570-z GC S, Zhang Y, Howatt K, Schumacher LG, Sun X (2024) Multi-species weed and crop classification comparison using five different deep learning network architectures. J ASABE 67:275–287. https://doi.org/10.13031/ja.15590 Gyawali A, Bhandari R, Budhathoki P, Bhattarai S (2022) A review on effect of weeds in wheat ( Triticum aestivum L.) and their management practices. Food and Agri Economics Review pp 34–40. https://doi.org/10.26480/faer.02.2022.34.40 Juwono FH, Wong WK, Verma S, Shekhawat N, Lease BA, Apriono C (2023) Machine learning for weed–plant discrimination in agriculture 5.0: An in-depth review. Artif Intell Agric 10:13–25. https://doi.org/https://doi.org/10.1016/j.aiia.2023.09.002 Khosravi H, Saedi SI, Rezaei M (2021) Real-time recognition of on-branch olive ripening stages by a deep convolutional neural network. Sci Hortic 287:110252. https://doi.org/10.1016/j.scienta.2021.110252 Langridge P, Alaux M, Almeida N, Ammar K, Baum M, Bekkaoui F, Bentley A, Beres B, Berger B, Braun HJ, Brown-Guedira G, Burt C, Caccamo M, Cattivelli L, Charmet G, Civán P, Cloutier S, Cohan JP, Devaux P, Zhang X (2022) Meeting the challenges facing wheat production: The strategic research agenda of the Global Wheat Initiative. Agron 12:2767. https://doi.org/10.3390/agronomy12112767 Li Z, Wang D, Yan Q, Zhao M, Wu X, Liu X (2024) Winter wheat weed detection based on deep learning models. Comput Electron Agric 227:109448. https://doi.org/https://doi.org/10.1016/j.compag.2024.109448 Liu T, Sun Q, Zhou Z, Zhang Y (2024) Harnessing UAVs and deep learning for accurate grass weed recognition using hyperspectral imaging. Plant Methods 20:72. https://doi.org/10.1186/s13007-024-01272-6 Makarian H, Saedi SI (2024) Automated classification of saffron and broadleaf weeds of flixweed and hoary cress using deep learning and color images. Crop Prot:106750. https://doi.org/https://doi.org/10.1016/j.cropro.2024.106750 Montazeri M, Zand E, Baghestani MA (2005) Weeds and their control in wheat fields of Iran, first ed. Agricultural Research and Education Organization Press. Nasiri A, Omid M, Taheri-Garavand A, Jafari A (2022) Deep learning-based precision agriculture through weed recognition in sugar beet fields. Sustain Comput Inform Syst 35:100759. https://doi.org/https://doi.org/10.1016/j.suscom.2022.100759 Nasiri A, Taheri-Garavand A, Zhang YD (2019) Image-based deep learning automated sorting of date fruit. Postharvest Biol Technol 153:133–141. https://doi.org/https://doi.org/10.1016/j.postharvbio.2019.04.003 Peng H, Huang B, Shao Y, Li Z, Zhang C, Chen Y, Xiong J (2018) General improved SSD model for picking object recognition of multiple fruits in natural environment. Trans Chin Soc Agric Eng 34:155–162. https://doi.org/10.11975/j.issn.1002-6819.2018.16.020 Quan L, Feng H, Lv Y, Wang Q, Zhang C, Liu J, Yuan Z (2019) Maize seedling detection under different growth stages and complex field environments based on an improved Faster R–CNN. Biosyst Eng 184:1–23. https://doi.org/https://doi.org/10.1016/j.biosystemseng.2019.05.002 Rai N, Sun X (2024) WeedVision: A single-stage deep learning architecture to perform weed detection and segmentation using drone-acquired images. Comput Electron Agric 219:108792. https://doi.org/https://doi.org/10.1016/j.compag.2024.108792 Sadeghi SH, Saedi SI, Peters RT, Stöckle C (2022) Towards improving the global water application uniformity of centre pivots through lateral speed adjustment. Biosyst Eng 215:215–227. https://doi.org/https://doi.org/10.1016/j.biosystemseng.2022.01.012 Saedi SI, Alimardani R, Mousazadeh H, Salehi R (2019) Development and evaluation of an energy and water efficient intensive cropping system. INMATEH-Agric Eng 58:93–104. Saedi SI, Rezaei M (2024) A modified Xception deep learning model for automatic sorting of olives based on ripening stages. Inventions 9(1). https://doi.org/10.3390/inventions9010006 Saedi SI, Khosravi H (2020) A deep neural network approach towards real-time on-branch fruit recognition for precision horticulture. Expert Syst Appl 159:113594. https://doi.org/https://doi.org/10.1016/j.eswa.2020.113594 Saedi SI, Rezaei M, Khosravi H (2024) Dual-path lightweight convolutional neural network for automatic sorting of olive fruit based on cultivar and maturity. Postharvest Biol Technol 216:113054. https://doi.org/https://doi.org/10.1016/j.postharvbio.2024.113054 Salim F, Saeed F, Basurra S, Qasem SN, Al-Hadhrami T (2023) DenseNet-201 and Xception pre-trained deep learning models for fruit recognition. Electronics 12(14). https://doi.org/10.3390/electronics12143132 Shao Y, Guan X, Xuan G, Gao F, Feng W, Gao G, Wang Q, Huang X, Li J (2023) GTCBS-YOLOv5s: A lightweight model for weed species identification in paddy fields. Comput Electron Agric 215:108461. https://doi.org/https://doi.org/10.1016/j.compag.2023.108461 Shewry PR, Hey SJ (2015) The contribution of wheat to human diet and health. Food Energy Secur 4(3):178–202. https://doi.org/10.1002/fes3.64 Singh M, Kukal MS, Irmak S, Jhala AJ (2021) Water use characteristics of weeds: A global review, best practices, and future directions. Front Plant Sci 12:794090. https://doi.org/10.3389/fpls.2021.794090 Speck O, Speck T (2021) Functional morphology of plants - a key to biomimetic applications. New Phytol 231(3):950–956. https://doi.org/10.1111/nph.17396 Subeesh A, Bhole S, Singh K, Chandel NS, Rajwade YA, Rao KVR, Kumar SP, Jat D (2022) Deep convolutional neural network models for weed detection in polyhouse grown bell peppers. Artif Intell Agric 6:47–54. https://doi.org/https://doi.org/10.1016/j.aiia.2022.01.002 Susetyarini E, Wahyono P, Latifa R, Nurrohman E (2020) The identification of morphological and anatomical structures of Pluchea indica. J Phys Conf Ser 1539(1):012001. https://doi.org/10.1088/1742-6596/1539/1/012001 Xu K, Zhao Y, Wang L, Zhang X (2021) Multi-modal deep learning for weeds detection in wheat fields. Front Plant Sci 12:732968. https://doi.org/10.3389/fpls.2021.732968 Additional Declarations The authors declare no competing interests. Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-7578610","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":512829992,"identity":"fbd1333f-93e3-48f2-800c-6a91fda34716","order_by":0,"name":"Seyed Iman Saedi","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAuElEQVRIiWNgGAWjYBACNhDBY2ADJBkbD5CiJQ2kpYE4LWDAw3AYTBOnhY//8MMHbwrO261tPwy0pcYmmrDDJNKMDecY3E7ediYRqOVYWm4DYS0MZtI8QC1mB4BaGBsOE6GF//j33zwG55LNzj8kVgtDjhkzj8EBO7MbRNsikVMsOccgOcHsBtCWBGL8It9/fOOHN3/s7M3Opz988KHGhrAWGEgEq0wgVjkI2JOieBSMglEwCkYYAABaIULN9FWPTwAAAABJRU5ErkJggg==","orcid":"https://orcid.org/0000-0003-2020-4142","institution":"Shahrood University of Technology","correspondingAuthor":true,"prefix":"","firstName":"Seyed","middleName":"Iman","lastName":"Saedi","suffix":""},{"id":512829993,"identity":"d2cb1b2d-0f66-497a-97bb-3ab98827822b","order_by":1,"name":"Hassan Makarian","email":"","orcid":"https://orcid.org/0000-0003-0206-0907","institution":"Shahrood University of Technology","correspondingAuthor":false,"prefix":"","firstName":"Hassan","middleName":"","lastName":"Makarian","suffix":""}],"badges":[],"createdAt":"2025-09-10 04:28:24","currentVersionCode":1,"declarations":{"humanSubjects":true,"vertebrateSubjects":true,"conflictsOfInterestStatement":false,"humanSubjectEthicalGuidelines":true,"humanSubjectConsent":true,"humanSubjectClinicalTrial":false,"humanSubjectCaseReport":false,"vertebrateSubjectEthicalGuidelines":true},"doi":"10.21203/rs.3.rs-7578610/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-7578610/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":91080053,"identity":"e5b8b771-1bef-4f61-92ac-31d296b8210a","added_by":"auto","created_at":"2025-09-11 11:29:36","extension":"jpg","order_by":1,"title":"Figure 1","display":"","copyAsset":false,"role":"figure","size":212666,"visible":true,"origin":"","legend":"\u003cp\u003eSample images of winter wheat and weeds showcasing the five classes studied in fully natural condition within a field.\u003c/p\u003e","description":"","filename":"1.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/27793d75f1f2a60cd2de1809.jpg"},{"id":91078872,"identity":"e812c488-7c25-4c3b-bea6-1b7614a9f72e","added_by":"auto","created_at":"2025-09-11 11:21:36","extension":"jpg","order_by":2,"title":"Figure 2","display":"","copyAsset":false,"role":"figure","size":37637,"visible":true,"origin":"","legend":"\u003cp\u003eThe pie chart for the number and proportion of samples that showcases a balanced distribution of data used in this study.\u003c/p\u003e","description":"","filename":"2.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/b2c62e8635b30889d21b94af.jpg"},{"id":91078875,"identity":"8aed2643-05b3-485d-af1d-0443081f30f6","added_by":"auto","created_at":"2025-09-11 11:21:36","extension":"jpg","order_by":3,"title":"Figure 3","display":"","copyAsset":false,"role":"figure","size":123739,"visible":true,"origin":"","legend":"\u003cp\u003eModifying block appended to the final layer of the base networks.\u003c/p\u003e","description":"","filename":"3.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/98fb6c47cbdf7fd0a782e6d2.jpg"},{"id":91078874,"identity":"caf83ba6-02b8-4731-a423-a1887f7685cb","added_by":"auto","created_at":"2025-09-11 11:21:36","extension":"jpg","order_by":4,"title":"Figure 4","display":"","copyAsset":false,"role":"figure","size":90502,"visible":true,"origin":"","legend":"\u003cp\u003eDeep learning structure for the classification of five plant species under study.\u003c/p\u003e","description":"","filename":"4.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/e3fce828084928bb6abab98a.jpg"},{"id":91078882,"identity":"3fa92fa2-ad69-42f3-a84f-445294a56c65","added_by":"auto","created_at":"2025-09-11 11:21:36","extension":"jpg","order_by":5,"title":"Figure 5","display":"","copyAsset":false,"role":"figure","size":1542476,"visible":true,"origin":"","legend":"\u003cp\u003eThe architecture of Inception-ResNet-V2 deep learning network.\u003c/p\u003e","description":"","filename":"5.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/7fb1e3e1a6282f63f049e9fa.jpg"},{"id":91080543,"identity":"ae01c391-ecfe-4c72-8402-db050507917c","added_by":"auto","created_at":"2025-09-11 11:37:36","extension":"jpg","order_by":6,"title":"Figure 6","display":"","copyAsset":false,"role":"figure","size":251112,"visible":true,"origin":"","legend":"\u003cp\u003eLayer configuration of the improved InceptionResNetV2 deep learning model.\u003c/p\u003e","description":"","filename":"6.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/67f4bc3d3e5baabba50e1606.jpg"},{"id":91080052,"identity":"08cdfede-5dd3-4df5-a9b6-48b837ac7e9d","added_by":"auto","created_at":"2025-09-11 11:29:36","extension":"jpg","order_by":7,"title":"Figure 7","display":"","copyAsset":false,"role":"figure","size":110489,"visible":true,"origin":"","legend":"\u003cp\u003eAccuracy and loss trends on train and validation datasets for the four-candidate model during training.\u003c/p\u003e","description":"","filename":"7.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/cf78d3ec70a6c9be6b763915.jpg"},{"id":91078879,"identity":"8072b18b-b755-4b1b-9c4f-e08ba7b8f8ce","added_by":"auto","created_at":"2025-09-11 11:21:36","extension":"jpg","order_by":8,"title":"Figure 8","display":"","copyAsset":false,"role":"figure","size":85138,"visible":true,"origin":"","legend":"\u003cp\u003eEvaluation of the number of parameters (total, trainable, and non-trainable) for the four candidate models.\u003c/p\u003e","description":"","filename":"8.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/4669e31390eae8a5af7df803.jpg"},{"id":91080056,"identity":"319dc404-6620-4468-a7fd-5f0570613ea4","added_by":"auto","created_at":"2025-09-11 11:29:36","extension":"jpg","order_by":9,"title":"Figure 9","display":"","copyAsset":false,"role":"figure","size":108882,"visible":true,"origin":"","legend":"\u003cp\u003eConfusion matrices illustrating the classification performance of the five classes using the four developed models.\u003c/p\u003e","description":"","filename":"9.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/35aa3ab619ae273f82f5bb94.jpg"},{"id":91078886,"identity":"13df9d84-345a-4a35-98bc-8b0f4a4ac740","added_by":"auto","created_at":"2025-09-11 11:21:36","extension":"jpg","order_by":10,"title":"Figure 10","display":"","copyAsset":false,"role":"figure","size":127752,"visible":true,"origin":"","legend":"\u003cp\u003eThe accuracy of the four model candidates in different winter wheat weeds appearance scenarios.\u003c/p\u003e","description":"","filename":"10.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/a2485216f47a0fad59727a57.jpg"},{"id":91082453,"identity":"4d0787bc-42aa-489b-8b2d-38a8bc2af133","added_by":"auto","created_at":"2025-09-11 11:53:38","extension":"pdf","order_by":0,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":3567038,"visible":true,"origin":"","legend":"","description":"","filename":"manuscript.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7578610/v1/8657a686-50c1-4ee0-ba34-830b81822955.pdf"}],"financialInterests":"The authors declare no competing interests.","formattedTitle":"\u003cp\u003e\u003cstrong\u003eIntelligent Broadleaf Weed–Wheat Crop Classification via Deep Convolutional Neural Networks\u003c/strong\u003e\u003c/p\u003e","fulltext":[{"header":"Introduction","content":"\u003cp\u003eAs the global population continues to grow, wheat emerges as a vital crop in addressing the world's increasing nutritional demands (Sadeghi et al. \u003cspan citationid=\"CR18\" class=\"CitationRef\"\u003e2022\u003c/span\u003e; Saedi et al. \u003cspan citationid=\"CR19\" class=\"CitationRef\"\u003e2019\u003c/span\u003e; Shewry \u0026amp; Hey \u003cspan citationid=\"CR25\" class=\"CitationRef\"\u003e2015\u003c/span\u003e). Wheat plays a key role in global food security, supplying roughly 20% of the essential carbohydrates and proteins needed for human consumption (Langridge et al. \u003cspan citationid=\"CR8\" class=\"CitationRef\"\u003e2022\u003c/span\u003e). It occupies about 30% of the world's cereal cropland, underscoring its critical importance in agricultural systems (FAO 2021). In light of the increasing challenges posed by climate change and a rapidly growing global population, enhancing wheat productivity has emerged as a crucial strategy to uphold food security in the years ahead. One significant obstacle to wheat production is weeds, which reduce the growth and yield of wheat by competing for water, nutrients, and light (Singh et al. \u003cspan citationid=\"CR26\" class=\"CitationRef\"\u003e2021\u003c/span\u003e). Weeds can significantly impact wheat productivity, with estimated yield losses of up to 30%, largely influenced by varying climatic conditions and differences in agricultural management practices (Gyawali et al. \u003cspan citationid=\"CR5\" class=\"CitationRef\"\u003e2022\u003c/span\u003e). In many of Iran's key wheat-producing areas, broadleaved weeds have emerged as a prominent concern, accounting for a staggering 84% of the weed species infesting wheat fields and posing a significant threat to crop yields (Montazeri et al. \u003cspan citationid=\"CR12\" class=\"CitationRef\"\u003e2005\u003c/span\u003e). Manual removal of weeds in wheat fields is not a viable option due to the risk of crop damage and the high labor costs involved. Precise identification and differentiation of weeds from crop plants is a crucial component of effective site-specific weed management. By accurately distinguishing weeds from wheat, farmers can target herbicide applications to specific areas where weeds are present, thereby optimizing weed control.\u003c/p\u003e\u003cp\u003eBy harnessing the power of advanced technologies such as computer vision and image processing, researchers can achieve high precision in weed detection, enabling the development of targeted management strategies that accurately distinguish between crops and weeds, ultimately optimizing the effectiveness of site-specific weed control techniques (Juwono et al. \u003cspan citationid=\"CR6\" class=\"CitationRef\"\u003e2023\u003c/span\u003e). Through providing two-dimensional information, color images have been widely utilized in this domain, laying the groundwork for further advancements. Studies have shown that unique morphological characteristics, including leaf form, color, and dimension, can serve as valuable features for object recognition and classification tasks (Susetyarini et al. \u003cspan citationid=\"CR29\" class=\"CitationRef\"\u003e2020\u003c/span\u003e). Specifically, features like leaf area, length, perimeter, width, and color can be employed to differentiate between plants and inform plant management strategies (Speck \u0026amp; Speck \u003cspan citationid=\"CR27\" class=\"CitationRef\"\u003e2021\u003c/span\u003e). Despite these challenges, significant progress has been made in developing object recognition algorithms for precision agriculture, with varying degrees of accuracy achieved in different applications. The application of deep learning techniques has demonstrated considerable potential in achieving these objectives. Over the past decade, deep learning has transformed the field of image processing, achieved unprecedented success and found numerous practical applications in precision agriculture. While large datasets are essential for training and validating deep learning algorithms, advances in computational power and data availability have made them increasingly popular. As a subset of machine learning, deep learning leverages hierarchical representations of data through sequential layers, typically employing convolutional neural networks (CNNs) to extract complex, non-linear image features. This approach has been shown to exhibit exceptional generalization capabilities, making it well-suited for classification tasks (Saedi \u0026amp; Rezaei \u003cspan citationid=\"CR20\" class=\"CitationRef\"\u003e2024\u003c/span\u003e). This task begins with the input of an image, which can vary in size, and undergoes preprocessing before entering the feature extraction stage. This phase involves a series of layers that progressively extract features from the image, with the complexity of the features increasing with each additional layer. Following feature extraction, the classification process begins, employing traditional fully connected layers commonly found in neural networks. The arrangement and configuration of these layers give rise to a diverse range of networks with distinct characteristics and capabilities (Chollet \u003cspan citationid=\"CR1\" class=\"CitationRef\"\u003e2017\u003c/span\u003e).\u003c/p\u003e\u003cp\u003eConvolutional neural networks have been extensively explored for identification and classification tasks in agriculture. Research has demonstrated the effectiveness of these networks in various applications. For instance, Saedi \u0026amp; Khosravi, (\u003cspan citationid=\"CR21\" class=\"CitationRef\"\u003e2020\u003c/span\u003e) developed an image-based CNN model to recognize six different types of on-branch fruits in orchards, achieving an impressive accuracy of 99.8%. Additionally, Khosravi et al., (\u003cspan citationid=\"CR7\" class=\"CitationRef\"\u003e2021\u003c/span\u003e) developed a CNN model to classify olive fruit at different cultivars and developmental phases, attaining 91% classification. Furthermore, researchers have used deep neural networks such as Xception (Salim et al. \u003cspan citationid=\"CR23\" class=\"CitationRef\"\u003e2023\u003c/span\u003e) and lightweight CNNs (Saedi et al., \u003cspan citationid=\"CR22\" class=\"CitationRef\"\u003e2024\u003c/span\u003e), to recognize and classify fruits with high accuracy, demonstrating the potential of these models in image classification tasks.\u003c/p\u003e\u003cp\u003eDeep learning algorithms have been successfully applied to weed detection and classification, demonstrating superior performance in distinguishing between crop plants and weeds (Li et al. \u003cspan citationid=\"CR9\" class=\"CitationRef\"\u003e2024\u003c/span\u003e). For instance, Quan et al. (\u003cspan citationid=\"CR16\" class=\"CitationRef\"\u003e2019\u003c/span\u003e) employed the Faster R-CNN model to detect corn seedlings and weeds in complex environments, while Fan et al. (\u003cspan citationid=\"CR2\" class=\"CitationRef\"\u003e2023\u003c/span\u003e) improved this model to achieve an accuracy of over 98.43% in identifying weeds in cotton fields. Other studies have utilized deep learning-based models to identify common weeds in sugar beet cultivation (Nasiri et al. \u003cspan citationid=\"CR13\" class=\"CitationRef\"\u003e2022\u003c/span\u003e), discriminate pepper from weeds (Subeesh et al. \u003cspan citationid=\"CR28\" class=\"CitationRef\"\u003e2022\u003c/span\u003e), and detect weeds in sugar beet fields (Gao et al. \u003cspan citationid=\"CR3\" class=\"CitationRef\"\u003e2020\u003c/span\u003e). Additionally, researchers have evaluated the performance of deep learning models such as Yolov8, Yolov9, and customized Yolov9 in real-field conditions for eight crop species (GC et al. \u003cspan citationid=\"CR4\" class=\"CitationRef\"\u003e2024\u003c/span\u003e). Similarly, a modified Xception deep learning approach was successfully utilized to distinguish saffron from its broadleaf weeds, yielding promising results with F1 scores ranging from 91\u0026ndash;96% (Makarian \u0026amp; Saedi, \u003cspan citationid=\"CR11\" class=\"CitationRef\"\u003e2024\u003c/span\u003e). In a practical study, Rai \u0026amp; Sun, (\u003cspan citationid=\"CR17\" class=\"CitationRef\"\u003e2024\u003c/span\u003e) designed a single-stage deep learning architecture that accomplishes two tasks simultaneously: detecting weed presence through bounding boxes and achieving pixel-wise instance segmentation on unmanned aerial system (UAS) acquired remote sensing images. The model achieved the best detection and segmentation scores of 85.4% and 82.1%, respectively. The aforementioned works demonstrate the potential of deep learning algorithms in plant identification and classification, and highlight the need for further research in this area. This study employs advanced deep learning models with color images to accurately distinguish winter wheat from four common weed species providing a foundation for developing precise and automated weed management systems in winter wheat fields.\u003c/p\u003e"},{"header":"Materials and Methods","content":"\u003cdiv id=\"Sec3\" class=\"Section2\"\u003e\u003ch2\u003eImage preparation\u003c/h2\u003e\u003cp\u003eTo address the requirements of the study, 542 images were collected from the five classes understudy: Winter Wheat (\u003cem\u003eTriticum aestivum\u003c/em\u003e L.), Annual Bugloss (\u003cem\u003eAnchusa arvensis\u003c/em\u003e L.), Bastard Cabbage (\u003cem\u003eRapistrum rugosum\u003c/em\u003e L.), Hoary Cress (\u003cem\u003eCardaria draba\u003c/em\u003e (L.) Desv.), and Flixweed (\u003cem\u003eDescurainia sophia\u003c/em\u003e L.). Figure\u0026nbsp;\u003cspan refid=\"Fig1\" class=\"InternalRef\"\u003e1\u003c/span\u003e illustrates a selection of these images. The photos were taken with the 48-megapixel camera of an A-12 Samsung Galaxy (SM-A125F/DS).\u003c/p\u003e\u003cp\u003e\u003c/p\u003e\u003cp\u003eIn the pie chart shown in Fig.\u0026nbsp;\u003cspan refid=\"Fig2\" class=\"InternalRef\"\u003e2\u003c/span\u003e, the quantity and proportion of samples for each class are shown. The illustration highlights the balanced distribution of data used in this study. Having a balanced dataset is crucial to prevent bias, improve generalisation, enhance performance, promote stability, and avoid misinterpretation. This balance ensures that the model receives sufficient examples from each class, enabling effective learning and accurate predictions across all classes.\u003c/p\u003e\u003cp\u003e\u003c/p\u003e\u003cp\u003eThe images captured underwent a review process in which inappropriate samples were excluded. An agronomist with expertise in weed and crop properties contributed to this selection process. Ultimately, 542 images were chosen to develop the model and train the network. The selected images were divided into three datasets: training, validation, and testing. 80% of the data was allocated for training, while the remaining 20% was split for testing. Within the training data, 15% was set aside for validation purposes. It is worth emphasizing that the test set is reserved exclusively for evaluating the final model's performance and testing its accuracy on unseen data. This separation ensures a reliable assessment of the model's generalization capabilities.\u003c/p\u003e\u003c/div\u003e\n\u003ch3\u003eImage pre-processing\u003c/h3\u003e\n\u003cp\u003ePreprocessing input images is essential for improving the model's accuracy, mitigating overfitting, and enhancing its generalization ability.\u003c/p\u003e\n\u003ch3\u003eResize and normalization\u003c/h3\u003e\n\u003cp\u003eInitially, we standardized the image sizes to 299 \u0026times; 299 pixels to ensure uniform resolution across all images. Subsequently, we normalized the resolutions to fall within the range [0,1] by utilizing the Eq.\u0026nbsp;\u003cspan refid=\"Equ1\" class=\"InternalRef\"\u003e1\u003c/span\u003e.\u003cdiv id=\"Equ1\" class=\"Equation\"\u003e\u003cdiv format=\"TEX\" class=\"mathdisplay\" id=\"FileID_Equ1\" name=\"EquationSource\"\u003e\n$$\\:{x}_{i}^{{\\prime\\:}}=\\:\\frac{{x}_{i}-\\:{x}_{min}}{{x}_{max}-\\:{x}_{min}}$$\u003c/div\u003e\u003cdiv class=\"EquationNumber\"\u003e1\u003c/div\u003e\u003c/div\u003e\u003c/p\u003e\u003cp\u003ewhere \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:{x}_{i}^{{\\prime\\:}}\\)\u003c/span\u003e\u003c/span\u003e symbolizes the normalized value within the dataset, \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:{x}_{i}\\)\u003c/span\u003e\u003c/span\u003e represents the i-th value in the dataset, and\u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:\\:{x}_{min}\\)\u003c/span\u003e\u003c/span\u003e and \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:{x}_{max}\\:\\)\u003c/span\u003e\u003c/span\u003edenote the minimum and maximum values in the dataset. This formula guarantees that after normalization, the normalized value for the dataset's minimum value will consistently be 0, and the normalized value for the dataset's maximum value will invariably be 1.\u003c/p\u003e\n\u003ch3\u003eAugmentation\u003c/h3\u003e\n\u003cp\u003eData augmentation is a widely recognized method in computer vision. It seeks to create extra training data from existing samples by applying random transformations. This technique ensures that the generated images are realistic and that each specific image is unique (Chollet \u003cspan citationid=\"CR1\" class=\"CitationRef\"\u003e2017\u003c/span\u003e). Consequently, image augmentation can alleviate the challenges encountered by deep neural networks regarding their reliance on a substantial quantity of annotated data, leading to improved accuracy. The extensive dataset enhances the training procedure through allowing the network to acquire all essential parameters while reducing the likelihood of overfitting. In the present study, an automated data augmentation technique was utilized, incorporating random height and width shifts, random flipping, random contrast adjustments, and random rotations. Table\u0026nbsp;\u003cspan refid=\"Tab1\" class=\"InternalRef\"\u003e1\u003c/span\u003e represents the specific data augmentation arguments for our task.\u003c/p\u003e\u003cp\u003e\u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"Yes\" id=\"Tab1\" border=\"1\"\u003e\u003ccaption language=\"En\"\u003e\u003cdiv class=\"CaptionNumber\"\u003eTable 1\u003c/div\u003e\u003cdiv class=\"CaptionContent\"\u003e\u003cp\u003eAugmentation parameters and values.\u003c/p\u003e\u003c/div\u003e\u003c/caption\u003e\u003ccolgroup cols=\"2\"\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e\u003cthead\u003e\u003ctr\u003e\u003cth align=\"left\" colname=\"c1\"\u003e\u003cp\u003eImage augmentation parameters\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c2\"\u003e\u003cp\u003eValues\u003c/p\u003e\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eRandom height translation\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e0.1\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eRandom width translation\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e0.1\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eRandom flip\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eTrue\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eRandom contrast\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e0.15\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eRandom rotation\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e0.15\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/colgroup\u003e\u003c/table\u003e\u003c/div\u003e\u003c/p\u003e\n\u003ch3\u003eCandidate models\u003c/h3\u003e\n\u003cdiv id=\"Sec8\" class=\"Section2\"\u003e\u003ch2\u003eBase networks\u003c/h2\u003e\u003cp\u003eThe initial step in reaching our goal is to select a base network from several choices through transfer learning, which entails loading weights from the ImageNet dataset. To this end, we tested four innovative standard deep learning networks, including Xception, EfficientNetB0, VGG19, and InceptionResNetV2.\u003c/p\u003e\u003c/div\u003e\n\u003ch3\u003eFine-tuning\u003c/h3\u003e\n\u003cp\u003eThe objective of this fine-tuning process was to customize the candidate base networks for the particular dataset and task at hand, leveraging the previously learned features while adapting to the new data. This technique prevents the overfitting in pre-trained layers while facilitating the adaptation of the newly added layers to the new data. During the fine-tuning process, our goal was to selectively freeze certain layers (the earlier ones) while enabling the training of others (the later ones) when incorporating a pre-trained model into transfer learning within a deep learning framework. Initially, we disabled the trainable attribute for the first 20 layers, locking them during training to prevent their weights from being altered and preserving the valuable features they had already acquired from the original training data. Subsequently, we advanced to fine-tune the later layers of the base model. We then iterated through the layers starting from the 20th position and activated the trainable attribute for each of these layers. This adjustment allows these layers to undergo training and updates throughout the training phase.\u003c/p\u003e\n\u003ch3\u003eModifying block\u003c/h3\u003e\n\u003cp\u003eTo develop a robust CNN model, we added a modifying block to the last layer of the proposed base networks. We tested various layer configurations for the modifying block, exploring different types, placements, and parameters to find the most efficient setup. This included examining combinations of 2D Convolution, Batch Normalization, Dropout, and Global Average Pooling layers. Parameters were selected through experimentation testing, though the specifics are not detailed here for the sake of brevity. Consequently, the optimized modifying block involved three sets of layers, including Convolution, Batch Normalization, Max Pooling, and Dropout, followed by the Fully Connected and Global Average Pooling layers. The final layer of the base candidate networks was supplemented with these additional layers to develop the proposed architectures in this study (Fig.\u0026nbsp;\u003cspan refid=\"Fig3\" class=\"InternalRef\"\u003e3\u003c/span\u003e).\u003c/p\u003e\u003cp\u003e\u003c/p\u003e\u003cp\u003eBy following the steps outlined earlier, we developed four distinct models, labelled Model 1 through Model 4 (Table\u0026nbsp;\u003cspan refid=\"Tab2\" class=\"InternalRef\"\u003e2\u003c/span\u003e). Subsequently, we evaluated these models using images resized to 299\u0026times;299 pixels, the SGD optimizer, a batch size of 32, and 200 epochs to identify the optimal model. During this process, we employed selection criteria that included assessing the model's stability during training, as well as analyzing test accuracy and test loss.\u003c/p\u003e\u003cp\u003e\u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"Yes\" id=\"Tab2\" border=\"1\"\u003e\u003ccaption language=\"En\"\u003e\u003cdiv class=\"CaptionNumber\"\u003eTable 2\u003c/div\u003e\u003cdiv class=\"CaptionContent\"\u003e\u003cp\u003eFour proposed models for the purpose of this study.\u003c/p\u003e\u003c/div\u003e\u003c/caption\u003e\u003ccolgroup cols=\"4\"\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c3\" colnum=\"3\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c4\" colnum=\"4\"\u003e\u003c/div\u003e\u003cthead\u003e\u003ctr\u003e\u003cth align=\"left\" colname=\"c1\"\u003e\u003cp\u003eModel 1\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 2\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c3\"\u003e\u003cp\u003eModel 3\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c4\"\u003e\u003cp\u003eModel 4\u003c/p\u003e\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eModified Xception\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModified EfficientNetB0\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003eModified VGG19\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003eModified InceptionResNetV2\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/colgroup\u003e\u003c/table\u003e\u003c/div\u003e\u003c/p\u003e\u003cp\u003eThe detailed outcomes of this step, including a comparison of the models' performance, are presented in Section 3.2. Figure\u0026nbsp;\u003cspan refid=\"Fig4\" class=\"InternalRef\"\u003e4\u003c/span\u003e summarizes the proposed model for the purpose of our study.\u003c/p\u003e\u003cp\u003e\u003c/p\u003e\u003cp\u003eFollowing the evaluation of the candidate standard networks, the Inception-ResNetV2 stood out as the top performer based on the specified selection criteria (section 3.1.). Therefore, we focus on the detailed structure of this network.\u003c/p\u003e\u003cp\u003eInception-ResNetV2, a cutting-edge deep learning architecture developed by Google, combines the Inception and ResNet modules to enhance performance in image recognition tasks. Renowned for its exceptional accuracy and efficiency in handling intricate visual data, this architecture integrates key elements such as the Inception module (GoogLeNet) for capturing multi-scale features and the ResNet-inspired residual connections that aid gradient flow during training. Additionally, Inception-ResNetV2 introduces Inception-ResNet blocks, merging Inception and ResNet principles to create powerful feature extraction mechanisms using convolutional layers of varying sizes and depths. By incorporating parallel paths within each module, the network explores diverse ways to represent input data, achieving a richer feature set and boosting overall recognition capabilities while maintaining efficient computation without compromising accuracy. This network consists of various types of layers, including Average Pooling, Dropout, Inception-ResNet-v2-A, Inception-ResNet-v2-B, Inception-ResNet-v2-C, Inception-ResNet-v2 Reduction-B, Reduction-A, and Softmax (Fig.\u0026nbsp;\u003cspan refid=\"Fig5\" class=\"InternalRef\"\u003e5\u003c/span\u003e). These layers serve different functions within the network, such as pooling operations, regularization, image model blocks, and output functions. It has a total of 467 layers. This extensive depth in the network contributes to its ability to handle complex image classification tasks effectively.\u003c/p\u003e\u003cp\u003e\u003c/p\u003e\u003cp\u003eFigure \u003cspan refid=\"Fig6\" class=\"InternalRef\"\u003e6\u003c/span\u003e offers a comprehensive overview of the layers comprising the best model (Inception-ResNet-V2 \u0026ndash; based network), including the output shapes and parameter count. The model includes approximately 24,000 (0.42%) non-trainable parameters from a total exceeding 59\u0026nbsp;million. Specific layers, such as Dropout, Max Pooling, and Global Average Pooling, do not add to the number of trainable parameters. This is because these layers do not possess any trainable parameters themselves.\u003c/p\u003e\u003cp\u003e\u003c/p\u003e\u003cdiv id=\"Sec11\" class=\"Section2\"\u003e\u003ch2\u003eNetwork training\u003c/h2\u003e\u003cp\u003eThe training of the CNNs follows a standard neural network architecture, involving two primary stages: Feed-Forward and Back-Propagation. During the feed-forward phase, the network assesses its error by contrasting the output produced from the input image with the associated labelled output. In the backpropagation phase, gradients for the parameters are determined from this error, leading to subsequent updates of the weight matrices. This iterative process involves the input being fed into the network, propagated through various layers, and the resulting output being compared with the desired output to determine the error. This error is then utilized to adjust the network parameters, and the process is repeated multiple times, with each iteration referred to as an epoch.\u003c/p\u003e\u003cp\u003eThe error calculation involves various formulas and functions, and the optimization process consists of incremental adjustments to the weights to minimize errors. To achieve this goal, we chose the appropriate optimizer from the options such as SGD, RMSprop, Nadam, and Adam. The performance of the model was evaluated using test accuracy and test loss. We additionally utilized the categorical cross-entropy loss function for the image data in this research. Table\u0026nbsp;\u003cspan refid=\"Tab3\" class=\"InternalRef\"\u003e3\u003c/span\u003e represents the detailed properties of the optimizers.\u003c/p\u003e\u003cp\u003e\u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"Yes\" id=\"Tab3\" border=\"1\"\u003e\u003ccaption language=\"En\"\u003e\u003cdiv class=\"CaptionNumber\"\u003eTable 3\u003c/div\u003e\u003cdiv class=\"CaptionContent\"\u003e\u003cp\u003eThe properties of the optimizers for the purpose of this study.\u003c/p\u003e\u003c/div\u003e\u003c/caption\u003e\u003ccolgroup cols=\"2\"\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e\u003cthead\u003e\u003ctr\u003e\u003cth align=\"left\" colname=\"c1\"\u003e\u003cp\u003eOptimizer\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c2\"\u003e\u003cp\u003eProperties\u003c/p\u003e\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eRMSprop\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003elr\u0026thinsp;=\u0026thinsp;0.001\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eSGD\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003elr\u0026thinsp;=\u0026thinsp;0.001, momentum\u0026thinsp;=\u0026thinsp;0.5, nesterov = FALSE\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eAdam\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003elr\u0026thinsp;=\u0026thinsp;0.001, beta_1\u0026thinsp;=\u0026thinsp;0.9, beta_2\u0026thinsp;=\u0026thinsp;0.999\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eNadam\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003elr\u0026thinsp;=\u0026thinsp;0.001, beta_1\u0026thinsp;=\u0026thinsp;0.9, beta_2\u0026thinsp;=\u0026thinsp;0.999\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/colgroup\u003e\u003c/table\u003e\u003c/div\u003e\u003c/p\u003e\u003cp\u003eThe training of the model entailed a systematic exploration of hyperparameters and components to determine the optimal configuration. During the training process, we carefully monitored the loss and accuracy trends for both the training and validation datasets at each epoch. This rigorous method enabled us to comprehensively evaluate the performance of the models and decide on their efficiency for our goal.\u003c/p\u003e\u003cp\u003eThe process of selecting the best model is depicted in the results and discussion section. To evaluate the potential models, we analyzed several performance metrics, including accuracy, loss, and model stability. Accuracy measures the proportion of correct predictions made by the model, while loss indicates the average error for each instance. Generally, lower loss values suggest better model performance. However, it is essential to recognize that a model exhibiting high accuracy but significant loss may be at risk of overfitting, which can adversely affect its ability to generalize to unseen test data. So, we meticulously assessed the possibility of overfitting during our comparative analysis of the four candidate models.\u003c/p\u003e\u003cp\u003eTo guarantee the dependability and reproducibility of our findings, we conducted the training, validation, and testing phases using Python version 3.10.12 on the Google Collaboratory platform. The computational environment features an NVIDIA K80 GPU with 12 GB of memory, and we utilized Keras with TensorFlow as the backend (version 2.15.0), alongside libraries such as OpenCV to conduct the experiments.\u003c/p\u003e\u003c/div\u003e"},{"header":"Results","content":"\u003cp\u003eThe results of developing deep learning models for distinguishing between winter wheat and its four prevalent weeds, namely annual bugloss, bastard cabbage, hoary cress, and flixweed, using color images is presented in this section. These models would be suitable for precision wheat weed management in various scenarios where any of these weeds are present.\u003c/p\u003e\u003cdiv id=\"Sec13\" class=\"Section2\"\u003e\u003ch2\u003eEvaluation of models\u003c/h2\u003e\u003cp\u003eThe first stage in developing an appropriate deep learning model entails the selection of a base network from a variety of standard options via transfer learning, where the initial weights are imported from ImageNet dataset. We assessed four cutting-edge standard deep learning networks: Xception, EfficientNetB0, VGG19, and InceptionResNetV2. Following fine-tuning, these networks underwent a modification phase by incorporating three blocks of CNN layers into the ultimate layer of the fine-tuned standard candidate models to establish four candidate architectures (Model 1 to Model 4) (Table\u0026nbsp;\u003cspan refid=\"Tab2\" class=\"InternalRef\"\u003e2\u003c/span\u003e). The models were trained using images resized to 299 \u0026times; 299 pixels, with the SGD optimizer, a batch size of 32, and 200 epochs to determine the optimal network. During this process, we employed selection criteria that assessed model stability during training and analyzed test accuracy and test loss.\u003c/p\u003e\u003cp\u003eThe results comparing the four candidate models based on maximum and minimum accuracy on the training, validation, and test datasets are presented in Table\u0026nbsp;\u003cspan refid=\"Tab4\" class=\"InternalRef\"\u003e4\u003c/span\u003e. As observed in this table, Models 1 and 4 achieved 100% accuracy on the training dataset, while Model 3 attained 100% accuracy on the validation dataset. Notably, Model 3 produced the lowest loss values among all models on the training, validation, and test datasets. However, Model 4 achieved the highest accuracy on the test dataset, followed by Models 1 and 3, respectively. Model 2 yielded the lowest test accuracy. The accuracy and loss values of Models 1 and 4 are relatively close, which could be attributed to the presence of the Inception module in both models.\u003c/p\u003e\u003cp\u003e\u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"Yes\" id=\"Tab4\" border=\"1\"\u003e\u003ccaption language=\"En\"\u003e\u003cdiv class=\"CaptionNumber\"\u003eTable 4\u003c/div\u003e\u003cdiv class=\"CaptionContent\"\u003e\u003cp\u003eComparison of the four deep learning models on training, validation, and test datasets.\u003c/p\u003e\u003c/div\u003e\u003c/caption\u003e\u003ccolgroup cols=\"5\"\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c3\" colnum=\"3\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c4\" colnum=\"4\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c5\" colnum=\"5\"\u003e\u003c/div\u003e\u003cthead\u003e\u003ctr\u003e\u003cth align=\"left\" colname=\"c1\"\u003e\u0026nbsp;\u003c/th\u003e\u003cth align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 1\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c3\"\u003e\u003cp\u003eModel 2\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c4\"\u003e\u003cp\u003eModel 3\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c5\"\u003e\u003cp\u003eModel 4\u003c/p\u003e\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eMaximum accuracy on train dataset\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e1.0000\u003c/p\u003e\u003cp\u003e(epoch: 161)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.9837\u003c/p\u003e\u003cp\u003e(epoch: 179)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.9810 (epoch: 190)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.0000\u003c/p\u003e\u003cp\u003e(epoch: 179)\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eMinimum loss on\u003c/p\u003e\u003cp\u003etrain dataset\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e3.1821\u003c/p\u003e\u003cp\u003e(epoch: 200)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e3.2169\u003c/p\u003e\u003cp\u003e(epoch: 200)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e2.9758 (epoch: 200)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e3.1642\u003c/p\u003e\u003cp\u003e(epoch: 199)\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eMaximum accuracy on validation dataset\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e0.9846\u003c/p\u003e\u003cp\u003e(epoch: 187)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.9077\u003c/p\u003e\u003cp\u003e(epoch: 194)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e1.0000 (epoch: 161)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e0.9846\u003c/p\u003e\u003cp\u003e(epoch: 188)\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eMinimum loss on validation dataset\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e3.2592\u003c/p\u003e\u003cp\u003e(epoch: 198)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e3.4446\u003c/p\u003e\u003cp\u003e(epoch: 194)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e2.9286 (epoch: 200)\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e3.2194\u003c/p\u003e\u003cp\u003e(epoch:197)\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eAccuracy on test dataset\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e0.9725\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.8532\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.9358\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e\u003cb\u003e0.9817\u003c/b\u003e\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eLoss on test dataset\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e3.2550\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e3.4555\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e2.9868\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e\u003cb\u003e3.1933\u003c/b\u003e\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/colgroup\u003e\u003c/table\u003e\u003c/div\u003e\u003c/p\u003e\u003cp\u003eTo gain deeper insights into the training process of the four candidate models, we analyzed the trends of accuracy and loss concerning the number of epochs during the training phase for both the training and validation datasets. The graphical representation of these trends for all models is depicted in Fig.\u0026nbsp;7. Accordingly, Model 2 exhibits slightly more pronounced fluctuations compared to the other three models, indicating a less stable training pattern. In contrast, Models 1, 3, and 4 display a consistent downward trend in losses and a steady increase in accuracies, with only minor variations. This behavior indicates that Models 1, 3, and 4 exhibit greater resistance to instability and are likely to generalize more effectively to new, unseen data, rendering them more dependable options.\u003c/p\u003e\u003cp\u003eFigure \u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e8\u003c/span\u003e compares the total parameters, trainable parameters, and non-trainable parameters for the four candidate models. This comparison provides valuable insights into the response time of the models. According to this figure, Model 1 and Model 4 exhibit comparable values for these parameters, which can be attributed to their Inception-based architectures. Model 2 offers the minimum number of trainable parameters, making it advantageous in terms of response time for real-time applications. However, it achieves the lowest accuracy and the highest loss on test dataset among all four models. Model 3, on the other hand, provides promising results in terms of accuracy and loss while maintaining a reasonable number of trainable parameters (Fig.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e8\u003c/span\u003e), making it a compelling choice for our purposes.\u003c/p\u003e\u003cp\u003e\u003c/p\u003e\u003cp\u003eAfter carefully considering the evaluation criteria, we proposed Model 4 as the optimal choice for our specific purpose. This model utilizes a modified and fine-tuned InceptionResNetV2 architecture with the SGD optimizer. Model 4 exhibited minimal fluctuations during the training process, indicating a high level of stability. Moreover, it achieved impressive accuracy and loss values on the test dataset (98.17% accuracy and a loss of 3.19, respectively), along with a reasonably fast response time. These factors suggest that Model 4 would perform exceptionally well in real-world scenarios, making it our preferred selection.\u003c/p\u003e\u003c/div\u003e\u003cdiv id=\"Sec14\" class=\"Section2\"\u003e\u003ch2\u003eClassification performance\u003c/h2\u003e\u003cp\u003eTo evaluate the efficacy of the models in distinguishing the five classes, various parameters were considered. These parameters include True Positive (TP), representing the count of instances correctly identified as positive; True Negative (TN), denoting instances correctly identified as negative; False Positive (FP), indicating instances incorrectly identified as positive; and False Negative (FN), signifying instances incorrectly identified as negative. These parameters are utilized in the development of two classification metrics: the classification report and the confusion matrix. The classification report provides insights into the model's performance based on precision, recall, and F1-score, as outlined in Equations 2\u0026ndash;4. Precision quantifies the model's accuracy in predicting positive cases. A high precision value suggests a lower ratio of incorrect to correct predictions, and conversely. Recall quantifies the ratio of accurately predicted positive instances to the total number of actual positive instances, highlighting the model's capability to correctly identify all positive instances. Furthermore, recall provides information on the model's capacity to minimize false negatives. The F1-score, calculated as the geometric mean of precision and recall, serves as a metric that balances these two parameters to achieve an optimal trade-off between precision and recall.\u003c/p\u003e\u003cp\u003e\u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"No\" id=\"Tabb\" border=\"1\"\u003e\u003ccolgroup cols=\"2\"\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e\u003cthead\u003e\u003ctr\u003e\u003cth align=\"left\" colname=\"c1\"\u003e\u003cp\u003e\u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:Precision=\\:\\left(\\frac{TP}{TP+FP}\\right)\\)\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c2\"\u003e\u003cp\u003e(2)\u003c/p\u003e\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003e\u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:Recall=\\:\\left(\\frac{TP}{TP+FN}\\right)\\)\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e(3)\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003e\u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:f1-score=\\:(2\\times\\:\\frac{Precision\\times\\:Recall}{Precision+Recall})\\)\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e(4)\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/colgroup\u003e\u003c/table\u003e\u003c/div\u003e\u003c/p\u003e\u003cp\u003eThe classification report describing the categorization of winter wheat, annual bugloss, bastard cabbage, hoary cress, and flixweed classes by color images through the four models is outlined in Table\u0026nbsp;\u003cspan refid=\"Tab5\" class=\"InternalRef\"\u003e5\u003c/span\u003e.\u003c/p\u003e\u003cp\u003e\u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"Yes\" id=\"Tab5\" border=\"1\"\u003e\u003ccaption language=\"En\"\u003e\u003cdiv class=\"CaptionNumber\"\u003eTable 5\u003c/div\u003e\u003cdiv class=\"CaptionContent\"\u003e\u003cp\u003eThe classification report detailing the recognition performance of the five classes by the four candidate models.\u003c/p\u003e\u003c/div\u003e\u003c/caption\u003e\u003ccolgroup cols=\"11\"\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c3\" colnum=\"3\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c4\" colnum=\"4\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c5\" colnum=\"5\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c6\" colnum=\"6\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c7\" colnum=\"7\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c8\" colnum=\"8\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c9\" colnum=\"9\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c10\" colnum=\"10\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c11\" colnum=\"11\"\u003e\u003c/div\u003e\u003cthead\u003e\u003ctr\u003e\u003cth align=\"left\" colname=\"c1\"\u003e\u0026nbsp;\u003c/th\u003e\u003cth align=\"left\" colname=\"c2\"\u003e\u0026nbsp;\u003c/th\u003e\u003cth align=\"left\" colname=\"c3\"\u003e\u003cp\u003eAnnual Bugloss\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c4\"\u003e\u003cp\u003eBastard Cabbage\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c5\"\u003e\u003cp\u003eFlixweed\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c6\"\u003e\u003cp\u003eHoary Cress\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c7\"\u003e\u003cp\u003eWinter Wheat\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c8\"\u003e\u003cp\u003eMicro Avg.\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c9\"\u003e\u003cp\u003eMacro Avg.\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c10\"\u003e\u003cp\u003eWeighted Avg.\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c11\"\u003e\u003cp\u003eSamples\u003c/p\u003e\u003cp\u003eAvg.\u003c/p\u003e\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\" morerows=\"3\" rowspan=\"4\"\u003e\u003cp\u003ePrecision\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 1\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.96\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 2\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.74\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e0.83\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.88\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.92\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.91\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.84\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 3\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.80\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.96\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.96\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.93\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 4\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.98\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.98\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.98\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\" morerows=\"3\" rowspan=\"4\"\u003e\u003cp\u003eRecall\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 1\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.91\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.96\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.96\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.96\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.96\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 2\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.52\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e0.96\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e0.71\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.84\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.84\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.84\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.84\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 3\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.70\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.93\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.93\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.93\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.93\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 4\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.91\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\" morerows=\"3\" rowspan=\"4\"\u003e\u003cp\u003ef1-score\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 1\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.93\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.95\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e0.98\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.96\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 2\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.85\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.69\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e0.98\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e0.83\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e0.91\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.86\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.85\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.86\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.84\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 3\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.82\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.87\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.94\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.94\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.94\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.93\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 4\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.93\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.98\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e1.00\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e0.98\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e0.98\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e0.98\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e0.97\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colspan=\"2\" nameend=\"c2\" namest=\"c1\"\u003e\u003cp\u003eSupports\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e23\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e21\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e24\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c6\"\u003e\u003cp\u003e21\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c7\"\u003e\u003cp\u003e20\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c8\"\u003e\u003cp\u003e109\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c9\"\u003e\u003cp\u003e109\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c10\"\u003e\u003cp\u003e109\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c11\"\u003e\u003cp\u003e109\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/colgroup\u003e\u003c/table\u003e\u003c/div\u003e\u003c/p\u003e\u003cp\u003eBased on Table\u0026nbsp;\u003cspan refid=\"Tab5\" class=\"InternalRef\"\u003e5\u003c/span\u003e, the precision parameter analysis reveals that Model 1 was able to identify the flixweed and winter wheat classes with 100% accuracy. Using Model 2, three classes\u0026mdash;bastard cabbage, flixweed, and hoary cress\u0026mdash;were identified with 100% accuracy. Moreover, Model 3 successfully identified four classes\u0026mdash;annual bugloss, flixweed, hoary cress, and winter wheat\u0026mdash;with 100% accuracy, while Model 4 detected three classes\u0026mdash;flixweed, hoary cress, and winter wheat\u0026mdash;with 100% precision. On the other hand, if the objective is to identify a specific class (e.g., for selective treatment), it is observed that annual bugloss can be accurately identified using Model 3 and bastard cabbage using Model 2, both at 100% accuracy. Furthermore, Models 2, 3, and 4 can be utilised to identify hoary cress with 100% accuracy. It is worth noting that flixweed can be identified accurately with 100% precision by all four models. Conversely, if the goal is to differentiate weed species from winter wheat for herbicidal purposes, Models 1, 3, and 4 can be employed to identify winter wheat with 100% precision. Lastly, based on the aforementioned table, the lowest precision value was related to identifying annual bugloss with Model 2 (0.74). To evaluate the models' capacity to minimize false negatives, we can compare their recall values. The recall values in the table indicate that this parameter achieved 100% for the annual bugloss class using Model 2; for the bastard cabbage class using Model 4; for the flixweed and hoary cress classes using Models 1, 3, and 4; and for the winter wheat class using Models 2 and 3. Conversely, the lowest recall value was observed for Model 2 in relation to the bastard cabbage class (0.52). Furthermore, the F1-score parameter reached 100% for the flixweed class using Models 1, 3, and 4; for the hoary cress class using Models 3 and 4; and for the winter wheat class using Model 3. The lowest F1-score value was observed for the bastard cabbage class using Model 2 (0.69). Consequently, Model 4 demonstrated the best performance with the highest average precision, recall, and F1-score values.\u003c/p\u003e\u003cp\u003eFigure 9 presents the confusion matrices for classifying five categories with four candidate models. The rows represent the true classes while the columns show the predicted classes. Through these matrices, we can see that there were only two annual bugloss instances mistakenly classified as bastard cabbage or hoary cress using Model 1. Additionally, Models 3 and 4 misclassified seven and one annual bugloss instances as bastard cabbage respectively, whereas Model 2 accurately identified this class without any errors. For the bastard cabbage class, one instance was misclassified as annual bugloss using Model 1; eight instances were misclassified as annual bugloss using Model 2; and one instance was misclassified as winter wheat also using Model 2. In contrast, Models 3 and 4 accurately classified this class with 100% precision. The flixweed class was accurately classified without error using Models 1, 3, and 4; however, Model 2 misclassified one instance as winter wheat. For the hoary cress class, Models 1, 3, and 4 accurately classified it without error; whereas Model 2 misclassified two instances as annual bugloss and four instances as winter wheat. Finally, for the winter wheat class, Models 1, 2, and 3 accurately classified it without error; whereas Model 4 misclassified only one instance as annual bugloss.\u003c/p\u003e\u003c/div\u003e\u003cdiv id=\"Sec15\" class=\"Section2\"\u003e\u003ch2\u003eWinter wheat weed management scenarios\u003c/h2\u003e\u003cp\u003eIt is essential to emphasize that the findings of this study can be effectively generalized to encompass various scenarios in winter wheat fields with respect to weed appearance. Given that four distinct weed species have been investigated, we can conclude that the proposed model(s) can be utilized as a tool for efficient weed management in 15 different weed appearance scenarios that may arise in winter wheat fields. These scenarios are detailed in Table\u0026nbsp;\u003cspan refid=\"Tab6\" class=\"InternalRef\"\u003e6\u003c/span\u003e, which accounts for one to four weeds that can coexist alongside winter wheat. Notably, scenario 15 represents the general condition that we have studied thus far in this investigation.\u003c/p\u003e\u003cp\u003e\u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"Yes\" id=\"Tab6\" border=\"1\"\u003e\u003ccaption language=\"En\"\u003e\u003cdiv class=\"CaptionNumber\"\u003eTable 6\u003c/div\u003e\u003cdiv class=\"CaptionContent\"\u003e\u003cp\u003eFifteen scenarios for different weeds appearance in winter wheat fields.\u003c/p\u003e\u003c/div\u003e\u003c/caption\u003e\u003ccolgroup cols=\"3\"\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c3\" colnum=\"3\"\u003e\u003c/div\u003e\u003cthead\u003e\u003ctr\u003e\u003cth align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario number\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c2\"\u003e\u003cp\u003eWeed(s) alongside winter wheat\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c3\"\u003e\u003cp\u003eNo. of classes\u003c/p\u003e\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 1\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eFlixweed\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e2\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 2\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eHoary Cress\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e2\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 3\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eAnnual Bugloss\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e2\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 4\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eBastard Cabbage\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e2\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 5\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eFlixweed\u0026thinsp;+\u0026thinsp;Hoary Cress\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e3\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 6\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eAnnual Bugloss\u0026thinsp;+\u0026thinsp;Flixweed\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e3\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 7\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eBastard Cabbage\u0026thinsp;+\u0026thinsp;Flixweed\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e3\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 8\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eAnnual Bugloss\u0026thinsp;+\u0026thinsp;Hoary Cress\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e3\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 9\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eBastard Cabbage\u0026thinsp;+\u0026thinsp;Hoary Cress\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e3\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 10\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eAnnual Bugloss\u0026thinsp;+\u0026thinsp;Bastard Cabbage\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e3\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 11\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eAnnual Bugloss\u0026thinsp;+\u0026thinsp;Flixweed\u0026thinsp;+\u0026thinsp;Hoary Cress\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e4\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 12\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eBastard Cabbage\u0026thinsp;+\u0026thinsp;Flixweed\u0026thinsp;+\u0026thinsp;Hoary Cress\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e4\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 13\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eAnnual Bugloss\u0026thinsp;+\u0026thinsp;Bastard Cabbage\u0026thinsp;+\u0026thinsp;Flixweed\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e4\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 14\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eAnnual Bugloss\u0026thinsp;+\u0026thinsp;Bastard Cabbage\u0026thinsp;+\u0026thinsp;Hoary Cress\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e4\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eScenario 15\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003eAnnual Bugloss\u0026thinsp;+\u0026thinsp;Bastard Cabbage\u0026thinsp;+\u0026thinsp;Flixweed\u0026thinsp;+\u0026thinsp;Hoary Cress\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e5\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/colgroup\u003e\u003c/table\u003e\u003c/div\u003e\u003c/p\u003e\u003cp\u003eFor this analysis, we used confusion matrices (Fig.\u0026nbsp;9), and for each scenario, we extracted a separate subset that must include winter wheat for each model. This analysis will involve creating 60 subsets of the confusion matrices (15 subsets for each model). The results of this analysis are presented in Table\u0026nbsp;\u003cspan refid=\"Tab7\" class=\"InternalRef\"\u003e7\u003c/span\u003e and Fig.\u0026nbsp;\u003cspan refid=\"Fig8\" class=\"InternalRef\"\u003e10\u003c/span\u003e. Accordingly, it was concluded that Models 1, 3, and 4 are usable with 100% accuracy for scenarios 1, 2, 4, 5, 7, 9, and 12. Scenario 3 can be treated with 100% accuracy using Models 1, 2, and 3. Additionally, for scenario 6, Models 1 and 3 are suggested with 100% accuracy. For scenario 8, Model 3 will perform best with 100% accuracy. For scenario 11, Model 3 showed the best performance (100%). For scenarios 10, 13, and 14, while 100% accuracy was not achieved, Models 1 and 4 provided the highest accuracy of around 97% for scenario 10. The same two models can be used for scenario 13, with an accuracy of about 98%. Model 4 can be employed for scenario 14 with an accuracy of 98%. If we were to choose a comprehensive model for various scenarios, we would consider the average accuracy across different models and scenarios. Accordingly, based on Table\u0026nbsp;\u003cspan refid=\"Tab7\" class=\"InternalRef\"\u003e7\u003c/span\u003e, Model 4 has the highest average accuracy (98.92%) and the lowest standard deviation (0.0110), making it the most suitable model. Although Model 3 is noteworthy for achieving 100% accuracy in 11 different scenarios. It is important to reiterate that scenario 15 is the initial and overall scenario considered in this research, based on which the deep learning models have been designed.\u003c/p\u003e\u003cp\u003e\u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"Yes\" id=\"Tab7\" border=\"1\"\u003e\u003ccaption language=\"En\"\u003e\u003cdiv class=\"CaptionNumber\"\u003eTable 7\u003c/div\u003e\u003cdiv class=\"CaptionContent\"\u003e\u003cp\u003eAverage and standard deviation of accuracies for the four models in all scenarios.\u003c/p\u003e\u003c/div\u003e\u003c/caption\u003e\u003ccolgroup cols=\"5\"\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c3\" colnum=\"3\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c4\" colnum=\"4\"\u003e\u003c/div\u003e\u003cdiv align=\"left\" class=\"colspec\" colname=\"c5\" colnum=\"5\"\u003e\u003c/div\u003e\u003cthead\u003e\u003ctr\u003e\u003cth align=\"left\" colname=\"c1\"\u003e\u0026nbsp;\u003c/th\u003e\u003cth align=\"left\" colname=\"c2\"\u003e\u003cp\u003eModel 1\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c3\"\u003e\u003cp\u003eModel 2\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c4\"\u003e\u003cp\u003eModel 3\u003c/p\u003e\u003c/th\u003e\u003cth align=\"left\" colname=\"c5\"\u003e\u003cp\u003eModel 4\u003c/p\u003e\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eAverage accuracies in all scenarios\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e0.9890\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.9191\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.9776\u003c/p\u003e \u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e0.9892\u003c/p\u003e \u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd align=\"left\" colname=\"c1\"\u003e\u003cp\u003eSTD of accuracies in all scenarios\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c2\"\u003e\u003cp\u003e0.0161\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c3\"\u003e\u003cp\u003e0.0504\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c4\"\u003e\u003cp\u003e0.0380\u003c/p\u003e\u003c/td\u003e\u003ctd align=\"left\" colname=\"c5\"\u003e\u003cp\u003e0.0110\u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/colgroup\u003e\u003c/table\u003e\u003c/div\u003e\u003c/p\u003e\u003cp\u003e\u003c/p\u003e\u003c/div\u003e"},{"header":"Discussion","content":"\u003cp\u003eThe present study demonstrated the effectiveness of deep learning models in distinguishing winter wheat from four prevalent weed species annual bugloss, bastard cabbage, hoary cress, and flixweed using RGB color images. Among the four candidate architectures developed through transfer learning and fine-tuning, the modified InceptionResNetV2 (Model 4) achieved the best overall performance, with a test accuracy of 98.17%, minimal loss, and stable training behavior. Importantly, the evaluation of the models across 15 different weed appearance scenarios further emphasized the robustness of Model 4, which exhibited the highest mean accuracy (98.92%) and the lowest standard deviation (0.0110). These findings suggest that this model is particularly well-suited for precision weed management in winter wheat fields under diverse and dynamic conditions.\u003c/p\u003e\u003cp\u003eOur results are consistent with and extend previous work in the field. Shao et al. (\u003cspan citationid=\"CR24\" class=\"CitationRef\"\u003e2023\u003c/span\u003e) applied a lightweight YOLOv5s-based framework for weed recognition in paddy fields and reported robust but lower accuracies under natural conditions compared with our findings. Similarly, G. C. et al. (2024) tested five deep learning frameworks to classify 14 weed and crop species in greenhouse environments, but their reported performance was relatively limited due to high inter-class similarity. Makarian and Saedi (2025) achieved near-perfect accuracy for weed discrimination under natural conditions; however, their model was constrained by a small number of classes, limiting generalizability. In contrast, our study addressed both a greater number of weed species and multiple coexistence scenarios, thereby providing a more comprehensive framework for real-world applications. The scenario-based analysis is of particular importance. By evaluating model performance across 15 distinct weed\u0026ndash;crop combinations, we demonstrated that deep learning models can be adapted for various field conditions, including cases with one to four competing weed species. This scenario-driven approach strengthens the practical applicability of the models, as farmers and agronomists are often faced with heterogeneous weed infestations. Notably, while Model 3 achieved 100% accuracy in 11 scenarios, Model 4 combined superior stability, high average accuracy, and low variance, making it the most reliable model overall.\u003c/p\u003e\u003cp\u003eFrom a broader perspective, these results confirm that deep learning methods can effectively support precision agriculture by enabling selective and automated weed management. Nevertheless, several challenges remain, including the need for larger and more diverse datasets, validation under varying geographical and environmental conditions, and computational efficiency for deployment on edge devices. Recent studies have highlighted the potential of multimodal imaging (e.g., RGB combined with depth or hyperspectral data) to further improve weed\u0026ndash;crop discrimination accuracy (Xu et al. \u003cspan citationid=\"CR30\" class=\"CitationRef\"\u003e2021\u003c/span\u003e; Liu et al. \u003cspan citationid=\"CR10\" class=\"CitationRef\"\u003e2024\u003c/span\u003e). Incorporating such modalities, as well as model compression techniques for real-time applications, could be valuable directions for future research. In recent studies, multi-modal imaging approaches, combining RGB and depth information, have been proposed to improve weed detection in wheat fields under natural conditions. For instance, depth images were recoded into three-channel PHA images to enable CNN-based feature extraction, and multi-scale object detection with feature- and decision-level fusion was applied. Such methods achieved a mean average precision (mAP) of 36.1% for grass weeds, 42.9% for broadleaf weeds, and an overall detection accuracy (IoG) of 89.3% (α\u0026thinsp;=\u0026thinsp;0.4 for RGB and β\u0026thinsp;=\u0026thinsp;0.3 for depth) (Xu et al. \u003cspan citationid=\"CR30\" class=\"CitationRef\"\u003e2021\u003c/span\u003e). While these results demonstrate the potential of multi-modal information for addressing limitations of single-modality data, several challenges remain regarding data acquisition complexity, cost, and practical applicability in real field scenarios.\u003c/p\u003e\u003cp\u003eIn contrast, the present study demonstrates that high-performance weed detection can be achieved using only RGB images, without the need for additional depth sensors. By leveraging a modified InceptionResNetV2 architecture and carefully fine-tuned CNN layers, our proposed Model 4 achieved a test accuracy of 98.17% and demonstrated stable training behavior with minimal fluctuations. Moreover, our approach considered four dominant weed species\u0026mdash;annual bugloss, bastard cabbage, hoary cress, and flixweed and evaluated performance across 15 realistic weed-crop coexistence scenarios, reflecting the diverse conditions commonly observed in wheat fields. This scenario-based evaluation highlights the generalizability and robustness of our model, which can reliably detect multiple weed species under varying field conditions. Another advantage of our study is the precision at the species level. While multi-modal approaches in previous studies focused primarily on broad categories such as grass versus broadleaf weeds, our model achieved 97\u0026ndash;100% precision and recall for individual weed species. This capability enables selective and targeted weed management, a critical requirement for precision agriculture. In addition, the streamlined use of RGB images alone reduces data acquisition costs and simplifies deployment in real-world applications, making our method more practical and scalable compared to multi-modal systems.\u003c/p\u003e"},{"header":"Conclusion","content":"\u003cp\u003eIn this study, four advanced deep neural network models were developed to differentiate winter wheat from four common weeds. Using color images for training and testing, all models accurately identified the five plant species, with InceptionResNetV2 achieving the highest accuracy. Fifteen scenarios of weed presence in wheat fields were also evaluated to determine optimal weed management strategies. The models performed reliably across all scenarios, enabling targeted control of weeds without affecting wheat. This approach can reduce herbicide use, minimize environmental impact, and improve wheat yield and quality, providing a foundation for precision weed management and automated weed removal solutions.\u003c/p\u003e"},{"header":"Declarations","content":"\u003cp\u003e\u003ch2\u003eCompeting Interests\u003c/h2\u003e\u003cp\u003eThe author(s) declare none.\u003c/p\u003e\u003c/p\u003e\u003cp\u003e\u003ch2\u003eHassan Makarian\u003c/h2\u003e\u003cp\u003eConceptualization; writing-review and editing.\u003c/p\u003e\u003c/p\u003e\u003ch2\u003eAuthor contributions\u003c/h2\u003e\u003cp\u003e\u003cb\u003eSeyed Iman Saedi\u003c/b\u003e: Conceptualization; methodology; project administration; writing-original draft.\u003c/p\u003e\u003ch2\u003eAcknowledgments\u003c/h2\u003e\u003cp\u003eThe authors would like to acknowledge the financial support of Shahrood University of Technology for this research under project No: RP_S_219444.\u003c/p\u003e\u003ch2\u003eData availability\u003c/h2\u003e\u003cp\u003eNo datasets were generated or analyzed during the current study\u003c/p\u003e"},{"header":"References","content":"\u003col\u003e\n\u003cli\u003eChollet F (2017). Deep Learning with Python (1st ed.). Manning Publications Co.\u003c/li\u003e\n\u003cli\u003eFan X, Chai X, Zhou J, Sun T (2023) Deep learning-based weed detection and target spraying robot system at seedling stage of cotton field. Comput Electron Agric 214:108317.\u003cspan dir=\"RTL\"\u003e https://doi.org/https://doi.org/10.1016/j.compag.2023.108317\u003c/span\u003e\u003c/li\u003e\n\u003cli\u003eGao J, French AP, Pound MP, He Y, Pridmore TP, Pieters JG (2020) Deep convolutional neural networks for image-based \u003cem\u003eConvolvulus sepium\u003c/em\u003e detection in sugar beet fields. Plant Methods 16:29.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003e\u003cem\u003e16\u003c/em\u003e(1), 29. https://doi.org/10.1186/s13007-020-00570-z\u003c/li\u003e\n\u003cli\u003eGC S, Zhang Y, Howatt K, Schumacher LG, Sun X (2024) Multi-species weed and crop classification comparison using five different deep learning network architectures. J ASABE 67:275\u0026ndash;287.\u003cspan dir=\"RTL\"\u003e https://doi.org/10.13031/ja.15590\u003c/span\u003e\u003c/li\u003e\n\u003cli\u003eGyawali A, Bhandari R, Budhathoki P, Bhattarai S (2022) A review on effect of weeds in wheat (\u003cem\u003eTriticum aestivum\u003c/em\u003e L.) and their management practices. Food and Agri Economics Review pp 34\u0026ndash;40.\u003cspan dir=\"RTL\"\u003e https://doi.org/10.26480/faer.02.2022.34.40\u003c/span\u003e\u003c/li\u003e\n\u003cli\u003eJuwono FH, Wong WK, Verma S, Shekhawat N, Lease BA, Apriono C (2023) Machine learning for weed\u0026ndash;plant discrimination in agriculture 5.0: An in-depth review. Artif Intell Agric 10:13\u0026ndash;25.\u003cspan dir=\"RTL\"\u003e https://doi.org/https://doi.org/10.1016/j.aiia.2023.09.002\u003c/span\u003e\u003c/li\u003e\n\u003cli\u003eKhosravi H, Saedi SI, Rezaei M (2021) Real-time recognition of on-branch olive ripening stages by a deep convolutional neural network. Sci Hortic 287:110252. https://doi.org/10.1016/j.scienta.2021.110252\u003c/li\u003e\n\u003cli\u003eLangridge P, Alaux M, Almeida N, Ammar K, Baum M, Bekkaoui F, Bentley A, Beres B, Berger B, Braun HJ, Brown-Guedira G, Burt C, Caccamo M, Cattivelli L, Charmet G, Civ\u0026aacute;n P, Cloutier S, Cohan JP, Devaux P, Zhang X (2022) Meeting the challenges facing wheat production: The strategic research agenda of the Global Wheat Initiative. Agron 12:2767.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/10.3390/agronomy12112767\u003c/li\u003e\n\u003cli\u003eLi Z, Wang D, Yan Q, Zhao M, Wu X, Liu X (2024) Winter wheat weed detection based on deep learning models. Comput Electron Agric 227:109448.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003e https://doi.org/https://doi.org/10.1016/j.compag.2024.109448\u003c/li\u003e\n\u003cli\u003eLiu T, Sun Q, Zhou Z, Zhang Y (2024) Harnessing UAVs and deep learning for accurate grass weed recognition using hyperspectral imaging. Plant Methods 20:72. https://doi.org/10.1186/s13007-024-01272-6\u003c/li\u003e\n\u003cli\u003eMakarian H, Saedi SI (2024) Automated classification of saffron and broadleaf weeds of flixweed and hoary cress using deep learning and color images. Crop Prot:106750. https://doi.org/https://doi.org/10.1016/j.cropro.2024.106750\u003c/li\u003e\n\u003cli\u003eMontazeri M, Zand E, Baghestani MA (2005) Weeds and their control in wheat fields of Iran, first ed. Agricultural Research and Education Organization Press.\u003c/li\u003e\n\u003cli\u003eNasiri A, Omid M, Taheri-Garavand A, Jafari A (2022) Deep learning-based precision agriculture through weed recognition in sugar beet fields. Sustain Comput Inform Syst 35:100759.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/https://doi.org/10.1016/j.suscom.2022.100759\u003c/li\u003e\n\u003cli\u003eNasiri A, Taheri-Garavand A, Zhang YD (2019) Image-based deep learning automated sorting of date fruit. Postharvest Biol Technol 153:133\u0026ndash;141.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/https://doi.org/10.1016/j.postharvbio.2019.04.003\u003c/li\u003e\n\u003cli\u003ePeng H, Huang B, Shao Y, Li Z, Zhang C, Chen Y, Xiong J (2018) General improved SSD model for picking object recognition of multiple fruits in natural environment. Trans Chin Soc Agric Eng 34:155\u0026ndash;162.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003e https://doi.org/10.11975/j.issn.1002-6819.2018.16.020\u003c/li\u003e\n\u003cli\u003eQuan L, Feng H, Lv Y, Wang Q, Zhang C, Liu J, Yuan Z (2019) Maize seedling detection under different growth stages and complex field environments based on an improved Faster R\u0026ndash;CNN. Biosyst Eng 184:1\u0026ndash;23.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/https://doi.org/10.1016/j.biosystemseng.2019.05.002\u003c/li\u003e\n\u003cli\u003eRai N, Sun X (2024) WeedVision: A single-stage deep learning architecture to perform weed detection and segmentation using drone-acquired images. Comput Electron Agric 219:108792.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/https://doi.org/10.1016/j.compag.2024.108792\u003c/li\u003e\n\u003cli\u003eSadeghi SH, Saedi SI, Peters RT, St\u0026ouml;ckle C (2022) Towards improving the global water application uniformity of centre pivots through lateral speed adjustment. Biosyst Eng 215:215\u0026ndash;227.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/https://doi.org/10.1016/j.biosystemseng.2022.01.012\u003c/li\u003e\n\u003cli\u003eSaedi SI, Alimardani R, Mousazadeh H, Salehi R (2019) Development and evaluation of an energy and water efficient intensive cropping system. INMATEH-Agric Eng 58:93\u0026ndash;104.\u003c/li\u003e\n\u003cli\u003eSaedi SI, Rezaei M (2024) A modified Xception deep learning model for automatic sorting of olives based on ripening stages. Inventions 9(1). https://doi.org/10.3390/inventions9010006\u003cspan dir=\"RTL\"\u003e \u003c/span\u003e \u003c/li\u003e\n\u003cli\u003eSaedi SI, Khosravi H (2020) A deep neural network approach towards real-time on-branch fruit recognition for precision horticulture. Expert Syst Appl 159:113594.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/https://doi.org/10.1016/j.eswa.2020.113594\u003c/li\u003e\n\u003cli\u003eSaedi SI, Rezaei M, Khosravi H (2024) Dual-path lightweight convolutional neural network for automatic sorting of olive fruit based on cultivar and maturity. Postharvest Biol Technol 216:113054.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/https://doi.org/10.1016/j.postharvbio.2024.113054\u003c/li\u003e\n\u003cli\u003eSalim F, Saeed F, Basurra S, Qasem SN, Al-Hadhrami T (2023) DenseNet-201 and Xception pre-trained deep learning models for fruit recognition. Electronics 12(14).\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/10.3390/electronics12143132\u003c/li\u003e\n\u003cli\u003eShao Y, Guan X, Xuan G, Gao F, Feng W, Gao G, Wang Q, Huang X, Li J (2023) GTCBS-YOLOv5s: A lightweight model for weed species identification in paddy fields. Comput Electron Agric 215:108461.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/https://doi.org/10.1016/j.compag.2023.108461\u003c/li\u003e\n\u003cli\u003eShewry PR, Hey SJ (2015) The contribution of wheat to human diet and health. Food Energy Secur 4(3):178\u0026ndash;202.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/10.1002/fes3.64\u003c/li\u003e\n\u003cli\u003eSingh M, Kukal MS, Irmak S, Jhala AJ (2021) Water use characteristics of weeds: A global review, best practices, and future directions. Front Plant Sci 12:794090. https://doi.org/10.3389/fpls.2021.794090\u003c/li\u003e\n\u003cli\u003eSpeck O, Speck T (2021) Functional morphology of plants - a key to biomimetic applications. New Phytol 231(3):950\u0026ndash;956.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/10.1111/nph.17396\u003c/li\u003e\n\u003cli\u003eSubeesh A, Bhole S, Singh K, Chandel NS, Rajwade YA, Rao KVR, Kumar SP, Jat D (2022) Deep convolutional neural network models for weed detection in polyhouse grown bell peppers. Artif Intell Agric 6:47\u0026ndash;54.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/https://doi.org/10.1016/j.aiia.2022.01.002\u003c/li\u003e\n\u003cli\u003eSusetyarini E, Wahyono P, Latifa R, Nurrohman E (2020) The identification of morphological and anatomical structures of Pluchea indica. J Phys Conf Ser 1539(1):012001.\u003cspan dir=\"RTL\"\u003e \u003c/span\u003ehttps://doi.org/10.1088/1742-6596/1539/1/012001\u003c/li\u003e\n\u003cli\u003eXu K, Zhao Y, Wang L, Zhang X (2021) Multi-modal deep learning for weeds detection in wheat fields. Front Plant Sci 12:732968. https://doi.org/10.3389/fpls.2021.732968\u003c/li\u003e\n\u003c/ol\u003e"}],"fulltextSource":"","fullText":"","funders":[{"identity":"85033cb6-9b22-4208-8d90-ce3a2b0cdbfa","identifier":"10.13039/501100015618","name":"Shahrood University of Technology","awardNumber":"RP_S_219444","order_by":0}],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":true,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":true,"hideJournal":true,"highlight":"","institution":"University of Shahrood","isAcceptedByJournal":false,"isAuthorSuppliedPdf":false,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":false,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"Deep learning, RGB image, Weed recognition, Winter wheat","lastPublishedDoi":"10.21203/rs.3.rs-7578610/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-7578610/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eImproving wheat productivity is essential for maintaining food security in the coming years. A major challenge to wheat production is the presence of weeds, which can greatly reduce its yield. Therefore, precision weed management, utilizing site-specific methods, will be vital for achieving sustainable wheat production. To this goal, in the present study, we utilized color images and deep learning techniques to distinguish winter wheat from four prevalent weeds, creating five distinct classes. A total of 542 images were captured in natural field conditions, and resized to 299\u0026times;299 pixels. Four deep learning networks\u0026ndash; Xception, EfficientNetB0, VGG19, and InceptionResNetV2\u0026ndash; were evaluated to serve as base networks to fulfil the classification requirements. These networks were pre-trained on ImageNet using transfer learning, then enhanced with additional layers to improve performance on our dataset. The improved InceptionResNetV2 model demonstrated the highest performance among the four models, achieving an accuracy of 98.17% and a loss of 3.19 on the test data. Nevertheless, all models exhibited excellent performance in distinguishing plant classes, with F1-scores ranging from 93\u0026ndash;100%, 69\u0026ndash;98%, 82\u0026ndash;100%, and 93\u0026ndash;100% for models based on Xception, EfficientNetB0, VGG19, and InceptionResNetV2, respectively. Additionally, we analyzed fifteen scenarios of weed presence in winter wheat fields, focusing on various weed types studied, to propose effective weed management strategies utilizing any of the four models. The research findings provide a foundation for the development of mobile apps or robots that facilitate site-specific weed management. This approach aims to reduce herbicide use and environmental impact while also improving wheat yield and quality.\u003c/p\u003e","manuscriptTitle":"Intelligent Broadleaf Weed–Wheat Crop Classification via Deep Convolutional Neural Networks","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-09-11 11:21:31","doi":"10.21203/rs.3.rs-7578610/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"41c19c4d-7d78-4856-b494-769795ff7617","owner":[],"postedDate":"September 11th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[{"id":54473746,"name":"Agricultural Engineering"}],"tags":[],"updatedAt":"2025-09-11T11:21:32+00:00","versionOfRecord":[],"versionCreatedAt":"2025-09-11 11:21:31","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-7578610","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-7578610","identity":"rs-7578610","version":["v1"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.