Next Article in Journal
Health Community 4.0: An Innovative Multidisciplinary Solution for Tailored Healthcare Assistance Management
Previous Article in Journal
Detection Method for Three-Phase Electricity Theft Based on Multi-Dimensional Feature Extraction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Dining Bowl Modeling and Optimization for Single-Image-Based Dietary Assessment

1
Department of Electrical & Computer Engineering, University of Pittsburgh, Pittsburgh, PA 15260, USA
2
Department of Bioengineering, University of Pittsburgh, Pittsburgh, PA 15260, USA
3
Department of Neurological Surgery, University of Pittsburgh, Pittsburgh, PA 15260, USA
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(18), 6058; https://doi.org/10.3390/s24186058
Submission received: 17 May 2024 / Revised: 11 September 2024 / Accepted: 11 September 2024 / Published: 19 September 2024
(This article belongs to the Special Issue Smart Sensing for Dietary Monitoring)

Abstract

:
In dietary assessment using a single-view food image, an object of known size, such as a checkerboard, is often placed manually in the camera’s view as a scale reference to estimate food volume. This traditional scale reference is inconvenient to use because of the manual placement requirement. Consequently, utensils, such as plates and bowls, have been suggested as alternative references. Although these references do not need a manual placement procedure, there is a unique challenge when a dining bowl is used as a reference. Unlike a dining plate, whose shallow shape does not usually block the view of the food, a dining bowl does obscure the food view, and its shape may not be fully observable from the single-view food image. As a result, significant errors may occur in food volume estimation due to the unknown shape of the bowl. To address this challenge, we present a novel method to premeasure both the size and shape of the empty bowl before it is used in a dietary assessment study. In our method, an image is taken with a labeled paper ruler adhered to the interior surface of the bowl, a mathematical model is developed to describe its shape and size, and then an optimization method is used to determine the bowl parameters based on the locations of observed ruler makers from the bowl image. Experimental studies were performed using both simulated and actual bowls to assess the reliability and accuracy of our bowl measurement method.

1. Introduction

There are growing concerns about high-calorie, low-nutrition diets and their long-term health complications, such as obesity, hypertension, diabetes, and heart disease. A crucial aspect in addressing these public health problems is to assess an individual’s nutrient and calorie intake quantitatively. The result of this assessment can provide data to aid in the prevention and treatment of various chronic diseases through personalized intervention and precision medicine [1]. Traditionally, dietary assessment is often conducted by self-reporting approaches (e.g., 24-h dietary recall [2], food diary [3], and food frequency questionnaire [4]), which are subject to bias and inaccuracy. With the increasing popularity of mobile devices, image-based dietary assessment methods using a smartphone or a wearable camera have been developed. These methods, which are mostly single-image-based, involve two important steps that are still being investigated: food recognition and portion size estimation. With the rapid development of deep learning techniques, food recognition studies have achieved significant progress [5,6,7,8,9,10,11]. However, accurately estimating food volume remains a significant challenge [10,11,12,13,14,15].
Besides unsolved problems with respect to the irregular shapes of various foods [16,17] (this topic is outside the scope of this paper), lacking an accurate reference to determine the size of the food in an image is currently problematic. This problem is analogous to the case where an accurate scale bar is lacking when the area of a region in a map is measured. There have been many forms of scale references studied. We divide commonly used references into two groups: traditional references and utensil references. Traditional references commonly involve the deliberate inclusion of a physical object of known size, such as a checkerboard [18,19,20,21], a rectangular object (a wallet, a card, etc.) [22,23], or a coin [24,25,26] alongside the food. This type of reference is inconvenient to use because of the required manual procedure of placing this reference in the camera’s view. In contrast, utensil references involve items like a spoon [27], chopsticks [28], and a food container—usually a bowl [29] or a plate [30]—which provide essential reference information for estimating food volume without the need for a special manual procedure. For a shallow circular plate, the plate diameter is usually used as the scale reference, and the observed plate distortion (i.e., a round plate appears as an ellipse in the image when not viewed from directly above) is used to determine the camera’s orientation [30,31]. However, if the container is a bowl, the food may be obscured partially or completely by the edge of the bowl unless the image is taken from above the food. Thus, to estimate the nutrients/portion of food in a bowl, top-view images are used [16,32,33]. Although obscureness is avoided, food volume estimation cannot be accurate regardless of the estimation method used. This is because the bottom part of the food shape is determined by the shape of the bowl, but the bowl shape is unobservable from the image. To solve this problem, a spherical cap has been used to represent the bowl shape after the bowl’s height and diameter are estimated [28,34,35], which is not accurate.
Since the shape of food in a bowl is at least partially determined by the shape of the bowl, it is desirable to pre-measure the bowl to provide a more accurate reference to estimate the food volume. Jia et al. [29] proposed to pre-measure the size and shape of a bowl using an adhesive paper strip printed with ruler markers. When the bowl with the strip is photographed, the paper strip exhibits distortions, which are analyzed for bowl reconstruction. Although this method provides complete 3D information about the bowl, the photograph must be taken directly above the center of the bowl. In practice, it is difficult to keep the camera position exactly where it is required.
In this study, we focus on solving the size and shape measurement problem for the bowl so that it can be used as an accurate scale reference in the subsequent food volume estimation step (this step is not discussed in this paper but is described in [28,36]). We relax the requirement for the camera to be positioned directly above the center of the bowl. We incorporate a simple mathematical model to represent the shape/size of the bowl. Instead of computing the profile (curve) of the interior surface of the bowl point-by-point, we determine the parameters of our model using a coarse-to-fine numerical optimization procedure. Our method innovates the utensil reference technique for image-based dietary assessment.
This paper is organized as follows: Section 2 describes the mathematical model representing the bowl and outlines the algorithms for estimating the model parameters. Section 3 provides details of the experiments using both simulated and measured bowl data. Section 4 discusses several implementational issues of our method towards its practical application. Lastly, Section 5 draws conclusions.

2. Methods

In this section, we present a mathematical model that represents the shape of a circular bowl and an optimization algorithm for estimating bowl parameters.

2.1. Bowl Model

Although most real-life bowls are circular when viewed from the top, they have various shapes when viewed from the side, exhibiting characteristics ranging from a “thin bowl” to a “plump bowl” [37,38]. Consequently, we introduce a quantitative measure called “plumpness”, denoted by p , to systematically capture these characteristics:
p = V b o w l V c y l i n d e r .
Equation (1) indicates that p is a ratio of the bowl’s volume V b o w l to the volume of a cylinder, V c y l i n d e r , with the same radius and height as the bowl. When the bowl is very “thin”, it approaches a spherical cone, p 1 3 . On the other hand, when the bowl is very “plump”, it approaches a cylinder, p 1 . Therefore, 1 3   and 1 define the lower and upper bounds of p   , respectively.
Let R and H denote, respectively, the radius and height of the bowl. Let the central cross-section of the bowl in the y–z plane be z = f ( y ) , where f ( y ) is a continuously differentiable and strictly monotonic function, as illustrated in Figure 1a. By rotating f ( y ) 360 degrees around the z -axis, a three-dimensional surface is formed (shown in Figure 1b), representing the interior surface of the bowl.
Given f ( y ) , Equation (1) becomes
p = 0 H π y 2 d z π R 2 H = 1 R 2 H 0 R y 2 d f ( y ) d y d y .
The last step in Equation (2) is obtained by changing the integration variable from z to y . Among various candidates for f ( y ) , we aimed to choose a function that is simple yet reflects the shape of the bowl. After comparing several candidates, we selected a power function, given by
z = f y = y R q H ,   for   0 y R , q > 1
where q is a parameter that determines the bowl shape. We chose this particular function primarily for two reasons: (1) it is continuously differentiable and strictly monotonic; thus Equation (2) is well-defined, and (2) for q > 1
d f ( y ) d y = q y q 1 H R q 0   a t   y = 0 .
Equation (4) ensures that the bowl meets an important requirement that it must be smooth and stable when placed on the “tabletop” (i.e., x–y plane) because the bowl has a nearly flat region at the “bottom” (Figure 1a).
Substituting Equation (3) into Equation (2), we have
p = 1 R 2 H 0 R y 2 d f ( y ) d y d y = 1 R 2 H 0 R y 2 q y q 1 H R q d y = q R q + 2 0 R y q + 1 d y = q R q + 2 y q + 2 q + 2 R 0 = q q + 2 .
Let us now determine the lower and upper bounds of p . When q 1 ,   p 1 3 ; when q ,   p 1 .   Thus, these bounds (stated after Equation (1)) are correct. Figure 2 shows a few example bowls with different plumpness values.

2.2. Formulation of Parameter Estimation

The mathematical model of the bowl (Equation (3)) requires determining three parameters: rim radius R, height H, and shape parameter q. While R and H can be measured physically using a ruler, there is no simple way to determine q. To solve this problem, we attach an adhesive paper ruler centrally across the bottom of the bowl (Figure 3) and then take a picture using a smartphone. Upon close observation, it can be found that variations in both the width of the paper ruler and the spacing between the black division markers provide information about the bowl’s shape. Closer locations to the camera exhibit wider width and larger spacings, while the opposite is true for farther locations. Additionally, the width and spacing also vary with the camera’s view angle. As stated previously, we developed an image-processing algorithm to reconstruct the actual cross-section curve of the bowl without using a mathematical model [29]. However, due to the limitations of that algorithm, the picture must be taken directly above the bowl. Unfortunately, this form of picture-taking is challenging in practice because finding the correct top view by manually positioning the smartphone is difficult. In the following pages, we present an optimization method to estimate the bowl shape without the top-view requirement, simplifying the practical procedure for bowl measurement.
We first created two groups of landmark points from the observed paper ruler in the 2D input image. One group is located along the upper edge of the ruler, and the other is positioned along the bottom. For example, in the case shown in Figure 3, except for the points at both ends, we chose landmark points (e.g., all 0.5-inch markers). Let c i denote the coordinates (in terms of pixels) of the ith landmark point obtained from the 2D input image:
c i = m i n i .
Here, i = 1 ,   2 , , N ,   where N is the total number of landmark points. Let p i = x i , y i , z i T   denote the coordinates of the 3D point on the inner surface of the bowl that corresponds to c i , with z i = x i 2 + y i 2 R q H (according to Equation (3) after rotation around the z-axis). Now, we apply the standard camera coordinate transformation to project p i onto the 2D image p i [39,40,41]. The reprojection error, which is the discrepancy between the landmark point c i and the projection of the simulated 3D point p i , depends on the accuracy of the bowl’s model and the camera’s extrinsic parameters. Minimizing this discrepancy enables us to find the best 3D points that match the landmark points observed from the image [42], thereby allowing us to determine the shape of the bowl. Specifically, in the first step, a 3D point p i in the physical world is transformed into a 3D point p i = x i ,   y i , z i T in the camera coordinate system by
p i = R p i + t
where R is a rotation matrix and t is a three-dimensional translation vector. In the next step, the 3D point p i   is projected onto the 2D image as c ~ i = m ~ i , n ~ i T using the ideal pinhole camera model [40]:
c ~ i = m ~ i n ~ i = F x i z i + c x F y i z i + c y
where F is the focal length of the camera in pixels and c x   a n d   c y represent the x- and y- coordinate, respectively, of the optical center (also known as the principal point) in the image. Note that F , c x , a n d   c y are intrinsic camera parameters, usually obtained from a camera calibration process [43].
At this point, we have two sets of 2D points, denoted as c i and c ~ i , corresponding to the measured landmark points and the projected 2D points, respectively . We aimed to solve the following optimization problem:
min S J = i = 1 N c ~ i c i 2
where S = { R , H , q , R , t } is the set of parameters to be optimized and · denotes the Euclidean norm.

2.3. Numerical Optimization

To estimate the bowl’s parameters— H , q , and R —through one-step optimization, it is imperative to express the 3D landmarks, p i ,   i = 1 ,   2 , , N (shown in Figure 4a) and then use the standard camera coordinate transformation to project p i to the measured 2D points, c i . However, p i is a function of H , q , and R , which are all target variables for optimization, and we cannot express this function in a closed form (we will revisit this problem in Section 3.1). As a result, we cannot estimate the bowl’s parameters through a simple one-step optimization process.
Thus, we propose a coarse-to-fine strategy to solve the optimization problem by estimating the camera pose, which includes its rotation matrix R (represented by Euler angles ϕ ,   θ , and ψ ) and translation vector t = [ X , Y , Z ] T (representing the camera’s movements along the x-, y- and z-axes, respectively). The specific steps of our proposed coarse-to-fine optimization algorithm are as follows:
  • Define a coarse grid for H , q , and R , where each point on the grid corresponds to a bowl model.
  • For each bowl model, obtain the optimal camera pose using the Levenberg–Marquardt (LM) algorithm.
  • Find m candidate bowls based on the selection criteria defined in Equations (10)–(12).
  • For each candidate bowl, use random search to explore the neighborhood of H , q , and R , and use the LM algorithm to optimize the camera pose.
  • If the smallest error is less than a preset threshold (determined experimentally), then stop; otherwise, go back to step 3.
The selection criteria used in this work are defined as the sum of two errors.
The first error, denoted as the relative tape length error e l , is defined as
e l = L e s t L g t L g t
where L e s t and L g t denote the estimated and ground truth tape length, respectively.
The second error, denoted as the mean normalized reprojection error e c , measures the normalized disparity between c i (obtained from the 2D image) and the estimated landmarks c ~ i . It is defined as
e c = 2 N i = 1 N 2 c ~ i c i + c ~ N 2 + i c N 2 + i c i c N 2 + i .
Here, N is the total number of detected landmarks along the two sides of the paper ruler, with N 2 landmarks on each side (as shown in Figure 4b,d). The expression within the summation computes the error for each point as the difference between the estimated and observed positions, relative to the width of the tape. Since the relative errors of these N 2 pairs of points are summed, the total is divided by N 2 to obtain the average relative error. Then, the sum of these two errors serves as the selection criteria in our algorithm, defined as
e n = e c + e l .

2.4. Volumetric Error Analysis

As stated previously, the goal of bowl measurement is to estimate food volume. Therefore, after the three bowl parameters (q, H, and R) are estimated, it is important to understand the statistical properties of the bowl volumetric error in relation to the errors of these three estimates.
From basic estimation theory [44], we have
Δ V = V V 0     V q 0 , H 0 , R 0 H Δ H + V q 0 , H 0 , R 0 R Δ R + V q 0 , H 0 , R 0 q Δ q
where Δ V , Δ q , Δ H , and Δ R are estimation errors for the volume, radius, height, and shape parameters of the bowl, respectively, and   V 0 , q 0 , H 0 , and R 0 are the corresponding ground truth values.
Combining Equations (1) and (5), we have V = q q + 2 π H R 2 . Thus
V q 0 R 0 2 π q 0 + 2 H + 2 q 0 H 0 R 0 π q 0 + 2 R + 2 H 0 R 0 2 π q 0 + 2 2 q .
Rearrange and simplify:
V V 0 H H 0 + 2 R R 0 + 2 q ( q 0 + 2 ) q 0 .
Since, for real-world bowls, the choices of parameters q , H , and R are not dependent on each other, we can assume that they are statistically uncorrelated. Hence,
σ V 2 = E V V 0 2 E V V 0 2
where σ V is the standard deviation of V . Similarly, we can define σ q , σ H , and σ R . Now, let us consider the last term in Equation (16). By the optimization theory, at the neighborhood of the ground truth, the squared error surface function tends to be quadratic [45]. As a result, within this neighborhood, the chances of positive and negative estimation errors tend to be equal. Therefore, we assume that the LM algorithm (Steps 2 and 4 in the second paragraph in Section 2.3) is an unbiased estimator in the neighborhood of the ground truth, i.e., the expected values of these estimates are equal to zero. Using this assumption and substituting Equation (15) for Equation (16) yield
σ V 2 E H H 0 2 + E 2 R R 0 2 + E 2 q 0 + 2 2 q q 0 2 σ H 2 + 4 σ R 2 + 4 q 0 + 2 2 σ q 2 .
Equation (17) indicates that the volumetric estimate spreads more widely than each of the H , R , and q estimates (amplification effect). Equation (17) also indicates that σ v is more sensitive to σ R than σ H but for q 0 > 1 , it is less sensitive to σ q .

3. Experiments

To evaluate our bowl measurement method, we first conducted experiments using both computer-simulated and real-world bowls. Then, the mathematical bowl model was validated using 3D scans of bowls of various shapes. In the computer simulation experiment, all the parameters, including the three parameters for the bowl itself, landmark points on a simulated ruler, and the intrinsic and extrinsic parameters of the camera were all known in advance. They served as the ground truth to facilitate the evaluation of the estimation error resulting from the optimization algorithm. In the second experiment, real-world bowls were evaluated using hand-measured values as the ground truth. We also studied several important practical issues in this experiment, including the choices of a paper ruler, interpolation of the landmark points, and the deviations between the shapes of the modeled and real-world bowls. In the third experiment, we validated the bowl model by comparing the central curve derived from the digitally scanned bowl data with the curve produced by our mathematical model. These studies facilitate practical applications of our method.

3.1. Simulated Bowls

Our simulation study included the following steps: (1) constructing a virtual 3D bowl; (2) simulating a virtual paper ruler on the interior surface of the bowl; (3) equally dividing the length of the paper ruler into 20 segments and, for each segment, finding landmark points along the ruler’s two side edges; (4) selecting the extrinsic parameters of the camera (generated randomly in a practical range for each parameter) and projecting the virtual ruler and landmark points onto a 2D image using the ideal pinhole camera model; (5) implementing the optimization algorithm and comparing the results with the ground truth values. The details of these steps are presented below.
The set of bowl parameters R ,   H ,   q was generated randomly. After generating each set, a curve z = f y given in Equation (3) was formed. Then, the simulated bowl was obtained by rotating f y around the z -axis, as shown in Figure 1. The total length of ruler L is given by
L = 2 0 R 1 + d f ( y ) d y 2 d y = 2 0 R 1 + y q 1 R q H q 2 d y .
Unfortunately, Equation (18) cannot be written in closed form. We thus evaluated it numerically by accumulating the squared function with small increments of y . Then, we equally divided L into 20 segments and obtained the set of 3D landmark points ( p i ,   i = 1 ,   2 , , N ) .   The result is shown as the green line in Figure 5. The length of each segment is l, as shown in Figure 4c. Since L is a function of H , q , and R without a closed form, so are l and p i . This clarifies the issue mentioned in the first paragraph of Section 2.3. Next, we drew a series of parallel circles on the bowl surface, perpendicular to the green curve (blue lines in Figure 5). Finally, the two points on each circle to both sides of the curve defined a pair of landmark points (each pair of magenta dots in Figure 5). Note that the two landmark points were centered at each division, and the curve length between the pair of points was equal to the ruler width (5 mm in our case). In the simulation process, special care was taken in the area near the bottom of the bowl (pink hatched area), where the concentric circles become very small, and the height difference between neighboring concentric circles is very small, approximately in the same plane. In this area, we calculated the landmark points directly by curve length without using concentric circles (shown as cyan dots in Figure 5).
After obtaining all the 3D coordinates of the landmark points, we used Equations (7) and (8) to obtain the 2D projections of the 3D bowl. In this process, the camera parameters were randomly generated as part of the simulation process. To ensure that the ranges of all the randomly generated parameters were reasonable in practical cases, these ranges, listed in Table 1, were manually specified based on knowledge of real-world bowls.
Using the methods described above, we simulated five bowls with different shapes and sizes as representatives of real-world bowls. These bowls are graphically shown in the bottom row of Figure 6.
Next, for each bowl, 25 images were generated with random camera extrinsic parameters, including translation distances ( X , Y , Z ) and Euler angles ( ϕ , θ , ψ ) within the specified parametric ranges in Table 1. Table 2 shows the true and estimated bowl and camera parameters (rows 2 through 10) from our optimization algorithm. The estimated and true volumes of the bowl are also listed. Note that the estimated values in Table 2 are based on the mean and standard deviations calculated from the 25 independent simulations with random parameters.
It can be observed in Table 2 that our optimization method is highly accurate. Most estimation errors are below 1 % , and the maximum error is less than 5 % . It can be observed that larger relative errors are usually associated with the estimates of parameter q and volume V . We believe that the q estimates are more difficult than R and H because q is the power of variable y . The large error associated with V is due to an amplification effect, as indicated in Section 2.4. The second-to-last row in Table 2 shows the standard deviation of the estimated volumetric error. The last row in Table 2 provides the calculated volumetric error according to Equation (17). In theory, these errors differ from the true errors by the second and higher-order terms [46].
The five simulated bowls were characterized by different sizes and shapes (bottom row in Figure 6). The box plots in the same figure show the relative volumetric errors of these bowls. It can be observed that the volumetric errors exhibit consistent patterns of distribution across different bowl shapes and sizes. The results also show a few error outliers. When considering all the simulated images (a total of 125), our calculation found that the averaged interquartile range (IQR) of all the volumetric errors was 4.7%, indicating that our algorithm is robust.
Among the five bowls, the box plot for bowl #3 shows a much wider range of IQR. We believe that this was caused by the shape of bowl #3 (the red one in the bottom row), which appears more like a plate than a bowl. For such a “bowl”, the standard deviations of the estimates for radius ( R ) , height ( H ) , and power q tend to be larger, as observed in Table 2.

3.2. Real-World Bowls

3.2.1. Paper Ruler Selection

The adhesive paper ruler plays a critical role in our bowl measurement method. We chose yellow as the color of the ruler (Figure 3) because of its sharp contrast with the colors of most bowls, as yellow bowls are relatively rare. Thus, the yellow color facilitates image processing. Adhesive paper rulers on the market typically use either a metric or an imperial scale. Although fine divisions in millimeters produce denser landmark points, our study found that too many landmark points caused excessive complexity in image processing without producing proportional improvement in model accuracy. In addition, at certain camera angles, the fine divisions of the ruler became difficult to identify from the image.
As opposed to the metric scale in millimeters, our study shows that 0.125 -inch divisions in the imperial system balanced the data processing complexity and measurement accuracy. We also studied the width of the paper ruler. We found that if it was too narrow, the effect of width variation observed in the image was reduced. Conversely, if it was too wide, the curvature of the bowl surface created wrinkles due to uneven local tension in the paper ruler. Considering all these practical factors, we finally chose a yellow color, 0.125 -inch divisions, and 0.94-inch width paper ruler. It was made in the form of a low-cost adhesive tape (Figure 7).

3.2.2. Landmark Labeling of Real-World Bowl Image Processing

Identifying the landmark points on the paper ruler is a crucial step before applying our optimization algorithm. Manual identification is feasible and robust but time-consuming. Conversely, automatic identification using an image processing algorithm is fast and labor-free but sensitive to imperfect images, which poses a risk of producing large errors (outliers). Balancing both approaches, we used a semi-automatic method.
We first manually labeled the landmark points at intervals of 0.5 inches (red points in Figure 8a). However, the landmarks near the rim of the bowl must be labeled (Figure 8c). To filter out the small, random errors of hand-labeling, we first used a simple averaging filter that produces the midpoints (black points on the green line in Figure 9) along the dashed blue line connecting each pair of red dots (vertical filtering). Similarly, we applied the same averaging filter to the distances between the left and right neighbors (horizontal filtering), i.e., at point O , we computed
h = O A ¯ + O B ¯ 2
where the top bars denote the distances between the corresponding points and h is the filtered distance (plotted in the top row of Figure 9). After these filtering processes, we up-sampled the landmark points by 4, using the existing points (except the bordering ones) to obtain the final result (Figure 8d).

3.2.3. Accuracy of Bowl Parameter Estimation

We utilized seven real-world bowls (Figure 10). Among them, four were selected from the bowls available in our laboratory (bowls #6 through #9, originally from the authors’ homes). We also selected an “odd-shaped” bowl (#6), which was like a trapezoid in cross-section. The remaining three bowls (bowls #10, #11, and #12) were from our field study conducted in East Africa.
For each bowl, we hand-measured its height and diameter using a ruler and its volume by filling it with water and measuring its weight. To measure q , we calculated the plumpness using Equation (2) based on the measured volume and then used Equation (5) to find the q value. These measurements were used as the ground truth in our experiments.
Next, we used our modeling method to estimate the bowl parameters. The results are shown in Table 3 and Figure 11. It can be observed that the estimated values of the bowl parameters are mostly below 10 % , indicating that our model-based estimation approach is generally accurate. It is also noticed from Table 3 that the estimates for bowl #6 tend to be much larger than those for the rest of the bowls. We believe that this reflects the limit of our mathematical model, which cannot represent the shape of this bowl adequately (to be discussed further in the next section).

3.3. Validation of the Bowl Model

To thoroughly evaluate the accuracy of our mathematical model given in Equation (3), we employed a 3D scanner (Model: Revopoint POP 2, Los Angeles, CA, USA) to reconstruct the shapes of three bowls (#6, #7, and #8) and compared these shapes with our model. Figure 12 shows three sets of 3D point clouds resulting from our scans. Next, we sliced each point cloud along the central cross-section (blue curve in Figure 12a–c). The results are shown in Figure 12d–f as red asterisks. Our mathematical model, represented by Equation (3), based on hand-measured parameters, is shown as pink curves. It can be observed that, for bowls #7 and #8, our model and the 3D-constructed point are well-matched. On the other hand, our model fits poorly for bowl #6, which has a trapezoid-like cross-section (Figure 12d). It can be observed that the fitting was worst at the “elbow” areas of the bowl. This indicates that our model is not universally applicable to all bowls. For bowls that cannot be modeled as a power function, the measurement method reported in [29] that does not depend on a mathematical model can be utilized.
Some additional features can be observed in Figure 11d. At the bowls’ top part (near the rim), the bowls usually bend outwards. We believe that this bending improves the bowls’ appearance and makes them more comfortable to hold for self-feeding. Although this small bend is not reflected in our model, our study indicates that the resulting error is not excessive since the bend is usually small.
We further validated our mathematical model using a public set of digital 3D bowl models in the form of point clouds [37]. Most bowls in this dataset were models of commercial bowls sold in IKEA stores. Since the shapes of many bowls were similar, it was unnecessary to model all the bowls. We thus manually selected 10 3D models representing different bowl shapes and sizes. The interior surface of each selected bowl was fitted with our mathematical model. The results (two examples) are shown in Figure 13, and the modeling errors (for all 10 bowls) are listed in Table 4.
While Figure 13a shows an almost perfect fitting between the real and modeled bowls, Figure 13b indicates a relatively inferior fitting since this “bowl”—in fact, a deep plate—cannot be accurately represented by a power function, similar to the case of bowl #6 in Figure 12d. In Table 4, four different types of modeling errors (mean absolute error (MAE), relative MAE, root mean squared error (RMSE), and relative RMSE) are listed, where the two relative errors were both normalized by the bowl height. The data suggest that our bowl modeling method is accurate for most real-world bowls.

4. Discussion

In this section, we discuss several important issues, including assumptions, limitations, and applicability of our method to food volume estimation.
Our mathematical bowl model assumes that a bowl’s shape can be modeled as a power function. Our studies have shown that this assumption is acceptable for most real-world bowls. However, as shown in Section 3.3, there are bowls that do not fit the model well. Specifically, bowls with a trapezoidal cross-section do not conform well to this model. Furthermore, bowls with an uneven rim or a rim diameter smaller than the bowl’s maximum diameter pose significant difficulties. Not being able to model all real-world bowls is a limitation of the proposed method.
Additionally, our 3D bowl reconstruction method assumes that the paper ruler adhered to the interior surface of the bowl is fully visible in the image. In case where an occlusion occurs, the image should be re-taken to avoid excessive measurement error.
Although our work is focused on the measurements of bowl geometry, the measurement is critically linked to the estimation of food portion size, a key requirement in dietary assessment. The measured geometry includes bowl diameter, height, and curvature, which directly influences how food occupies space within it. By precisely modeling the bowl’s shape and size, our method provides a reliable utensil reference to determine the volume of food contained within the bowl.
In comparison, the AIM method [47] offers an automated approach to estimating plate and bowl dimensions in dietary assessment through a wearable camera. The integrated ranging sensor is used to provide the distance between the sensor and the eating surface, eliminating the need for a fiducial marker. However, the wearable sensor is required, and the experiment results show that the height estimation is not very reliable due to the large variance. In contrast, our method only requires an image of a bowl with a paper ruler adhered to the interior surface of the bowl. It can estimate not only the bowl’s height and diameter but also its shape (i.e., plumpness). This detailed shape information provides a more accurate reference for estimating the volume of food in the bowl.

5. Conclusions

In this work, we have presented a practical method to measure circular dining bowls using an adhesive paper ruler and a smartphone. A robust mathematical model containing three parameters was developed, and an optimization method was implemented to estimate these parameters. The new method allows a smartphone picture to be taken at an arbitrary view angle, which simplifies the bowl measurement process significantly as compared to the previous method. This advancement is particularly important for accurate food volume estimation in dietary assessments, where the size and shape of bowls play a crucial role. To understand the statistical properties of the estimation errors, an error sensitivity analysis was performed. A mathematical expression linking the standard deviations of the bowl volumetric and parametric errors was derived. Finally, several experimental studies were conducted to demonstrate the effectiveness of the proposed bowl measurement method.

Author Contributions

Conceptualization, B.L., M.S., W.J., and Z.-H.M.; methodology, B.L., M.S., W.J., and Z.-H.M.; software, B.L.; validation, B.L., M.S., W.J., and Z.-H.M.; investigation, B.L., M.S., W.J., and Z.-H.M.; data curation, B.L.; writing—original draft preparation, B.L.; writing—review and editing, B.L., M.S., W.J., and Z.-H.M.; supervision, M.S., W.J., and Z.-H.M.; project administration, W.J.; funding acquisition, M.S., W.J., and Z.-H.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the U.S. National Institutes of Health (Grant No. R56 DK113819 and No. R01DK127310) and the Bill & Melinda Gates Foundation, Seattle, WA (OPP1171395).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets used and/or analyzed during the current study are available from the corresponding author upon request.

Acknowledgments

Thanks to Maria Anne for conducting the experiments in Africa.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Xu, C.; He, Y.; Khannan, N.; Parra, A.; Boushey, C.; Delp, E. Image-based food volume estimation. In Proceedings of the 5th International Workshop on Multimedia for Cooking & Eating Activities, Barcelona, Spain, 21 October 2013; pp. 75–80. [Google Scholar]
  2. Baranowski, T. 24-hour recall and diet record methods. Nutr. Epidemiol. 2012, 40, 49–69. [Google Scholar]
  3. Krall, E.A.; Dwyer, J.T. Validity of a food frequency questionnaire and a food diary in a short-term recall situation. J. Am. Diet. Assoc. 1987, 87, 1374–1377. [Google Scholar] [CrossRef] [PubMed]
  4. Cade, J.; Thompson, R.; Burley, V.; Warm, D. Development, validation and utilisation of food-frequency questionnaires—A review. Public Health Nutr. 2002, 5, 567–587. [Google Scholar] [CrossRef] [PubMed]
  5. Salim, N.O.; Zeebaree, S.R.; Sadeeq, M.A.; Radie, A.; Shukur, H.M.; Rashid, Z.N. Study for food recognition system using deep learning. J. Phys. Conf. Ser. 2021, 1963, 012014. [Google Scholar] [CrossRef]
  6. Kiourt, C.; Pavlidis, G.; Markantonatou, S. Deep learning approaches in food recognition. In Machine Learning Paradigms: Advances in Deep Learning-Based Technological Applications; Springer: Berlin/Heidelberg, Germany, 2020; pp. 83–108. [Google Scholar]
  7. Subhi, M.A.; Ali, S.H.; Mohammed, M.A. Vision-based approaches for automatic food recognition and dietary assessment: A survey. IEEE Access 2019, 7, 35370–35381. [Google Scholar] [CrossRef]
  8. Zhou, L.; Zhang, C.; Liu, F.; Qiu, Z.; He, Y. Application of deep learning in food: A review. Compr. Rev. Food Sci. Food Saf. 2019, 18, 1793–1811. [Google Scholar] [CrossRef]
  9. Zhang, Y.; Deng, L.; Zhu, H.; Wang, W.; Ren, Z.; Zhou, Q.; Lu, S.; Sun, S.; Zhu, Z.; Gorriz, J.M. Deep learning in food category recognition. Inf. Fusion 2023, 98, 101859. [Google Scholar] [CrossRef]
  10. Tahir, G.A.; Loo, C.K. A comprehensive survey of image-based food recognition and volume estimation methods for dietary assessment. Healthcare 2021, 9, 1676. [Google Scholar] [CrossRef]
  11. Konstantakopoulos, F.S.; Georga, E.I.; Fotiadis, D.I. A Review of Image-Based Food Recognition and Volume Estimation Artificial Intelligence Systems. IEEE Rev. Biomed. Eng. 2024, 17, 136–152. [Google Scholar] [CrossRef]
  12. Lo, F.P.W.; Sun, Y.; Qiu, J.; Lo, B. Image-based food classification and volume estimation for dietary assessment: A review. IEEE J. Biomed. Health Inform. 2020, 24, 1926–1939. [Google Scholar] [CrossRef]
  13. Amugongo, L.M.; Kriebitz, A.; Boch, A.; Lütge, C. Mobile computer vision-based applications for food recognition and volume and calorific estimation: A systematic review. Healthcare 2022, 11, 59. [Google Scholar] [CrossRef] [PubMed]
  14. Lo, F.P.-W.; Sun, Y.; Qiu, J.; Lo, B. Food volume estimation based on deep learning view synthesis from a single depth map. Nutrients 2018, 10, 2005. [Google Scholar] [CrossRef] [PubMed]
  15. Abdur Rahman, L.; Papathanail, I.; Brigato, L.; Mougiakakou, S. A comparative analysis of sensor-, geometry-, and neural-based methods for food volume estimation. In Proceedings of the 8th International Workshop on Multimedia Assisted Dietary Management, Ottawa, ON, Canada, 29 October 2023; pp. 21–29. [Google Scholar]
  16. Ege, T.; Yanai, K. Estimating food calories for multiple-dish food photos. In Proceedings of the 2017 4th IAPR Asian Conference on Pattern Recognition (ACPR), Nanjing, China, 26–29 November 2017; pp. 646–651. [Google Scholar]
  17. Konstantakopoulos, F.; Georga, E.I.; Fotiadis, D.I. 3D reconstruction and volume estimation of food using stereo vision techniques. In Proceedings of the 2021 IEEE 21st International Conference on Bioinformatics and Bioengineering (BIBE), Kragujevac, Serbia, 25–27 October 2021; pp. 1–4. [Google Scholar]
  18. Hassannejad, H.; Matrella, G.; Ciampolini, P.; Munari, I.D.; Mordonini, M.; Cagnoni, S. A new approach to image-based estimation of food volume. Algorithms 2017, 10, 66. [Google Scholar] [CrossRef]
  19. Xu, C.; He, Y.; Khanna, N.; Boushey, C.J.; Delp, E.J. Model-based food volume estimation using 3D pose. In Proceedings of the 2013 IEEE International Conference on Image Processing, Melbourne, Australia, 15–18 September 2013; pp. 2534–2538. [Google Scholar]
  20. Rahman, M.H.; Li, Q.; Pickering, M.; Frater, M.; Kerr, D.; Bouchey, C.; Delp, E. Food volume estimation in a mobile phone based dietary assessment system. In Proceedings of the 2012 Eighth International Conference on Signal Image Technology and Internet Based Systems, Naples, Italy, 25–29 November 2012; pp. 988–995. [Google Scholar]
  21. Fang, S.; Shao, Z.; Mao, R.; Fu, C.; Delp, E.J.; Zhu, F.; Kerr, D.A.; Boushey, C.J. Single-view food portion estimation: Learning image-to-energy mappings using generative adversarial networks. In Proceedings of the 2018 25th IEEE International Conference on Image Processing (ICIP), Athens, Greece, 7–10 October 2018; pp. 251–255. [Google Scholar]
  22. Okamoto, K.; Yanai, K. An automatic calorie estimation system of food images on a smartphone. In Proceedings of the 2nd International Workshop on Multimedia Assisted Dietary Management, Amsterdam, The Netherlands, 16 October 2016; pp. 63–70. [Google Scholar]
  23. Martin, C.K.; Kaya, S.; Gunturk, B.K. Quantification of food intake using food image analysis. In Proceedings of the 2009 Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Minneapolis, MN, USA, 3–6 September 2009; pp. 6869–6872. [Google Scholar]
  24. Chen, J.-C.; Lin, K.W.; Ting, C.-W.; Wang, C.-Y. Image-based nutrition composition analysis with a local orientation descriptor. In Proceedings of the 2016 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Budapest, Hungary, 9–12 October 2016; pp. 004211–004216. [Google Scholar]
  25. Liang, Y.; Li, J. Deep learning-based food calorie estimation method in dietary assessment. arXiv 2017, arXiv:1706.04062. [Google Scholar]
  26. Kadam, P.; Pandya, S.; Phansalkar, S.; Sarangdhar, M.; Petkar, N.; Kotecha, K.; Garg, D. FVEstimator: A novel food volume estimator Wellness model for calorie measurement and healthy living. Measurement 2022, 198, 111294. [Google Scholar] [CrossRef]
  27. Sharma, A.; Czarnecki, C.; Chen, Y.; Xi, P.; Xu, L.; Wong, A. How Much You Ate? Food Portion Estimation on Spoons. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 17–21 June 2024; pp. 3761–3770. [Google Scholar]
  28. Akpa, E.A.H.; Suwa, H.; Arakawa, Y.; Yasumoto, K. Smartphone-based food weight and calorie estimation method for effective food journaling. SICE J. Control. Meas. Syst. Integr. 2017, 10, 360–369. [Google Scholar] [CrossRef]
  29. Jia, W.; Ren, Y.; Li, B.; Beatrice, B.; Que, J.; Cao, S.; Wu, Z.; Mao, Z.-H.; Lo, B.; Anderson, A.K. A novel approach to dining bowl reconstruction for image-based food volume estimation. Sensors 2022, 22, 1493. [Google Scholar] [CrossRef]
  30. Jia, W.; Chen, H.-C.; Yue, Y.; Li, Z.; Fernstrom, J.; Bai, Y.; Li, C.; Sun, M. Accuracy of food portion size estimation from digital pictures acquired by a chest-worn camera. Public Health Nutr. 2014, 17, 1671–1681. [Google Scholar] [CrossRef]
  31. Jia, W.; Yue, Y.; Fernstrom, J.D.; Yao, N.; Sclabassi, R.J.; Fernstrom, M.H.; Sun, M. Image based estimation of food volume using circular referents in dietary assessment. J. Food Eng. 2012, 109, 76–86. [Google Scholar] [CrossRef]
  32. Agarwal, R.; Bansal, N.; Choudhury, T.; Sarkar, T.; Ahuja, N.J. IndianFoodNet-30. Available online: https://universe.roboflow.com/indianfoodnet/indianfoodnet (accessed on 15 August 2024).
  33. Gao, J.; Tan, W.; Ma, L.; Wang, Y.; Tang, W. MUSEFood: Multi-Sensor-based food volume estimation on smartphones. In Proceedings of the 2019 IEEE SmartWorld, Ubiquitous Intelligence & Computing, Advanced & Trusted Computing, Scalable Computing & Communications, Cloud & Big Data Computing, Internet of People and Smart City Innovation (SmartWorld/SCALCOM/UIC/ATC/CBDCom/IOP/SCI), Leicester, UK, 19–23 August 2019; pp. 899–906. [Google Scholar]
  34. Kim, J.-H.; Lee, D.-S.; Kwon, S.-K. Food Classification and Meal Intake Amount Estimation through Deep Learning. Appl. Sci. 2023, 13, 5742. [Google Scholar] [CrossRef]
  35. Agarwal, R.; Choudhury, T.; Ahuja, N.J.; Sarkar, T. Hybrid Deep Learning Algorithm-Based Food Recognition and Calorie Estimation. J. Food Process. Preserv. 2023, 2023, 6612302. [Google Scholar] [CrossRef]
  36. Jia, W.; Li, B.; Xu, Q.; Chen, G.; Mao, Z.-H.; McCrory, M.A.; Baranowski, T.; Burke, L.E.; Lo, B.; Anderson, A.K. Image-based volume estimation for food in a bowl. J. Food Eng. 2024, 372, 111943. [Google Scholar] [CrossRef]
  37. Maddock, B.; Offense, F. Dimensions. Available online: https://www.dimensions.com/collection/bowls (accessed on 1 August 2024).
  38. Kei. 7 Must Know Japanese Ramen Bowl Shapes, Sizes, and Materials. Available online: https://www.apexsk.com/blogs/japan-lifestyle/ramen-bowl-shapes-sizes-and-material-how-to-find-the-perfect-one-for-you (accessed on 14 August 2024).
  39. Faugeras, O. Three-Dimensional Computer Vision: A Geometric Viewpoint; MIT Press: Cambridge, MA, USA, 1993. [Google Scholar]
  40. Ma, Y.; Soatto, S.; Košecká, J.; Sastry, S. An Invitation to 3-d Vision: From Images to Geometric Models; Springer: New York, NY, USA, 2004. [Google Scholar]
  41. Forsyth, D.A.; Ponce, J. Computer Vision: A Modern Approach, 2nd ed.; Pearson Eductaion: Upper Saddle River, NJ, USA, 2002. [Google Scholar]
  42. Lu, X.X. A review of solutions for perspective-n-point problem in camera pose estimation. J. Phys. Conf. Ser. 2018, 1087, 052009. [Google Scholar] [CrossRef]
  43. Zhang, Z. A flexible new technique for camera calibration. IEEE Trans. Pattern Anal. Mach. Intell. 2000, 22, 1330–1334. [Google Scholar] [CrossRef]
  44. Sard, A. Linear Approximation; American Mathematical Soc.: Washington, DC, USA, 1963. [Google Scholar]
  45. Nocedal, J.; Wright, S.J. Numerical Optimization, 2nd ed.; Springer Science + Busuiness Media: New York, NY, USA, 2006. [Google Scholar]
  46. Press, W.H. Numerical Recipes 3rd Edition: The Art of Scientific Computing; Cambridge University Press: Cambridge, UK, 2007. [Google Scholar]
  47. Raju, V.B.; Hossain, D.; Sazonov, E. Estimation of plate and bowl dimensions for food portion size assessment in a wearable Sensor system. IEEE Sens. J. 2023, 23, 5391–5400. [Google Scholar] [CrossRef] [PubMed]
Figure 1. (a) Cross-section curve of the bowl model (blue), with the green-shaded region showing the area enclosed by the curve; (b) 3D bowl surface after rotating the curve in (a) by 360°, with the color of the surface varying according to the heights specified by Z.
Figure 1. (a) Cross-section curve of the bowl model (blue), with the green-shaded region showing the area enclosed by the curve; (b) 3D bowl surface after rotating the curve in (a) by 360°, with the color of the surface varying according to the heights specified by Z.
Sensors 24 06058 g001
Figure 2. Bowl shapes with different values of plumpness ( p ) representing by surface plots, with the color of the surface varying according to the heights specified by Z.
Figure 2. Bowl shapes with different values of plumpness ( p ) representing by surface plots, with the color of the surface varying according to the heights specified by Z.
Sensors 24 06058 g002
Figure 3. A bowl taped with an adhesive paper ruler. The red dots represent the selected landmark points.
Figure 3. A bowl taped with an adhesive paper ruler. The red dots represent the selected landmark points.
Sensors 24 06058 g003
Figure 4. (a) Three-dimensional bowl surface with 3D landmarks p i highlighted in magenta; (b) estimated 2D projected landmarks c ~ i in blue vs. real landmarks c i in magenta; (c) cross-sectional view of the tape’s edge represented by a green curve in the 3D space, where l denotes equal-length distances between markers on the adhesive paper ruler in the 3D space. Points p 1   and p 2 are 3D points with coordinates ( y 1 ,   z 1 ) and ( y 2 , z 2 ); (d) enlargement of the green circle from Figure 4b, illustrating c ~ i in blue and c i in magenta.
Figure 4. (a) Three-dimensional bowl surface with 3D landmarks p i highlighted in magenta; (b) estimated 2D projected landmarks c ~ i in blue vs. real landmarks c i in magenta; (c) cross-sectional view of the tape’s edge represented by a green curve in the 3D space, where l denotes equal-length distances between markers on the adhesive paper ruler in the 3D space. Points p 1   and p 2 are 3D points with coordinates ( y 1 ,   z 1 ) and ( y 2 , z 2 ); (d) enlargement of the green circle from Figure 4b, illustrating c ~ i in blue and c i in magenta.
Sensors 24 06058 g004
Figure 5. A simulated bowl with a paper ruler in 3D space. Blue lines represent concentric circles perpendicular to the green curve. Magenta dots indicate pairs of landmark points spaced by the ruler’s width (5 mm). Cyan dots in the pink-hatched area near the bottom show points calculated directly by curve length. The z-axis represents the vertical height of the bowl, while the x and y axes define the horizontal plane.
Figure 5. A simulated bowl with a paper ruler in 3D space. Blue lines represent concentric circles perpendicular to the green curve. Magenta dots indicate pairs of landmark points spaced by the ruler’s width (5 mm). Cyan dots in the pink-hatched area near the bottom show points calculated directly by curve length. The z-axis represents the vertical height of the bowl, while the x and y axes define the horizontal plane.
Sensors 24 06058 g005
Figure 6. Box plot of simulated bowl volumetric errors. Different colors correspond to different simulated bowls, labeled as #1 to #5. Each box plot is based on 20 images captured from various camera orientations and locations. For each box, the line within the box represents the median of the errors. The bottom and top edges of the box are the first and the third quartiles, respectively, defining the interquartile range (IQR). The extreme regions are defined as 1.5 times the IQR beyond the first and third quartiles, or quartile ±   1.5 IQR. Points outside this region are plotted individually as “+”, representing the likely outliers.
Figure 6. Box plot of simulated bowl volumetric errors. Different colors correspond to different simulated bowls, labeled as #1 to #5. Each box plot is based on 20 images captured from various camera orientations and locations. For each box, the line within the box represents the median of the errors. The bottom and top edges of the box are the first and the third quartiles, respectively, defining the interquartile range (IQR). The extreme regions are defined as 1.5 times the IQR beyond the first and third quartiles, or quartile ±   1.5 IQR. Points outside this region are plotted individually as “+”, representing the likely outliers.
Sensors 24 06058 g006
Figure 7. A roll of adhesive paper ruler as a tool for measuring bowls.
Figure 7. A roll of adhesive paper ruler as a tool for measuring bowls.
Sensors 24 06058 g007
Figure 8. (a) Selected landmark points for computation (red points); (b) interpolated landmark points (blue points); (c) and (d) enlarged details within the black boxes in (a,b).
Figure 8. (a) Selected landmark points for computation (red points); (b) interpolated landmark points (blue points); (c) and (d) enlarged details within the black boxes in (a,b).
Sensors 24 06058 g008
Figure 9. Extracted landmarks on the image. The red points are manually selected, and the black points represent the central landmarks. The height of the top magenta point represents the distance between two neighboring black points.
Figure 9. Extracted landmarks on the image. The red points are manually selected, and the black points represent the central landmarks. The height of the top magenta point represents the distance between two neighboring black points.
Sensors 24 06058 g009
Figure 10. Seven real-world bowls used in the experiments. Bowls #6 to #9 were selected from our laboratory, while bowls #10 to #12 were from East Africa.
Figure 10. Seven real-world bowls used in the experiments. Bowls #6 to #9 were selected from our laboratory, while bowls #10 to #12 were from East Africa.
Sensors 24 06058 g010
Figure 11. Comparison between the ground truth landmark points (blue) and the estimated landmark points (red) for four real bowls. The comparison results for bowls #6 to #9 are shown in (ad).
Figure 11. Comparison between the ground truth landmark points (blue) and the estimated landmark points (red) for four real bowls. The comparison results for bowls #6 to #9 are shown in (ad).
Sensors 24 06058 g011
Figure 12. (ac) 3D-scanned point clouds from three real bowls, with red points representing the central curves. (df) Comparison between the scanned points along the central curve of the real bowl (magenta) and the modeled (blue) cross-section curves.
Figure 12. (ac) 3D-scanned point clouds from three real bowls, with red points representing the central curves. (df) Comparison between the scanned points along the central curve of the real bowl (magenta) and the modeled (blue) cross-section curves.
Sensors 24 06058 g012
Figure 13. Comparisons between real and modeled bowls in cross-section: (a) bowl #20 (name: “IKEA Vardagen bowl,” diameter 4.72”, height 2.36”. (b) Bowl #14 (name: “IKEA 365+ deep plate,” diameter 8.66”, height 2.36”.
Figure 13. Comparisons between real and modeled bowls in cross-section: (a) bowl #20 (name: “IKEA Vardagen bowl,” diameter 4.72”, height 2.36”. (b) Bowl #14 (name: “IKEA 365+ deep plate,” diameter 8.66”, height 2.36”.
Sensors 24 06058 g013
Table 1. Ranges of randomly generated parameters for both the simulated bowls and camera extrinsic parameters.
Table 1. Ranges of randomly generated parameters for both the simulated bowls and camera extrinsic parameters.
R (mm) H (mm) q X (mm) Y (mm) Z (mm) θ (°) φ (°) ψ (°)
[ 30 ,   130 ] [ 9 ,   130 ] [ 2 ,   10 ] [ 400 ,   400 ] [ 400 ,   400 ] [ 180 ,   500 ] [ 30 ,   90 ] [ 60 ,   60 ] [ 60 ,   60 ]
Table 2. Simulation results for five bowls.
Table 2. Simulation results for five bowls.
#1#2#3#4#5
Actual H (mm)
Estimated H (mm)
Relative error * (%)
51.0
51.5 ± 0.5
0.9 ± 1.0
71.5
71.6 ± 0.6
0.1 ± 0.8
32.0
32.2 ± 0.5
0.5 ± 1.5
44.0
44.2 ± 0.4
0.4 ± 0.9
78.0
76.6 ± 0.6
−1.7 ± 0.8
Actual R (mm)
Estimated R (mm)
Relative error * (%)
64.0
64.3 ± 0.6
0.5 ± 1.0
102.0
102.0 ± 0.8
0.3 ± 0.8
80.0
80.4 ± 1.2
0.5 ± 1.5
55.0
55.2 ± 0.5
0.4 ± 0.9
130.0
128.0 ± 1.0
−1.7 ± 0.8
Actual q
Estimated q
Relative error * (%)
6.3
6.3 ± 0.4
−0.6 ± 6.7
9.0
8.9 ± 0.2
−1.1 ± 1.9
3.5
3.5 ± 0.2
0.0 ± 6.6
5.2
5.2 ± 0.3
0.4 ± 6.8
8.5
8.7 ± 0.3
2.5 ± 3.6
Actual volume (cm3)
Estimated volume (cm3)
Relative error * (%)
500.0
506.4 ± 10.1
1.3 ± 2.0
1909.0
1921.3 ± 45.6
0.6 ± 2.4
409.0
415.3 ± 17.9
1.4 ± 4.4
302.0
305.3 ± 8.2
1.1 ± 2.7
3352.0
3194.0 ± 79.5
−4.7 ± 2.4
Experimental σ V
Calculated σ V
0.020
0.027
0.024
0.018
0.044
0.041
0.027
0.028
0.024
0.019
* Relative error = (estimated value − actual value)/actual value ×   100 % .
Table 3. Simulation results of model parameters for seven real-world bowls.
Table 3. Simulation results of model parameters for seven real-world bowls.
Bowl#6Bowl#7Bowl#8Bowl#9Bowl#10Bowl#11Bowl#12
Actual H (mm)45.052.05961.043.065.063.0
Estimated H (mm)52.4 ± 2.153.6 ± 1.963.8 ± 2.765.3 ± 2.144.8 ± 0.464.0 ± 0.064.0 ± 0.0
Relative error * (%)16.4 ± 4.63.1 ± 3.68.1 ± 4.67.0 ± 3.54.1 ± 0.8−1.5 ± 0.01.5 ± 0.0
Actual R (mm)50.560.575.576.087.576.075.5
Estimated R (mm)52.4 ± 2.161.0 ± 1.276.0 ± 2.171.0 ± 1.289.5 ± 0.780.0 ± 0.080.0 ± 0.0
Relative error * (%)3.8 ± 4.10.8 ± 2.00.7 ± 2.8−6.6 ± 1.62.3 ± 0.85.3 ± 0.05.9 ± 0.0
Actual q8.03.35.54.92.33.05.1
Estimated q8.3 ± 0.43.7 ± 0.25.9 ± 1.07.4 ± 0.62.9 ± 0.12.9 ± 0.14.9 ± 0.1
Relative error * (%)4.2 ± 5.411.5 ± 7.28.0 ± 18.75.0 ± 13.328.2 ± 3.1−3.3 ± 4.7−4.9 ± 1.4
Actual volume (cm3)288.0371.0773.0787.0557.0705.0818.0
Estimated volume (cm3)365.6 ± 40.7405.6 ± 8.7859.9 ± 34.5811.5 ± 17.1671.2 ± 22.4761.3 ± 15.2911.1 ± 3.9
Relative error * (%)26.9 ± 14.19.3 ± 2.311.2 ± 4.53.1 ± 2.220.5 ± 4.08.0 ± 2.111.4 ± 0.5
* Relative error = (estimated value − actual value)/actual value × 100%.
Table 4. Modeling errors of 10 dining bowls.
Table 4. Modeling errors of 10 dining bowls.
Bowls#13#14#15#16#17#18#19#20#21#22
MAE (inches)0.0090.0760.0170.0380.0160.0290.0360.0080.0260.017
Relative MAE (%)0.3972.5520.7771.2400.6321.2681.5410.2761.3830.777
RMSE (inches)0.0120.0960.0290.0600.0210.0440.0480.0110.0380.029
Relative RMSE (%)0.4902.9960.9681.5030.7701.5461.8570.3391.6850.968
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, B.; Sun, M.; Mao, Z.-H.; Jia, W. Dining Bowl Modeling and Optimization for Single-Image-Based Dietary Assessment. Sensors 2024, 24, 6058. https://doi.org/10.3390/s24186058

AMA Style

Li B, Sun M, Mao Z-H, Jia W. Dining Bowl Modeling and Optimization for Single-Image-Based Dietary Assessment. Sensors. 2024; 24(18):6058. https://doi.org/10.3390/s24186058

Chicago/Turabian Style

Li, Boyang, Mingui Sun, Zhi-Hong Mao, and Wenyan Jia. 2024. "Dining Bowl Modeling and Optimization for Single-Image-Based Dietary Assessment" Sensors 24, no. 18: 6058. https://doi.org/10.3390/s24186058

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop