Author Identifier (ORCID)
Abstract
Automatic tomato quality assessment is vital for maintaining supply chain consistency, reducing postharvest waste. In practice, tomato surface defects such as cracks, wrinkles, and decay regions often exhibit directional structures and statistical variations in color and brightness. These intertwined cues pose challenges for conventional methods—convolutional neural networks tend to overfit local textures, while standard Vision Transformers often diffuse attention across irrelevant regions, lacking explicit spatial–statistical awareness. Therefore, this study proposes DiSFormer, a directional–statistical mechanism for Vision Transformer token embedding. The mechanism integrates three complementary pathways: (1) a Directional Gated Aggregation pathway that captures orientation-dependent spatial cues through multidirectional filtering, (2) a Statistical Channel Modulator pathway that performs channel-wise reweighting using activation statistics, and (3) a residual pathway that preserves low-level information and stabilizes learning. Experiments on three benchmark tomato datasets — covering binary and multi-class quality grading tasks — demonstrate that DiSFormer achieves state-of-the-art performance, while maintaining a practical accuracy–efficiency balance.
Keywords
deep learning, fine-grained learning, supply chain, tomato quality assessment, vision transformer
Document Type
Journal Article
Date of Publication
1-1-2027
Article Number
112404
ISSN
03608352
Volume
223
Publication Title
Computers & Industrial Engineering
Publisher
Elsevier
School
School of Science / School of Business and Law
Funding Information
This research is partially supported by the ECU Science Early Career and New Staff Grant Scheme.
Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 License.
Recommended Citation
Pan, X., Jie, F., McMahon, K., & Hu, K. (2026). DiSFormer: A directional–statistical embedding mechanism for vision transformer in tomato quality classification. Computers & Industrial Engineering, 223, Article 112404. https://doi.org/10.1016/j.cie.2026.112404