Measurement of Seed Cotton Color Using RGB Imaging and Color-Unet

Color is a key indicator in evaluating seed cotton quality. Accurate and rapid detection of seed cotton color is essential for its storage, processing, and trade. In this study, an RGB imaging and semantic segmentation-based method was proposed for seed cotton color detection. First, a color detecti...

Full description

Saved in:
Bibliographic Details
Main Authors: Hao Li, Qingxu Li, Wanhuai Zhou, Ruoyu Zhang, Shicheng Hong, Mengyun Zhang, Zhiqiang Zhai
Format: Article
Language:English
Published: MDPI AG 2024-12-01
Series:Agronomy
Subjects:
Online Access:https://www.mdpi.com/2073-4395/15/1/19
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1832589472359776256
author Hao Li
Qingxu Li
Wanhuai Zhou
Ruoyu Zhang
Shicheng Hong
Mengyun Zhang
Zhiqiang Zhai
author_facet Hao Li
Qingxu Li
Wanhuai Zhou
Ruoyu Zhang
Shicheng Hong
Mengyun Zhang
Zhiqiang Zhai
author_sort Hao Li
collection DOAJ
description Color is a key indicator in evaluating seed cotton quality. Accurate and rapid detection of seed cotton color is essential for its storage, processing, and trade. In this study, an RGB imaging and semantic segmentation-based method was proposed for seed cotton color detection. First, a color detection system utilizing machine vision technology was developed to capture seed cotton images. Next, a Color-Unet model, incorporating convolutional block attention and improved inception E modules based on Unet, was applied to effectively remove impurities and shadows from the images, resolving the over-segmentation issue commonly encountered in traditional threshold segmentation. The results demonstrated that the pixel accuracy of segmentation reached 97.20%, the mean intersection over union was 91.81%, and the average segmentation speed was 322.3 ms per image. The Color-Unet model effectively addressed the over-segmentation problem. Subsequently, seed cotton color indexes were calculated using Hunter color formulas based on the segmented images. To evaluate the accuracy of color measurement obtained with the proposed method, a regression analysis was performed, comparing the results of those from the HX-410 measurement. The coefficient of determination of yellowness was 0.883, with a root mean square error of 0.150 and a mean relative error of 2.61%. The coefficient of determination of reflectance degree was 0.832, with a root mean square error of 1.56% and a mean relative error of 1.84%. The proposed method allows for the rapid and accurate assessment of seed cotton color from RGB images, providing a valuable technical reference for seed cotton color evaluation.
format Article
id doaj-art-65b577a0709a49d196ccb33831961f30
institution Kabale University
issn 2073-4395
language English
publishDate 2024-12-01
publisher MDPI AG
record_format Article
series Agronomy
spelling doaj-art-65b577a0709a49d196ccb33831961f302025-01-24T13:16:22ZengMDPI AGAgronomy2073-43952024-12-011511910.3390/agronomy15010019Measurement of Seed Cotton Color Using RGB Imaging and Color-UnetHao Li0Qingxu Li1Wanhuai Zhou2Ruoyu Zhang3Shicheng Hong4Mengyun Zhang5Zhiqiang Zhai6College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832000, ChinaCollege of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832000, ChinaDepartment of Computer Science and Technology, School of Management Science and Engineering, Anhui University of Finance and Economics, Bengbu 233030, ChinaCollege of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832000, ChinaCollege of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832000, ChinaCollege of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832000, ChinaCollege of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832000, ChinaColor is a key indicator in evaluating seed cotton quality. Accurate and rapid detection of seed cotton color is essential for its storage, processing, and trade. In this study, an RGB imaging and semantic segmentation-based method was proposed for seed cotton color detection. First, a color detection system utilizing machine vision technology was developed to capture seed cotton images. Next, a Color-Unet model, incorporating convolutional block attention and improved inception E modules based on Unet, was applied to effectively remove impurities and shadows from the images, resolving the over-segmentation issue commonly encountered in traditional threshold segmentation. The results demonstrated that the pixel accuracy of segmentation reached 97.20%, the mean intersection over union was 91.81%, and the average segmentation speed was 322.3 ms per image. The Color-Unet model effectively addressed the over-segmentation problem. Subsequently, seed cotton color indexes were calculated using Hunter color formulas based on the segmented images. To evaluate the accuracy of color measurement obtained with the proposed method, a regression analysis was performed, comparing the results of those from the HX-410 measurement. The coefficient of determination of yellowness was 0.883, with a root mean square error of 0.150 and a mean relative error of 2.61%. The coefficient of determination of reflectance degree was 0.832, with a root mean square error of 1.56% and a mean relative error of 1.84%. The proposed method allows for the rapid and accurate assessment of seed cotton color from RGB images, providing a valuable technical reference for seed cotton color evaluation.https://www.mdpi.com/2073-4395/15/1/19color measurementseed cottonimage analysissemantic segmentation
spellingShingle Hao Li
Qingxu Li
Wanhuai Zhou
Ruoyu Zhang
Shicheng Hong
Mengyun Zhang
Zhiqiang Zhai
Measurement of Seed Cotton Color Using RGB Imaging and Color-Unet
Agronomy
color measurement
seed cotton
image analysis
semantic segmentation
title Measurement of Seed Cotton Color Using RGB Imaging and Color-Unet
title_full Measurement of Seed Cotton Color Using RGB Imaging and Color-Unet
title_fullStr Measurement of Seed Cotton Color Using RGB Imaging and Color-Unet
title_full_unstemmed Measurement of Seed Cotton Color Using RGB Imaging and Color-Unet
title_short Measurement of Seed Cotton Color Using RGB Imaging and Color-Unet
title_sort measurement of seed cotton color using rgb imaging and color unet
topic color measurement
seed cotton
image analysis
semantic segmentation
url https://www.mdpi.com/2073-4395/15/1/19
work_keys_str_mv AT haoli measurementofseedcottoncolorusingrgbimagingandcolorunet
AT qingxuli measurementofseedcottoncolorusingrgbimagingandcolorunet
AT wanhuaizhou measurementofseedcottoncolorusingrgbimagingandcolorunet
AT ruoyuzhang measurementofseedcottoncolorusingrgbimagingandcolorunet
AT shichenghong measurementofseedcottoncolorusingrgbimagingandcolorunet
AT mengyunzhang measurementofseedcottoncolorusingrgbimagingandcolorunet
AT zhiqiangzhai measurementofseedcottoncolorusingrgbimagingandcolorunet