원시데이터 수집 시스템
선정목록으로

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

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Boyang Li — Department of Electrical & Computer Engineering, University of Pittsburgh, Pittsburgh, PA 15260, USA
  2. Mingui Sun — Department of Bioengineering, University of Pittsburgh, Pittsburgh, PA 15260, USA|||Department of Electrical & Computer Engineering, University of Pittsburgh, Pittsburgh, PA 15260, USA|||Department of Neurological Surgery, University of Pittsburgh, Pittsburgh, PA 15260, USA
  3. Zhi-Hong Mao — Department of Bioengineering, University of Pittsburgh, Pittsburgh, PA 15260, USA|||Department of Electrical & Computer Engineering, University of Pittsburgh, Pittsburgh, PA 15260, USA
  4. Wenyan Jia — Department of Electrical & Computer Engineering, University of Pittsburgh, Pittsburgh, PA 15260, USA
DOI
10.3390/s24186058
저널
Sensors
발행년도
2024
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s24186058
토픽
Color Science and Applications
OpenAlex ID
W4402644232

평가 내용

관련도
관련
사업분야
필름·전자재료 · (16) CPI(투명 폴리이미드)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

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.

본문 54,629자

본문 펼치기
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. 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 selfreporting 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-imagebased, 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]. Introduction 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 containerusually 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. Introduction 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. Introduction 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 pointby-point, we determine the parameters of our model using a coarse-to-fine numerical optimization procedure.Our method innovates the utensil reference technique for imagebased dietary assessment. Introduction 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. 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. 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: Bowl Model Sensors 2024, 24, 6058 3 of 18 Bowl Model Equation (1) indicates that p is a ratio of the bowl's volume V bowl to the volume of a cylinder, V cylinder , 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. Bowl Model 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. ? = ?(?) = , for 0 , > 1 ? = ?(?) = where is a parameter that determines the bowl shape.We chose this partic primarily for two reasons: (1) it is continuously differentiable and strictly mo Equation ( 2) is well-defined, and (2) for > 1 ( ) = ≡ 0 = 0. ? = ?(?) = Equation ( 4) ensures that the bowl meets an important requirement th smooth and stable when placed on the "tabletop" (i.e., x-y plane) because th nearly flat region at the "bottom" (Figure 1a). ? = ?(?) = Substituting Equation (3) into Equation ( 2), we have Given f (y), Equation (1) becomes ? = ?(?) = 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 ? = ?(?) = 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 ? = ?(?) = 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 ? = ?(?) = 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.color of the surface varying according to the heights specified by Z. ? = ?(?) = Let us now determine the lower and upper bounds of .When  1,   ∞,  1.Thus, these bounds (stated after Equation ( 1)) are correct.Figure 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. Formulation of Parameter Estimation Sensors 2024, 24, x FOR PEER REVIEW Formulation of Parameter Estimation The mathematical model of the bowl (Equation ( 3)) requires determining t rameters: rim radius R, height H, and shape parameter q.While R and H can be m physically using a ruler, there is no simple way to determine q.To solve this prob attach an adhesive paper ruler centrally across the bottom of the bowl (Figure 3) take a picture using a smartphone.Upon close observation, it can be found that v in both the width of the paper ruler and the spacing between the black division provide information about the bowl's shape.Closer locations to the camera exhib width and larger spacings, while the opposite is true for farther locations.Add the width and spacing also vary with the camera's view angle.As stated previo developed an image-processing algorithm to reconstruct the actual cross-section the bowl without using a mathematical model [29].However, due to the limit that algorithm, the picture must be taken directly above the bowl.Unfortunately, t of picture-taking is challenging in practice because finding the correct top view b ally positioning the smartphone is difficult.In the following pages, we present an zation method to estimate the bowl shape without the top-view requirement, sim the practical procedure for bowl measurement.We first created two groups of landmark points from the observed paper ru 2D input image.One group is located along the upper edge of the ruler, and the positioned along the bottom.For example, in the case shown in Figure 3, excep points at both ends, we chose landmark points (e.g., all 0.5-inch markers).Let the coordinates (in terms of pixels) of the ith landmark point obtained from the 2 image: = .Here, = 1,2, ⋯ , , where is the total number of landmark points.L , , denote the coordinates of the 3D point on the inner surface of the b corresponds to , with = (according to Equation (3) after around the z-axis).Now, we apply the standard camera coordinate transformatio ject onto the 2D image [39][40][41].The reprojection error, which is the disc between the landmark point and the projection of the simulated 3D point , 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: Formulation of Parameter Estimation 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 Formulation of Parameter Estimation 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 Formulation of Parameter Estimation where R is a rotation matrix and tis a three-dimensional translation vector.In the next step, the 3D point p ′ i is projected onto the 2D image as Formulation of Parameter Estimation T using the ideal pinhole camera model [40]: Formulation of Parameter Estimation where F is the focal length of the camera in pixels and c x and c y represent the xand ycoordinate, respectively, of the optical center (also known as the principal point) in the image.Note that F, c x , and 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: Formulation of Parameter Estimation where S = {R, H, q, R, t}is the set of parameters to be optimized and ∥•∥ denotes the Euclidean norm. 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. Numerical Optimization 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-, yand z-axes, respectively).The specific steps of our proposed coarse-to-fine optimization algorithm are as follows: Numerical Optimization 1. Numerical Optimization Define a coarse grid for H, q, and R, where each point on the grid corresponds to a bowl model. 2. For each bowl model, obtain the optimal camera pose using the Levenberg-Marquardt (LM) algorithm. 3. Find m candidate bowls based on the selection criteria defined in Equations ( 10)-( 12). 4. 3. 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. 5. If the smallest error is less than a preset threshold (determined experimentally), then stop; otherwise, go back to step 3. 5. To estimate the bowl's parameters-, , and -through one-step optimization, it is imperative to express the 3D landmarks, , = 1,2, ⋯ , (shown in Figure 4a) and then use the standard camera coordinate transformation to project to the measured 2D points, .However, is a function of , , and , 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 (represented by Euler angles , , and ) and translation vector = , , (representing the camera's movements along the x-, y-and z-axes, respectively).The specific steps of our proposed coarseto-fine optimization algorithm are as follows: 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 5. where L est and L gt 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 5. 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 .(12) 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. Volumetric Error Analysis From basic estimation theory [44], we have Volumetric Error Analysis 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. Volumetric Error Analysis Combining Equations ( 1) and ( 5), we have V = q q+2 πHR 2 .Thus Volumetric Error Analysis Rearrange and simplify: Volumetric Error Analysis 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, Volumetric Error Analysis 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 Volumetric Error Analysis 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 . 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. 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. Simulated Bowls 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 Simulated Bowls 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). Simulated Bowls Sensors 2024, 24, x FOR PEER REVIEW 8 of 17 l and .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.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. Simulated Bowls 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]. Simulated Bowls 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. Simulated Bowls 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 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. 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. Paper Ruler Selection 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). of the estimates for radius (), height (), and power tend to be larger, as observed in Table 2. 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. Paper Ruler Selection 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 lowcost adhesive tape (Figure 7). 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 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 laborfree but sensitive to imperfect images, which poses a risk of producing large errors (outliers).Balancing both approaches, we used a semi-automatic method. Landmark Labeling of Real-World Bowl Image Processing 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 Landmark Labeling of Real-World Bowl Image Processing 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). Landmark Labeling of Real-World Bowl Image Processing Sensors 2024, 24, x FOR PEER REVIEW 11 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. 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 crosssection.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 , we calculated the plumpness using Equation (2) based on the measured volume and then used Equation ( 5) to find the value.These measurements were used as the ground truth in our experiments. Accuracy of Bowl Parameter Estimation 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).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. Accuracy of Bowl Parameter Estimation 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).For each bowl, we hand-measured its height and diameter using a ruler and its vol ume by filling it with water and measuring its weight.To measure , we calculated the plumpness using Equation (2) based on the measured volume and then used Equation (5 to find the value.These measurements were used as the ground truth in our experi ments. Accuracy of Bowl Parameter Estimation 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 bow 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 limi of our mathematical model, which cannot represent the shape of this bowl adequately (to be discussed further in the next section). 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 wellmatched.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. Validation of the Bowl Model 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 wellmatched.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 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. Validation of the Bowl Model 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. R PEER REVIEW 14 of 17 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. R PEER REVIEW 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.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 platecannot 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. Discussion In this section, we discuss several important issues, including assumptions, limitations, and applicability of our method to food volume estimation. Discussion 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. Discussion 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. Discussion 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. Discussion 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. 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 Figure 1 . Figure 1.(a) Cross-section curve of the bowl model (blue), with the green-shaded r the area enclosed by the curve; (b) 3D bowl surface after rotating the curve in (a) by color of the surface varying according to the heights specified by Z. Figure 2 . Figure 2. Bowl shapes with different values of plumpness () representing by surfac the color of the surface varying according to the heights specified by Z. Figure 1 . 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 . sh few example bowls with different plumpness values. Figure 2 . Figure 2. Bowl shapes with different values of plumpness () representing by surface plots, the color of the surface varying according to the heights specified by Z. Figure 2 . 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 3 . Figure 3.A bowl taped with an adhesive paper ruler.The red dots represent the selected points. Figure 3 . Figure 3.A bowl taped with an adhesive paper ruler.The red dots represent the selected landmark points. Figure 4 . Figure 4. (a) Three-dimensional bowl surface with 3D landmarks highlighted in magenta; (b) estimated 2D projected landmarks in blue vs. real landmarks in magenta; (c) cross-sectional view of the tape's edge represented by a green curve in the 3D space, where denotes equal-length distances between markers on the adhesive paper ruler in the 3D space.Points and are 3D points with coordinates ( , ) and ( , ); (d) enlargement of the green circle from Figure 4b, illustrating in blue and in magenta. Figure 4 . 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 5 . 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 . 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 6 . 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.5IQR.Points outside this region are plotted individually as "+", representing the likely outliers. Figure 6 . 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.5IQR.Points outside this region are plotted individually as "+", representing the likely outliers. Figure 6 . Sensors 2024, 24, x FOR PEER REVIEW 10 of 17 Figure 7 . Figure 7.A roll of adhesive paper ruler as a tool for measuring bowls. Figure 7 . Figure 7.A roll of adhesive paper ruler as a tool for measuring bowls. Figure 8 . Figure 8.(a) Selected landmark points for computation (red points); (b) interpolated landm points (blue points); (c) and (d) enlarged details within the black boxes in (a, b). Figure 8 . 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 . 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 9 . 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 . 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. 17 Figure 10 . 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 . 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 . 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 11 . 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 (a-d). Figure 11 . 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 (a-d). Figure 12 . Figure 12. (a-c) 3D-scanned point clouds from three real bowls, with red points representing the central curves.(d-f) Comparison between the scanned points along the central curve of the real bowl (magenta) and the modeled (blue) cross-section curves. Figure 12 . Figure 12. (a-c) 3D-scanned point clouds from three real bowls, with red points representing the central curves.(d-f) Comparison between the scanned points along the central curve of the real bowl (magenta) and the modeled (blue) cross-section curves. Figure 13 . 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 . 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". Table 1 . Ranges of randomly generated parameters for both the simulated bowls and camera extrinsic parameters. Table 1 . R (mm) (mm) (mm) (mm) (mm) (°) (°) (°) Table 1 . Ranges of randomly generated parameters for both the simulated bowls and camera extrinsic parameters. Table 2 . Simulation results for five bowls. Table 2 . * Relative error = (estimated value − actual value)/actual value × 100%. Table 3 . Simulation results of model parameters for seven real-world bowls.Estimated volume (cm 3 ) 365.6 ± 40.7 405.6 ± 8.7 859.9 ± 34.5 811.5 ± 17.1 671.2 ± 22.4 761.3 ± 15.2 911.1 ± 3.9 Relative error = (estimated value − actual value)/actual value × 100%. Table 3 . * Table 4 . Modeling errors of 10 dining bowls. Table 4 . Modeling errors of 10 dining bowls.

섹션 본문 122문단 · 52,338자

(제목 없음)

1In 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.

Introduction

2There 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 selfreporting 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-imagebased, 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].

3Besides 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 containerusually 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.

4Since 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.

5In 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 pointby-point, we determine the parameters of our model using a coarse-to-fine numerical optimization procedure.Our method innovates the utensil reference technique for imagebased dietary assessment.

6This 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.

Methods

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

Bowl Model

8Although 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:

9Sensors 2024, 24, 6058 3 of 18

10Equation (1) indicates that p is a ratio of the bowl's volume V bowl to the volume of a cylinder, V cylinder , 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.

11Let 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.

𝑧 = 𝑓(𝑦) =

12, for 0 , > 1

13where is a parameter that determines the bowl shape.We chose this partic primarily for two reasons: (1) it is continuously differentiable and strictly mo Equation ( 2) is well-defined, and (2) for > 1 ( ) = ≡ 0 = 0.

14Equation ( 4) ensures that the bowl meets an important requirement th smooth and stable when placed on the "tabletop" (i.e., x-y plane) because th nearly flat region at the "bottom" (Figure 1a).

15Substituting Equation (3) into Equation ( 2), we have Given f (y), Equation (1) becomes

16The 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

17where 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

18Equation ( 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).

19Substituting Equation (3) into Equation (2), we have

20Let 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.color of the surface varying according to the heights specified by Z.

21Let us now determine the lower and upper bounds of .When  1,   ∞,  1.Thus, these bounds (stated after Equation ( 1)) are correct.Figure 2

Formulation of Parameter Estimation

22The 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.

23Sensors 2024, 24, x FOR PEER REVIEW

24The mathematical model of the bowl (Equation ( 3)) requires determining t rameters: rim radius R, height H, and shape parameter q.While R and H can be m physically using a ruler, there is no simple way to determine q.To solve this prob attach an adhesive paper ruler centrally across the bottom of the bowl (Figure 3) take a picture using a smartphone.Upon close observation, it can be found that v in both the width of the paper ruler and the spacing between the black division provide information about the bowl's shape.Closer locations to the camera exhib width and larger spacings, while the opposite is true for farther locations.Add the width and spacing also vary with the camera's view angle.As stated previo developed an image-processing algorithm to reconstruct the actual cross-section the bowl without using a mathematical model [29].However, due to the limit that algorithm, the picture must be taken directly above the bowl.Unfortunately, t of picture-taking is challenging in practice because finding the correct top view b ally positioning the smartphone is difficult.In the following pages, we present an zation method to estimate the bowl shape without the top-view requirement, sim the practical procedure for bowl measurement.We first created two groups of landmark points from the observed paper ru 2D input image.One group is located along the upper edge of the ruler, and the positioned along the bottom.For example, in the case shown in Figure 3, excep points at both ends, we chose landmark points (e.g., all 0.5-inch markers).Let the coordinates (in terms of pixels) of the ith landmark point obtained from the 2 image: = .Here, = 1,2, ⋯ , , where is the total number of landmark points.L , , denote the coordinates of the 3D point on the inner surface of the b corresponds to , with = (according to Equation (3) after around the z-axis).Now, we apply the standard camera coordinate transformatio ject onto the 2D image [39][40][41].The reprojection error, which is the disc between the landmark point and the projection of the simulated 3D point , 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:

25Here, 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

26H (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

27where R is a rotation matrix and tis a three-dimensional translation vector.In the next step, the 3D point p ′ i is projected onto the 2D image as

28T using the ideal pinhole camera model [40]:

29where F is the focal length of the camera in pixels and c x and c y represent the xand ycoordinate, respectively, of the optical center (also known as the principal point) in the image.Note that F, c x , and 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:

30where S = {R, H, q, R, t}is the set of parameters to be optimized and ∥•∥ denotes the Euclidean norm.

Numerical Optimization

31To 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.

32Thus, 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-, yand z-axes, respectively).The specific steps of our proposed coarse-to-fine optimization algorithm are as follows:

331.

34Define a coarse grid for H, q, and R, where each point on the grid corresponds to a bowl model.

2.

35For each bowl model, obtain the optimal camera pose using the Levenberg-Marquardt (LM) algorithm.

3.

36Find m candidate bowls based on the selection criteria defined in Equations ( 10)-( 12). 4.

37For 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.

5.

38If the smallest error is less than a preset threshold (determined experimentally), then stop; otherwise, go back to step 3.

39To estimate the bowl's parameters-, , and -through one-step optimization, it is imperative to express the 3D landmarks, , = 1,2, ⋯ , (shown in Figure 4a) and then use the standard camera coordinate transformation to project to the measured 2D points, .However, is a function of , , and , 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 (represented by Euler angles , , and ) and translation vector = , , (representing the camera's movements along the x-, y-and z-axes, respectively).The specific steps of our proposed coarseto-fine optimization algorithm are as follows: 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

40where L est and L gt 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

41Here, 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 .(12)

Volumetric Error Analysis

42As 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.

43From basic estimation theory [44], we have

44where ∆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.

45Combining Equations ( 1) and ( 5), we have V = q q+2 πHR 2 .Thus

46Rearrange and simplify:

47Since, 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,

48where σ 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

49Equation (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 .

Experiments

50To 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.

Simulated Bowls

51Our 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.

52The 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

53Unfortunately, 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).

54Sensors 2024, 24, x FOR PEER REVIEW 8 of 17 l and .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.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.

55Next, 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].

56The 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.

57row 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 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.

Paper Ruler Selection

58The 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.

59As 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). of the estimates for radius (), height (), and power tend to be larger, as observed in Table 2.

60The 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.

61As 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 lowcost adhesive tape (Figure 7).

Landmark Labeling of Real-World Bowl Image Processing

62Identifying 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

63Identifying 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 laborfree but sensitive to imperfect images, which poses a risk of producing large errors (outliers).Balancing both approaches, we used a semi-automatic method.

64We 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

65where 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).

66Sensors 2024, 24, x FOR PEER REVIEW 11

Accuracy of Bowl Parameter Estimation

67We 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.

68We 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 crosssection.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 , we calculated the plumpness using Equation (2) based on the measured volume and then used Equation ( 5) to find the value.These measurements were used as the ground truth in our experiments.

69Next, 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).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.

70Next, 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).For each bowl, we hand-measured its height and diameter using a ruler and its vol ume by filling it with water and measuring its weight.To measure , we calculated the plumpness using Equation (2) based on the measured volume and then used Equation (5 to find the value.These measurements were used as the ground truth in our experi ments.

71Next, 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 bow 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 limi of our mathematical model, which cannot represent the shape of this bowl adequately (to be discussed further in the next section).

Validation of the Bowl Model

72To 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 wellmatched.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.

73by 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 wellmatched.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 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.

74We 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.

R PEER REVIEW

7514 of 17 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.

76While 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.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 platecannot 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.

Discussion

77In this section, we discuss several important issues, including assumptions, limitations, and applicability of our method to food volume estimation.

78Our 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.

79Additionally, 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.

80Although 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.

81In 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.

Conclusions

82In 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

Figure 1 .

83Figure 1.(a) Cross-section curve of the bowl model (blue), with the green-shaded r the area enclosed by the curve; (b) 3D bowl surface after rotating the curve in (a) by color of the surface varying according to the heights specified by Z.

Figure 2 .

84Figure 2. Bowl shapes with different values of plumpness () representing by surfac the color of the surface varying according to the heights specified by Z.

Figure 1 .

85Figure 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.

86sh few example bowls with different plumpness values.

Figure 2 .

87Figure 2. Bowl shapes with different values of plumpness () representing by surface plots, the color of the surface varying according to the heights specified by Z.

88Figure 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 3 .

89Figure 3.A bowl taped with an adhesive paper ruler.The red dots represent the selected points.

90Figure 3.A bowl taped with an adhesive paper ruler.The red dots represent the selected landmark points.

Figure 4 .

91Figure 4. (a) Three-dimensional bowl surface with 3D landmarks highlighted in magenta; (b) estimated 2D projected landmarks in blue vs. real landmarks in magenta; (c) cross-sectional view of the tape's edge represented by a green curve in the 3D space, where denotes equal-length distances between markers on the adhesive paper ruler in the 3D space.Points and are 3D points with coordinates ( , ) and ( , ); (d) enlargement of the green circle from Figure 4b, illustrating in blue and in magenta.

92Figure 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 5 .

93Figure 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.

94Figure 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 6 .

95Figure 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.5IQR.Points outside this region are plotted individually as "+", representing the likely outliers.

96Figure 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.5IQR.Points outside this region are plotted individually as "+", representing the likely outliers.

97Sensors 2024, 24, x FOR PEER REVIEW 10 of 17

Figure 7 .

98Figure 7.A roll of adhesive paper ruler as a tool for measuring bowls.

99Figure 7.A roll of adhesive paper ruler as a tool for measuring bowls.

Figure 8 .

100Figure 8.(a) Selected landmark points for computation (red points); (b) interpolated landm points (blue points); (c) and (d) enlarged details within the black boxes in (a, b).

101Figure 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).

102Figure 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 9 .

103Figure 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.

104Figure 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.

17 Figure 10 .

105Figure 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 .

106Figure 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.

107Figure 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 11 .

108Figure 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 (a-d).

109Figure 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 (a-d).

Figure 12 .

110Figure 12. (a-c) 3D-scanned point clouds from three real bowls, with red points representing the central curves.(d-f) Comparison between the scanned points along the central curve of the real bowl (magenta) and the modeled (blue) cross-section curves.

111Figure 12. (a-c) 3D-scanned point clouds from three real bowls, with red points representing the central curves.(d-f) Comparison between the scanned points along the central curve of the real bowl (magenta) and the modeled (blue) cross-section curves.

Figure 13 .

112Figure 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".

113Figure 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".

Table 1 .

114Ranges of randomly generated parameters for both the simulated bowls and camera extrinsic parameters.

115R (mm) (mm) (mm) (mm) (mm) (°) (°) (°)

116Ranges of randomly generated parameters for both the simulated bowls and camera extrinsic parameters.

Table 2 .

117Simulation results for five bowls.

118* Relative error = (estimated value − actual value)/actual value × 100%.

Table 3 .

119Simulation results of model parameters for seven real-world bowls.Estimated volume (cm 3 ) 365.6 ± 40.7 405.6 ± 8.7 859.9 ± 34.5 811.5 ± 17.1 671.2 ± 22.4 761.3 ± 15.2 911.1 ± 3.9 Relative error = (estimated value − actual value)/actual value × 100%.

120*

Table 4 .

121Modeling errors of 10 dining bowls.

122Modeling errors of 10 dining bowls.

참고문헌 39건

  1. An Invitation to 3-D Vision Interdisciplinary applied mathematics · Springer Nature · 2004 10.1007/978-0-387-21779-6
  2. Food Volume Estimation in a Mobile Phone Based Dietary Assessment System 2012 10.1109/sitis.2012.146
  3. Development, validation and utilisation of food-frequency questionnaires – a review Public Health Nutrition · Cambridge University Press · 2002 10.1079/phn2001318
  4. Image-based food volume estimation 2013 10.1145/2506023.2506037
  5. Imaged based estimation of food volume using circular referents in dietary assessment Journal of Food Engineering · Elsevier BV · 2011 10.1016/j.jfoodeng.2011.09.031
  6. Model-based food volume estimation using 3D pose 2013 10.1109/icip.2013.6738522
  7. Accuracy of food portion size estimation from digital pictures acquired by a chest-worn camera Public Health Nutrition · Cambridge University Press · 2013 10.1017/s1368980013003236
  8. Quantification of food intake using food image analysis Annual International Conference of the IEEE Engineering in Medicine and Biology Society · 2009 10.1109/iembs.2009.5333123
  9. A flexible new technique for camera calibration IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2000 10.1109/34.888718
  10. Validity of a food frequency questionnaire and a food diary in a short-term recall situation Journal of the American Dietetic Association · Elsevier BV · 1987 10.1016/s0002-8223(21)03325-3
  11. 24-Hour Recall and Diet Record Methods Oxford University Press eBooks · Oxford University Press · 2012 10.1093/acprof:oso/9780199754038.003.0004
  12. An Automatic Calorie Estimation System of Food Images on a Smartphone 2016 10.1145/2986035.2986040
  13. Image-based nutrition composition analysis with a local orientation descriptor 2022 IEEE International Conference on Systems, Man, and Cybernetics (SMC) · 2016 10.1109/smc.2016.7844893
  14. A New Approach to Image-Based Estimation of Food Volume Algorithms · Multidisciplinary Digital Publishing Institute · 2017 10.3390/a10020066
  15. Smartphone-Based Food Weight and Calorie Estimation Method for Effective Food Journaling SICE Journal of Control Measurement and System Integration · Taylor & Francis · 2017 10.9746/jcmsi.10.360
  16. A Review of Solutions for Perspective-n-Point Problem in Camera Pose Estimation Journal of Physics Conference Series · IOP Publishing · 2018 10.1088/1742-6596/1087/5/052009
  17. Estimating Food Calories for Multiple-Dish Food Photos 2017 10.1109/acpr.2017.145
  18. Food Volume Estimation Based on Deep Learning View Synthesis from a Single Depth Map Nutrients · Multidisciplinary Digital Publishing Institute · 2018 10.3390/nu10122005
  19. Vision-Based Approaches for Automatic Food Recognition and Dietary Assessment: A Survey IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2904519
  20. Single-View Food Portion Estimation: Learning Image-to-Energy Mappings Using Generative Adversarial Networks 2018 10.1109/icip.2018.8451461
  21. Application of Deep Learning in Food: A Review Comprehensive Reviews in Food Science and Food Safety · Wiley · 2019 10.1111/1541-4337.12492
  22. Deep Learning Approaches in Food Recognition Learning and analytics in intelligent systems · Springer International Publishing · 2020 10.1007/978-3-030-49724-8_4
  23. MUSEFood: Multi-Sensor-Based Food Volume Estimation on Smartphones 2019 10.1109/smartworld-uic-atc-scalcom-iop-sci.2019.00182
  24. Image-Based Food Classification and Volume Estimation for Dietary Assessment: A Review IEEE Journal of Biomedical and Health Informatics · Institute of Electrical and Electronics Engineers · 2020 10.1109/jbhi.2020.2987943
  25. Study for Food Recognition System Using Deep Learning Journal of Physics Conference Series · IOP Publishing · 2021 10.1088/1742-6596/1963/1/012014
  26. A Comprehensive Survey of Image-Based Food Recognition and Volume Estimation Methods for Dietary Assessment Healthcare · Multidisciplinary Digital Publishing Institute · 2021 10.3390/healthcare9121676
  27. 3D Reconstruction and Volume Estimation of Food using Stereo Vision Techniques 2021 IEEE 21st International Conference on Bioinformatics and Bioengineering (BIBE) · 2021 10.1109/bibe52308.2021.9635418
  28. A Novel Approach to Dining Bowl Reconstruction for Image-Based Food Volume Estimation Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22041493
  29. Linear Approximation Mathematical surveys and monographs · 1963 10.1090/surv/009
  30. FVEstimator: A novel food volume estimator Wellness model for calorie measurement and healthy living Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.111294
  31. Mobile Computer Vision-Based Applications for Food Recognition and Volume and Calorific Estimation: A Systematic Review Healthcare · Multidisciplinary Digital Publishing Institute · 2022 10.3390/healthcare11010059
  32. Estimation of Plate and Bowl Dimensions for Food Portion Size Assessment in a Wearable Sensor System IEEE Sensors Journal · IEEE Sensors Council · 2023 10.1109/jsen.2023.3235956
  33. Deep learning in food category recognition Information Fusion · Elsevier BV · 2023 10.1016/j.inffus.2023.101859
  34. A Review of Image-Based Food Recognition and Volume Estimation Artificial Intelligence Systems IEEE Reviews in Biomedical Engineering · Institute of Electrical and Electronics Engineers · 2023 10.1109/rbme.2023.3283149
  35. Food Classification and Meal Intake Amount Estimation through Deep Learning Applied Sciences · Multidisciplinary Digital Publishing Institute · 2023 10.3390/app13095742
  36. A Comparative Analysis of Sensor-, Geometry-, and Neural-Based Methods for Food Volume Estimation 2023 10.1145/3607828.3617794
  37. Hybrid Deep Learning Algorithm-Based Food Recognition and Calorie Estimation Journal of Food Processing and Preservation · Wiley · 2023 10.1155/2023/6612302
  38. Image-based volume estimation for food in a bowl Journal of Food Engineering · Elsevier BV · 2024 10.1016/j.jfoodeng.2024.111943
  39. How Much You Ate? Food Portion Estimation on Spoons 2024 10.1109/cvprw63382.2024.00380