Editor’s note: Devendra Chandani is co-founder and head of US at Intello Labs, based in New Jersey. Headquartered in Gurugram, India, Intello Labs uses machine learning tech to grade the quality of agricultural produce. The views expressed in this article are the author’s own.
Fresh fruits and vegetables are a critical ingredient for food companies that make anything from juices and smoothies through to sauces, pastes, and pulps.
The characteristics of fresh produce differ by variety and season, unlike with many other raw materials. This variability creates challenges in the manufacturing process, and in delivering the quality customers expect in finished products.
Measuring quality in fresh produce
Defining fresh produce quality parameters and their measurement for acceptance is more complex compared to other raw ingredients. Uniformity, ripeness, color, gloss, and absence of defects are just some of the components of quality. Evaluating them can be subjective — in other words, done manually — or objective, when handled by a machine.
But the visual appearance of fruits and vegetables is universally accepted as the first quality determinant.
Color is an important parameter because it directly affects the appearance of the final product. If there is color variance in fresh produce, corrective actions in the manufacturing process become necessary to ensure the perception of quality in the final product.
In short, failure to meet fresh produce color criteria can adversely impact cost and quality in the finished product. This applies to a wide range of food industry items.
Obstacles to identifying color
The biggest challenge to determining the color of fresh produce is heterogeneity. A fruit or vegetable may not be one color, but different shades of the same color. A single piece could also feature different colors blending into one another.
A good example here is tomatoes. A single tomato may have red, orange, and light green colors and still be acceptable as an ingredient. Another example is apples, which may have different shades of red depending on variety.
The color heterogeneity in fresh produce makes it difficult to set and measure acceptable criteria. Right now, the food industry utilizes a battery of equipment to measure color in both ingredients and finished products. Most often, this equipment includes colorimeters, spectrophotometers, and image-based color identification machines.
Though made for myriad food (and non-food) ingredients, these traditional instruments mostly fail in measuring acceptable color criteria for fresh produce:
- Colorimeters are best for gauging homogeneous solutions or solids. When faced with heterogeneous solids they, at best, can indicate an average color. This often results in inaccurate identification.
- Spectrophotometers are most appropriate for input in a liquid medium and for homogeneous products.
- Equipment that processes high-quality images in a controlled environment appears to be the ideal choice, at least among existing solutions for fresh produce. These go beyond average color measurement to offer percentage composition of colors.
The latter can detect, for example, that a displayed tomato is 80% red and 20% light green. But when shown five separate tomatoes together, where one appears light green and the other four red, such instruments fail. Since the combined composition is still 80% red and 20% light green, this will often lead to the one light green tomato getting accepted erroneously.
In the last few years, artificial intelligence (AI) has widened the lead it has over all prior technologies for accuracy in visual identification of fresh produce. It has also surprised us in the plethora of tasks it excels at within image processing. It has beaten previous benchmarks in object detection, classification, and segmentation.
To explain these three tasks, let’s take the example of tomatoes again:
- Object detection is the ability to identify different objects in an image. In this case, all the individual tomatoes that are presented.
- Classification is the ability to organize an image into one of many classes. In this instance, the classification of a tomato can be 80% red, 30% red, and so on.
- Segmentation is the ability to distinguish the composition of an image into the different features that are present in it. For example, the tomatoes, the table they are on, the piece of paper next to them, and so on.
Two factors enable AI to achieve excellence in these tasks. First, a large dataset of images labeled to meet acceptable and non-acceptable parameters of fresh produce. Second, sizable amounts of computing ability in the form of powerful microprocessors.
In a nutshell, AI fixes the issues riddling color for fresh produce accurately and much better than ever before.
Advantages of AI
AI-based solutions have the unerring ability to eliminate color issues in a heterogeneous scenario and color acceptance criteria for almost all fresh produce. But that’s not the sole benefit. It can do so in a wide variety of lighting conditions.
Covid-19 has caused plenty of volatility in fresh produce prices. Read more here
On top of that, with cloud processing, the solution becomes highly portable. It means one can conveniently access this powerful technology through a handheld device like a mobile phone.
In addition, cloud computing allows easy integration of the solution with the rest of the user’s applications, such as email and messaging. These qualities make AI-based solutions far lighter on a user’s pocket than the bulky equipment traditionally used for color identification.