Low-Cost Sensor for Lycopene Content Measurement in Tomato Based on Raspberry Pi 4

Plants (Basel). 2023 Jul 18;12(14):2683. doi: 10.3390/plants12142683.

Abstract

Measuring lycopene in tomatoes is fundamental to the agrifood industry because of its health benefits. It is one of the leading quality criteria for consuming this fruit. Traditionally, the amount determination of this carotenoid is performed using the high-performance liquid chromatography (HPLC) technique. This is a very reliable and accurate method, but it has several disadvantages, such as long analysis time, high cost, and destruction of the sample. In this sense, this work proposes a low-cost sensor that correlates the lycopene content in tomato with the color present in its epicarp. A Raspberry Pi 4 programmed with Python language was used to develop the lycopene prediction model. Various regression models were evaluated using neural networks, fuzzy logic, and linear regression. The best model was the fuzzy nonlinear regression as the RGB input, with a correlation of R2 = 0.99 and a mean error of 1.9 × 10-5. This work was able to demonstrate that it is possible to determine the lycopene content using a digital camera and a low-cost integrated system in a non-invasive way.

Keywords: HPLC; Raspberry Pi 4; artificial neuronal network; fuzzy logic; image; lycopene; tomato.