Skip to content Skip to navigation

Stanford engineers design an accurate wearable calorie burn counter

Photo of white female graduate student running across a courtyard area at Stanford, wearing running clothes and the wearable device described in the article.

Image courtesy Andrew Brodhead: Stanford graduate student, Delaney Miller, wearing the energy expenditure monitoring system
while running on campus. Check out the video!

Stanford News - July 13th, 2021 - by Taylor Kubota

Engineers from Stanford University have developed a new calorie burn measurement system that is small, inexpensive and accurate. Also, people can make it themselves. Whereas smartwatches and smartphones tend to be off by about 40 to 80 percent when it comes to counting calories burned during an activity, this system averages 13 percent error.

Screenshot of white female graduate student wearing running clothes and the wearable measurement device components, white male graduate student holding a laptop, and white male faculty member standing in an open courtyard area.

Watch the video! A system made with two inexpensive sensors
proves to be more accurate than smartwatches for measuring
calories burned during activity – and the instructions for making
the system yourself are available for free online.

“We built a compact system that we evaluated with a diverse group of participants to represent the U.S. population and found that it does very well, with about one third the error of smartwatches,” said Patrick Slade, a graduate student in mechanical engineering at Stanford who is lead author of a paper about this work, published July 13 in Nature Communications.

A crucial piece of this research was understanding a basic shortcoming of other wearable calorie counters: that they rely on wrist motion or heart rate, even though neither is especially indicative of energy expenditure. (Consider how a cup of coffee can increase heart rate.) The researchers hypothesized that leg motion would be more telling – and their experiments confirmed that idea.

There are laboratory-grade systems that can accurately estimate how much energy a person burns during physical activity by measuring the rate of exchange of carbon dioxide and oxygen in breath. Such setups are used to assess health and athletic performance, but they involve bulky, uncomfortable equipment and can be expensive. This new wearable system only requires two small sensors on the leg, a battery and a portable microcontroller (a small computer), and costs about $100 to make. The list of components and code for making the system are both available.

“This is a big advance because, up till now, it takes two to six minutes and a gas mask to accurately estimate how much energy a person is burning,” said Scott Delp, the James H. Clark Professor in the School of Engineering, who is co-author of the paper. “With Patrick’s new tool, we can estimate how much energy is burned with each step as an Olympic athlete races toward the finish line to get a measure of what is fueling their peak performance. We can also compute the energy spent by a patient recovering from cardiac surgery to better manage their exercise.”

Looking to the legs

How people burn calories is complicated, but the researchers had a hunch that sensors on the legs would be a simple way to gain insight into this process.

Photo of white female graduate student's hip displaying the circuit board and wires and other components of the wearable measurement device.

Image courtesy Andrew Brodhead: This new measurement
system features two sensors on the thigh and shank that are
powered by a battery and controlled by a microcontroller,
which could be replaced by a smartphone.

“An issue with traditional smartwatches is they only get information from the movement of your wrist and heart rate,” said Mykel Kochenderfer, an associate professor of aeronautics and astronautics at Stanford who is a co-author of the paper. “The fact that Patrick’s device has a lower error rate makes sense because it detects motion of your legs and most of your energy is being expended by your legs.”

The system the researchers designed is intentionally simple. It consists of two small sensors – one on the thigh and one on the shank of one leg – run by a microcontroller on the hip, which could easily be replaced by a smartphone. These sensors are called “inertial measurement units” and measure the acceleration and rotation of the leg as it’s moving. They are purposely lightweight, portable and low cost so that they could be easily integrated in different forms, including clothing, such as smart pants.

To test the system against similar technologies, the researchers had study participants wear it while also wearing two smartwatches and a heart rate monitor. With all of these sensors attached, participants performed a variety of activities, including various speeds of walking, running, biking, stair climbing and transitioning between walking and running. When all of the wearables were compared to the calorie burn measurements captured by a laboratory-grade system, the researchers found that their leg-based system was the most accurate.

By further testing the system on over a dozen participants across a range of ages and weights, the researchers gathered a wealth of data that Slade used to further refine the machine learning model that calculates the calorie burn estimates. This model takes in the information about leg movement from the sensors and computes – using what it has learned from previous data – how much energy the user is burning at each moment in time. And, whereas current state-of-the-art systems require about six minutes of data from a person hooked up to a mask in a lab setting, this free-range alternative can function with only seconds of activity.

“A lot of the steps that you take every day happen in short bouts of 20 seconds or less,” said Slade, who mentioned doing chores as one example of short-burst activity that often gets overlooked. “Being able to capture these brief activities or dynamic changes between activities is really challenging and no other system can currently do that.”

An open design

Simplicity and affordability were important to this team, as was making the design openly available, because they hope this technology can support people in understanding and looking after their health.

“We’re open-sourcing everything in the hopes that people will take it and run with it and make products that can improve the lives of the public,” said Kochenderfer.

Photo of white female graduate student wearing running clothes and the wearable device looking at laptop held by white male graduate student.

Image courtesy Andrew Brodhead: Stanford graduate
students, Delaney Miller and Patrick Slade. Slade led
the development of this new system.

They also believe that the simplicity, affordability and portability of this system could support better health policy and new avenues for research in human performance. The research group led by Steve Collins, associate professor of mechanical engineering and senior author of this paper, is already using a similar system to study the energy expended with wearable robotic systems that enhance performance.

“One of the most exciting things is that we can track dynamically changing activities, and this precise information will let us provide better policies to recommend how people should exercise or manage their weight,” said Slade.

“It opens a whole new set of research studies that we can do on human performance,” said Delp, who is also a professor of bioengineering and of mechanical engineering. “How much energy you’re burning when you’re walking, when you’re running, when you’re exerting yourself on a bike – all those things are fundamental. When we have a new tool like this it opens a new door to discovering new things about human performance.”

Collins, Kochenderfer and Delp are also members of Stanford Bio-X and the Wu Tsai Neurosciences Institute, and affiliates of the Institute for Human-Centered Artificial Intelligence (HAI). Delp is also a member of the Maternal & Child Health Research Institute (MCHRI).

This research was funded by the National Science Foundation, the National Institutes of Health, and a Stanford Graduate Fellowship.

Originally published at Stanford News