Evaluation of food quality based on machine learning

By using machine learning models to identify and evaluate the quality characteristics of food from image data, the problem of objectively assessing food quality in existing technologies has been solved, enabling accurate quality assessment and supply chain optimization, reducing waste and improving efficiency.

CN118742928APending Publication Date: 2024-10-01APEEL TECH
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202280092232.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2021-12-30
Filing Date
2022-12-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technologies struggle to objectively and quantitatively assess food quality based on image data, particularly in identifying subtle color and other invisible quality characteristics, impacting food management and decision-making within the supply chain.

Method used

By using machine learning techniques to train models, especially convolutional neural networks (CNNs), quality characteristics of food, such as color, spoilage, and hardness, can be identified and evaluated from hyperspectral and multispectral image data to generate accurate quality scores, and the supply chain can be dynamically adjusted based on these scores.

Benefits of technology

It enables accurate assessment of food quality, reduces human error, improves the efficiency of supply chain management, reduces food waste, and provides non-destructive quality assessment to support earlier supply chain adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118742928A_ABST
    Figure CN118742928A_ABST
Patent Text Reader

Abstract

Systems and methods for determining a quality level of a food product using image data, such as delayed RGB, hyperspectral, thermal, and / or multispectral images, are described herein. The method may include receiving image data of food products from an imaging device, performing object detection on the image data to identify bounding boxes around each food product, and identifying a quality level of each food product by applying a trained model to the bounding boxes. The model is trained using image training data for other foodstuffs that is annotated based on previously identifying a first portion of the other foodstuffs as having poor quality features and identifying a second portion as having good quality features. The other foodstuffs and the foodstuff have the same type. The method further includes determining a quality level score for each of the food products based on the identified quality levels of the food products.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Incorporated by Reference

[0002] This application claims priority to U.S. Provisional Application No. 63 / 295,172, filed on December 30, 2021, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0003] Apparatus, systems, and methods are generally described herein for determining food quality based on, for example, image data of the food. Background Art

[0004] Foods such as produce, fruit, and meat can have different quality metrics that affect their suitability for consumption and value in the supply chain. Multiple different stakeholders throughout the supply chain are interested in evaluating the quality metrics of such food products. As an example, food color can be an indicator of quality, which can be used to classify and grade food products. Different quality metrics can also influence consumer purchasing decisions.

[0005] Foods with quality metrics such as good color properties are more valuable than foods with poor color or other poor quality metrics. Color and other quality metrics can be used to indicate the maturity, hardness, decay, dehydration, flavor, sweetness, and acidity characteristics of food. Any of these characteristics can be valuable throughout the supply chain and consumer consumption decisions. For example, browning of food can indicate decay. By identifying the browning color early, the supply chain can be modified to avoid wasting food.

[0006] It can be challenging to objectively and quantitatively define high-quality food products based on image data. Relevant stakeholders in the supply chain can observe and compare color or other characteristics visible in or on food products. However, the human eye may only be able to distinguish color differences or other characteristic differences in extreme cases or when the color differences or other characteristic differences are obvious. For example, the human eye can distinguish when limes are yellow, green, or brown, or when limes are more yellow than other limes, but the human eye may not be able to identify more subtle changes in color. As another example, it is challenging for the human eye to universally rank and compare colors across all possible colors that a particular food product may obtain during its life cycle. Subtle changes in color and other characteristics of a food product throughout its life cycle can represent changes in the quality of that food product. Summary of the invention

[0007] The present invention generally describes systems, methods, and techniques for non-invasively assessing the quality of food (e.g., vegetables, fruits, meat) based on, for example, image data. The image data may be generated and captured by one or more imaging devices (such as cameras configured to capture images of food within and / or outside the visible spectrum). For example, the disclosed technology may capture and use hyperspectral image data captured by a hyperspectral camera. The image data may include images (e.g., RGB, hyperspectral, multispectral, thermal, etc.) and additional metadata. As an illustrative example, the disclosed technology may be used to assess food color to determine food quality, such as maturity, readiness for consumption, mold, rot, and / or dehydration. The disclosed technology may distinguish color differences, whether obvious or subtle, and define what foods of different colors are in an unsupervised manner. For example, the disclosed technology may distinguish the quality of green apples from that of yellow apples. A quantitative color score for each food may be inferred. Many other features and qualities may also be determined using image data. For example, mold, texture, defects, and dehydration may also be identified from image data to determine the quality of food. Models can be trained using machine learning techniques, such as convolutional neural networks (CNNs), to identify and score such quality metrics from image data. Thus, the quality of food can be assessed, especially in situations where the human eye may not be able to provide an objective and universal quantification or to distinguish subtle changes in food (such as bruises, infections, age, maturity, flavor, etc.) or other invisible features of food quality.

[0008] The disclosed technology can be used to generate different metrics that can be used to identify different features of a food that indicate the quality of such food. Quality metrics can be defined per food. Quality metrics can also be defined per type of food. For example, apples can have different color metrics and corresponding (one or more) machine learning training models compared to limes, avocados, and other fruits and agricultural products. Moreover, Granny Smith apples can have different color metrics or other quality metrics compared to Honeycrisp apples. Since the quality of a food can be determined based on multiple quality metrics, each machine learning training model corresponding to the quality metric can be run serially. Each subsequent model can receive the output of the previously executed model as input. Since the model receives the quality metric analysis as input, each model can determine a more robust and accurate quality metric score. In some embodiments, the machine learning training models can also be executed in parallel.

[0009] The quality score can be determined for each quality metric. The overall quality score of food can also be determined based on the summary of each quality score. Based on the quality score of food, the supply chain can be modified as early as possible. For example, once food enters a storage facility, the quality assessment described in the present disclosure can be performed. The quality of food can be assessed at this time, which can be used as an important indicator of when food is ripe and / or available for consumer consumption. If the quality of food is identified as poor (for example, food is currently ripe or has passed the best maturity period, etc.), the supply chain can be modified so that food is immediately transported to the consumer in the nearest geographical location, discarded food, or food is transported to a food processing plant. If the quality of food is identified as good (for example, food is beginning to mature, is maturing, is not moldy or dehydrated, etc.), the supply chain can be modified so that food is stored for a period of time or food is transported to consumers in more distant geographical locations. One or more other supply chain modifications can be determined based on the preferences of relevant stakeholders in the entire supply chain life cycle.

[0010] Certain embodiments described herein may include a method for determining a quality level of a food product using image data, the method comprising: receiving, by a computing system, image data of a food product from an imaging device; performing, by the computing system, object detection on the image data to identify a bounding box around each food product in the image data; and determining, by the computing system, a grid structure of the image data based on the bounding box around each food product in the image data. Each bounding box may be assigned a grid index in the grid structure, and the grid index may be used to identify the food product in a data repository. The method may also include, by the computing system, identifying, for each food product, the quality level of the food product by applying a trained model to a bounding box portion of the image data containing each food product. Each training model may be trained using image training data of other foods, wherein the image training data is annotated based on previously identifying a first portion of the other food product as having a poor quality feature and identifying a second portion of the other food product as having a good quality feature. The other food product may be of the same food type as the food product, and the training model may include a first training model trained to identify a first quality feature and a second training model trained to identify a second quality feature different from the first quality feature. The method may also include determining, by the computing system, for each food product a quality level score for the food product based on the identified quality level of the food product, and storing, by the computing system, for each food product in a data repository (i) a bounding box portion of the image data containing the food product, (ii) a grid index, (iii) the identified quality level of the food product, and (iv) the determined quality level score of the food product.

[0011] In some implementations, the embodiments described herein may include one or more of the following features: For example, the method may also include transmitting, by the computing system, the quality level score of the food in the image data to the user computing device for display at the user computing device.

[0012] In some embodiments, the method may include retrieving, by a computing system, a quality grade score of the food from a data repository for each food; identifying, by the computing system, supply chain information for the food, the supply chain information may include a pre-existing supply chain schedule and destination for the food; determining, by the computing system, in response to determining to modify the supply chain information, whether to modify the supply chain information of the food based on the retrieved quality grade score; generating, by the computing system, the modified supply chain information based on the received quality grade score; and transmitting, by the computing system, the modified supply chain information to one or more supply chain actors to implement the modified supply chain information. The modified supply chain information may include one or more of a modified supply chain schedule and a modified destination for the food. Moreover, the modified supply chain information may include instructions that, when executed by one or more supply chain actors, may cause the food to be moved for shipment to an end consumer that is geographically closest to the location of the food. In some embodiments, the modified supply chain information may include instructions that, when executed by one or more supply chain actors, may cause at least one of the following: (i) moving the food for shipment to a food processing plant, (ii) changing the controlled atmospheric conditions surrounding the food, (iii) changing the ripening conditions of the food, and (iv) changing the refrigeration conditions of the food.

[0013] As another example, each trained model may include one or more layers having (i) image training data of other foods and (ii) labels indicating food quality classifications of each other food depicted in the image training data. The food may be at least one of an avocado, a lime, a lemon, an apple, a berry, and a mango. Sometimes, the method may also include using object recognition by a computing system to identify the type of food depicted in the image data, and selecting one or more of the trained models to be applied to a bounding box portion of the image data based on the type of food identified by the computing system. The selected trained models may be trained to identify quality features of foods of the same type. In some embodiments, the trained models may be trained using at least one of a convolutional neural network (CNN) and a partial least squares (PLS). In other embodiments, the image data may include at least one of an RGB image, a hyperspectral image, a multispectral image, a thermal image, a nuclear magnetic resonance (NMR) image, and a magnetic resonance image (MRI).

[0014] In some embodiments, identifying, by the computing system, a quality level of the food for each food product may include calibrating the color of the image data to maintain color consistency in the image data; determining a median Euclidean distance between a color of the food product in a bounding box portion of the image data and a reference color of the food product based on applying a color analyzer training model to the calibrated bounding box portion of the image data, wherein the reference color is associated with a preferred quality level of the food product; determining whether the median Euclidean distance exceeds a threshold; in response to determining that the median Euclidean distance exceeds the threshold, identifying the quality level of the food product as poor quality; and in response to determining that the median Euclidean distance is less than the threshold, identifying the quality level of the food product as good quality.

[0015] As another example, identifying, by the computing system, for each food product, a quality level of the food product may include applying a hyperspectral cube process to a bounding box portion of the image data containing each food product. In some implementations, identifying, by the computing system, a quality level of the food product for each food product may include determining a degree of yellowing of the food product based on applying the apple yellowing training model to a bounding box portion of the image data containing each food product, and assigning a quality level score to the food product based on the degree of yellowing of the food product. A score greater than or equal to 0 but less than a threshold level may indicate (i) good quality and (ii) no yellowing, while a score equal to or less than 100 but greater than the threshold level may indicate that the food product (i) is of poor quality and (ii) has the greatest degree of yellowing.

[0016] In some embodiments, identifying, by the computing system, a quality level of the food for each food product may include: determining the extent of yellowing of the food product based on applying the lime yellowing training model to a bounding box portion of the image data containing each food product, and assigning a quality level score to the food product based on the extent of yellowing of the food product. A score greater than or equal to a first threshold level but less than a second threshold level may indicate (i) good quality and (ii) no yellowing, while a score equal to or less than a third threshold level but greater than the second threshold level may indicate (i) poor quality and (ii) maximum yellowing. In some embodiments, applying the lime yellowing training model may further include applying a Gaussian mixture model and a support vector regressor to a bounding box portion of the image data containing each food product. In some embodiments, applying the apple yellowing training model may further include applying a Gaussian mixture model and a support vector regressor to a bounding box portion of the image data containing each food product.

[0017] In some embodiments, identifying, by the computing system, for each food product, a quality grade of the food product may include: identifying internal quality defects in the food product based on applying the internal quality training model to the bounding box portion of the image data containing each food product, and determining an overall quality grade score for the food product based on the internal quality defects. A "good" score may indicate that there are no internal quality defects in the food product, a "fair" score may indicate that there are some internal quality defects in the food product, and a "bad" score may indicate that most internal quality defects are present in the food product. In some embodiments, the internal quality training model may be trained using image training data of other food products previously annotated as having no internal defects, diffuse browning, vascular browning, flesh sticking, internal rot, stem rot, and tissue damage.

[0018] As another example, identifying, by the computing system, for each food product, a quality level of the food product may include identifying rot and dehydration in the food product based on applying the rot and dehydration training model to a bounding box portion of the image data containing each food product, and assigning a quality level score for the food product based on the identified rot and dehydration. The score may be at least one of a binary classification and a numerical value of rot and dehydration. The numerical value may be a continuous value between 0 and 1 indicating the severity of the rot and dehydration.

[0019] As another example, identifying, by the computing system, the quality level of the food for each food product may include determining the maturity and remaining shelf life of the food product based on applying the shelf life training model to the image data, and assigning a quality level score to the food product based on the determined maturity and remaining shelf life. The quality level score may be a numerical value that may indicate the number of days remaining until the food product reaches peak maturity.

[0020] In some embodiments, identifying, by the computing system, the quality level of the food for each food may include determining the grade of the food based on applying the agricultural product grade training model to the bounding box portion of the image data containing each food. The grade may be based on USDA specifications, color distribution, the shape of the food, and the size of the food. The method may also include assigning a quality level score of the food based on the grade. The score may be a string value that may indicate an evaluation of at least one of the grade, color distribution, shape, and size of the food. In some embodiments, the string value indicating the evaluation of the grade may be at least one of "exquisite", "particularly exquisite", "not exquisite", "good", "average", and "poor". Moreover, the string value indicating the evaluation of the color distribution may be at least one of "good color" and "poor color". Sometimes, the string value indicating the evaluation of the shape may be at least one of "good shape" and "poor shape". In some embodiments, the string value indicating the evaluation of the size may be at least one of "good size" and "poor size".

[0021] As another example, identifying, by the computing system, for each food product, a quality level of the food product may include determining a size of the food product based on applying a size training model to a bounding box portion of the image data containing each food product, and assigning a quality level score for the food product based on the size. The score may be a numerical value that may indicate whether the food product fits into a standard box size for other foods of the same type as the food product.

[0022] As another example, identifying, by the computing system, the quality level of the food for each food product may include determining the shape of the food product based on applying the shape training model to the bounding box portion of the image data containing each food product, and assigning a quality level score for the food product based on the shape. The score may be a numerical value that may indicate a curvature radius of the food product.

[0023] As another example, identifying, by the computing system, the quality level of the food for each food product may include determining (i) the presence, (ii) the coverage, and (iii) the thickness of the cooking coating on the food product based on applying the cooking coating training model to the bounding box portion containing the image data of each food product, and assigning a quality level score for the food product based on (i)-(iii). The score may be at least one of a binary inference and a numerical value of a pixel in the bounding box portion containing the image data of each food product, which indicates the presence, coverage, and thickness of the cooking coating on the food product.

[0024] In some embodiments, identifying, by the computing system, the quality level of the food for each food product may include determining a dry matter content of the food product based on applying a dry matter training model to a bounding box portion of the image data containing each food product, and assigning a quality level score for the food product based on the dry matter content. The score may be a numerical value that may indicate an amount of dry matter content of the food product.

[0025] As another example, identifying, by the computing system, the quality level of the food for each food product may include determining the hardness of the food product based on applying the hardness training model to the bounding box portion of the image data containing each food product, and assigning a quality level score for the food product based on the hardness, which score may be a numerical value. In some implementations, identifying, by the computing system, the quality level of the food product for each food product may include determining the sugar level of the food product based on applying the Brix training model to the bounding box portion of the image data containing each food product, and assigning a quality level score for the food product based on the sugar level, which score may be a numerical value that may indicate the sugar content of the food product in Brix.

[0026] In some embodiments, identifying the quality level of the food by the computing system for each food may also include determining the nutritional content of a target compound in the food based on applying a nutritional training model to a bounding box portion of the image data containing each food, and assigning a quality level score for the food based on the nutritional content of the target compound, which score may include a list of concentrations of the nutritional content of the target compound in the food.

[0027] In some implementations, identifying, by the computing system, for each food product, a quality level of the food product may include identifying a product label on the food product based on applying the produce identifier training model to a bounding box portion of the image data containing each food product, decoding at least one of text and a product identifier on the product label using optical character recognition (OCR), and assigning a quality level score for the food product based on the decoded product label. The score may be a string value that may include at least one of the decoded text and the product identifier.

[0028] As another example, identifying, by the computing system, the quality level of the food for each food may include determining a wrinkle of the food based on applying the wrinkle training model to the bounding box portion of the image data containing each food, and assigning a quality level score of the food based on the wrinkle. In some embodiments, identifying, by the computing system, the quality level of the food for each food may also include determining an acidity level of the food based on applying the acidity training model to the bounding box portion of the image data containing each food, and assigning a quality level score of the food based on the acidity level of the food, which score may be a numerical value that may indicate the acidity level of the food.

[0029] In some embodiments, identifying, by the computing system, a quality level of the food for each food may include calibrating the color of the image data to maintain color consistency of the image data, obtaining a color sample of each food in a bounding box portion of the calibrated image data, mapping the color samples into a multidimensional color space, identifying a direction of maximum color change among all color samples, predicting a location of maximum color change of the food along the identified direction, the location of maximum color change being a one-dimensional quality metric of the food, and identifying the quality level of the food as good quality based on determining that the one-dimensional quality metric of the food is within a threshold quality range.

[0030] In some embodiments, the modified supply chain information includes instructions that, when executed by one or more supply chain actors, cause the food to be moved for shipment to an end consumer that is geographically closest to the location of the food. As another example, the quality level score of the food can be an overall quality metric for the food, and the overall quality metric can be determined by: accessing a rule-based mapping from a data repository that maps (i) different value ranges of scores corresponding to identifications of first and second quality characteristics to (ii) enumerated categories of food quality, the enumerated categories of food quality including at least one of sellable, unsellable, edible, inedible, good quality, poor quality, and fair quality; for each of the first and second quality characteristics, iteratively determining whether the corresponding rule-based mapping is satisfied; based on the corresponding rule-based mapping being satisfied, identifying the enumerated category of food quality for the food; and assigning the identified category to the food as the overall quality metric for the food.

[0031] In some embodiments, identifying, by the computing system, for each food product, a quality level of the food product may include assigning a binary value indicating whether wrinkles are present on a surface of the food product represented in the bounding box portion based on applying a wrinkle analyzer model to each bounding box portion of the image data containing each food product; determining a wrinkle coverage percentage on a surface of the food product represented by the bounding box portion of the image data based on (i) summing the number of bounding box portions assigned a binary value indicating whether wrinkles are present on a surface of the food product represented in the corresponding bounding box portion and (ii) dividing the sum by the total number of bounding box portions of the image data; and assigning a quality level score for the food product based on the determined wrinkle coverage percentage satisfying a threshold wrinkle criterion, the score being a binary value indicating whether wrinkles are present on a surface of the food product. As another example, identifying, by the computing system, for each food product, a quality level of the food product may include determining a median color value for the food product based on applying a calyx browning training model to a bounding box portion of the image data containing each food product, and assigning a quality level score for the food product based on the median color value for the food product. The quality level score can be assigned a string value of (i) "good" based on the median color value being less than a first threshold color range, (ii) "fair" based on the median color value being greater than the first threshold color range and less than a second threshold color range, and (iii) "poor" based on the median color value being greater than the second threshold color range.

[0032] In other embodiments, identifying, by the computing system, the quality level of the food for each food may include: determining a color value of the food based on applying a banana stage analyzer training model to a bounding box portion of the image data containing each food, and assigning a quality level score of the food based on mapping the color value of the food to expected threshold color values ​​for a plurality of ripeness stages. The quality level score may be a string value indicating the current ripeness stage of the food. In other embodiments, identifying, by the computing system, the quality level of the food for each food may include: extracting the stem of the food based on applying an object detection model to a bounding box portion of the image data containing each food, determining a median color value of the stem of the food based on applying a cherry stem color training model to the extracted food stem, and assigning a quality level score of the food based on the median color value of the stem of the food. The quality level score may be assigned a string value of (i) "good" based on the median color value being within a first threshold color range, (ii) "fair" based on the median color value being within a second threshold color range (excluding the first threshold color range), and (iii) "poor" based on the median color value being within a third threshold color range (excluding at least the first threshold color range).

[0033] One or more embodiments described herein may include a system for determining a quality level of a food product using image data, the system comprising one or more imaging devices capable of measuring image data of food products of the same food type, and at least one computing system capable of performing the methods and additional features mentioned above.

[0034] One or more embodiments described herein may also include a system for determining a quality level of a food product using image data, the system comprising a photobox and at least one computing system. The photobox may have a first wall, a second wall, a third wall, and a fourth wall and a ceiling. The photobox may include an opening on the first wall that may receive a plate containing food products of the same food type; a cover that may cover the opening to prevent ambient light from entering the photobox; at least one light that may be located inside the photobox that may provide consistent illumination to illuminate the plate containing the food products; and one or more imaging devices attached to the ceiling of the photobox that may capture image data of the food products on the plate. The at least one computing system may perform the above-mentioned method.

[0035] In some embodiments, the embodiments described herein may include one or more of the features mentioned above and the following features. For example, at least one lamp may be an LED lamp. The camera box may also include a camera rig that may extend through the ceiling of the camera box. The camera rig may include three tubes connected at a three-way connector. The first tube may extend from the three-way connector to the first wall, the second tube may extend from the three-way connector to the second wall, the second wall being opposite to the first wall, and the third tube may extend from the three-way connector to the third wall, the third tube being perpendicular to the first and second tubes. In some embodiments, one or more imaging devices may be mounted on the camera rig near the three-way connector and along at least one of the three tubes. Moreover, the one or more imaging devices may be at least one of an RGB camera, a hyperspectral imaging device, a thermal imager, an MRI scanning device, and an NMR imaging device.

[0036] The disclosed technology can provide one or more of the following advantages. For example, using machine learning training models, food quality can be more accurately determined based on subtle differences that appear in image data. The human eye can be prone to error when trying to observe subtle changes in the appearance of food and cannot detect invisible features of food. For example, the human eye may not notice a slight discoloration of one part of an apple, which can indicate early signs of rot or other poor quality features. Moreover, human workers must be trained to visually measure the color, quality, size, and shape of food in a quantitative manner. This can be a tedious, time-consuming process and can be subject to human bias. The disclosed technology can automatically and accurately detect different quality features in food from high-quality labeled and / or unlabeled image data sets. The disclosed technology can be used to analyze the quality of food beyond the visible spectrum and color, all of which are challenging or impossible for human eye observation and analysis. Therefore, the disclosed technology can provide more in-depth analysis, improve efficiency, and reduce human errors that may occur when observing visual features of food.

[0037] As another example, the disclosed technology can be used to make appropriate modifications to the supply chain early enough in the supply chain life cycle to reduce food-based waste. Food quality can be evaluated at any point throughout the supply chain. For example, quality can be evaluated before the food is transported from the farm to the storage facility. Quality can also be evaluated as soon as the food arrives at the storage facility. In some embodiments, quality can even be evaluated when the food is on the shelf in the grocery store and available to consumers. When evaluating food quality early in the supply chain life cycle, the food can be more appropriately classified based on the identified and / or expected quality of such food. For example, food that is identified as good quality when entering the storage facility can be stored in the facility for a longer time than food that is identified as poor quality. Improved decisions about how and when to handle or otherwise ripen food can also be made. For example, food that is identified as beginning to ripen during transportation from the storage facility to the store can be treated with products intended to promote the ripening process. As another example, if it is determined that one or more foods do not meet the threshold quality level, the disclosed technology can determine that the appropriate supply chain modification is to initiate the application of antimicrobial treatment to the food. A consumption time range can also be determined, which affects when the food arrives at the grocery store and how long the food remains in storage.

[0038] Similarly, the quality metric scores determined using the disclosed technology can be beneficial for retailers to identify the return on investment (ROI) of food products. Retailers can use the quality metric scores to determine which food products to order, which food products to put on shelves for customers, and / or how to price different food products. Therefore, the disclosed technology can be used to monitor the quality of food products throughout the supply chain.

[0039] As described herein, the disclosed technology can generate more robust food quality assessments. Different models can be generated and trained using machine learning techniques and high-quality labeled training data sets to identify and score different quality features associated with different foods. Therefore, models can be trained to identify features that may be difficult for human workers to observe and associate such features with the quality of the food. One or more models can be selected for each food and executed in series, so that each model can generate a quality assessment that is built on the quality assessment of the previously executed model. As an example, the first model executed in series can determine the color score of a specific food. The color score can then be used as an input to the second model executed in series, which determines the shelf life prediction score. The shelf life prediction score can be determined based on the color score. Additional models can also be executed in series. As an illustrative example, color analysis can be performed on limes using multiple models executed in series. First, a model can be executed that identifies all rotten and / or dehydrated limes in the image data. Then, a second model can perform color analysis on non-rotten and / or dehydrated limes. After all, for these limes, color can be a determining factor in whether they are of sufficiently high quality. As another illustrative example, the ripeness of avocados can be determined using multiple models executed in series. First, a model can be executed to detect stem rot and other defects, such as vein browning. Then a second model can be executed to classify avocados as good or bad based on the stem rot and other defects detected by the first model. Such robust quality assessment can be useful for more accurately monitoring food quality and modifying supply chains.

[0040] As yet another example, the disclosed technology can assess the quality of food in a non-destructive manner. Because the model is trained to analyze the quality characteristics of food from image data, humans may not have to perform destructive techniques such as piercing the skin or flesh of the food to determine its quality. Therefore, the quality of food delivered to the end consumer can be tested and assessed without actually reducing the quality of such food. Therefore, the model is trained to extract quality features from the image data of the food without requiring humans to destroy or otherwise alter the food before delivering it to the end consumer. When the disclosed technology is used to assess food quality, higher quality food can be delivered to the end consumer and food will not be wasted.

[0041] The details of one or more implementations will be set forth in the accompanying drawings and the description below. Other features and advantages will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1A A conceptual diagram of determining food quality based on image data.

[0043] Figure 1Bis a conceptual diagram of generating models to determine different quality characteristics in food.

[0044] Figure 1C is a diagram of an example system for assessing the quality of one or more food products based on image data.

[0045] Figure 2 is a flow chart of a process for determining food quality based on image data.

[0046] Figure 3 is a flow chart of the process used to generate models to determine different quality characteristics in food products.

[0047] Figure 4A-4B is a flow chart of a process for determining food quality using the model during runtime.

[0048] Figure 5 is another flow chart of a process for evaluating the quality of one or more food products.

[0049] Figure 6 is an example system diagram of components for determining food quality based on the techniques described herein.

[0050] Figure 7 is a conceptual diagram of an example camera box for determining food quality based on image data.

[0051] Figures 8A-8B Depicted is the analysis of lime color using image data.

[0052] Fig. 9 Depicted is the color analysis of agricultural products using image data.

[0053] Fig.10 Size distribution analysis using image data is depicted.

[0054] Fig.11 Depicted is hardness analysis using hyperspectral image (HSI) data.

[0055] Fig.12 Depicted is an example avocado firmness prediction using HSI analysis.

[0056] Fig.13 Another example avocado firmness prediction using HSI analysis is depicted.

[0057] Fig.14 Depicted is the pixel-by-pixel prediction of avocado firmness from the HSI data.

[0058] Fig.15 Depicted is a stem rot analysis using HSI data.

[0059] Fig.16Depicted is an example age analysis using HSI data.

[0060] Fig.17 Depicts example output of internal quality analysis of avocados.

[0061] Fig.18 is a block diagram of system components that may be used to implement a system for assessing the quality of one or more food products.

[0062] Fig.19 Depicted is an example mango wrinkle analysis using image data.

[0063] Fig. 20 Depicted is an example strawberry calyx browning analysis using image data.

[0064] Fig.21 Depicted is an example banana stage analysis using image data.

[0065] Figures 22A-22B Depicted is an example cherry stem color analysis using image data.

[0066] Fig.23 is a flow chart of a process for determining an overall quality metric for a food product. DETAILED DESCRIPTION

[0067] The present disclosure is directed to systems, methods, and computer programs for evaluating the quality of one or more foods based on image data. The disclosed techniques can be used to obtain image data of one or more foods, and determine the quality score of each food represented in the image data based on an evaluation of the image data. A model can be trained using machine learning techniques to process the image data and determine the quality scores of different quality metrics. As described herein, different quality metrics can be modeled and determined based on food and / or food type. A model can be dynamically selected based on the type of food depicted in the image data, and then the model is executed serially to form an accurate quality assessment of such food. Moreover, the disclosed techniques can be used to modify one or more supply chain operations based on the quality assessment of the food, in an effort to mitigate losses that may occur due to the quality level of the food not meeting certain thresholds.

[0068] With reference to the accompanying drawings, Figure 1A is a conceptual diagram of determining food quality based on image data. Computer system 150, imaging device 160, and user device 170 may communicate (e.g., wired and / or wirelessly) via network(s) 180. Computer system 150 may be configured to assess the quality of imaged food (such as produce), as described throughout this disclosure (e.g., with reference to Figure 1C , 6 ). The imaging device 160 may include an image sensor 106 and at least one light source 106A (eg, reference Figure 1C ). The imaging device 160 may be placed in a storage facility or at any other location along the supply chain. For example, the imaging device 160 may be a handheld device, such as a mobile phone or tablet computer, that a human user may use to capture images of the food. Figure 1A As depicted in , the imaging device 160 may be positioned above the conveyor belt 104 in the storage facility. Figure 7 Learn about alternative imaging device 160 configurations.

[0069] Imaging device 160 may be configured to continuously capture image data (A) of produce 102A-N as produce 102A-N moves along conveyor belt 104 to one or more storage locations or other destinations within a storage facility. Produce 102A-N may be fruit, such as avocados, or other food products that may enter a storage facility. For example, produce 102A-N may be received from a transportation provider at a storage facility and loaded onto conveyor belt 104. Produce 102A-N may be loaded into boxes, containers, pallets, and / or placed directly on conveyor belt 104. In some embodiments, as described in reference to FIG. Figure 7 As further described, the produce 102A-N may be static or not moving on the conveyor belt 104 in the storage facility. For example, some of the produce 102A-N may be randomly sampled and placed in a camera box (e.g., see FIG. Figure 7 A camera positioned in the camera box 700 may capture image data of the produce 102A-N, which may then be analyzed by the computer system 150 to obtain an estimate of the quality distribution of a batch of produce 102A-N.

[0070] Imaging device 160 may transmit the image data to computer system 150 (B). Computer system 150 may then apply one or more models to the image data to identify features of produce 102A-N (C). These features may indicate the quality of produce 102A-N. As described herein, models may be trained using machine learning techniques to identify specific features of different food products. Computer system 150 may select one or more models to apply in (C) based on the type of produce 102A-N identified in the image data. Furthermore, as described in the present disclosure, computer system 150 may apply a model to each of produce 102A-N identified in the image data.

[0071] Computer system 150 may then determine a quality metric score for each identified feature for each of agricultural products 102A-N in the image data (D). In some implementations, computer system 150 may determine an aggregate quality score for each of agricultural products 102A-N based on the quality metric score determined for each identified feature. Computer system 150 may transmit the quality metric scores to user device 170 (E). For example, computer system 150 may transmit each quality metric score for each of agricultural products 102A-N in the image data. Computer system 150 may transmit only some of the quality metric scores for each of agricultural products 102A-N. Computer system 150 may transmit only some of the quality metric scores for each of agricultural products 102A-N. In some implementations, computer system 150 may transmit only an aggregate quality metric score for each of agricultural products 102A-N.

[0072] In some embodiments, computer system 150 may also transmit the quality metric scores to a database for storage. The quality metric scores may be stored along with other historical measurements and additional metadata associated with each of agricultural products 102A-N. This stored information may be used in a feedback loop to continuously improve and train machine learning models used to perform the techniques described herein. For example, using previously determined quality metric scores, one or more higher-level models may be improved and / or trained to identify quality metrics that depend on seasonality, variety, size, country of origin, and other factors.

[0073] The user device 170 may output a quality metric and a corresponding score (F). The user device 170 may be a mobile device, smart phone, tablet, laptop, or other computer that may be used by relevant stakeholders in the supply chain. The stakeholders may view the quality metrics and scores for each of the agricultural products 102A-N to understand or analyze the return on investment (ROI) of the agricultural products 102A-N. The stakeholders may also use the output metrics and scores to monitor the quality of the agricultural products 102A-N over time and, optionally, make one or more supply chain modifications based on the current and / or projected quality of the agricultural products 102A-N.

[0074] In some implementations, a stakeholder may provide user input at user device 170 indicating what features or quality metrics are selected to score a particular produce 102A-N. This input may be received by computer system 150 and used to select which models to apply to the image data in (C). In some implementations, a stakeholder may also provide input at user device 170 indicating what selection of quality metric scores the user device 170 should receive. Thus, computer system 150 may transmit only the quality metric scores desired by the user in (E).

[0075] Optionally, user device 170 may determine one or more supply chain modifications (G) based on the output quality metrics and quality scores. User device 170 may automatically determine or otherwise recommend supply chain modifications for one or more of agricultural products 102A-N based on the corresponding quality scores of agricultural products 102A-N. In some embodiments, computer system 150 may determine or otherwise recommend supply chain modifications and transmit these recommendations to user device 170. Stakeholders at user device 170 may optionally execute, modify, or reject any recommended supply chain modifications. In some embodiments, stakeholders may also review the output quality metrics and scores and determine supply chain modifications to be executed.

[0076] Figure 1BIt is a conceptual diagram of generating models to determine different quality characteristics in food. As described throughout this disclosure, models can be generated for different foods, different food types, and different features associated with specific foods. Therefore, as shown in the figure, the computer system 150 can receive agricultural product image data 190. The image data 190 may include digital RGB images, hyperspectral images, and / or multispectral images, depicting specific agricultural products, agricultural product types, different agricultural products, different agricultural product types, single agricultural products, and / or a batch of agricultural products. The agricultural product image data 190 may include images, tables, and / or other data of specific agricultural products with a certain specific feature to be modeled (such as rot and dehydration), as well as images of the same type of agricultural products that do not have the specific feature to be modeled. For example, the agricultural product image data 190 may include a table stored in a data repository, which contains features extracted from the image of the agricultural product (e.g., rot, dehydration, probability of determining shelf life, etc.). In some embodiments, the agricultural product image data 190 may include images of the outside and / or inside of the agricultural product. In some embodiments, the agricultural product image data 190 may include images of specific agricultural products at different maturity stages and between maturity stages. The agricultural product image data 190 can be a robust collection of training data that indicates a number of different features that can exist and / or develop for a particular agricultural product throughout its life cycle. The agricultural product image data 190 can also be a collection of images of the same agricultural product taken from different angles, so that the entire agricultural product can be comprehensively analyzed using the techniques described herein. Moreover, in some embodiments, the agricultural product image data 190 can include labels for the characteristics, conditions, and / or qualities of the agricultural product. In yet other embodiments, agricultural product image data 190 that does not include labels can be used to learn such characteristics, conditions, and / or qualities of the agricultural product.

[0077] Computer system 150 may receive image data 190 (A). Image data 190 may be received from one or more imaging devices, such as imaging device 160 described throughout this disclosure (e.g., see FIG. 1 ). Figure 1A , 1C )) is received. Computer system 150 can identify features of the agricultural product from the image data (B). Computer system 150 can identify features that indicate the quality of the agricultural product. For example, computer system 150 can identify the color, rot, mold, different types of textures, bruises, etc. of the agricultural product from the RGB image data. Computer system 150 can also identify other features such as hardness and dry matter content from the hyperspectral image data. As further described in this specification, the identified features can be marked (e.g., reference Figure 3 ).

[0078] The computer system 150 can then generate a machine learning model (C) for the identified features. In some embodiments, the model can be generated and / or trained by one or more other computing systems, computers, device networks, and / or cloud-based services. For example, the model can be trained by a remote computer system, stored in a data repository, and accessed and executed by the computer system 150. The model can be generated using machine learning techniques, including but not limited to CNN. The model can be generated and trained using one or more other machine learning techniques. The computer system 150 can generate a model for each identified and labeled feature. Thus, each model can be trained to recognize specific features (e.g., reference images of the same type of agricultural product) during runtime use. Figure 3 , 6 ). Each model can also be trained to score the quality of the agricultural product based on the identified features. As an example, one model can be trained to recognize and score specific color changes in apples. Another example model can be trained to recognize and score texture changes on the skin of an avocado. Another illustrative model (e.g., a computer vision model) can be trained to recognize and score bruises in one or more different types of foods. Another illustrative model can be trained to recognize and score the hardness of one or more different types of foods. As another example, a model can be trained to recognize and score dry matter content. Another illustrative model can be trained to recognize hardness, bruises, and / or dry matter content based on analysis of HIS.

[0079] Another illustrative model can be trained to determine produce quality based on the temperature of the imaged produce. For example, thermal images can be used to assess the temperature of produce. If the temperature of a produce is outside the acceptable temperature range for that produce, then the produce may be spoiled. In addition, thermal images can be used to verify that the produce has been properly dried after the shelf life extension coating solution is applied. In order to obtain optimal, preferred, or beneficial performance of the shelf life extension coating solution, the fruit should be completely dried after the application process. Additional models can be trained to score the features identified by the models described above (e.g., reference Figure 1C , 6). The computer system 150 may then output the generated model (D). During runtime, one or more of the models may be applied to the image data to identify and score features indicative of the quality of the imaged agricultural product.

[0080] Figure 1C is a diagram of an example system 100 for assessing the quality of one or more food products based on image data. System 100 may include image sensor 106, extraction engine 110, food detection engine 120, quality assessment engine 130, and quality assessment engine 140. For purposes of this disclosure, an "engine" may include one or more software modules, one or more hardware modules, or any combination thereof.

[0081] Image sensor 106 may be used to generate image data 108 representing attributes of food products 102A-N, where N is any positive integer greater than 0 and represents the number of food products 102 on conveyor belt 104. Figure 1C In an example of , image sensor 106 can be arranged so that image sensor 106 can capture image data 108 representing one or more images of food 102A-N as food 102A-N advances along conveyor belt 104. In some embodiments, sensor 106 can include one or more hyperspectral sensors configured to capture hyperspectral data representing characteristics of food 102A-N. In such embodiments, each pixel of the hyperspectral image can correspond to a spectrum of infrared or ultraviolet light associated with the corresponding food, which is imaged by a camera equipped with one or more sensors operating in the corresponding spectral range. The spectrum of visible light can also be used to reconstruct an RGB image of food 102A-N. In some embodiments, sensor 106 can be a low-resolution digital camera (e.g., 5M or less), a high-resolution digital camera (e.g., 5MP or more), or any other type of sensor that can capture image data 108. Sensor 106 can cover a spectral range of 300nm-1700nm. One or more other sensors (such as sensors in a hyperspectral camera) can cover wavelengths in the range of 300nm-2500nm. One or more other cameras may be used, including but not limited to ultraviolet capture cameras.

[0082] In some embodiments, sensor 106 may include multiple sensors positioned at multiple angles relative to food products 102A-N. For example, sensor 106 may include a first camera and at least one additional second camera, each of which captures image data 108 of food products 102A-N from a different perspective. In such a configuration, one or more additional cameras may be used to generate image data 108 based on wavelengths of light different from or additional to the wavelengths of light captured by the first camera. In general, any set of wavelengths of light may be obtained by sensor 106.

[0083] Each particular camera in the one or more cameras can be configured to detect different or additional wavelengths of light in a variety of different ways. For example, in some embodiments, different sensors can be used in different cameras in order to detect different or additional wavelengths of light. Alternatively, or in addition, each of the one or more cameras can be positioned at different heights, different angles, etc. relative to each other in an effort to capture different wavelengths of light. In some embodiments, one or more cameras can be positioned, at least in part, to capture portions of food 102A-N that may be obscured from the field of view of the first camera.

[0084] In some embodiments, one or more light sources 106A may be used to illuminate food 102A-N so that image sensor 106 can clearly capture image data 108 of food 102A-N. Light source 106A may include one or more light sources, each of which produces the same or different electromagnetic radiation. In this example, light source 106A is depicted as being attached to image sensor 106. In some embodiments, light source 106A may be positioned at one or more locations near image sensor 106 so as to illuminate food 102A-N before and / or during capturing image data 108. In some embodiments, one or more light sources 106A may be selected based on the frequency of the electromagnetic radiation output. For example, in some embodiments, light source 106A may be a halogen light source. Alternatively or additionally, one or more light sources 106A may be diodes or a series of broadband light emitting diodes (LEDs) that may be used to provide light in a visible wavelength spectrum, a near infrared wavelength spectrum, an electromagnetic spectrum, or any other spectrum. In general, any light source may be used to provide any type of light to image sensor 106.

[0085] In some embodiments, one or more light sources 106A or a control unit for one or more light sources 106A may be communicatively connected to image sensor 106 or a control unit for image sensor 106. For example, image sensor 106 or a control unit for image sensor 106 may send a signal to one or more light sources 106A or a control unit for one or more light sources 106A to cause light sources 106A to illuminate food 102A-N with light of one or more specific wavelengths at a specific power and / or at a specific time. In some embodiments, the specific time may be a predetermined amount of time before or during the capture of image data 108.

[0086] Image data 108 generated by image sensor 106 may be provided as input to extraction engine 110. Image data 108 may include one or more images of food 102A-N. Such images may also include one or more HSIs. In some embodiments, image sensor 106 may directly provide image data 108 to extraction engine 110. Extraction engine 110 may then process image data 108. In some embodiments, image sensor 106 may store image data 108 in a data repository and / or memory device. Extraction engine 110 may then access the data repository and / or memory device to obtain and process image data 108.

[0087] The extraction engine 110 can obtain / receive the image data 108. Figure 1CAs shown in , image data 108 may be an image of multiple food products 102A-N. Thus, image data 108 may be composed of multiple images 108A-N, where each of images 108A-N corresponds to a food product 102A-N. Image data 108A-N may include depictions of n food products 102A-N. Image data 108A-N may also include a portion of the environment surrounding food products 102A-N, such as conveyor belt 104 or a food processing facility (e.g., Figure 7 102A-N) as described in the camera box 700 described in the drawings. The extraction engine 110 can process the obtained image data 108 and extract a portion 112 of the image data 108, as described throughout this disclosure. As shown, the extraction portion 112 can include the food 102A-N, but not the surrounding environment. In some embodiments, the extraction portion 112 can only include one of the food 102A-N.

[0088] An extracted image portion 112 of the image data 108 (referred to herein as an extracted image 112) can be provided as an input to a food recognition engine 120. In some implementations, the extraction engine 110 can provide the extracted image 112 directly to the food recognition engine 120. In some implementations, the extraction engine 110 can store the extracted image 112 in a memory device, which can then be accessed by the food recognition engine 120.

[0089] The food recognition engine 120 may use one or more object recognition algorithms and techniques to identify portions of the extracted image 112 corresponding to the food 102A-N. As an illustrative example, the food 102A-N may be an avocado. The food recognition engine 120 may be trained on multiple images of avocados to determine whether one or more avocados are depicted in the extracted image 112 and which areas of the extracted image 112 include an avocado. Thus, the food recognition engine 120 may be trained to determine a bounding box around each of the food 102A-N in the extracted image 112. The engine 120 may also be trained to generate output data in the form of annotated images 122 of the food 102A-N. When generating the annotated images 122, the engine 120 may be configured to annotate or otherwise index each of the bounding boxes 122A-N representing each of the food 102A-N. As described throughout this disclosure, a machine learning training model may then be applied to each of the bounding box areas 122A-N to determine a quality metric score for each of the food 102A-N. As described throughout this disclosure, system 100 may be used to assess the quality of different types of food products, including but not limited to citrus fruits, mangoes, apples, berries, stone fruits, tomatoes, meats, and / or vegetables.

[0090] In some implementations, annotated image 122 may include a coordinate system to annotate or index the location of each of food products 102A-N. Numerical values ​​(such as x and y values ​​in an x ​​and y coordinate system) may be used to represent the location of food products 102A-N in annotated image 122. Subsequent processing steps may use the numerical values ​​representing the location of food products 102A-N to determine the outer boundaries of each of food products 108A-N.

[0091] The annotated image 122 generated by the food recognition engine 120 can be provided as an input to the quality assessment system 130. In some embodiments, the food recognition engine 120 can directly provide the annotated image 122 to the quality assessment system 130. In other embodiments, the food recognition engine 120 can store the annotated image in a memory device, and then the quality assessment engine 130 can access the memory device to obtain and process the annotated image 122.

[0092] The quality assessment engine 130 may be configured to determine a quality metric score for each of the food products 108A-N depicted in the annotated image 122. As described throughout this disclosure, the engine 130 may use one or more machine learning training models to determine the quality metric scores. Each model may be trained to identify different features indicating the quality of the food products 108A-N. For example, each model may be executed by a different quality assessment engine 132A-N. Each quality assessment engine 132A-N may be configured to perform a specific quality assessment operation on the annotated image 122 of each of the food products 108A-N. The annotated images 122 may be processed serially by the engines 132A-N. This may be advantageous so that each engine 132A-N may form a more robust and accurate quality assessment for the food products 108A-N based on the quality assessment performed by the previous engines 132A-N. In some embodiments, the annotated images 122 may also be processed in parallel by the engines 132A-N.

[0093] As described throughout this disclosure, the quality assessment engines 132A-N can each perform a different quality assessment operation. In some embodiments, all engines 132A-N can be executed in series. In some embodiments, less than all engines 132A-N can be executed in series. For example, a particular set of engines 132A-N can be selected based on the type of food 108A-N in the annotated image 122. Moreover, in some embodiments, one or more of the engines 132A-N can be selected for execution, but other engines in the engines 132A-N can not be executed based on the quality assessment made by some of the engines 132A-N. For example, if engine 132A determines that the apple is of poor quality because it has browned, then it may not be necessary to execute engine 132B—the quality of the apple has been identified as poor. In some embodiments, one or more of the engines 132A-N can be executed in parallel. Parallel execution can be beneficial in reducing the amount of time required to process the annotated image 122 and perform multiple quality assessments of the food described herein.

[0094] In some embodiments, the set of quality assessment engines 132A-N can be configured based on the type of food 108A-N being analyzed. In some embodiments, the set of quality assessment engines 132A-N can be configured based on the business practices of the business entity implementing the system 100. In some embodiments, the set of quality assessment engines 132A-N can be configured based on the business practices of the business entity implementing the system 100. In some embodiments, the set of quality assessment engines 132A-N can be configured based on the business practices of the business entity implementing the system 100. Figure 1A The user computing device 170 in the system dynamically selects the set of quality assessment engines 132A-N based on the quality preferences identified by the end user of interest.

[0095] Because engines 132A-N may be arranged in series and / or in parallel, output data generated by each quality assessment engine 132A-N may be analyzed, and if the output data of any serially arranged engine 132A-N does not meet a predetermined quality threshold, then quality assessment system 130 may generate output data indicating that the depicted food product 108A-N is of poor quality.

[0096] The quality assessment engine 140 may be configured to assess the overall quality of the food products 108A-N based on the quality metric scores determined by the engines 132A-N. For example, the engine 140 may determine the aggregate quality of each of the food products 108A-N. The engine 140 may also determine the aggregate quality of a batch of food products 108A-N. The engine 140 may also determine one or more supply chain modifications based on each of the quality metric scores determined by the engines 132A-N. As an illustrative example, if the quality assessment engine 132A measures internal quality and the engine 132A generates an output indicating that there is decay in one or more of the food products 108A-N, then the quality assessment engine 140 may trigger an operation that causes one or more of the food products 108A-N to be discarded. As another example, if the engine 132B measures shelf life and the engine 132B generates an output indicating that one or more of the food products 108A-N have a shortened shelf life, then the quality assessment engine 140 may trigger an update to the distribution plan of one or more of the food products 108A-N so that the food products 108A-N are distributed and sold before their shelf life expires. For example, the quality assessment engine 140 may generate instructions that cause one or more food products 108A-N to be delivered to a supplier that is geographically closer to the facility that contains the food products 108A-N in order to reduce the amount of time that the one or more food products 108A-N are in transit. Alternatively, or in addition, one or more food products 108A-N that have a limited shelf life may be directed to a refrigerated unit in order to preserve the life of the food products 108A-N. Many other example operations may be determined and performed based on the quality metric scores determined by the engines 132A-N (e.g., the engines may provide a quantitative means of distinguishing between different batches of food products based on the aggregated quality scores).

[0097] As described throughout this disclosure, the quality metric scores generated by the engines 132A-N can be numerical, binary, and / or Boolean values. The scores can be numerical values ​​on a predefined scale. The scores can also be values ​​such as "good", "bad", "poor", "average", "excellent", "medium", "sufficient", etc. As another example, the output data can be a vector of one of two different values ​​for each depicted food 108A-N, which provides an indication of the quality of each food 108A-N being acceptable or unacceptable. The overall quality score of each depicted food 108A-N can also be determined based on the vector of scores output by the engines 132A-N. One or more different values ​​can be defined based on the practices of the supply chain and / or relevant stakeholders in the supply chain.

[0098] In some embodiments, an overall quality score 134A-N may be generated for each of the food products 108A-N in the output image 134. The overall quality scores 134A-N may be viewed by relevant stakeholders in the supply chain. The stakeholders may view the scores 134A-N and determine one or more modifications to the supply chain. The quality metric scores generated by the engines 132A-N may also be output in one or more other forms for review by relevant stakeholders. For example, the scores may be output as a vector for each of the food products 108A-N.

[0099] Figure 2 is a flow chart of an overview process 200 for determining food quality based on image data (e.g., see Figure 1A ). Process 200 may be performed by computer system 150. Process 200 may also be performed by one or more other computing systems, devices, and / or servers.

[0100] Referring to process 200, computer system 150 may receive image data at 202. As described throughout, the image data may be received from an imaging device. The image data may also be retrieved from a database, data repository, or other repository storing image data of a particular agricultural product. The image data may include images of a particular agricultural product, the quality of which should be determined based on different features visible from the image data. The image data may also include images of an agricultural product, the quality of which may be determined based on features that are not visible. Such features, such as dry matter, may be learned from the image data.

[0101] The computer system 150 may then identify characteristics of the produce at 204. As part of identifying the characteristics, the computer system 150 may apply ground truth labels to the image data at 206. Characteristics such as rotten, moldy, ripe, dehydrated, etc. may be identified from the image data and labeled accordingly. Some characteristics, such as hardness and dry matter, may not be visible in the image data and may therefore be labeled using other techniques, such as destructive techniques involving a durometer and / or a penetrometer.

[0102] A model may then be generated for each identified produce feature at 208. As described throughout, models may be generated based on color, shape, texture, spectral response (e.g., for multispectral data), anything else that is visible from the image data, and / or anything else that is not visible from the image data but may be derived as ground truth measurements of the produce.

[0103] Then, during runtime, the computer system 150 may receive image data of the agricultural product in 210. The image data may be captured by the imaging device 160. The computer system 150 may then apply one or more generated models in 212. In some embodiments, the computer system 150 may select which models to apply based on the image data received in 210. For example, the computer system 150 may use object recognition technology to identify the type of agricultural product captured by the image data. The computer system 150 may then retrieve one or more models associated with the identified type of agricultural product from a data repository or other database storing the generated models. In some embodiments, the computer system 150 may use metadata (e.g., country, agricultural product type, etc.) that is part of the image data about the agricultural product to determine which models to retrieve. The models may be applied serially or in parallel.

[0104] Computer system 150 can determine a quality metric score for the attributes identified by the model at 214. In some embodiments, the model can be trained to score the identified attributes. In some embodiments, one or more other models or analysis engines can be configured to score the attributes identified by the model applied at 212. In some embodiments, an overall / aggregate quality metric score can also be determined for the agricultural product based on all attributes identified by the model.

[0105] At 216, computer system 150 may output a quality metric score for the produce. As described herein, the score may be displayed to a user device of a relevant stakeholder in the produce supply chain (e.g., a reference Figure 1A ) is outputted at. The quality metric score can be represented by a numerical value, a Boolean value, and / or text. For example, the score can be determined on a scale (e.g., 1 to 100, 1 to 5, etc.). The scale can be determined by relevant stakeholders in the supply chain. As an example, a quality metric score of 1 can indicate poor quality, and a score of 5 can indicate good or high quality. As another example, the score can be "true" or "false", where "true" can indicate good quality and "false" can indicate poor quality. As yet another example, the score can include "good quality", "poor quality", "average", "mature", "overripe" or any other descriptive string that can be used to identify the quality of agricultural products.

[0106] The computer system 150 may optionally determine supply chain modifications at 218. In some embodiments, as shown in FIG. Figure 1A As described, the user device and / or relevant stakeholders can determine the supply chain modification. In some embodiments, the computer system 150 can automatically determine and / or implement the supply chain modification. The modification can be determined based on the quality metric score of the agricultural product.

[0107] In some embodiments, computer system 150 may identify agricultural products in the image data received in 210. Once agricultural products are identified, computer system 150 may proceed to perform blocks 212-218 in process 200. To identify agricultural products, computer system 150 may use a general object detection model to find all bounding boxes around agricultural products in the image data. The general object detection model may be trained to detect any type of agricultural products with high accuracy. Computer system 150 may determine whether agricultural products appear in the image data. If agricultural products do appear in the image data, computer system 150 may return all bounding boxes with agricultural products. The returned bounding boxes may be further processed and analyzed. Computer system 150 may then sort and process the returned bounding boxes to identify the type of agricultural products in each bounding box. Computer system 150 may utilize an agricultural product analyzer and / or one or more machine learning models trained to identify agricultural products appearing within a bounding box. CNNs and / or image classification models may be used to positively identify agricultural products within a bounding box. Each returned bounding box may be processed in a separate job (e.g., in a serial manner). In some embodiments, the returned bounding boxes may also be processed in parallel. In some implementations, computer system 150 may identify the produce in advance by analyzing metadata associated with the image data. Sometimes, for example, the metadata may indicate what type of produce appears in the image data. Finally, if the produce does not appear in the image data, then the bounding box may not be returned for further processing and analysis.

[0108] Figure 3 is a flow chart of a process 300 for generating a model based on image data to determine different quality characteristics in a food product (e.g., see Figure 1B ). As described throughout this disclosure, multiple models can be generated based on the training image data set. Models can be generated to identify different features associated with different foods, different types of foods, and / or different subcategories of foods. Process 300 can be performed by computer system 150. Process 300 can also be performed by one or more other computing systems, devices, and / or servers.

[0109] Referring to process 300, computer system 150 may receive image data at 302. The image data may be image data of a particular agricultural product. The image data may also be collected from processed and unprocessed agricultural products. The image data may include images of the exterior and / or interior of the agricultural product. The image data may also include multiple images of the agricultural product throughout its life cycle. The image data may include images of the same type of agricultural product.

[0110] Computer system 150 may identify features of the produce from the image data at 304. For example, object detection techniques may be performed on the image data to detect the produce, identify the produce, and then perform additional extraction steps to pick out one or more specific features of the produce. Example features may include rot, bruises, dehydration, color, mold, texture, etc. Other example features include non-visible features, including but not limited to firmness, dry matter, brix, etc. Each specific feature extracted from the image data may be labeled.

[0111] The computer system 150 can then generate a model for the identified agricultural product features at 306. The model can be generated using machine learning techniques such as CNN. For example, a CNN can be used to train a model to identify specific features from labeled image data. Thus, during runtime, the model can identify specific features of the agricultural product from the image data received during runtime. As another example, a partial least squares method (PLS) can be used to generate a model for evaluating spectral data. Such a model can be used to determine hardness and / or dry content.

[0112] As an illustrative example, image data of oranges may be received (302). Using segmentation and analysis techniques, dehydration may be a feature that a computer system identifies (304). Image data of oranges that show signs of dehydration may be labeled as dehydrated, while image data of oranges that do not show signs of dehydration may be labeled as good oranges. Using a CNN, an orange dehydration model may be trained to distinguish image data that shows dehydration from image data that does not show dehydration (306). For example, the model may be trained to analyze each patch and / or pixel in the image data to see if an orange is present, and if so, whether the orange appears to show signs of dehydration based on the labeled image data. If the orange appears to show signs of dehydration, the model may be trained to label or otherwise classify / label the oranges in the image data as dehydrated. The model may also be trained to label the oranges using other descriptors to indicate dehydration, including but not limited to numeric, Boolean, and / or string values.

[0113] Next, computer system 150 can determine whether there are more features of the produce in the image data (308). For example, object detection techniques can be performed again. Using such techniques, one or more additional features of the produce can be extracted from the image data. In the above example of limes, if a first model is generated for the first feature of dehydration, a second model can be generated for the second feature of color change, and so on. One or more other and / or additional models can be generated for one or more other features that can be identified from the image data.

[0114] If there are additional features, the computer system 150 can return to box 304 and repeat 304-308 for each remaining feature of the agricultural product. Therefore, multiple models can be generated based on a collection of image data. Optionally, the computer system 150 can receive additional training image data to generate models to identify additional features of agricultural products. Generating multiple models can be beneficial to ensure that more robust and accurate quality assessments are performed on agricultural products. After all, each model can be trained to specifically identify and optionally score specific features of agricultural products. Each model can be adjusted to identify specific features, but can also receive the output of other models as input. Therefore, serial execution of models can be beneficial to building more robust and accurate agricultural product quality assessments.

[0115] If no additional features are required to generate the model, then the computer system 150 can output the generated model (310). Outputting the generated model can include presenting the model to a user at a user device. The user can then select one or more models to apply at runtime. Outputting the generated model can also include storing the model in a data repository or other database. The model can then be retrieved by the computer system 150 during runtime.

[0116] Figure 4A-4B is a flow chart of a process 400 for determining food quality using a model during runtime. The process 400 may be performed by the computer system 150. The process 400 may also be performed by one or more other computing systems, devices, and / or servers.

[0117] refer to Figure 4A-4B In process 400 of both figures, computer system 150 can receive image data of food at 402. The image data can represent multiple food products. In some embodiments, the image data can represent only one food product. As described throughout, the image data can be received from one or more imaging devices in an environment (e.g., a storage facility) along the supply chain. In some embodiments, the image data can be received from a user device (such as a mobile phone, smart phone, laptop computer, and / or tablet computer). A sensor (e.g., a camera) of a user device can be configured to capture an image of a food product. For example, a consumer can use a user device to capture an image of an apple in a grocery store. This image data can be transmitted from the user device to computer system 150 for processing.

[0118] Computer system 150 may then perform object detection techniques to identify a bounding box for each food item in the image data (404). Computer system 150 may also use a CNN or other machine learning training model to identify a bounding box for each food item. For example, a deep learning object detector may be trained to identify or otherwise locate all food items that appear in the image data. A bounding box may be generated for each identified food item so that feature and quality analysis may be performed on each identified food item with respect to its bounding box.

[0119] Computer system 150 may determine a grid structure based on the bounding boxes at 406. In other words, computer system 150 may perform indexing and assign an index to each bounding box that makes up the grid structure of the image data. Each identified food product may receive one of the indexes, which may be used to identify the food product. To determine the grid structure, computer system 150 may (1) find the content that most likely represents a row of food products based on the Y height of the bounding box, and then (2) sort the entire data frame based on the X position. Thus, a grid may be determined, and an index value may be assigned to each bounding box within the grid structure, which may be used to identify the food product that appears within the bounding box. One or more machine learning training models may also be used to determine the grid structure and assign indexes.

[0120] Determining the grid structure and indexing the structure in 406 can facilitate associating the determined quality metric scores with the food products appearing in the image data. After all, each food product can have a different quality score, so each determined quality score should be assigned to an index of the corresponding food product. Moreover, assigning index values ​​to food products can facilitate associating additional metrics and data about the specific food product with the quality metric scores determined by the computer system 150. Therefore, the computer system 150 can construct a more robust and accurate quality metric score for a specific agricultural product.

[0121] In some embodiments, the grid structure can also be useful for facilitating searching all image data of food products to identify and / or output food products with specific features and / or quality scores. This can be useful for training the models described herein to more accurately identify and score quality features. This can also be useful for relevant stakeholders in the supply chain who are interested in monitoring food products and / or analyzing ROI.

[0122] Computer system 150 may select a bounding box for a particular food product depicted in the image data at 408. In other words, computer system 150 may select one of the food products depicted in the image data to evaluate using one or more models described herein.

[0123] Next, the computer system 150 may apply one or more machine learning training models serially to the selected bounding boxes (410). For example, the computer system 150 may pass the bounding box portion of the image data through a CNN model that assesses the quality of the food based on color. As described throughout this disclosure, the computer system 150 may select one or more models to apply serially to the bounding boxes and / or food classifications. The model may be selected based on the type of food, user (e.g., stakeholder) preferences, and / or any features required to assess the quality of the food. Each model may be executed serially independently of one another.

[0124] Advantageously, the serial execution model can automate the quality assessment process, which may normally require a human worker to visually inspect and observe the quality, size, shape, color, etc. of a particular food product. The serial execution model is also advantageous in providing deeper analysis and discovery based on the output of previously executed models. Thus, as an example, the quality metric score output by a first model can be received as input into a second model. The quality metric score output by the second model can then be received as input into a third model, and so on.

[0125] As another example, a first model may identify browning on the skin of a fruit. The first model may then extract features in the image data that indicate browning. These extracted features may be provided as input to a second model, which may be trained to identify the ripening stage of the fruit based on the browning. The second model's determination of the ripening stage of the fruit may then be provided as input to a third model. The third model may be trained to determine an overall quality metric score for the food based on the ripening stage, which is based on the browning. Thus, a more robust quality metric assessment may be performed. It will be appreciated that any number of models may be used in any order to perform a robust quality metric assessment.

[0126] Furthermore, in some embodiments, models may be implemented and trained to determine whether any additional models should be run on the image data of a food product. For example, a first model may determine whether a food product is rotting. If the first model determines that the food product is rotting, then the computer system 150 may decide not to implement additional models that may analyze other quality characteristics of the food product (such as yellowing), after all, if the food product is considered to be of poor quality due to the identified rotting, then applying the additional models will not improve the quality score of the food product.

[0127] In 412, the computer system 150 can determine a quality metric score for the food. As previously described, the score can be a numeric value, a Boolean value, and / or a string. The score can be based on a user-defined scale (e.g., 1 to 100), true (e.g., indicating good quality) and false (e.g., indicating poor quality), or other descriptors that can be used to describe the quality of the food identified from the image data. The quality metric score can also be determined for each model applied to the image data. In some embodiments, the computer system 150 can determine the aggregate quality score of the food based on one or more outputs of the model applied to the image data. Moreover, in some embodiments, the quality score of the food can be output from the last model applied in series. For example, if three models are applied in series, the output of the first model becomes the input of the second model, the output of the second model becomes the input of the third model, and the output of the third model becomes the quality score of the food. The computer system 150 can convert the output of the third model into a value representing the quality score. For example, the output of the third model can indicate that rot is detected in the image data. The computer system 150 can convert the rot indication into a numeric value, a Boolean value, and / or a string representing poor quality, or assign these values ​​in other ways.

[0128] Computer system 150 may then store the quality metric score of the food using the grid index of the food (414). Computer system 150 may associate the quality metric score with the grid index assigned to the food in 406. Thus, the quality metric score may be stored in a data repository or other type of database. The quality metric score may be retrieved by computer system 150 and presented on one or more user devices. Thus, the quality metric score may be used for future analysis and monitoring of a particular food. In some embodiments, the quality metric score may also be used in future training data sets to improve the model and increase the accuracy of the model.

[0129] Computer system 150 can determine whether additional food items are depicted in the image (416). For example, computer system 150 can determine whether there are more indexed bounding boxes in the grid structure that have not yet been assigned a quality metric score. In some implementations, computer system 150 can check a data repository to see which grid indexes have been assigned a quality metric score.

[0130] If there are additional food items in the image data, the computer system 150 may return to block 408 and repeat 408-416 for each remaining food item in the image data. For example, the computer system 150 may select a bounding box with a grid index that has not been assigned any quality metric score. Blocks 408-416 may be performed to score the quality of the food item that appears in the selected bounding box.

[0131] If there are no more additional foods in the image data, the computer system 150 can output a quality metric score for the foods in the image data (418). The quality metric score can be presented in a variety of ways. For example, the quality metric score can be depicted using an image or portion of the image data representing the food. Foods classified as poor quality can be represented by an output that includes a close-up image of scratches or other features on the food that can cause the food to be of poor quality. As another example, a spectrogram can be used to depict the quality metric score. Thus, the actual color of the food can be depicted to illustrate the reason for the poor quality of the food. The quality metric score can also be output as any value assigned by the computer system 150. In other words, the quality metric score can be output as a numeric value, a Boolean value, and / or a string.

[0132] In some embodiments, the computer system 150 may output one or more quality metric scores for one or more food items based on user preferences. For example, a user at a user device may provide an input to the user device requesting to view quality metric scores for a subset of food items depicted in the image data. The input may also request to view a subset of quality metric scores for a specific food item represented in the image data. As another example, the input may request to view a quality metric score for a specific food item represented in the first image data and a quality metric score for another food item represented in the second image data. One or more other user inputs may be used to generate a quality metric output for display at the user device.

[0133] Alternatively, in 420, the computer system 150 can determine one or more supply chain modifications. As described throughout the present disclosure, the modification can include changing the location to which the food is shipped, changing the amount of time for the food to be stored, changing the storage conditions, applying ripening agents or other treatments to the food, discarding the food, moving the food to be shipped to the final consumer, moving the food to be shipped to the food processing plant, etc. For example, if the food is scored as poor quality, the computer system 150 can determine that the food can be discarded, shipped to the food processing plant, and / or shipped to the grocery store closest to the current location of the food in the geographical location. As another example, if the food is scored as good quality, the computer system 150 can determine that it can be stored longer than other foods, and / or can be shipped to a grocery store farther from the current location of the food in the geographical location. As another example, if the food is scored as starting the ripening process, the computer system 150 can determine that the food can start to be transported to its destination location, can apply ripening agents or other treatments to the food, can change the storage conditions of the food, and / or can store the food for a longer time. Based on the quality score assigned to the food, it is possible to make one or more other modifications. One or more other modifications may also be possible based on user-specified preferences associated with different quality metrics.

[0134] Figure 5 is another flow chart of a process 500 for evaluating the quality of one or more food products (e.g., see Figure 1C ). Process 500 may be performed by computer system 150. Process 500 may also be performed by one or more other computing systems, devices, and / or servers.

[0135] Referring to process 500, computer system 150 may receive image data of a number of food items in an environment at 502. For example, computer system 150 may obtain first data representing an image. The image may include (i) a first portion depicting one or more food items and (ii) a second portion depicting at least a portion of an environment in which the one or more food items are located.

[0136] Computer system 150 may index food items in the image data, as described herein, at 504. Computer system 150 may then identify portions of the image having food items at 506. For example, this may include identifying portions of the first data corresponding to an image region represented by the first portion that depicts one or more food items.

[0137] Next, computer system 150 may identify sub-portions of the portion that each include a food product (508). For example, computer system 150 may identify sub-portions of the identified portion of the first data. Each sub-portion may correspond to an area of ​​the portion of the first data that depicts a specific food product of the one or more food products.

[0138] The computer system 150 may input each sub-portion into a quality assessment system in 510. In other words, the computer system 150 may apply the machine learning training model serially to each sub-portion (512). As described throughout this disclosure, the quality assessment system may include one or more models that are trained to identify and / or score different quality metrics of the food depicted in the first data. Therefore, the computer system 150 may provide the identified portions of the first data as input to the food quality assessment system. The food quality assessment system may include one or more quality assessment engines that may be configured to generate output data indicating the quality attributes of the food depicted by the obtained image. The quality assessment system may be part of the computer system 150. In some embodiments, the quality assessment system may be different / separate from the computer system 150.

[0139] The computer system 150 can then determine a quality metric score for each food in each sub-portion (514). For example, the computer system 150 can determine a quality assessment score for each specific food in the one or more food products based on output data generated by one or more quality assessment engines of the food product quality assessment system. Thus, the computer system 150 can determine a quality score for each food product. In some implementations, the computer system 150 can determine an aggregate quality score for a batch of food products represented in the obtained image.

[0140] Computer system 150 may store the quality metric scores determined for each food product based on the index of the food product (516). As described throughout, the scores may be stored in a data repository, a database, a cloud storage device, or other type of memory device. The scores may be retrieved later by computer system 150 or one or more other computing systems / devices for further analysis, monitoring, and output operations.

[0141] Figure 6 is an example system diagram of components for determining food quality based on the techniques described herein. Computer system 150 , food quality data repository 600 , and model data repository 660 may communicate (eg, wired and / or wirelessly) via network(s) 180 .

[0142] Computer system 150 may include object detection engine 602 (e.g., Figure 1C Food recognition engine 120, Figure 1C , the extraction engine 110 in, and / or a combination of the food recognition engine 120 and the extraction engine 110), an indexing engine 604, a quality assessment engine 606 (e.g., Figure 1C , the quality assessment system 130 in the example of FIG. 1 ), the quality assessment engine 608 (e.g., Figure 1C 140) and a model training engine 609. In some implementations, one or more of components 602, 604, 606, 608, and 609 may be separate from computer system 150 and part of one or more other computer systems, computers, servers, devices, and / or networks.

[0143] The model training engine 609 can be configured to generate one or more models that can be used by the quality assessment engine 606 (e.g., reference Figure 3). Engine 609 can receive training image data of food. Engine 609 can identify features associated with food from the training image data. The identified features can be annotated or otherwise labeled. Then, a model can be trained using machine learning techniques (e.g., CNN) to identify the labeled features in the image data. As described throughout this disclosure, engine 609 can also train one or more models to score the identified features.

[0144] The generated and trained models can be stored as quality models 662A-N in the model data repository 660. The quality models 662A-N can be accessed and / or retrieved by one or more analyzers of the quality assessment engine 606 during runtime. As described throughout this disclosure, during runtime, only some of the models 662A-N can be selected based on the type of food in the image data and / or user preferences for quality assessment of (one or more) specific food products in the image data. In some embodiments, the quality models 662A-N can be updated or otherwise modified based on the application of the models to the image data at runtime.

[0145] The object detection engine 602 can be configured to detect one or more food items in the image data, as described throughout this disclosure (e.g., with reference to Figure 4A -B). Engine 602 can receive the image data and perform object detection techniques to process the image data. Engine 602 can also apply one or more machine learning models that are trained to identify food in the image data. Engine 602 can generate a bounding box around each food in the image data. For each food 650A-N, engine 602 can store a bounding box image of the food 656 in the food quality data repository 600.

[0146] In some embodiments, the object detection engine 602 can calibrate the colors in the bounding box portion of the image data to maintain color consistency throughout the image data. In some embodiments, color calibration can be performed by a separate engine, such as a color calibration engine (not depicted). Color calibration can be applied to the entire image data as a pre-processing step prior to object detection and / or object extraction. Once the image data is calibrated based on color, RGB image analysis as described throughout this disclosure can be performed.

[0147] The indexing engine 604 may be configured to apply a grid structure to the image data and index each bounding box in the structure (e.g., reference Figure 4A-B). Each bounding box can encompass the food represented in the image data. For each food 650A-N, the engine 604 can retrieve a bounding box image 656 from the food quality data repository 600 and assign an index value to the bounding box. Thus, each food can be identified by the assigned index, which can be beneficial for future information retrieval, analysis, and processing operations. For each food 650A-N, the engine 604 can store a grid index 658 in the food quality data repository 600.

[0148] The quality assessment engine 606 may be configured to identify one or more features (e.g., reference Figure 4A -B). Engine 606 can retrieve a bounding box image 656 of each food 650A-N from the food quality data repository 600. The bounding box image 656 can be used by the analyzer to determine the quality of the food. Engine 606 can also retrieve one or more quality models 662A-N from the model data repository 660 for execution during runtime. Engine 606 can select quality models 662A-N based on the determination made by object detection engine 602. For example, engine 602 can determine that the food identified in the image data are all apples. Engine 602 can notify quality assessment engine 606 that the food is apple. In some embodiments, food identification can also be fed into quality assessment engine 606 from a network of computing systems, computers, devices, data storage and / or cloud-based services. Then, quality assessment engine 606 can retrieve one or more quality models 662A-N associated with apples from model data storage 660. Once retrieved, one or more analyzers can execute models 662A-N serially.

[0149] Although in Figure 6 The analyzers are depicted and described in one order, but the analyzers may be depicted and executed in any one or more other orders. The order of execution may be determined by the quality assessment engine 606. The order of execution may also be determined by a user at a user device. In some embodiments, the order of execution may be determined by the computer system 150. The order of execution may be based on the type of food in the image data. The order of execution may also be based on the specific quality features being evaluated. Moreover, the order of execution may be based on user preferences.

[0150] The quality assessment engine 606 may include a plurality of analyzers, each of which may be configured to identify a different quality feature in the food product based on the image data. Thus, each model 662A-N may be executed by a different analyzer. Figure 66, but additional analyzers may be included in engine 606. Thus, engine 606 may include one or more additional or fewer analyzers. For each food product 650A-N, each of the analyzers may receive a bounding box image 656 of the food product.

[0151] For example, the quality assessment engine 606 may include a color analyzer 610, an apple yellowing analyzer 612, a lime yellowing analyzer 614, an avocado internal analyzer 616, a lime rot and dehydration analyzer 618, a shelf life analyzer 620, a produce grade analyzer 622, a size analyzer 624, a shape analyzer 626, a cooked coating analyzer 628, a dry matter analyzer 630, a firmness analyzer 632, a Brix analyzer 634, a nutrition analyzer 636, a sticker analyzer 638, an acid analyzer 640, a universal internal defect analyzer 642, a universal color analyzer 644, a wrinkle analyzer 670, a calyx browning analyzer 672, a banana stage analyzer 674, a cherry stem color analyzer 676, and / or a universal external defect analyzer 678. One or more additional analyzers may include a pore oxidation (black spot) analyzer (e.g., for mangoes) or other types of analyzers that may be generally applicable to determining quality characteristics of different types of food products and / or specifically applicable to specific types of food products. More specifically, analyzers 612, 614, 644, 672, 674, and 676 may be a subset of color analyzer 610 and are merely illustrative examples of color analyzers. In addition, any of analyzers 672, 674, and / or 676 may be used to identify and extract median color values, which may then be used to determine quality attributes of the bulk of the food product (e.g., using analyzer 676 to determine the bulk or surface of cherries and using analyzer 672 to determine the bulk or surface of strawberries). The techniques described with reference to analyzers 610, 612, 614, 644, 672, 674, and 676 may be applied to other types of color analyzers for determining the quality of other types of food products based on the type of food product and / or the color of the food product. Similarly, avocado internal analyzer 616 may be a subset of general internal defect analyzer 642 and is merely an illustrative example of an internal defect analyzer. One or more other internal defect analyzers may be generated to evaluate internal defects based on food type and / or internal defect type. Also, lime rot and dehydration analyzer 618, dry matter analyzer 630, firmness analyzer 632, cooked coating analyzer 628, and wrinkle analyzer 670 may be subset analyzers of general external defect analyzer 678 and are merely illustrative examples of external defect analyzers. One or more other external defect analyzers may be generated to evaluate external defects based on food type and / or external defect type.

[0152] For each food product 650A-N, output from any one or more analyzers may be stored as analyzer quality scores 652A-N in food product quality data repository 600. In some embodiments, output from any one or more analyzers may also be received as input into one or more analyzers, as described throughout this disclosure.

[0153] refer to Figure 6 , color analyzer 610 can be configured to analyze bounding box image 656 to determine the color of the food and the quality characteristics corresponding to the color. Color analyzer 610 can be applied to any type of food in image data. Color analyzer 610 can also be configured to identify colors corresponding to different quality characteristics of different types of food. For example, analyzer 610 can determine that yellowing of apples indicates poor apple quality, while yellowing of lemons can indicate good lime quality. Using a machine learning training model, color analyzer 610 can determine the median Euclidean distance in the color space represented by bounding box image 656 relative to a reference color. The reference color can be different for each type of food that the color analyzer can analyze. In some embodiments, analyzer 610 can process image 656 of the food and output data indicating the median distance of the food from the reference color. This output can then be received by one or more other analyzers. The output data can also include an indication of the quality of the food, such as good quality or poor quality.

[0154] As an illustrative example, in some embodiments, the analyzer 610 can process all image data for a particular food by identifying a color sample for each food (e.g., limes, apples, avocados, and other types of agricultural products where color can be a feature for determining agricultural product quality). All possible colors of the food can then be mapped to a color space (e.g., CIELAB space or other three-dimensional color space). The analyzer 610 can then reduce this multi-dimensional space to a one-dimensional space by identifying the direction in which one or more color samples change the most (e.g., exceed a color change threshold level) and predicting (e.g., anticipating) the color change of each food along the identified direction. Thus, the analyzer 610 can identify a one-dimensional quality metric for each food based on the predicted change in the color of the food. The one-dimensional quality metric can be a value in the range of 4 to 80. One or more other ranges can be used, which can be based on the type of agricultural product being imaged. The analyzer 610 can then identify the quality level of each food as good quality based on determining that the one-dimensional quality metric of the food is within a threshold quality range. The analyzer 610 can also identify the quality level as poor quality based on determining that the one-dimensional quality metric of the food is not within a threshold quality range. The threshold quality range can be based on historical data, such as customer preferences, the quality and / or color of foods that customers typically purchase and / or consume, and / or other factors. This process can effectively accurately evaluate and score the color of different types of foods. This process can also be computationally simple and fast, thereby utilizing less time and computing resources to determine the quality of a food based on color.

[0155] The apple yellowing analyzer 612 can be configured to analyze food (such as Granny Smith apples) to determine the degree of yellowing of such food. In some embodiments, a Gaussian mixture model can be used to evaluate the yellowing color of apples. Therefore, the analyzer 612 can be configured to detect poor quality food. The analyzer 612 can process the bounding box image 656 or the output from one or more other analyzers to generate output data indicating the yellowing score of the food. In some embodiments, the output can be a numerical score in the range of 0 to 100, where 0 indicates that the apple is not yellow, and 100 indicates that the apple is the maximum degree of yellow (e.g., the yellowest). An apple with a score of 100 may be overripe and therefore of poor quality, while an apple with a score of 0 may not yet be mature and may be of good quality (or the quality may not be clear because it is too early to judge in the life cycle of the apple). In some embodiments, the apple yellowing analyzer 612 can perform a processing technique similar to the analyzer 610 described above.

[0156] As an illustrative example, color analyzer 610 may be executed for an image of an apple. Color analyzer 610 may generate an output indicating that the color of the apple is primarily yellow. However, analyzer 610 may not be trained to gather more insights about what a primarily yellow coloration means. Therefore, the output from color analyzer 610, which may be a tile of an apple image that includes primarily yellow, may be received as an input to an apple yellowing analyzer 612. Analyzer 612 may be trained to evaluate the primarily yellow color and determine what that coloration means in terms of apple quality. Therefore, analyzer 612 may score the primarily yellow color and output the score. Analyzer 612 may also output an indication of good or poor quality of the apple based on the score.

[0157] In another scenario using the above example, if color analyzer 610 generates an output indicating that the color of the apple is green throughout the image, then color analyzer 610 can be trained to generate an output indicating that the apple is of good quality. Therefore, it may not be necessary to execute apple yellowing analyzer 612 because analyzer 612 will return a score of 0, which only confirms the assessment of analyzer 610. Because analyzer 612 may not be executed, processing time can be reduced. Computing resources can also be allocated to run other models and evaluate features in other foods. In some embodiments, analyzer 612 can still be executed serially as a means of confirming the accuracy of the determination of color analyzer 610.

[0158] Still referring to the analyzer of the quality assessment engine 606, the orange yellowing analyzer 614 can be configured to analyze food (such as oranges) from the image data to determine the degree of yellowing of such oranges. The engine 614 can generate output data indicating the yellowing score of each orange. For example, the output score can be in a value range (e.g., 0 to 4, where 0 indicates that the orange is not yellow and 4 indicates that the orange is maximally yellow). One or more different value ranges can be used. The engine 614 can also determine that the maximally yellow oranges are overripe and therefore of poor quality. The engine 614 can be trained to grade the degree of yellowing of the oranges using a Gaussian mixture model and a support vector regressor.

[0159] The avocado internal analyzer 616 can be configured to analyze the image data of the cut avocado to determine the overall quality of the food. For example, some image data can include images of the cut food. These images can be analyzed by the analyzer 616. In some embodiments, the analyzer 616 can generate output data indicating whether each cut avocado is of excellent quality, medium quality or poor quality. The overall quality score of excellent quality, medium quality or poor quality can also be expressed as a score (e.g., a numerical value and / or a Boolean value), which can be mapped to one or more of the quality categories mentioned above: excellent, medium or poor. Such a score can be determined based on a plurality of intermediate values ​​generated by the analyzer 616. In such embodiments, the intermediate value can include a Boolean value determined for features such as diffuse browning, vascular browning, pulp adhesion, internal rot, stem rot, tissue damage or any combination thereof. The intermediate value can also include a numerical value, such as a probability value within one or more ranges (e.g., a range of 0 to 1). Moreover, the analyzer 616 can execute one or more different machine learning training models, each of which can be configured to recognize the different features listed above. In some implementations, analyzer 616 may execute a model that may be trained to recognize any combination of the features listed above.

[0160] Lime rot and dehydration analyzer 618 may be configured to analyze a food product, such as limes, to determine the level of rot and / or dehydration of the limes depicted in the image data. Analyzer 618 may generate output data indicating a binary or Boolean classification of rot, dehydration, or both. Analyzer 618 may be trained to recognize features in image 656 that may be early signs of rot and / or dehydration as well as current rot and / or dehydration.

[0161] The shelf life analyzer 620 can be configured to analyze the food to infer or predict the maturity level (e.g., maturity), remaining shelf life, or both under a set of one or more predetermined conditions. The analyzer 620 can generate output data indicating a score based on a maturity scale. In some embodiments, this score can be mapped to a certain number of days remaining before each food reaches a peak maturity. The maturity level can be determined based on color and / or food quality. Maturity can also be determined from hyperspectral and / or multispectral images by identifying the hardness and / or dry matter of the food. As an illustrative example, in avocados, maturity is related to hardness (e.g., the softer the avocado, the more mature it is). Therefore, a hardness analyzer can be used to evaluate hyperspectral image data and determine a hardness value. The hardness value can then be associated with the maturity level of the avocado.

[0162] Produce grade analyzer 622 may be configured to analyze the food represented in bounding box image 656 to determine a grade, such as a USDA specification grade. Analyzer 622 may generate output data indicating a score for the food that correlates the quality of the food to a grade assigned by the USDA. The score may indicate an assessment of the color, shape, delicacy, and / or any combination thereof of the food.

[0163] The size analyzer 624 can be configured to determine the size of the food from the bounding box image 656. The analyzer 624 can generate output data indicating the scale of the food. The size analyzer 624 can be trained to identify reference points in the image data and determine the size of the food relative to the reference points in the bounding box. In some embodiments, the output data indicating the size of the food can be evaluated to determine whether the food is within the predetermined size range of the standard food bin. The data indicating the size of the food can be represented by a Boolean value. For example, if the food is within the range of the standard bin size, a Boolean value such as 1 can be generated for the food. Alternatively, in such embodiments, when the food size is not within the range of the standard bin size, a 0 value can be generated for the food. In some embodiments, the output data can be the scale of the determined food. In some further embodiments, the data indicating the size of the food can be represented by a numerical value. For example, an avocado may be represented by a variety of numerical size values ​​including, but not limited to, 28 (13.75-15.70 ounces), 32 (11.75-14 ounces), 36 (10.50-12.50 ounces), 40 (9.50-11.50 ounces), 48 (7.50-9.50 ounces), 60 (6.25-7.50 ounces), 70 (4.75-6.25 ounces), and 84 (3.75-4.75 ounces).

[0164] Shape analyzer 624 can be configured to determine whether the shape of the food depicted in image 656 matches the predetermined shape metric of the particular type of food. Analyzer 624 can be trained to recognize the shape of the food in image 656 and compare the shape with the desired shape of the same type of food. For example, the image data of cucumbers can be analyzed to determine whether the cucumber has a certain level of curvature. Cucumbers with a desired level of curvature can be identified as good quality, while cucumbers without a desired level of curvature can be identified as poor quality. One or more other identifications can be performed based on whether the food meets the desired shape metric. Analyzer 624 can generate output data, such as a score for food. The output data can also indicate the degree to which the predetermined shape metric is embodied in the food and / or the degree of deviation of the shape of the food relative to the desired shape.

[0165] General external defect analyzer 678 can be configured to determine whether one or more external defects are present on the surface of the food product depicted in image 656. Analyzer 656 can implement one or more machine learning models that are configured to recognize and evaluate visible light and / or infrared light in image 656 to determine whether one or more external defects are present on the surface of the food product. For further discussion of general external defect analyzer 678, refer to the discussion of analyzers 618, 628, 630, 632, and 670.

[0166] The curing coating analyzer 628 can be configured to determine the presence, thickness, absence or combination of the curing coating on the food depicted in the image 656. The analyzer 628 can use the spectral reflectance profile to identify the coating on the surface of the food. The spectral reflectance profile can be measured using a multi-spectral and / or hyperspectral imaging device. The analyzer 628 can generate output data indicating whether the food has a curing coating, the thickness of the curing coating or the absence of a curing coating. In some embodiments, the output data (such as a numerical value of 0) can indicate that there is no coating, and any value greater than 0 and less than 1 can indicate the presence of the coating and the corresponding thickness of the coating. For example, an output value closer to 1 can indicate a thicker curing coating than a value closer to 0.

[0167] Dry matter analyzer 630 can be configured to determine the dry matter level in the food depicted in image 656. Analyzer 630 can use hyperspectral image data to determine the dry matter level. For example, analyzer 630 can implement a machine learning training model that uses visible light and infrared spectral reflectance data to identify and quantify dry matter. Analyzer 630 can generate output data, such as a score indicating the dry matter level. The output data can be a numerical value, wherein a 0 value can indicate that there is no dry matter in the food, and any value greater than 0 and less than 1 can indicate the level of dry matter occurring in the food. Therefore, compared with a value close to 0, an output value closer to 1 can indicate more presence or more amount of dry matter in the food.

[0168] The hardness analyzer 632 can be configured to determine the hardness level of the food depicted in the image 656. The analyzer 632 can use the hyperspectral image data to determine the hardness level. For example, the analyzer 632 can implement a machine learning training model that uses visible light and infrared spectral reflectance data to identify and quantify the hardness of the food. The analyzer 632 can generate output data, such as a score indicating the hardness level. The output data can be a numerical value within a range, such as 0 to 1. A value of 0 can indicate that the depicted food is hard and inedible, while any value greater than 0 and less than 1 can provide an indication that the hardness is not hard. For example, an output value closer to 1 can indicate that the food is softer, has a lower hardness, and / or is close to the maximum softness that the food should have. In some embodiments, and depending on the type of food, the maximum softness can indicate that the food is of good quality and can be eaten by consumers. In some embodiments, the maximum softness can indicate that the food is of poor quality and is no longer the hardness desired by consumers for consumption.

[0169] The Brix analyzer 634 can be configured to determine the sugar level of the food in the image 656. The analyzer 634 can use the hyperspectral image data to determine the sugar content. For example, the analyzer 634 can implement a machine learning training model that uses visible light and infrared spectral reflectance data to identify and quantify the sugar content associated with the food. The analyzer 634 can generate output data, such as a score indicating the sugar level. The score can be a numerical value on a scale. For example, the scale can be 0 to 1, where 0 can indicate that sugar is not detected in the food. Any value greater than 0 and less than 1 can indicate the level of sugar in the food, where a value closer to 1 can indicate that the level of sugar in the food is higher. The analyzer 634 can also be configured to determine and output the sweetness or acidity value of the food in the image 656. For example, a value closer to 1 can indicate that the food is sweeter than a food with a value closer to 0. In some embodiments, 1 can indicate the maximum sweetness expected by the food. In some embodiments, 1 can represent the maximum acidity expected by the food. The analyzer 634 can also determine the quality of the food based on the maximum sweetness or acidity of the food. For example, if a food has a value of 1 indicating maximum sweetness or sourness, then, depending on the type of food, analyzer 634 may determine that the food is of poor quality because consumers may not want to eat something that is too sweet or too sour. As another illustrative example, if a food has a value of 0.5, then analyzer 634 may determine that the food has a preferred sweetness or sourness level and is therefore of good quality.

[0170] Nutritional analyzer 636 can be configured to determine the nutritional level of food. Analyzer 636 can use hyperspectral image data to determine nutritional content. For example, analyzer 636 can implement a machine learning training model that uses visible light and infrared spectral reflectance data to identify and quantify the nutritional content of food. Analyzer 636 can generate output data, such as a numerical value on a scale. For example, on a scale of 0 to 1, 0 can indicate that the food has no nutritional value, while any value above 0 and less than 1 can indicate a nutritional level in the food.

[0171] The sticker analyzer 638 can be configured to detect and interpret information on stickers or other labels attached to food. The image 656 can depict a food with a label attached thereto. If a label is present, the analyzer 638 can be trained to detect the label. Using image processing techniques and optical character recognition (OCR) techniques, the analyzer 638 can read the label and collect additional information about the food. For example, the analyzer 638 can determine information such as the name of the food, a barcode or other agricultural product identifier associated with the food, a customer name or identifier, a sale date, a shelf life, a place of origin, a destination location, and the like. The analyzer 638 can generate output data that includes decoded text or identifiers on the label. The output can also include a close-up image of the label extracted from the image 656 by the analyzer 638.

[0172] Acid analyzer 640 can be configured to determine the acid level of the food depicted in image 656. Analyzer 640 can use hyperspectral image data to determine acid level (pH). For example, analyzer 640 can implement a machine learning training model that uses visible light and infrared spectral reflectance data to identify and quantify the acid level of food. Analyzer 640 can generate output data, such as a score indicating the acid level, which can be a numerical value on a scale. An example scale can be 0 to 1, where a value of 0 can indicate that there is no acid in the food. A value greater than 0 and less than 1 can indicate the acid level in the food.

[0173] The general internal defect analyzer 642 can be configured to analyze an undamaged food product to determine the overall quality of the internal portion of the food product in the image 656. For example, the analyzer 642 can receive a hyperspectral image of the food product or other hyperspectral image data. Using the hyperspectral data, the analyzer 642 can generate output data indicating whether the undamaged food product has internal defects. One or more machine learning models can be used to evaluate the hyperspectral data and determine internal defects. For example, hyperspectral imaging utilizes different parts of the electromagnetic spectrum. Some bands in the spectrum are able to penetrate certain materials. The penetration depth depends on the band and the material being imaged. For example, for some foods, spectral bands can penetrate and interact with the internal portion of the fruit, so that the resulting image of the food contains information about the internal state of the fruit. This allows the analyzer 642 to detect internal defects using one or more machine learning training models. In some embodiments, the analyzer 642 can also identify these spectral features of the presence and / or absence of internal defects in the flesh of the food product. Internal defects can include bruises, rot, diseases, etc. The analyzer 642 can be trained to determine internal defects of any type of food product. The generated output data can include a Boolean or binary classification indicating whether the food product has internal defects. The output data may also indicate what type of internal defects the food product may have.

[0174] The universal color analyzer 644 can be configured to determine the grade level and other quality features of the food in the image 656 based on the analysis of the color of the food. The analyzer 644 can be trained to determine the grade level and quality features of any type of food. The analyzer 644 can generate output data indicating the grade of the food, which can be a numerical value. The numerical value can be mapped to one or more overall food quality categories. These categories can include excellent, medium and poor quality. The numerical value can also be mapped to one or more other quality descriptors.

[0175] Analyzer 644 may be trained using images of different types of food that have been labeled with a specific food quality category. Moreover, analyzer 644 may be trained to identify the quality of food based on an RGB model of the food in image 656. Analyzer 644 may generate output data as a Boolean flag indicating whether the food meets an RGB quality test. Analyzer 644 may be trained to identify color features in image 656 pixel by pixel. As another example, analyzer 644 may be trained to identify the quality of food based on a hyperspectral image (HSI) model of the food. Analyzer 644 may generate output data as a Boolean flag indicating whether the food meets an HSI quality test. Analyzer 644 may be trained to perform hyperspectral cube processing to identify the quality of food from image 656.

[0176] Wrinkle analyzer 670 can be trained to identify the percentage of wrinkle coverage on a food. The food may include mangoes. The food may additionally or alternatively include bell peppers. Wrinkle analyzer 670 may also be applied to analyze one or more other types of food, the quality of which may be defined or otherwise affected based on the amount of wrinkles on the surface of the food. Analyzer 670 may employ machine learning algorithms, models, or other machine learning techniques to identify and quantify the amount of wrinkles that appear on the surface of the food. Using these techniques, analyzer 670 may be trained to predict the total percentage of wrinkle coverage on the food from image 656. In some embodiments, analyzer 670 may perform binary classification using machine learning techniques to determine whether the food has wrinkles (e.g., assigning a binary value of 1) or no wrinkles (e.g., assigning a binary value of 0). As an illustrative example, wrinkle analyzer 670 may use image processing techniques to cut image 656 into tiles, boxes, or other predefined areas. Analyzer 670 may apply one or more machine learning techniques (such as a trained classifier) ​​to each tile to determine whether the tile has wrinkles. Once each tile is analyzed, the analyzer 670 can generate an overall wrinkle coverage score for the food product by averaging, summing, or otherwise combining the determinations for all tiles. In some embodiments, the overall wrinkle coverage score can be an overall wrinkle coverage percentage. For further discussion, see Fig.19 .

[0177] Calyx browning analyzer 672 can be trained to identify calyx browning on food (such as strawberries). Over time, strawberries will develop calyx browning, which can indicate a low quality level of strawberries. Analyzer 672 can use one or more image processing techniques described herein to identify color features indicating calyx browning in image data of strawberries. For example, color calibration can be performed on the image data of strawberries, and the object detection techniques described herein can be applied to generate a bounding box around each strawberry that appears in the image data. The color analysis techniques described herein can be applied to each bounding box so that the color of the strawberries in the bounding box is classified. Moreover, analyzer 672 can implement an algorithm to isolate various aspects or parts of strawberries, including but not limited to calyx, berry body, seeds, etc., and then quantify the overall color of each of those aspects / parts of isolation separately. Therefore, like cherry stem analyzer 676 described further below, analyzer 672 can be used to rate the quality of specific aspects or parts of isolated cherries. Statistical distribution (e.g., mean, median color value, mean color value, outlier color value removal) can be performed on the classified colors to identify the statistical average color value of strawberries. The analyzer 672 can then perform a binary determination of whether the strawberry has calyx browning based on the statistical average color value (e.g., if the statistical average color value is a threshold color value or within a threshold color value range, then the strawberry will be classified as having calyx browning). The analyzer 672 can assign a quality score to the strawberry represented by the image data based on the binary determination. The quality score can be a string value, such as "good", "fair", and "poor". As an illustrative example, if the analyzer 672 determines that the statistical average color value does not match the threshold color value, then the strawberry can be assigned a "good" quality score. As another example, if the analyzer 672 determines that the statistical average color value is within a threshold color value range, then a "fair" quality score can be assigned. As another example, if the analyzer 672 determines that the statistical average color value matches the threshold color value for calyx browning, then a "poor" quality score can be assigned.

[0178] Analyzer 672 can implement one or more machine learning training rules, techniques, and / or models to analyze strawberries in image data, as described herein. For example, analyzer 672 can determine a median color value for the food product based on applying a calyx browning training model to a bounding box containing the food product, and assign a quality level score for the food product based on the median color value of the food product. The quality level score can be assigned a string value of (i) "good" based on the median color value being less than a first threshold color range, (ii) "fair" based on the median color value being greater than the first threshold color range and less than a second threshold color range, and (iii) "poor" based on the median color value being greater than the second threshold color range. Reference Fig. 20 for further discussion.

[0179] The banana stage analyzer 674 can be trained to identify the stage of bananas from the image data to determine the quality level of bananas. Consumers can determine the maturity based on the peel color, brown spots and / or hardness of bananas to make a purchase decision of bananas. Therefore, the appearance of banana peels is very important for consumers to decide whether to buy bananas. The color of bananas changes from full green to full yellow with spots over time, indicating different maturity or freshness. Therefore, the analyzer 674 can apply any color analysis technology described herein to identify the color of banana peels and associate the identified color with the maturity stage. The analyzer 674 can implement a machine learning training model to perform these technologies. For example, the model can be trained using training data indicating bananas that have been annotated at different maturity stages. Thus, the model can identify the maturity stage of bananas from the color analysis of the image data of bananas. As an illustrative example, the analyzer 674 can determine the color value of the food based on applying the banana stage analyzer training model to the bounding box containing the food in the image data, and assign the quality level score of the food based on mapping the color value of the food to the expected threshold color value of multiple maturity stages. The quality level score can be a string value indicating the current maturity stage of the food. For further discussion, see Fig.21 .

[0180] The cherry stem color analyzer 676 can be trained to identify and classify the color of cherry stems in the image data to determine the quality level of the cherries. The analyzer 676 can use one or more image processing, color analysis, and / or machine learning techniques described herein to analyze the color of the cherry stems. For example, the analyzer 676 can apply a machine learning training model to the image data of the cherries to perform the disclosed technology. Using object detection techniques and / or models, the analyzer 676 can identify the cherries in the image data and generate a bounding box around the cherries. The analyzer 676 can then use object detection techniques to isolate the stems in the bounding box and mask the stems with the original image data for color quantization. The analyzer 676 can determine the average or mean color value of the stems and then associate the average color value with a quality score. For example, the quality score can be a string value of "good", "poor", or "fair". An average color value that meets a first threshold color value range can be assigned a quality score of "good". An average color value that meets a second threshold color value range but does not meet the first threshold color value range can be assigned a quality score of "fair". The average color value that satisfies the third threshold color value (and optionally also satisfies the second threshold color value range) but does not satisfy the first threshold color value range can be assigned a quality score of "poor". One or more other techniques described herein can be used to quantify the color value of the cherry stems to determine the quality level of the cherries. For further discussion, refer to Fig.22A -B.

[0181] As described throughout the text, the example analyzers mentioned above are not used to limit the scope of the present disclosure. Instead, the quality assessment engine 606 can use any type of analyzer. Similarly, the characteristics of the input and output for each example analyzer should not be considered as limiting. The analyzer can be configured and / or trained to generate other types of output data and receive other types of input data. As an illustrative example, one or more of the analyzers mentioned above can be trained to generate numerical scores of different ranges. Different quality indicators can also be assigned to values ​​in different ranges based on food, the type of food, the quality characteristics identified and / or user preferences.

[0182] Still refer to Figure 6 In the computer system 150 in the quality assessment engine 608, the quality assessment engine 608 can be configured to receive the output of one or more analyzers from the quality assessment engine 606. The engine 608 can convert the output into a quality metric score. As described herein, the score can be a numerical value, a Boolean value and / or a string value. The engine 608 can also be configured to generate supply chain modifications based on the output from one or more analyzers. In addition, the engine 608 can be configured to generate an overall quality score for each food represented in the image data. The engine 608 can also determine which information / scores to output to display on the user device. For each food 650A-N, the engine 608 can store the analyzer quality score 652A-N (e.g., the output from the analyzer and / or the score generated by the engine 608 based on the output of the analyzer) and the overall quality score 654 in the food quality data repository 600.

[0183] As an illustrative example, the quality assessment engine 608 can determine an overall quality metric for the food product based on applying nested rules to the output from the one or more analyzers described above to determine a quality category (e.g., a bucket) to which to assign the overall quality metric. Fig.23 Further discussion is provided. In some embodiments, engine 608 can determine an overall quality metric based on weighting and blending the determinations or outputs from the analyzers. In other words, based on the type of food, quality assessment engine 608 can combine the received determinations or outputs to generate an overall quality metric or score for a particular food (e.g., an overall quality score 654 for each food 650A-N).

[0184] As an illustrative example, the quality assessment engine 608 may receive a color score of a mango from the color analyzer 610 and a wrinkle coverage score of the mango from the wrinkle analyzer 670. Customers may be more concerned about wrinkle defects in mangoes when making a purchase decision. Because the quality, edibility, and / or marketability of mangoes may therefore depend more on the degree of wrinkles on the surface of the mangoes than on the color of the mangoes, the quality assessment engine 608 may apply one or more mango-specific rules that give a greater weight to the wrinkle coverage score than the color score to determine the overall quality metric of the mangoes. Based on this weighting, the quality assessment engine 608 may make a binary decision, i.e., the analyzed mango is marketable / unmarketable and / or edible / unedible. A binary decision may be made based on applying one or more rules to each score and / or combination of scores provided for a food, such as applying a marketability threshold that may depend on the type of food. In some embodiments, the marketability threshold may also vary based on how consumers rank various quality attributes (e.g., mold, wrinkles, color, sweetness, hardness, abrasions) of each food type.

[0185] Taking mango as an example, if the wrinkle coverage score is 80% coverage (regardless of the value assigned to the color score) and the mango's marketability threshold is 65%, then a binary decision can be made that the mango is not marketable. The overall quality metric can be a Boolean value, such as whether the analyzed food is marketable or not marketable.

[0186] Any combination of rules and / or thresholds may be used to determine an overall quality metric for the analyzed food, wherein the combination of rules and / or thresholds may vary based on the type of food being analyzed and the criteria by which consumers and / or retailers consider the analyzed food to be sellable, unsellable, edible, inedible, of good quality, of poor quality, and / or of average quality. Thus, each type of food that may be analyzed using the disclosed techniques may have a different set of defined characteristics / attributes used to determine an overall quality metric for that food.

[0187] As mentioned above, the disclosed technology is used to establish a quality metric scale for different types of food, regardless of how retailers and consumers may each define food quality and whether retailers and consumers can define such quality metrics. Therefore, the disclosed technology is used to establish a scale for quantifying quality for different types of food to satisfy consumers' interest in quality.

[0188] Figure 7is a conceptual diagram of an example camera box 700 for determining food quality based on image data. The camera box 700 can receive a plate 708 (e.g., a tray, a batch) of agricultural products 710A-N (e.g., avocados). A camera 704 located within the camera box 700 can capture image data of the agricultural products 710A-N on the plate 708. The image data can be transmitted to one or more of the computer system 150 (e.g., for processing), the user device 170 (e.g., for display), and / or the food quality data repository 600 (e.g., for storage) via the network 180. The image data can be processed using the techniques described herein to determine the quality characteristics of each of the agricultural products 710A-N. For example, one or more of the models described herein can be executed locally on the computer system 150 to process the image data and determine the quality characteristics of the agricultural products 710A-N. The output of this processing can be transmitted and / or uploaded to a cloud-based service, such as the food quality data repository 600. User device 170 may then retrieve this output and present it to relevant stakeholders, such as scientists or other users assessing the quality of produce 710A-N at a storage facility and / or packing house.

[0189] The camera box 700 may include walls on each side, a ceiling, and a cover 712 along one of the walls so that the tablet 708 can be placed inside the camera box 700 and removed from the camera box 700 once imaging is complete. The cover 712 can seal or otherwise cover the opening in the wall so that no ambient or external light can enter the camera box 700.

[0190] The camera 704 can be positioned along the camera support 702. The camera support 702 can be configured to the ceiling of the camera box 700. The camera support 702 can be made of aluminum tubes (e.g., 3 aluminum tubes) and a tee connector. The camera 704 can be attached to any of the aluminum tubes via a camera mount. One of the tubes can extend from the tee connector to a first wall of the camera box 700, a second tube can extend from the tee connector to a second wall opposite the first wall, and a third tube can extend from the tee connector to a third wall perpendicular to the first wall and the second wall.

[0191] Thus, the camera 704 can be oriented downward. The camera 704 can be centered within the camera box 700 along the camera support 702. Sometimes, the camera 704 can be off-center along the camera support 702. In some embodiments, the camera box 700 can include multiple cameras. For example, additional cameras can be placed along the camera support 702, which extends between any walls of the camera box 700. In some embodiments, additional cameras can be placed within the camera box 700 and along the walls instead of the camera support 702 attached to the ceiling of the camera box 700. Therefore, the tablet 708 can be imaged from a variety of different angles.

[0192] Camera 704 can be any type of imaging device described herein, including but not limited to an RGB camera, a hyperspectral imaging device, a multispectral imaging device, a thermal imaging device, and / or any combination thereof. In some embodiments, camera 704 can be part of a magnetic resonance imaging (MRI) scanning system and / or a nuclear magnetic resonance (NMR) imaging system.

[0193] The camera 704 may also be configured to one or more predetermined settings. As an illustrative example, the camera 704 may be set to manual mode, with a shutter speed of 1 / 20, an F-stop of F18, a lens zoom of 18 mm, and a dimmer set to maximum. Furthermore, the image size may be large, the white balance may be set to direct sunlight, the active D-lighting may be set to off, the ISO sensitivity may be 200, the autofocus may be set to auto-area autofocus, the flash may be off, the image rotation may be off, the HDR may be off, the long exposure NR may be off, the high ISO NR may be off, and the vignetting control may be normal. One or more other camera and capture settings may differ based on the settings, configurations, and / or components of the camera box 700.

[0194] One or more lights 706A-N may also be positioned throughout the camera box 700 to illuminate the flat panel 708. The lights 706A-N may provide uniform illumination within the camera box 700 so that the camera 704 can better capture images. The lights 706A-N may be LEDs. In some embodiments, lights 706A and 706C may be positioned / attached to the camera support 702 along the camera support 702 to provide uniform illumination from the ceiling of the camera box 700. In some embodiments, lights (such as lights 706B and 706N) may be positioned along any wall of the camera box 700. One or more other lighting configurations are possible. Moreover, in some embodiments, a diffuser may also be positioned / attached to the camera support 702 along the camera support 702. A plastic diffuser may be placed along the length of the ceiling of the camera box 700 with an opening designated for the camera 704. A cloth-like fabric diffuser may also be used and placed along the length of the ceiling of the camera box 700 with an opening designated for the camera 704.

[0195] The camera box 700 can be located in a storage facility, packing house, warehouse, or other storage environment where the produce 710A-N can arrive / stored until shipped to customers. One or more plates of each category of treated produce (e.g., produce coated with a shelf-life extending coating solution) and untreated produce (e.g., produce not coated with any type of shelf-life extending coating solution) can be placed into the camera box 700 one at a time and imaged. Thus, the plates can be imaged and processed over time to determine the quality changes that the treated produce and the untreated produce may have experienced. A worker can place the plates into the camera box 700. The plates can also be automatically guided into the camera box 700 by a conveyor belt. For example, the camera box 700 can be on an assembly line in a storage facility to more automatically and in real time analyze the quality of the produce as it is conveyed throughout the storage facility.

[0196] Fig. 8A -B depicts an analysis of the color of lime 800 using image data 802. Fig. 8A , image data 802 of a slab (e.g., a batch, a pallet) of oranges may be captured using any of the techniques described herein. The image data 802 may be a hyperspectral image. The image data 802 may then be processed. For example, the image data 802 may be cropped 804 so that only the slab with the oranges is depicted. The object detection model (e.g., reference Fig. 9 The object detector model 902 in the cropped image data can be applied to the cropped image data to detect the oranges 806. For example, a bounding box can be determined for each orange. In some embodiments, detecting the oranges 806 can also include explicitly identifying a type of produce in each bounding box. Once each orange in the cropped image data is detected (806), a color analysis model (e.g., reference Fig. 9 Color analyzer model 904 in Figure 6 808) is applied to each bounding box 808. The color analysis model can output a numerical value indicating the quality level of each orange in the image data 802. In some embodiments, a general color analysis model can be applied, such as the color analyzer model 904. In some embodiments, an orange color analysis model, such as the orange yellowing analyzer 614, can be applied.

[0197] Here, limes assigned values ​​of 1 to 9 appear greener, which is a more preferred color. Limes assigned values ​​of 10 to 22 appear yellower, which is a less preferred color. Limes assigned values ​​of 23 to 33 appear dark yellow or brown, which is the least preferred color. For other lime slabs, the range of values ​​assigned and the quality designation based on color may be different.

[0198] Figure 8B Another lime quality analysis output 810 is depicted, which may be based on Fig. 8A The color 808 is analyzed and generated. Fig.17 As further described, output 810 may display a color-coded bounding box around each identified lime. Limes of good quality (e.g., based on having a color within a desired threshold range) may be surrounded by a green bounding box, while limes of bad or poor quality (e.g., based on having a color that does not fall within a desired threshold range) may be surrounded by a red bounding box. Output 810 may also include, for each bounding box, an indication of whether the lime is of good quality or of bad quality. One or more quality characteristics identified based on applying color analysis 808 to image data 802 may also be output with each bounding box. For example, a lime surrounded by a green bounding box with an indication of "good" may still have some quality characteristics that have been identified and therefore output in output 810, such as "Y1" representing yellowing with a severity of 1, and "Y2" representing yellowing with a severity of 2. The limes surrounded by a red bounding box and with a "poor" indication may have one or more quality characteristics that have been identified and therefore output in output 810, such as "Y1", "Y2", "Y3" for yellowing with a severity of 3, "DS" for dehydration, and "RT" for rot. As described throughout this disclosure, one or more other quality characteristics may also be presented in output 810.

[0199] Fig. 9 Depicted is a produce color analysis 900 using image data. Color analysis 900 can be applied to a variety of different types of produce, including but not limited to apples, limes, avocados, zucchini, and cucumbers. Color analysis 900 can be performed by executing one or more models in series. In some implementations, color analysis 900 can be performed by executing models in parallel.

[0200] Here, the object detector model 902 can be executed in combination with the color analyzer model 904. In some embodiments, both the object detector model 902 and the color analyzer model 904 can be trained to analyze the color of any type of agricultural product. Sometimes, the object detector model 902 can be trained to recognize any type of agricultural product, while the color analyzer model 904 can be trained to recognize the quality of a specific type of agricultural product. Sometimes, the object detector model 902 can be trained to recognize a specific type of agricultural product, while the color analyzer model 904 can be trained to recognize the quality of any type of agricultural product. In yet other embodiments, the object detector model 902 can be trained to recognize a specific type of agricultural product, while the color analyzer model 904 can be trained to recognize the quality of a specific type of agricultural product.

[0201] The object detector model 902 can be trained to recognize any type of agricultural product using deep learning techniques such as CNN. As an example, the model 902 can be trained using approximately 200,000 images containing 80 different agricultural product classes. The model can be trained using a region proposal network (RPN) to simultaneously predict a bounding box around each agricultural product in the image and assign a confidence score to each predicted bounding box. A region-based convolutional neural network (R-CNN) can also be used to extract the predicted bounding boxes, and then forward propagation is performed on each predicted bounding box to detect and extract the agricultural product represented therein. In some embodiments, the object detector model 902 can also be trained to actively identify a specific type of agricultural product in each bounding box. In some embodiments, one or more other image classification models can be applied to determine the specific type of agricultural product in each bounding box.

[0202] Still referring to color analysis 900, an image 906 of agricultural products can be captured using the techniques described herein. Object detector model 902 and color analyzer model 904 can be applied to image 906 to generate output 908. Output 908 can indicate the color change of agricultural products over time. Untreated agricultural products 912 (e.g., without a coating or similar shelf-life extension coating solution) change color faster and in a shorter time than treated agricultural products 910 (e.g., with a coating or similar shelf-life extension coating solution). Therefore, using the techniques described herein, the quality of agricultural products can be tracked over multiple days. The techniques described herein also verify that coating agricultural products with a shelf-life extension coating solution (as shown in treated agricultural products 910) can cause the agricultural products to change color more slowly, thereby maintaining higher quality for a longer period of time.

[0203] Fig.10Depicted is a size distribution analysis 1000 using image data. Size distribution analysis 1000 can be applied to a variety of different types of produce, including but not limited to apples, limes, avocados, zucchini, and cucumbers. Size distribution analysis 1000 can be performed by executing one or more models in series. In some embodiments, size distribution analysis 1000 can be performed by executing models in parallel.

[0204] Here, object detector model 902, color analyzer model 904, and size analyzer model 1002 can be applied to image data 1004. Output 908 from color analyzer model 904 can be used in combination with output 1006 from size analyzer model 1002 to determine overall quality information about processed produce 1008 and unprocessed produce 1010. For example, processed produce 1008 may change color more slowly over time and have a preferred or desired size. Therefore, processed produce 1008 may have better quality on average than unprocessed produce 1010.

[0205] As described herein, the size analyzer model 1002 can be trained to predict the size of each produce imaged in the image data 1004 (e.g., reference Figure 6 ). Model 1002 can also be trained to classify produce based on the predicted size. Model 1002 can also be trained to determine over time how much produce is classified as each predicted size.

[0206] The size analyzer model 1002 can output a bounding box around each identified produce in the image data 1004. The model 1002 can also determine a numerical value representing the predicted size of the produce in each bounding box. The numerical value can then be output, for example, in the bounding box for each produce. In the image data 1004, the size analyzer model 1002 identifies produce with the following sizes: 48, 60, and 70.

[0207] The size analyzer model 1002 can also generate an output 1006, which is a histogram representing the size distribution. The X-axis of the histogram indicates the size of the produce. The Y-axis of the histogram indicates the weekly load. Each bar in the histogram indicates the total production. Therefore, as shown in the output 1006, there are about 12 batches of produce with a size range of about 49 to 55 per week, and there is about 1 batch of produce with a size of 33 per week.

[0208] Fig.11Depicted is a hardness analysis 1100 using hyperspectral image (HSI) data. The hardness analysis 1100 can be applied to a variety of different types of produce, including but not limited to apples, limes, avocados, zucchini, and cucumbers. The hardness analysis 1100 can be performed by executing one or more models in series. In some embodiments, the hardness analysis 1100 can be performed by executing the models in parallel.

[0209] Here, the object detector model 902 can be used in combination with the hardness analyzer model 1102. Figure 12-13 Further discussion of training the hardness analyzer model 1102 (e.g., Fig.12 The ripeness prediction model in FIG. 1100 ). The agricultural product may be imaged 1104 using an imaging device (such as a hyperspectral imaging camera). The object detector model 902 and the hardness analyzer model 1102 may be applied to the image data 1104 to generate a hardness output 1106. As described below with reference to Figure 12-13 As further described, hardness output 1106 may provide a color indication (e.g., a color-coded bounding box) and a numerical value indicating the overall hardness and / or maturity identified for each produce. A hardness distribution output 1108 may also be generated. Hardness distribution output 1108 may be a histogram depicting the distribution of the identified hardness for all produce in image data 1104. Output 1108 may also be color-coded to depict different hardness levels determined for a particular slab / batch of produce in image data 1104. For example, in Fig.11 In the example of FIG. 1104 , avocados with an identified firmness value less than 15 are identified as relatively ripe, avocados with an identified firmness value between 15 and 29 are identified as medium (e.g., perfect / ideal ripeness), and avocados with an identified firmness value greater than 29 are identified as relatively firm. Output 1108 may plot firmness on an X-axis and frequency on a Y-axis (e.g., how many avocados in a slab / batch were identified as having a particular firmness value and / or range of firmness values).

[0210] Fig.12An example avocado firmness prediction 1200 using HSI analysis is depicted. As described throughout this disclosure, hyperspectral images of agricultural products (such as avocados) can be captured and used to identify features (such as firmness) that are not visible to the human eye. Models can be trained using the techniques described herein to infer firmness from hyperspectral images. Hyperspectral images include pixels with vectors indicating the spectrum of a particular pixel. Therefore, hyperspectral images can provide more extensive spectral information about agricultural products than other image data. This spectral information can change based on the characteristics of the agricultural product. For example, if an avocado has bruises, then the spectral difference of the avocado is visible compared to an unbruised avocado. The model described herein can be trained to analyze spectral information pixel by pixel to identify and quantify quality characteristics of agricultural products. As an example, the model can be trained to identify bruises by detecting intensity levels in a spectral region. For example, when the intensity level in the spectral region is below a threshold range, bruises can be identified, located, and classified. As another example, the model can be trained to identify dry matter content by detecting intensity levels in a spectral region.

[0211] refer to Fig.12 In the prediction of hardness 1200 in the present invention, a hyperspectral image 1202 of a plate (e.g., a tray, a batch) of avocados can be captured using an imaging device as described herein. For training purposes, destructive hardness measurements can also be made on some or all of the avocados in the plate by piercing the skin of the avocado and / or squeezing the avocado using a hardness measurement device. An average spectrum can be extracted from a portion of the hyperspectral image 1202. For example, an object detection model can be applied to the hyperspectral image 1202 to generate a bounding box for each avocado. The average spectrum can then be extracted from each bounding box (e.g., each avocado identified in the hyperspectral image 1202). A maturity prediction model can then be trained based on the average spectrum and destructive hardness measurements in each bounding box to predict the condition of each avocado, such as hardness and / or maturity. Thus, the maturity prediction model can be trained to identify the condition of the avocado pixel by pixel. The model averages all pixels representing an avocado in the bounding box to determine an overall hardness value for the avocado. The maturity prediction model can then output a hardness value indicating the overall maturity of each agricultural product. During runtime, destructive measurements of the avocados in the plate can be omitted. Alternatively, a hyperspectral image may be taken and a ripeness prediction model may be applied to the hyperspectral image to determine a firmness value for each avocado in the hyperspectral image.

[0212] In some embodiments, the model can be run on each pixel individually. This will produce an avocado firmness image, where each pixel value can represent the firmness value of the avocado at that location. An overall firmness value for the avocado can be derived from the pixel-based firmness values ​​by taking the mean of the image (e.g., a matrix).

[0213] The output 1204 from the maturity prediction model can indicate the hardness value in a variety of ways. For example, the hardness value can be represented as a color-coded bounding box. In other words, the bounding box of each avocado can be represented by one or more colors representing the hardness value. A green bounding box can indicate that the avocado is harder relative to other avocados in the plate. A yellow bounding box can indicate that the avocado has a good hardness level relative to other avocados in the plate. A red bounding box can indicate that the avocado is less hard than other avocados in the plate. In some embodiments, the color of the bounding box can indicate the hardness on a normalized scale that is applied to all imaged avocado plates. One or more other markers can also be used to describe the hardness value in the output 1204 (e.g., different shades and / or patterns can be used to depict each bounding box based on the identified hardness value).

[0214] The output 1204 may also provide a numerical value indicating the aggregated firmness value for each avocado. The numerical value may be presented in the output 1204 as a bounding box covering the avocado. The numerical value may be a value on a normalized scale (e.g., 0 to 100) that applies to all avocado slabs imaged. The numerical value may also be a scale based on various factors including, but not limited to, origin, time of year, and other metadata. The numerical value may also be on a scale of values, thus being based on the distribution of firmness values ​​for avocados for a particular slab captured in the hyperspectral image 1202.

[0215] In the example output 1204, avocados with firmness values ​​between 5 and 15 are depicted with red bounding boxes, which means that these avocados are identified as less firm or more ripe. Avocados with firmness values ​​between 16 and 29 are depicted with yellow bounding boxes, which means that these avocados are identified as having a good level of firmness or having ideal / perfect ripeness. Avocados with firmness values ​​between 30 and 36 are depicted with green bounding boxes, which means that these avocados are identified as being more firm or less ripe.

[0216] Output 1204 can be used (e.g., by computer system 150) to predict the maturity of avocados within one or more days. For example, time lapse 1206 depicts an image of avocados in hyperspectral image 1202. Time lapse 1206 was taken on day 1 of generating output 1204. Each avocado is surrounded by a color-coded bounding box that indicates the predicted hardness / maturity of the avocado using the techniques described herein. Over time, hyperspectral images of avocado slabs can be captured, and a maturity prediction model can be applied to non-invasively and non-destructively measure and predict maturity. Time lapse 1208 shows avocados on day 5. As shown, the avocados in the red bounding box on day 1 now look darker on day 5, indicating that these avocados are less hard and more mature. The color of the avocados is changing, as predicted by applying the maturity prediction model to the hyperspectral image 1202 on day 1. Therefore, the maturity prediction model is beneficial for accurately predicting the hardness and maturity of avocados without destructively measuring the hardness of the avocados.

[0217] Fig.13 Another example avocado firmness prediction 1300 using HSI analysis is depicted. As described throughout this disclosure, hyperspectral images of agricultural products (such as avocados) can be captured and used to identify features that are not visible to the human eye (such as firmness). A model can be trained using the techniques described herein to infer firmness from hyperspectral images. An image 1302 of an avocado can be generated as described throughout this disclosure. For example, HSI data can be obtained using an image captured by an HSI camera. The image 1302 can then be generated from the HSI data. By applying one or more machine learning training models to the HSI data of avocados, the firmness of the avocados (e.g., Xshore) can be inferred. As described above, the firmness of each identified avocado can be evaluated using one or more models. The output of the applied model can include a numerical value, other metrics, and / or color (e.g., or other markers such as patterns, shapes, shadows, etc.) for each avocado.

[0218] exist Fig.13, the inferred avocado firmness output 1304 depicts a colored bounding box and a numerical value for each avocado in the image 1302, which is determined by applying one or more models described herein. Avocados that appear in a green bounding box can be identified as firm. Avocados that appear in a yellow bounding box can be identified as perfectly firm. Avocados that appear in red can be identified as ripe. Each avocado is also assigned a numerical value representing the firmness level of the avocado. The numerical value can be within a range. The range can be predetermined. The range can also be relative, such as based on the firmness level identified for each avocado in the image 1302. As shown in the output 1304, avocados with a firmness level of 86 to 107 are identified as firm (in the green bounding box), avocados with a firmness level of 57 to 78 are identified as perfect (in the yellow bounding box), and avocados with a firmness level of 55 are identified as ripe (in the red bounding box).

[0219] One or more models may also output a histogram 1306 showing the distribution of the firmness levels of all avocados in the image 1302. The X-axis of the histogram 1306 represents firmness (Xshore) on a scale of 1 to 110. One or more other scales may be used. For example, the scale may be a predetermined universal scale for quantifying the firmness of a particular type of agricultural product. The scale may also be relative and dynamic, based on the determined firmness levels of all avocados in the image 1302. The Y-axis of the histogram 1306 represents frequency on a scale of 0 to 8. As mentioned above, the scale may vary based on predetermined information and / or firmness analysis of all avocados in the image 1302. The frequency may indicate how many avocados in a batch have each inferred firmness level: perfect, firm, and ripe.

[0220] In the example histogram 1306, avocados identified as ripe (e.g., with a firmness of up to 60) have a frequency of 6. Avocados identified as perfect (e.g., with a firmness of 60-85) may have varying frequencies. For example, avocados with a firmness between 60 and 65 may have a frequency of 8, avocados with a firmness between 65 and 70 may have a frequency of 5, avocados with a firmness between 70 and 75 may have a frequency of 3, and avocados with a firmness between 75 and 85 may have a frequency of 1. Avocados identified as firm (e.g., with a firmness of 92-108) may also have varying frequencies. For example, avocados with a firmness between 92 and 95 may have a frequency of 2, and avocados with a firmness between 95 and 108 may have a frequency of 1. As mentioned above, the distribution of firmness levels may vary for each slab, tray, and / or batch of avocados. Furthermore, while Fig.13 Although described with respect to avocados, the techniques, processes, and analyses described herein are also applicable to other types of agricultural products, such as the agricultural products described in this disclosure.

[0221] Fig.14Avocado firmness prediction 1400 is depicted pixel by pixel with HSI data. Hyperspectral images of agricultural products (such as avocados) can be captured and used to identify features (such as firmness) that are not visible to the human eye. One or more models can be used and trained to identify firmness from hyperspectral images. Therefore, destructive techniques (such as piercing and / or squeezing agricultural products) may not be necessary to accurately determine the firmness of agricultural products. The model can be trained to infer firmness on a pixel by pixel basis, as shown in the hyperspectral image data 1402. Pixels that appear brighter (e.g., more opaque, higher opacity, higher brightness) relative to pixels that appear less bright (e.g., more transparent, lower opacity, lower brightness) can indicate that the avocado is firmer or greater. Pixels can also be represented with one or more other markings to indicate the firmness level. For example, pixels representing a firmness level exceeding a predetermined threshold range can be represented with a first color, such as yellow. Pixels representing a firmness level within the threshold range can be represented with a second color, such as green. Pixels representing a firmness level less than the threshold range can be represented with a third color, such as blue. Different shades and / or degrees of color or other indicia (e.g., patterns, shades, etc.) may be used to output the inferred avocado firmness level. The model may also be trained to determine an aggregate firmness level for each avocado based on an analysis of pixels representing the avocado.

[0222] Fig.14 Also depicted is an RGB image 1404 of the same set of avocados depicted by the hyperspectral image data 1402. As shown, the RGB image 1404 depicts only the outer side of the avocados, which is visible to the human eye. From the RGB image 1404, a human may not be able to see the firmness. Therefore, in order to infer the firmness of the avocados, a human must squeeze, pierce, or perform other destructive techniques on the avocados. Thus, the hyperspectral image data 1402 may provide a deeper analysis of the quality characteristics of the avocados that may not be visible to the human eye.

[0223] Although Fig.14 It is described with reference to avocados, but the same techniques, processes, and analyses can be performed on other types of agricultural products described throughout this disclosure.

[0224] Fig.15Stem rot analysis 1500 and 1510 using HSI data is depicted. Hyperspectral images of produce (such as avocados) can be captured and used to identify features that are not visible to the human eye (such as stem rot). One or more models can be used and trained to identify stem rot from hyperspectral images. The model can be trained, for example, to detect and visualize the manifestation of stem rot in each imaged produce. In the example analysis 1500 of avocados, which can be performed on day 0, avocados (such as avocado 1502) are depicted as having more patches than avocados (such as avocado 1504). The patches in avocado 1502 can be visualized using markers such as color and / or pattern (e.g., bright yellow). For example, the patches can be visualized in yellow and / or green. The patches represent stem rot. Therefore, avocado 1502 has significantly more stem rot than avocado 1504, even though it may be a mild case of stem rot, which will appear within a predetermined noise level. On the other hand, avocado 1504 has few, if any, patches. Some of the patches on avocado 1504 are more transparent (e.g., less opaque, less bright, etc.) than more prevalent patches in other avocados (such as avocado 1502). In other words, analysis 1500 can return an image depicting the different levels / extents of stem rot in each avocado. One or more models can also be trained to determine an overall quality metric for each avocado using this image. Avocados with brighter, higher opacity, and / or colored patches near the stem of the avocado may have more severe stem rot (and therefore be classified as lower quality) than avocados that have no patches or patches near the stem that are less bright, less opaque, and / or have no color markings indicating stem rot (and therefore are classified as higher quality).

[0225] Example analysis 1510 visualizes the same avocado in analysis 1500. However, analysis 1510 depicts an avocado on day 7 of imaging. In this example, avocado 1502 has significantly stronger signs of stem rot near the stem, indicated by a brighter, more opaque yellow color than on day 0 in analysis 1500. Also, avocado 1504 has also begun to show some stem rot in analysis 1510 on day 7, whereas avocado 1504 showed almost no signs of stem rot in analysis 1500 on day 0.

[0226] Fig.16An example age analysis 1600 using HSI data is depicted. Hyperspectral images of agricultural products (such as avocados) can be captured over time and used to identify features that are not visible to the human eye. One of these features is the age of the agricultural product. RGB image 1602 can depict an avocado on day 1 as green. Compressed HSI data 1604 of the same avocado on day 1 can indicate additional information about the spectrum that is not recognizable to the human eye. One or more models described herein can analyze the spectrum 1606 from the compressed HSI data 1604 to identify changes in the maturity of the avocado, thereby identifying the age of the avocado. The model can be trained to identify changes in the infrared range that are not visible in the spectral data 1606, which can indicate that chlorophyll is breaking down and the avocado is aging. RGB image 1608 depicts the same avocado on day 7. Compressed HSI data 1610 indicates additional information about the spectrum that may not be recognizable to the human eye. As the avocado ages from day 1 to day 7, its skin wrinkles, the avocado may shrink in size / volume, and one or more visual characteristics of the avocado change, as shown by comparing compressed HSI data 1604 to compressed HSI data 1610. Spectrum 1612 can be analyzed to identify changes in the maturity of the day 7 avocado, which can then be used to identify the age of the avocado. Fig.16 Although described with reference to avocados, age analysis 1600 using HSI data may also be performed for any other type of produce described throughout this disclosure.

[0227] Fig.17 An example output of an internal quality analysis of an avocado is depicted 1700. As described throughout this document, some produce may be cut and then imaged to assess the quality of a batch of produce. The cut produce may be placed on a flat plate, tray, or otherwise placed in a camera box, as described in reference to Figure 7 As described herein. An image of the cut agricultural product can be captured. The image can be an RGB image and / or a hyperspectral image. The image can be any other type of image described throughout this disclosure. In some embodiments, an image of the outside of the agricultural product can be captured. The agricultural product can then be cut so that the inside of the agricultural product can also be imaged. The external and internal images can then be analyzed using the techniques described herein to determine the quality of the agricultural product.

[0228] As shown in the example avocado internal quality analysis output 1700, a bounding box is identified around each cut avocado. The bounding box can be colored or represented by different markings (e.g., patterns, such as dashed lines, etc.) based on the aggregate quality level determined for each avocado. For example, avocados with no internal defects or minimal internal defects overall can be surrounded by a green bounding box. These bounding boxes can also include a metric indicating the determined quality level. For example, a green bounding box can include a string value of "good". Avocados with some internal defects or a number of internal defects within a threshold range can be surrounded by an orange bounding box. These bounding boxes can also include a string value of "average", which indicates that the avocado has some internal defects that make the avocado neither good nor bad. Avocados with internal defects or a number of internal defects exceeding a threshold range can be surrounded by a red bounding box. These bounding boxes can also include a string value of "poor". One or more other metrics can be used to identify the overall quality of the agricultural product based on the detected internal defects.

[0229] One or more models may be applied to the bounding boxes to determine what types of internal defects are present in each avocado and whether the avocado is good, fair, or poor. The types of internal defects identified may also be presented in output 1700. For example, some avocados that are overall "good" quality may still have some internal defects (e.g., internal defects below a threshold range). The bounding boxes of those "good" quality avocados that have some internal defects may be annotated with an abbreviation or other metric to indicate the type of defect identified. Similarly, avocados that are overall "fair" or "poor" quality may be annotated with an abbreviation or other metric to indicate the type of defect identified. In the output 1700, the bounding boxes of those "good" quality avocados that have some internal defects may be annotated with an abbreviation or other metric to indicate the type of defect identified. Fig.17 In the example output of , the abbreviations used may include "DB" (for diffuse browning), "VB" (for vascular browning), "SR" (for stem rot), and "IR" (for internal rot).

[0230] Although Fig.17 It is described with reference to avocados, but the same processes and techniques can be applied to other types of agricultural products to obtain the same or similar results and internal quality analysis outputs.

[0231] In some embodiments, non-destructive techniques can be used to assess the internal quality of an agricultural product. For example, a hyperspectral image of the outside of an agricultural product can be used to identify internal quality characteristics beneath the surface of the agricultural product. As another example, an MRI can be used to visualize the interior of an agricultural product. An MRI scanning system can be positioned in an assembly line (e.g., reference Figure 1A ) and / or replace or be positioned in conjunction with camera box 700 (e.g., reference Figure 7). A flat plate or tray of produce can be placed within an MRI scanning system to generate an MRI of the produce. The MRI can capture and image the fibers within the produce, which can then be analyzed using one or more of the models described herein. Thus, internal defects, such as spoilage or rot, can be identified without destroying the produce. As yet another example, an NMR system can be used to non-destructively determine the internal quality of produce.

[0232] Fig.18 1 is a block diagram of system components that can be used to implement a system for evaluating the quality of one or more food products. Computing device 1800 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Mobile computing device 550 is intended to represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, and other similar computing devices. The components shown here, their connections and relationships, and their functions are exemplary only and are not meant to limit the embodiments of the inventions described and / or claimed in this document.

[0233] The computing device 1800 includes a processor 1802, a memory 1804, a storage device 1806, a high-speed interface 1808 connected to the memory 1804 and a plurality of high-speed expansion ports 1810, and a low-speed interface 1812 connected to a low-speed expansion port 1814 and the storage device 1806. Each of the processor 1802, the memory 1804, the storage device 1806, the high-speed interface 1808, the high-speed expansion port 1810, and the low-speed interface 1812 is interconnected using various buses and can be mounted on a common motherboard or in other appropriate ways. The processor 1802 can process instructions for execution within the computing device 1800 (including instructions stored in the memory 1804 or on the storage device 1806) to display graphical information for a GUI on an external input / output device (such as a display 1816 coupled to the high-speed interface 1808). In other embodiments, multiple processors and / or multiple buses, as well as multiple memories and multiple types of memories, can be used appropriately. Furthermore, multiple computing devices may be connected, with each device providing portions of the necessary operations (eg, as a server bank, a group of blade servers, or a multi-processor system).

[0234] The memory 1804 stores information within the computing device 1800. In some implementations, the memory 1804 is one or more volatile memory units. In some implementations, the memory 1804 is one or more non-volatile memory units. The memory 1804 may also be another form of computer-readable medium, such as a magnetic disk or optical disk.

[0235] Storage device 1806 can provide mass storage for computing device 1800. In some embodiments, storage device 1806 can be or include computer readable media, such as floppy disk devices, hard disk devices, optical disk devices or tape devices, flash memory or other similar solid-state memory devices, or device arrays including devices in storage area networks or other configurations. A computer program product can be tangibly implemented in an information carrier. A computer program product can also include instructions for executing one or more methods (such as those described above) when executed. A computer program product can also be tangibly implemented in a computer or machine readable medium, such as memory 1804, storage device 1806, or memory on processor 1802.

[0236] The high-speed interface 1808 manages bandwidth-intensive operations of the computing device 1800, while the low-speed interface 1812 manages less bandwidth-intensive operations. This allocation of functions is exemplary only. In some embodiments, the high-speed interface 1808 is coupled to the memory 1804, the display 1816 (e.g., through a graphics processor or accelerator), and to a high-speed expansion port 1810 that can accept various expansion cards (not shown). In an embodiment, the low-speed interface 1812 is coupled to the storage device 1806 and the low-speed expansion port 1814. The low-speed expansion port 1814, which can include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet), can be coupled to one or more input / output devices, such as a keyboard, a pointing device, a scanner, or a networking device such as a switch or router, for example, through a network adapter.

[0237] As shown, computing device 1800 can be implemented in a variety of different forms. For example, it can be implemented as a standard server 1820, or implemented multiple times in a group of such servers. In addition, it can be implemented in a personal computer such as a laptop computer 1822. It can also be implemented as part of a rack server system 1824. Alternatively, components from computing device 1800 can be combined with other components in a mobile device (not shown) such as a mobile computing device 1850. Each of such devices can contain one or more of computing device 1800 and mobile computing device 1850, and the entire system can be composed of multiple computing devices that communicate with each other.

[0238] The mobile computing device 1850 includes a processor 1852, a memory 1864, an input / output device such as a display 1854, a communication interface 1866, and a transceiver 1868, among other components. The mobile computing device 1850 may also be provided with a storage device (such as a microdrive or other device) to provide additional storage. Each of the processor 1852, the memory 1864, the display 1854, the communication interface 1866, and the transceiver 1868 are interconnected using various buses, and several of the components may be mounted on a common motherboard or in other suitable ways.

[0239] Processor 1852 may execute instructions within mobile computing device 1850, including instructions stored in memory 1864. Processor 1852 may be implemented as a chipset of chips that include separate multiple analog and digital processors. Processor 1852 may provide, for example, coordination of other components of mobile computing device 1850, such as control of a user interface, applications running on mobile computing device 1850, and wireless communications of mobile computing device 1850.

[0240] The processor 1852 can communicate with the user through the control interface 1858 and the display interface 1856 coupled to the display 1854. The display 1854 can be, for example, a TFT (thin film transistor liquid crystal display) display or an OLED (organic light emitting diode) display, or other suitable display technology. The display interface 1856 may include appropriate circuit systems for driving the display 1854 to present graphical information and other information to the user. The control interface 1858 can receive commands from the user and convert them for submission to the processor 1852. In addition, the external interface 1862 can provide communication with the processor 1852 so as to enable the mobile computing device 1850 to communicate with other devices in a near area. The external interface 1862 can provide, for example, wired communication in some embodiments, or wireless communication in other embodiments, and multiple interfaces can also be used.

[0241] The memory 1864 stores information within the mobile computing device 1850. The memory 1864 may be implemented as one or more of one or more computer-readable media, one or more volatile memory units, or one or more non-volatile memory units. An expansion memory 574 may also be provided and connected to the mobile computing device 1850 via an expansion interface 1872, which may include, for example, a SIMM (Single In Line Memory Module) card interface. The expansion memory 1874 may provide additional storage space for the mobile computing device 1850, or may also store applications or other information for the mobile computing device 1850. Specifically, the expansion memory 1874 may include instructions to perform or supplement the above-mentioned processes, and may also include security information. Thus, for example, the expansion memory 1874 may be provided as a security module of the mobile computing device 1850, and may be programmed with instructions that allow secure use of the mobile computing device 1850. In addition, security applications and additional information may be provided via a SIMM card, such as placing identification information on the SIMM card in an unbreakable manner.

[0242] The memory may include, for example, flash memory and / or NVRAM memory (non-volatile random access memory), as described below. In some embodiments, a computer program product is tangibly implemented in an information carrier. The computer program product contains instructions that, when executed, perform one or more methods (such as those described above). The computer program product can be a computer or machine readable medium, such as memory 1864, expansion memory 1874, or memory on processor 1852. In some embodiments, the computer program product can be received in a propagated signal, for example, by transceiver 1868 or external interface 1862.

[0243] The mobile computing device 1850 can communicate wirelessly through the communication interface 1866, which may include a digital signal processing circuit system if necessary. The communication interface 1866 can provide communication under various modes or protocols, such as GSM voice calls (Global System for Mobile communication), SMS (Short Message Service), EMS (Enhanced Messaging Service) or MMS messaging (Multimedia Messaging Service), CDMA (Code Division Multiple Access), TDMA (Time Division Multiple Access), PDC (Personal Digital Cellular), WCDMA (Wideband Code Division Multiple Access), CDMA2000 or GPRS (General Packet Radio Service), etc. Such communication can occur, for example, by using a radio frequency transceiver 1568. In addition, short-range communication may occur, such as using Bluetooth, WiFi or other such transceivers (not shown). In addition, the GPS (Global Positioning System) receiver module 1870 can provide additional navigational and location-related wireless data to the mobile computing device 1850 , which can be used appropriately by applications running on the mobile computing device 1850 .

[0244] The mobile computing device 1850 may also communicate audibly using an audio codec 1860, which may receive verbal information from a user and convert it into usable digital information. The audio codec 1860 may likewise generate audible sounds for the user (such as through a speaker), for example in a handset of the mobile computing device 1850. Such sounds may include sounds from voice phone calls, may include recorded sounds (e.g., voice messages, music files, etc.), and may also include sounds generated by applications operating on the mobile computing device 1850.

[0245] Mobile computing device 1850 can be implemented in many different forms, as shown in the figure. For example, it can be implemented as a cellular phone 1880. It can also be implemented as a part of a smart phone 1882, a personal digital assistant or other similar mobile device.

[0246] Various implementations of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs executable and / or interpretable on a programmable system, the programmable system including at least one programmable processor (which may be special-purpose or general-purpose) coupled to receive data and instructions from a storage system, at least one input device, and at least one output device, and to send data and instructions to the storage system, at least one input device, and at least one output device.

[0247] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for a programmable processor and may be implemented in high-level procedural and / or object-oriented programming languages ​​and / or in assembly / machine language. As used herein, the terms machine-readable medium and computer-readable medium refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term machine-readable signal refers to any signal for providing machine instructions and / or data to a programmable processor.

[0248] To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or an LCD (liquid crystal display) for displaying information to the user, and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including acoustic input, voice input, or tactile input.

[0249] The systems and techniques described herein can be implemented in a computing system that includes a back-end component (e.g., as a data server), or includes a middleware component (e.g., an application server), or includes a front-end component (e.g., a client computer with a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0250] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises from computer programs running on the respective computers and having a client-server relationship to each other.

[0251] Fig.19 Depicted using image data 1900 and reference Figure 6 An example mango wrinkle analysis of the wrinkle analyzer 670 is described. Using the disclosed techniques, image data 1900 can be processed 1902 to generate a grid 1904 (eg, a mask) with tiles. Fig.19 In the example of , the grid 1904 may include 7 tiles horizontally across the image data 1900 and 11 tiles vertically down the image data 1900. The image data 1900 may be divided into any other number of tiles in the grid 1904. For example, the image data 1900 may be divided into more tiles in the grid 1904 to increase the accuracy and / or specificity of the total wrinkle coverage.

[0252] A classifier 1906 (such as a trained machine learning model or neural network) can then classify (1908) each tile in the grid 1904 to determine whether each tile represents a wrinkle. The classifier 1906 can be trained using training data with labels that annotate wrinkles in the image tiles. Thus, the classifier 1906 can be trained to perform binary decisions, such as whether each tile in the grid 1904 contains a wrinkle. For example, the classifier 1906 can receive image tiles 1912A and 1912N. The classifier 1906 can determine that image tile 1912A contains wrinkles, and thus assign a binary value 1914A of 1 to image tile 1912A. On the other hand, the classifier 1906 can determine that image tile 1912N does not contain wrinkles, and thus assign a binary value 1912B of 0 to image tile 1912N.

[0253] Output 1910 can be generated as a result of the classification in 1908. Output 1910 can include, for example, a wrinkle coverage percentage (e.g., a wrinkle coverage score) for the entire mango represented in image data 1900. An overall wrinkle coverage percentage can be generated based on quantizing (e.g., summing, averaging, or otherwise aggregating) the binary values / determinations of all tiles in grid 1904. In some embodiments, the overall wrinkle coverage percentage can be determined based on summing all tiles classified as having wrinkles and dividing the sum by the total number of tiles in grid 1904.

[0254] exist Fig.19 In the example of FIG. 1 , approximately 5% of the surface of the mango is identified as being covered with wrinkles. In some implementations, output 1910 may include image 1900 having grid 1904 and one or more tiles in grid 1904 annotated (e.g., highlighted, marked) as being classified as having wrinkles. Here, 4 tiles in grid 1904 are annotated as being classified as having wrinkles, which totals 5% of the surface of the mango.

[0255] Fig. 20 Depicted using image data 2000 and reference Figure 6 An example strawberry calyx browning analysis of the calyx browning analyzer 672 described herein. Using the disclosed techniques, image data 2000 of strawberries can be processed to identify color values ​​and associate such color values ​​with quality levels. For example, the image data 2000 can be processed to extract certain color channels 2002, such as color channel AB. A predetermined binary threshold can be applied to the resulting image in 2004 and / or 2006. Next, a mask with the original RGB image can be applied in 2008. Color values ​​can be identified and extracted from the resulting image. A median color value can be determined from the identified and extracted color values ​​(2010). The median color value can then be compared to one or more calyx browning thresholds to determine whether the strawberries represented in the image data 2000 contain calyx browning and / or whether the strawberries have a sufficient or threshold amount of calyx browning to reduce the overall quality of the strawberries. As described in reference Figure 6 As described, analyzer 672 may generate an overall quality score of "good," "poor," or "fair" for the strawberries based on a comparison of the calculated median color to the calyx browning threshold standard.

[0256] Fig.21 Describes the use of image data and Figure 6Example banana stage analysis by the banana color analyzer 674 described in . Using the disclosed techniques, image data 2100 of bananas can be provided as input to a model 2102. The model 2102 can be a machine learning model and / or a neural network that has been trained to extract color values ​​(e.g., green areas, brown areas) in the image data of bananas and classify the extracted color values ​​into color metrics that map to stages of banana ripeness. The color values ​​can be extracted from the image data using any of the disclosed techniques. The extracted color values ​​can then be checked against a threshold color value range, each threshold color value range corresponding to a different stage of ripeness associated with the banana (e.g., a color metric to stage mapping map 2106). The model 2102 then generates an output 2104 indicating the stage of ripeness of the banana based on the color of the banana. In Fig.21 In the example of , analyzer 674 may use model 2102 to analyze image data 2100 to determine that the bananas in image data 2100 are at stage 5 of banana ripeness (e.g., on a scale of 1-7 of color stages, where stage 1 represents least ripe or before the ripening process begins and stage 7 represents most ripe).

[0257] Fig.22A -B depicts the use of image data and reference Figure 6 Example cherry stem color analysis of the cherry stem color analyzer 676 described in . Fig.22A -B Both, using the disclosed techniques, object detection techniques 2200 can be applied to image data to identify cherries in the image data. A bounding box 2202 can be generated around the identified cherries. A stem color analysis 2204 can be performed to extract or otherwise isolate the stem from the main body of the cherry in the bounding box 2202. For example, as described in reference Figure 6 As described by analyzer 676 in , machine learning techniques or machine learning trained models can be used to isolate the stems. The isolated stems can be masked with the original image for color quantization. Stem color analysis 2206 can continue to identify and extract one or more color channels in bounding box 2202, and then apply a predetermined binary threshold to bounding box 2202. Thus, the color value of the isolated stem can be extracted and compared to one or more threshold color ranges to determine whether the color of the stem (or the median, average, mean, or other statistically average color value of the stem) corresponds to "good" quality cherries, "average" quality cherries, or "poor" quality cherries. As shown in color analysis output 2208, a threshold number of hues or color values ​​can indicate "good" quality. Other threshold numbers of hues or color values ​​can also be defined and associated with one or more different quality levels of cherries, as described herein.

[0258] Fig.23 is a flow chart of a process 2300 for determining an overall quality metric for a food product. Figure 6 As described, an overall quality metric may be determined using nested rules that are applicable to quality determinations made by different quality assessment analyzers in order to classify the overall quality of the food. Process 2300 may be performed by computer system 150. Process 2300 may also be performed by one or more other computing systems, devices, and / or servers.

[0259] refer to Fig.23 In process 2300 of the food product, the computer system may access a quality determination AN of the food product in block 2302. The quality determination AN may be a quality score or other output generated by one or more quality assessment analyzers applied to the image data of the food product. Figure 6 Further discussion of the quality assessment analyzers and the quality determination ANs that each analyzer can generate. The computer system can poll the quality assessment analyzers to obtain their corresponding quality determination ANs. The computer system can also receive the quality determination ANs from the analyzers when making a determination and / or in batches or at predetermined time intervals. In some embodiments, the quality determination ANs can be stored in a data repository and then retrieved by the computer system in block 2302.

[0260] In box 2304, the computer system can access rule-based mappings that map different value ranges of quality determination AN (additionally or alternatively including thresholds) to different enumerated categories of food quality. The computer system can access rule-based mappings from a data repository. The computer system can determine which rule-based mappings to access based on the type of food being analyzed and / or the quality determination AN accessed in box 2302. The value range of quality determination AN can vary based on the type of food. The value range of each quality determination AN can vary additionally or alternatively based on the type of quality assessment performed to generate quality determination. Moreover, each food can have different rule-based mappings that are based on various characteristics of food, food type, and quality assessments for assessing the quality of food.

[0261] The computer system iteratively determines whether the corresponding rule-based mapping is satisfied for each of the quality determinations AN (box 2306). The computer system identifies the enumerated categories of food quality based on the determination that the corresponding rule-based mapping is satisfied (box 2308). For example, if each rule is satisfied for one of the quality determinations AN, the computer system can identify the category corresponding to the rule that determines that the specific quality determination is satisfied. For example, the identified category can indicate a saleable or edible food. On the other hand, if the quality determination does not satisfy the rule, the computer system can iteratively continue to traverse each rule-based mapping for the specific quality determination. If no rule is satisfied for the quality determination, the computer system can identify a category that is not saleable or inedible. The computer system can iteratively determine whether each rule is satisfied for any remaining quality determinations AN.

[0262] In block 2310, the computer system may assign the identified category to the food as an overall quality metric for the food. The computer system may then return an overall quality metric for the food in block 2312, as described throughout this disclosure.

[0263] As an illustrative example, for a mango, the computer system may access two quality determinations in block 2302: a wrinkle score and a color score. In block 2304, the computer system may identify and retrieve a rule-based mapping corresponding to the wrinkle score and color score of the mango. The rule-based mapping for the mango wrinkle score may have different rules and / or thresholds to be satisfied in order to classify the food product into one or more different quality buckets or categories, while the rule-based mapping for the mango color score may have other rules and / or thresholds to be satisfied in order to classify the food product into one or more quality buckets or categories. The computer system may determine in block 2306 that the wrinkle score falls within a threshold range corresponding to an enumerated category of sellable or edible. Therefore, the computer system identifies the sellable or edible category in block 2308 and assigns the category as the overall quality metric for the food product in block 2310. In block 2312, an indication that the particular mango is sellable or edible may be returned, such as in a GUI display at a computing device of an associated user. The associated user may then use this indication to determine whether to route the mangoes to a retail store for sale, where to place the mangoes on the retail store shelf for sale, whether to sell the mangoes at a higher price or at a discount, and / or one or more other actions in the mango supply chain.

[0264] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of the disclosed technology or what may be claimed, but rather as descriptions of features that may be specific to a particular disclosed technology. Certain features described in the context of a single embodiment in this specification may also be implemented in part or in whole in combination in a single embodiment. On the contrary, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. Moreover, although features may be described herein as acting in certain combinations and / or initially claimed as such, in some cases, one or more features in the claimed combination may be deleted from the combination, and the claimed combination may be directed to a sub-combination or a variation of a sub-combination. Similarly, although operations may be described in a particular order, this should not be understood as requiring such operations to be performed in a particular order or in a sequential order, or to perform all operations to obtain the desired result. Specific embodiments of this subject matter have been described. Other embodiments are within the scope of the following claims.

Claims

1. A method for determining a quality level of food using image data, the method comprising: receiving, by a computing system, image data of a food product from an imaging device; performing, by a computing system, object detection on the image data to identify a bounding box around each food product in the image data; determining, by a computing system, a grid structure of the image data based on a bounding box around each food item in the image data, wherein each bounding box is assigned a grid index in the grid structure, wherein the grid index is used to identify the food item in the data repository; identifying, by a computing system, for each of the food products, a quality level of the food product by applying a plurality of trained models to a bounding box portion of the image data containing each of the food products, wherein each of the trained models is trained using image training data of other food products, the image training data being annotated based on previously identifying a first portion of the other food product as having a poor quality characteristic and a second portion of the other food product as having a good quality characteristic, wherein the other food product is of the same food type as the food product, wherein the plurality of trained models includes a first trained model trained to identify a first quality characteristic and a second trained model trained to identify a second quality characteristic different from the first quality characteristic; determining, by the computing system, for each food product, a quality grade score for the food product based on the identified quality grade of the food product; as well as The computing system stores, for each food product, in a data repository (i) a bounding box portion of the image data containing the food product, (ii) the grid index, (iii) the identified quality level of the food product, and (iv) a determined quality level score of the food product.

2. The method of claim 1, further comprising transmitting, by the computing system, the quality grade score of the food in the image data to the user computing device for display at the user computing device.

3. The method according to claim 1 or 2, further comprising: Retrieving, by the computing system, for each food product, a quality grade score of the food product from a data repository; identifying, by a computing system, supply chain information for the food, the supply chain information including a pre-existing supply chain timeline and a destination for the food; Determining by the computing system whether to modify the supply chain information of the food based on the retrieved quality grade score; In response to determining to modify the supply chain information, generating, by the computing system, modified supply chain information based on the received quality grade score, wherein the modified supply chain information includes one or more of a modified supply chain schedule and a modified destination for the food; as well as The modified supply chain information is transmitted by the computing system to one or more supply chain actors to implement the modified supply chain information.

4. The method of any one of claims 1-3, wherein the modified supply chain information includes instructions that, when executed by the one or more supply chain actors, cause the food to be moved for shipment to an end consumer that is geographically closest to the location of the food.

5. A method as described in any of claims 1-4, wherein the modified supply chain information includes instructions that, when executed by the one or more supply chain actors, cause at least one of the following: (i) moving the food for shipment to a food processing plant, (ii) changing the controlled atmospheric conditions surrounding the food, (iii) changing the ripening conditions of the food, (iv) changing the refrigeration conditions of the food, or (v) the food being moved for shipment to an end consumer that is geographically closest to the location of the food.

6. The method of any one of claims 1-5, wherein each of the plurality of trained models comprises one or more layers having (i) image training data of the other foods and (ii) labels indicating a food quality classification of each of the other foods depicted in the image training data.

7. The method of any one of claims 1-6, wherein the food is at least one of an avocado, a lime, a lemon, an apple, a berry, and a mango.

8. The method according to any one of claims 1 to 7, further comprising: identifying, by a computing system, a type of food depicted in the image data using object recognition; as well as One or more of the plurality of trained models are selected, by the computing system, to be applied to the bounding box portion of the image data based on the identified type of food, wherein the selected trained models are trained to recognize quality features of the same type of food.

9. The method of any one of claims 1-8, wherein identifying, by the computing system, a quality level of the food for each food comprises: calibrating the color of the image data to maintain color consistency in the image data; determining a median Euclidean distance between a color of the food item in the bounding box portion of the image data and a reference color of the food item based on applying the color analyzer training model to the bounding box portion of the calibrated image data, wherein the reference color is associated with a preferred quality level of the food item; determining whether the median Euclidean distance exceeds a threshold; In response to determining that the median Euclidean distance exceeds the threshold, identifying the quality level of the food product as poor quality; and In response to determining that the median Euclidean distance is less than the threshold, the quality level of the food is identified as good quality.

10. The method of any of claims 1-9, wherein identifying, by the computing system, for each food product, a quality level of the food product comprises applying a hyperspectral cube process to a bounding box portion of the image data containing each food product.

11. The method of any one of claims 1-10, wherein identifying, by the computing system, a quality level of the food for each food comprises: determining an extent of yellowing of the food based on applying the trained model of apple yellowing to the bounding box portion of the image data containing each food; as well as The food is assigned a quality level score based on the degree of yellowing of the food, where a score greater than or equal to 0 but less than a threshold level indicates (i) good quality and (ii) no yellowing, and a score equal to or less than 100 but greater than the threshold level indicates (i) poor quality and (ii) the food has the greatest degree of yellowing.

12. The method of any one of claims 1-11, wherein identifying, by the computing system, a quality level of the food for each food comprises: determining an extent of yellowing of the food based on applying the lime yellowing trained model to the bounding box portion of the image data containing each food; as well as The food is assigned a quality level score based on the degree of yellowing of the food, wherein a score greater than or equal to a first threshold level but less than a second threshold level indicates (i) good quality and (ii) no yellowing, and a score equal to or less than a third threshold level but greater than the second threshold level indicates (i) poor quality and (ii) maximum yellowing.

13. The method of any one of claims 1-12, wherein applying the lime yellowing training model further comprises applying a Gaussian mixture model and a support vector regressor to the bounding box portion of the image data containing each food product.

14. The method of any one of claims 1-13, wherein applying the apple browning training model further comprises applying a Gaussian mixture model and a support vector regressor to the bounding box portion of the image data containing each food product.

15. The method of any one of claims 1-14, wherein identifying, by the computing system, a quality level of the food for each food comprises: identifying internal quality defects in the food products based on applying an internal quality training model to a bounding box portion of the image data containing each food product, wherein the internal quality training model was trained using image training data of other food products previously annotated as having no internal defects, diffuse browning, vascular browning, flesh sticking, internal rot, stem rot, and tissue breakage; and An overall quality grade score for the food is determined based on the internal quality defects, where a "good" score indicates that there are no internal quality defects in the food, a "fair" score indicates that there are some internal quality defects in the food, and a "poor" score indicates that there are most internal quality defects in the food.

16. The method of any one of claims 1-15, wherein identifying, by the computing system, a quality level of the food for each food comprises: identifying decay and dehydration in food products based on applying a decay and dehydration trained model to a bounding box portion of the image data containing each food product; as well as The food is assigned a quality level score based on the identified spoilage and dehydration, wherein the score is at least one of a binary classification and a numerical value of spoilage and dehydration, wherein the numerical value is a continuous value between 0 and 1 indicating the severity of spoilage and dehydration.

17. The method of any one of claims 1-16, wherein identifying, by the computing system, a quality level of the food for each food comprises: Determine the maturity and remaining shelf life of food products based on applying a shelf life training model to image data; as well as The food is assigned a quality grade score based on the determined maturity and remaining shelf life, where the quality grade score is a numerical value indicating the number of days remaining until the food reaches peak maturity.

18. The method of any one of claims 1-17, wherein identifying, by the computing system, a quality level of the food for each food comprises: determining a grade of the food product based on applying a produce grade training model to a bounding box portion of the image data containing each food product, wherein the grade is based on USDA specifications, color distribution, shape of the food product, and size of the food product; and The food is assigned a quality grade score based on the grade, wherein the score is a string value indicating an assessment of at least one of grade, color distribution, shape, and size of the food.

19. The method according to any one of claims 1 to 18, wherein the string value indicating the evaluation of the grade is at least one of "exquisite", "particularly exquisite", "not exquisite", "good", "average", and "poor".

20. The method of any one of claims 1 to 19, wherein the string value indicating the evaluation of the color distribution is at least one of "good color" and "bad color".

21. The method of any one of claims 1-20, wherein the string value indicating the evaluation of the shape is at least one of "good shape" and "bad shape".

22. The method of any one of claims 1-21, wherein the string value indicating the evaluation of the size is at least one of "size is good" and "size is bad".

23. The method of any one of claims 1-22, wherein identifying, by the computing system, a quality level of the food for each food product comprises: determining a size of the food product based on applying the size-trained model to a bounding box portion of the image data containing each food product; as well as Food products are assigned a quality grade score based on size, where the score is a numerical value that indicates whether the food product fits into a standard box size of other foods of the same type as the food product.

24. The method of any one of claims 1-23, wherein identifying, by the computing system, a quality level of the food for each food product comprises: determining a shape of the food product based on applying the shape training model to a bounding box portion of the image data containing each food product; as well as The food product is assigned a quality grade score based on the shape, wherein the score is a numerical value indicative of a bend radius of the food product.

25. The method of any one of claims 1-24, wherein identifying, by the computing system, a quality level of the food for each food product comprises: Determining (i) the presence, (ii) the coverage, and (iii) the thickness of a cooking coating on the food product based on applying the cooking coating training model to the bounding box portion of the image data containing each food product; and The food products are assigned a quality level score based on (i)-(iii), wherein the score is at least one of a binary inference and a numerical value of pixels in a bounding box portion of the image data containing each food product, the score indicating the presence, coverage, and thickness of a cooked coating on the food product.

26. The method of any one of claims 1-25, wherein identifying, by the computing system, a quality level of the food product for each food product comprises: determining a dry matter content of the food product based on applying the dry matter training model to the bounding box portion of the image data containing each food product; as well as The food product is assigned a quality grade score based on dry matter content, wherein the score is a numerical value indicative of the dry matter content of the food product.

27. The method of any one of claims 1-26, wherein identifying, by the computing system, a quality level of the food for each food product comprises: determining the hardness of the food based on applying the hardness trained model to the bounding box portion of the image data containing each food; as well as The food product is assigned a quality grade score based on hardness, wherein the score is a numerical value.

28. The method of any one of claims 1-27, wherein identifying, by the computing system, a quality level of the food for each food product comprises: identifying a product label on the food product based on applying a product identifier trained model to a bounding box portion of the image data containing each food product; decoding at least one of text and a product identifier on a product label using optical character recognition (OCR); and The food product is assigned a quality grade score based on the decoded product label, wherein the score is a string value including at least one of the decoded text and a product identifier.

29. The method of any one of claims 1-29, wherein identifying, by the computing system, a quality level of the food for each food product comprises: determining wrinkles of the food product based on applying the wrinkle training model to a bounding box portion of the image data containing each food product; as well as Assigning quality grade scores to foods based on wrinkles.

30. The method of any one of claims 1-29, wherein identifying, by the computing system, a quality level of the food product for each food product comprises: determining an acidity level of the food based on applying the acidity trained model to the bounding box portion of the image data containing each food; as well as The food is assigned a quality grade score based on the acidity level of the food, wherein the score is a numerical value indicative of the acidity level of the food.

31. The method of any one of claims 1-30, wherein identifying, by the computing system, a quality level of the food product for each food product comprises: calibrating the color of the image data to maintain color consistency of the image data; obtaining a color sample of each food item within a bounding box portion of the calibrated image data; Mapping color samples into a multidimensional color space; Identify the direction of maximum color change among all color samples; predicting a location of a maximum color change of the food product along the identified direction, wherein the location of the maximum color change is a one-dimensional quality measure of the food product; and A quality level of the food product is identified as good quality based on determining that the one-dimensional quality metric of the food product is within a threshold quality range.

32. The method of any one of claims 1-31, wherein the quality grade score of the food product is an overall quality metric of the food product, and wherein the overall quality metric is determined by: accessing a rule-based mapping from a data repository that maps (i) different value ranges of scores corresponding to identification of the first quality feature and the second quality feature to (ii) enumerated categories of food quality, wherein the enumerated categories of food quality include at least one of sellable, unsellable, edible, inedible, good quality, poor quality, and fair quality; for each of the first quality characteristic and the second quality characteristic, iteratively determining whether a corresponding rule-based mapping is satisfied; identifying an enumerated category of food quality for the food product based on corresponding rule-based mapping being satisfied; as well as The identified categories are assigned to the food products as an overall quality measure of the food products.

33. The method of any one of claims 1-32, wherein identifying, by the computing system, a quality level of the food product for each food product comprises: assigning a binary value based on applying the wrinkle analyzer model to each bounding box portion of the image data containing each food product, the binary value indicating whether a wrinkle is present on a surface of the food product represented in the bounding box portion; determining a wrinkle coverage percentage on the surface of the food product represented by the bounding box portion of the image data based on (i) summing the number of bounding box portions assigned a binary value indicating the presence of wrinkles on the surface of the food product represented in the corresponding bounding box portion and (ii) dividing the sum by the total number of bounding box portions of the image data; and The food product is assigned a quality grade score based on the determined wrinkle coverage percentage satisfying a threshold wrinkle criterion, wherein the score is a binary value indicating whether wrinkles are present on a surface of the food product.

34. The method of any one of claims 1-33, wherein identifying, by the computing system, a quality level of the food product for each food product comprises: determining a median color value of the food product based on applying the calyx browning trained model to the bounding box portion of the image data containing each food product; as well as A quality grade score for a food is assigned based on a median color value of the food, wherein the quality grade score is (i) assigned a string value of "good" based on the median color value being less than a first threshold color range, (ii) assigned a string value of "fair" based on the median color value being greater than a first threshold color range and less than a second threshold color range, and (iii) assigned a string value of "poor" based on the median color value being greater than a second threshold color range.

35. The method of any one of claims 1-34, wherein identifying, by the computing system, a quality level of the food product for each food product comprises: determining a color value of the food product based on applying the banana phase analyzer trained model to a bounding box portion of the image data containing each food product; as well as The food product is assigned a quality grade score based on mapping the color value of the food product to expected threshold color values ​​for a plurality of maturity stages, wherein the quality grade score is a string value indicating a current maturity stage of the food product.

36. The method of any one of claims 1-35, wherein identifying, by the computing system, a quality level of the food product for each food product comprises: extracting stems of the food products based on applying an object detection model to a bounding box portion of the image data containing each food product; determining a median color value for the stem of the food product based on applying the cherry stem color training model to the extracted stem of the food product; as well as A quality grade score for a food is assigned based on a median color value of the stem of the food, wherein the quality grade score is (i) assigned a string value of "good" based on the median color value being within a first threshold color range, (ii) assigned a string value of "fair" based on the median color value being within a second threshold color range that does not include the first threshold color range, and (iii) assigned a string value of "poor" based on the median color value being within a third threshold color range that does not include at least the first threshold color range.

37. The method of any one of claims 1-36, wherein the multiple training models are trained using at least one of a convolutional neural network (CNN) and a partial least squares method (PLS).

38. The method of any one of claims 1-37, wherein the image data comprises at least one of an RGB image, a hyperspectral image, a multispectral image, a thermal image, a nuclear magnetic resonance (NMR) image, and a magnetic resonance image (MRI).

39. The method of any one of claims 1-38, wherein identifying, by the computing system, a quality level of the food product for each food product comprises: determining a dry matter content of the food product based on applying the dry matter training model to the bounding box portion of the image data containing each food product; as well as The food product is assigned a quality grade score based on dry matter content, wherein the score is a numerical value indicative of the dry matter content of the food product.

40. The method of any one of claims 1-39, wherein identifying, by the computing system, a quality level of the food product for each food product comprises: determining a sugar level of the food product based on applying a Brix trained model to a bounding box portion of the image data containing each food product; as well as The food product is assigned a quality grade score based on the sugar level, wherein the score is a numerical value indicating the sugar content of the food product in degrees Brix.

41. The method of any one of claims 1-40, wherein identifying, by the computing system, a quality level of the food product for each food product comprises: determining a nutrient content of a target compound in the food based on applying a nutrient training model to a bounding box portion of the image data containing each food; as well as The food is assigned a quality grade score based on the nutritional content of the target compound, wherein the score includes a listing of concentrations of the nutritional content of the target compound in the food.

42. A system for determining a quality level of a food product using image data, the system comprising: one or more imaging devices configured to measure image data of food products of the same food type; as well as At least one computing system configured to: receiving image data of a food product from the one or more imaging devices; performing object detection on the image data to identify a bounding box around each food product in the image data; determining a grid structure of the image data based on a bounding box around each food product in the image data, wherein each bounding box is assigned a grid index in the grid structure, wherein the grid index is used to identify the food product in the data repository; identifying, for each food product, a quality level of the food product by applying a plurality of trained models to a bounding box portion of the image data containing each food product, wherein each of the trained models is trained using image training data of other food products, the image training data being annotated based on previously identifying a first portion of the other food product as having a poor quality characteristic and a second portion of the other food product as having a good quality characteristic, wherein the other food product is of the same food type as the food product, wherein the plurality of trained models includes a first trained model trained to identify a first quality characteristic and a second trained model trained to identify a second quality characteristic different from the first quality characteristic; determining, for each food product, a quality grade score for the food product based on the identified quality grade of the food product; as well as For each food product, (i) the bounding box portion of the image data containing the food product, (ii) the grid index, (iii) the identified quality level of the food product, and (iv) the determined quality level score of the food product are stored in the data repository.

43. A system for determining a quality level of a food product using image data, the system comprising: A camera box having a first wall, a second wall, a third wall, and a fourth wall and a ceiling, wherein the camera box comprises: an opening in the first wall, the opening configured to receive a flat plate containing food products of the same food type; a cover plate configured to cover the opening to prevent ambient light from entering the camera box; at least one light disposed within the camera box, the at least one light providing uniform illumination to illuminate the plate containing the food product; and one or more imaging devices attached to the ceiling of the camera box and configured to capture image data of the food on the plate; and at least one computing system configured to: receiving image data of a food product from the one or more imaging devices; performing object detection on the image data to identify a bounding box around each food product in the image data; determining a grid structure of the image data based on a bounding box around each food product in the image data, wherein each bounding box is assigned a grid index in the grid structure, wherein the grid index is used to identify the food product in the data repository; identifying, for each food product, a quality level of the food product by applying a plurality of trained models to a bounding box portion of the image data containing each food product, wherein each of the trained models is trained using image training data of other food products, the image training data being annotated based on previously identifying a first portion of the other food product as having a poor quality characteristic and a second portion of the other food product as having a good quality characteristic, wherein the other food product is of the same food type as the food product, wherein the plurality of trained models includes a first trained model trained to identify a first quality characteristic and a second trained model trained to identify a second quality characteristic different from the first quality characteristic; determining, for each food product, a quality grade score for the food product based on the identified quality grade of the food product; and For each food product, (i) the bounding box portion of the image data containing the food product, (ii) the grid index, (iii) the identified quality level of the food product, and (iv) the determined quality level score of the food product are stored in the data repository.

44. The system of claim 43, wherein the at least one light is an LED light.

45. The system of claim 43 or 44, wherein the camera box further comprises a camera support configured to extend across a ceiling of the camera box, wherein: The camera stand comprises three tubes connected at a three-way connector, A first tube extends from the three-way connector to the first wall, and a second tube extends from the three-way connector to the second wall, The second wall is opposite to the first wall, and a third tube extends from the three-way connector to the third wall, The third tube is perpendicular to the first tube and the second tube, and The one or more imaging devices are mounted to the camera support proximate the three-way connector and along at least one of the three tubes.

46. ​​The system of claim 43, 44 or 45, wherein the one or more imaging devices are at least one of an RGB camera, a hyperspectral imaging device, a thermal imager, an MRI scanning device, and an NMR imaging device.

Citation Information

Cited By

  • Food detection method and system based on image recognition

    CN119380333A

  • Dry product storage quality intelligent supervision system and method based on AI

    CN120163508A

  • Food quality risk early warning method and system

    CN120236277A

  • Litchi dry disease prevention and control intelligent storage method based on big data analysis

    CN121170780A

  • Diet nutrition analysis system and operation method

    TWI921213B