Next Article in Journal
MFedBN: Tackling Data Heterogeneity with Gradient-Based Aggregation and Advanced Distribution Skew Modeling
Next Article in Special Issue
Energy-Efficient and Economy-Sustainable Technology for Online Seed Viability Detection Using Hyper Spectrum
Previous Article in Journal
Rethinking Adaptive Contextual Information and Multi-Scale Feature Fusion for Small-Object Detection in UAV Imagery
Previous Article in Special Issue
Multi-Scale Feature Fusion Based RT-DETR for Tomato Leaf Disease Detection in Complex Backgrounds
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Simultaneous Identification on Tomato Variety and Maturity Based on Local and Global Feature Fusion

1
College of Information and Electronic Engineering, China Agricultural University, Beijing 100083, China
2
College of Science, China Agricultural University, Beijing 100083, China
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(23), 7313; https://doi.org/10.3390/s25237313
Submission received: 11 August 2025 / Revised: 24 November 2025 / Accepted: 27 November 2025 / Published: 1 December 2025

Abstract

Varieties show their unique characteristics in morphology, growth, and fruits. Tomato maturity is related to multiple dimensional characteristics including color, texture, smell, etc. An effective classification method of tomato variety and maturity is crucial for evaluating its growth and yield. However, due to the complex growth environment, some problems such as leaf occlusion and fruit shaded by each other make it difficult to accurately and efficiently identify them. To solve these problems, this study innovatively proposes a simultaneous detection model on tomato variety and maturity based on improved YOLOv8n, with the combination of frequency-adaptive dilated convolution (FADC) feature extraction module and the high-level screening-feature path aggregation network (HSPAN) with the aim of local and global feature fusion by the channel attention module and feature selection fusion mechanism. In addition, we use the Powerful-IoU (PIoU) loss function to replace the original Complete IoU (CIoU) to enhance the accuracy of bounding boxes. We also introduce a dynamic detection head as the final output of the model, which can adaptively adjust the focus of feature extraction according to the color and size of tomato fruits, thereby improving the recognition accuracy. Experimental results show that our model with better global perception capability achieves the highest detection accuracy and lower computation complexity among the comparative models.

1. Introduction

Tomato is an essential vegetable that is widely grown and consumed around the world. Tomato is a common ingredient in daily diet and plays a crucial role in agriculture and economy. As one of their vegetables, tomato has become an important choice for farmers to increase their income due to their easy-to-grow and high yield. Till now, tomato maturity judgement had mainly relied on manual methods. Although manual methods are sometimes effective, there are some problems such as solid subjectivity, prolonged time consumption with fruit waste, and high labor cost [1]. In addition, external environmental factors such as light and temperature can also affect the judgement results. Thus, exploring more efficient and accurate recognition methods is imperative [2].
This article proposes a tomato variety and maturity synchronous detection framework based on an improved YOLOv8n. The main innovations are as follows. (1) Introduce an adaptive convolution module to enhance the ability to extract fruit features at different scales. (2) Design a feature pyramid structure for high-level screening and multi-scale fusion to achieve explicit fusion of local and global features. (3) Using bounding box regression loss (PIoU) can achieve more accurate bounding box regression. (4) Introduce a dynamic detection head that combines scale, spatial, and task aware attention, allowing for explicit modeling of fruit size and spatial position. Through these improvements, the model can maintain high detection accuracy and low computational cost even in scenes with severe occlusion, complex lighting, and mixed varieties.
The rest of this article is organized as follows. Section 2 provides a comprehensive analysis and review of relevant research on tomato variety and maturity identification. Section 3 introduces the proposed method. Section 4 introduces the experimental results and discussion. Section 5 summarizes the research findings and conclusions.

2. Related Work

Since 2017, with the breakthrough of deep learning in image classification and object detection, research on tomato detection has shifted from traditional color thresholding methods to data-driven convolutional neural network (CNN) frameworks. Early work mainly used two-stage detection method (for example, “locating fruits first and then determining maturity”) based on convolutional neural networks (CNN) and its improvement (including VGG and DenseNet, and Faster R-CNN and Mask R-CNN) [3,4,5,6,7,8,9,10]. Sun et al. [6] proposed a tomato organ recognition method based on CNN with feature pyramid, in which detailed underlying features and high-level semantic features were fused by multi-scale feature fusion. Xu et al. [11] proposed a tomato recognition and location model based on Mask R-CNN with the dual-mode data fusion of RGB and depth images. These two-stage methods significantly improve recognition accuracy compared to traditional image processing, but generally have high computational costs and low computation speed and the accuracy needs to be enhanced further. In addition, most of the research in this stage focuses on a single task, lacking the ability to jointly identify variety and maturity [12].
The development of deep learning, one-stage detection algorithms with faster computation speed is gradually becoming mainstream [13]. For example, researchers used YOLOv5 with feature pyramids and attention mechanisms to enhance small object detection capabilities [14,15] or used an anchor-free detector model with an added attention mechanism to the backbone part and introduced circular representation for optimizing the detector to improve the feature expression ability [16]. In this stage, the balance between speed and accuracy is a significant improvement compared to those single-stage detection methods. However, most of the research in this stage mainly only focuses on single tasks and rarely involves multi-task detection. Meanwhile, the computation complexity still needs to be further decreased for deployment in practical application devices.
At present, the research focus is gradually shifting towards “balancing accuracy, robustness, and lightweight deployment” by one-stage algorithms. YOLOv8 and its later version are the representative models. For example, the multi head self-attention mechanism or locally sensitive large kernel attention mechanism was introduced to YOLOv8 to improve tomato maturity grading and counting in complex environments [17,18], and the proposed GFS-YOLO11 can remain high performance in multi-variety tomato recognition [19]. However, most of these methods still remain at the level of local feature enhancement or simple feature concatenation, lacking high-level semantic filtering and global local fusion mechanisms [20,21]. Meanwhile, the insufficient utilization of fruit size and spatial location information limits the generalization performance in complex scenarios. On the other hand, for the deployment in practical edge devices, some studies have attempted to reduce computational overhead through pruning, quantization, and lightweight convolution [22,23].
In summary, the existing methods still face several challenges in tomato detection. Firstly, there is a lack of lightweight models that can simultaneously detection variety and maturity; secondly, the feature fusion mechanisms are mostly shallow concatenation or weighting, which makes it difficult to balance global semantics and local details; thirdly, the bounding box size and spatial position of tomatoes have not been fully utilized, and these are particularly crucial for improving detection accuracy; and fourthly, high-precision methods have excessive computational complexity, while lightweight methods often sacrifice recognition performance and have not yet achieved an ideal balance between accuracy and efficiency.

3. Materials and Methods

3.1. Dataset

The constructed dataset in this study is based on the Laboro Tomato open-access dataset [24], which is an image dataset of tomatoes with different maturity collected in a greenhouse in winter (15 December 2019). Our constructed dataset included two varieties of tomatoes (ordinary tomatoes with big, flat round fruits and cherry tomatoes with small, long round fruits), and each variety has three categories according to their maturity degree, including fully ripe (all red), half-ripe (red white or red green), and immature (completely green) shown in Figure 1.
In order to generate more diversified tomato images and improve the generalization of the model, data augmentation operations were performed on our dataset, including blurring, brightness enhancement, rotation, and horizontal flipping operations, shown in Figure 2. The enhanced dataset was divided into training sets (800 images), validation sets (100 images), and test sets (100 images) according to the ratio of 8:1:1.

3.2. The Proposed Improved YOLOv8n

This study proposes a tomato variety category and maturity detection model based on the YOLOv8n. The basic and improved YOLOv8n are shown in Figure 3. The basic model mainly consists of three parts: backbone, neck, and head. The backbone extracts the features from the input image and outputs the feature maps in different sizes. The neck part is for feature fusion, and the head is for feature detection and result output. In the backbone of the improved YOLOv8n, the proposed Frequency-Adaptive Dilated Convolution (FADC) module was used to replace the original C2f module. In the neck part, the proposed high-level screening-feature path aggregation network (HS-PAN) replaced the original PAN-FPN. In the head part, the dynamic head (DyHead) replaced the original head.
The improvements in Figure 3b mainly include the following aspects: (1) the proposed FADC module can effectively capture features of different scales by dynamically adjusting the dilation rate of the convolution kernel, thereby improving the model’s recognition performance especially in complex scenarios including different varieties and different maturity of tomatoes; (2) in order to fuse features of different sizes and remove redundant information while retaining important feature information, the HS-PAN module was proposed, which uses channel attention and SFF modules to enhance the model’s ability to fuse feature information of different scales; (3) different tomatoes may obscure in shape and size, so accurate bounding boxes can help the model better distinguish different types. The PIoU loss function was adopted, focusing on the positioning accuracy of the bounding box and considering the association between the bounding box and the category so that the model can adaptively optimize the prediction of the box and improve the classification performance; and (4) the dynamic detection head with attention mechanism for feature detection can adaptively adjust the focus of feature extraction based on task perception, spatial perception, and scale perception, enhance the ability to distinguish different varieties of tomatoes and their maturity degree, and significantly improve the recognition accuracy of tomatoes.

3.2.1. Adopting Frequency-Adaptive Dilated Convolution (FADC) Module in Backbone

The frequency-Adaptive Dilated Convolution (FADC) module (shown in Figure 4) consists of three important modules: adaptive dilation rate (AdaDR), adaptive kernel (AdaKern), and frequency selection (FreqSelect) [25]. First, the feature map X was input into the frequency decomposition module to generate multiple frequency channels X f r e q , then to the frequency selection module for selecting frequency. Second, the model calculates the corresponding dilation rate D ^ p for each pixel p in the feature map according to the strategy learned during training and maps it to a new feature map where each pixel corresponds to a dilation rate. In addition, the weight of the adaptive kernel is decomposed into low-frequency and high-frequency parts, and the ratio of these two parts is dynamically adjusted according to the input features. The formula is as follows:
W = λ l · W ¯ + λ h · W ^
here, W represents the dynamically adjusted weight, λ l   and   λ h represent the weights of the low-frequency and high-frequency component, respectively, and W ¯ and W ^ represent the average value of the convolution kernel (the low-frequency component) and the residual part (the high-frequency component), respectively. Finally, the adaptive dilation rate is used for convolution operation, and the formula is as follows:
Y p = i = 1 K × K W i · X f r e q p + p i × D ^ p
here, Y p is the pixel value of position p in the output feature map of the adaptive dilated convolution, W i represents the i th weight in the convolution kernel, and p i represents the offset of each element in the convolution kernel. To find the optimal D ^ p , the optimization function of the adaptive dilation rate was used as follows:
θ = max θ p H P D ^ p p H P + D ^ p
here, θ represents the optimization parameter, H P represents a set of pixels with lower high-frequency components, and H P + represents a set with higher high-frequency components. For low-frequency areas ( H P ), such as the outline and shape of tomatoes and background information, a more significant dilation rate was used to capture more contextual information and increase its receptive field, which helps to determine the location of tomatoes in the scene and their essential appearance characteristics. For high-frequency areas ( H P + ), such as tomatoes with higher maturity, the color usually changes significantly, so a lower dilation rate was used to ensure that high-frequency details are not lost, thereby preserving adequate feature information. In addition, the obtained high-frequency features can help identify small objects or partially occluded small tomatoes and enhance the detection ability of tomatoes. In the YOLOv8n model structure, the C2f module in the backbone was replaced by the FADC module to realize the feature extraction of different frequencies.

3.2.2. Improvements on PANet Structure in Neck

The YOLOv8n neck part adopts the PANet (path aggregation network) structure, which is a neural network model for object detection with the aim to solve the detection problems of multi-scale objects and complex scenes [26]. PANet contains a top-down path aggregation module and a bottom-up path aggregation module. In the top-down path aggregation module, information is gradually transferred from high-level features to low-level features. In each level, high-level features are horizontally connected, and point-by-point, they are added with low-level features to fuse the information of different scales. In the bottom-up path aggregation module, information is gradually transferred from low-level features to high-level features. The low-level features are fused with high-level features after down-sampling. Through this design, PANet can integrate feature information of different scales.
In the detection and classification of tomato variety and maturity, the data features are relatively wealthy, including the information such as size, color, brightness, and texture. Many features of different sizes are input into the network structure, which makes the fusion process more complicated. In addition, features of different sizes may contain repeated or redundant information, which will affect the detection accuracy and performance of the model. Therefore, we add the CA and SSF modules (shown in Figure 5) to the low-level and high-level feature fusion stages in PANet structure to integrate features from different network layers to make full use of multi-scale information [27]. The SFF module enhances the ability to capture details and contextual information by fusing low-level and high-level features. The CA module adaptively adjusts the weights of feature channels so that the model can focus on more critical feature channels while suppressing irrelevant information. The calculation formula of CA and SFF are as follows:
f C A = S i g m o i d P o o l i n g f i n
here, Pooling includes average pooling and maximum pooling. The input feature is f i n R C × H × W , with C being the number of channels, and H and W being the height and width of the feature map, respectively.
The SFF module mainly processes high-level features, filters low-level features, and then fuses the two to enhance the feature expression ability of the model and improve the detection performance. The formula is as follows:
f a t t = B L ( T _ C o n v ( f h i g h ) ) f o u t = f l o w C A f a t t + f a t t
here, f h i g h and f l o w represent high-level and low-level features, T _ C o n v represents transposed convolution, which is used to expand the size of the high-level feature map, and B L represents bilinear interpolation, which is used to align the size of the high-level feature map with the low-level feature map. The processed high-level feature map f a t t is consistent with the low-level feature map. We multiply f a t t with the attention weight of the high-level feature map (generated by Formula (9)), weight the low-level features, and then add them to the high-level features f a t t to obtain the final high-level and low-level fusion information f o u t .
Based on CA and SFF modules, the high-level screening-feature path aggregation network (HSPAN) was proposed, which consists of three main parts (backbone, feature selection, and bottom-up path augmentation), shown in Figure 5c. First, the backbone extracts multi-level features of the input image layer by layer, where shallow high-resolution features (S2, S3) correspond to local details such as skin texture and color gradient, while deep low-resolution features (S5, S6) correspond to global context such as fruit color distribution and maturity semantics. In the feature selection stage, CA first performs adaptive recalibration on local channels to suppress redundancy caused by lighting and background noise. SFF then performs cross scale fusion between the recalibrated local details and the up-sampled global semantics, achieving explicit “local global feature fusion”. Finally, the bottom-up path enhancement returns the fused features through clear horizontal connections, further enhancing the precise positioning information within the global semantic framework, thereby improving the detection accuracy of tomato variety and maturity without increasing computational complexity.

3.2.3. Improvement of IoU Loss Function

YOLOv8n uses CIoU as the intersection over the union loss function. CIoU is an extension of the traditional IoU (Intersection over Union), which implements bounding box regression by considering the overlapping area, center point distance, and aspect ratio simultaneously. However, due to the small overlapping area of cherry tomatoes, the loss calculation needs to be more sensitive in the actual tomato detection task. It may not be able to effectively capture the characteristics of cherry tomatoes, resulting in poor performance of CIoU in the detection task. In addition, the background of the collected tomato dataset is usually complex, which makes CIoU unable to accurately evaluate the boundaries of the object, thereby affecting the classification accuracy of maturity, especially in the case of severe background interference.
Therefore, we use the gradient adjustment function PIoU [28] that combines the object size and the quality of the anchor box. PIoU introduces an adaptive penalty factor P to adjust the loss function using the difference in coordinates between the diagonal vertices of the actual box and the predicted box so that the predicted box can approach the actual box faster, as shown in Figure 6. The coordinates of the upper left and lower right corner of the actual box (i.e., ground truth) are ( x g t 1 , y g t 1 ) and ( x g t 2 , y g t 2 ), and their predicted box are ( x 1 , y 1 ) and ( x 2 , y 2 ), respectively. The loss function is calculated as follows:
P = ( d w 1 w g t + d w 2 w g t + d h 1 h g t + d h 2 h g t ) / 4 f P = 1 e P 2 L P I o U = 1 I o U + f P
in which d w 1 = x g t 1 x 1 , d w 2 = x g t 2 x 2 , d h 1 = y g t 1 y 1 , d h 2 = y g t 2 y 2 , w g t = x g t 2 x g t 1 , h g t = y g t 1 y g t 2 , and f(P) are the gradient adjustment functions based on the quality of the anchor box. Compared with CIoU used by YOLOv8n, PIoU can effectively guide the anchor box to regress more directly toward tomato size in the image. This mechanism improves the ability to focus on medium-quality anchor boxes, allowing the model to better utilize high-quality samples for learning, thereby improving the positioning accuracy, especially in the case of complex backgrounds and overlapping tomato fruits.

3.2.4. Improvements to the Detection Head

The original detection head of YOLOv8n is the core of its object detection and is responsible for generating the final detection results. However, in actual tomato detection, the characteristics of different tomato maturity and sizes vary greatly. For example, the color of tomatoes with lower maturity may be similar to the background color from green leaves, and the sizes of different tomatoes are different. In addition, due to different photo shooting angle, actually similar tomatoes may present differ feature information. The detection head will be more sensitive to information such as the size and spatial position of tomatoes and can also perform multi-category detection.
Therefore, in this study, we use a dynamic head [29] with the structure shown in Figure 7 to generate the final detection results. The dynamic detection head combines the attention mechanism with the object detection head to perform scale-awareness between feature levels and dynamically integrate the importance of different feature layers. It performs spatial-awareness between spatial positions, pays attention to the important space in the feature map, perform task-awareness between output channels, and adjust the activation of feature channels according to different tasks.
The formula for dynamic self-attention is as follows:
W F = π F · F
here, π F is the attention function and F is the input tensor. They decompose the attention mechanism into scale attention (for scale-aware), spatial attention (for spatial-aware) and task attention (for task-aware) as follows:
W F = π C π S π L F · F · F · F
here, π L F is scale attention, π S F is spatial attention, and π C F is task attention. They are expressed in Equations (9)–(11), respectively.
π L F · F = σ f 1 S C S , C F · F
here, S represents the spatial dimension, C represents the channel dimension, f · is a linear function implemented through a 1 × 1 convolution layer, and σ x is the sigmoid function.
π S F · F = 1 L l = 1 L k = 1 K w l , k · F l p k + p k ; c · m k
In Equation (10), L represents the number of feature layers, and K represents the number of those sparsely sampled. The outer summation aggregates responses from all feature layers, while the inner summation accumulates information from K -sampled positions within each layer. F l p k + p k ; c is the feature value at the k th sampling position on the l th feature layer and channel c , where p k is the self-learned spatial offset. The learnable scalar m k measures the importance of the sampled position, and w l , k is the weight at the l th layer and the k th position, and p k is the coordinate of the k th position. The normalization coefficient 1 / L ensures averaging across different feature levels.
π C F · F = m a x α 1 F ; θ α · F c + β 1 F ; θ β , α 2 F ; θ α · F c + β 2 F ; θ β
In Equation (11), F c represents the feature slice of the c th channel, α 1 and α 2 are channel activation weights, and β 1 and β 2 are the corresponding bias terms. α 1 ,   α 2 ,   β 1 , and β 2 are generated by a hyper-function. The parameters θ α and θ β are learnable and optimized during training via backpropagation, allowing the network to dynamically adjust channel responses for different tasks.

3.3. Experimental Environment and Model Hyperparameters

To ensure the authenticity and effectiveness of the experiment, the hyperparameters used in the experimental training process were kept consistent, shown in Table 1. These hyperparameters were determined through preliminary experiments to ensure fair comparison across different architectures. Specifically, the learning rate, weight decay, and momentum were chosen based on common practices in object detection tasks and validated through pilot experiments to ensure they provided reasonable performance for all models tested. In this experiment, the operating system is Windows 11. The CPU is Intel(R) Core (TM) i9-10900K and the GPU is dual NVIDIA RTX 3090. PyTorch 2.22 is used as the framework. The programming language is Python 3.8 and CUDA 12.1 is used for accelerated computing.

3.4. Model Evaluation Indicators

To evaluate the detection ability of the improved YOLOv8n model, we use F1-score, mAP@.50, and mAP@.50:.95 as the evaluation indicators. The F1-score, as a harmonic mean of accuracy and recall, can simultaneously reflect the accuracy and comprehensiveness of the model in identifying positive samples, providing a more robust performance evaluation. In addition, the two commonly used mean average precision (mAP) in object detection, i.e., mAP@.50 and mAP@.50:.95, are also used in this study. mAP@.50 refers to the average precision calculated at a threshold of 0.50, which is mainly used to evaluate the detection performance of the model under relatively relaxed conditions. The mAP@.50:.95, the averaged over the IoU thresholds from 0.50 to 0.95 with an interval of 0.05, provides a more rigorous and comprehensive performance evaluation and is stricter than mAP@.50. In practical applications, mAP@.50:.95 can better reflect the comprehensive ability and robustness of the model.
The formulas of the evaluation indicators of F1-score and mAP are expressed as follows:
F 1 = 2 P R P + R
m A P = 1 N t = 1 N A P t
In Equation (12), P = T P / ( T P + F P ) × 100 % and R = T P / ( T P + F N ) × 100 % . Here, P represents precision, and R represents recall. T P represents true positive, indicating the number of samples correctly predicted as positive by the model. F P represents false positive, indicating the number of samples that the model incorrectly predicts as positive. F N represents false negative, indicating the model incorrectly predicts the number of samples in the negative class. In Equation (13), A P = 0 1 P R d R , here P R is the precision at the summon rate R and N is the number of thresholds.

4. Experiments and Results

4.1. YOLOv8 Models of Different Scales

The YOLOv8 models can be divided into YOLOv8n, YOLOv8s, YOLOv8m, YOLOv8l, and YOLOv8x based on their scales. These five models were trained on the same tomato dataset, and the training results are presented in Table 2. It shows that YOLOv8l and YOLOv8x with larger computation complexity theoretically have stronger feature extraction capabilities, but their actual performance has not reached the best. YOLOv8x has the highest parameters and GFLOPs (68.129 M and 257.4 G), but its mAP@.50 is only 78.1%. The parameters, GFLOPs and mAP@.50 of YOLOv8l, is 43.611 M, 164.8 G, and 77.1%, all of which are smaller than YOLOv8x. Compared with YOLOv8x, YOLOv8n has significantly reduced computational complexity but with the highest detection accuracy. This may be due to the fact that the dataset size is small with only 1000 images and the larger models (such as YOLOv8x and YOLOv8l) are prone to overfitting and causing lower performance. YOLOv8n has the advantages of simple structure, fast training speed, and low resource consumption, making it suitable for rapid prototyping and validation in this experiment. Therefore, YOLOv8n was chosen as the foundation model for subsequent model improvements.

4.2. Selection of Loss Function

To verify the effectiveness of the selected PIoU loss function, we conducted the comparative experiments of PIoU and other five loss functions for evaluation, including the v2 version of PIoU and four commonly used loss functions: CIoU, GIoU, DIoU, and EIoU. The results are shown in Table 3. The original YOLOv8n model uses CIoU as the loss function. Compared with it, the PIoU loss function we adopted improved mAP@.50 and mAP@.50:.95 by 1.1% and 0.3%, respectively, which shows that the PIoU loss function performs the best.

4.3. Effect of FADC Module on Feature Extraction and HSPAN on Feature Fusion

In tomato variety and maturity detection, we mainly face two problems. On the one hand, the different locations of tomatoes of the same variety lead to significant differences in their feature information. On the other hand, in complex backgrounds, the feature of tomatoes needs to be more obvious. These two problems are shown in Figure 8. The two yellows boxes in Figure 8a show two tomato fruits with different locations. Figure 8b shows the example of the tomato fruits in the complex background (one of them was marked by the yellow box).
In the proposed model, the FADC module performs local feature extraction to enable multi-level screening of feature information. To more intuitively show the detection effect of this model on tomato fruits with different maturity levels in complex backgrounds (with leaves, stem, or human hands, etc.), heatmaps generated by HiResCAM were used to highlight the areas that the model focuses on, as shown in Figure 9. The red color in the heatmaps means the high probability area where the model believes in the locations of tomatoes. It can be seen that the object area and feature information obtained by our model is more accurate. For example, our model identified the top big mature fruit and the small mature fruit at the lowest edge in Figure 9a1 more accurately than YOLOv8n. In addition, from Figure 9b2, it shows that YOLOv8n mistakenly identified a human hand as tomatoes on the heatmap, while our model distinguished it more accurately from the background. This shows that the FADC module can obtain feature information more accurately and effectively. At the same time, the HSPAN structure further focuses on crucial information, enhances the response to critical features of different maturity, and selectively fuses this information. This design enables the model to better capture the details of both small and large tomatoes, reduce the interference of background feature, and thus improve detection accuracy.
In addition to showing the local attention distribution of the model through the heatmap generated by HiResCAM, the global perception ability of the model is also studied. In order to visualize the global perception of the model, based on the feature activation visualization method [30], we extract the feature activation maps of different layers of FADC module and HSPAN structure, and generate a comprehensive heatmap through channel aggregation and multi-scale weighted fusion, which intuitively shows how the model perceives the targets in the global scope. Figure 10 shows the global perception visualization comparison of our model and YOLOv8n. It shows that our model has stronger global perception ability. For example, Figure 10c1 shows our model is more accurate in the extraction and fusion of different tomato contour features as well as the features of background leaves, while the YOLOv8n model is poor in overall perception. Figure 10c2 presents the detected tomatoes of different maturity levels with partial overlap (shown in Figure 10a2), from which it shows our model has the better global perception responses according to the different maturity characteristics of tomatoes and detailed morphology of background leaves. The superior global perception ability of our model shows the HSPAN structure in the neck part can well fuse features of different scales, and retain important information while discarding redundant details, thus effectively handling global features with complex scenarios (for example, different maturity levels and partial overlap).

4.4. Analysis of DyHead Detection

To prove that the detection effect of DyHead is better, Figure 11 shows the detection results of the original detection head and DyHead on different tomatoes. The orange solid boxes in Figure 11a are for immature ordinary tomatoes and the three colors of boxes in Figure 11b are for cherry tomatoes (green for immaturity, yellow for fully ripe, and yellow green for half ripe). In Figure 11, dotted red boxes are for marking the mistaken or missed detection by original head but correctly detected by DyHead. For example, in Figure 11a, the shadow of a piece of leaf is detected as an unripe tomato by the original detection head. In contrast, DyHead with the spatial perception attention mechanism can effectively focus on the critical position and reduce the interference of background noise, especially in the case of light and shadow. Therefore, there is no false detection on this part when using DyHead. In addition, our model can also correctly classify tomatoes that were partially occluded. In Figure 11b, there are many tomatoes with different maturity levels and some of the tomatoes marked in red dotted boxes were missed by the original detection head but well detected by the Dyhead. It is due to the Dyhead enables the model to adaptively adjust the feature representation and the introduced task-aware mechanism to assign feature channels to specific tasks makes multiple classification tasks can be processed simultaneously. During training, the four coordinates of each bounding box serve as regression targets for the detection head, so the network simultaneously learns the bounding box size (width and height) and spatial position (center). These geometric features are then fused with color/texture cues inside the HSPAN neck and further processed by the dynamic detection head, which adaptively reweights channel and spatial responses according to local context. In this way, apparent size and location information are explicitly exploited to refine ripeness classification.

4.5. Ablation Experiments

In this study, the improvements include using HSPAN structure for feature selection and fusion as the neck part, replacing the original detection head with a dynamic detection head, and introducing the FADC module and PIoU loss. To verify the impact of these improvements on the model performance, we conducted ablation experiments under the same environment and hyperparameter settings. By systematically removing some components of the network model and evaluating their contribution to the overall performance, it shows the model design is optimized and the interpretability is improved with adding these components. In this section, we use the YOLOv8n model as the baseline and add different improvement modules. The ablation experiment results are shown in Table 4.
Table 4 is the comparison of our model with the baseline YOLOv8n. It shows that, the use of each individual module (FADC, HSPAN, DyHead) can improve the model performance (mAP@.50 = 0.808–0.816) compared with the baseline YOLOv8n (mAP@.50 = 0.804). The combination of two modules performs better detection performance (mAP@.50 = 0.818–0.821) than with only one module (mAP@.50 = 0.752–0.754). The more modules added, the better performance of the model. Specifically, adding FADC module improves the F1-score, mAP@.50, and mAP@.50:.95 by 0.6%, 0.4%, and 0.4%, and the HSPAN structure improves them by 0.7%, 1%, and 1.2%, respectively, which shows that these two modules slightly improve the model performance. The dynamic detection head improves them by 0.5%, 1.2%, and 1.7%, respectively, indicating that the adaptive adjustment for processing different tomato features can effectively utilize the features of different levels and scales. In tomato variety and maturity detection, this flexibility enables the detection to maintain high accuracy in different backgrounds.
Compared with the baseline YOLOv8n, adding the combination of FADC + HSPAN improves the above three indicators by 1.4%, 1.7%, and 1.8%, respectively. Further adding DyHead, i.e., FADC + HSPAN + DyHead, the F1-score and mAP@.50 are increased by 1.7% and 2% (without further improvement on mAP@.50:.95). If further adding PIoU, i.e., our model, the three indicators increased by 2.7%, 3.1%, and 2.1%, which shows that the PIoU loss function better adapts to the detection of different objects and improves the detection effect. Overall, compared with the baseline YOLOv8n, our model shows the best detection performance.
For the computational complexity in Table 4, it shows that the parameters and GFLOPs of YOLOv8n are 3.006 M and 8.1. The introduction of the HSPAN structure significantly reduces the parameters to 2.082 M and GFLOPs to 7.1, while the DyHead obviously increases the parameters to 3.486 M and GFLOPs to 9.6. Combining FADC and HSPAN causes 2.099 M parameters and 7.0 GFLOPs, maintaining a low computational footprint, indicating FADC does not obviously influence computational complexity. Our model with all modules (FADC, HSPAN, DyHead, and PIoU) has 2.841 M parameters and 8.9 GFLOPs, achieving the better balance between performance and computational efficiency.

4.6. Comparison Experiment

The performance of our model was verified through comparison with several lightweight models (YOLOv9t [31], YOLOv10n [32], YOLOv11n [33], and YOLOv12n [34]) and several mainstream models (Faster-RCNN [35], RT-DETR-r18 [36], and the baseline YOLOv8n). All these models were retrained from scratch and evaluated under the same experimental settings on the same platform and software version to ensure reproducibility and fair comparison.
The comparative experimental results are shown in Table 5. It shows that compared with the lightweight models of YOLOv9t, YOLOv10n, YOLOv11n, and YOLOv12n, mAP@.50 of our model increased by 6.1%, 9.6%, 4.8%, and 6.6%, and mAP@.50:.95 by 5.4%, 8.3%, 4.5%, and 7.6%, respectively. These results indicate that our model exhibits better performance in this task. This also indicates that the performance of a model is not solely determined by the version, but is closely related to the characteristics of the dataset used. Different datasets have different features and complexities, so the highest versions of a model may not achieve the best performance.
Compared with several mainstream models, our model also achieved the highest accuracy in both mAP@.50 and mAP@.50:.95. It is worth noting that although Faster-RCNN also performed well in these two indicators (0.813 and 0.646), even exceeding YOLOv8n, it has too many parameters and GFLOPs to cope with actual detection tasks. Among all of these models, our model has the highest accuracy (0.835) with lower parameters (2.841 M, only 0.81 times that of YOLOv8n), indicating our model achieves a better balance between performance and computational efficiency. The introduction of dynamic detection heads in our model increases the parameters and computation complexity, while the HSPAN network structure reduces the parameters by optimizing the original feature fusion process. Therefore, compared with the baseline YOLOv8n, our model reduces the parameters and increases GFLOPs. In addition, our model maintains a competitive inference speed, with an FPS of 165.4, which is comparable to other lightweight YOLO models. Overall, our model demonstrates superior detection accuracy, competitive inference speed, and balanced computational complexity, making it a highly efficient and practical solution for the simultaneous detection of tomato variety and maturity.

5. Conclusions

Based on the YOLOv8n model, this study proposes the simultaneous detection model of tomato variety and maturity with the improvements on accuracy and computation performance. Specifically, the C2f module in the backbone part is replaced by FADC, which can effectively expand the receptive field by dynamically adjusting the expansion rate of the convolution kernel while retaining detailed features, thereby better capturing local information and improving the detection accuracy. In addition, in the low-level and high-level feature fusion stage, we introduced the CA and the SFF module and proposed a path aggregation network structure with advanced filtering function to improve the detection performance. PIoU loss function is used to adaptively optimize the predicted bounding box. The dynamic detection head is introduced to perform different classification tasks to further improve the performance of the model in complex backgrounds.
This study shows that our model performs the best performance among those comparative models, with mAP@.50 being 83.5% higher than that of the baseline YOLOv8n (80.4%). In addition, the maturity detection of our model on apples and citrus of our model shows its good generalization on other fruits. For the next improvement of our model, increasing the backbone network capacity and sample quantity of datasets can further enhance its detection accuracy. This study provides a theoretical basis and a practical lightweight solution for automated tomato picking and can be readily extended to other horticultural crops.

Author Contributions

Conceptualization, S.B.; methodology, S.B. and F.H.; validation, S.B.; formal analysis, S.B.; investigation, S.B., F.H., Q.G., C.Y. and W.C.; resources, F.H.; data curation, J.Z., Q.G., C.Y. and W.C.; writing—original draft, S.B.; writing—review and editing, F.H. and J.Z.; supervision, F.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work was partly supported by China Agricultural University Horizontal Project (No. 202405411010197 and 202405510810535).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

References

  1. Prasad, K.; Jacob, S.; Siddiqui, M.W. Fruit Maturity, Harvesting, and Quality Standards. In Preharvest Modulation of Postharvest Fruit and Vegetable Quality; Elsevier: Amsterdam, The Netherlands, 2018; pp. 41–69. [Google Scholar]
  2. Anjali; Jena, A.; Bamola, A.; Mishra, S.; Jain, I.; Pathak, N.; Sharma, N.; Joshi, N.; Pandey, R.; Kaparwal, S.; et al. State-of-the-Art Non-Destructive Approaches for Maturity Index Determination in Fruits and Vegetables: Principles, Applications, and Future Directions. Food Prod. Process. Nutr. 2024, 6, 56. [Google Scholar] [CrossRef]
  3. Tenorio, G.L.; Caarls, W. Automatic Visual Estimation of Tomato Cluster Maturity in Plant Rows. Mach. Vis. Appl. 2021, 32, 78. [Google Scholar] [CrossRef]
  4. Liu, J.; Pi, J.; Xia, L. A Novel and High Precision Tomato Maturity Recognition Algorithm Based on Multi-Level Deep Residual Network. Multimed. Tools Appl. 2020, 79, 9403–9417. [Google Scholar] [CrossRef]
  5. Lu, T.; Han, B.; Chen, L.; Yu, F.; Xue, C. A Generic Intelligent Tomato Classification System for Practical Applications Using DenseNet-201 with Transfer Learning. Sci. Rep. 2021, 11, 15824. [Google Scholar] [CrossRef] [PubMed]
  6. Sun, J.; He, X.; Wu, M.; Wu, X.; Shen, J.; Lu, B. Detection of Tomato Organs Based on Convolutional Neural Network under the Overlap and Occlusion Backgrounds. Mach. Vis. Appl. 2020, 31, 31. [Google Scholar] [CrossRef]
  7. Hsieh, K.-W.; Huang, B.-Y.; Hsiao, K.-Z.; Tuan, Y.-H.; Shih, F.-P.; Hsieh, L.-C.; Chen, S.; Yang, I.-C. Fruit Maturity and Location Identification of Beef Tomato Using R-CNN and Binocular Imaging Technology. Food Meas. 2021, 15, 5170–5180. [Google Scholar] [CrossRef]
  8. Huang, Y.-P.; Wang, T.-H.; Basanta, H. Using Fuzzy Mask R-CNN Model to Automatically Identify Tomato Ripeness. IEEE Access 2020, 8, 207672–207682. [Google Scholar] [CrossRef]
  9. Das, P.; Yadav, J.P.S. Automated Tomato Maturity Grading System Using CNN. In Proceedings of the 2020 International Conference on Smart Electronics and Communication (ICOSEC), Trichy, India, 11–12 September 2020; pp. 136–142. [Google Scholar]
  10. Hu, C.; Liu, X.; Pan, Z.; Li, P. Automatic Detection of Single Ripe Tomato on Plant Combining Faster R-CNN and Intuitionistic Fuzzy Set. IEEE Access 2019, 7, 154683–154696. [Google Scholar] [CrossRef]
  11. Xu, P.; Fang, N.; Liu, N.; Lin, F.; Yang, S.; Ning, J. Visual Recognition of Cherry Tomatoes in Plant Factory Based on Improved Deep Instance Segmentation. Comput. Electron. Agric. 2022, 197, 106991. [Google Scholar] [CrossRef]
  12. Hernández, G.A.A.; Olguin, J.C.; Vasquez, J.I.; Uriarte, A.V.; Torres, M.C.V. Detection of Tomato Ripening Stages Using Yolov3-Tiny. arXiv 2023, arXiv:2302.00164. [Google Scholar] [CrossRef]
  13. Yasmine, G.; Maha, G.; Hicham, M. Overview of Single-Stage Object Detection Models: From Yolov1 to Yolov7. In Proceedings of the 2023 International Wireless Communications and Mobile Computing (IWCMC), Marrakesh, Morocco, 19–23 June 2023; pp. 1579–1584. [Google Scholar]
  14. Wang, C.; Wang, C.; Wang, L.; Wang, J.; Liao, J.; Li, Y.; Lan, Y. A Lightweight Cherry Tomato Maturity Real-Time Detection Algorithm Based on Improved YOLOV5n. Agronomy 2023, 13, 2106. [Google Scholar] [CrossRef]
  15. Zhang, J.; Xie, J.; Zhang, F.; Gao, J.; Yang, C.; Song, C.; Rao, W.; Zhang, Y. Greenhouse Tomato Detection and Pose Classification Algorithm Based on Improved YOLOv5. Comput. Electron. Agric. 2024, 216, 108519. [Google Scholar] [CrossRef]
  16. Liu, G.; Hou, Z.; Liu, H.; Liu, J.; Zhao, W.; Li, K. TomatoDet: Anchor-Free Detector for Tomato Detection. Front. Plant Sci. 2022, 13, 942875. [Google Scholar] [CrossRef] [PubMed]
  17. Li, P.; Zheng, J.; Li, P.; Long, H.; Li, M.; Gao, L. Tomato Maturity Detection and Counting Model Based on MHSA-YOLOv8. Sensors 2023, 23, 6701. [Google Scholar] [CrossRef]
  18. Zheng, S.; Jia, X.; He, M.; Zheng, Z.; Lin, T.; Weng, W. Tomato Recognition Method Based on the YOLOv8-Tomato Model in Complex Greenhouse Environments. Agronomy 2024, 14, 1764. [Google Scholar] [CrossRef]
  19. Wei, J.; Ni, L.; Luo, L.; Chen, M.; You, M.; Sun, Y.; Hu, T. GFS-YOLO11: A Maturity Detection Model for Multi-Variety Tomato. Agronomy 2024, 14, 2644. [Google Scholar] [CrossRef]
  20. Ju, Y.; Jia, S.; Cai, J.; Guan, H.; Lyu, S. GLFF: Global and Local Feature Fusion for AI-Synthesized Image Detection. IEEE Trans. Multimed. 2023, 26, 4073–4085. [Google Scholar] [CrossRef]
  21. Lv, Y.; Zhang, X.; Xiong, W.; Cui, Y.; Cai, M. An End-to-End Local-Global-Fusion Feature Extraction Network for Remote Sensing Image Scene Classification. Remote Sens. 2019, 11, 3006. [Google Scholar] [CrossRef]
  22. Waseem, M.; Huang, C.-H.; Sajjad, M.M.; Naqvi, L.H.; Majeed, Y.; Rehman, T.U.; Nadeem, T. Automated Tomato Maturity Estimation Using an Optimized Residual Model with Pruning and Quantization Techniques. arXiv 2025, arXiv:2503.10940. [Google Scholar] [CrossRef]
  23. Nahak, P.; Pratihar, D.K.; Deb, A.K. Tomato Maturity Stage Prediction Based on Vision Transformer and Deep Convolution Neural Networks. Int. J. Hybrid Intell. Syst. 2025, 21, 61–78. [Google Scholar] [CrossRef]
  24. Roman, T. LaboroTomato: Instance Segmentation Dataset. Available online: https://github.com/laboroai/LaboroTomato#readme (accessed on 15 June 2024).
  25. Chen, L.; Gu, L.; Zheng, D.; Fu, Y. Frequency-Adaptive Dilated Convolution for Semantic Segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Columbus, OH, USA, 24–27 June 2024; pp. 3414–3425. [Google Scholar]
  26. Liu, S.; Qi, L.; Qin, H.; Shi, J.; Jia, J. Path Aggregation Network for Instance Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–22 June 2018; pp. 8759–8768. [Google Scholar]
  27. Chen, Y.; Zhang, C.; Chen, B.; Huang, Y.; Sun, Y.; Wang, C.; Fu, X.; Dai, Y.; Qin, F.; Peng, Y. Accurate Leukocyte Detection Based on Deformable-DETR and Multi-Level Feature Fusion for Aiding Diagnosis of Blood Diseases. Comput. Biol. Med. 2024, 170, 107917. [Google Scholar] [CrossRef]
  28. Liu, C.; Wang, K.; Li, Q.; Zhao, F.; Zhao, K.; Ma, H. Powerful-IoU: More Straightforward and Faster Bounding Box Regression Loss with a Nonmonotonic Focusing Mechanism. Neural Netw. 2024, 170, 276–284. [Google Scholar] [CrossRef]
  29. Dai, X.; Chen, Y.; Xiao, B.; Chen, D.; Liu, M.; Yuan, L.; Zhang, L. Dynamic Head: Unifying Object Detection Heads With Attentions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Virtual, 19–25 June 2021; pp. 7373–7382. [Google Scholar]
  30. Bau, D.; Zhou, B.; Khosla, A.; Oliva, A.; Torralba, A. Network Dissection: Quantifying Interpretability of Deep Visual Representations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 6541–6549. [Google Scholar]
  31. Wang, C.-Y.; Yeh, I.-H.; Mark Liao, H.-Y. YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information. In Computer Vision—ECCV 2024; Leonardis, A., Ricci, E., Roth, S., Russakovsky, O., Sattler, T., Varol, G., Eds.; Lecture Notes in Computer Science; Springer Nature: Cham, Switzerland, 2025; Volume 15089, pp. 1–21. ISBN 978-3-031-72750-4. [Google Scholar]
  32. Wang, A.; Chen, H.; Liu, L.; Chen, K.; Lin, Z.; Han, J.; Ding, G. YOLOv10: Real-Time End-to-End Object Detection. Adv. Neural Inf. Process. Syst. 2024, 37, 107984–108011. [Google Scholar] [CrossRef]
  33. Khanam, R.; Hussain, M. YOLOv11: An Overview of the Key Architectural Enhancements. arXiv 2024, arXiv:2410.17725. [Google Scholar] [CrossRef]
  34. Tian, Y.; Ye, Q.; Doermann, D. YOLOv12: Attention-Centric Real-Time Object Detectors. arXiv 2025, arXiv:2502.12524. [Google Scholar]
  35. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [PubMed]
  36. Zhao, Y.; Lv, W.; Xu, S.; Wei, J.; Wang, G.; Dang, Q.; Liu, Y.; Chen, J. DETRs Beat YOLOs on Real-Time Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA, 24–27 June 2024; pp. 16965–16974. [Google Scholar]
Figure 1. Data samples (O represents ordinary tomatoes and C represents cherry tomatoes).
Figure 1. Data samples (O represents ordinary tomatoes and C represents cherry tomatoes).
Sensors 25 07313 g001
Figure 2. Image enhancement examples: (a) blurring processing, (b) brightness enhancement, (c) rotation, and (d) flipping.
Figure 2. Image enhancement examples: (a) blurring processing, (b) brightness enhancement, (c) rotation, and (d) flipping.
Sensors 25 07313 g002
Figure 3. (a) The basic YOLOv8n model and (b) the improved model structure.
Figure 3. (a) The basic YOLOv8n model and (b) the improved model structure.
Sensors 25 07313 g003
Figure 4. Frequency-adaptive dilated convolution (FADC) module.
Figure 4. Frequency-adaptive dilated convolution (FADC) module.
Sensors 25 07313 g004
Figure 5. Improved high-level screening-feature path aggregation network.
Figure 5. Improved high-level screening-feature path aggregation network.
Sensors 25 07313 g005
Figure 6. The parameter diagram of PIoU. Green and yellow squares represent the predicted box and the true box, respectively.
Figure 6. The parameter diagram of PIoU. Green and yellow squares represent the predicted box and the true box, respectively.
Sensors 25 07313 g006
Figure 7. DyHead structure.
Figure 7. DyHead structure.
Sensors 25 07313 g007
Figure 8. Tomatoes with different spatial positions (a) and in complex backgrounds (b).
Figure 8. Tomatoes with different spatial positions (a) and in complex backgrounds (b).
Sensors 25 07313 g008
Figure 9. Heatmap comparison of YOLOv8n and our model on tomatoes in different scenarios: (a1c1) multi-tomato scenario, (a2c2) complex background, (a1,a2) original image, (b1,b2) heatmap of YOLOv8n, and (c1,c2) heatmap of our model.
Figure 9. Heatmap comparison of YOLOv8n and our model on tomatoes in different scenarios: (a1c1) multi-tomato scenario, (a2c2) complex background, (a1,a2) original image, (b1,b2) heatmap of YOLOv8n, and (c1,c2) heatmap of our model.
Sensors 25 07313 g009
Figure 10. Visualization comparison of global perception ability: original images (a1,a2), and global perception maps of YOLOv8n (b1,b2), and of our model (c1,c2). Blue indicates background regions and red represents the interested regions of the models.
Figure 10. Visualization comparison of global perception ability: original images (a1,a2), and global perception maps of YOLOv8n (b1,b2), and of our model (c1,c2). Blue indicates background regions and red represents the interested regions of the models.
Sensors 25 07313 g010
Figure 11. Detection results of ordinary tomatoes (a) and cherry tomatoes (b) by different detection heads. The color boxes indicate maturity levels: green for immature, yellow for fully ripe, and yellow-green for half-ripe.
Figure 11. Detection results of ordinary tomatoes (a) and cherry tomatoes (b) by different detection heads. The color boxes indicate maturity levels: green for immature, yellow for fully ripe, and yellow-green for half-ripe.
Sensors 25 07313 g011
Table 1. Training hyperparameters.
Table 1. Training hyperparameters.
ParameterValue
Image Size640 × 640
Learning Rate0.01
Weight Delay0.0005
Momentum0.937
OptimizerSGD
Batch Size4
Epoch150
Table 2. The comparison of different YOLOv8 models.
Table 2. The comparison of different YOLOv8 models.
NamemAP@.50mAP@.50:.95Parameters (M)GFLOPs
YOLOv8n0.8040.6453.0068.1
YOLOv8s0.7480.64611.12728.4
YOLOv8m0.7650.60625.84378.7
YOLOv8l0.7710.63943.611164.8
YOLOv8x0.7810.65568.129257.4
Table 3. Comparison of different loss functions.
Table 3. Comparison of different loss functions.
NameF1-ScoremAP@.50 mAP@.50:.95
YOLOv8n+CIoU0.7640.8240.663
+GIoU0.7620.8190.660
+DIoU0.7490.8180.657
+EIoU0.7680.8270.666
+PIoUv20.7590.8160.652
+PIoU0.7740.8350.666
Table 4. Results of the ablation experiments.
Table 4. Results of the ablation experiments.
FADCHSPANDyHeadPIoUF1-ScoremAP@.50mAP@.50:.95Parameters (M)GFLOPs
YOLOv8n 0.7470.8040.6453.0068.1
0.7530.8080.6493.0248.0
0.7540.8140.6572.0827.1
0.7520.8160.6623.4869.6
0.7610.8210.6632.0997.0
0.7600.8190.6623.5089.6
0.7620.8180.6622.8289.1
0.7640.8240.6632.8418.9
Ours0.7740.8350.6662.8418.9
Table 5. Results of the comparison experiments.
Table 5. Results of the comparison experiments.
NamemAP@.50mAP@.50:.95Parameters (M)GFLOPsFPS
YOLOv9t0.7740.6131.9717.6185.2
YOLOv10n0.7390.5842.6968.2173.9
YOLOv11n0.7870.6222.5836.3198.4
YOLOv12n0.7690.5912.5095.8207.6
Faster-RCNN0.8130.64641.374178.028.6
RT-DETR-r180.4040.28020.09358.365.5
YOLOv8n0.8040.6453.0068.1177.7
Ours0.8350.6672.8418.9165.4
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Bian, S.; Zhou, J.; Gao, Q.; Yi, C.; Chen, W.; Huang, F. Simultaneous Identification on Tomato Variety and Maturity Based on Local and Global Feature Fusion. Sensors 2025, 25, 7313. https://doi.org/10.3390/s25237313

AMA Style

Bian S, Zhou J, Gao Q, Yi C, Chen W, Huang F. Simultaneous Identification on Tomato Variety and Maturity Based on Local and Global Feature Fusion. Sensors. 2025; 25(23):7313. https://doi.org/10.3390/s25237313

Chicago/Turabian Style

Bian, Shaohuang, Jun Zhou, Qinxiu Gao, Chengxi Yi, Wenzhuo Chen, and Feng Huang. 2025. "Simultaneous Identification on Tomato Variety and Maturity Based on Local and Global Feature Fusion" Sensors 25, no. 23: 7313. https://doi.org/10.3390/s25237313

APA Style

Bian, S., Zhou, J., Gao, Q., Yi, C., Chen, W., & Huang, F. (2025). Simultaneous Identification on Tomato Variety and Maturity Based on Local and Global Feature Fusion. Sensors, 25(23), 7313. https://doi.org/10.3390/s25237313

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop