Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Plant Sci.

Sec. Plant Bioinformatics

Volume 16 - 2025 | doi: 10.3389/fpls.2025.1540535

This article is part of the Research TopicRecent Advances in Big Data, Machine, and Deep Learning for Precision Agriculture, Volume IIView all 12 articles

Automated Measurement of Ascorbic Acid Levels in Camu-Camu Using Vision Transformer

Provisionally accepted
  • 1National University of Saint Augustine, Arequipa, Peru
  • 2National University of Ucayali, Pucallpa, Peru

The final, formatted version of the article will be published soon.

This study introduces a fully automated and cost effective approach to quantify ascorbic acid levels in camu-camu (Myrciaria dubia), a tropical super fruit renowned for its exceptionally high vitamin C content. Conventional analytical techniques depend on specialized laboratory equipment, limiting their applicability in field settings and among small-scale producers. To address this issue, we developed an integrated pipeline that combines a real-time Detection Transformer (RT-DETR) for precise fruit detection with a Vision Transformer (ViT) to classify fruits across four ripening stages. Building on these outputs, we designed an image-based estimation model that predicts ascorbic acid concentration using fruit size and ripening stage as key indicators. The RT-DETR achieved excellent detection performance, with a precision of 0.970 and a recall of 0.976, outperforming YOLOv8 (0.946 and 0.913, respectively). Likewise, the ViT classifier reached a precision of 0.970, surpassing VGG16, which achieved 0.946. The proposed estimation model yielded a very low prediction error, confirming its reliability. Overall, this work offers a practical, scalable, and accurate solution for estimating ascorbic acid directly from images, delivering significant benefits to producers and advancing the application of computer vision in the pharmaceutical industry.

Keywords: Ascorbic Acid, Fruit detection, RT-DETR, vision Transformer, Camu-camu

Received: 16 Jan 2025; Accepted: 14 Oct 2025.

Copyright: © 2025 Gutiérrez Cáceres, Agurto Cherre, CESAR LEONEL BLANCAS LOPEZ, Esmith Gaviria Huanio, Ayra Apac and Panduro Padilla. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence:
Juan Carlos Gutiérrez Cáceres, jgutierrezca@unsa.edu.pe
Cesar Augusto Agurto Cherre, cesar_agurto@unu.edu.pe

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.