Passion fruit maturity detection method based on YOLOv8

By using the YOLOv8 model and deep learning technology to optimize the collection and calibration of image data sets during the passion fruit growth stage, the problem of insufficient data set quality was solved, the generalization ability and detection accuracy of the model were improved, and more accurate passion fruit images were achieved Maturity testing.

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

Patent Information

Application Number
CN202410869281.8
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 growth stage image data sets are small in size, have blurry images, high noise, and inaccurate annotations, resulting in poor model generalization capabilities and reduced detection accuracy.

Method used

Using the YOLOv8 model, we collected and preprocessed high-quality passion fruit growth stage image data sets to build the TensorFlow framework. We used the PyCharm platform for model training and parameter adjustment, and used Labelmaster for image label calibration to improve the generalization ability of the model. and robustness.

Benefits of technology

It improves the accuracy of passion fruit growth stage detection and the generalization ability of the model, reduces missed detections and false detections, enhances the model's ability to calibrate labels, and improves classification detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692075A
    Figure CN118692075A
Patent Text Reader

Abstract

The invention discloses a passion fruit maturity 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 the detection mode of the passion fruit growth period and improve the accuracy and robustness of the image recognition of the passion fruit growth period. The method is realized by the following steps: step 1, collecting passion fruit growth period stage images, and establishing a passion fruit growth period stage image data set; 2, preprocessing the passion fruit growth period stage images, calibrating the passion fruit growth period stage images, and establishing a training set and a test set; 3, constructing a deep learning network model used for training, and carrying a YOLOv8 framework; 4, setting a model training parameter, an image processing parameter, a classification identification detection parameter and the like; 5, training the image training set of each stage of the passion fruit growth period by using the adjusted target detection and recognition model of each stage of the passion fruit growth period; and 6, testing the trained model by using a test set, and reasonably outputting the model according to a training 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 maturity detection method based on YOLOv8. Background Art

[0002] The use of the YOLOv8 model in deep learning technology for passion fruit growth stage detection faces many problems and challenges, and there are still some key issues to be solved. For example, the existing passion fruit growth stage image data set is small in scale and cannot fully reflect the various forms and states of the passion fruit growth stage, resulting in poor model generalization ability. The existing passion fruit growth stage image data set has problems such as image blur, large noise, and inaccurate annotation, which reduces the training accuracy of the model. In order to optimize the model's detection of the passion fruit growth stage data set, the passion fruit growth stage data set 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 growth stage image recognition tasks. The present invention proposes a passion fruit growth stage detection strategy optimization 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 growth stage data set. The purpose of the present invention is to solve the problems of decreased accuracy and unclear labeling of passion fruit growth stage data sets in natural environments. Summary of the invention

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

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

[0005] Passion fruit maturity detection method based on YOLOv8, which is implemented using the following steps:

[0006] Step 1, collect passion fruit growth stage images, establish a passion fruit growth stage image data set, collect passion fruit growth stage images of the passion fruit garden, upload and store them to a hard disk as passion fruit growth stage image data collection;

[0007] Step 2: Preprocess the passion fruit growth stage images, calibrate the passion fruit growth stage images and establish training sets and test sets, divide the collected passion fruit growth stage images into four categories for calibration, and build and store the training set and test set in the YOLOv8 format;

[0008] Step 3: Build the TensorFlow framework for deep learning models, use the PyCharm platform, and download the YOLOv8n model;

[0009] Step 4: Set the training parameters of the YOLOv8n model, configure the yaml file, and adjust the detection parameters of the data set;

[0010] Step 5: Use the configured passion fruit maturity detection model to train the training set of the passion fruit growth stage to obtain the annotation results of the passion fruit growth stage in the picture;

[0011] Step 6: Use the test set to test the trained model, use the model evaluation indicators to evaluate it, and evaluate the output model.

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

[0013] (1) The present invention improves the quality of the passion fruit growth stage image dataset by taking field photos of a passion fruit growth stage image dataset with a time span of two months, and preprocessing the passion fruit growth stage images, thereby providing a high-quality data basis for model training.

[0014] (2) The present invention uses deep network learning technology to build the TensorFlow environment, uses the PyCharm platform to construct the YOLOv8 model framework, and adjusts parameters through the model, thereby improving the generalization ability of the model and reducing missed detections and false detections.

[0015] (3) The present invention uses the Labelmaster platform through image label calibration technology to divide the passion fruit dataset into four categories of labels, providing the model with detection target categories, improving the robustness of the model, and improving the model's ability to calibrate labels.

[0016] (4) The present invention improves the classification detection accuracy of the passion fruit growth stage through classification recognition detection technology and model testing evaluation indicators, evaluates the passion fruit growth stage detection model obtained by training, and optimizes the performance of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] 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.

[0018] Figure 1 It is a schematic diagram of the process of steps one to six in the present invention. DETAILED DESCRIPTION

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

[0020] Passion fruit maturity detection method based on YOLOv8, which is implemented using the following steps:

[0021] Step one, collect passion fruit growth stage images, establish a passion fruit growth stage image data set, collect passion fruit growth stage images of the passion fruit garden, upload and store them to a hard disk as passion fruit growth stage image data collection;

[0022] Step 2: Preprocess the passion fruit growth stage images, calibrate the passion fruit growth stage images and establish training sets and test sets, divide the collected passion fruit growth stage images into four categories for calibration, and build and store the training set and test set in the YOLOv8 format;

[0023] Step 3: Build the TensorFlow framework for deep learning models, use the PyCharm platform, and download the YOLOv8n model;

[0024] Step 4: Set the training parameters of the YOLOv8n model, configure the yaml file, and adjust the detection parameters of the data set;

[0025] Step 5: Use the configured passion fruit maturity detection model to train the training set of the passion fruit growth stage to obtain the annotation results of the passion fruit growth stage in the picture;

[0026] Step 6: Use the test set to test the trained model, use the model evaluation indicators to evaluate it, and evaluate the output model.

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

[0028] (1) Field visits to local passion fruit orchards;

[0029] (2) Collect images of passion fruit orchards over a two-month period;

[0030] (3) Upload the collected passion fruit image dataset to the hard disk and store it.

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

[0032] (1) The collected pictures of passion fruit at different growth stages were labeled with four types of labels: young fruit, immature fruit, ripe fruit, and ripe fruit using Labelmaster;

[0033] (2) Organize the four types of passion fruit labels and pictures into the format of the YOLOv8 model calling data set;

[0034] (3) Divide the passion fruit images into four categories into training sets and test sets.

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

[0036] (1) Equipped with TensorFlow environment;

[0037] (2) Load the PyCharm platform;

[0038] (3) Download the YOLOv8n model file.

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

[0040] (1) Set the training parameters of the YOLOv8n model;

[0041] (2) Configure the YOLOv8n corresponding training parameter yaml file;

[0042] (3) Adjust the detection parameters of the passion fruit dataset and detect categories.

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

[0044] (1) Use the YOLOv8n model to train the training set of passion fruit growth stage images;

[0045] (2) Obtain the training status of the YOLOv8n model during the training phase and perform evaluation.

[0046] In the step six, the specific steps include:

[0047] (1) Use the test piece to test the trained model;

[0048] (2) Evaluate using model testing metrics;

[0049] (3) If the evaluation is successful, the model is output; if the evaluation fails, return to step 4 to continue adjusting the model and data set.

Claims

1. A passion fruit maturity detection method based on YOLOv8, It is characterized in that Includes steps: Step 1, collect passion fruit growth stage images, establish a passion fruit growth stage image data set, collect passion fruit growth stage images of the passion fruit garden, upload and store them to a hard disk as passion fruit growth stage image data collection; Step 2: Preprocess the passion fruit growth stage images, calibrate the passion fruit growth stage images and establish training sets and test sets, divide the collected passion fruit growth stage images into four categories for calibration, and build and store the training set and test set in the YOLOv8 format; Step 3: Build the TensorFlow framework for deep learning models, use the PyCharm platform, and download the YOLOv8n model; Step 4: Set the training parameters of the YOLOv8n model, configure the yaml file, and adjust the detection parameters of the data set; Step 5: Use the configured passion fruit maturity detection model to train the training set of the passion fruit growth stage to obtain the annotation results of the passion fruit growth stage in the picture; Step 6: Use the test set to test the trained model, use the model evaluation indicators to evaluate it, and evaluate the output model.

2. According to the passion fruit maturity detection method based on YOLOv8 according to claim 1, Features: In the step 1, the specific steps include: (1) Field visits to local passion fruit orchards; (2) Collect images of passion fruit orchards over a two-month period; (3) Upload the collected passion fruit image dataset to the hard disk and store it.

3. According to the passion fruit maturity detection method based on YOLOv8 according to claim 1, Features: In the step 2, the specific steps include: (1) The collected pictures of passion fruit at different growth stages were labeled with four types of labels: young fruit, immature fruit, ripening fruit, and ripe fruit using Labelmaster; (2) Organize the four categories of passion fruit labels and pictures into the format of the YOLOv8 model calling data set; (3) Divide the passion fruit images with four categories into training sets and test sets.

4. According to the passion fruit maturity detection method based on YOLOv8 according to claim 1, Features: In the step three, the specific steps include: (1) Equipped with TensorFlow environment; (2) Load the PyCharm platform; (3) Download the YOLOv8n model file.

5. According to the passion fruit maturity detection method based on YOLOv8 according to claim 1, Features: In the step 4, the specific steps include: (1) Set the training parameters of the YOLOv8n model; (2) Configure the YOLOv8n corresponding training parameter yaml file; (3) Adjust the detection parameters of the passion fruit dataset and detect categories.

6. According to the passion fruit maturity detection method based on YOLOv8 according to claim 1, Features: In the step 5, the specific steps include: (1) Use the YOLOv8n model to train the training set of passion fruit growth stage images; (2) Obtain the training status of the YOLOv8n model during the training phase and perform evaluation.

7. According to the YOLOv8-based passion fruit growth phase detection strategy optimization method of claim 1, Features: In the step six, the specific steps include: (1) Use the test piece to test the trained model; (2) Evaluate using model testing metrics; (3) If the evaluation is successful, the model is output; if the evaluation fails, return to step 4 to continue adjusting the model and data set.

Citation Information

Patent Citations

  • Improved fruit maturity identification method and identification system based on MobileNet v2 network

    CN111652326A

  • Passion fruit maturity detection and positioning method based on visual identification

    CN115311520A