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

Estimation of Plate and Bowl Dimensions for Food Portion Size Assessment in a Wearable Sensor System

관련 산업용 섬유 · (8) HDPE 섬유(FORPE)

기본 정보

저자
  1. Viprav B. Raju — Department of Electrical and Computer Engineering, The University of Alabama, Tuscaloosa, AL, USA
  2. Delwar Hossain — Department of Electrical and Computer Engineering, The University of Alabama, Tuscaloosa, AL, USA
  3. Edward Sazonov — Department of Electrical and Computer Engineering, The University of Alabama, Tuscaloosa, AL, USA
DOI
10.1109/jsen.2023.3235956
저널
IEEE Sensors Journal
발행년도
2023
발행기관
IEEE Sensors Council
피인용수
7
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/jsen.2023.3235956
토픽
Textile materials and evaluations
OpenAlex ID
W4319837681

평가 내용

관련도
관련
사업분야
산업용 섬유 · (8) HDPE 섬유(FORPE)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > HDPE 섬유(FORPE)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Automatic food portion size estimation (FPSE) with minimal user burden is a challenging task. Most of the existing FPSE methods use fiducial markers and/or virtual models as dimensional references. An alternative approach is to estimate the dimensions of the eating containers prior to estimating the portion size. In this article, we propose a wearable sensor system (the automatic ingestion monitor integrated with a ranging sensor) and a related method for the estimation of dimensions of plates and bowls. The contributions of this study are: 1) the model eliminates the need for fiducial markers; 2) the camera system [automatic ingestion monitor version 2 (AIM-2)] is not restricted in terms of positioning relative to the food item; 3) our model accounts for radial lens distortion caused due to lens aberrations; 4) a ranging sensor directly gives the distance between the sensor and the eating surface; 5) the model is not restricted to circular plates; and 6) the proposed system implements a passive method that can be used for assessment of container dimensions with minimum user interaction. The error rates (mean ± std. dev) for dimension estimation were 2.01% ± 4.10% for plate widths/diameters, 2.75% ± 38.11% for bowl heights, and 4.58% ± 6.78% for bowl diameters.

본문 41,489자

본문 펼치기
## Estimation of Plate and Bowl Dimensions for Food Portion Size Assessment in a Wearable Sensor System Viprav B. Raju, _Student Member, IEEE_, Delwar Hossain, _Student Member, IEEE_, and Edward Sazonov, _Senior Member, IEEE_ _Abstract_ —Automatic food portion size estimation (FPSE) with minimal user burden is a challenging task. Most of the existing FPSE methods use fiducial markers and/or virtual models as dimensional references. An alternative approach is to estimate the dimensions of the eating containers prior to estimating the portion size. In this article, we propose a wearable sensor system (the automatic ingestion monitor integrated with a ranging sensor) and a related method for the estimation of dimensions of plates and bowls. The contributions of this study are: 1) the model eliminates the need for fiducial markers; 2) the camera system [automatic ingestion monitor version 2 (AIM-2)] is not restricted in terms of positioning relative to the food item; 3) our model accounts for radial lens distortion caused due to lens aberrations; 4) a ranging sensor directly gives the distance between the sensor and the eating surface; 5) the model is not restricted to circular plates; and 6) the proposed system implements a passive method that can be used for assessment of container dimensions with minimum user interaction. The error rates (mean ± std. dev) for dimension estimation were 2.01% ± 4.10% for plate widths/diameters, 2.75% ± 38.11% for bowl heights, and 4.58% ± 6.78% for bowl diameters. _Index_ _Terms_ — Dietary assessment, food imaging, food portion, food volume, portion size estimation, wearable sensors, wearable technology. I. INTRODUCTION ELIABLE and accurate portion size estimation is challenging but essential for dietary assessment. Image-based # R dietary assessment has been one of the fastest growing areas of research in this milieu. Image-based assessment can be split into manual assessment and automatic assessment. Manual assessment can be done using digital food records [2] or by image-based 24-h recall/self-reporting that Manuscript received 10 November 2022; revised 5 January 2023; accepted 7 January 2023. Date of publication 24 January 2023; date of current version 28 February 2023. This work was supported in part by the National Institute of Diabetes and Digestive and Kidney Diseases, National Institutes of Health, under Award R01DK100796 and Award R01ADK122473. The associate editor coordinating the review of this article and approving it for publication was Prof. Subhas C. Mukhopadhyay. _(Corresponding_ _author:_ _Viprav B. Raju.)_ The authors are with the Department of Electrical and Computer Engineering, The University of Alabama, Tuscaloosa, AL 35401 USA (e-mail: vbraju@crimson.ua.edu; dhossain@ crimson.ua.edu; esazonov@eng.ua.edu). Digital Object Identifier 10.1109/JSEN.2023.3235956 involve food atlases [3], [4], [5], [6], [7]. The imagebased food records involve capturing meal images that are reviewed later by the participant or by a professional (nutritionist/clinician/researcher) to estimate the portion size. Digital food images are a useful tool for the quantification of food items and in portion size estimation [8], [9], [10]. Images of food leftovers are also captured in some studies, which improved the portion size accuracy [11]. Recall or self-reporting methods use food atlases. Food atlases are reference guides that are taken to present various portions representative of the range of portion sizes usually consumed. Either during or after data collection, participants are asked to report the food quantity consumed by selecting a particular image, a fraction/multiple of an image, or a combination of images [12]. The abovementioned manual methods are cumbersome, subject to memory (and therefore prone to error), and are not accurate compared to the much recent automatic assessment methods. A previous review [13] identified some of the existing image-based food portion size estimation (FPSE) This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ methods that are automatic. It was seen that food portion size can be estimated automatically using food images captured during the meal [14], [15], [16], [17], [18]. However, automatic FPSE from food images is a challenging task since the two-dimensional (2-D) image lacks the three-dimensional (3-D) real-world information. There is a lack of reference to measure/gauge the size/volume of the food items. To tackle this problem, the dimensional reference is obtained by using a visual cue that must be present in a food picture. A few methods used virtual objects or objects that already exist in a typical food image to aid in FPSE. Some of the popular approaches included geometric models [19], VR-based referencing [20], circular object referencing [17], [21], and thumbbased referencing [22]. Shang et al. [23] used a structured light-based 3-D reconstruction approach to estimate food volume. Jia et al. [17] used the “ _plate_ _method_ ” for FPSE where the circular plates present in the image are used to determine location, orientation, and volume of the food items. The study, however, only considers circular plates. A fiducial marker of known dimensions placed in the images can also be used as a point of reference [17], [22], [24], [25]. The type of reference used determines the complexity of setup. Some methods require the users to carry around the reference (checkerboards, blocks, and cards) and some require special dining setups, which increases user burden. Another classification in image-based FPSE can be done based on the mode of image capture. Food image capture can either be _active_ or _passive._ Active methods rely on the participant to capture the food image by a camera (such as a smartphone camera), typically, before and after an eating episode. The images are then processed using computer vision models to segment foods, recognize foods, estimate portion size/volume, and compute energy content [26], [27], [28]. Active methods provide detailed information such as meal timing, location, and duration of the eating episodes. However, these methods require the active participation of the users, which can be a burden. Some of the active methods that predict portion sizes require fiducial markers in the food image to assist manual review/computer algorithms [26], [29]. The placement of these markers combined with the active nature of image capture increases the user burden considerably. One study presented a new _active_ method for food volume estimation without using a fiducial marker. The method utilizes a special picture-taking strategy on a smartphone [1]. A mathematical model that uses the height and orientation of the smartphone was used to determine the real-world coordinates of the plane of the eating surface in the capture image. Bucher et al. [30] presented and tested a new virtual reality method for food volume estimation using the International Food Unit. This method, however, requires the user to place the smartphone on the eating surface while image capture and also needs additional user interaction in using the virtual International Food Unit. Food images can also be acquired by a “passive” method using wearable devices that capture images continuously (both food and nonfood) without the active participation of the user [31], [32]. The passive methods minimize the burden of active capture using a wearable camera. However, FPSE meth Fig. 1. Rotational axes of the AIM sensor. Also depicted is the camera offset of 21 <sup>◦</sup> with respect to the axis of the eyeglass/AIM device. ods that require fiducial markers cannot be easily integrated with the passive image capture since the user is not actively taking images and do not know when to place these markers. The automatic ingestion monitor [33] is a wearable sensor system [automatic ingestion monitor version 2 (AIM-2)] that is mounted on a user’s eyeglass. The sensor consists of a combination of sensors for accurate detection of food intake and triggering of a wearable camera ( _passive_ ). In this study, we integrate a time-of-flight (ToF) ranging sensor with AIM-2 and propose a novel method to determine container dimensions (bowls/plates). The method does not require fiducial markers. Once the size of the vessels is known, portion size can be estimated using the “plate method.” In this study, our objective is to measure the dimensions of plates and bowls. The major contributions of the proposed work are: 1) the model eliminates the need for fiducial markers; 2) the camera system (AIM-2) is not restricted in terms of positioning relative to the food item; 3) our model accounts for radial lens distortion in caused due to lens aberrations; 4) a ranging (ToF) sensor directly gives the distance between the sensor and the eating surface; 5) the model is not restricted to circular plates; and 6) a passive method that can be used for assessment of container dimensions with minimum user interaction. II. METHODS _A._ _Equipment_ In this study, a novel wearable sensor system (AIM-2 with a ToF ranging sensor) was used [33]. AIM-2 consists of a sensor module, which houses a miniature 5-Mpixel camera with 120 <sup>◦</sup> wide-angle gaze-aligned lens, a low-power 3-D accelerometer (ADXL362 from Analog Devices, Norwood, MA, USA), and a ToF ranging sensor (VL53L0X from STMicroelectronics). The sensor system is enclosed in a custom-designed 3-D printed enclosure. The ToF sensor is aligned with the camera axis. The camera continuously captured images at a rate of one image per 10-s interval continuously throughout the day. Data from the accelerometer and ToF sensor were sampled at 128 Hz. All collected sensor signals and captured images were stored on an SD card and processed off-line in MATLAB (MathWorks Inc., Natick, MA, USA) for algorithm development and validation. The AIM enclosure is such that the to ( _XY Z_ _)_ <sup>t</sup> by a rigid body coordinate transformation _X_ _Y_ _Z_   _U_ _V_ _W_     + _T_ (1)   = _R_ Fig. 2. ToF distance and pitch angle as a function of time ( _y_ -axis: hh:mm:ss) for a sample meal where the AIM-2 was used. Fig. 3. Model of the AIM imaging system. camera and the ToF sensor are at an angle of 21 <sup>◦</sup> with respect to the accelerometer axis, as shown in Fig. 1. We will be using this offset (+21 <sup>◦</sup> _)_ while calculating the pitch of the camera. The raw sensor data from the accelerometer were preprocessed before extracting the pitch angle. A high-pass filter with a cutoff frequency of 0.1 Hz was applied to remove the dc component from the accelerometer signal. The sensor pitch was calculated as in [33] and the device pitch is obtained by adding the offset (21 <sup>◦</sup> _)_ to the sensor pitch. The distance readings are more straightforward, the raw values depicting the actual distances. Next, using the timestamp of an image, the respective pitch and distance readings were extracted. Fig. 2 shows the ToF distance readings and pitch plotted as a function of time for a sample meal. _B._ _Geometric Model_ The objective is to project the points in an image in the real-world coordinates. In this study, our primary concern is to measure the dimensions of the plate and bowls. Refer to Fig. 3. Let P be a point in the world, _Cw_ be a world coordinate system, and ( _XY Z_ _)_ <sup>t</sup> be the coordinates of P in _Cw_ . Define the camera coordinate system, _Cc_, to have its _W_ -axis parallel with the optical axis of the camera lens, its _U_ -axis parallel with the _u_ -axis of _Ci_ (image coordinate plane), and origin located at the perspective center. Let ( _UV W_ _)_ <sup>t</sup> be the coordinates of P in _Cc_ . The coordinates ( _UV W_ _)_ <sup>t</sup> are related where _R_ is a 3 × 3 rotation matrix and _T_ is a 3 × 1 translation vector. _R_ is dependent on three angles of rotation, namely, pitch ( _ω)_, roll ( _�)_, and yaw ( _�)_ . The three angles for the AIM device are shown in Fig. 1. The principal point is the intersection of the imaging plane with the optical axis. Let _fc_ be the focal length of the lens of the imaging system. Define the 2-D image coordinate system, _Ci_, to be in the image plane with its origin located at the principal point, _u_ -axis in the fast scan direction (horizontal rows of pixels on the sensor), and _v_ -axis in the slow scan (vertical rows of pixels on the sensor) direction of the camera sensor. Fast scan indicates the pixel direction in which the sensor scans at a higher rate. Let _p_ be the projection of P onto the image plane and let (u¯ _,_ ¯ _v_ ) <sup>t</sup> be the coordinates of p in _Ci_ . The focal length (Table. I) of (u¯ _,_ ¯ _v_ ) <sup>t</sup> is given by - _x_ _y_ _._ (2) - u¯ _v_ ¯ - = <sup>_fc_</sup> _W_ - _U_ _V_ Next, radial lens distortion is incorporated into the model in the following way. Let ( _uv)_ <sup>t</sup> be the actual observed image point after being subject to lens distortion. Then, ( _u_ _v)_ <sup>t</sup> is related to (¯u _v)_ ¯ <sup>t</sup> by - _u_ = _v_ - u¯ _v_ ¯ ��1 + _Kc_ �u¯ <sup>2</sup> + _v_ ¯ <sup>2��</sup> (3) where _Kc_ is a coefficient, which controls the amount of radial distortion. Finally, it is necessary to model the image sampling performed by the camera sensor [charged coupled device (CCD)]. A camera sensor consists of a 2-D array of photosensors. Each photosensor converts incoming light into a digital signal by means of an analog-to-digital converter. To obtain color information, one “sensor pixel” is divided into a grid of photosensors, and different color filters are placed in front of these multiple photosensors. Each of these photosensors receives light through only one of the three filters: blue, red, and green. Combining these measurements gives one color triple: (red intensity, green intensity, and blue intensity). This is known as the Bayer filter. Therefore, the digital image coordinates are not the same as the pixel coordinates. Let _C p_ be the pixel coordinate system associated with the digital image. The pixel coordinates are related to the image coordinates by - _x_ _y_ = - _scx_ <sup>_Kc_</sup> 0 _sc_ <sup>_y_</sup> �� _u_ _v_ + - _ccx_ _cc_ <sup>_y_</sup> (4) _c_ <sup>_x_</sup> <sup>and</sup> <sup>_s_</sup> _c_ <sup>_y_</sup> _c_ <sup>_x_</sup> <sup>and</sup> <sup>_c_</sup> _c_ <sup>_y_</sup> where _sc_ <sup>_x_</sup> _c_ <sup>_y_</sup> <sup>are</sup> <sup>scale</sup> <sup>factors</sup> <sup>(pixel/mm),</sup> <sup>_c_</sup> _c_ <sup>_x_</sup> where _sc_ <sup>_x_</sup> <sup>and</sup> <sup>_s_</sup> _c_ <sup>_y_</sup> <sup>are</sup> <sup>scale</sup> <sup>factors</sup> <sup>(pixel/mm),</sup> <sup>_c_</sup> _c_ <sup>_x_</sup> <sup>and</sup> <sup>_c_</sup> _c_ <sup>_y_</sup> <sup>are</sup> the pixel coordinates of the principal point, and _Kc_ is the distortion coefficient (pixel/mm) = _f_ _(XY Z_ _) ._ (5) Fig. 4. Projection of camera coordinates on to the world coordinates. Also, depict the calculation of pitch angle of the camera. We are interested in the inverse function of (5) for the purposes of dimension estimation, i.e.,   _X_  _Y_  = _f_ <sup>−1</sup> _(xy) ._ (6) _Z_ With the known AIM sensor orientation, namely, the pitch angle of the sensor, provided by the inertial measurement unit, a right angle between the surface of the lens and the optical axis, and the projection relationship in (5), it can be shown that the inverse of function _f_ in (6) exists for the tabletop, i.e.,   _X_  _Y_  = _f_ <sup>−1</sup> _(xy) ._ (7) 0 Note that _Z_ = 0 in (7) represents the plane equation of the tabletop. Also, we assume that the roll ( _�)_ and yaw ( _�)_ of the sensor are zero. Therefore, the rotation matrix _R_ is given by   _._ (8) Fig. 5. Projection _H_ ’ of height _H_ on the _y_ -axis. Calculating _h_ ’ for obtaining the plane equation for _Z_ = _H_ . Fig. 6. Left: test bench with the AIM attached to the tripod. Right: protractor used to measure the pitch angle of the sensor system. Fig. 7. Test dataset: plates and bowls of varying sizes. From (9), we obtain _R_ =  1 0 0  0 cos _ω_ −sin _ω_ 0 sin _ω_ cos _ω_ From (4), the world coordinates of the tabletop are related to the pixel coordinates by - = <sup>_W_</sup> _fc_ - _u_ _v_ _._ (12) - _x_ - _ccx_ _y_ - _cc_ <sup>_y_</sup> - _u_ _v_ = - 1 _/scx_ 0 - _Kc_ 1 _/sc_ <sup>_y_</sup> + - _x_ - _ccx_ _y_ - _cc_ <sup>_y_</sup> _._ (9) - _U_ _V_ To calculate the translational and rotation matrices, we make use of the sensor pitch ( _ω)_ and distance readings from the AIM. The distance is obtained by the ToF sensor, and the sensor pitch is obtained by the accelerometer on the AIM device, as shown in Fig. 4. The camera on the AIM has an offset of 21 <sup>◦</sup> _h_ = _d_ tof × tan _(ω)_ (10) where _d_ tof is the distance from the ToF sensor, which is the distance between the AIM and the eating surface. As in [1], we obtain the following equation: Finally, we obtain the equation   _X_ _Y_ 0     _U_ _V_ _W_   (13)   = _R_ <sup>−1</sup>   - _T_ _h_ - sin _<u>(θ)</u>_ _W_ = where _T_ = [0; - _h_ ; 0]. Equation (13) gives us the plane of the eating surface ( _Z_ = 0). The study mainly focuses on obtaining the dimensions of two types of vessels, namely, plates and bowls. We assume plates to be flat and part of the plane _Z_ = 0. The heights/depths of the plates are assumed to be negligible and approximated to zero. We measure the dimensions of the plate on this plane. However, in the case of bowls, first, the height of the bowl is measured along the _y_ -axis, as shown in Fig. 5. The height is cos _(θ)_ - <sup>_<u>v</u>_</sup> <sup><u>·sin</u></sup> <sup>_<u>(θ)</u>_</sup> _._ (11) _fc_ TABLE I PARAMETERS OF THE AIM CAMERA just a projection on the _y_ -axis and the true height is calculated as in (14). Here, the assumption is that the bowl sides are flat and not curved _H_ = tan _(ω)_ × _H_ <sup>′</sup> _._ (14) Once the height of the bowl ( _H_ _)_ is calculated, the equation of the plane _Z_ = _H_ is obtained instead of _Z_ = 0. Fig. 5 shows the changes in the parameters for obtaining the adjusted plane equation _h_ <sup>′</sup> = _h_ - _(H_ × sec _(ω))_ (15) where _h_ is calculated as in (10). Once _h_ <sup>′</sup> is obtained, this value is plugged into (11) followed by (12) and (13). We then measure the dimensions of the mouth of the bowls similar to the dimensions of the plates. We assume bowl of the mouth to be a part of the plane _Z_ = _H_ . The radius of the mouth of the bowl is then measured on this plane along the _x_ - and _y_ -axes. _C._ _Data_ The AIM sensor system was mounted on a test bench to collect data. The test bench consisted of a tripod and a protractor for angle measurement (see Fig. 6). The AIM device was placed on a tripod in front of a table at three pitch angles (40 <sup>◦</sup>, 55 <sup>◦</sup>, and 70 <sup>◦</sup> _)_ with respect to the parallel to the ground, at three different heights from the table surface (20, 35, and 50 cm). The angles were measured using the protractor fixed to the side of the sensor aligned with the camera (as shown in Fig. 6). The protractor was also calibrated to test for errors in the pitch angle measurement. The calibration was done in increments of 10 <sup>◦</sup> from 0 <sup>◦</sup> to 70 <sup>◦</sup> . The error in measurement was (mean ± std. dev) −2.43 <sup>◦</sup> ± 1.36 <sup>◦</sup> . The roll and yaw of the cameras were approximately set to be 0 for experimentation. Also, the roll and yaw for the AIM are assumed to be 0 when a person is eating. Nine sets of data collected at a combination of three heights and three pitch angles were used for testing (see Fig. 7). A set of eight objects, three circular plates (diameter: small 18 cm, medium 22 cm, and large 26 cm), two square plates (side: small 18 cm and medium 23 cm), and three circular bowls, were used as objects of interest. As a final step, four research assistants used the proposed methodology to estimate the bowl/container sizes of 3 (two circular bowls and one hollow rectangular box) shown in Fig. 8. Validation images in a real-case scenario where AIM-2 was worn by a user on the eyeglass. Fig. 9. Correcting distortion due to lens aberrations [see (3)]. Fig. 10. Projection of the image on the plane equation _Z_ = 0 (all units are in mm). three images were taken for each case without any restrictions on the position/tilt of the head. The images and the sensor signals captured by the AIM at each setup were extracted and used as input to the model. The ground-truth dimensions were measured using a tape measure. III. RESULTS Fig. 9 represents a sample result of the lens corrections after (3). Using the world coordinates of the plane Z = 0 and the projected image on the plane (see Fig. 10), the dimensions of plates were measured (see Fig. 11). Any object belonging to this plane can be measured using this projection. Table II presents the results for the dimension estimation of plates using the proposed model. The error percentage in the dimension estimation of plates was (mean ± std. dev) 2.01% TABLE II <u>ERROR</u> <u>IN</u> <u>DIMENSIONS</u> <u>FOR</u> <u>PLATES</u> In the case of bowls, the heights of the bowls are estimated, as shown in Fig. 12. Once the height is estimated, (14) and (15) are made use of to estimate the bowl width measured at the top of the bowl (at Z = H). Table III presents the results for the estimation of heights of bowls. The error percentage in the height estimation of bowls was (mean ± std. dev) 2.75% ± 38.11%. Table IV presents the results for the estimation of diameters of bowls. The error percentage in the diameter estimation of bowls was (mean ± std. dev) 4.58% ± 6.78%. Tables V and VI present the results from the real scenarios that were used for validation. The error percentage in the diameter/length and height estimation was TABLE III <u>ERROR</u> <u>IN</u> <u>HEIGHT</u> <u>ESTIMATION</u> <u>IN</u> <u>BOWLS</u> Fig. 11. Sample measurements of plate dimensions (all units are in mm). (mean ± std. dev) −7.89% ± 4.71% and 4.70% ± 11.56%, respectively. IV. DISCUSSION This study proposes a passive and automatic method for estimation of plate and bowl dimensions that involve the AIM-2 device integrated with a ToF sensor. The motivation is to use these dimensions for FPSE as in the “plate method” suggested in [17]. A geometric camera model is used to obtain real-world coordinates of the surface on which the objects of interest are present. In [1], a similar model is proposed, however, that method requires the use of a smartphone with the active participation of the user. Also, the smartphone isi Fig. 12. Sample measurements of bowl dimensions. We propose a method that does not have this requirement. We make use of a ToF ranging sensor, which can directly measure the distance between the camera and the table. The method also accounts for any lens aberrations that can cause distortions such as barrel distortion in the captured images. A major contribution of this work is the elimination of fiducial markers that have been extensively used in previous methods for FPSE. The direct measurement from the range sensor will provide the necessary dimension reference in 2-D-to-3-D model conversion. The method makes several assumptions prior to estimation: the camera axis and the range sensor axis are parallel to each other, the roll and yaw angles of the sensor are 0, the eatingl TABLE IV <u>ERROR</u> <u>IN</u> <u>DIAMETER</u> <u>ESTIMATION</u> <u>IN</u> <u>BOWLS</u> TABLE V <u>ERROR</u> <u>IN</u> <u>DIAMETER</u> <u>ESTIMATION</u> <u>IN</u> <u>CONTAINERS</u> The proposed method was evaluated on a test bench using a calibrated protractor for positioning. Three heights and three angles were considered for testing the proposed model based on the natural behavior of participants in previous AIM-based studies. The tilt angles and the distances between the camera and the eating surface were in the selected range of pitch angles and heights. For the measurement of bowl heights, the inner walls of the bowls were used. The rationale for using the inner walls of the bowls is that the AIM is a passive device that captures continuous images from including the start and end of meal images, and that way the images will include an empty bowl at the end of the meal. Even if the bowl is not empty, we can measure the difference between the start and end of the meal and eventually calculate the difference in the food level. This is a major advantage of having a passive camera since there are enough images covering the entire meal. It was noticed that the error rates were higher for steep angles. The results of estimation of dimensions for plates were acceptable with good error rates. It was noticed that the dimensions were overestimated for steep angles (70 <sup>◦</sup> _)_ . The estimations were most accurate for 55 <sup>◦</sup> compared to the other TABLE VI <u>ERROR</u> <u>IN</u> <u>HEIGHT</u> <u>ESTIMATION</u> <u>IN</u> <u>CONTAINERS</u> two orientations. This is a promising trend since the corresponding AIM pitch angles normally occur when a person is bending forward to grab a bite of the food in front. In addition, since the AIM captures images continuously every 10 s, there will be multiple images captured at several angles due to the forward bending of the user. The angle that typically had the lowest error rates could then be picked from the range of angles available to estimate the dimensions of the objects in the scene. This reference can then also be used for images from different orientations. We also noticed that the error rates were lower for heights of 20 and 35 cm compared to 50 cm for the same pitch angles in the case of plate diameter estimations. This could be because the plates are more central in the images as the camera is closer, reducing the field of view (the area covered by the camera). However, for the height and diameter estimations of bowls, a height 35 cm was more accurate compared to the 20- and 50-cm cases for narrow pitch angles. The 35 cm height might be ideal for the methodology used here since the walls of the bowls are clearer to the user to mark. The best results were obtained for the heights of 20 and 35 cm at 55 <sup>◦</sup> pitch angles for plates and bowls, respectively. One limitation of the study is that the bowl walls are assumed to be flat and not curved. This could be a source of error in dimension measurement and portion size estimation. The method also assumes that the plates are part of the plane Z = 0. The method does not account for the thickness of the plates or the curvature of plates. However, unlike other studies which use plates as a reference, this method is not restricted to circular plates or bowls. Any shape of plates or bowls can be included. Finally, the proposed method was validated by wearing the AIM and collecting data for three cases and four research assistants estimated the diameters/length and heights for the same. The results suggested that except for a couple of outliers (RA3: diameter and RA2: height for white box), the estimates were reasonably accurate. Also, it should be noted that one of the cases was a hollow rectangular box. This indicates that the method could be employed for similar shaped bowls and possibly for a larger variety of bowl shapes. However, in some situations where the walls of the bowls are not flat, our assumption of the walls being flat might induce errors in estimating the height of the container accurately. Future work could include estimating food portion sizes from the dimensions of the bowls and plates. Another possible work is to use this method to estimate the dimensions of regular-shaped foods followed by food volume. Also, the proposed method was only tested on a test bench that was stationary. Since the AIM device is primarily designed to be mounted on the eyeglass, it is necessary to test the proposed method by mounting the sensor system on a human. V. CONCLUSION In this article, we propose a wearable sensor system-based (the automatic ingestion monitor integrated with a ToF ranging sensor) method for the estimation of dimensions of plates and bowls. The contributions of this study are: 1) the model eliminates the need for fiducial markers; 2) the camera system (AIM-2) is not restricted in terms of positioning, unlike in [29] where the smartphone is required to be placed on the eating surface; 3) our model accounts for radial lens distortion in caused due to lens aberrations; 4) a distance (ToF) sensor directly gives the distance between the sensor and the eating surface; 5) the model is not restricted to circular plates; and 6) a passive method that can be used either for automatic or manual assessment of container dimensions with minimum user interaction. The error rates (mean ± std. dev) for dimension estimation were 2.01% ± 4.10% for plate widths/diameters, 2.75% ± 38.11% for bowl heights, and 4.58% ± 6.78% for bowl diameters. ACKNOWLEDGMENT The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health (NIH). REFERENCES [1] Y. Yang, W. Jia, T. Bucher, H. Zhang, and M. Sun, “Image-based food portion size estimation using a smartphone without a fiducial marker.,” _Public_ _Health_ _Nutr_, vol. 22, no. 7, pp. 1180–1192, May 2019, doi: [10.1017/S136898001800054X.](http://dx.doi.org/10.1017/S136898001800054X) [2] P. J. Stumbo, “New technology in dietary assessment: A review of digital methods in improving food record accuracy,” _Proc. Nutrition Soc._, vol. 72, no. 1, pp. [70–76, Feb. 2013, doi: 10.1017/S0029665112002911.](http://dx.doi.org/10.1017/S0029665112002911) [3] H. M. Al Marzooqi, S. J. Burke, M. R. Al Ghazali, E. Duffy, and M. H. S. A. Yousuf, “The development of a food atlas of portion sizes for the United Arab Emirates,” _J._ _Food_ _Composition_ _Anal._, vol. 43, pp. 140–148, Nov. 2015, doi: [10.1016/j.jfca.2015.05.008.](http://dx.doi.org/10.1016/j.jfca.2015.05.008) [4] H. I. Ali, C. Platat, N. El Mesmoudi, M. El Sadig, and I. Tewfik, “Evaluation of a photographic food atlas as a tool for quantifying food portion size in the United Arab Emirates,” _PLoS_ _ONE_, vol. 13, no. 4, Apr. 2018, Art. no. e0196389, doi: [10.1371/journal.pone.0196389.](http://dx.doi.org/10.1371/journal.pone.0196389) [5] R. Jayawardena and M. P. Herath, “Development of a food atlas for sri Lankan adults,” _BMC_ _Nutrition_, vol. 3, no. 1, p. 43, Dec. 2017, doi: [10.1186/s40795-017-0160-4.](http://dx.doi.org/10.1186/s40795-017-0160-4) [6] E. Foster, A. Hawkins, K. L. Barton, E. Stamp, J. N. S. Matthews, and A. J. Adamson, “Development of food photographs for use with children aged 18 months to 16 years: Comparison against weighed food diaries—The young person’s food atlas (U.K.),” _PLoS_ _ONE_, vol. 12, [no. 2, Feb. 2017, Art. no. e0169084, doi: 10.1371/journal.pone.0169084.](http://dx.doi.org/10.1371/journal.pone.0169084) [7] M. P. Villena-Esponera, R. Moreno-Rojas, S. Mateos-Marcos, M. V. Salazar-Donoso, and G. Molina-Recio, “Validation of a photographic atlas of food portions designed as a tool to visually estimate food amounts in Ecuador,” _Nutricion_ _Hospitalaria_, vol. 36, no. 2, pp. 363–371, 2019, doi: [10.20960/nh.2147.](http://dx.doi.org/10.20960/nh.2147) [8] G. Turconi, M. Guarcello, F. G. Berzolari, A. Carolei, R. Bazzano, and C. Roggi, “An evaluation of a colour food photography atlas as a tool for quantifying food portion size in epidemiological dietary surveys,” _Eur._ _J._ _Clin._ _Nutrition_, vol. 59, no. 8, pp. 923–931, Aug. 2005, doi: [10.1038/sj.ejcn.1602162.](http://dx.doi.org/10.1038/sj.ejcn.1602162) [9] M.-L. Ovaskainen et al., “Accuracy in the estimation of food servings against the portions in food photographs,” _Eur. J. Clin. Nutrition_, vol. 62, no. 5, pp. 674–681, May 2008, doi: [10.1038/sj.ejcn.1602758.](http://dx.doi.org/10.1038/sj.ejcn.1602758) [10] L. Korkalo, M. Erkkola, L. Fidalgo, J. Nevalainen, and M. Mutanen, “Food photographs in portion size estimation among adolescent Mozambican girls,” _Public_ _Health_ _Nutrition_, vol. 16, no. 9, pp. 1558–1564, Sep. 2013, doi: [10.1017/S1368980012003655.](http://dx.doi.org/10.1017/S1368980012003655) [11] E. Foster, J. N. Matthews, M. Nelson, J. M. Harris, J. C. Mathers, and A. J. Adamson, “Accuracy of estimates of food portion size using food photographs—The importance of using age-appropriate tools,” _Public_ _Health_ _Nutrition_, vol. 9, no. 4, pp. 509–514, Jun. 2006, doi: [10.1079/PHN2005872.](http://dx.doi.org/10.1079/PHN2005872) [12] K. Nissinen et al., “Accuracy in the estimation of children’s food portion sizes against a food picture book by parents and early educators,” _J._ _Nutritional_ _Sci._, vol. 7, p. e35, 2018, doi: [10.1017/jns.2018.26.](http://dx.doi.org/10.1017/jns.2018.26) [13] V. B. Raju and E. Sazonov, “A systematic review of sensor based methodologies for food portion size estimation,” _IEEE_ _Sen-_ _sors_ _J._, vol. 21, no. 11, pp. 12882–12899, Jun. 2021, doi: [10.1109/JSEN.2020.3041023.](http://dx.doi.org/10.1109/JSEN.2020.3041023) [14] C. Xu, Y. He, N. Khanna, C. J. Boushey, and E. J. Delp, “Model-based food volume estimation using 3D pose,” in _Proc. IEEE Int. Conf. Image_ _Process._, Sep. 2013, pp. 2534–2538, doi: [10.1109/ICIP.2013.6738522.](http://dx.doi.org/10.1109/ICIP.2013.6738522) [15] J. Dehais, M. Anthimopoulos, S. Shevchik, and S. Mougiakakou, “Two-view 3D reconstruction for food volume estimation,” _IEEE_ _Trans._ _Multimedia_, vol. 19, no. 5, pp. 1090–1099, May 2017, doi: [10.1109/TMM.2016.2642792.](http://dx.doi.org/10.1109/TMM.2016.2642792) [16] A. Gao, F. P.-W. Lo, and B. Lo, “Food volume estimation for quantifying dietary intake with a wearable camera,” in _Proc._ _IEEE_ _15th_ _Int._ _Conf._ _Wearable_ _Implant._ _Body_ _Sensor_ _Netw._ _(BSN)_, Mar. 2018, pp. 110–113, doi: [10.1109/BSN.2018.8329671.](http://dx.doi.org/10.1109/BSN.2018.8329671) [17] W. Jia et al., “Imaged based estimation of food volume using circular referents in dietary assessment,” _J. Food Eng._, vol. 109, no. 1, pp. 76–86, Mar. 2012, doi: [10.1016/j.jfoodeng.2011.09.031.](http://dx.doi.org/10.1016/j.jfoodeng.2011.09.031) [18] M. McCrory et al., “Methodology for objective, passive, image- and sensor-based assessment of dietary intake, meal-timing, and food-related activity in Ghana and Kenya (P13-028-19),” _Current Develop. Nutrition_, vol. 3, Jun. 2019, doi: [10.1093/cdn/nzz036.P13-028-19.](http://dx.doi.org/10.1093/cdn/nzz036.P13-028-19) [19] S. Fang, F. Zhu, C. Jiang, S. Zhang, C. J. Boushey, and E. J. Delp, “A comparison of food portion size estimation using geometric models and depth images,” in _Proc._ _IEEE_ _Int._ _Conf._ _Image_ _Process._ _(ICIP)_, Sep. 2016, pp. 26–30, doi: [10.1109/ICIP.2016.7532312.](http://dx.doi.org/10.1109/ICIP.2016.7532312) [20] Z. Zhang, Y. Yang, Y. Yue, J. D. Fernstrom, W. Jia, and M. Sun, “Food volume estimation from a single image using virtual reality technology,” in _Proc._ _IEEE_ _37th_ _Annu._ _Northeast_ _Bioeng._ _Conf._, Apr. 2011, pp. 1–2, doi: [10.1109/NEBC.2011.5778625.](http://dx.doi.org/10.1109/NEBC.2011.5778625) [21] W. Jia, Y. Yue, J. D. Fernstrom, Z. Zhang, Y. Yang, and M. Sun, “3D localization of circular feature in 2D image and application to food volume estimation,” in _Proc._ _Annu._ _Int._ _Conf._ _IEEE_ _Eng._ _Med._ _Biol._ _Soc._, Aug. 2012, pp. 4545–4548, doi: [10.1109/EMBC.2012.6346978.](http://dx.doi.org/10.1109/EMBC.2012.6346978) [22] P. Pouladzadeh, S. Shirmohammadi, and R. Al-Maghrabi, “Mea suring calorie and nutrition from food image,” _IEEE_ _Trans._ _Instrum._ _Meas._, vol. 63, no. 8, pp. 1947–1956, Aug. 2014, doi: [10.1109/TIM.2014.2303533.](http://dx.doi.org/10.1109/TIM.2014.2303533) [23] J. Shang et al., “A mobile structured light system for food, vol ume estimation,” in _Proc._ _IEEE_ _Int._ _Conf._ _Comput._ _Vis._ _Workshops_ _(ICCV_ _Workshops)_, Barcelona, Spain, Nov. 2011, pp. 100–101, doi: [10.1109/ICCVW.2011.6130229.](http://dx.doi.org/10.1109/ICCVW.2011.6130229) [24] C. J. Boushey, D. A. Kerr, J. Wright, K. D. Lutes, D. S. Ebert, and E. J. Delp, “Use of technology in children’s dietary assessment,” _Eur._ _J._ _Clin._ _Nutrition_, vol. 63, no. 1, pp. 50–57, Feb. 2009, doi: [10.1038/ejcn.2008.65.](http://dx.doi.org/10.1038/ejcn.2008.65) [25] N. Khanna, C. J. Boushey, D. Kerr, M. Okos, D. S. Ebert, and E. J. Delp, “An overview of the technology assisted dietary assessment project at Purdue University,” in _Proc._ _IEEE_ _Int._ _Symp._ _Multimedia_, Dec. 2010, pp. 290–295, doi: [10.1109/ISM.2010.50.](http://dx.doi.org/10.1109/ISM.2010.50) [26] F. Kong and J. Tan, “DietCam: Automatic dietary assessment with mobile camera phones,” _Pervas._ _Mob._ _Comput._, vol. 8, no. 1, pp. 147–163, Feb. 2012, doi: [10.1016/j.pmcj.2011.07.003.](http://dx.doi.org/10.1016/j.pmcj.2011.07.003) [27] S. Fang et al., “Single-view food portion estimation: Learning image-to energy mappings using generative adversarial networks,” in _Proc._ _25th_ _IEEE_ _Int._ _Conf._ _Image_ _Process._ _(ICIP)_, Oct. 2018, pp. 251–255, doi: [28] C. J. Boushey, M. Spoden, F. M. Zhu, E. J. Delp, and D. A. Kerr, “New mobile methods for dietary assessment: Review of image-assisted and image-based dietary assessment methods,” _Proc._ _Nutrition_ _Soc._, vol. 76, no. 3, pp. 283–294, Aug. 2017, doi: [10.1017/S0029665116002913.](http://dx.doi.org/10.1017/S0029665116002913) [29] M. H. Rahman et al., “Food volume estimation in a mobile phone based dietary assessment system,” in _Proc._ _8th_ _Int._ _Conf._ _Signal_ _Image_ _Technol._ _Internet_ _Based_ _Syst._, Nov. 2012, pp. 988–995, doi: [10.1109/SITIS.2012.146.](http://dx.doi.org/10.1109/SITIS.2012.146) [30] T. Bucher et al., “The international food unit: A new measurement aid that can improve portion size estimation,” _Int._ _J._ _Behav._ _Nutrition_ _Phys._ _Activity_, vol. 14, no. 1, pp. 1–11, Dec. 2017, doi: [10.1186/s12966-017-](http://dx.doi.org/10.1186/s12966-017-0583-y) [0583-y.](http://dx.doi.org/10.1186/s12966-017-0583-y) [31] M. Sun et al., “A wearable electronic system for objective dietary assessment,” _J._ _Amer._ _Dietetic_ _Assoc._, vol. 110, no. 1, pp. 45–47, Jan. 2010, doi: [10.1016/j.jada.2009.10.013.](http://dx.doi.org/10.1016/j.jada.2009.10.013) [32] M. Sun et al., “eButton: A wearable computer for health monitoring and personal assistance,” in _Proc._ _51st_ _Annu._ _Design_ _Automat._ _Conf._, 2014, pp. 1–6, doi: [10.1145/2593069.2596678.](http://dx.doi.org/10.1145/2593069.2596678) [33] A. Doulah, T. Ghosh, D. Hossain, M. H. Imtiaz, and E. Sazonov, “‘Auto matic ingestion monitor version 2’—A novel wearable device for automatic food intake detection and passive capture of food images,” _IEEE_ _J._ _Biomed._ _Health_ _Informat._, vol. 25, no. 2, pp. 568–576, Feb. 2021, doi: [10.1109/JBHI.2020.2995473.](http://dx.doi.org/10.1109/JBHI.2020.2995473) Viprav B. Raju (Student Member, IEEE) received the bachelor’s degree in electrical and computer engineering from Visvesvaraya Technological University (VTU), Bengaluru, India, in 2016, and the M.S. degree in electrical engineering from The University of Alabama, Tuscaloosa, AL, USA, in 2017, where he is currently pursuing the Ph.D. degree in electrical engineering. His research interests include computer vision image processing, sensor networks, machine learning, and deep learning. His current research interests include dietary assessment and image-based food intake monitoring. Delwar Hossain (Student Member, IEEE) received the bachelor’s degree in electrical engineering from the Khulna University of Engineering and Technology, Khulna, Bangladesh, in 2013. He is currently pursuing the Ph.D. degree in electrical engineering with The University of Alabama, Tuscaloosa, AL, USA. His research interests include the development of wearable systems, sensor networks, and machine learning algorithms for preventive, diagnostic, and assistive health technology, with a special focus on physical activity and dietary intake monitoring. Edward Sazonov (Senior Member, IEEE) received the Diploma degree in systems engineering from the Khabarovsk State University of Technology, Khabarovsk, Russia, in 1993, and the Ph.D. degree in computer engineering from West Virginia University, Morgantown, WV, USA, in 2002. He is currently a Professor with the Department of Electrical and Computer Engineering, The University of Alabama, Tuscaloosa, AL, USA, and the Head of the Computer Laboratory of Ambient and Wearable Systems, The University of Alabama. His research interests include wireless, ambient, and wearable devices; methods of biomedical signal processing; and pattern recognition. Devices developed in his laboratory include: a wearable sensor for objective detection and characterization of food intake; a highly accurate physical activity and gait monitor integrated into a shoe insole; a wearable sensor system for monitoring of cigarette smoking; and others. His research has been supported by the National Science Foundation, National Institutes of Health, National Academies of Science, and state

섹션 본문 72문단 · 24,289자

(제목 없음)

1Automatic food portion size estimation (FPSE) with minimal user burden is a challenging task.Most of the existing FPSE methods use fiducial markers and/or virtual models as dimensional references.An alternative approach is to estimate the dimensions of the eating containers prior to estimating the portion size.In this article, we propose a wearable sensor system (the automatic ingestion monitor integrated with a ranging sensor) and a related method for the estimation of dimensions of plates and bowls.The contributions of this study are: 1) the model eliminates the need for fiducial markers; 2) the camera system [automatic ingestion monitor version 2 (AIM-2)] is not restricted in terms of positioning relative to the food item; 3) our model accounts for radial lens distortion caused due to lens aberrations; 4) a ranging sensor directly gives the distance between the sensor and the eating surface; 5) the model is not restricted to circular plates; and 6) the proposed system implements a passive method that can be used for assessment of container dimensions with minimum user interaction.The error rates (mean ± std.dev) for dimension estimation were 2.01% ± 4.10% for plate widths/diameters, 2.75% ± 38.11% for bowl heights, and 4.58% ± 6.78% for bowl diameters.

I. Introduction

2Reliable and accurate portion size estimation is challenging but essential for dietary assessment.Image-based dietary assessment has been one of the fastest growing areas of research in this milieu.Image-based assessment can be split into manual assessment and automatic assessment.Manual assessment can be done using digital food records [2] or by image-based 24-h recall/self-reporting that involve food atlases [3], [4], [5], [6], [7].The image-based food records involve capturing meal images that are reviewed later by the participant or by a professional (nutritionist/clinician/researcher) to estimate the portion size.Digital food images are a useful tool for the quantification of food items and in portion size estimation [8], [9], [10].Images of food leftovers are also captured in some studies, which improved the portion size accuracy [11].Recall or self-reporting methods use food atlases.Food atlases are reference guides that are taken to present various portions representative of the range of portion sizes usually consumed.Either during or after data collection, participants are asked to report the food quantity consumed by selecting a particular image, a fraction/multiple of an image, or a combination of images [12].

3The abovementioned manual methods are cumbersome, subject to memory (and therefore prone to error), and are not accurate compared to the much recent automatic assessment methods.A previous review [13] identified some of the existing image-based food portion size estimation (FPSE) methods that are automatic.It was seen that food portion size can be estimated automatically using food images captured during the meal [14], [15], [16], [17], [18].However, automatic FPSE from food images is a challenging task since the twodimensional (2-D) image lacks the three-dimensional (3-D) real-world information.There is a lack of reference to measure/gauge the size/volume of the food items.To tackle this problem, the dimensional reference is obtained by using a visual cue that must be present in a food picture.A few methods used virtual objects or objects that already exist in a typical food image to aid in FPSE.Some of the popular approaches included geometric models [19], VR-based referencing [20], circular object referencing [17], [21], and thumb-based referencing [22].Shang et al. [23] used a structured light-based 3-D reconstruction approach to estimate food volume.Jia et al. [17] used the "plate method" for FPSE where the circular plates present in the image are used to determine location, orientation, and volume of the food items.The study, however, only considers circular plates.

4A fiducial marker of known dimensions placed in the images can also be used as a point of reference [17], [22], [24], [25].The type of reference used determines the complexity of setup.Some methods require the users to carry around the reference (checkerboards, blocks, and cards) and some require special dining setups, which increases user burden.

5Another classification in image-based FPSE can be done based on the mode of image capture.Food image capture can either be active or passive.Active methods rely on the participant to capture the food image by a camera (such as a smartphone camera), typically, before and after an eating episode.The images are then processed using computer vision models to segment foods, recognize foods, estimate portion size/volume, and compute energy content [26], [27], [28].Active methods provide detailed information such as meal timing, location, and duration of the eating episodes.However, these methods require the active participation of the users, which can be a burden.Some of the active methods that predict portion sizes require fiducial markers in the food image to assist manual review/ computer algorithms [26], [29].The placement of these markers combined with the active nature of image capture increases the user burden considerably.

6One study presented a new active method for food volume estimation without using a fiducial marker.The method utilizes a special picture-taking strategy on a smartphone [1].A mathematical model that uses the height and orientation of the smartphone was used to determine the real-world coordinates of the plane of the eating surface in the capture image.Bucher et al. [30] presented and tested a new virtual reality method for food volume estimation using the International Food Unit.This method, however, requires the user to place the smartphone on the eating surface while image capture and also needs additional user interaction in using the virtual International Food Unit.

7Food images can also be acquired by a "passive" method using wearable devices that capture images continuously (both food and nonfood) without the active participation of the user [31], [32].The passive methods minimize the burden of active capture using a wearable camera.However, FPSE methods that require fiducial markers cannot be easily integrated with the passive image capture since the user is not actively taking images and do not know when to place these markers.

8The automatic ingestion monitor [33] is a wearable sensor system [automatic ingestion monitor version 2 (AIM-2)] that is mounted on a user's eyeglass.The sensor consists of a combination of sensors for accurate detection of food intake and triggering of a wearable

A. Equipment

9In this study, a novel wearable sensor system (AIM-2 with a ToF ranging sensor) was used [33].AIM-2 consists of a sensor module, which houses a miniature 5-Mpixel camera with 120° wide-angle gaze-aligned lens, a low-power 3-D accelerometer (ADXL362 from Analog Devices, Norwood, MA, USA), and a ToF ranging sensor (VL53L0X from STMicroelectronics).The sensor system is enclosed in a custom-designed 3-D printed enclosure.The ToF sensor is aligned with the camera axis.

10The camera continuously captured images at a rate of one image per 10-s interval continuously throughout the day.Data from the accelerometer and ToF sensor were sampled at 128 Hz.All collected sensor signals and captured images were stored on an SD card and processed off-line in MATLAB (MathWorks Inc., Natick, MA, USA) for algorithm development and validation.The AIM enclosure is such that the camera and the ToF sensor are at an angle of 21° with respect to the accelerometer axis, as shown in Fig. 1.We will be using this offset (+21°) while calculating the pitch of the camera.The raw sensor data from the accelerometer were preprocessed before extracting the pitch angle.A high-pass filter with a cutoff frequency of 0.1 Hz was applied to remove the dc component from the accelerometer signal.

11The sensor pitch was calculated as in [33] and the device pitch is obtained by adding the offset (21°) to the sensor pitch.The distance readings are more straightforward, the raw values depicting the actual distances.Next, using the timestamp of an image, the respective pitch and distance readings were extracted.Fig. 2 shows the ToF distance readings and pitch plotted as a function of time for a sample meal.

B. Geometric Model

12The objective is to project the points in an image in the real-world coordinates.In this study, our primary concern is to measure the dimensions of the plate and bowls.

13Refer to Fig. 3. Let P be a point in the world, C w be a world coordinate system, and (X Y Z) t be the coordinates of P in C w .Define the camera coordinate system, C c , to have its W-axis parallel with the optical axis of the camera lens, its U-axis parallel with the u-axis of C i (image coordinate plane), and origin located at the perspective center.Let (U V W) t be the coordinates of P in C c .The coordinates (U V W) t are related to (X Y Z) t by a rigid body coordinate transformation

14where R is a 3 × 3 rotation matrix and T is a 3 × 1 translation vector.R is dependent on three angles of rotation, namely, pitch (ω), roll (Φ), and yaw (ψ).The three angles for the AIM device are shown in Fig. 1.

15The principal point is the intersection of the imaging plane with the optical axis.Let f c be the focal length of the lens of the imaging system.Define the 2-D image coordinate system, C i , to be in the image plane with its origin located at the principal point, u-axis in the fast scan direction (horizontal rows of pixels on the sensor), and v-axis in the slow scan (vertical rows of pixels on the sensor) direction of the camera sensor.Fast scan indicates the pixel direction in which the sensor scans at a higher rate.Let p be the projection of P onto the image plane and let u, v t be the coordinates of p in C i .The focal length (Table .I) of u, v t is given by

16Next, radial lens distortion is incorporated into the model in the following way.Let (uv) t be the actual observed image point after being subject to lens distortion.Then, (u v) t is related to u, v t by

17where K c is a coefficient, which controls the amount of radial distortion.

18Finally, it is necessary to model the image sampling performed by the camera sensor [charged coupled device (CCD)].A camera sensor consists of a 2-D array of photosensors.Each photosensor converts incoming light into a digital signal by means of an analog-todigital converter.To obtain color information, one "sensor pixel" is divided into a grid of photosensors, and different color filters are placed in front of these multiple photosensors.Each of these photosensors receives light through only one of the three filters: blue, red, and green.Combining these measurements gives one color triple: (red intensity, green intensity, and blue intensity).This is known as the Bayer filter.Therefore, the digital image coordinates are not the same as the pixel coordinates.

19Let C p be the pixel coordinate system associated with the digital image.The pixel coordinates are related to the image coordinates by (

20We are interested in the inverse function of (5) for the purposes of dimension estimation, i.e.,

21With the known AIM sensor orientation, namely, the pitch angle of the sensor, provided by the inertial measurement unit, a right angle between the surface of the lens and the optical axis, and the projection relationship in (5), it can be shown that the inverse of function f in (6) exists for the tabletop, i.e.,

22Note that Z = 0 in (7) represents the plane equation of the tabletop.

23Also, we assume that the roll (Φ) and yaw (ψ) of the sensor are zero.Therefore, the rotation matrix R is given by

24From ( 4), the world coordinates of the tabletop are related to the pixel coordinates by

25To calculate the translational and rotation matrices, we make use of the sensor pitch (ω) and distance readings from the AIM.The distance is obtained by the ToF sensor, and the sensor pitch is obtained by the accelerometer on the AIM device, as shown in Fig. 4. The camera on the AIM has an offset of 21°ℎ

26where d tof is the distance from the ToF sensor, which is the distance between the AIM and the eating surface.As in [1], we obtain the following equation:

27From (9), we obtain

28Finally, we obtain the equation

29where T = [0; −h; 0].Equation (13) gives us the plane of the eating surface (Z = 0).

30The study mainly focuses on obtaining the dimensions of two types of vessels, namely, plates and bowls.We assume plates to be flat and part of the plane Z = 0.The heights/depths of the plates are assumed to be negligible and approximated to zero.We measure the dimensions of the plate on this plane.

31However, in the case of bowls, first, the height of the bowl is measured along the y-axis, as shown in Fig. 5.The height is just a projection on the y-axis and the true height is calculated as in (14).Here, the assumption is that the bowl sides are flat and not curved H = tan ω × H′ .

32(

33Once the height of the bowl (H) is calculated, the equation of the plane Z = H is obtained instead of Z = 0. Fig. 5 shows the changes in the parameters for obtaining the adjusted plane equation

34where h is calculated as in (10).

35Once h′ is obtained, this value is plugged into (11) followed by ( 12) and (13).

36We then measure the dimensions of the mouth of the bowls similar to the dimensions of the plates.We assume bowl of the mouth to be a part of the plane Z = H.The radius of the mouth of the bowl is then measured on this plane along the xand y-axes.

C. Data

37The AIM sensor system was mounted on a test bench to collect data.The test bench consisted of a tripod and a protractor for angle measurement (see Fig. 6).The AIM device was placed on a tripod in front of a table at three pitch angles (40°, 55°, and 70°) with respect to the parallel to the ground, at three different heights from the table surface (20, 35, and 50 cm).The angles were measured using the protractor fixed to the side of the sensor aligned with the camera (as shown in Fig. 6).The protractor was also calibrated to test for errors in the pitch angle measurement.The calibration was done in increments of 10° from 0° to 70°.The error in measurement was (mean ± std.dev) −2.43°±1.36°.The roll and yaw of the cameras were approximately set to be 0 for experimentation.Also, the roll and yaw for the AIM are assumed to be 0 when a person is eating.

38Nine sets of data collected at a combination of three heights and three pitch angles were used for testing (see Fig. 7).A set of eight objects, three circular plates (diameter: small 18 cm, medium 22 cm, and large 26 cm), two square plates (side: small 18 cm and medium 23 cm), and three circular bowls, were used as objects of interest.

39As a final step, four research assistants used the proposed methodology to estimate the bowl/container sizes of 3 (two circular bowls and one hollow rectangular box) shown in Fig. 8.The AIM device was worn by a user and a minimum of three images were taken for each case without any restrictions on the position/tilt of the head.

40The images and the sensor signals captured by the AIM at each setup were extracted and used as input to the model.The ground-truth dimensions were measured using a tape measure.

III. Results

41Fig. 9 represents a sample result of the lens corrections after (3).

42Using the world coordinates of the plane Z = 0 and the projected image on the plane (see Fig. 10), the dimensions of plates were measured (see Fig. 11).Any object belonging to this plane can be measured using this projection.

43Table II presents the results for the dimension estimation of plates using the proposed model.The error percentage in the dimension estimation of plates was (mean ± std.dev) 2.01% ± 4.10%.

44In the case of bowls, the heights of the bowls are estimated, as shown in Fig. 12. Once the height is estimated, ( 14) and ( 15) are made use of to estimate the bowl width measured at the top of the bowl (at Z = H).

45Table III presents the results for the estimation of heights of bowls.The error percentage in the height estimation of bowls was (mean ± std.dev) 2.75% ± 38.11%.Table IV presents the results for the estimation of diameters of bowls.The error percentage in the diameter estimation of bowls was (mean ± std.dev) 4.58% ± 6.78%.Tables V and VI present the results from the real scenarios that were used for validation.The error percentage in the diameter/length and height estimation was, (mean ± std.dev) −7.89% ± 4.71% and 4.70% ± 11.56%, respectively.

IV. Discussion

46This study proposes a passive and automatic method for estimation of plate and bowl dimensions that involve the AIM-2 device integrated with a ToF sensor.The motivation is to use these dimensions for FPSE as in the "plate method" suggested in [17].A geometric camera model is used to obtain real-world coordinates of the surface on which the objects of interest are present.In [1], a similar model is proposed, however, that method requires the use of a smartphone with the active participation of the user.Also, the smartphone is needed to be placed on the eating surface at a specific position.We propose a method that does not have this requirement.We make use of a ToF ranging sensor, which can directly measure the distance between the camera and the table.The method also accounts for any lens aberrations that can cause distortions such as barrel distortion in the captured images.

47A major contribution of this work is the elimination of fiducial markers that have been extensively used in previous methods for FPSE.The direct measurement from the range sensor will provide the necessary dimension reference in 2-D-to-3-D model conversion.

48The method makes several assumptions prior to estimation: the camera axis and the range sensor axis are parallel to each other, the roll and yaw angles of the sensor are 0, the eating surface = 0, and the walls of the bowls are flat.

49The proposed method was evaluated on a test bench using a calibrated protractor for positioning.Three heights and three angles were considered for testing the proposed model based on the natural behavior of participants in previous AIM-based studies.The tilt angles and the distances between the camera and the eating surface were in the selected range of pitch angles and heights.

50For the measurement of bowl heights, the inner walls of the bowls were used.The rationale for using the inner walls of the bowls is that the AIM is a passive device that captures continuous images from including the start and end of meal images, and that way the images will include an empty bowl at the end of the meal.Even if the bowl is not empty, we can measure the difference between the start and end of the meal and eventually calculate the difference in the food level.This is a major advantage of having a passive camera since there are enough images covering the entire meal.It was noticed that the error rates were higher for steep angles.

51The results of estimation of dimensions for plates were acceptable with good error rates.It was noticed that the dimensions were overestimated for steep angles (70°).The estimations were most accurate for 55° compared to the other two orientations.This is a promising trend since the corresponding AIM pitch angles normally occur when a person is bending forward to grab a bite of the food in front.In addition, since the AIM captures images continuously every 10 s, there will be multiple images captured at several angles due to the forward bending of the user.The angle that typically had the lowest error rates could then be picked from the range of angles available to estimate the dimensions of the objects in the scene.This reference can then also be used for images from different orientations.

52We also noticed that the error rates were lower for heights of 20 and 35 cm compared to 50 cm for the same pitch angles in the case of plate diameter estimations.This could be because the plates are more central in the images as the camera is closer, reducing the field of view (the area covered by the camera).However, for the height and diameter estimations of bowls, a height 35 cm was more accurate compared to the 20-and 50-cm cases for narrow pitch angles.The 35 cm height might be ideal for the methodology used here since the walls of the bowls are clearer to the user to mark.The best results were obtained for the heights of 20 and 35 cm at 55° pitch angles for plates and bowls, respectively.

53One limitation of the study is that the bowl walls are assumed to be flat and not curved.This could be a source of error in dimension measurement and portion size estimation.The method also assumes that the plates are part of the plane Z = 0.The method does not account for the thickness of the plates or the curvature of plates.However, unlike other studies which use plates as a reference, this method is not restricted to circular plates or bowls.Any shape of plates or bowls can be included.

54Finally, the proposed method was validated by wearing the AIM and collecting data for three cases and four research assistants estimated the diameters/length and heights for the same.The results suggested that except for a couple of outliers (RA3: diameter and RA2: height for white box), the estimates were reasonably accurate.Also, it should be noted that one of the cases was a hollow rectangular box.This indicates that the method could be employed for similar shaped bowls and possibly for a larger variety of bowl shapes.However, in some situations where the walls of the bowls are not flat, our assumption of the walls being flat might induce errors in estimating the height of the container accurately.

55Future work could include estimating food portion sizes from the dimensions of the bowls and plates.Another possible work is to use this method to estimate the dimensions of regular-shaped foods followed by food volume.Also, the proposed method was only tested on a test bench that was stationary.Since the AIM device is primarily designed to be mounted on the eyeglass, it is necessary to test the proposed method by mounting the sensor system on a human.

V. Conclusion

56In this article, we propose a wearable sensor system-based (the automatic ingestion monitor integrated with a ToF ranging sensor) method for the estimation of dimensions of plates and bowls.The contributions of this study are: 1) the model eliminates the need for fiducial markers; 2) the camera system (AIM-2) is not restricted in terms of positioning, unlike in [29] where the smartphone is required to be placed on the eating surface; 3) our model accounts for radial lens distortion in caused due to lens aberrations; 4) a distance (ToF) sensor directly gives the distance between the sensor and the eating surface; 5) the model is not restricted to circular plates; and 6) a passive method that can be used either for automatic or manual assessment of container dimensions with minimum user interaction.The error rates (mean ± std.dev) for dimension estimation were 2.01% ± 4.10% for plate widths/ diameters, 2.75% ± 38.11% for bowl heights, and 4.58% ± 6.78% for bowl diameters.Rotational axes of the AIM sensor.Also depicted is the camera offset of 21° with respect to the axis of the eyeglass/AIM device.ToF distance and pitch angle as a function of time (y-axis: hh:mm:ss) for a sample meal where the AIM-2 was used.Model of the AIM imaging system.Projection of camera coordinates on to the world coordinates.Also, depict the calculation of pitch angle of the camera.Left: test bench with the AIM attached to the tripod.Right: protractor used to measure the pitch angle of the sensor system.Test dataset: plates and bowls of varying sizes.Validation images in a real-case scenario where AIM-2 was worn by a user on the eyeglass.Sample measurements of plate dimensions (all units are in mm).Sample measurements of bowl dimensions.

57x and s c y are scale factors (pixel/mm), c cx and c c y are the pixel coordinates of the principal point, and K c is the distortion coefficient (pixel/mm)

Fig. 1 .

58Fig. 1.

Fig. 2 .

59Fig. 2.

Fig. 3 .

60Fig. 3.

Fig. 4 .

61Fig. 4.

Fig. 5 .

62Fig. 5. Projection H' of height H on the y-axis.Calculating h' for obtaining the plane equation for Z = H.

Fig. 6 .

63Fig. 6.

Fig. 7 .

64Fig. 7.

Fig

65Fig. 8.

Fig. 9 .

66Fig. 9. Correcting distortion due to lens aberrations [see (3)].

Fig. 10 .

67Fig. 10.Projection of the image on the plane equation Z = 0 (all units are in mm).

Fig. 11 .

68Fig. 11.

Fig. 12 .

69Fig. 12.

TABLE I

70Parameters of the AIM Camera

TABLE VI

71Error in Height Estimation in Containers

72IEEE Sens J. Author manuscript; available in PMC 2023 October 05.

참고문헌 34건

  1. Accuracy in the estimation of food servings against the portions in food photographs European Journal of Clinical Nutrition · Springer Nature · 2007 10.1038/sj.ejcn.1602758
  2. Food Volume Estimation in a Mobile Phone Based Dietary Assessment System 2012 10.1109/sitis.2012.146
  3. An evaluation of a colour food photography atlas as a tool for quantifying food portion size in epidemiological dietary surveys European Journal of Clinical Nutrition · Springer Nature · 2005 10.1038/sj.ejcn.1602162
  4. New technology in dietary assessment: a review of digital methods in improving food record accuracy Proceedings of The Nutrition Society · Cambridge University Press · 2013 10.1017/s0029665112002911
  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. 3D localization of circular feature in 2D image and application to food volume estimation 2012 10.1109/embc.2012.6346978
  7. Accuracy of estimates of food portion size using food photographs – the importance of using age-appropriate tools Public Health Nutrition · Cambridge University Press · 2006 10.1079/phn2005872
  8. A Wearable Electronic System for Objective Dietary Assessment Journal of the American Dietetic Association · Elsevier BV · 2009 10.1016/j.jada.2009.10.013
  9. Model-based food volume estimation using 3D pose 2013 10.1109/icip.2013.6738522
  10. Measuring Calorie and Nutrition From Food Image IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2014 10.1109/tim.2014.2303533
  11. Food photographs in portion size estimation among adolescent Mozambican girls Public Health Nutrition · Cambridge University Press · 2012 10.1017/s1368980012003655
  12. DietCam: Automatic dietary assessment with mobile camera phones Pervasive and Mobile Computing · Elsevier BV · 2011 10.1016/j.pmcj.2011.07.003
  13. eButton 2014 10.1145/2593069.2596678
  14. An Overview of the Technology Assisted Dietary Assessment Project at Purdue University 2010 10.1109/ism.2010.50
  15. A mobile structured light system for food volume estimation 2011 10.1109/iccvw.2011.6130229
  16. Use of technology in children’s dietary assessment European Journal of Clinical Nutrition · Springer Nature · 2009 10.1038/ejcn.2008.65
  17. Food volume estimation from a single image using virtual reality technology 2011 10.1109/nebc.2011.5778625
  18. New mobile methods for dietary assessment: review of image-assisted and image-based dietary assessment methods Proceedings of The Nutrition Society · Cambridge University Press · 2016 10.1017/s0029665116002913
  19. A comparison of food portion size estimation using geometric models and depth images 2022 IEEE International Conference on Image Processing (ICIP) · 2016 10.1109/icip.2016.7532312
  20. Two-View 3D Reconstruction for Food Volume Estimation IEEE Transactions on Multimedia · Institute of Electrical and Electronics Engineers · 2016 10.1109/tmm.2016.2642792
  21. Development of food photographs for use with children aged 18 months to 16 years: Comparison against weighed food diaries – The Young Person’s Food Atlas (UK) PLoS ONE · Public Library of Science · 2017 10.1371/journal.pone.0169084
  22. Development of a food atlas for Sri Lankan adults BMC Nutrition · BioMed Central · 2017 10.1186/s40795-017-0160-4
  23. The international food unit: a new measurement aid that can improve portion size estimation International Journal of Behavioral Nutrition and Physical Activity · BioMed Central · 2017 10.1186/s12966-017-0583-y
  24. Food volume estimation for quantifying dietary intake with a wearable camera 2018 10.1109/bsn.2018.8329671
  25. Evaluation of a photographic food atlas as a tool for quantifying food portion size in the United Arab Emirates PLoS ONE · Public Library of Science · 2018 10.1371/journal.pone.0196389
  26. Accuracy in the estimation of children's food portion sizes against a food picture book by parents and early educators Journal of Nutritional Science · Cambridge University Press · 2018 10.1017/jns.2018.26
  27. Validation of a photographic atlas of food portions designed as a tool to visually estimate food amounts in Ecuador. Nutrición Hospitalaria · Arán Ediciones · 2018 10.20960/nh.2147
  28. Methodology for Objective, Passive, Image- and Sensor-based Assessment of Dietary Intake, Meal-timing, and Food-related Activity in Ghana and Kenya (P13-028-19) Current Developments in Nutrition · Elsevier BV · 2019 10.1093/cdn/nzz036.p13-028-19
  29. Single-View Food Portion Estimation: Learning Image-to-Energy Mappings Using Generative Adversarial Networks 2018 10.1109/icip.2018.8451461
  30. Image-based food portion size estimation using a smartphone without a fiducial marker Public Health Nutrition · Cambridge University Press · 2018 10.1017/s136898001800054x
  31. “Automatic Ingestion Monitor Version 2” – A Novel Wearable Device for Automatic Food Intake Detection and Passive Capture of Food Images IEEE Journal of Biomedical and Health Informatics · Institute of Electrical and Electronics Engineers · 2020 10.1109/jbhi.2020.2995473
  32. A Systematic Review of Sensor-Based Methodologies for Food Portion Size Estimation IEEE Sensors Journal · IEEE Sensors Council · 2020 10.1109/jsen.2020.3041023
  33. “Automatic Ingestion Monitor Version 2” – A Novel Wearable Device for Automatic Food Intake Detection and Passive Capture of Food Images IEEE Journal of Biomedical and Health Informatics · Institute of Electrical and Electronics Engineers · 2020 10.1109/jbhi.2020.2995473
  34. The development of a food atlas of portion sizes for the United Arab Emirates Journal of Food Composition and Analysis · Elsevier BV · 2015 10.1016/j.jfca.2015.05.008