An Efficient Lightweight Object Detection Algorithm for Defect Identification in <i>Paeoniae Radix Alba</i> With Rapid Area and Diameter Estimation Using OpenCV
As an important traditional Chinese medicinal herb, <i>Paeoniae Radix Alba</i> (white peony root, WP) not only has significant medicinal value in the field of Chinese medicine but is also widely used in food products and health supplements due to its food and medicine dual-use properties. The quality of <i>Paeoniae Radix Alba</i> is crucial for its efficacy, safety, and effectiveness in food applications, making efficient inspection methods essential. The algorithm uses a self-developed detection head (LSD-Head) combined with a Feature Fusion Attention (FCA) mechanism for effective defect detection. Additionally, OpenCV technology is used to accurately measure the physical dimensions of the slices. Compared to the YOLOv8 model (76.4% precision, 63.7% recall, 70.1% [email protected], 8.2 GFLOPs), the proposed model reduces parameter size by 13%, reaching only 65.8% of YOLOv8's size, while improving accuracy by 2.6%. For physical dimensions, the average error between the detected and actual sizes is controlled within 5%. Experimental results show that the proposed algorithm performs well in defect detection and accurately measures the area and maximum and minimum diameters of <i>Paeoniae Radix Alba</i> decoction pieces.
Authors
- Liangquan Jia (ORCID: https://orcid.org/0000-0001-9627-1988)
- Lu Zhouxiang (ORCID: https://orcid.org/0000-0002-6282-5329)
- Chong Yao (ORCID: https://orcid.org/0000-0003-2827-273X)
- Tao Wang (ORCID: https://orcid.org/0009-0008-2303-4533)
- Xingyun Shi
- Lu Gao (ORCID: https://orcid.org/0000-0003-3860-2042)
- Q. N. Xu (ORCID: https://orcid.org/0000-0002-1377-7033)
- Min Qian (ORCID: https://orcid.org/0000-0002-9705-7294)
- Miao Huan
Institutions
- Huzhou Normal University (CN)
- Huzhou Central Hospital (CN)
- Huzhou Academy of Agricultural Sciences (CN)
Publication Details
- Journal
- Food Science & Nutrition
- Published
- 2025-09-01
- DOI
- https://doi.org/10.1002/fsn3.70947
- Citations
- 2
- Primary Topic
- Image Processing Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 2.27
Funders
- Huzhou University