
Share
Alexandre Gomes employed a deep neural network to forecast his weight loss on a ketogenic diet, using machine learning to interpret complex patterns in his 8-week journey of shedding over 20 kg.
Alexandre Gomes, a tech enthusiast and blogger, recently shared his experience using a deep neural network (DNN) model to predict and visualize his weight loss progress while following a ketogenic diet. Over the past 8 weeks, he lost over 20 kg and decided to leverage machine learning to better understand and project his weight loss journey.
Gomes used a simple feedforward DNN model to capture the non-linear nature of his weight loss data. This approach is particularly useful for time series data where the relationship between inputs (time) and outputs (weight) can be complex. Here’s a breakdown of the key steps:

The Harris-Benedict Equation is a well-established formula used to estimate Basal Metabolic Rate (BMR) and Total Daily Energy Expenditure (TDEE). BMR is the number of calories your body needs to perform basic physiological functions at rest. TDEE includes all activities and can be adjusted for weight loss or gain.
Gomes used these calculations to create a graph showing his daily calorie needs and compared it with his actual weight loss rate.
By combining machine learning with traditional nutritional science, Gomes was able to gain deeper insights into his weight loss journey. The DNN model provided a powerful tool for visualizing and predicting future progress, while the Harris-Benedict Equation helped in understanding the caloric impact of his diet changes. This approach can be valuable for anyone looking to manage their weight more effectively using data-driven methods.
Tags
Original Sources
About the author
Kai built ML infrastructure at a Bay Area startup before developing an obsession with transformer architectures and inference optimisation that eventually pulled him out of product work entirely. A stint at a compute research lab sharpened his instinct for what actually matters in a model release versus what is marketing. He writes from the inside — from the perspective of someone who has debugged the systems he is describing at three in the morning. He is allergic to hype and instinctively drawn to the unglamorous plumbing questions that everyone else skips over.
More from The Engineer →This Week's Edition
25 October 2024
133 articles
Related Articles

Smarter Engagement for Stronger Growth: How Payers Can Leverage AI to Do More with Less
Products & Applications · 3 min

Penn Medicine and K Health Deploy AI Clinical Agents to Enhance Patient Care
Products & Applications · 3 min

Wheel and b.well Partner to Build Turnkey AI-First Virtual Care Infrastructure
Products & Applications · 3 min
Related Articles

Smarter Engagement for Stronger Growth: How Payers Can Leverage AI to Do More with Less
Products & Applications · 3 min

Penn Medicine and K Health Deploy AI Clinical Agents to Enhance Patient Care
Products & Applications · 3 min

Wheel and b.well Partner to Build Turnkey AI-First Virtual Care Infrastructure
Products & Applications · 3 min
More Stories