a field so that farmers can take specific action to get rid of them, gather live videos and photos of a field, apply
machine learning techniques to the same, and then determine the weeds. Numerous methods, such as object
detection, feature extraction, segmentation, and Classification, can be used to complete this process. We decided
to use a live feed CNN technique to address this problem it's more like analyzing the input dataset to find the
weeds.
[5,6]
The weeds within rows might not be accurately removed by conventional machinery. Sunil G C et al. emphasized
while introducing their study on the thought that the herbicide which is sprayed uniformly across the field,
treating weeds and crops alike, at a set pace when compared to site-specific herbicide applications prove less
feasible as blanket herbicide applications may have a more negative impact on the ecosystem. As a result,
applying an herbicide selectively to areas of concern may improve precision while lowering input costs and
environmental problems.
Umamaheswari S et al.
[7]
mentioned about the field of robotic farming and precision agriculture that needs
to advance in response to current problems with the lack of agricultural labour and resources, the emergence
of new crop diseases, and weeds. The issues of climate change and sustainable agriculture are intimately tied to
the challenge of effective weed classification and detection. According to various resources and findings the
study suggests, existing species may be exposed to new and hybrid weeds as a result of climate change. Because
weeds can hinder the growth of farm crops, it is crucial to create new technologies that aid in identifying them.
Identifying weeds can also help remove them, which lowers the need for pesticides and offers effective
substitutes when the crops are harvested.
O.M. Olaniyi et al.
[8]
mentioned about the various ways of weed eliminations as people have become more
civic and knowledgeable about weeds, experts have been looking for ways to eradicate the infamous pest with
the least amount of harm to the plant. The three main strategies for controlling weeds are cultural, chemical,
and automated approaches. Bush fallowing, mulching, fire clearance, early flooding, hand weeding, shifting
crops, and maintaining a clean reaper are all components of the cultural approach of weed management. This
approach has significant labour costs and drawbacks. Applying herbicides is thought to be a significant
alternative to hand weeding. However, excessive herbicide use can result in harvest losses, harm to the
environment, high production costs, and the development of herbicide resistance. Without getting to the weeds,
some of these pesticides even wind up on the soil and food crops. Since spraying food crops is viewed as a risk
to the safety of the food being consumed, a thorough weed control method is necessary.
On the other hand, as specified by P. Kavitha Reddy et al.,
[5]
deep learning techniques particularly those that use
neural networks have become increasingly popular in recent years. These methods use big datasets of tagged
images to train and intricate neural network models. The neural network automatically collects pertinent
information and classifies the input photos using iterative learning procedures. The YOLO algorithm is a well-
known implementation of the convolutional neural network (CNN), which is the foundation of deep learning
techniques in computer vision (CV).
In this paper, a low cost and robust weed detection, live video-based and elimination system with automated
spraying using Convolutional Neural Network (CNN) as the main computing algorithm, SoftMax and ReLU as
activation functions and classification of the same using Fully Connected Layers (FCLs) is given along with a
detailed comparison of YOLOv4 with the proposed method.
The major reason for why CNN was selected is due to its ability to focus on fine-grained feature learning,
especially useful in identifying small or overlapping weed patterns. YOLOv4 was chosen for comparison due to
its real-time detection speed. Other models like Faster R-CNN or ViT were not used due to higher computational
demands unsuitable for edge deployment on Raspberry Pi 4. The two activation functions SoftMax and ReLU
were selected for their simplicity, speed, and established use in CNN architectures. Alternatives like Swish or
Leaky ReLU can improve performance but require higher computational cost and tuning.
2. Materials and methods
This particular section describes the materials and design required for the successful development of the
particular proposed system. Here a detailed overview of the components, methodology utilized and many other
specifications are mentioned. The system prototype well integrates the combination of Internet of Things (IOT)
with image processing, feature extraction, deep learning algorithm and identification along with precision
spraying unit.
2.1 System overview
The proposed system is implemented using Convolutional Neural Network to develop and cultivate a robust,
multi-scalable and versatile weed detection system that produces accurate results in real time using live video
feed via a webcam. The input dataset then goes through various processes and at the end determines the result
based on three particular parameters i.e., i) weed, ii) crop, iii) none. The various processes particularly include,
Image Acquisition, feature extraction, classification and training of the model.
A generalized block diagram is represented as Fig. 1 that gives an idea regarding the actual flow of the