Predicting Fruit Quality with a Hybrid Machine Learning and Image Processing Approach

Amir Reza Hashemi, Shahram Amiri
6/24/2026
cs.CV

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Fruit spoilage is a significant issue in agriculture, leading to substantial economic losses. Addressing this, our study introduces a hybrid approach combining image processing and deep learning to assess fruit freshness. We developed an image processing algorithm that quantifies spoilage on a scale from 0 (fully fresh) to 100 (fully rotten). Alongside, we trained a convolutional neural network (CNN) to perform binary classification (fresh or rotten) using a large dataset of fruit images. The outcomes of both methods were synthesized using logistic regression to enhance the accuracy of freshness predictions. Subsequently, this logistic regression model was utilized to enable the image processing algorithm to provide binary classification based on its percentage output, thus eliminating the need for the CNN in real-time applications. Our approach, which does not require high computational resources, achieved real-time performance and was validated with over 90% accuracy on a dataset comprising apples and oranges. The primary limitation lies in the requirement for fruits to be isolated on a background that must be either white or transparent, suggesting future improvements could include advanced segmentation models to automate background removal. This study's results highlight the potential of integrating simple image processing techniques with machine learning to provide practical solutions in the agricultural sector.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hashemi2026predicting,
  title  = {Predicting Fruit Quality with a Hybrid Machine Learning and Image Processing Approach},
  author = {Amir Reza Hashemi and Shahram Amiri},
  year   = {2026},
  eprint = {2606.26165},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.26165v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.26165.svg)](https://codeofpaper.com/paper/2606.26165)

Discussion