A research team has developed a computer vision model that spots surface defects on bitter gourds ( Momordica charantia L.) more accurately and processes images 35.8% faster than the model it was based on. In tests using images from farms, indoor settings and a wholesale market, the system more reliably distinguished surface damage from signs of pests and diseases, although it still missed some subtle lesions. The approach could help packing facilities inspect individual fruits as they move along a sorting line and apply more consistent grades after harvest.
Deep-learning tools already help researchers identify defects in crops such as apples, potatoes and tomatoes. Object detectors can locate and classify several fruits or blemishes in a single image, an advantage when produce is inspected in batches. Bitter gourd poses a particular challenge because its naturally bumpy skin can resemble scratches and early lesions, especially as lighting changes. Its long, curved shape also makes it difficult for software to draw a tight box around the fruit. These problems limit the reliability of automated inspection and leave many operations dependent on manual sorting, where sustained inspection can lead to visual fatigue.
A study ( DOI: 10.48130/els-0026-0011 ) published in Engineering in Life Sciences on 29 September 2026 by Fenglin Zhong's team, Fujian Agriculture and Forestry University, reports that their redesigned detector improved both detection performance and image-processing speed compared with the original RTDETR-R18 model.
The researchers collected 1,400 color images in field, controlled indoor and wholesale market settings, then manually marked 4,304 instances with bounding boxes. They divided the original images into training, validation and test sets, keeping the distribution of categories and capture settings similar across the three groups. They varied brightness, flipped images and shifted their position only in the training set, so final performance could be measured on unaltered images the model had never seen during training. Starting with RTDETR-R18, the team made three changes. First, it grouped and processed visual features in stages to reduce redundant calculations and help the model pick out defects amid the natural bumps and ridges. Second, it changed how the model enlarges its internal image maps so that fine details along defect boundaries are better preserved. Third, it revised how the model is penalized for drawing poorly fitted boxes, paying particular attention to the narrow dimension of elongated fruit. The researchers tested the changes individually and in combination under the same training conditions. The first change produced the largest speed gain, while the revised box-fitting method made the largest contribution to finding more targets and locating them accurately. With all three changes in place, mean average precision at a 50% overlap threshold, a standard measure of how well predictions match labeled targets, rose from 87.73% to 90.35%. The share of labeled targets detected rose from 84.91% to 86.80%. On an NVIDIA GeForce RTX 4090 graphics processor, the model processed about 341 images per second, up from about 251 for the baseline. The researchers also found fewer mix-ups between surface damage and signs of pests or disease. Some small or faint lesions, however, were still mistaken for background.
The study shows that accounting for bitter gourd’s texture and shape can improve both the speed and precision of image-based inspection. The reported processing speed comes from a test on a high-performance graphics processor. Before the model can be evaluated as part of a commercial sorting system, the researchers plan to test it on compact hardware and under production-line conditions. They also aim to expand the image collection to include more varieties and growing regions and improve detection of early pest and disease damage.
###
References
DOI
OrigInal Source URL
https://doi.org/10.48130/els-0026-0011
Funding information
This research was funded by Fujian Modern Agricultural Vegetable Industry System Construction Project (Grant No. 2019-897).
About Engineering in Life Sciences
Engineering in Life Sciences (e-ISSN 1618-2863; p-ISSN 1618-0240) is an international source on bioengineering principles and innovations in life sciences and biotechnology, spanning biochemical engineering, process engineering, industrial chemistry. As a fully open access journal, we aim to promote global relationships among biologists, biotechnologists and bioengineers.
Engineering in Life Sciences
Not applicable
CDS-RTDETR: a real-time detection model for bitter gourd surface defects
29-Sep-2026
The authors declare that they have no competing interests.