Related Experiment Video
Updated: May 22, 2026

Design and Evaluation of Smart Glasses for Food Intake and Physical Activity Classification
Published on: February 14, 2018
Personalized food consumption detection with deep learning and Inertial Measurement Unit sensor
Lehel Dénes-Fazakas1, Barbara Simon2, Ádám Hartvég2
1Physiological Controls Research Center, University Research and Innovation Center, Obuda University, Bécsi út 96/b, Budapest, 1034, Hungary; Biomatics and Applied Artificial Intelligence Institute, John von Neumann Faculty of Informatics, Obuda University, Bécsi út 96/b, Budapest, 1034, Hungary; Doctoral School of Applied Informatics and Applied Mathematics, Obuda University, Bécsi út 96/b, Budapest, 1034, Hungary.
A new deep learning model accurately detects carbohydrate intake for diabetes management, crucial for artificial pancreas users. This technology aids in precise insulin delivery by monitoring daily meals and carbohydrate consumption.
Area of Science:
- Biomedical Engineering
- Artificial Intelligence in Healthcare
- Diabetes Technology
Background:
- Accurate carbohydrate counting is essential for diabetes mellitus management, particularly for individuals using artificial pancreas systems.
- Manual carbohydrate tracking is often overlooked, impacting glycemic control and insulin dosing.
- Artificial pancreas systems rely on precise carbohydrate intake data for effective insulin pump activation.
Purpose of the Study:
- To develop and validate a personalized deep learning model for accurate carbohydrate intake detection.
- To improve automated insulin delivery in artificial pancreas systems through precise meal monitoring.
- To address the challenge of inconsistent manual carbohydrate tracking in diabetes management.
Main Methods:
- Utilized a publicly available dataset from an Inertial Measurement Unit (IMU) with accelerometer and gyroscope data sampled at 15 Hz.
- Preprocessed the sensor data and employed a recurrent neural network architecture with Long short-term memory (LSTM) layers for patient-tailored modeling.
- Evaluated model performance using metrics such as F1 score and confusion matrix analysis.
Main Results:
- The deep learning model achieved a median F1 score of 0.99, demonstrating high accuracy in carbohydrate intake detection.
- The model exhibited performance consistently above 90%, with most results ranging from 98% to 99%.
- Confusion matrix analysis showed minimal discrepancies (6 seconds), and average prediction latency was 5.5 seconds.
Conclusions:
- The developed personalized deep learning model accurately detects carbohydrate intake, offering a significant advancement for diabetes management.
- Recurrent neural networks, particularly LSTMs, substantially enhanced problem-solving capabilities for this task.
- Future work may involve transformer networks and shorter time windows to further improve responsiveness and accuracy, with multi-day data collection recommended.
Related Concept Videos
Pulmonary Tuberculosis I
Causative Organism
The primary infectious agent causing tuberculosis is Mycobacterium tuberculosis, a slow-growing, acid-fast, aerobic rod that exhibits sensitivity to heat and ultraviolet light. Instances of Mycobacterium bovis and Mycobacterium avium contributing to the development of TB infection are rare.
Mode of...
Pulmonary Tuberculosis II
Here is a detailed explanation of its pathophysiology:
Transmission: The process begins when a person inhales droplet nuclei containing M. tuberculosis. These are typically released into the air when an individual with pulmonary or...
Pulmonary Tuberculosis III
The first classification is based on the development of the disease, and it includes the following categories:
Pulmonary Tuberculosis IV
Several diagnostic approaches are used to detect TB. The conventional method is the Tuberculin Skin Test (TST), also known as the Mantoux test. However, this method has...
Pulmonary Tuberculosis V
Latent tuberculosis infection occurs when TB bacteria are present in a person's body, but are not causing illness or symptoms. It is not contagious, and preventive treatment is crucial to avoid the progression...

