Intelligent detection method for openness of fresh flowers in scenting of jasmine tea

By improving the jasmine flower bloom detection model through deep learning technology, and using technologies such as BRA and GFPN, the problem of low manual detection efficiency in jasmine tea scenting has been solved, and efficient and accurate intelligent detection of jasmine flower bloom has been achieved, reducing costs and improving efficiency. industrial efficiency.

CN118587530APending Publication Date: 2024-09-03HANGZHOU PROJECT & RES INST OF ELECTRO MECHANIC & LIGHT IND +2
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410783847.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Manual detection in the jasmine tea scenting process is inefficient and low-precision, resulting in high labor intensity and high cost, which limits the development of the jasmine tea industry.

Method used

Deep learning technology is used to improve the jasmine openness detection model based on the yolo-v8 model. By introducing double-layer routing attention (BRA) and generalized feature pyramid network (GFPN), combined with data enhancement and multi-head detection heads, a jasmine openness detection model is constructed Intelligent detection system.

Benefits of technology

It improves detection efficiency and accuracy, reduces cost investment, realizes intelligent identification of jasmine flower openness, liberates labor, and improves the production efficiency of the jasmine tea industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587530A
    Figure CN118587530A
Patent Text Reader

Abstract

A fresh flower openness intelligent detection method in jasmine tea scenting is applied to jasmine flower openness detection and is used for solving the problems of low manual detection efficiency and low detection precision. The detection method comprises the following steps: S1, collecting data and making a data set; s2, constructing an enhanced data set and dividing the enhanced data set into a training set and a verification set; s3, constructing an improved jasmine flower different opening degree detection model based on the yo-v8; s4, training the improved jasmine flower different opening degree detection model and verifying the improved jasmine flower different opening degree detection model; and S5, identifying the jasmine flowers to be detected. The problems that manual detection wastes time and labor and is low in efficiency are solved, the labor force is liberated, the cost input is reduced, and the practicability is high. A BRA attention mechanism is introduced into a basic network model Backbone, and the model detection precision is improved. And multiple detection heads are integrated into the model, so that the segmentation precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of detection technology, in particular to an intelligent detection method for the opening degree of fresh flowers in the preparation of jasmine tea. Background Art

[0002] Jasmine tea is a unique reprocessed tea in China. It is loved by consumers for its unique aroma and quality and its health-promoting effects on the human body. At present, there are problems such as high labor intensity, poor hygiene, and poor processing conditions in the scenting process of jasmine tea, which have become key factors restricting the development of the jasmine tea industry. Manual inspection is time-consuming, labor-intensive, and inefficient. With the development of the computer industry, traditional agriculture is moving towards intelligence, which provides a direction for the upgrading of the jasmine tea industry, and the recognition of the degree of jasmine flower opening can provide necessary technical support and intelligent solutions for the jasmine flower cultivation process. The use of intelligent equipment in the identification process helps to improve the time, effect, and accuracy in the manual identification process, but this identification method has high equipment requirements and usually requires the assistance of high-resolution cameras, which increases costs and leads to a long benefit cycle. With the increasing development of information networks, the problems people face are no longer just small sample data analysis, but massive big data analysis. As a fusion development field in computer science, statistics, and data science and technology, deep learning has always dominated the field of biological flower feature recognition. Deep learning is introduced into the recognition of the degree of openness of jasmine flowers. Deep learning is used to extract the characteristics of jasmine flowers with different degrees of openness, so as to achieve stronger and more accurate data expression capabilities, thereby achieving the purpose of identifying jasmine flowers with different degrees of openness. Summary of the invention

[0003] The purpose of the present invention is to provide a method for intelligently detecting the degree of fresh flower opening in the process of making jasmine tea, which is applied to the detection of the degree of fresh flower opening and is used to solve the problems of low efficiency and low detection accuracy of manual detection.

[0004] The technical solution adopted by the present invention to solve the technical problem is: an intelligent detection method for the fresh flower opening degree in the jasmine tea scenting process, comprising the following steps: S1. Collect data and create datasets The image data of jasmine flowers with different degrees of opening are collected and preprocessed, and the jasmine flowers in the image data are labeled into two categories: open and unopened using annotation software to obtain a classified jasmine flower data set; S2. Build an enhanced dataset and divide it into training set and validation set Perform data enhancement on the classified jasmine data set, construct an enhanced data set, and divide the enhanced data set into a training set and a validation set; S3. Construct an improved jasmine flower opening degree detection model based on yolo-v8 Select yolo-v8 as the basic network model, which includes four parts: Input, Backbone, Neck and Head. Then integrate the double-layer routing attention (BRA) into the yolo-v8 model, integrate the generalized feature pyramid network (GFPN) into the yolo-v8 model, and add a detection head to the yolo-v8 model; establish an improved jasmine flower different opening degree detection model based on yolo-v8; S4. Train and verify the improved jasmine flower opening degree detection model The training set obtained in step S2 is used to train the improved jasmine flower different opening degree detection model based on yolo-v8 constructed in step S3, and the verification set is used for verification, so as to obtain a verified improved jasmine flower different opening degree detection model based on yolo-v8; S5. Identify the jasmine flowers to be detected The improved jasmine flower different opening degree detection model based on yolo-v8 finally obtained in step S4 is used to identify the opening degree of the jasmine flower to be detected, and an identification result is obtained.

[0005] Furthermore, multiple groups of images with different degrees of jasmine flower opening were extracted and processed using multiple sets of different resolutions to obtain multiple sets of image data at different resolutions, so as to set the optimal detection resolution in subsequent tests; the SAM model was connected to the annotation software for auxiliary annotation.

[0006] Furthermore, in step S4, the jasmine flower to be detected is compared with the trained improved jasmine flower different opening degree detection model based on yolo-v8 to identify whether the jasmine flower is open or not.

[0007] Furthermore, in step S2, the data enhancement method adopts the CutMix data enhancement method, the Mosaic data enhancement method and the random flipping data enhancement method.

[0008] Furthermore, each time CutMix data enhancement is performed, one image is selected from the jasmine image dataset, and image superposition and splicing are performed using the CutMix data enhancement method; each time Mosaic data enhancement is performed, four images are selected from the jasmine image dataset, and image splicing is performed using the Mosaic data enhancement method; the image data after CutMix data enhancement and the image data after Mosaic data enhancement are merged with the jasmine image data that are not used for CutMix data enhancement and Mosaic data enhancement, and then the random flipping data enhancement method is used for data enhancement to obtain an enhanced dataset.

[0009] Furthermore, in step S2, the ratio of the training set to the validation set is 8:2.

[0010] Furthermore, in step S3, the generalized feature pyramid network (GFPN) is obtained by fusing new paths to the FPN network structure and then performing skip-layer and cross-scale connections.

[0011] Furthermore, in step S3, a general visual converter BiFormer is constructed based on the BRA module. Overlapping block embedding is used in the first stage, and block merging modules are used in the second to fourth stages to reduce the input spatial resolution while increasing the number of channels. Then, continuous BiFormer blocks are used for feature transformation.

[0012] Furthermore, a collection device is used to collect image data of jasmine flowers with different degrees of opening, and the collection device includes a dark box, and the dark box has an industrial camera and a near-infrared camera.

[0013] Furthermore, the dark box includes a frame and a shading plate, the frame is a rectangular parallelepiped frame structure, and the shading plate is arranged on five sides of the frame.

[0014] The beneficial effects of the present invention are as follows: the present invention solves the problem of time-consuming, labor-intensive and inefficient manual detection, liberates labor, reduces cost investment, and is highly practical. The BRA attention mechanism is introduced into the basic network model Backbone to improve the model detection accuracy. A lightweight, deep and large GFPN module is introduced into Neck to replace the original FPN module, which improves the multi-scale features of different resolutions extracted by the backbone network of FPN, and only focuses on the problem of feature fusion lacking intra-block connection. The multi-head detection head is integrated into the model to improve the segmentation accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a front view of the detection device of the present invention; Figure 2 It is a left side view of the detection device of the present invention; Figure 3 It is a flow chart of the detection method of the present invention; Figure 4 This is a graph showing the detection and classification results of the present invention; Figure 5 This is the experimental result diagram after adding the attention mechanism to the basic network; Figure 6 This is the detection classification performance diagram of the improved model; In the figure: 1 frame, 2 industrial camera, 3 near-infrared camera, 4 sunshade. DETAILED DESCRIPTION

[0016] like Figure 1As shown, the detection device of the present invention includes a frame 1, an industrial camera 2, a near-infrared camera 3 and a shading plate 4. The frame 1 is a skeleton structure made of aluminum alloy, and the shading plates 4 are arranged on the five sides of the frame 1 to block natural light. The frame 1 and the shading plate 4 constitute a dark box, the industrial camera 2 and the near-infrared camera 3 are arranged inside the frame 1, the industrial camera 2 is used to collect jasmine image data, and the near-infrared camera 3 is used to collect jasmine moisture data.

[0017] Using the detection device of the present invention, an intelligent detection method for the fresh flower opening degree in the jasmine tea scenting process of the present invention comprises the following steps: S1. Collect data and create datasets Use industrial camera 2 to collect jasmine image data of different degrees of openness, perform preprocessing, and use annotation software to annotate the jasmine in the image data into two categories: open and unopened, to obtain a classified jasmine data set. Use multiple groups of different resolutions to extract and process images of jasmine flowers with different degrees of openness, and obtain multiple groups of image data at different resolutions, so as to set the best detection resolution in later tests; access the SAM model in the annotation software for auxiliary annotation. For example: S1.1, obtain 1500 jasmine flower image data of different degrees of opening through industrial camera 2; S1.2, use ISAT-SAM software to annotate the acquired image data with special-shaped frames to obtain a label file.

[0018] S2. Build an enhanced dataset and divide it into training set and validation set The classified jasmine data set is enhanced to construct an enhanced data set, and the enhanced data set is divided into a training set and a validation set.

[0019] The data enhancement methods include CutMix data enhancement method, Mosaic data enhancement method and random flip data enhancement method. Each time CutMix data enhancement is performed, one image is selected from the jasmine image dataset and the image is superimposed and spliced ​​using the CutMix data enhancement method; each time Mosaic data enhancement is performed, four images are selected from the jasmine image dataset and the image is spliced ​​using the Mosaic data enhancement method; the image data after CutMix data enhancement and the image data after Mosaic data enhancement are merged with the jasmine image data that are not used for CutMix data enhancement and Mosaic data enhancement, and then the random flip data enhancement method is used for data enhancement to obtain an enhanced dataset. The ratio of the training set to the validation set is 8:2.

[0020] S3. Construct an improved jasmine flower opening degree detection model based on yolo-v8 Select yolo-v8 as the basic network model, which includes Input, Backbone, Neck and Head. Then integrate the double-layer routing attention (BRA) into the yolo-v8 model, integrate the generalized feature pyramid network (GFPN) into the yolo-v8 model, add a detection head to the yolo-v8 model (the original yolo-v8 model only has three detection heads, whose height and width are 20×20, 40×40 and 80×80 respectively, which cannot meet the detection requirements of jasmine flowers, so a 160×160 detection head is introduced at the head position to improve the detection ability of objects of different scales), and establish an improved jasmine flower different opening degree detection model based on yolo-v8.

[0021] The generalized feature pyramid network (GFPN) is a new path fusion of the FPN network structure, followed by skip-layer and cross-scale connections. The double-layer routing attention (BRA) is integrated into the yolo-v8 model, and the general visual converter BiFormer is built based on the BRA module. In the first stage, overlapping block embedding is used, and the block merging module is used in the second to fourth stages to reduce the input spatial resolution and increase the number of channels. Then, continuous BiFormer blocks are used for feature transformation.

[0022] The present invention adopts a comparative experimental method and finds that BRA is the attention mechanism with the best experimental effect. The specific experimental method is: (1) Add SEAM, BoT3, MHSA, and BRA attention mechanisms to the Backbone of the basic network model yolo-v8, compare the experimental results, and select the BRA attention mechanism with the best experimental effect; (2) Introducing a lightweight, deep and large GFPN module in Neck to replace the original FPN module, improving the multi-scale features of different resolutions extracted by the backbone network, and only focusing on the problem of feature fusion and lack of intra-block connection; (3) Integrate multiple detection heads into the model to improve segmentation accuracy.

[0023] S4. Train and verify the improved jasmine flower opening degree detection model The training set obtained in step S2 is used to train the improved jasmine flower different opening degree detection model based on yolo-v8 constructed in step S3, and the verification set is used for verification, so as to obtain the verified improved jasmine flower different opening degree detection model based on yolo-v8. The training method is: using CUDA software acceleration, Adam optimizer to optimize the model, and using cosine annealing algorithm to dynamically adjust the model training learning rate; training 300 epochs to obtain the improved jasmine flower classification model. The jasmine flower to be detected is compared with the trained improved jasmine flower different opening degree detection model based on yolo-v8 to identify whether the jasmine flower is open or not.

[0024] S5. Identify the jasmine flowers to be detected The improved jasmine flower different opening degree detection model based on yolo-v8 finally obtained in step S4 is used to identify the opening degree of the jasmine flower to be detected, and the identification result is obtained. Specifically: S5.1 loads the trained weights and parameters of the improved jasmine flower opening degree detection model based on yolo-v8; S5.2 sends the collected image data to the improved jasmine flower opening degree detection model based on yolo-v8 for testing; S5.3 obtains the segmentation detection result.

[0025] The intelligent detection method for the degree of fresh flower opening in the jasmine tea making process of the present invention solves the problem of time-consuming, labor-intensive and inefficient manual detection, liberates labor, reduces cost investment, and has strong practicality. The BRA attention mechanism is introduced into the basic network model Backbone to improve the model detection accuracy. A lightweight, deep and large GFPN module is introduced into Neck to replace the original FPN module, which improves the multi-scale features of different resolutions extracted by FPN for the backbone network, and only focuses on the problem of feature fusion lacking intra-block connection. The multi-head detection head is integrated into the model to improve the segmentation accuracy.

Claims

1. An intelligent detection method for fresh flower opening degree in jasmine tea scenting, characterized in that: The following steps are involved: S1. Collect data and create datasets The image data of jasmine flowers with different degrees of opening are collected and preprocessed, and the jasmine flowers in the image data are labeled into two categories: open and unopened using annotation software to obtain a classified jasmine flower data set; S2. Build an enhanced dataset and divide it into training set and validation set Perform data enhancement on the classified jasmine data set, construct an enhanced data set, and divide the enhanced data set into a training set and a validation set; S3. Construct an improved jasmine flower opening degree detection model based on yolo-v8 Select yolo-v8 as the basic network model, then integrate the double-layer routing attention (BRA) into the yolo-v8 model, integrate the generalized feature pyramid network (GFPN) into the yolo-v8 model, add a detection head to the yolo-v8 model, and establish an improved jasmine flower different opening degree detection model based on yolo-v8; S4. Train and verify the improved jasmine flower opening degree detection model The improved jasmine flower different opening degree detection model based on yolo-v8 constructed in step S3 is trained using the training set obtained in step S2, and the improved jasmine flower different opening degree detection model based on yolo-v8 is verified using the verification set to obtain a verified improved jasmine flower different opening degree detection model based on yolo-v8; S5. Identify the jasmine flowers to be detected The improved jasmine flower different opening degree detection model based on yolo-v8 finally obtained in step S4 is used to identify the opening degree of the jasmine flower to be detected, and an identification result is obtained.

2. The method for intelligently detecting the degree of fresh flower opening in the jasmine tea scenting process according to claim 1, characterized in that: In step S1, multiple groups of different resolutions are used to perform image extraction processing on images of different jasmine flower opening degrees, and multiple groups of image data at different resolutions are obtained, so as to set the optimal detection resolution in the subsequent test; Access the SAM model in the annotation software for auxiliary annotation.

3. The method for intelligently detecting the degree of fresh flower opening in the jasmine tea scenting process according to claim 1, characterized in that: In step S4, the jasmine flower to be detected is compared with the trained improved jasmine flower different opening degree detection model based on yolo-v8 to identify whether the jasmine flower is open or not.

4. The method for intelligently detecting the degree of fresh flower opening in the jasmine tea scenting process according to claim 1, characterized in that: In step S2, the data enhancement method adopts the CutMix data enhancement method, the Mosaic data enhancement method and the random flipping data enhancement method.

5. The method for intelligently detecting the degree of fresh flower opening in the jasmine tea scenting process according to claim 4, characterized in that: Each time CutMix data enhancement is performed, one image is selected from the jasmine image dataset, and the image superposition and splicing are performed using the CutMix data enhancement method; each time Mosaic data enhancement is performed, four images are selected from the jasmine image dataset, and the image splicing is performed using the Mosaic data enhancement method; the image data after CutMix data enhancement and the image data after Mosaic data enhancement are merged with the jasmine image data that are not used for CutMix data enhancement and Mosaic data enhancement, and then the random flipping data enhancement method is used for data enhancement to obtain an enhanced dataset.

6. The method for intelligently detecting the degree of fresh flower opening in the process of making jasmine tea according to claim 5, characterized in that: In step S2, the ratio of the training set to the validation set is 8:

2.

7. The method for intelligently detecting the degree of fresh flower opening in the process of making jasmine tea according to claim 1, characterized in that: In step S3, the generalized feature pyramid network (GFPN) is obtained by fusing new paths to the FPN network structure and then performing skip-layer and cross-scale connections.

8. The method for intelligently detecting the degree of fresh flower opening in the process of making jasmine tea according to claim 7, characterized in that: In step S3, a general visual converter BiFormer is constructed based on the BRA module. Overlapping block embedding is used in the first stage, and block merging modules are used in the second to fourth stages to reduce the input spatial resolution while increasing the number of channels. Then, continuous BiFormer blocks are used for feature transformation.

9. The method for intelligently detecting the degree of fresh flower opening in the process of making jasmine tea according to claim 1, characterized in that: A collection device is used to collect image data of jasmine flowers with different degrees of opening. The collection device comprises a dark box, and an industrial camera and a near-infrared camera are arranged in the dark box.

10. The method for intelligently detecting the degree of fresh flower opening in the process of making jasmine tea according to claim 9, characterized in that: The dark box comprises a frame and a shading plate, wherein the frame is a rectangular parallelepiped frame structure, and the shading plate is arranged on five sides of the frame.

Citation Information

Cited By

  • Tight sandstone reservoir pore type identification and surface porosity calculation method, system and equipment

    CN119295893A

  • A method, system and device for identifying pore types and calculating surface porosity in tight sandstone reservoirs

    CN119295893B

  • Intelligent rose picking and detecting method

    CN120877119A