Food Freshness Evaluation Using a CLIP-Based Architecture
DOI:
https://doi.org/10.53907/enpesj.v5i2.344Keywords:
image classification, clip, food freshness, healthAbstract
In this work, we present an efficient deep learning framework for automated fresh and stale food classification using transfer learning with a pretrained CLIP-based feature extractor. The proposed system employs frozen vision transformer (ViT) embeddings from CLIP as generalized visual descriptors and integrates them with a lightweight multi-layer perceptron (MLP) classifier for binary classification. To enhance generalization, extensive data augmentation and stratified dataset partitioning were applied to the publicly available Fresh and Stale Classification dataset. Experimental results reveal a consistent improvement across ten training epochs, achieving a final test accuracy of 97.99%, F1-score of 0.9808, and ROC–AUC of 0.9985. The proposed model demonstrates excellent discriminative performance, robust convergence, and strong generalization capabilities while maintaining computational efficiency. These results confirm the suitability of CLIP-based visual representations for high-accuracy food quality assessment and real-time freshness detection applications.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 ENP Engineering Science Journal

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Articles published under a Publisher Office user license are protected by copyright. Users may access, download, copy, translate, text and data mine the articles for non-commercial purposes provided that users:
- Cite the article using an appropriate bibliographic citation (i.e. author(s), journal, article title, volume, issue, page numbers, DOI and the link to the definitive published version)
- Maintain the integrity of the article
- Retain copyright notices and links to these terms and conditions so it is clear to other users what can and cannot be done with the article
- Ensure that, for any content in the article that is identified as belonging to a third party, any re-use complies with the copyright policies of that third party
- Any translations, for which a prior translation agreement with Publisher Office has not been established, must prominently display the statement: "This is an unofficial translation of an article that appeared in a Publisher Office publication. Publisher Office has not endorsed this translation."
This is a non commercial license where the use of published articles for commercial purposes is prohibited. Commercial purposes include:
- Copying or downloading articles, or linking to such postings, for further redistribution, sale or licensing, for a fee
- Copying, downloading or posting by a site or service that incorporates advertising with such content
- The inclusion or incorporation of article content in other works or services (other than normal quotations with an appropriate citation) that is then available for sale or licensing, for a fee
- Use of articles or article content (other than normal quotations with appropriate citation) by for-profit organizations for promotional purposes, whether for a fee or otherwise.
- Use for the purposes of monetary reward by means of sale, resale, license, loan, transfer or other form of commercial exploitation.