Weeding equipment based on crop and weed discrimination and use method
By introducing the identification module, electric wheel and shovel head deflection mechanism into the weeding device, combined with the air flow and vibration mechanism, the existing technology solves the problem of precise weeding of spinach and other crops, achieves efficient and environmentally friendly weed removal, and avoids Soil and dust contamination.
Patent Information
- Application Number
- CN202410921817.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-24
AI Technical Summary
It is difficult for existing weeding devices to achieve precise weed removal when dealing with crops with large leaves and low plants such as spinach, and excessive use of chemical herbicides will pollute the environment and affect crop quality and food safety.
A weed removal equipment based on the identification of crops and weeds is designed. It uses components such as an identification module, an electric wheel, a shovel head, and an airflow mechanism. The identification module takes photos to identify crops. The distance sensor measures the height, adjusts the position of the shovel head, and uses The deflection shovel head and vibration mechanism achieve precise weeding, and the airflow mechanism keeps the shovel head dry and reduces soil adhesion and dust rising.
It achieves accurate identification and removal of weeds, avoids soil pollution and dust rising, and ensures the cleanliness of the shovel head and the safety of crops.
Smart Images

Figure CN118679875A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of weed control equipment based on crop and weed identification, and in particular to a weed control equipment based on crop and weed identification and a use method thereof. Background Art
[0002] In the process of modern agricultural production, farmland weeds are one of the key factors affecting crop yield and quality. Weeds not only compete with crops for water and nutrients in the soil, but may also become hosts for pests and pathogens, directly affecting the growth and yield of crops. Current weed control schemes mostly rely on chemical herbicides, but excessive use of pesticides will not only seriously pollute the environment, but may also lead to a decline in crop quality and even cause food safety issues. Therefore, seeking an efficient and environmentally friendly weed control method has become one of the hot spots in current agricultural machinery research;
[0003] The existing Chinese patent with publication number: CN214508003U discloses a weed removal device for potato planting, which is provided with a first motor, a squeezing block, a rotating plate and a weeding blade. Due to the operation of the first motor, the first rotating shaft will be squeezed by the squeezing block to squeeze the squeezing frame on the top of the support plate to rotate, and finally drive the rotating plate and the weeding blade to reciprocate as a whole, so as to have a wide weeding range;
[0004] However, during the growth period of many crops, such as spinach, the leaves are large and the plants are short, which is consistent with the height and growth range of weeds. The above devices cannot achieve accurate weed removal operations;
[0005] Therefore, it is necessary to design a weed removal device and a method for using the weed removal device based on crop and weed identification, which is practical and can effectively identify weeds in crops and remove the weeds. Summary of the invention
[0006] The object of the present invention is to provide a weed removal device and a method of use based on crop and weed identification to solve the problems raised in the above background technology.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a weeding device based on crop and weed identification, comprising a mounting frame, a roller arm is fixedly connected to the side wall of the mounting frame, a motor wheel is fixedly connected to the lower end of the roller arm, a support frame is fixedly connected to the outer wall of the mounting frame, one end of the support frame extends to the left side of the middle part of the mounting frame, a control module is fixedly connected to one end of the support frame located in the middle part of the mounting frame, an identification module is fixedly connected to the middle part of the lower side of the control module, a distance sensor, a humidity sensor, and a light bulb are also arranged on the lower side of the control module, and a weeding mechanism is arranged at the middle part of the mounting frame;
[0008] The weeding mechanism includes a transmission assembly and a connecting arm on the transmission assembly, a shovel head is fixedly connected to the lower end of the connecting arm, the connecting arm and the shovel head can be deflected relative to the mounting frame, and the deflection path of the shovel head passes through the lower side of the identification module.
[0009] According to the above technical solution, the transmission assembly includes a base, the lower side of the base is fixedly connected to the upper surface of the mounting frame, a slide groove is provided on the base, the inner wall of the slide groove is slidably connected to a slide seat, the upper side of the slide seat is fixedly connected to a hexagonal rod, the outer wall of the hexagonal rod is slidably connected to a slide pile, the rear side of the slide pile is rotatably connected to a threaded cylinder through a bearing, the outer wall of the threaded cylinder is rotatably connected to a swivel through a bearing, one side of the outer wall of the swivel is hinged to the outer wall of the slide pile through a torsion spring, the inner wall of the threaded cylinder is threadedly connected to the outer wall of the hexagonal rod, The outer wall of the swivel is fixedly connected to the upper end of the connecting arm, the lower side of the sliding pile is fixedly connected to a bottom pile, the rear side of the bottom pile is fixedly connected to a second motor, the output end of the second motor is fixedly connected to a pull belt, the other end of the pull belt is fixedly connected to the outer wall of the connecting arm, the upper side of the mounting frame is also rotatably connected to a support rod through a bearing, the outer wall of the support rod is sleeved with a gear rod, the middle part of the outer wall of the pull belt contacts the outer wall of the gear rod away from the shovel head, the lower side of the bottom pile is provided with a vibration mechanism, and the upper side of the mounting frame is provided with an airflow mechanism.
[0010] According to the above technical solution, a first motor is fixedly connected to the side wall of the base, a threaded rod is fixedly connected to the output end of the first motor, the upper end of the threaded rod passes through the sliding seat and extends to the upper side of the base, the outer wall of the threaded rod is threadedly connected to the inner wall of the sliding seat, the upper side of the sliding pile is fixedly connected to the third motor, the output end of the third motor is fixedly connected to the first gear, the outer wall of the threaded barrel is fixedly connected to the second gear, and the upper side of the second gear is meshed with the outer wall of the first gear.
[0011] According to the above technical solution, the hexagonal rod is a hexagonal rod structure with a threaded structure on the outer wall, the connecting arm is an L-shaped structure, the lower end of the connecting arm extends forward, the outer wall of the shovel head close to the control module is an arc structure, and the gear lever can slide on the support rod.
[0012] According to the above technical solution, the airflow mechanism includes a fan, the lower side of which is fixedly connected to the upper surface of the mounting frame, the output end of the fan is fixedly connected to an air duct, the end of the air duct away from the fan is fixedly connected to an exhaust pipe, the exhaust pipe is arranged at the lower end of the connecting arm on the outside of the shovel head, and the exhaust pipe is located at the upper part of the shovel head close to the hexagonal rod, the interior of the exhaust pipe is a hollow structure, the lower side of the exhaust pipe is provided with an exhaust hole, and the interior of the exhaust pipe is connected to the output end of the fan through the air duct.
[0013] According to the above technical solution, the vibration mechanism includes a rocker arm, the upper end of the rocker arm is hinged to the lower surface of the bottom pile through a torsion spring, the lower end of the rocker arm is fixedly connected to a fixing box, the inner wall of the fixing box is fixedly connected to a first magnet, a fixing hole is opened in the middle of the connecting arm, the inner wall of the fixing hole is fixedly connected to a second magnet, the first magnet is located on the deflection path of the second magnet, and the surfaces of the first magnet and the second magnet that are close to each other are opposite magnetic poles.
[0014] According to the above technical solution, the identification module, distance sensor, humidity sensor and light bulb are all electrically connected to the control module, and the control module is electrically connected to the first motor, the third motor, the second motor, the electric wheel and the fan.
[0015] A method for using a weed removal device based on crop and weed identification, wherein when in use, an electric wheel is located at a ridge furrow of a field ridge, so that the lower end of a recognition module faces the upper side of the crop, and the lower side is continuously photographed and recognized by the recognition module. When the recognition module recognizes that there is a crop on the lower side, the electric wheel is stopped by a control module;
[0016] The distance sensor measures the height from the ground, and then starts the first motor through the control module to adjust the height of the hexagonal rod, and simultaneously starts the third motor to adjust the position of the shovel head, so that the shovel head can remove the weeds after deflection;
[0017] The second motor is started to reel in the drawstring, so that the drawstring drags the connecting arm to deflect, and the shovel head removes the weeds during the deflection process. After the weeding operation is completed, the electric wheel is started to continue moving forward.
[0018] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: the present invention is provided with an identification module capable of identifying weeds, electric wheels capable of autonomous movement, and a shovel head capable of deflecting and weeding, so that the device can accurately identify and remove weeds;
[0019] By providing a movable slide seat and a slide pile and other structures, the shovel head can be supported to deflect in various terrains to remove the weeds under the identification module;
[0020] By providing an airflow mechanism, the device can continuously dry the surface of the shovel head during use, thereby avoiding adhesion and damage to the soil and reducing the upwelling of dust driven by the airflow;
[0021] By providing a vibration mechanism, the device can shake off the mud and sand adhering to the surface of the shovel head after a single use, thereby ensuring the cleanliness of the shovel head surface. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0023] Figure 1 It is a three-dimensional structural schematic diagram of the present invention;
[0024] Figure 2 It is a schematic diagram of the lower structure of the present invention;
[0025] Figure 3 It is a schematic diagram of the structure of the weeding mechanism of the present invention;
[0026] Figure 4 It is a partial structural schematic diagram of the weeding mechanism of the present invention;
[0027] Figure 5 It is a schematic diagram of the disassembled structure of the weeding mechanism of the present invention;
[0028] Figure 6 It is a schematic diagram of the airflow mechanism structure of the present invention;
[0029] Figure 7 It is a schematic diagram of the process of the present invention;
[0030] Figure 8 It is a formula Figure 1 Schematic diagram;
[0031] Fig. 9 It is a formula Figure 2 Schematic diagram.
[0032] In the figure: 1, mounting frame; 2, roller arm; 3, electric wheel; 4, support frame; 5, control module; 6, identification module; 7, distance sensor; 8, humidity sensor; 9, light bulb; 10, weeding mechanism; 101, base; 102, slide seat; 103, first motor; 104, threaded rod; 105, hexagonal rod; 106, slide pile; 107, bottom pile; 108, second motor; 109, swivel; 110, connecting arm; 111, shovel head; 112, support rod; 113, gear lever; 114, pull belt; 115, air flow mechanism; 116, vibration mechanism; 117, third motor; 118, first gear; 119, threaded cylinder; 120, second gear; 501, fan; 502, air duct; 503, exhaust duct; 601, rocker arm; 602, fixing box; 603, first magnet; 604, second magnet. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] See also Figure 1-7 The present invention provides a technical solution: a weeding device based on crop and weed identification, comprising a mounting frame 1, a roller arm 2 is fixedly connected to the side wall of the mounting frame 1, an electric wheel 3 is fixedly connected to the lower end of the roller arm 2, a support frame 4 is fixedly connected to the outer wall of the mounting frame 1, one end of the support frame 4 extends to the left side of the middle of the mounting frame 1, a control module 5 is fixedly connected to one end of the support frame 4 located in the middle of the mounting frame 1, an identification module 6 is fixedly connected to the middle of the lower side of the control module 5, a distance sensor 7, a humidity sensor 8, and a light bulb 9 are also arranged on the lower side of the control module 5, and a weeding mechanism 10 is arranged in the middle of the mounting frame 1;
[0035] The weeding mechanism 10 includes a transmission assembly and a connecting arm 110 on the transmission assembly, a shovel head 111 is fixedly connected to the lower end of the connecting arm 110, the connecting arm 110 and the shovel head 111 can be deflected relative to the mounting frame 1, and the deflection path of the shovel head 111 passes through the lower side of the identification module 6, the transmission assembly includes a base 101, the lower side of the base 101 is fixedly connected to the upper surface of the mounting frame 1, a slide groove is provided on the base 101, a slide seat 102 is slidably connected to the inner wall of the slide groove, a hexagonal rod 105 is fixedly connected to the upper side of the slide seat 102, a slide pile 106 is slidably connected to the outer wall of the hexagonal rod 105, a threaded cylinder 119 is rotatably connected to the rear side of the slide pile 106 through a bearing, a swivel 109 is rotatably connected to the outer wall of the threaded cylinder 119 through a bearing, and a swivel 109 is rotatably connected to the outer wall of the swivel 109. The outer wall of the pile 106 is hinged by a torsion spring, the inner wall of the threaded cylinder 119 is threadedly connected to the outer wall of the hexagonal rod 105, the outer wall of the swivel 109 is fixedly connected to the upper end of the connecting arm 110, the lower side of the sliding pile 106 is fixedly connected to the bottom pile 107, the rear side of the bottom pile 107 is fixedly connected to the second motor 108, the output end of the second motor 108 is fixedly connected to a pull belt 114, the other end of the pull belt 114 is fixedly connected to the outer wall of the connecting arm 110, the upper side of the mounting frame 1 is also rotatably connected to a support rod 112 through a bearing, the outer wall of the support rod 112 is sleeved with a gear rod 113, the middle part of the outer wall of the pull belt 114 contacts the outer wall of the gear rod 113 away from the shovel head 111, the lower side of the bottom pile 107 is provided with a vibration mechanism 116, and the upper side of the mounting frame 1 is provided with an airflow mechanism 115;
[0036] A first motor 103 is fixedly connected to the side wall of the base 101, and a threaded rod 104 is fixedly connected to the output end of the first motor 103. The upper end of the threaded rod 104 penetrates the slide 102 and extends to the upper side of the base 101. The outer wall of the threaded rod 104 is threadedly connected to the inner wall of the slide 102. A third motor 117 is fixedly connected to the upper side of the slide pile 106. A first gear 118 is fixedly connected to the output end of the third motor 117. A second gear 120 is fixedly connected to the outer wall of the threaded cylinder 119. The upper side of the second gear 120 meshes with the outer wall of the first gear 118. The hexagonal rod 105 is a hexagonal rod structure with a threaded structure on the outer wall. The connecting arm 110 is an L-shaped structure. The lower end of the connecting arm 110 extends forward. The outer wall of the shovel head 111 close to the control module 5 is an arc-shaped structure, and the gear lever 113 can slide on the support rod 112.
[0037] When in use, the electric wheel 3 is located at the furrow of the field ridge, so that the lower end of the recognition module 6 is facing the upper side of the crop, and the recognition module 6 continuously takes pictures of the lower side for recognition. When the recognition module 6 recognizes that there is a crop on the lower side, the electric wheel 3 is stopped through the control module 5. At this time, the height from the ground is measured by the distance sensor 7, and then the first motor 103 is started through the control module, so that the first motor 103 drives the threaded rod 104 to rotate. Since the outer wall of the threaded rod 104 is threadedly connected with the inner wall of the slide 102, it will drive the slide 102 to adjust the height, thereby adjusting the hexagonal The height of the rod 105 is adjusted, and the third motor 117 is started at the same time to drive the first gear 118 to rotate. Since the first gear 118 is meshed with the second gear 120, the slide seat 102 drives the threaded cylinder 119 to rotate. Since the inner wall of the threaded cylinder 119 is threadedly connected with the outer wall of the hexagonal rod 105, the threaded cylinder 119 drives the rotating ring 109, the sliding pile 106 and other structures to move, and then the position of the shovel head 111 can be adjusted, so that the shovel head 111 can remove weeds after deflection, so that the device can adapt to various terrains and crop growth conditions;
[0038] After the position of the shovel head 111 is adjusted, the second motor 108 is started to reel in the drawstring 114, so that the drawstring 114 is guided by the gear lever 113 and then drags the connecting arm 110 to deflect, thereby causing the connecting arm 110 to drive the shovel head 111 to deflect, and at the same time, the torsion spring at the connection between the rotating ring 109 and the sliding pile 106 is contracted and stored, so that the shovel head 111 removes the weeds during the deflection process. After the weeding operation is completed, the second motor 108 is started to reversely loosen the drawstring 114, thereby causing the connecting arm 110 to deflect and reset due to the elastic force of the torsion spring at the connection between the rotating ring 109 and the sliding pile 106, and then the electric wheel 3 is started to continue moving, thereby completing the continuous weed removal operation;
[0039] The airflow mechanism 115 includes a fan 501, the lower side of the fan 501 is fixedly connected to the upper surface of the mounting frame 1, the output end of the fan 501 is fixedly connected to an air duct 502, and the end of the air duct 502 away from the fan 501 is fixedly connected to an exhaust tube 503, the exhaust tube 503 is arranged at the lower end of the connecting arm 110 and located outside the shovel head 111, and the exhaust tube 503 is located at the upper part of the shovel head 111 close to the hexagonal rod 105, the interior of the exhaust tube 503 is a hollow structure, the lower side of the exhaust tube 503 is provided with an exhaust hole, and the interior of the exhaust tube 503 is connected to the output end of the fan 501 through the air duct 502;
[0040] During the use of the device, the fan 501 continuously supplies air to the exhaust cylinder 503 through the air duct 502, and the control module 5 closes the air supply to the exhaust cylinder 503 when the control module 5 starts the second motor 108 to drive the connecting arm 110 to deflect. During the process of the fan 501 supplying air to the exhaust cylinder 503 through the air duct 502, the gas inside the exhaust cylinder 503 is ejected toward the surface of the shovel head 111, which can blow off the mud and sand adhering to the surface of the shovel head 111, accelerate the drying of the surface of the shovel head 111, reduce the amount of soil driven by the shovel head 111 after it is disassembled into the soil, and thus reduce the damage to the crops;
[0041] During the movement of the device, after the airflow passes through the surface of the shovel head 111, it will blow along the surface of the shovel head 111 toward the rear side of the moving direction, so that the airflow forms a backward wind wall on the lower side of the identification module 6, reducing the amount of dust that is raised and adheres to the identification module 6 during the working process, thereby ensuring working stability;
[0042] The vibration mechanism 116 includes a rocker arm 601, the upper end of the rocker arm 601 is hinged to the lower surface of the bottom pile 107 through a torsion spring, the lower end of the rocker arm 601 is fixedly connected to a fixing box 602, the inner wall of the fixing box 602 is fixedly connected to a first magnet 603, a fixing hole is opened in the middle of the connecting arm 110, the inner wall of the fixing hole is fixedly connected to a second magnet 604, the first magnet 603 is located on the deflection path of the second magnet 604, and the surfaces of the first magnet 603 and the second magnet 604 that are close to each other are opposite magnetic poles, the identification module 6, the distance sensor 7, the humidity sensor 8 and the light bulb 9 are all electrically connected to the control module 5, and the control module 5 is electrically connected to the first motor 103, the third motor 117, the second motor 108, the electric wheel 3 and the fan 501;
[0043] By providing the first magnet 603, the connecting arm 110 will contact the outer wall of 60 when it deflects downward, and then the connecting arm 110 squeezes the first magnet 603 and deflects downward synchronously. At this time, the first magnet 603 contacts the second magnet 604. Since the magnetic poles of the two are opposite, the two are adsorbed. When the connecting arm 110 rebounds and resets, the first magnet 603 rotates with the connecting arm 110. After the rocker arm 601 deflects and resets, since the rocker arm 601 is limited in deflection angle by the lower surface of the bottom pile 107, the connecting arm 110 continues to rotate, causing the first magnet 603 to separate from the second magnet 604 instantly. The loss of the tension limit of the deflection of the rocker arm 601 will cause the connecting arm 110 to rebound and vibrate upward instantly once, thereby shaking off the mud and sand on the surface of the shovel head 111, and separating the grass roots in the mud and sand from the mud and sand, so that the weeds can quickly wither due to root dehydration after falling, preventing secondary rooting.
[0044] The recognition module's weed recognition method first uses roboflow to preprocess and enhance the image data, then introduces the Large Separable Kernel Attention (LSKA) mechanism to enhance the model's ability to recognize targets in complex backgrounds, then introduces the Deformable Convolutional Networks (DCN) to make the network structure lightweight to reduce the amount of calculation, and uses the Minimum Point Distance IoU (MPDIoU) loss function to replace the original loss function to improve the convergence speed;
[0045] Improve the yolov8 model structure as follows Figure 8 As shown in the figure, to meet the needs of this device, the LSKA attention mechanism is first combined with the SPPF module of Backbone to improve the ability to extract key features of the target and reduce the interference when the field background color is close to the target; in order to deal with the phenomenon of a large number of overlapping samples in the data set, DCNv3 is introduced to make up for the shortcomings of traditional convolution in long-distance modeling and adaptive spatial aggregation capabilities and reduce the amount of calculation;
[0046] In order to solve the problem of slow convergence and excessive redundant calculation when the aspect ratio of the predicted box and the real box is the same, MPDIoU is introduced to replace the original loss function. For the convenience of description, the improved model will be called SH-Yolov8 (Spinach herbicide-Yolov8) in the following text. Its network structure is as follows Figure 8 shown.
[0047] 1.LSKA
[0048] Fig. 9The figure shows the LSKA structure. In this module, the K×K convolution is first decomposed into (2d-1)×(2d-1) depth convolution, (K / d)×(K / d) depth expansion convolution and 1×1 convolution. Then, the 2D depth convolution kernel and the depth expansion convolution kernel are further decomposed into 1D horizontal (transverse) convolution kernel and vertical (longitudinal) convolution kernel. Finally, the decomposed convolution kernels are connected in series. LSKA can be expressed by the following formula:
[0049]
[0050] Where H and W represent the height and width of the feature map, respectively, the superscript C represents each channel, and * represents convolution. is the Hadamard product, d is the expansion rate, is the depth convolution output, Z C is the output of the deep convolution obtained by convolving the kernel G with the feature map F, k is the maximum receptive field of the kernel G, and A C is the attention map, F C is the input feature map, is the output.
[0051] 2.DCNv3
[0052] Deformable Convolutional Networks (DCN) are mainly used for target detection in complex environments, especially when the target to be detected has irregular shapes or is blocked or overlapped. They are very suitable for overcoming the overlap and interlacing of some weeds in this study.
[0053] DCN introduces long-distance dependency and adaptive spatial aggregation capabilities into conventional convolution, expands conventional convolution, and allows convolution to adaptively adjust its receptive field to better capture long-distance dependency and complex spatial changes. DCNv2 can be expressed as:
[0054]
[0055] Among them, K is the total number of sampling points, w k is the projection weights of the kth sampling point,
[0056] m k is the modulation scalar of the kth sampling point, p k is the kth position of the predefined grid sampling in the regular convolution, Δp k is the offset corresponding to the kth grid sampling position. DCNv2 gives the input x and the current pixel point. In this way, the convolution operation is no longer fixed, but the sampling position is dynamically adjusted according to the input features by learning the offset;
[0057] DCNv3 is the third generation of the deformable convolutional network. It avoids the efficiency limitations of extracting features and adapting to certain extreme structures, and further improves the performance of identifying occluded targets. Compared with the previous two generations, the new deformable convolutional network has three main features:
[0058] 1. Each convolution neuron shares weights. The linear projection weights of each convolution neuron in DCNv2 are independent of each other, which is similar to the general convolution operation. This leads to the number of parameters and memory complexity being linearly related to the total number of sampling points. When DCN is applied to large-scale models, the efficiency is reduced. For this reason, we consider borrowing the concept of separable convolution and decomposing the original convolution weights into depth and points. The depth is controlled by the position-aware modulation scalar, and the points are composed of shared projection weights between sampling points.
[0059] 2. Introducing the multi-head mechanism. The multi-head design was first proposed in group convolution and has been widely used in the Transformer's multi-head self-attention mechanism (MHSA). It extracts rich information from the representation subspaces of different positions through adaptive spatial aggregation. Through a similar design, different groups of DCNv3 on a single convolutional layer can achieve different spatial aggregation modes, providing enhanced feature expression for downstream tasks.
[0060] 3. Normalize the sampling points of the modulation scalar. In DCNv2, the modulation scalar is normalized by applying the sigmoid function element by element, so that the value range of each modulation scalar is between 0 and 1. Therefore, the sum of the modulation scalars of all sampling points always fluctuates between 0 and a certain value. When encountering large-scale parameter and data training, the problem of gradient instability will occur. For this reason, softmax normalization is used to replace the original method. DCNv3 can be expressed by the formula:
[0061]
[0062] Where G is the total number of aggregation groups, m gk represents the modulation scalar of the kth sampling point in the gth group, Δp gk is the offset of the sampling position corresponding to the g-th group of grids.
[0063] 3.MPDIoU
[0064] In object detection, the bounding box regression loss function based on Intersection over Union (IoU) is often used to determine the precise position of the object in the image. Generally, the size and position of a rectangular box are uniquely determined by determining the coordinates of the upper left and lower right points. In order to solve the problems of poor handling of non-overlapping boxes and over-reliance on threshold selection, the minimum point distance IoU loss function (Minimum Point Distance IoU Loss, LMPDIoU) is introduced. The definition of LMPDIoU is as follows:
[0065] For any two rectangular boxes A and B, define their width and height as w and h, and the coordinates of the upper left and lower right corners of rectangle A are expressed as The coordinates of the upper left and lower right corners of B are expressed as
[0066] have:
[0067]
[0068] This method simplifies the comparison of similarities between two rectangular boxes and defines a new loss function, which is applicable to overlapping or non-overlapping cases. From the definition, it can be seen that this function encourages the predicted box to be close to the real box in position, size and shape. For the case where spinach and weeds overlap a lot, it speeds up the convergence speed and improves the detection accuracy.
[0069] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0070] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A weed control device based on crop and weed discrimination, comprising a mounting frame (1), characterized in that: The side wall of the mounting frame (1) is fixedly connected to a roller arm (2), the lower end of the roller arm (2) is fixedly connected to an electric wheel (3), the outer wall of the mounting frame (1) is fixedly connected to a support frame (4), one end of the support frame (4) extends to the left side of the middle part of the mounting frame (1), one end of the support frame (4) located in the middle of the mounting frame (1) is fixedly connected to a control module (5), the middle part of the lower side of the control module (5) is fixedly connected to an identification module (6), the lower side of the control module (5) is also provided with a distance sensor (7), a humidity sensor (8), and a light bulb (9), and the middle part of the mounting frame (1) is provided with a weeding mechanism (10); The weeding mechanism (10) comprises a transmission assembly and a connecting arm (110) on the transmission assembly, a shovel head (111) being fixedly connected to the lower end of the connecting arm (110), the connecting arm (110) and the shovel head (111) being deflectable relative to the mounting frame (1), and a deflection path of the shovel head (111) passing through the lower side of the identification module (6).
2. The weed control device based on crop and weed identification according to claim 1, characterized in that: The transmission assembly comprises a base (101), the lower side of the base (101) is fixedly connected to the upper surface of the mounting frame (1), a slide groove is provided on the base (101), the inner wall of the slide groove is slidably connected to a slide seat (102), the upper side of the slide seat (102) is fixedly connected to a hexagonal rod (105), the outer wall of the hexagonal rod (105) is slidably connected to a slide pile (106), the rear side of the slide pile (106) is rotatably connected to a threaded cylinder (119) through a bearing, the outer wall of the threaded cylinder (119) is rotatably connected to a swivel (109) through a bearing, one side of the outer wall of the swivel (109) is hinged to the outer wall of the slide pile (106) through a torsion spring, the inner wall of the threaded cylinder (119) is threadedly connected to the outer wall of the hexagonal rod (105), and the outer wall of the swivel (109) is connected to the outer wall of the hexagonal rod (105). The upper end of the connecting arm (110) is fixedly connected, the lower side of the sliding pile (106) is fixedly connected to a bottom pile (107), the rear side of the bottom pile (107) is fixedly connected to a second motor (108), the output end of the second motor (108) is fixedly connected to a pull belt (114), the other end of the pull belt (114) is fixedly connected to the outer wall of the connecting arm (110), the upper side of the mounting frame (1) is also rotatably connected to a support rod (112) through a bearing, the outer wall of the support rod (112) is sleeved with a gear rod (113), the middle part of the outer wall of the pull belt (114) contacts the outer wall of the gear rod (113) away from the shovel head (111), the lower side of the bottom pile (107) is provided with a vibration mechanism (116), and the upper side of the mounting frame (1) is provided with an airflow mechanism (115).
3. The weed removal device based on crop and weed identification according to claim 2, characterized in that: A first motor (103) is fixedly connected to the side wall of the base (101); an output end of the first motor (103) is fixedly connected to a threaded rod (104); an upper end of the threaded rod (104) passes through the slide seat (102) and extends to the upper side of the base (101); an outer wall of the threaded rod (104) is threadedly connected to an inner wall of the slide seat (102); a third motor (117) is fixedly connected to the upper side of the slide pile (106); an output end of the third motor (117) is fixedly connected to a first gear (118); an outer wall of the threaded barrel (119) is fixedly connected to a second gear (120); an upper side of the second gear (120) is meshed with an outer wall of the first gear (118).
4. The weed removal device based on crop and weed identification according to claim 3 is characterized in that: The hexagonal rod (105) is a hexagonal rod structure with a threaded structure on the outer wall, the connecting arm (110) is an L-shaped structure, the lower end of the connecting arm (110) extends forward, the outer wall of the shovel head (111) close to the control module (5) is an arc-shaped structure, and the shift rod (113) can slide on the support rod (112).
5. The weed removal device based on crop and weed identification according to claim 4, characterized in that: The airflow mechanism (115) comprises a fan (501), the lower side of which is fixedly connected to the upper surface of the mounting frame (1), the output end of the fan (501) is fixedly connected to an air duct (502), one end of the air duct (502) away from the fan (501) is fixedly connected to an exhaust pipe (503), the exhaust pipe (503) is arranged at the lower end of the connecting arm (110) on the outside of the shovel head (111), and the exhaust pipe (503) is located at the upper part of the shovel head (111) close to the hexagonal rod (105), the interior of the exhaust pipe (503) is a hollow structure, the lower side of the exhaust pipe (503) is provided with an exhaust hole, and the interior of the exhaust pipe (503) is connected to the output end of the fan (501) through the air duct (502).
6. The weed removal device based on crop and weed identification according to claim 5, characterized in that: The vibration mechanism (116) comprises a rocker arm (601), the upper end of the rocker arm (601) is hinged to the lower surface of the bottom pile (107) via a torsion spring, the lower end of the rocker arm (601) is fixedly connected to a fixing box (602), the inner wall of the fixing box (602) is fixedly connected to a first magnet (603), a fixing hole is opened in the middle of the connecting arm (110), the inner wall of the fixing hole is fixedly connected to a second magnet (604), the first magnet (603) is located on the deflection path of the second magnet (604), and the surfaces of the first magnet (603) and the second magnet (604) that are close to each other have opposite magnetic poles.
7. The weed removal device based on crop and weed identification according to claim 6, characterized in that: The identification module (6), the distance sensor (7), the humidity sensor (8) and the light bulb (9) are all electrically connected to the control module (5), and the control module (5) is also electrically connected to the first motor (103), the third motor (117), the second motor (108), the electric wheel (3) and the fan (501).
8. A method for using a weed removal device based on crop and weed identification, characterized in that: When in use, the electric wheel (3) is located at the furrow of the field ridge, so that the lower end of the recognition module (6) faces the upper side of the crop, and the recognition module (6) continuously photographs the lower side for recognition, and when the recognition module (6) recognizes that there is a crop on the lower side, the control module (5) stops the electric wheel (3); The distance sensor (7) measures the height from the ground, and then starts the first motor (103) through the control module to adjust the height of the hexagonal rod (105), and simultaneously starts the third motor (117) to adjust the position of the shovel head (111), so that the shovel head (111) can remove weeds after deflection; The second motor (108) is started to reel in the pull belt (114), so that the pull belt (114) drags the connecting arm (110) to deflect, and the shovel head (111) removes the weeds during the deflection process. After the removal operation is completed, the electric wheel (3) is started to continue moving forward.
