International Journal of Advances in Applied Computational Intelligence cover
International Journal of Advances in Applied Computational Intelligence

Online ISSN 2833-5600

Full Length Article

Volume 2 • Issue 1 • PP: 23-28 • 2022

Deep Learning Model for Early Weed Detection in Agriculture Application

Abdullah Ali Salamai 1* ,
Nouran Ajabnoor 1 ,
Ali Mohammad Khawaji 1
1Management Department, Applied College, Jazan University, Jazan, KSA
* Corresponding Author.
verified

Open Access & Copyright

© 2022 The Author(s). Published by ASPG. This article is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

Abstract

One of the current issues in agriculture is the lack of mechanized weed management, which is why weed detection technologies are so crucial. Detecting weeds is useful because it may lead to the elimination of pesticide usage, which in turn improves the surroundings, human health, and the sustainability of agriculture. As novel algorithms are developed and computer capacity increases, deep learning-based approaches are gradually replacing classic machine learning methods for real-time weed detection. Mixed machine learning designs, which combine the best features of existing approaches, are becoming more popular. So, the goal of this study, present the CNN model for early weed detection. The CNN model is applied to the weed dataset. The CNN model achieved 96% accuracy.

Full Text

This HTML version is generated from the article PDF. The PDF remains the version of record.

1. Introduction

The agricultural industry is under great pressure to enhance the quantity as well as the quality of food generated as a result of the world's rapidly expanding population and the effects of climate change. By 2050, the United Nations projects, the world's population would have reached nine billion, requiring a doubling of food production. Plant diseases, pests, and weed infestation are all on the rise, posing serious problems for the agricultural industry. Crops' food, fiber, and biofuel potential is diminished due to weed infestations, pests, and illnesses. Catastrophic or persistent losses may occur, although on average they account for 42 percent of harvests of a few crucial crops. Weeds are unwanted plants that are spread by seeds or rhizomes and fight with desirable plants for resources such as space, light, water, and soil nutrients[1]–[3].

The thorns and burrs they create, as well as the poison they carry, make them a nuisance in crop management. Because of this, landowners invest billions of dollars in weed management, which frequently fails to provide sufficient weed control or suitable technical assistance, resulting in lower crop yields. Since insufficient weed control results in lower yields and worse product quality, it is clear that weed care is an essential part of horticulture crop management. When not properly handled, pharmacological and social forms of control may have serious consequences for the natural world[4], [5]. More efficient and long-term methods of weed control will benefit from the availability of a low-cost instrument for early-stage weed detection and mapping. Early weed management helps decrease the appearance of diseases and pests in crops, and it may avert a loss of crop output of up to 34%. There are a variety of methods for weed control, and most of them take into account the state of the environment today[6]–[8].

Automatic weeding relies on a series of intermediate steps, the first of which is weed detection. There is significant potential for lowering financial and ecological costs while preserving a high degree of weed management via the use of tractor-mounted real-time weed identification and control technologies and automated weeds in farming regions.

The effectiveness and dependability of employing various light spectra and basic image processing methods were the subjects of several early experiments[9], [10].

Detecting objects in a picture and returning bounding boxes that completely contain them is one of the most widely researched topics in computer vision. Recent developments in the world of deep learning have led to significant progress on this problem during the last two years[11], [12].

Using a sliding window technique, Overfeat applies two convolutional neural networks (CNN) architectures over different picture sizes. The first one determines whether or not a given window includes an item, whereas the second one estimates where that object's bounding box is. The final collection of object detections is generated by combining dense category and position forecasts using a greedy approach[13], [14]. The objective of this study is to obtain the CNN model for early weed detection. The CNN model will be applied to 1300 images. The steps of the CNN model are discussed.

2. Background

This section pressed some related work in weed detection in agriculture. For example, using image analysis and machine learning, the scientists hoped to identify weeds in a chilli crop [15]. Pre-processing image analysis methods were used for the UAV data obtained from a chilli plantation in Australia. The photos were processed such that characteristics could be retrieved to tell weeds and crops apart. Using those characteristics, three different models (RF, SVM, and KNN) were evaluated. RF outperformed the other categories in accuracy and other measures of performance, as shown by the experiments.

Using image analysis and machine learning, the scientists hoped to identify weeds in a chilli crop. Pre-processing image analysis methods were used for the UAV data obtained from a chilli plantation in Australia [16]. The photos were processed such that characteristics could be retrieved to tell weeds and crops apart. Using those characteristics, three different models (RF, SVM, and KNN) were evaluated. RF outperformed the other categories concerning reliability and other measures of performance, as shown by the experiments.

The authors in [17] developed a method for variable-rate pesticide spraying based on real-time computer vision identification of crops and weeds. The random forest classification algorithm was used for both weed identification and crop categorization. We used our data to train the categorization algorithm offline before taking it for a spin in the real world. With the help of a vision-based feedback system, agrochemicals were sprayed using application equipment that included a PWM-based fluid flow control system. Multiple experiments conducted in the field corroborate the real-time efficacy of the suggested vision-based pesticide spraying architecture.

The authors in [18] presented a real-time weed identification technique that employs stereo-vision for 3D crop modeling and machine learning for recognizing weeds in crops. A 3D point cloud of agricultural property is created using the structure-from-motion approach applied to a video of the farm. The algorithm for machine learning is taught using data from two crops, cucumbers and onions, that were both produced by hand. The machine learning algorithms are trained using Convolutional Neural Networks (CNNs) and the ResNet-50 method. ResNet-50 works better than CNN, as can be observed. Overall, the ResNet-50 algorithm achieves a precision of 84.6% on the cucumber sample and 90% on the onion crop dataset.

Classical K-Nearest Neighbors, Random Forest (RF), and Decision Tree algorithms, in addition to a YOLOv5 neural network, were offered by the authors in [19] as part of a program for agricultural pest detection. Images of the weeds obtained from different regions of the nation were used to create an exclusive database with more than a thousand examples of every category. Scientists used machine learning techniques, CNN, and deep algorithm development to create methods for recognizing, classifying, and differentiating weeds. The study's findings led to the creation of a weed identification system using the YOLOv5 architecture and the estimation of the quality of the aforementioned algorithms. The evaluation found that the K-Nearest Neighbors classifier had an accuracy of 83.3%, the RF algorithm had an accuracy of 87.5%, and the Decision Tree predictor had an accuracy of 80% when it came to weed identification.

3. CNN Model

This section discusses the steps of the CNN model which are used in this paper[20]. We built a CNN algorithm with an accuracy of 96%. An in-depth examination of the model is the focus of this research. Figure 1 displays the study's developed CNN algorithm. When a picture is read, a 224x224x3 pixels sample is taken at random and then transformed using vibration, distortion, flip, or spin. Stride widths (the gap between filter/mask placements), mask size, and the number of convolution and pooling stages may all be adjusted. To do pooling, a mask is first applied to every pixel, and then a single value (such as the highest) is selected.

Multiple iterations of convolution and pooling constitute the mixing phases seen in Figure 1. The weights of the model are trained with the help of a gradient optimizer by putting the final result into a SoftMax operator. The algorithm can effortlessly acquire the decision limits necessary for classifying pictures into one of two classes by adding nonlinearities using a ReLU activation function and random dropouts while training. To train for and recognize identical characteristics with varied scaling, the network's filtering and outputs change size (becoming lower as the input progresses through the network). CNNs are invariant when dealing with transformations like rotation and translation since convolution filters are used for whole pictures for training data. In addition, the CNNs' tolerance for abnormalities in the parameters is greatly increased by the pooling layers.

Figure 1. The CNN model was used in this study.
Figure 1. The CNN model was used in this study.

4. Application

The amount of money it makes is significantly affected by weeding. Here we show you the whole process of weed detection. Here, we demonstrate how to use deep learning to automatically identify weeds by partitioning input photos into 224 by 224 squares.

One thousand three hundred RGB digital photos were gathered. As an input dataset, all photos are reduced in size to 224 by 224 for simpler training and quicker implementation. Figure 2 shows a sample of these images.

Figure 2. The sample of the dataset.
Figure 2. The sample of the dataset.

We applied the CNN model to a collected dataset. The summary of the CNN model is presented in Table 1.

Table 1. The model summary of this study
Table 1. The model summary of this study

The confusion matrix of the results CNN model is presented in Figure 2.

Figure 3. The confusion matrix by the CNN model.
Figure 3. The confusion matrix by the CNN model.

The CNN model obtained 96% accuracy in this study.

5. Conclusion

Weed control techniques, including electrical, magnetic, or heat welding, need accurate weed identification in croplands. The previous parts of this article have covered two types of weed-detecting technology. It proved that conventional machine learning methods are being phased out in favor of those based on deep neural networks. When used as feature extractors, deep CNN designs provide greater accuracy and allow for faster creation of applications.

The future is likely to hold more hybrid models that combine deep learning with more traditional forms of processing images. We collected 1300 images for weed detection. The CNN model is applied to these images. The CNN model achieved 96% accuracy.

References

[1]        F. López‐Granados, “Weed detection for site‐specific weed management: mapping and real‐time approaches,” Weed Res., vol. 51, no. 1, pp. 1–11, 2011.

[2]        Z. Wu, Y. Chen, B. Zhao, X. Kang, and Y. Ding, “Review of weed detection methods based on computer vision,” Sensors, vol. 21, no. 11, p. 3647, 2021.

[3]        A. S. M. M. Hasan, F. Sohel, D. Diepeveen, H. Laga, and M. G. K. Jones, “A survey of deep learning techniques for weed detection from images,” Comput. Electron. Agric., vol. 184, p. 106067, 2021.

[4]        A. Piron, F. van der Heijden, and M.-F. Destain, “Weed detection in 3D images,” Precis. Agric., vol. 12, pp. 607–622, 2011.

[5]        G. G. Peteinatos, M. Weis, D. Andújar, V. Rueda Ayala, and R. Gerhards, “Potential use of ground‐based sensor technologies for weed detection,” Pest Manag. Sci., vol. 70, no. 2, pp. 190–199, 2014.

[6]        A. dos Santos Ferreira, D. M. Freitas, G. G. da Silva, H. Pistori, and M. T. Folhes, “Weed detection in soybean crops using ConvNets,” Comput. Electron. Agric., vol. 143, pp. 314–324, 2017.

[7]        A. Wang, W. Zhang, and X. Wei, “A review on weed detection using ground-based machine vision and image processing techniques,” Comput. Electron. Agric., vol. 158, pp. 226–240, 2019.

[8]        B. Liu and R. Bruch, “Weed detection for selective spraying: a review,” Curr. Robot. Reports, vol. 1, pp. 19–26, 2020.

[9]        A. Bakhshipour and A. Jafari, “Evaluation of support vector machine and artificial neural networks in weed detection using shape features,” Comput. Electron. Agric., vol. 145, pp. 153–160, 2018.

[10]      J. Yu, S. M. Sharpe, A. W. Schumann, and N. S. Boyd, “Deep learning for image-based weed detection in turfgrass,” Eur. J. Agron., vol. 104, pp. 78–84, 2019.

[11]      S. Gidaris and N. Komodakis, “Object detection via a multi-region and semantic segmentation-aware cnn model,” in Proceedings of the IEEE international conference on computer vision, 2015, pp. 1134–1142.

[12]      T.-Y. Lin, A. RoyChowdhury, and S. Maji, “Bilinear CNN models for fine-grained visual recognition,” in Proceedings of the IEEE international conference on computer vision, 2015, pp. 1449–1457.

[13]      X. Jiang, S. Yang, F. Wang, S. Xu, X. Wang, and X. Cheng, “OrbitNet: A new CNN model for automatic fault diagnostics of turbomachines,” Appl. Soft Comput., vol. 110, p. 107702, 2021.

[14]      P. Sharma, Y. P. S. Berwal, and W. Ghai, “Performance analysis of deep learning CNN models for disease detection in plants using image segmentation,” Inf. Process. Agric., vol. 7, no. 4, pp. 566–574, 2020.

[15]      N. Islam et al., “Early weed detection using image processing and machine learning techniques in an Australian chilli farm,” Agriculture, vol. 11, no. 5, p. 387, 2021.

[16]      A. Etienne and D. Saraswat, “Machine learning approaches to automate weed detection by UAV based sensors,” in Autonomous Air and Ground Sensing Systems for Agricultural Optimization and Phenotyping IV, SPIE, 2019, pp. 202–215.

[17]      M. Alam, M. S. Alam, M. Roman, M. Tufail, M. U. Khan, and M. T. Khan, “Real-time machine-learning based crop/weed detection and classification for variable-rate spraying in precision agriculture,” in 2020 7th International Conference on Electrical and Electronics Engineering (ICEEE), IEEE, 2020, pp. 273–280.

[18]      S. Badhan, K. Desai, M. Dsilva, R. Sonkusare, and S. Weakey, “Real-Time Weed Detection using Machine Learning and Stereo-Vision,” in 2021 6th International Conference for Convergence in Technology (I2CT), IEEE, 2021, pp. 1–5.

[19]      B. Urmashev, Z. Buribayev, Z. Amirgaliyeva, A. Ataniyazova, M. Zhassuzak, and A. Turegali, “Development of a weed detection system using machine learning and neural network algorithms,” Eastern-European J. Enterp. Technol., vol. 6, no. 2, p. 114, 2021.

[20]      A. H. Abdulnabi, G. Wang, J. Lu, and K. Jia, “Multi-task CNN model for attribute prediction,” IEEE Trans. Multimed., vol. 17, no. 11, pp. 1949–1959, 2015.

 

Continue Reading

View the full issue arrow_forward

Cite This Article

Choose your preferred format

format_quote
Salamai, Abdullah Ali, et al. “Deep Learning Model for Early Weed Detection in Agriculture Application.” International Journal of Advances in Applied Computational Intelligence, vol. 2, no. 1, 2022, pp. 23–28. https://doi.org/10.54216/IJAACI.020103.
Salamai, A. A., Ajabnoor, N., & Khawaji, A. M. (2022). Deep Learning Model for Early Weed Detection in Agriculture Application. International Journal of Advances in Applied Computational Intelligence, 2(1), 23–28. https://doi.org/10.54216/IJAACI.020103
Salamai, Abdullah Ali, Nouran Ajabnoor, and Ali Mohammad Khawaji. “Deep Learning Model for Early Weed Detection in Agriculture Application.” International Journal of Advances in Applied Computational Intelligence 2, no. 1 (2022): 23–28. https://doi.org/10.54216/IJAACI.020103.
Salamai, A.A., Ajabnoor, N. and Khawaji, A.M. (2022) ‘Deep Learning Model for Early Weed Detection in Agriculture Application’, International Journal of Advances in Applied Computational Intelligence, 2(1), pp. 23–28. Available at: https://doi.org/10.54216/IJAACI.020103.
Salamai AA, Ajabnoor N, Khawaji AM. Deep Learning Model for Early Weed Detection in Agriculture Application. International Journal of Advances in Applied Computational Intelligence. 2022;2(1):23-28. doi:10.54216/IJAACI.020103
A. A. Salamai, N. Ajabnoor, and A. M. Khawaji, “Deep Learning Model for Early Weed Detection in Agriculture Application,” International Journal of Advances in Applied Computational Intelligence, vol. 2, no. 1, pp. 23–28, 2022, doi: 10.54216/IJAACI.020103.
policy

Publisher's Note

The statements, opinions, and data presented in this article are solely those of the author(s) and do not necessarily represent those of ASPG, the journal, or its editors. ASPG and the editors disclaim responsibility for any harm arising from the use of any ideas, methods, instructions, or products described in this article, to the fullest extent permitted by applicable law.

Digital Archive Ready