SwishFormer for robust firmness and ripeness recognition of fruits using visual tactile imagery

The accurate assessment of fruit ripeness is a critical task in the agricultural industry. It affects the fruit quality, shelf-life, and consumer satisfaction. Traditional methods for estimating fruit ripeness rely on subjective human judgment and invasive sampling techniques, which are both infeasible and time-consuming. This paper presents a novel method for estimating firmness and ripeness of fruits using their palpation motion encoded within the visual tactile scans. Moreover, these tactile scans are passed to the proposed SwishFormer model coupled with Random Forest head to predict the fruits firmness, which is later used in classifying the fruits ripeness stage. SwishFormer, unlike the existing state-of-the-art models, encompasses hardswish activation as a token mixer which allows it to generate distinctive set of features from the candidate tactile scans. These rich feature representations are then fed to the Random Forest regressor to robustly estimate the fruit firmness values and the estimated firmness values are then used in accurately predicting the ripeness level of the fruits. Apart from this, SwishFormer is extensively evaluated on the proposed dataset, containing the palpation visual tactile scans, and it outperforms state-of-the-art works by achieving 4.77%, 4.09%, 13.69%, and 4.65% better performance in terms of MSE, RMSE, R 2 , and MAE scores, while possessing 2.02 times less parameters, and 2.09 times lesser GMACs. Additionally, the ripeness recognition performance of the proposed system is thoroughly tested through real-world experiments using a Stretch Robot, where it achieves a success rate of 96.6%, 98.3%, and 93.3% for recognizing avocados as underripe, ripe, and overripe, respectively. To the best of our knowledge, this paper introduces a first non-destructive approach to estimate fruit firmness and ripeness using off-the-shelf vision-based tactile information. Moreover, the proposed dataset and source code of this work is available at https://mashood3624.github.io/SwishFormer/ . • SwishFormer: A VBTS-based architecture for non-destructive fruit firmness estimation. • SwishFormer is 2.02x smaller, 2.09x faster (GMACs), and outperforms prior methods. • Deployed on a Stretch Robot, achieving 96.1% success in avocado ripeness classification. • SwishFormer improves firmness prediction with 4.77% better MSE, 4.09% RMSE, and 13.69% R2. • Proposed a dataset with VBTS scans of avocados and kiwis for firmness estimation.

Authors

Institutions

Publication Details

Journal
Postharvest Biology and Technology
Published
2025-03-11
DOI
https://doi.org/10.1016/j.postharvbio.2025.113487
Citations
6
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
10.50

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SwishFormer for robust firmness and ripeness recognition of fruits using visual tactile imagery

Taimur Hassan, Irfan Hussain, Naoufel Werghi, Mashood Mohammad Mohsan et al.
6 citations
Postharvest Biology and Technology
Smart Agriculture and AI
10.50
article

SwishFormer for robust firmness and ripeness recognition of fruits using visual tactile imagery

Taimur Hassan, Irfan Hussain, Naoufel Werghi, Mashood Mohammad Mohsan, Basma Hasanen, Lakmal Seneviratne, Muhayy Ud Din
article en
6 citations

Abstract

The accurate assessment of fruit ripeness is a critical task in the agricultural industry. It affects the fruit quality, shelf-life, and consumer satisfaction. Traditional methods for estimating fruit ripeness rely on subjective human judgment and invasive sampling techniques, which are both infeasible and time-consuming. This paper presents a novel method for estimating firmness and ripeness of fruits using their palpation motion encoded within the visual tactile scans. Moreover, these tactile scans are passed to the proposed SwishFormer model coupled with Random Forest head to predict the fruits firmness, which is later used in classifying the fruits ripeness stage. SwishFormer, unlike the existing state-of-the-art models, encompasses hardswish activation as a token mixer which allows it to generate distinctive set of features from the candidate tactile scans. These rich feature representations are then fed to the Random Forest regressor to robustly estimate the fruit firmness values and the estimated firmness values are then used in accurately predicting the ripeness level of the fruits. Apart from this, SwishFormer is extensively evaluated on the proposed dataset, containing the palpation visual tactile scans, and it outperforms state-of-the-art works by achieving 4.77%, 4.09%, 13.69%, and 4.65% better performance in terms of MSE, RMSE, R 2 , and MAE scores, while possessing 2.02 times less parameters, and 2.09 times lesser GMACs. Additionally, the ripeness recognition performance of the proposed system is thoroughly tested through real-world experiments using a Stretch Robot, where it achieves a success rate of 96.6%, 98.3%, and 93.3% for recognizing avocados as underripe, ripe, and overripe, respectively. To the best of our knowledge, this paper introduces a first non-destructive approach to estimate fruit firmness and ripeness using off-the-shelf vision-based tactile information. Moreover, the proposed dataset and source code of this work is available at https://mashood3624.github.io/SwishFormer/ . • SwishFormer: A VBTS-based architecture for non-destructive fruit firmness estimation. • SwishFormer is 2.02x smaller, 2.09x faster (GMACs), and outperforms prior methods. • Deployed on a Stretch Robot, achieving 96.1% success in avocado ripeness classification. • SwishFormer improves firmness prediction with 4.77% better MSE, 4.09% RMSE, and 13.69% R2. • Proposed a dataset with VBTS scans of avocados and kiwis for firmness estimation.

Postharvest Biology and TechnologyVol. 225
Abu Dhabi University (AE), Khalifa University of Science and Technology (AE)
Khalifa University of Science, Technology and Research, Malawi University of Science and Technology
Zero hunger
Openalex Percentile: Top 2%
Smart Agriculture and AI
10.50
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.