Passion fruit data set optimization and detection method based on YOLOv8

Through the optimization and detection method of passion fruit data set based on YOLOv8, through data amplification, cleaning and balancing, combined with the Augment module to optimize the data set, the problems of small data set size and inaccurate annotation in passion fruit detection are solved, and the accuracy of the model is improved. Generalization ability and recognition accuracy.

CN118692076APending Publication Date: 2024-09-24GUILIN UNIV OF ELECTRONIC TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410869402.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing passion fruit image data set is small in size, blurry, noisy, and inaccurately annotated, resulting in a decrease in accuracy and poor generalization ability of the YOLOv8 model in passion fruit detection.

Method used

The passion fruit data set optimization and detection method based on YOLOv8 is adopted. The data set is optimized through data amplification, cleaning and balancing, combined with the Augment module, and the YOLOv8 model is used for training and detection.

Benefits of technology

It improves the quality of the passion fruit image data set and the generalization ability of the model, reduces missed detections and false detections, and improves the recognition accuracy and performance of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692076A
    Figure CN118692076A
Patent Text Reader

Abstract

The invention discloses a passion fruit data set optimization and detection method based on YOLOv8, and particularly relates to the technical field of agricultural fruit and vegetable detection. The objective of the invention is to optimize a passion fruit detection mode and improve the accuracy and robustness of passion fruit image recognition. The method is realized by the following steps of: 1, collecting and sorting a passion fruit image data set, preprocessing an image, and carrying out size adjustment and normalization; 2, establishing a passion fruit image data set, and labeling the collected passion fruit images; step 3, using a YOLOv8 deep learning model to train on the labeled passion fruit image data set, and training to obtain a passion fruit detection model; 4, adding an Augment module, performing data enhancement on the training data, and performing random cutting, overturning and color jitter on the image; and step 5, identifying a passion fruit image to be detected by using the improved passion fruit detection model, and outputting an identification result. The invention is suitable for the intelligent agricultural fruit and vegetable system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of agricultural fruit and vegetable detection, and in particular to a passion fruit data set optimization and detection method based on YOLOv8. Background Art

[0002] There are many problems and challenges in using the YOLOv8 model in deep learning technology for passion fruit detection, and there are still some key problems to be solved. For example, the existing passion fruit image dataset is small in scale and cannot fully reflect the various forms and states of passion fruit, resulting in poor generalization ability of the model. The existing passion fruit image dataset has problems such as blurred images, large noise, and inaccurate annotations, which reduces the training accuracy of the model. In order to optimize the detection of the passion fruit dataset by the model, the passion fruit dataset is optimized and detected using the YOLOv8 model. YOLOv8 is an object detection model with excellent performance and has been widely used. The YOLOv8 model has the characteristics of fast speed, high accuracy, and strong robustness, and is very suitable for passion fruit image recognition tasks. The present invention proposes a passion fruit dataset optimization and detection method based on YOLOv8, which provides theoretical guidance and solutions for the optimization and detection of the deep learning YOLOv8 model applied to the passion fruit dataset. The purpose of the present invention is to solve the problems of decreased accuracy and unclear annotations in the passion fruit detection of the passion fruit dataset in a natural environment. Summary of the invention

[0003] In view of the shortcomings of the prior art, the present invention proposes a passion fruit dataset optimization and detection method based on YOLOv8, which improves the accuracy of YOLOv8.

[0004] The present invention is implemented by the following technical solutions:

[0005] The passion fruit dataset optimization and detection method based on YOLOv8 is implemented using the following steps:

[0006] Step 1, collecting and arranging passion fruit images, collecting images of passion fruit in a passion fruit orchard, uploading and storing them to a hard disk as passion fruit image data collection, preprocessing the images, and performing size adjustment and normalization;

[0007] Step 2: Establish a passion fruit image dataset, label the collected passion fruit images, and store them in the YOLOv8 image dataset format;

[0008] Step 3: Use the v8n model in YOLOv8 to train the passion fruit dataset and collect data using the trained model;

[0009] Step 4: Configure the trained model data into the yaml file, optimize the passion fruit dataset by calling the Augment module in the library, and train it again;

[0010] Step 5: Use the passion fruit image test set and use the trained model to detect the passion fruit images to obtain the annotation results of the passion fruit in the images.

[0011] Compared with the prior art, the present invention has the following advantages:

[0012] (1) The present invention improves the quality of the passion fruit image dataset through measures such as data amplification, data cleaning and data balancing, providing a high-quality data foundation for model training.

[0013] (2) The present invention increases the diversity of the data set through data augmentation technology, improves the generalization ability of the model, and reduces missed detections and false detections.

[0014] (3) The present invention improves the quality of the data set, improves the model's ability to identify positive and negative samples, and improves the model's recognition accuracy through data cleaning and data balancing techniques.

[0015] (4) The present invention adopts the YOLOv8 model and uses the Augment technology to optimize the data set. At the same time, the trained passion fruit detection model is evaluated to optimize the performance of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 It is a schematic diagram of the process of steps one to five in the present invention.

[0018] Figure 2 It is a passion fruit detection diagram of the present invention. DETAILED DESCRIPTION

[0019] The present invention is described in detail below in conjunction with specific embodiments.

[0020] The passion fruit dataset optimization and detection method based on YOLOv8 is implemented using the following steps:

[0021] Step 1, collecting and arranging passion fruit images, collecting images of passion fruit in a passion fruit orchard, uploading and storing them to a hard disk as passion fruit image data collection, preprocessing the images, and performing size adjustment and normalization;

[0022] Step 2: Establish a passion fruit image dataset, label the collected passion fruit images, and store them in the YOLOv8 image dataset format;

[0023] Step 3: Use the v8n model in YOLOv8 to train the passion fruit dataset and collect data using the trained model;

[0024] Step 4: Configure the trained model data into the yaml file, optimize the passion fruit dataset by calling the Augment module in the library, and train it again;

[0025] Step 5: Use the passion fruit image test set and use the trained model to detect the passion fruit images to obtain the annotation results of the passion fruit in the images.

[0026] In the step 1, the specific steps include:

[0027] (1) Go to the passion fruit orchard to capture and collect images;

[0028] (2) When collecting images of passion fruit, images are acquired from different angles and situations;

[0029] (3) Upload the collected passion fruit data set and perform image preprocessing, size adjustment and normalization.

[0030] In the step 2, the specific steps include:

[0031] (1) Label the collected images with passion fruit labels using Labelme;

[0032] (2) Organize passion fruit labels and pictures into the format of the YOLOv8 model calling dataset;

[0033] (3) Divide the passion fruit adapted YOLOv8 dataset into training set and test set.

[0034] In the step three, the specific steps include:

[0035] (1) Download the yolov8n model from the Ultralytics official website;

[0036] (2) Use the yolov8n model to call the passion fruit dataset for training;

[0037] (3) Collect parameter data of the trained model.

[0038] In the step 4, the specific steps include:

[0039] (1) Write the trained model parameters into the yaml file;

[0040] (2) Call the Augment module to optimize the image dataset;

[0041] (3) Call the yaml file as the training file and train the model on the optimized passion fruit image dataset.

[0042] In the step 5, the specific steps include:

[0043] (1) Optimize and adjust the passion fruit test set;

[0044] (2) Use the trained model to label passion fruit images.

Claims

1. A passion fruit data set optimization and detection method based on YOLOv8, characterized in that: Includes steps: Step 1, collecting and arranging passion fruit images, collecting images of passion fruit in a passion fruit orchard, uploading and storing them to a hard disk as passion fruit image data collection, preprocessing the images, and performing size adjustment and normalization; Step 2: Establish a passion fruit image dataset, label the collected passion fruit images, and store them in the YOLOv8 image dataset format; Step 3: Use the v8n model in YOLOv8 to train the passion fruit dataset and collect data using the trained model; Step 4: Configure the trained model data into the yaml file, optimize the passion fruit dataset by calling the Augment module in the library, and train it again; Step 5: Use the passion fruit image test set and use the trained model to detect the passion fruit images to obtain the annotation results of the passion fruit in the images.

2. The passion fruit data set optimization and detection method based on YOLOv8 according to claim 1, characterized in that: In the step 1, the specific steps include: (1) Go to the passion fruit orchard to capture and collect images; (2) When collecting images of passion fruit, images are acquired from different angles and situations; (3) Upload the collected passion fruit data set and perform image preprocessing, size adjustment and normalization.

3. The passion fruit data set optimization and detection method based on YOLOv8 according to claim 1, characterized in that: In the step 2, the specific steps include: (1) Label the collected images with passion fruit labels using Labelme; (2) Organize passion fruit labels and pictures into the format of the YOLOv8 model calling dataset; (3) Divide the passion fruit adapted YOLOv8 dataset into training set and test set.

4. The passion fruit data set optimization and detection method based on YOLOv8 according to claim 1, characterized in that: In the step three, the specific steps include: (1) Download the yolov8n model from the Ultralytics official website; (2) Use the yolov8n model to call the passion fruit dataset for training; (3) Collect parameter data of the trained model.

5. The passion fruit data set optimization and detection method based on YOLOv8 according to claim 1, characterized in that: In the step 4, the specific steps include: (1) Write the trained model parameters into the yaml file; (2) Call the Augment module to optimize the image dataset; (3) Call the yaml file as the training file and train the model on the optimized passion fruit image dataset.

6. The passion fruit data set optimization and detection method based on YOLOv8 according to claim 1, characterized in that: In the step 5, the specific steps include: (1) Optimize and adjust the passion fruit test set; (2) Use the trained model to label passion fruit images.

Citation Information

Patent Citations

  • Visual detection counting method for counting fruits and vegetables between ridges

    CN116721059A

  • Pomegranate fruit detection method before fruit thinning based on improved YOLOv8s

    CN116958962A